configure revision cfcf9057
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXvMC 1.0.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libXvMC'
593PACKAGE_TARNAME='libXvMC'
594PACKAGE_VERSION='1.0.12'
595PACKAGE_STRING='libXvMC 1.0.12'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640LINT_FALSE
641LINT_TRUE
642LINT_FLAGS
643LINT
644DLOPEN_LIBS
645XVMC_LIBS
646XVMC_CFLAGS
647XTMALLOC_ZERO_CFLAGS
648XMALLOC_ZERO_CFLAGS
649MALLOC_ZERO_CFLAGS
650MAN_SUBSTS
651XORG_MAN_PAGE
652ADMIN_MAN_DIR
653DRIVER_MAN_DIR
654MISC_MAN_DIR
655FILE_MAN_DIR
656LIB_MAN_DIR
657APP_MAN_DIR
658ADMIN_MAN_SUFFIX
659DRIVER_MAN_SUFFIX
660MISC_MAN_SUFFIX
661FILE_MAN_SUFFIX
662LIB_MAN_SUFFIX
663APP_MAN_SUFFIX
664INSTALL_CMD
665PKG_CONFIG_LIBDIR
666PKG_CONFIG_PATH
667PKG_CONFIG
668CHANGELOG_CMD
669STRICT_CFLAGS
670CWARNFLAGS
671BASE_CFLAGS
672CPP
673LT_SYS_LIBRARY_PATH
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718LIBTOOL
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL
784am__quote'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_silent_rules
789enable_shared
790enable_static
791with_pic
792enable_fast_install
793with_aix_soname
794enable_dependency_tracking
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798enable_selective_werror
799enable_strict_compilation
800enable_malloc0returnsnull
801with_lint
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811LT_SYS_LIBRARY_PATH
812CPP
813PKG_CONFIG
814PKG_CONFIG_PATH
815PKG_CONFIG_LIBDIR
816XVMC_CFLAGS
817XVMC_LIBS
818LINT
819LINT_FLAGS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  # Accept the important Cygnus configure options, so we can diagnose typos.
888
889  case $ac_dashdash$ac_option in
890  --)
891    ac_dashdash=yes ;;
892
893  -bindir | --bindir | --bindi | --bind | --bin | --bi)
894    ac_prev=bindir ;;
895  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896    bindir=$ac_optarg ;;
897
898  -build | --build | --buil | --bui | --bu)
899    ac_prev=build_alias ;;
900  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901    build_alias=$ac_optarg ;;
902
903  -cache-file | --cache-file | --cache-fil | --cache-fi \
904  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905    ac_prev=cache_file ;;
906  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908    cache_file=$ac_optarg ;;
909
910  --config-cache | -C)
911    cache_file=config.cache ;;
912
913  -datadir | --datadir | --datadi | --datad)
914    ac_prev=datadir ;;
915  -datadir=* | --datadir=* | --datadi=* | --datad=*)
916    datadir=$ac_optarg ;;
917
918  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919  | --dataroo | --dataro | --datar)
920    ac_prev=datarootdir ;;
921  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923    datarootdir=$ac_optarg ;;
924
925  -disable-* | --disable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=\$ac_optarg ;;
966
967  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969  | --exec | --exe | --ex)
970    ac_prev=exec_prefix ;;
971  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973  | --exec=* | --exe=* | --ex=*)
974    exec_prefix=$ac_optarg ;;
975
976  -gas | --gas | --ga | --g)
977    # Obsolete; use --with-gas.
978    with_gas=yes ;;
979
980  -help | --help | --hel | --he | -h)
981    ac_init_help=long ;;
982  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983    ac_init_help=recursive ;;
984  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985    ac_init_help=short ;;
986
987  -host | --host | --hos | --ho)
988    ac_prev=host_alias ;;
989  -host=* | --host=* | --hos=* | --ho=*)
990    host_alias=$ac_optarg ;;
991
992  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993    ac_prev=htmldir ;;
994  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995  | --ht=*)
996    htmldir=$ac_optarg ;;
997
998  -includedir | --includedir | --includedi | --included | --include \
999  | --includ | --inclu | --incl | --inc)
1000    ac_prev=includedir ;;
1001  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002  | --includ=* | --inclu=* | --incl=* | --inc=*)
1003    includedir=$ac_optarg ;;
1004
1005  -infodir | --infodir | --infodi | --infod | --info | --inf)
1006    ac_prev=infodir ;;
1007  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008    infodir=$ac_optarg ;;
1009
1010  -libdir | --libdir | --libdi | --libd)
1011    ac_prev=libdir ;;
1012  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013    libdir=$ac_optarg ;;
1014
1015  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016  | --libexe | --libex | --libe)
1017    ac_prev=libexecdir ;;
1018  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019  | --libexe=* | --libex=* | --libe=*)
1020    libexecdir=$ac_optarg ;;
1021
1022  -localedir | --localedir | --localedi | --localed | --locale)
1023    ac_prev=localedir ;;
1024  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025    localedir=$ac_optarg ;;
1026
1027  -localstatedir | --localstatedir | --localstatedi | --localstated \
1028  | --localstate | --localstat | --localsta | --localst | --locals)
1029    ac_prev=localstatedir ;;
1030  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032    localstatedir=$ac_optarg ;;
1033
1034  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035    ac_prev=mandir ;;
1036  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037    mandir=$ac_optarg ;;
1038
1039  -nfp | --nfp | --nf)
1040    # Obsolete; use --without-fp.
1041    with_fp=no ;;
1042
1043  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044  | --no-cr | --no-c | -n)
1045    no_create=yes ;;
1046
1047  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049    no_recursion=yes ;;
1050
1051  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053  | --oldin | --oldi | --old | --ol | --o)
1054    ac_prev=oldincludedir ;;
1055  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058    oldincludedir=$ac_optarg ;;
1059
1060  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061    ac_prev=prefix ;;
1062  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063    prefix=$ac_optarg ;;
1064
1065  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066  | --program-pre | --program-pr | --program-p)
1067    ac_prev=program_prefix ;;
1068  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070    program_prefix=$ac_optarg ;;
1071
1072  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073  | --program-suf | --program-su | --program-s)
1074    ac_prev=program_suffix ;;
1075  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077    program_suffix=$ac_optarg ;;
1078
1079  -program-transform-name | --program-transform-name \
1080  | --program-transform-nam | --program-transform-na \
1081  | --program-transform-n | --program-transform- \
1082  | --program-transform | --program-transfor \
1083  | --program-transfo | --program-transf \
1084  | --program-trans | --program-tran \
1085  | --progr-tra | --program-tr | --program-t)
1086    ac_prev=program_transform_name ;;
1087  -program-transform-name=* | --program-transform-name=* \
1088  | --program-transform-nam=* | --program-transform-na=* \
1089  | --program-transform-n=* | --program-transform-=* \
1090  | --program-transform=* | --program-transfor=* \
1091  | --program-transfo=* | --program-transf=* \
1092  | --program-trans=* | --program-tran=* \
1093  | --progr-tra=* | --program-tr=* | --program-t=*)
1094    program_transform_name=$ac_optarg ;;
1095
1096  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097    ac_prev=pdfdir ;;
1098  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099    pdfdir=$ac_optarg ;;
1100
1101  -psdir | --psdir | --psdi | --psd | --ps)
1102    ac_prev=psdir ;;
1103  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104    psdir=$ac_optarg ;;
1105
1106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107  | -silent | --silent | --silen | --sile | --sil)
1108    silent=yes ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures libXvMC 1.0.12 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXvMC]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417Program names:
1418  --program-prefix=PREFIX            prepend PREFIX to installed program names
1419  --program-suffix=SUFFIX            append SUFFIX to installed program names
1420  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429  case $ac_init_help in
1430     short | recursive ) echo "Configuration of libXvMC 1.0.12:";;
1431   esac
1432  cat <<\_ACEOF
1433
1434Optional Features:
1435  --disable-option-checking  ignore unrecognized --enable/--with options
1436  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439  --disable-silent-rules  verbose build output (undo: "make V=0")
1440  --enable-shared[=PKGS]  build shared libraries [default=yes]
1441  --enable-static[=PKGS]  build static libraries [default=yes]
1442  --enable-fast-install[=PKGS]
1443                          optimize for fast installation [default=yes]
1444  --enable-dependency-tracking
1445                          do not reject slow dependency extractors
1446  --disable-dependency-tracking
1447                          speeds up one-time build
1448  --disable-libtool-lock  avoid locking (might break parallel builds)
1449  --disable-selective-werror
1450                          Turn off selective compiler errors. (default:
1451                          enabled)
1452  --enable-strict-compilation
1453                          Enable all warnings from compiler and make them
1454                          errors (default: disabled)
1455  --enable-malloc0returnsnull
1456                          malloc(0) returns NULL (default: auto)
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-aix-soname=aix|svr4|both
1464                          shared library versioning (aka "SONAME") variant to
1465                          provide on AIX, [default=aix].
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1468                          compiler's sysroot if not specified).
1469  --with-lint             Use a lint-style source code checker (default:
1470                          disabled)
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  LT_SYS_LIBRARY_PATH
1481              User-defined run-time library search path.
1482  CPP         C preprocessor
1483  PKG_CONFIG  path to pkg-config utility
1484  PKG_CONFIG_PATH
1485              directories to add to pkg-config's search path
1486  PKG_CONFIG_LIBDIR
1487              path overriding pkg-config's built-in search path
1488  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1489  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
1490  LINT        Path to a lint-style command
1491  LINT_FLAGS  Flags for the lint-style command
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559libXvMC configure 1.0.12
1560generated by GNU Autoconf 2.69
1561
1562Copyright (C) 2012 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_link LINENO
1612# -----------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_link ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  rm -f conftest.$ac_objext conftest$ac_exeext
1618  if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_link") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && {
1634	 test -z "$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       } && test -s conftest$ac_exeext && {
1637	 test "$cross_compiling" = yes ||
1638	 test -x conftest$ac_exeext
1639       }; then :
1640  ac_retval=0
1641else
1642  $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649  # interfere with the next link command; also delete a directory that is
1650  # left behind by Apple's compiler.  We do this before executing the actions.
1651  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_link
1656
1657# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658# -------------------------------------------------------
1659# Tests whether HEADER exists and can be compiled using the include files in
1660# INCLUDES, setting the cache variable VAR accordingly.
1661ac_fn_c_check_header_compile ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667  $as_echo_n "(cached) " >&6
1668else
1669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675  eval "$3=yes"
1676else
1677  eval "$3=no"
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_c_check_header_compile
1687
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  if { { ac_try="$ac_cpp conftest.$ac_ext"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } > conftest.i && {
1710	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711	 test ! -s conftest.err
1712       }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718    ac_retval=1
1719fi
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_cpp
1724
1725# ac_fn_c_try_run LINENO
1726# ----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728# that executables *can* be run.
1729ac_fn_c_try_run ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>&5
1740  ac_status=$?
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743  { { case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_try") 2>&5
1750  ac_status=$?
1751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752  test $ac_status = 0; }; }; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: program exited with status $ac_status" >&5
1756       $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759       ac_retval=$ac_status
1760fi
1761  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_run
1766
1767# ac_fn_c_check_func LINENO FUNC VAR
1768# ----------------------------------
1769# Tests whether FUNC exists, setting the cache variable VAR accordingly
1770ac_fn_c_check_func ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1782#define $2 innocuous_$2
1783
1784/* System header to define __stub macros and hopefully few prototypes,
1785    which can conflict with char $2 (); below.
1786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787    <limits.h> exists even on freestanding compilers.  */
1788
1789#ifdef __STDC__
1790# include <limits.h>
1791#else
1792# include <assert.h>
1793#endif
1794
1795#undef $2
1796
1797/* Override any GCC internal prototype to avoid an error.
1798   Use char because int might match the return type of a GCC
1799   builtin and then its argument prototype would still apply.  */
1800#ifdef __cplusplus
1801extern "C"
1802#endif
1803char $2 ();
1804/* The GNU C library defines this for functions which it implements
1805    to always fail with ENOSYS.  Some functions are actually named
1806    something starting with __ and the normal name is an alias.  */
1807#if defined __stub_$2 || defined __stub___$2
1808choke me
1809#endif
1810
1811int
1812main ()
1813{
1814return $2 ();
1815  ;
1816  return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_link "$LINENO"; then :
1820  eval "$3=yes"
1821else
1822  eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext \
1825    conftest$ac_exeext conftest.$ac_ext
1826fi
1827eval ac_res=\$$3
1828	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832} # ac_fn_c_check_func
1833
1834# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1835# ---------------------------------------------
1836# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1837# accordingly.
1838ac_fn_c_check_decl ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  as_decl_name=`echo $2|sed 's/ *(.*//'`
1842  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1844$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850$4
1851int
1852main ()
1853{
1854#ifndef $as_decl_name
1855#ifdef __cplusplus
1856  (void) $as_decl_use;
1857#else
1858  (void) $as_decl_name;
1859#endif
1860#endif
1861
1862  ;
1863  return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867  eval "$3=yes"
1868else
1869  eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_decl
1879cat >config.log <<_ACEOF
1880This file contains any messages produced by compilers while
1881running configure, to aid debugging if configure makes a mistake.
1882
1883It was created by libXvMC $as_me 1.0.12, which was
1884generated by GNU Autoconf 2.69.  Invocation command line was
1885
1886  $ $0 $@
1887
1888_ACEOF
1889exec 5>>config.log
1890{
1891cat <<_ASUNAME
1892## --------- ##
1893## Platform. ##
1894## --------- ##
1895
1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1904
1905/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1906/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1909/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1910/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1911/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1912
1913_ASUNAME
1914
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920    $as_echo "PATH: $as_dir"
1921  done
1922IFS=$as_save_IFS
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947  for ac_arg
1948  do
1949    case $ac_arg in
1950    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952    | -silent | --silent | --silen | --sile | --sil)
1953      continue ;;
1954    *\'*)
1955      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956    esac
1957    case $ac_pass in
1958    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959    2)
1960      as_fn_append ac_configure_args1 " '$ac_arg'"
1961      if test $ac_must_keep_next = true; then
1962	ac_must_keep_next=false # Got value, back to normal.
1963      else
1964	case $ac_arg in
1965	  *=* | --config-cache | -C | -disable-* | --disable-* \
1966	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968	  | -with-* | --with-* | -without-* | --without-* | --x)
1969	    case "$ac_configure_args0 " in
1970	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971	    esac
1972	    ;;
1973	  -* ) ac_must_keep_next=true ;;
1974	esac
1975      fi
1976      as_fn_append ac_configure_args " '$ac_arg'"
1977      ;;
1978    esac
1979  done
1980done
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log.  We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989trap 'exit_status=$?
1990  # Save into config.log some information that might help in debugging.
1991  {
1992    echo
1993
1994    $as_echo "## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##"
1997    echo
1998    # The following way of writing the cache mishandles newlines in values,
1999(
2000  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001    eval ac_val=\$$ac_var
2002    case $ac_val in #(
2003    *${as_nl}*)
2004      case $ac_var in #(
2005      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007      esac
2008      case $ac_var in #(
2009      _ | IFS | as_nl) ;; #(
2010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011      *) { eval $ac_var=; unset $ac_var;} ;;
2012      esac ;;
2013    esac
2014  done
2015  (set) 2>&1 |
2016    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017    *${as_nl}ac_space=\ *)
2018      sed -n \
2019	"s/'\''/'\''\\\\'\'''\''/g;
2020	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021      ;; #(
2022    *)
2023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024      ;;
2025    esac |
2026    sort
2027)
2028    echo
2029
2030    $as_echo "## ----------------- ##
2031## Output variables. ##
2032## ----------------- ##"
2033    echo
2034    for ac_var in $ac_subst_vars
2035    do
2036      eval ac_val=\$$ac_var
2037      case $ac_val in
2038      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039      esac
2040      $as_echo "$ac_var='\''$ac_val'\''"
2041    done | sort
2042    echo
2043
2044    if test -n "$ac_subst_files"; then
2045      $as_echo "## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##"
2048      echo
2049      for ac_var in $ac_subst_files
2050      do
2051	eval ac_val=\$$ac_var
2052	case $ac_val in
2053	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054	esac
2055	$as_echo "$ac_var='\''$ac_val'\''"
2056      done | sort
2057      echo
2058    fi
2059
2060    if test -s confdefs.h; then
2061      $as_echo "## ----------- ##
2062## confdefs.h. ##
2063## ----------- ##"
2064      echo
2065      cat confdefs.h
2066      echo
2067    fi
2068    test "$ac_signal" != 0 &&
2069      $as_echo "$as_me: caught signal $ac_signal"
2070    $as_echo "$as_me: exit $exit_status"
2071  } >&5
2072  rm -f core *.core core.conftest.* &&
2073    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074    exit $exit_status
2075' 0
2076for ac_signal in 1 2 13 15; do
2077  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078done
2079ac_signal=0
2080
2081# confdefs.h avoids OS command line length limits that DEFS can exceed.
2082rm -f -r conftest* confdefs.h
2083
2084$as_echo "/* confdefs.h */" > confdefs.h
2085
2086# Predefined preprocessor variables.
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_NAME "$PACKAGE_NAME"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_VERSION "$PACKAGE_VERSION"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_STRING "$PACKAGE_STRING"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_URL "$PACKAGE_URL"
2110_ACEOF
2111
2112
2113# Let the site file select an alternate cache file if it wants to.
2114# Prefer an explicitly selected file to automatically selected ones.
2115ac_site_file1=NONE
2116ac_site_file2=NONE
2117if test -n "$CONFIG_SITE"; then
2118  # We do not want a PATH search for config.site.
2119  case $CONFIG_SITE in #((
2120    -*)  ac_site_file1=./$CONFIG_SITE;;
2121    */*) ac_site_file1=$CONFIG_SITE;;
2122    *)   ac_site_file1=./$CONFIG_SITE;;
2123  esac
2124elif test "x$prefix" != xNONE; then
2125  ac_site_file1=$prefix/share/config.site
2126  ac_site_file2=$prefix/etc/config.site
2127else
2128  ac_site_file1=$ac_default_prefix/share/config.site
2129  ac_site_file2=$ac_default_prefix/etc/config.site
2130fi
2131for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132do
2133  test "x$ac_site_file" = xNONE && continue
2134  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137    sed 's/^/| /' "$ac_site_file" >&5
2138    . "$ac_site_file" \
2139      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141as_fn_error $? "failed to load site script $ac_site_file
2142See \`config.log' for more details" "$LINENO" 5; }
2143  fi
2144done
2145
2146if test -r "$cache_file"; then
2147  # Some versions of bash will fail to source /dev/null (special files
2148  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2149  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151$as_echo "$as_me: loading cache $cache_file" >&6;}
2152    case $cache_file in
2153      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154      *)                      . "./$cache_file";;
2155    esac
2156  fi
2157else
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159$as_echo "$as_me: creating cache $cache_file" >&6;}
2160  >$cache_file
2161fi
2162
2163# Check that the precious variables saved in the cache have kept the same
2164# value.
2165ac_cache_corrupted=false
2166for ac_var in $ac_precious_vars; do
2167  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168  eval ac_new_set=\$ac_env_${ac_var}_set
2169  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170  eval ac_new_val=\$ac_env_${ac_var}_value
2171  case $ac_old_set,$ac_new_set in
2172    set,)
2173      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175      ac_cache_corrupted=: ;;
2176    ,set)
2177      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179      ac_cache_corrupted=: ;;
2180    ,);;
2181    *)
2182      if test "x$ac_old_val" != "x$ac_new_val"; then
2183	# differences in whitespace do not lead to failure.
2184	ac_old_val_w=`echo x $ac_old_val`
2185	ac_new_val_w=`echo x $ac_new_val`
2186	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189	  ac_cache_corrupted=:
2190	else
2191	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193	  eval $ac_var=\$ac_old_val
2194	fi
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2196$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2197	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2198$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2199      fi;;
2200  esac
2201  # Pass precious variables to config.status.
2202  if test "$ac_new_set" = set; then
2203    case $ac_new_val in
2204    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205    *) ac_arg=$ac_var=$ac_new_val ;;
2206    esac
2207    case " $ac_configure_args " in
2208      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2209      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210    esac
2211  fi
2212done
2213if $ac_cache_corrupted; then
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219fi
2220## -------------------- ##
2221## Main body of script. ##
2222## -------------------- ##
2223
2224ac_ext=c
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232ac_config_headers="$ac_config_headers config.h"
2233
2234
2235# Initialize Automake
2236am__api_version='1.16'
2237
2238ac_aux_dir=
2239for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2240  if test -f "$ac_dir/install-sh"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/install-sh -c"
2243    break
2244  elif test -f "$ac_dir/install.sh"; then
2245    ac_aux_dir=$ac_dir
2246    ac_install_sh="$ac_aux_dir/install.sh -c"
2247    break
2248  elif test -f "$ac_dir/shtool"; then
2249    ac_aux_dir=$ac_dir
2250    ac_install_sh="$ac_aux_dir/shtool install -c"
2251    break
2252  fi
2253done
2254if test -z "$ac_aux_dir"; then
2255  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256fi
2257
2258# These three variables are undocumented and unsupported,
2259# and are intended to be withdrawn in a future Autoconf release.
2260# They can cause serious problems if a builder's source tree is in a directory
2261# whose full name contains unusual characters.
2262ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2263ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2264ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2265
2266
2267# Find a good install program.  We prefer a C program (faster),
2268# so one script is as good as another.  But avoid the broken or
2269# incompatible versions:
2270# SysV /etc/install, /usr/sbin/install
2271# SunOS /usr/etc/install
2272# IRIX /sbin/install
2273# AIX /bin/install
2274# AmigaOS /C/install, which installs bootblocks on floppy discs
2275# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278# OS/2's system install, which has a completely different semantic
2279# ./install, which can be erroneously created by make from ./install.sh.
2280# Reject install programs that cannot install multiple files.
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282$as_echo_n "checking for a BSD-compatible install... " >&6; }
2283if test -z "$INSTALL"; then
2284if ${ac_cv_path_install+:} false; then :
2285  $as_echo_n "(cached) " >&6
2286else
2287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292    # Account for people who put trailing slashes in PATH elements.
2293case $as_dir/ in #((
2294  ./ | .// | /[cC]/* | \
2295  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297  /usr/ucb/* ) ;;
2298  *)
2299    # OSF1 and SCO ODT 3.0 have their own names for install.
2300    # Don't use installbsd from OSF since it installs stuff as root
2301    # by default.
2302    for ac_prog in ginstall scoinst install; do
2303      for ac_exec_ext in '' $ac_executable_extensions; do
2304	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305	  if test $ac_prog = install &&
2306	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307	    # AIX install.  It has an incompatible calling convention.
2308	    :
2309	  elif test $ac_prog = install &&
2310	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311	    # program-specific install script used by HP pwplus--don't use.
2312	    :
2313	  else
2314	    rm -rf conftest.one conftest.two conftest.dir
2315	    echo one > conftest.one
2316	    echo two > conftest.two
2317	    mkdir conftest.dir
2318	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319	      test -s conftest.one && test -s conftest.two &&
2320	      test -s conftest.dir/conftest.one &&
2321	      test -s conftest.dir/conftest.two
2322	    then
2323	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324	      break 3
2325	    fi
2326	  fi
2327	fi
2328      done
2329    done
2330    ;;
2331esac
2332
2333  done
2334IFS=$as_save_IFS
2335
2336rm -rf conftest.one conftest.two conftest.dir
2337
2338fi
2339  if test "${ac_cv_path_install+set}" = set; then
2340    INSTALL=$ac_cv_path_install
2341  else
2342    # As a last resort, use the slow shell script.  Don't cache a
2343    # value for INSTALL within a source directory, because that will
2344    # break other packages using the cache if that directory is
2345    # removed, or if the value is a relative name.
2346    INSTALL=$ac_install_sh
2347  fi
2348fi
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350$as_echo "$INSTALL" >&6; }
2351
2352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353# It thinks the first close brace ends the variable substitution.
2354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361$as_echo_n "checking whether build environment is sane... " >&6; }
2362# Reject unsafe characters in $srcdir or the absolute working directory
2363# name.  Accept space and tab only in the latter.
2364am_lf='
2365'
2366case `pwd` in
2367  *[\\\"\#\$\&\'\`$am_lf]*)
2368    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369esac
2370case $srcdir in
2371  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2372    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373esac
2374
2375# Do 'set' in a subshell so we don't clobber the current shell's
2376# arguments.  Must try -L first in case configure is actually a
2377# symlink; some systems play weird games with the mod time of symlinks
2378# (eg FreeBSD returns the mod time of the symlink's containing
2379# directory).
2380if (
2381   am_has_slept=no
2382   for am_try in 1 2; do
2383     echo "timestamp, slept: $am_has_slept" > conftest.file
2384     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385     if test "$*" = "X"; then
2386	# -L didn't work.
2387	set X `ls -t "$srcdir/configure" conftest.file`
2388     fi
2389     if test "$*" != "X $srcdir/configure conftest.file" \
2390	&& test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392	# If neither matched, then we have a broken ls.  This can happen
2393	# if, for instance, CONFIG_SHELL is bash and it inherits a
2394	# broken ls alias from the environment.  This has actually
2395	# happened.  Such a system could not be considered "sane".
2396	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2397  alias in your environment" "$LINENO" 5
2398     fi
2399     if test "$2" = conftest.file || test $am_try -eq 2; then
2400       break
2401     fi
2402     # Just in case.
2403     sleep 1
2404     am_has_slept=yes
2405   done
2406   test "$2" = conftest.file
2407   )
2408then
2409   # Ok.
2410   :
2411else
2412   as_fn_error $? "newly created file is older than distributed files!
2413Check your system clock" "$LINENO" 5
2414fi
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416$as_echo "yes" >&6; }
2417# If we didn't sleep, we still need to ensure time stamps of config.status and
2418# generated files are strictly newer.
2419am_sleep_pid=
2420if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421  ( sleep 1 ) &
2422  am_sleep_pid=$!
2423fi
2424
2425rm -f conftest.file
2426
2427test "$program_prefix" != NONE &&
2428  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429# Use a double $ so make ignores it.
2430test "$program_suffix" != NONE &&
2431  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432# Double any \ or $.
2433# By default was `s,x,x', remove it if useless.
2434ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437# Expand $ac_aux_dir to an absolute path.
2438am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440if test x"${MISSING+set}" != xset; then
2441  case $am_aux_dir in
2442  *\ * | *\	*)
2443    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444  *)
2445    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446  esac
2447fi
2448# Use eval to expand $SHELL
2449if eval "$MISSING --is-lightweight"; then
2450  am_missing_run="$MISSING "
2451else
2452  am_missing_run=
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455fi
2456
2457if test x"${install_sh+set}" != xset; then
2458  case $am_aux_dir in
2459  *\ * | *\	*)
2460    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461  *)
2462    install_sh="\${SHELL} $am_aux_dir/install-sh"
2463  esac
2464fi
2465
2466# Installed binaries are usually stripped using 'strip' when the user
2467# run "make install-strip".  However 'strip' might not be the right
2468# tool to use in cross-compilation environments, therefore Automake
2469# will honor the 'STRIP' environment variable to overrule this program.
2470if test "$cross_compiling" != no; then
2471  if test -n "$ac_tool_prefix"; then
2472  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}strip; ac_word=$2
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_STRIP+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  if test -n "$STRIP"; then
2480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487    for ac_exec_ext in '' $ac_executable_extensions; do
2488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494  done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499STRIP=$ac_cv_prog_STRIP
2500if test -n "$STRIP"; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502$as_echo "$STRIP" >&6; }
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508
2509fi
2510if test -z "$ac_cv_prog_STRIP"; then
2511  ac_ct_STRIP=$STRIP
2512  # Extract the first word of "strip", so it can be a program name with args.
2513set dummy strip; ac_word=$2
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test -n "$ac_ct_STRIP"; then
2520  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    for ac_exec_ext in '' $ac_executable_extensions; do
2528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529    ac_cv_prog_ac_ct_STRIP="strip"
2530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534  done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540if test -n "$ac_ct_STRIP"; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542$as_echo "$ac_ct_STRIP" >&6; }
2543else
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548  if test "x$ac_ct_STRIP" = x; then
2549    STRIP=":"
2550  else
2551    case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557    STRIP=$ac_ct_STRIP
2558  fi
2559else
2560  STRIP="$ac_cv_prog_STRIP"
2561fi
2562
2563fi
2564INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568if test -z "$MKDIR_P"; then
2569  if ${ac_cv_path_mkdir+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577    for ac_prog in mkdir gmkdir; do
2578	 for ac_exec_ext in '' $ac_executable_extensions; do
2579	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581	     'mkdir (GNU coreutils) '* | \
2582	     'mkdir (coreutils) '* | \
2583	     'mkdir (fileutils) '4.1*)
2584	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585	       break 3;;
2586	   esac
2587	 done
2588       done
2589  done
2590IFS=$as_save_IFS
2591
2592fi
2593
2594  test -d ./--version && rmdir ./--version
2595  if test "${ac_cv_path_mkdir+set}" = set; then
2596    MKDIR_P="$ac_cv_path_mkdir -p"
2597  else
2598    # As a last resort, use the slow shell script.  Don't cache a
2599    # value for MKDIR_P within a source directory, because that will
2600    # break other packages using the cache if that directory is
2601    # removed, or if the value is a relative name.
2602    MKDIR_P="$ac_install_sh -d"
2603  fi
2604fi
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606$as_echo "$MKDIR_P" >&6; }
2607
2608for ac_prog in gawk mawk nawk awk
2609do
2610  # Extract the first word of "$ac_prog", so it can be a program name with args.
2611set dummy $ac_prog; ac_word=$2
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
2614if ${ac_cv_prog_AWK+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  if test -n "$AWK"; then
2618  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623  IFS=$as_save_IFS
2624  test -z "$as_dir" && as_dir=.
2625    for ac_exec_ext in '' $ac_executable_extensions; do
2626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627    ac_cv_prog_AWK="$ac_prog"
2628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629    break 2
2630  fi
2631done
2632  done
2633IFS=$as_save_IFS
2634
2635fi
2636fi
2637AWK=$ac_cv_prog_AWK
2638if test -n "$AWK"; then
2639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640$as_echo "$AWK" >&6; }
2641else
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643$as_echo "no" >&6; }
2644fi
2645
2646
2647  test -n "$AWK" && break
2648done
2649
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652set x ${MAKE-make}
2653ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655  $as_echo_n "(cached) " >&6
2656else
2657  cat >conftest.make <<\_ACEOF
2658SHELL = /bin/sh
2659all:
2660	@echo '@@@%%%=$(MAKE)=@@@%%%'
2661_ACEOF
2662# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664  *@@@%%%=?*=@@@%%%*)
2665    eval ac_cv_prog_make_${ac_make}_set=yes;;
2666  *)
2667    eval ac_cv_prog_make_${ac_make}_set=no;;
2668esac
2669rm -f conftest.make
2670fi
2671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673$as_echo "yes" >&6; }
2674  SET_MAKE=
2675else
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677$as_echo "no" >&6; }
2678  SET_MAKE="MAKE=${MAKE-make}"
2679fi
2680
2681rm -rf .tst 2>/dev/null
2682mkdir .tst 2>/dev/null
2683if test -d .tst; then
2684  am__leading_dot=.
2685else
2686  am__leading_dot=_
2687fi
2688rmdir .tst 2>/dev/null
2689
2690# Check whether --enable-silent-rules was given.
2691if test "${enable_silent_rules+set}" = set; then :
2692  enableval=$enable_silent_rules;
2693fi
2694
2695case $enable_silent_rules in # (((
2696  yes) AM_DEFAULT_VERBOSITY=0;;
2697   no) AM_DEFAULT_VERBOSITY=1;;
2698    *) AM_DEFAULT_VERBOSITY=1;;
2699esac
2700am_make=${MAKE-make}
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703if ${am_cv_make_support_nested_variables+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if $as_echo 'TRUE=$(BAR$(V))
2707BAR0=false
2708BAR1=true
2709V=1
2710am__doit:
2711	@$(TRUE)
2712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713  am_cv_make_support_nested_variables=yes
2714else
2715  am_cv_make_support_nested_variables=no
2716fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719$as_echo "$am_cv_make_support_nested_variables" >&6; }
2720if test $am_cv_make_support_nested_variables = yes; then
2721    AM_V='$(V)'
2722  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723else
2724  AM_V=$AM_DEFAULT_VERBOSITY
2725  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726fi
2727AM_BACKSLASH='\'
2728
2729if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731  # is not polluted with repeated "-I."
2732  am__isrc=' -I$(srcdir)'
2733  # test to see if srcdir already configured
2734  if test -f $srcdir/config.status; then
2735    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736  fi
2737fi
2738
2739# test whether we have cygpath
2740if test -z "$CYGPATH_W"; then
2741  if (cygpath --version) >/dev/null 2>/dev/null; then
2742    CYGPATH_W='cygpath -w'
2743  else
2744    CYGPATH_W=echo
2745  fi
2746fi
2747
2748
2749# Define the identity of the package.
2750 PACKAGE='libXvMC'
2751 VERSION='1.0.12'
2752
2753
2754cat >>confdefs.h <<_ACEOF
2755#define PACKAGE "$PACKAGE"
2756_ACEOF
2757
2758
2759cat >>confdefs.h <<_ACEOF
2760#define VERSION "$VERSION"
2761_ACEOF
2762
2763# Some tools Automake needs.
2764
2765ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779# For better backward compatibility.  To be removed once Automake 1.9.x
2780# dies out for good.  For more background, see:
2781# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783mkdir_p='$(MKDIR_P)'
2784
2785# We need awk for the "check" target (and possibly the TAP driver).  The
2786# system "awk" is bad on some platforms.
2787# Always define AMTAR for backward compatibility.  Yes, it's still used
2788# in the wild :-(  We should find a proper way to deprecate it ...
2789AMTAR='$${TAR-tar}'
2790
2791
2792# We'll loop over all known methods to create a tar archive until one works.
2793_am_tools='gnutar  pax cpio none'
2794
2795am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802# POSIX will say in a future version that running "rm -f" with no argument
2803# is OK; and we want to be able to make that assumption in our Makefile
2804# recipes.  So use an aggressive probe to check that the usage we want is
2805# actually supported "in the wild" to an acceptable degree.
2806# See automake bug#10828.
2807# To make any issue more visible, cause the running configure to be aborted
2808# by default if the 'rm' program in use doesn't match our expectations; the
2809# user can still override this though.
2810if rm -f && rm -fr && rm -rf; then : OK; else
2811  cat >&2 <<'END'
2812Oops!
2813
2814Your 'rm' program seems unable to run without file operands specified
2815on the command line, even when the '-f' option is present.  This is contrary
2816to the behaviour of most rm programs out there, and not conforming with
2817the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819Please tell bug-automake@gnu.org about your system, including the value
2820of your $PATH and any error possibly output before this message.  This
2821can help us improve future automake versions.
2822
2823END
2824  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825    echo 'Configuration will proceed anyway, since you have set the' >&2
2826    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827    echo >&2
2828  else
2829    cat >&2 <<'END'
2830Aborting the configuration process, to ensure you take notice of the issue.
2831
2832You can download and install GNU coreutils to get an 'rm' implementation
2833that behaves properly: <https://www.gnu.org/software/coreutils/>.
2834
2835If you want to complete the configuration process using your problematic
2836'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837to "yes", and re-run configure.
2838
2839END
2840    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841  fi
2842fi
2843
2844
2845# Initialize libtool
2846case `pwd` in
2847  *\ * | *\	*)
2848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2849$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2850esac
2851
2852
2853
2854macro_version='2.4.6'
2855macro_revision='2.4.6'
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869ltmain=$ac_aux_dir/ltmain.sh
2870
2871# Make sure we can run config.sub.
2872$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2873  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2874
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2876$as_echo_n "checking build system type... " >&6; }
2877if ${ac_cv_build+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  ac_build_alias=$build_alias
2881test "x$ac_build_alias" = x &&
2882  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2883test "x$ac_build_alias" = x &&
2884  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2885ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2886  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2887
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2890$as_echo "$ac_cv_build" >&6; }
2891case $ac_cv_build in
2892*-*-*) ;;
2893*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2894esac
2895build=$ac_cv_build
2896ac_save_IFS=$IFS; IFS='-'
2897set x $ac_cv_build
2898shift
2899build_cpu=$1
2900build_vendor=$2
2901shift; shift
2902# Remember, the first character of IFS is used to create $*,
2903# except with old shells:
2904build_os=$*
2905IFS=$ac_save_IFS
2906case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2907
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2910$as_echo_n "checking host system type... " >&6; }
2911if ${ac_cv_host+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test "x$host_alias" = x; then
2915  ac_cv_host=$ac_cv_build
2916else
2917  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2918    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2919fi
2920
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2923$as_echo "$ac_cv_host" >&6; }
2924case $ac_cv_host in
2925*-*-*) ;;
2926*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2927esac
2928host=$ac_cv_host
2929ac_save_IFS=$IFS; IFS='-'
2930set x $ac_cv_host
2931shift
2932host_cpu=$1
2933host_vendor=$2
2934shift; shift
2935# Remember, the first character of IFS is used to create $*,
2936# except with old shells:
2937host_os=$*
2938IFS=$ac_save_IFS
2939case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2940
2941
2942# Backslashify metacharacters that are still active within
2943# double-quoted strings.
2944sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2945
2946# Same as above, but do not quote variable references.
2947double_quote_subst='s/\(["`\\]\)/\\\1/g'
2948
2949# Sed substitution to delay expansion of an escaped shell variable in a
2950# double_quote_subst'ed string.
2951delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2952
2953# Sed substitution to delay expansion of an escaped single quote.
2954delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2955
2956# Sed substitution to avoid accidental globbing in evaled expressions
2957no_glob_subst='s/\*/\\\*/g'
2958
2959ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2962
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2964$as_echo_n "checking how to print strings... " >&6; }
2965# Test print first, because it will be a builtin if present.
2966if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2967   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2968  ECHO='print -r --'
2969elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2970  ECHO='printf %s\n'
2971else
2972  # Use this function as a fallback that always works.
2973  func_fallback_echo ()
2974  {
2975    eval 'cat <<_LTECHO_EOF
2976$1
2977_LTECHO_EOF'
2978  }
2979  ECHO='func_fallback_echo'
2980fi
2981
2982# func_echo_all arg...
2983# Invoke $ECHO with all args, space-separated.
2984func_echo_all ()
2985{
2986    $ECHO ""
2987}
2988
2989case $ECHO in
2990  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2991$as_echo "printf" >&6; } ;;
2992  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2993$as_echo "print -r" >&6; } ;;
2994  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2995$as_echo "cat" >&6; } ;;
2996esac
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011DEPDIR="${am__leading_dot}deps"
3012
3013ac_config_commands="$ac_config_commands depfiles"
3014
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3016$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3017cat > confinc.mk << 'END'
3018am__doit:
3019	@echo this is the am__doit target >confinc.out
3020.PHONY: am__doit
3021END
3022am__include="#"
3023am__quote=
3024# BSD make does it like this.
3025echo '.include "confinc.mk" # ignored' > confmf.BSD
3026# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3027echo 'include confinc.mk # ignored' > confmf.GNU
3028_am_result=no
3029for s in GNU BSD; do
3030  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3031   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }
3035  case $?:`cat confinc.out 2>/dev/null` in #(
3036  '0:this is the am__doit target') :
3037    case $s in #(
3038  BSD) :
3039    am__include='.include' am__quote='"' ;; #(
3040  *) :
3041    am__include='include' am__quote='' ;;
3042esac ;; #(
3043  *) :
3044     ;;
3045esac
3046  if test "$am__include" != "#"; then
3047    _am_result="yes ($s style)"
3048    break
3049  fi
3050done
3051rm -f confinc.* confmf.*
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3053$as_echo "${_am_result}" >&6; }
3054
3055# Check whether --enable-dependency-tracking was given.
3056if test "${enable_dependency_tracking+set}" = set; then :
3057  enableval=$enable_dependency_tracking;
3058fi
3059
3060if test "x$enable_dependency_tracking" != xno; then
3061  am_depcomp="$ac_aux_dir/depcomp"
3062  AMDEPBACKSLASH='\'
3063  am__nodep='_no'
3064fi
3065 if test "x$enable_dependency_tracking" != xno; then
3066  AMDEP_TRUE=
3067  AMDEP_FALSE='#'
3068else
3069  AMDEP_TRUE='#'
3070  AMDEP_FALSE=
3071fi
3072
3073
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if ${ac_cv_prog_CC+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$CC"; then
3088  ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095    for ac_exec_ext in '' $ac_executable_extensions; do
3096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102  done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107CC=$ac_cv_prog_CC
3108if test -n "$CC"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110$as_echo "$CC" >&6; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117fi
3118if test -z "$ac_cv_prog_CC"; then
3119  ac_ct_CC=$CC
3120  # Extract the first word of "gcc", so it can be a program name with args.
3121set dummy gcc; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$ac_ct_CC"; then
3128  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_ac_ct_CC="gcc"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148if test -n "$ac_ct_CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150$as_echo "$ac_ct_CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156  if test "x$ac_ct_CC" = x; then
3157    CC=""
3158  else
3159    case $cross_compiling:$ac_tool_warned in
3160yes:)
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163ac_tool_warned=yes ;;
3164esac
3165    CC=$ac_ct_CC
3166  fi
3167else
3168  CC="$ac_cv_prog_CC"
3169fi
3170
3171if test -z "$CC"; then
3172          if test -n "$ac_tool_prefix"; then
3173    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}cc; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_CC+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$CC"; then
3181  ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_CC="${ac_tool_prefix}cc"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210  fi
3211fi
3212if test -z "$CC"; then
3213  # Extract the first word of "cc", so it can be a program name with args.
3214set dummy cc; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_CC+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$CC"; then
3221  ac_cv_prog_CC="$CC" # Let the user override the test.
3222else
3223  ac_prog_rejected=no
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3232       ac_prog_rejected=yes
3233       continue
3234     fi
3235    ac_cv_prog_CC="cc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243if test $ac_prog_rejected = yes; then
3244  # We found a bogon in the path, so make sure we never use it.
3245  set dummy $ac_cv_prog_CC
3246  shift
3247  if test $# != 0; then
3248    # We chose a different compiler from the bogus one.
3249    # However, it has the same basename, so the bogon will be chosen
3250    # first if we set CC to just the basename; use the full file name.
3251    shift
3252    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253  fi
3254fi
3255fi
3256fi
3257CC=$ac_cv_prog_CC
3258if test -n "$CC"; then
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260$as_echo "$CC" >&6; }
3261else
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264fi
3265
3266
3267fi
3268if test -z "$CC"; then
3269  if test -n "$ac_tool_prefix"; then
3270  for ac_prog in cl.exe
3271  do
3272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$CC"; then
3280  ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309    test -n "$CC" && break
3310  done
3311fi
3312if test -z "$CC"; then
3313  ac_ct_CC=$CC
3314  for ac_prog in cl.exe
3315do
3316  # Extract the first word of "$ac_prog", so it can be a program name with args.
3317set dummy $ac_prog; ac_word=$2
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319$as_echo_n "checking for $ac_word... " >&6; }
3320if ${ac_cv_prog_ac_ct_CC+:} false; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  if test -n "$ac_ct_CC"; then
3324  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325else
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331    for ac_exec_ext in '' $ac_executable_extensions; do
3332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333    ac_cv_prog_ac_ct_CC="$ac_prog"
3334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338  done
3339IFS=$as_save_IFS
3340
3341fi
3342fi
3343ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344if test -n "$ac_ct_CC"; then
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346$as_echo "$ac_ct_CC" >&6; }
3347else
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350fi
3351
3352
3353  test -n "$ac_ct_CC" && break
3354done
3355
3356  if test "x$ac_ct_CC" = x; then
3357    CC=""
3358  else
3359    case $cross_compiling:$ac_tool_warned in
3360yes:)
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363ac_tool_warned=yes ;;
3364esac
3365    CC=$ac_ct_CC
3366  fi
3367fi
3368
3369fi
3370
3371
3372test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "no acceptable C compiler found in \$PATH
3375See \`config.log' for more details" "$LINENO" 5; }
3376
3377# Provide some information about the compiler.
3378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379set X $ac_compile
3380ac_compiler=$2
3381for ac_option in --version -v -V -qversion; do
3382  { { ac_try="$ac_compiler $ac_option >&5"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390  ac_status=$?
3391  if test -s conftest.err; then
3392    sed '10a\
3393... rest of stderr output deleted ...
3394         10q' conftest.err >conftest.er1
3395    cat conftest.er1 >&5
3396  fi
3397  rm -f conftest.er1 conftest.err
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; }
3400done
3401
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413ac_clean_files_save=$ac_clean_files
3414ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3415# Try to create an executable without -o first, disregard a.out.
3416# It will help us diagnose broken compilers, and finding out an intuition
3417# of exeext.
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3419$as_echo_n "checking whether the C compiler works... " >&6; }
3420ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421
3422# The possible output files:
3423ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424
3425ac_rmfiles=
3426for ac_file in $ac_files
3427do
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431  esac
3432done
3433rm -f $ac_rmfiles
3434
3435if { { ac_try="$ac_link_default"
3436case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442  (eval "$ac_link_default") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }; then :
3446  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3447# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3448# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3449# so that the user can short-circuit this test for compilers unknown to
3450# Autoconf.
3451for ac_file in $ac_files ''
3452do
3453  test -f "$ac_file" || continue
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456	;;
3457    [ab].out )
3458	# We found the default executable, but exeext='' is most
3459	# certainly right.
3460	break;;
3461    *.* )
3462	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463	then :; else
3464	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465	fi
3466	# We set ac_cv_exeext here because the later test for it is not
3467	# safe: cross compilers may not add the suffix if given an `-o'
3468	# argument, so we may need to know it at that point already.
3469	# Even if this section looks crufty: it has the advantage of
3470	# actually working.
3471	break;;
3472    * )
3473	break;;
3474  esac
3475done
3476test "$ac_cv_exeext" = no && ac_cv_exeext=
3477
3478else
3479  ac_file=''
3480fi
3481if test -z "$ac_file"; then :
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484$as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error 77 "C compiler cannot create executables
3490See \`config.log' for more details" "$LINENO" 5; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3496$as_echo_n "checking for C compiler default output file name... " >&6; }
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498$as_echo "$ac_file" >&6; }
3499ac_exeext=$ac_cv_exeext
3500
3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504$as_echo_n "checking for suffix of executables... " >&6; }
3505if { { ac_try="$ac_link"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_link") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; then :
3516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3518# work properly (i.e., refer to `conftest.exe'), while it won't with
3519# `rm'.
3520for ac_file in conftest.exe conftest conftest.*; do
3521  test -f "$ac_file" || continue
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525	  break;;
3526    * ) break;;
3527  esac
3528done
3529else
3530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3533See \`config.log' for more details" "$LINENO" 5; }
3534fi
3535rm -f conftest conftest$ac_cv_exeext
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537$as_echo "$ac_cv_exeext" >&6; }
3538
3539rm -f conftest.$ac_ext
3540EXEEXT=$ac_cv_exeext
3541ac_exeext=$EXEEXT
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdio.h>
3545int
3546main ()
3547{
3548FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555ac_clean_files="$ac_clean_files conftest.out"
3556# Check that the compiler produces executables we can run.  If not, either
3557# the compiler is broken, or we cross compile.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559$as_echo_n "checking whether we are cross compiling... " >&6; }
3560if test "$cross_compiling" != yes; then
3561  { { ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_link") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572  if { ac_try='./conftest$ac_cv_exeext'
3573  { { case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_try") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; }; then
3583    cross_compiling=no
3584  else
3585    if test "$cross_compiling" = maybe; then
3586	cross_compiling=yes
3587    else
3588	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error $? "cannot run C compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details" "$LINENO" 5; }
3593    fi
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597$as_echo "$cross_compiling" >&6; }
3598
3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602$as_echo_n "checking for suffix of object files... " >&6; }
3603if ${ac_cv_objext+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.o conftest.obj
3618if { { ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_compile") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  for ac_file in conftest.o conftest.obj conftest.*; do
3630  test -f "$ac_file" || continue;
3631  case $ac_file in
3632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634       break;;
3635  esac
3636done
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error $? "cannot compute suffix of object files: cannot compile
3644See \`config.log' for more details" "$LINENO" 5; }
3645fi
3646rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649$as_echo "$ac_cv_objext" >&6; }
3650OBJEXT=$ac_cv_objext
3651ac_objext=$OBJEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654if ${ac_cv_c_compiler_gnu+:} false; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663#ifndef __GNUC__
3664       choke me
3665#endif
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_c_try_compile "$LINENO"; then :
3672  ac_compiler_gnu=yes
3673else
3674  ac_compiler_gnu=no
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682if test $ac_compiler_gnu = yes; then
3683  GCC=yes
3684else
3685  GCC=
3686fi
3687ac_test_CFLAGS=${CFLAGS+set}
3688ac_save_CFLAGS=$CFLAGS
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690$as_echo_n "checking whether $CC accepts -g... " >&6; }
3691if ${ac_cv_prog_cc_g+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_save_c_werror_flag=$ac_c_werror_flag
3695   ac_c_werror_flag=yes
3696   ac_cv_prog_cc_g=no
3697   CFLAGS="-g"
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_cv_prog_cc_g=yes
3711else
3712  CFLAGS=""
3713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725
3726else
3727  ac_c_werror_flag=$ac_save_c_werror_flag
3728	 CFLAGS="-g"
3729	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_g=yes
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748   ac_c_werror_flag=$ac_save_c_werror_flag
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751$as_echo "$ac_cv_prog_cc_g" >&6; }
3752if test "$ac_test_CFLAGS" = set; then
3753  CFLAGS=$ac_save_CFLAGS
3754elif test $ac_cv_prog_cc_g = yes; then
3755  if test "$GCC" = yes; then
3756    CFLAGS="-g -O2"
3757  else
3758    CFLAGS="-g"
3759  fi
3760else
3761  if test "$GCC" = yes; then
3762    CFLAGS="-O2"
3763  else
3764    CFLAGS=
3765  fi
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769if ${ac_cv_prog_cc_c89+:} false; then :
3770  $as_echo_n "(cached) " >&6
3771else
3772  ac_cv_prog_cc_c89=no
3773ac_save_CC=$CC
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776#include <stdarg.h>
3777#include <stdio.h>
3778struct stat;
3779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3780struct buf { int x; };
3781FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782static char *e (p, i)
3783     char **p;
3784     int i;
3785{
3786  return p[i];
3787}
3788static char *f (char * (*g) (char **, int), char **p, ...)
3789{
3790  char *s;
3791  va_list v;
3792  va_start (v,p);
3793  s = g (p, va_arg (v,int));
3794  va_end (v);
3795  return s;
3796}
3797
3798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3799   function prototypes and stuff, but not '\xHH' hex character constants.
3800   These don't provoke an error unfortunately, instead are silently treated
3801   as 'x'.  The following induces an error, until -std is added to get
3802   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3803   array size at least.  It's necessary to write '\x00'==0 to get something
3804   that's true only with -std.  */
3805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806
3807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808   inside strings and character constants.  */
3809#define FOO(x) 'x'
3810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811
3812int test (int i, double x);
3813struct s1 {int (*f) (int a);};
3814struct s2 {int (*f) (double a);};
3815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816int argc;
3817char **argv;
3818int
3819main ()
3820{
3821return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828do
3829  CC="$ac_save_CC $ac_arg"
3830  if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_cv_prog_cc_c89=$ac_arg
3832fi
3833rm -f core conftest.err conftest.$ac_objext
3834  test "x$ac_cv_prog_cc_c89" != "xno" && break
3835done
3836rm -f conftest.$ac_ext
3837CC=$ac_save_CC
3838
3839fi
3840# AC_CACHE_VAL
3841case "x$ac_cv_prog_cc_c89" in
3842  x)
3843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844$as_echo "none needed" >&6; } ;;
3845  xno)
3846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847$as_echo "unsupported" >&6; } ;;
3848  *)
3849    CC="$CC $ac_cv_prog_cc_c89"
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852esac
3853if test "x$ac_cv_prog_cc_c89" != xno; then :
3854
3855fi
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3869$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3870if ${am_cv_prog_cc_c_o+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884  # Make sure it works both with $CC and with simple cc.
3885  # Following AC_PROG_CC_C_O, we do the test twice because some
3886  # compilers refuse to overwrite an existing .o file with -o,
3887  # though they will create one.
3888  am_cv_prog_cc_c_o=yes
3889  for am_i in 1 2; do
3890    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3891   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); } \
3895         && test -f conftest2.$ac_objext; then
3896      : OK
3897    else
3898      am_cv_prog_cc_c_o=no
3899      break
3900    fi
3901  done
3902  rm -f core conftest*
3903  unset am_i
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3906$as_echo "$am_cv_prog_cc_c_o" >&6; }
3907if test "$am_cv_prog_cc_c_o" != yes; then
3908   # Losing compiler, so override with the script.
3909   # FIXME: It is wrong to rewrite CC.
3910   # But if we don't then we get into trouble of one sort or another.
3911   # A longer-term fix would be to have automake use am__CC in this case,
3912   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3913   CC="$am_aux_dir/compile $CC"
3914fi
3915ac_ext=c
3916ac_cpp='$CPP $CPPFLAGS'
3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921
3922depcc="$CC"   am_compiler_list=
3923
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925$as_echo_n "checking dependency style of $depcc... " >&6; }
3926if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930  # We make a subdir and do the tests there.  Otherwise we can end up
3931  # making bogus files that we don't know about and never remove.  For
3932  # instance it was reported that on HP-UX the gcc test will end up
3933  # making a dummy file named 'D' -- because '-MD' means "put the output
3934  # in D".
3935  rm -rf conftest.dir
3936  mkdir conftest.dir
3937  # Copy depcomp to subdir because otherwise we won't find it if we're
3938  # using a relative directory.
3939  cp "$am_depcomp" conftest.dir
3940  cd conftest.dir
3941  # We will build objects and dependencies in a subdirectory because
3942  # it helps to detect inapplicable dependency modes.  For instance
3943  # both Tru64's cc and ICC support -MD to output dependencies as a
3944  # side effect of compilation, but ICC will put the dependencies in
3945  # the current directory while Tru64 will put them in the object
3946  # directory.
3947  mkdir sub
3948
3949  am_cv_CC_dependencies_compiler_type=none
3950  if test "$am_compiler_list" = ""; then
3951     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952  fi
3953  am__universal=false
3954  case " $depcc " in #(
3955     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3956     esac
3957
3958  for depmode in $am_compiler_list; do
3959    # Setup a source with many dependencies, because some compilers
3960    # like to wrap large dependency lists on column 80 (with \), and
3961    # we should not choose a depcomp mode which is confused by this.
3962    #
3963    # We need to recreate these files for each test, as the compiler may
3964    # overwrite some of them when testing with obscure command lines.
3965    # This happens at least with the AIX C compiler.
3966    : > sub/conftest.c
3967    for i in 1 2 3 4 5 6; do
3968      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3969      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3970      # Solaris 10 /bin/sh.
3971      echo '/* dummy */' > sub/conftst$i.h
3972    done
3973    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974
3975    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3976    # mode.  It turns out that the SunPro C++ compiler does not properly
3977    # handle '-M -o', and we need to detect this.  Also, some Intel
3978    # versions had trouble with output in subdirs.
3979    am__obj=sub/conftest.${OBJEXT-o}
3980    am__minus_obj="-o $am__obj"
3981    case $depmode in
3982    gcc)
3983      # This depmode causes a compiler race in universal mode.
3984      test "$am__universal" = false || continue
3985      ;;
3986    nosideeffect)
3987      # After this tag, mechanisms are not by side-effect, so they'll
3988      # only be used when explicitly requested.
3989      if test "x$enable_dependency_tracking" = xyes; then
3990	continue
3991      else
3992	break
3993      fi
3994      ;;
3995    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3996      # This compiler won't grok '-c -o', but also, the minuso test has
3997      # not run yet.  These depmodes are late enough in the game, and
3998      # so weak that their functioning should not be impacted.
3999      am__obj=conftest.${OBJEXT-o}
4000      am__minus_obj=
4001      ;;
4002    none) break ;;
4003    esac
4004    if depmode=$depmode \
4005       source=sub/conftest.c object=$am__obj \
4006       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4007       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4008         >/dev/null 2>conftest.err &&
4009       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4010       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4011       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4012       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4013      # icc doesn't choke on unknown options, it will just issue warnings
4014      # or remarks (even with -Werror).  So we grep stderr for any message
4015      # that says an option was ignored or not supported.
4016      # When given -MP, icc 7.0 and 7.1 complain thusly:
4017      #   icc: Command line warning: ignoring option '-M'; no argument required
4018      # The diagnosis changed in icc 8.0:
4019      #   icc: Command line remark: option '-MP' not supported
4020      if (grep 'ignoring option' conftest.err ||
4021          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4022        am_cv_CC_dependencies_compiler_type=$depmode
4023        break
4024      fi
4025    fi
4026  done
4027
4028  cd ..
4029  rm -rf conftest.dir
4030else
4031  am_cv_CC_dependencies_compiler_type=none
4032fi
4033
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4036$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4037CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4038
4039 if
4040  test "x$enable_dependency_tracking" != xno \
4041  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042  am__fastdepCC_TRUE=
4043  am__fastdepCC_FALSE='#'
4044else
4045  am__fastdepCC_TRUE='#'
4046  am__fastdepCC_FALSE=
4047fi
4048
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4051$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4052if ${ac_cv_path_SED+:} false; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4056     for ac_i in 1 2 3 4 5 6 7; do
4057       ac_script="$ac_script$as_nl$ac_script"
4058     done
4059     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4060     { ac_script=; unset ac_script;}
4061     if test -z "$SED"; then
4062  ac_path_SED_found=false
4063  # Loop through the user's path and test for each of PROGNAME-LIST
4064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067  IFS=$as_save_IFS
4068  test -z "$as_dir" && as_dir=.
4069    for ac_prog in sed gsed; do
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4072      as_fn_executable_p "$ac_path_SED" || continue
4073# Check for GNU ac_path_SED and select it if it is found.
4074  # Check for GNU $ac_path_SED
4075case `"$ac_path_SED" --version 2>&1` in
4076*GNU*)
4077  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4078*)
4079  ac_count=0
4080  $as_echo_n 0123456789 >"conftest.in"
4081  while :
4082  do
4083    cat "conftest.in" "conftest.in" >"conftest.tmp"
4084    mv "conftest.tmp" "conftest.in"
4085    cp "conftest.in" "conftest.nl"
4086    $as_echo '' >> "conftest.nl"
4087    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089    as_fn_arith $ac_count + 1 && ac_count=$as_val
4090    if test $ac_count -gt ${ac_path_SED_max-0}; then
4091      # Best one so far, save it but keep looking for a better one
4092      ac_cv_path_SED="$ac_path_SED"
4093      ac_path_SED_max=$ac_count
4094    fi
4095    # 10*(2^10) chars as input seems more than enough
4096    test $ac_count -gt 10 && break
4097  done
4098  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099esac
4100
4101      $ac_path_SED_found && break 3
4102    done
4103  done
4104  done
4105IFS=$as_save_IFS
4106  if test -z "$ac_cv_path_SED"; then
4107    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4108  fi
4109else
4110  ac_cv_path_SED=$SED
4111fi
4112
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4115$as_echo "$ac_cv_path_SED" >&6; }
4116 SED="$ac_cv_path_SED"
4117  rm -f conftest.sed
4118
4119test -z "$SED" && SED=sed
4120Xsed="$SED -e 1s/^X//"
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4133$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4134if ${ac_cv_path_GREP+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  if test -z "$GREP"; then
4138  ac_path_GREP_found=false
4139  # Loop through the user's path and test for each of PROGNAME-LIST
4140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145    for ac_prog in grep ggrep; do
4146    for ac_exec_ext in '' $ac_executable_extensions; do
4147      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4148      as_fn_executable_p "$ac_path_GREP" || continue
4149# Check for GNU ac_path_GREP and select it if it is found.
4150  # Check for GNU $ac_path_GREP
4151case `"$ac_path_GREP" --version 2>&1` in
4152*GNU*)
4153  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154*)
4155  ac_count=0
4156  $as_echo_n 0123456789 >"conftest.in"
4157  while :
4158  do
4159    cat "conftest.in" "conftest.in" >"conftest.tmp"
4160    mv "conftest.tmp" "conftest.in"
4161    cp "conftest.in" "conftest.nl"
4162    $as_echo 'GREP' >> "conftest.nl"
4163    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165    as_fn_arith $ac_count + 1 && ac_count=$as_val
4166    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4167      # Best one so far, save it but keep looking for a better one
4168      ac_cv_path_GREP="$ac_path_GREP"
4169      ac_path_GREP_max=$ac_count
4170    fi
4171    # 10*(2^10) chars as input seems more than enough
4172    test $ac_count -gt 10 && break
4173  done
4174  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175esac
4176
4177      $ac_path_GREP_found && break 3
4178    done
4179  done
4180  done
4181IFS=$as_save_IFS
4182  if test -z "$ac_cv_path_GREP"; then
4183    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184  fi
4185else
4186  ac_cv_path_GREP=$GREP
4187fi
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4191$as_echo "$ac_cv_path_GREP" >&6; }
4192 GREP="$ac_cv_path_GREP"
4193
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4196$as_echo_n "checking for egrep... " >&6; }
4197if ${ac_cv_path_EGREP+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4201   then ac_cv_path_EGREP="$GREP -E"
4202   else
4203     if test -z "$EGREP"; then
4204  ac_path_EGREP_found=false
4205  # Loop through the user's path and test for each of PROGNAME-LIST
4206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_prog in egrep; do
4212    for ac_exec_ext in '' $ac_executable_extensions; do
4213      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4214      as_fn_executable_p "$ac_path_EGREP" || continue
4215# Check for GNU ac_path_EGREP and select it if it is found.
4216  # Check for GNU $ac_path_EGREP
4217case `"$ac_path_EGREP" --version 2>&1` in
4218*GNU*)
4219  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4220*)
4221  ac_count=0
4222  $as_echo_n 0123456789 >"conftest.in"
4223  while :
4224  do
4225    cat "conftest.in" "conftest.in" >"conftest.tmp"
4226    mv "conftest.tmp" "conftest.in"
4227    cp "conftest.in" "conftest.nl"
4228    $as_echo 'EGREP' >> "conftest.nl"
4229    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231    as_fn_arith $ac_count + 1 && ac_count=$as_val
4232    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4233      # Best one so far, save it but keep looking for a better one
4234      ac_cv_path_EGREP="$ac_path_EGREP"
4235      ac_path_EGREP_max=$ac_count
4236    fi
4237    # 10*(2^10) chars as input seems more than enough
4238    test $ac_count -gt 10 && break
4239  done
4240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241esac
4242
4243      $ac_path_EGREP_found && break 3
4244    done
4245  done
4246  done
4247IFS=$as_save_IFS
4248  if test -z "$ac_cv_path_EGREP"; then
4249    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250  fi
4251else
4252  ac_cv_path_EGREP=$EGREP
4253fi
4254
4255   fi
4256fi
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4258$as_echo "$ac_cv_path_EGREP" >&6; }
4259 EGREP="$ac_cv_path_EGREP"
4260
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4263$as_echo_n "checking for fgrep... " >&6; }
4264if ${ac_cv_path_FGREP+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4268   then ac_cv_path_FGREP="$GREP -F"
4269   else
4270     if test -z "$FGREP"; then
4271  ac_path_FGREP_found=false
4272  # Loop through the user's path and test for each of PROGNAME-LIST
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278    for ac_prog in fgrep; do
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4281      as_fn_executable_p "$ac_path_FGREP" || continue
4282# Check for GNU ac_path_FGREP and select it if it is found.
4283  # Check for GNU $ac_path_FGREP
4284case `"$ac_path_FGREP" --version 2>&1` in
4285*GNU*)
4286  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4287*)
4288  ac_count=0
4289  $as_echo_n 0123456789 >"conftest.in"
4290  while :
4291  do
4292    cat "conftest.in" "conftest.in" >"conftest.tmp"
4293    mv "conftest.tmp" "conftest.in"
4294    cp "conftest.in" "conftest.nl"
4295    $as_echo 'FGREP' >> "conftest.nl"
4296    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298    as_fn_arith $ac_count + 1 && ac_count=$as_val
4299    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4300      # Best one so far, save it but keep looking for a better one
4301      ac_cv_path_FGREP="$ac_path_FGREP"
4302      ac_path_FGREP_max=$ac_count
4303    fi
4304    # 10*(2^10) chars as input seems more than enough
4305    test $ac_count -gt 10 && break
4306  done
4307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308esac
4309
4310      $ac_path_FGREP_found && break 3
4311    done
4312  done
4313  done
4314IFS=$as_save_IFS
4315  if test -z "$ac_cv_path_FGREP"; then
4316    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317  fi
4318else
4319  ac_cv_path_FGREP=$FGREP
4320fi
4321
4322   fi
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4325$as_echo "$ac_cv_path_FGREP" >&6; }
4326 FGREP="$ac_cv_path_FGREP"
4327
4328
4329test -z "$GREP" && GREP=grep
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349# Check whether --with-gnu-ld was given.
4350if test "${with_gnu_ld+set}" = set; then :
4351  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4352else
4353  with_gnu_ld=no
4354fi
4355
4356ac_prog=ld
4357if test yes = "$GCC"; then
4358  # Check if gcc -print-prog-name=ld gives a path.
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4360$as_echo_n "checking for ld used by $CC... " >&6; }
4361  case $host in
4362  *-*-mingw*)
4363    # gcc leaves a trailing carriage return, which upsets mingw
4364    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4365  *)
4366    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4367  esac
4368  case $ac_prog in
4369    # Accept absolute paths.
4370    [\\/]* | ?:[\\/]*)
4371      re_direlt='/[^/][^/]*/\.\./'
4372      # Canonicalize the pathname of ld
4373      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4374      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4375	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4376      done
4377      test -z "$LD" && LD=$ac_prog
4378      ;;
4379  "")
4380    # If it fails, then pretend we aren't using GCC.
4381    ac_prog=ld
4382    ;;
4383  *)
4384    # If it is relative, then search for the first ld in PATH.
4385    with_gnu_ld=unknown
4386    ;;
4387  esac
4388elif test yes = "$with_gnu_ld"; then
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4390$as_echo_n "checking for GNU ld... " >&6; }
4391else
4392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4393$as_echo_n "checking for non-GNU ld... " >&6; }
4394fi
4395if ${lt_cv_path_LD+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -z "$LD"; then
4399  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4400  for ac_dir in $PATH; do
4401    IFS=$lt_save_ifs
4402    test -z "$ac_dir" && ac_dir=.
4403    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4404      lt_cv_path_LD=$ac_dir/$ac_prog
4405      # Check to see if the program is GNU ld.  I'd rather use --version,
4406      # but apparently some variants of GNU ld only accept -v.
4407      # Break only if it was the GNU/non-GNU ld that we prefer.
4408      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4409      *GNU* | *'with BFD'*)
4410	test no != "$with_gnu_ld" && break
4411	;;
4412      *)
4413	test yes != "$with_gnu_ld" && break
4414	;;
4415      esac
4416    fi
4417  done
4418  IFS=$lt_save_ifs
4419else
4420  lt_cv_path_LD=$LD # Let the user override the test with a path.
4421fi
4422fi
4423
4424LD=$lt_cv_path_LD
4425if test -n "$LD"; then
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4427$as_echo "$LD" >&6; }
4428else
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
4431fi
4432test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4434$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4435if ${lt_cv_prog_gnu_ld+:} false; then :
4436  $as_echo_n "(cached) " >&6
4437else
4438  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439case `$LD -v 2>&1 </dev/null` in
4440*GNU* | *'with BFD'*)
4441  lt_cv_prog_gnu_ld=yes
4442  ;;
4443*)
4444  lt_cv_prog_gnu_ld=no
4445  ;;
4446esac
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4449$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4450with_gnu_ld=$lt_cv_prog_gnu_ld
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4461$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4462if ${lt_cv_path_NM+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  if test -n "$NM"; then
4466  # Let the user override the test.
4467  lt_cv_path_NM=$NM
4468else
4469  lt_nm_to_check=${ac_tool_prefix}nm
4470  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4471    lt_nm_to_check="$lt_nm_to_check nm"
4472  fi
4473  for lt_tmp_nm in $lt_nm_to_check; do
4474    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4475    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4476      IFS=$lt_save_ifs
4477      test -z "$ac_dir" && ac_dir=.
4478      tmp_nm=$ac_dir/$lt_tmp_nm
4479      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4480	# Check to see if the nm accepts a BSD-compat flag.
4481	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4482	#   nm: unknown option "B" ignored
4483	# Tru64's nm complains that /dev/null is an invalid object file
4484	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4485	case $build_os in
4486	mingw*) lt_bad_file=conftest.nm/nofile ;;
4487	*) lt_bad_file=/dev/null ;;
4488	esac
4489	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4490	*$lt_bad_file* | *'Invalid file or object type'*)
4491	  lt_cv_path_NM="$tmp_nm -B"
4492	  break 2
4493	  ;;
4494	*)
4495	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496	  */dev/null*)
4497	    lt_cv_path_NM="$tmp_nm -p"
4498	    break 2
4499	    ;;
4500	  *)
4501	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502	    continue # so that we can try to find one that supports BSD flags
4503	    ;;
4504	  esac
4505	  ;;
4506	esac
4507      fi
4508    done
4509    IFS=$lt_save_ifs
4510  done
4511  : ${lt_cv_path_NM=no}
4512fi
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4515$as_echo "$lt_cv_path_NM" >&6; }
4516if test no != "$lt_cv_path_NM"; then
4517  NM=$lt_cv_path_NM
4518else
4519  # Didn't find any BSD compatible name lister, look for dumpbin.
4520  if test -n "$DUMPBIN"; then :
4521    # Let the user override the test.
4522  else
4523    if test -n "$ac_tool_prefix"; then
4524  for ac_prog in dumpbin "link -dump"
4525  do
4526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_prog_DUMPBIN+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$DUMPBIN"; then
4534  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553DUMPBIN=$ac_cv_prog_DUMPBIN
4554if test -n "$DUMPBIN"; then
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4556$as_echo "$DUMPBIN" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563    test -n "$DUMPBIN" && break
4564  done
4565fi
4566if test -z "$DUMPBIN"; then
4567  ac_ct_DUMPBIN=$DUMPBIN
4568  for ac_prog in dumpbin "link -dump"
4569do
4570  # Extract the first word of "$ac_prog", so it can be a program name with args.
4571set dummy $ac_prog; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
4574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  if test -n "$ac_ct_DUMPBIN"; then
4578  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585    for ac_exec_ext in '' $ac_executable_extensions; do
4586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592  done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4598if test -n "$ac_ct_DUMPBIN"; then
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4600$as_echo "$ac_ct_DUMPBIN" >&6; }
4601else
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604fi
4605
4606
4607  test -n "$ac_ct_DUMPBIN" && break
4608done
4609
4610  if test "x$ac_ct_DUMPBIN" = x; then
4611    DUMPBIN=":"
4612  else
4613    case $cross_compiling:$ac_tool_warned in
4614yes:)
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617ac_tool_warned=yes ;;
4618esac
4619    DUMPBIN=$ac_ct_DUMPBIN
4620  fi
4621fi
4622
4623    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4624    *COFF*)
4625      DUMPBIN="$DUMPBIN -symbols -headers"
4626      ;;
4627    *)
4628      DUMPBIN=:
4629      ;;
4630    esac
4631  fi
4632
4633  if test : != "$DUMPBIN"; then
4634    NM=$DUMPBIN
4635  fi
4636fi
4637test -z "$NM" && NM=nm
4638
4639
4640
4641
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4645$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4646if ${lt_cv_nm_interface+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  lt_cv_nm_interface="BSD nm"
4650  echo "int some_variable = 0;" > conftest.$ac_ext
4651  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4652  (eval "$ac_compile" 2>conftest.err)
4653  cat conftest.err >&5
4654  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4655  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4656  cat conftest.err >&5
4657  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4658  cat conftest.out >&5
4659  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4660    lt_cv_nm_interface="MS dumpbin"
4661  fi
4662  rm -f conftest*
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4665$as_echo "$lt_cv_nm_interface" >&6; }
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4668$as_echo_n "checking whether ln -s works... " >&6; }
4669LN_S=$as_ln_s
4670if test "$LN_S" = "ln -s"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672$as_echo "yes" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4675$as_echo "no, using $LN_S" >&6; }
4676fi
4677
4678# find the maximum length of command line arguments
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4680$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4681if ${lt_cv_sys_max_cmd_len+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684    i=0
4685  teststring=ABCD
4686
4687  case $build_os in
4688  msdosdjgpp*)
4689    # On DJGPP, this test can blow up pretty badly due to problems in libc
4690    # (any single argument exceeding 2000 bytes causes a buffer overrun
4691    # during glob expansion).  Even if it were fixed, the result of this
4692    # check would be larger than it should be.
4693    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4694    ;;
4695
4696  gnu*)
4697    # Under GNU Hurd, this test is not required because there is
4698    # no limit to the length of command line arguments.
4699    # Libtool will interpret -1 as no limit whatsoever
4700    lt_cv_sys_max_cmd_len=-1;
4701    ;;
4702
4703  cygwin* | mingw* | cegcc*)
4704    # On Win9x/ME, this test blows up -- it succeeds, but takes
4705    # about 5 minutes as the teststring grows exponentially.
4706    # Worse, since 9x/ME are not pre-emptively multitasking,
4707    # you end up with a "frozen" computer, even though with patience
4708    # the test eventually succeeds (with a max line length of 256k).
4709    # Instead, let's just punt: use the minimum linelength reported by
4710    # all of the supported platforms: 8192 (on NT/2K/XP).
4711    lt_cv_sys_max_cmd_len=8192;
4712    ;;
4713
4714  mint*)
4715    # On MiNT this can take a long time and run out of memory.
4716    lt_cv_sys_max_cmd_len=8192;
4717    ;;
4718
4719  amigaos*)
4720    # On AmigaOS with pdksh, this test takes hours, literally.
4721    # So we just punt and use a minimum line length of 8192.
4722    lt_cv_sys_max_cmd_len=8192;
4723    ;;
4724
4725  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4726    # This has been around since 386BSD, at least.  Likely further.
4727    if test -x /sbin/sysctl; then
4728      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4729    elif test -x /usr/sbin/sysctl; then
4730      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4731    else
4732      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4733    fi
4734    # And add a safety zone
4735    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4736    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737    ;;
4738
4739  interix*)
4740    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4741    lt_cv_sys_max_cmd_len=196608
4742    ;;
4743
4744  os2*)
4745    # The test takes a long time on OS/2.
4746    lt_cv_sys_max_cmd_len=8192
4747    ;;
4748
4749  osf*)
4750    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4751    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4752    # nice to cause kernel panics so lets avoid the loop below.
4753    # First set a reasonable default.
4754    lt_cv_sys_max_cmd_len=16384
4755    #
4756    if test -x /sbin/sysconfig; then
4757      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4758        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4759      esac
4760    fi
4761    ;;
4762  sco3.2v5*)
4763    lt_cv_sys_max_cmd_len=102400
4764    ;;
4765  sysv5* | sco5v6* | sysv4.2uw2*)
4766    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4767    if test -n "$kargmax"; then
4768      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4769    else
4770      lt_cv_sys_max_cmd_len=32768
4771    fi
4772    ;;
4773  *)
4774    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4775    if test -n "$lt_cv_sys_max_cmd_len" && \
4776       test undefined != "$lt_cv_sys_max_cmd_len"; then
4777      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4778      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4779    else
4780      # Make teststring a little bigger before we do anything with it.
4781      # a 1K string should be a reasonable start.
4782      for i in 1 2 3 4 5 6 7 8; do
4783        teststring=$teststring$teststring
4784      done
4785      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4786      # If test is not a shell built-in, we'll probably end up computing a
4787      # maximum length that is only half of the actual maximum length, but
4788      # we can't tell.
4789      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4790	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4791	      test 17 != "$i" # 1/2 MB should be enough
4792      do
4793        i=`expr $i + 1`
4794        teststring=$teststring$teststring
4795      done
4796      # Only check the string length outside the loop.
4797      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4798      teststring=
4799      # Add a significant safety factor because C++ compilers can tack on
4800      # massive amounts of additional arguments before passing them to the
4801      # linker.  It appears as though 1/2 is a usable value.
4802      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4803    fi
4804    ;;
4805  esac
4806
4807fi
4808
4809if test -n "$lt_cv_sys_max_cmd_len"; then
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4811$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4812else
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4814$as_echo "none" >&6; }
4815fi
4816max_cmd_len=$lt_cv_sys_max_cmd_len
4817
4818
4819
4820
4821
4822
4823: ${CP="cp -f"}
4824: ${MV="mv -f"}
4825: ${RM="rm -f"}
4826
4827if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4828  lt_unset=unset
4829else
4830  lt_unset=false
4831fi
4832
4833
4834
4835
4836
4837# test EBCDIC or ASCII
4838case `echo X|tr X '\101'` in
4839 A) # ASCII based system
4840    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841  lt_SP2NL='tr \040 \012'
4842  lt_NL2SP='tr \015\012 \040\040'
4843  ;;
4844 *) # EBCDIC based system
4845  lt_SP2NL='tr \100 \n'
4846  lt_NL2SP='tr \r\n \100\100'
4847  ;;
4848esac
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4859$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4860if ${lt_cv_to_host_file_cmd+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863  case $host in
4864  *-*-mingw* )
4865    case $build in
4866      *-*-mingw* ) # actually msys
4867        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4868        ;;
4869      *-*-cygwin* )
4870        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4871        ;;
4872      * ) # otherwise, assume *nix
4873        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4874        ;;
4875    esac
4876    ;;
4877  *-*-cygwin* )
4878    case $build in
4879      *-*-mingw* ) # actually msys
4880        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4881        ;;
4882      *-*-cygwin* )
4883        lt_cv_to_host_file_cmd=func_convert_file_noop
4884        ;;
4885      * ) # otherwise, assume *nix
4886        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4887        ;;
4888    esac
4889    ;;
4890  * ) # unhandled hosts (and "normal" native builds)
4891    lt_cv_to_host_file_cmd=func_convert_file_noop
4892    ;;
4893esac
4894
4895fi
4896
4897to_host_file_cmd=$lt_cv_to_host_file_cmd
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4899$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4900
4901
4902
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4906$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4907if ${lt_cv_to_tool_file_cmd+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  #assume ordinary cross tools, or native build.
4911lt_cv_to_tool_file_cmd=func_convert_file_noop
4912case $host in
4913  *-*-mingw* )
4914    case $build in
4915      *-*-mingw* ) # actually msys
4916        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4917        ;;
4918    esac
4919    ;;
4920esac
4921
4922fi
4923
4924to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4926$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4927
4928
4929
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4933$as_echo_n "checking for $LD option to reload object files... " >&6; }
4934if ${lt_cv_ld_reload_flag+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  lt_cv_ld_reload_flag='-r'
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4940$as_echo "$lt_cv_ld_reload_flag" >&6; }
4941reload_flag=$lt_cv_ld_reload_flag
4942case $reload_flag in
4943"" | " "*) ;;
4944*) reload_flag=" $reload_flag" ;;
4945esac
4946reload_cmds='$LD$reload_flag -o $output$reload_objs'
4947case $host_os in
4948  cygwin* | mingw* | pw32* | cegcc*)
4949    if test yes != "$GCC"; then
4950      reload_cmds=false
4951    fi
4952    ;;
4953  darwin*)
4954    if test yes = "$GCC"; then
4955      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4956    else
4957      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958    fi
4959    ;;
4960esac
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970if test -n "$ac_tool_prefix"; then
4971  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_OBJDUMP+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$OBJDUMP"; then
4979  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998OBJDUMP=$ac_cv_prog_OBJDUMP
4999if test -n "$OBJDUMP"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5001$as_echo "$OBJDUMP" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007
5008fi
5009if test -z "$ac_cv_prog_OBJDUMP"; then
5010  ac_ct_OBJDUMP=$OBJDUMP
5011  # Extract the first word of "objdump", so it can be a program name with args.
5012set dummy objdump; ac_word=$2
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014$as_echo_n "checking for $ac_word... " >&6; }
5015if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  if test -n "$ac_ct_OBJDUMP"; then
5019  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024  IFS=$as_save_IFS
5025  test -z "$as_dir" && as_dir=.
5026    for ac_exec_ext in '' $ac_executable_extensions; do
5027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033  done
5034IFS=$as_save_IFS
5035
5036fi
5037fi
5038ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039if test -n "$ac_ct_OBJDUMP"; then
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5041$as_echo "$ac_ct_OBJDUMP" >&6; }
5042else
5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
5045fi
5046
5047  if test "x$ac_ct_OBJDUMP" = x; then
5048    OBJDUMP="false"
5049  else
5050    case $cross_compiling:$ac_tool_warned in
5051yes:)
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054ac_tool_warned=yes ;;
5055esac
5056    OBJDUMP=$ac_ct_OBJDUMP
5057  fi
5058else
5059  OBJDUMP="$ac_cv_prog_OBJDUMP"
5060fi
5061
5062test -z "$OBJDUMP" && OBJDUMP=objdump
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5073$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074if ${lt_cv_deplibs_check_method+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  lt_cv_file_magic_cmd='$MAGIC_CMD'
5078lt_cv_file_magic_test_file=
5079lt_cv_deplibs_check_method='unknown'
5080# Need to set the preceding variable on all platforms that support
5081# interlibrary dependencies.
5082# 'none' -- dependencies not supported.
5083# 'unknown' -- same as none, but documents that we really don't know.
5084# 'pass_all' -- all dependencies passed with no checks.
5085# 'test_compile' -- check by making test program.
5086# 'file_magic [[regex]]' -- check by looking for files in library path
5087# that responds to the $file_magic_cmd with a given extended regex.
5088# If you have 'file' or equivalent on your system and you're not sure
5089# whether 'pass_all' will *always* work, you probably want this one.
5090
5091case $host_os in
5092aix[4-9]*)
5093  lt_cv_deplibs_check_method=pass_all
5094  ;;
5095
5096beos*)
5097  lt_cv_deplibs_check_method=pass_all
5098  ;;
5099
5100bsdi[45]*)
5101  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102  lt_cv_file_magic_cmd='/usr/bin/file -L'
5103  lt_cv_file_magic_test_file=/shlib/libc.so
5104  ;;
5105
5106cygwin*)
5107  # func_win32_libid is a shell function defined in ltmain.sh
5108  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109  lt_cv_file_magic_cmd='func_win32_libid'
5110  ;;
5111
5112mingw* | pw32*)
5113  # Base MSYS/MinGW do not provide the 'file' command needed by
5114  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115  # unless we find 'file', for example because we are cross-compiling.
5116  if ( file / ) >/dev/null 2>&1; then
5117    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118    lt_cv_file_magic_cmd='func_win32_libid'
5119  else
5120    # Keep this pattern in sync with the one in func_win32_libid.
5121    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5122    lt_cv_file_magic_cmd='$OBJDUMP -f'
5123  fi
5124  ;;
5125
5126cegcc*)
5127  # use the weaker test based on 'objdump'. See mingw*.
5128  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5129  lt_cv_file_magic_cmd='$OBJDUMP -f'
5130  ;;
5131
5132darwin* | rhapsody*)
5133  lt_cv_deplibs_check_method=pass_all
5134  ;;
5135
5136freebsd* | dragonfly*)
5137  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5138    case $host_cpu in
5139    i*86 )
5140      # Not sure whether the presence of OpenBSD here was a mistake.
5141      # Let's accept both of them until this is cleared up.
5142      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5143      lt_cv_file_magic_cmd=/usr/bin/file
5144      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5145      ;;
5146    esac
5147  else
5148    lt_cv_deplibs_check_method=pass_all
5149  fi
5150  ;;
5151
5152haiku*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156hpux10.20* | hpux11*)
5157  lt_cv_file_magic_cmd=/usr/bin/file
5158  case $host_cpu in
5159  ia64*)
5160    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5161    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162    ;;
5163  hppa*64*)
5164    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]'
5165    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166    ;;
5167  *)
5168    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5169    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5170    ;;
5171  esac
5172  ;;
5173
5174interix[3-9]*)
5175  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5176  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177  ;;
5178
5179irix5* | irix6* | nonstopux*)
5180  case $LD in
5181  *-32|*"-32 ") libmagic=32-bit;;
5182  *-n32|*"-n32 ") libmagic=N32;;
5183  *-64|*"-64 ") libmagic=64-bit;;
5184  *) libmagic=never-match;;
5185  esac
5186  lt_cv_deplibs_check_method=pass_all
5187  ;;
5188
5189# This must be glibc/ELF.
5190linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5191  lt_cv_deplibs_check_method=pass_all
5192  ;;
5193
5194netbsd*)
5195  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197  else
5198    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5199  fi
5200  ;;
5201
5202newos6*)
5203  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5204  lt_cv_file_magic_cmd=/usr/bin/file
5205  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206  ;;
5207
5208*nto* | *qnx*)
5209  lt_cv_deplibs_check_method=pass_all
5210  ;;
5211
5212openbsd* | bitrig*)
5213  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5214    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215  else
5216    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217  fi
5218  ;;
5219
5220osf3* | osf4* | osf5*)
5221  lt_cv_deplibs_check_method=pass_all
5222  ;;
5223
5224rdos*)
5225  lt_cv_deplibs_check_method=pass_all
5226  ;;
5227
5228solaris*)
5229  lt_cv_deplibs_check_method=pass_all
5230  ;;
5231
5232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5233  lt_cv_deplibs_check_method=pass_all
5234  ;;
5235
5236sysv4 | sysv4.3*)
5237  case $host_vendor in
5238  motorola)
5239    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]'
5240    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241    ;;
5242  ncr)
5243    lt_cv_deplibs_check_method=pass_all
5244    ;;
5245  sequent)
5246    lt_cv_file_magic_cmd='/bin/file'
5247    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248    ;;
5249  sni)
5250    lt_cv_file_magic_cmd='/bin/file'
5251    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5252    lt_cv_file_magic_test_file=/lib/libc.so
5253    ;;
5254  siemens)
5255    lt_cv_deplibs_check_method=pass_all
5256    ;;
5257  pc)
5258    lt_cv_deplibs_check_method=pass_all
5259    ;;
5260  esac
5261  ;;
5262
5263tpf*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266os2*)
5267  lt_cv_deplibs_check_method=pass_all
5268  ;;
5269esac
5270
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5273$as_echo "$lt_cv_deplibs_check_method" >&6; }
5274
5275file_magic_glob=
5276want_nocaseglob=no
5277if test "$build" = "$host"; then
5278  case $host_os in
5279  mingw* | pw32*)
5280    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5281      want_nocaseglob=yes
5282    else
5283      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5284    fi
5285    ;;
5286  esac
5287fi
5288
5289file_magic_cmd=$lt_cv_file_magic_cmd
5290deplibs_check_method=$lt_cv_deplibs_check_method
5291test -z "$deplibs_check_method" && deplibs_check_method=unknown
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314if test -n "$ac_tool_prefix"; then
5315  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5316set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
5319if ${ac_cv_prog_DLLTOOL+:} false; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  if test -n "$DLLTOOL"; then
5323  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328  IFS=$as_save_IFS
5329  test -z "$as_dir" && as_dir=.
5330    for ac_exec_ext in '' $ac_executable_extensions; do
5331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334    break 2
5335  fi
5336done
5337  done
5338IFS=$as_save_IFS
5339
5340fi
5341fi
5342DLLTOOL=$ac_cv_prog_DLLTOOL
5343if test -n "$DLLTOOL"; then
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5345$as_echo "$DLLTOOL" >&6; }
5346else
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
5350
5351
5352fi
5353if test -z "$ac_cv_prog_DLLTOOL"; then
5354  ac_ct_DLLTOOL=$DLLTOOL
5355  # Extract the first word of "dlltool", so it can be a program name with args.
5356set dummy dlltool; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$ac_ct_DLLTOOL"; then
5363  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5383if test -n "$ac_ct_DLLTOOL"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5385$as_echo "$ac_ct_DLLTOOL" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391  if test "x$ac_ct_DLLTOOL" = x; then
5392    DLLTOOL="false"
5393  else
5394    case $cross_compiling:$ac_tool_warned in
5395yes:)
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398ac_tool_warned=yes ;;
5399esac
5400    DLLTOOL=$ac_ct_DLLTOOL
5401  fi
5402else
5403  DLLTOOL="$ac_cv_prog_DLLTOOL"
5404fi
5405
5406test -z "$DLLTOOL" && DLLTOOL=dlltool
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5418$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5419if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  lt_cv_sharedlib_from_linklib_cmd='unknown'
5423
5424case $host_os in
5425cygwin* | mingw* | pw32* | cegcc*)
5426  # two different shell functions defined in ltmain.sh;
5427  # decide which one to use based on capabilities of $DLLTOOL
5428  case `$DLLTOOL --help 2>&1` in
5429  *--identify-strict*)
5430    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5431    ;;
5432  *)
5433    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5434    ;;
5435  esac
5436  ;;
5437*)
5438  # fallback: assume linklib IS sharedlib
5439  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5440  ;;
5441esac
5442
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5445$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5446sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5447test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5448
5449
5450
5451
5452
5453
5454
5455
5456if test -n "$ac_tool_prefix"; then
5457  for ac_prog in ar
5458  do
5459    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462$as_echo_n "checking for $ac_word... " >&6; }
5463if ${ac_cv_prog_AR+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  if test -n "$AR"; then
5467  ac_cv_prog_AR="$AR" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472  IFS=$as_save_IFS
5473  test -z "$as_dir" && as_dir=.
5474    for ac_exec_ext in '' $ac_executable_extensions; do
5475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478    break 2
5479  fi
5480done
5481  done
5482IFS=$as_save_IFS
5483
5484fi
5485fi
5486AR=$ac_cv_prog_AR
5487if test -n "$AR"; then
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5489$as_echo "$AR" >&6; }
5490else
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495
5496    test -n "$AR" && break
5497  done
5498fi
5499if test -z "$AR"; then
5500  ac_ct_AR=$AR
5501  for ac_prog in ar
5502do
5503  # Extract the first word of "$ac_prog", so it can be a program name with args.
5504set dummy $ac_prog; ac_word=$2
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
5507if ${ac_cv_prog_ac_ct_AR+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$ac_ct_AR"; then
5511  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518    for ac_exec_ext in '' $ac_executable_extensions; do
5519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520    ac_cv_prog_ac_ct_AR="$ac_prog"
5521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525  done
5526IFS=$as_save_IFS
5527
5528fi
5529fi
5530ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531if test -n "$ac_ct_AR"; then
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5533$as_echo "$ac_ct_AR" >&6; }
5534else
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538
5539
5540  test -n "$ac_ct_AR" && break
5541done
5542
5543  if test "x$ac_ct_AR" = x; then
5544    AR="false"
5545  else
5546    case $cross_compiling:$ac_tool_warned in
5547yes:)
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550ac_tool_warned=yes ;;
5551esac
5552    AR=$ac_ct_AR
5553  fi
5554fi
5555
5556: ${AR=ar}
5557: ${AR_FLAGS=cru}
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5570$as_echo_n "checking for archiver @FILE support... " >&6; }
5571if ${lt_cv_ar_at_file+:} false; then :
5572  $as_echo_n "(cached) " >&6
5573else
5574  lt_cv_ar_at_file=no
5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577
5578int
5579main ()
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_compile "$LINENO"; then :
5587  echo conftest.$ac_objext > conftest.lst
5588      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5589      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5590  (eval $lt_ar_try) 2>&5
5591  ac_status=$?
5592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593  test $ac_status = 0; }
5594      if test 0 -eq "$ac_status"; then
5595	# Ensure the archiver fails upon bogus file names.
5596	rm -f conftest.$ac_objext libconftest.a
5597	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5598  (eval $lt_ar_try) 2>&5
5599  ac_status=$?
5600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601  test $ac_status = 0; }
5602	if test 0 -ne "$ac_status"; then
5603          lt_cv_ar_at_file=@
5604        fi
5605      fi
5606      rm -f conftest.* libconftest.a
5607
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5613$as_echo "$lt_cv_ar_at_file" >&6; }
5614
5615if test no = "$lt_cv_ar_at_file"; then
5616  archiver_list_spec=
5617else
5618  archiver_list_spec=$lt_cv_ar_at_file
5619fi
5620
5621
5622
5623
5624
5625
5626
5627if test -n "$ac_tool_prefix"; then
5628  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5629set dummy ${ac_tool_prefix}strip; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
5632if ${ac_cv_prog_STRIP+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -n "$STRIP"; then
5636  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643    for ac_exec_ext in '' $ac_executable_extensions; do
5644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647    break 2
5648  fi
5649done
5650  done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655STRIP=$ac_cv_prog_STRIP
5656if test -n "$STRIP"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5658$as_echo "$STRIP" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664
5665fi
5666if test -z "$ac_cv_prog_STRIP"; then
5667  ac_ct_STRIP=$STRIP
5668  # Extract the first word of "strip", so it can be a program name with args.
5669set dummy strip; ac_word=$2
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671$as_echo_n "checking for $ac_word... " >&6; }
5672if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675  if test -n "$ac_ct_STRIP"; then
5676  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681  IFS=$as_save_IFS
5682  test -z "$as_dir" && as_dir=.
5683    for ac_exec_ext in '' $ac_executable_extensions; do
5684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685    ac_cv_prog_ac_ct_STRIP="strip"
5686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687    break 2
5688  fi
5689done
5690  done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5696if test -n "$ac_ct_STRIP"; then
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5698$as_echo "$ac_ct_STRIP" >&6; }
5699else
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701$as_echo "no" >&6; }
5702fi
5703
5704  if test "x$ac_ct_STRIP" = x; then
5705    STRIP=":"
5706  else
5707    case $cross_compiling:$ac_tool_warned in
5708yes:)
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711ac_tool_warned=yes ;;
5712esac
5713    STRIP=$ac_ct_STRIP
5714  fi
5715else
5716  STRIP="$ac_cv_prog_STRIP"
5717fi
5718
5719test -z "$STRIP" && STRIP=:
5720
5721
5722
5723
5724
5725
5726if test -n "$ac_tool_prefix"; then
5727  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
5731if ${ac_cv_prog_RANLIB+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  if test -n "$RANLIB"; then
5735  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  test -z "$as_dir" && as_dir=.
5742    for ac_exec_ext in '' $ac_executable_extensions; do
5743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746    break 2
5747  fi
5748done
5749  done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754RANLIB=$ac_cv_prog_RANLIB
5755if test -n "$RANLIB"; then
5756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757$as_echo "$RANLIB" >&6; }
5758else
5759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763
5764fi
5765if test -z "$ac_cv_prog_RANLIB"; then
5766  ac_ct_RANLIB=$RANLIB
5767  # Extract the first word of "ranlib", so it can be a program name with args.
5768set dummy ranlib; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  if test -n "$ac_ct_RANLIB"; then
5775  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780  IFS=$as_save_IFS
5781  test -z "$as_dir" && as_dir=.
5782    for ac_exec_ext in '' $ac_executable_extensions; do
5783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784    ac_cv_prog_ac_ct_RANLIB="ranlib"
5785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786    break 2
5787  fi
5788done
5789  done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795if test -n "$ac_ct_RANLIB"; then
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797$as_echo "$ac_ct_RANLIB" >&6; }
5798else
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803  if test "x$ac_ct_RANLIB" = x; then
5804    RANLIB=":"
5805  else
5806    case $cross_compiling:$ac_tool_warned in
5807yes:)
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810ac_tool_warned=yes ;;
5811esac
5812    RANLIB=$ac_ct_RANLIB
5813  fi
5814else
5815  RANLIB="$ac_cv_prog_RANLIB"
5816fi
5817
5818test -z "$RANLIB" && RANLIB=:
5819
5820
5821
5822
5823
5824
5825# Determine commands to create old-style static archives.
5826old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5827old_postinstall_cmds='chmod 644 $oldlib'
5828old_postuninstall_cmds=
5829
5830if test -n "$RANLIB"; then
5831  case $host_os in
5832  bitrig* | openbsd*)
5833    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5834    ;;
5835  *)
5836    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5837    ;;
5838  esac
5839  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5840fi
5841
5842case $host_os in
5843  darwin*)
5844    lock_old_archive_extraction=yes ;;
5845  *)
5846    lock_old_archive_extraction=no ;;
5847esac
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887# If no C compiler was specified, use CC.
5888LTCC=${LTCC-"$CC"}
5889
5890# If no C compiler flags were specified, use CFLAGS.
5891LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5892
5893# Allow CC to be a program name with arguments.
5894compiler=$CC
5895
5896
5897# Check for command to grab the raw symbol name followed by C symbol from nm.
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5899$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5900if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903
5904# These are sane defaults that work on at least a few old systems.
5905# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5906
5907# Character class describing NM global symbol codes.
5908symcode='[BCDEGRST]'
5909
5910# Regexp to match symbols that can be accessed directly from C.
5911sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5912
5913# Define system-specific variables.
5914case $host_os in
5915aix*)
5916  symcode='[BCDT]'
5917  ;;
5918cygwin* | mingw* | pw32* | cegcc*)
5919  symcode='[ABCDGISTW]'
5920  ;;
5921hpux*)
5922  if test ia64 = "$host_cpu"; then
5923    symcode='[ABCDEGRST]'
5924  fi
5925  ;;
5926irix* | nonstopux*)
5927  symcode='[BCDEGRST]'
5928  ;;
5929osf*)
5930  symcode='[BCDEGQRST]'
5931  ;;
5932solaris*)
5933  symcode='[BDRT]'
5934  ;;
5935sco3.2v5*)
5936  symcode='[DT]'
5937  ;;
5938sysv4.2uw2*)
5939  symcode='[DT]'
5940  ;;
5941sysv5* | sco5v6* | unixware* | OpenUNIX*)
5942  symcode='[ABDT]'
5943  ;;
5944sysv4)
5945  symcode='[DFNSTU]'
5946  ;;
5947esac
5948
5949# If we're using GNU nm, then use its standard symbol codes.
5950case `$NM -V 2>&1` in
5951*GNU* | *'with BFD'*)
5952  symcode='[ABCDGIRSTW]' ;;
5953esac
5954
5955if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956  # Gets list of data symbols to import.
5957  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5958  # Adjust the below global symbol transforms to fixup imported variables.
5959  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5960  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5961  lt_c_name_lib_hook="\
5962  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5963  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5964else
5965  # Disable hooks by default.
5966  lt_cv_sys_global_symbol_to_import=
5967  lt_cdecl_hook=
5968  lt_c_name_hook=
5969  lt_c_name_lib_hook=
5970fi
5971
5972# Transform an extracted symbol line into a proper C declaration.
5973# Some systems (esp. on ia64) link data and code symbols differently,
5974# so use this general approach.
5975lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5976$lt_cdecl_hook\
5977" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5978" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5979
5980# Transform an extracted symbol line into symbol name and symbol address
5981lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5982$lt_c_name_hook\
5983" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5984" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5985
5986# Transform an extracted symbol line into symbol name with lib prefix and
5987# symbol address.
5988lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5989$lt_c_name_lib_hook\
5990" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5991" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5992" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5993
5994# Handle CRLF in mingw tool chain
5995opt_cr=
5996case $build_os in
5997mingw*)
5998  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999  ;;
6000esac
6001
6002# Try without a prefix underscore, then with it.
6003for ac_symprfx in "" "_"; do
6004
6005  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6006  symxfrm="\\1 $ac_symprfx\\2 \\2"
6007
6008  # Write the raw and C identifiers.
6009  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010    # Fake it for dumpbin and say T for any non-static function,
6011    # D for any global variable and I for any imported variable.
6012    # Also find C++ and __fastcall symbols from MSVC++,
6013    # which start with @ or ?.
6014    lt_cv_sys_global_symbol_pipe="$AWK '"\
6015"     {last_section=section; section=\$ 3};"\
6016"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6017"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6018"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6019"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6020"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6021"     \$ 0!~/External *\|/{next};"\
6022"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6023"     {if(hide[section]) next};"\
6024"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6025"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6026"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6027"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6028"     ' prfx=^$ac_symprfx"
6029  else
6030    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6031  fi
6032  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6033
6034  # Check to see that the pipe works correctly.
6035  pipe_works=no
6036
6037  rm -f conftest*
6038  cat > conftest.$ac_ext <<_LT_EOF
6039#ifdef __cplusplus
6040extern "C" {
6041#endif
6042char nm_test_var;
6043void nm_test_func(void);
6044void nm_test_func(void){}
6045#ifdef __cplusplus
6046}
6047#endif
6048int main(){nm_test_var='a';nm_test_func();return(0);}
6049_LT_EOF
6050
6051  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6052  (eval $ac_compile) 2>&5
6053  ac_status=$?
6054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055  test $ac_status = 0; }; then
6056    # Now try to grab the symbols.
6057    nlist=conftest.nm
6058    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6059  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6060  ac_status=$?
6061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062  test $ac_status = 0; } && test -s "$nlist"; then
6063      # Try sorting and uniquifying the output.
6064      if sort "$nlist" | uniq > "$nlist"T; then
6065	mv -f "$nlist"T "$nlist"
6066      else
6067	rm -f "$nlist"T
6068      fi
6069
6070      # Make sure that we snagged all the symbols we need.
6071      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6072	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6073	  cat <<_LT_EOF > conftest.$ac_ext
6074/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6075#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6076/* DATA imports from DLLs on WIN32 can't be const, because runtime
6077   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6078# define LT_DLSYM_CONST
6079#elif defined __osf__
6080/* This system does not cope well with relocations in const data.  */
6081# define LT_DLSYM_CONST
6082#else
6083# define LT_DLSYM_CONST const
6084#endif
6085
6086#ifdef __cplusplus
6087extern "C" {
6088#endif
6089
6090_LT_EOF
6091	  # Now generate the symbol file.
6092	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6093
6094	  cat <<_LT_EOF >> conftest.$ac_ext
6095
6096/* The mapping between symbol names and symbols.  */
6097LT_DLSYM_CONST struct {
6098  const char *name;
6099  void       *address;
6100}
6101lt__PROGRAM__LTX_preloaded_symbols[] =
6102{
6103  { "@PROGRAM@", (void *) 0 },
6104_LT_EOF
6105	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6106	  cat <<\_LT_EOF >> conftest.$ac_ext
6107  {0, (void *) 0}
6108};
6109
6110/* This works around a problem in FreeBSD linker */
6111#ifdef FREEBSD_WORKAROUND
6112static const void *lt_preloaded_setup() {
6113  return lt__PROGRAM__LTX_preloaded_symbols;
6114}
6115#endif
6116
6117#ifdef __cplusplus
6118}
6119#endif
6120_LT_EOF
6121	  # Now try linking the two files.
6122	  mv conftest.$ac_objext conftstm.$ac_objext
6123	  lt_globsym_save_LIBS=$LIBS
6124	  lt_globsym_save_CFLAGS=$CFLAGS
6125	  LIBS=conftstm.$ac_objext
6126	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6127	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6128  (eval $ac_link) 2>&5
6129  ac_status=$?
6130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6132	    pipe_works=yes
6133	  fi
6134	  LIBS=$lt_globsym_save_LIBS
6135	  CFLAGS=$lt_globsym_save_CFLAGS
6136	else
6137	  echo "cannot find nm_test_func in $nlist" >&5
6138	fi
6139      else
6140	echo "cannot find nm_test_var in $nlist" >&5
6141      fi
6142    else
6143      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6144    fi
6145  else
6146    echo "$progname: failed program was:" >&5
6147    cat conftest.$ac_ext >&5
6148  fi
6149  rm -rf conftest* conftst*
6150
6151  # Do not use the global_symbol_pipe unless it works.
6152  if test yes = "$pipe_works"; then
6153    break
6154  else
6155    lt_cv_sys_global_symbol_pipe=
6156  fi
6157done
6158
6159fi
6160
6161if test -z "$lt_cv_sys_global_symbol_pipe"; then
6162  lt_cv_sys_global_symbol_to_cdecl=
6163fi
6164if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6166$as_echo "failed" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6169$as_echo "ok" >&6; }
6170fi
6171
6172# Response file support.
6173if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6174  nm_file_list_spec='@'
6175elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6176  nm_file_list_spec='@'
6177fi
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6216$as_echo_n "checking for sysroot... " >&6; }
6217
6218# Check whether --with-sysroot was given.
6219if test "${with_sysroot+set}" = set; then :
6220  withval=$with_sysroot;
6221else
6222  with_sysroot=no
6223fi
6224
6225
6226lt_sysroot=
6227case $with_sysroot in #(
6228 yes)
6229   if test yes = "$GCC"; then
6230     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6231   fi
6232   ;; #(
6233 /*)
6234   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6235   ;; #(
6236 no|'')
6237   ;; #(
6238 *)
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6240$as_echo "$with_sysroot" >&6; }
6241   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6242   ;;
6243esac
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6246$as_echo "${lt_sysroot:-no}" >&6; }
6247
6248
6249
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6253$as_echo_n "checking for a working dd... " >&6; }
6254if ${ac_cv_path_lt_DD+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  printf 0123456789abcdef0123456789abcdef >conftest.i
6258cat conftest.i conftest.i >conftest2.i
6259: ${lt_DD:=$DD}
6260if test -z "$lt_DD"; then
6261  ac_path_lt_DD_found=false
6262  # Loop through the user's path and test for each of PROGNAME-LIST
6263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_prog in dd; do
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6271      as_fn_executable_p "$ac_path_lt_DD" || continue
6272if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6273  cmp -s conftest.i conftest.out \
6274  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6275fi
6276      $ac_path_lt_DD_found && break 3
6277    done
6278  done
6279  done
6280IFS=$as_save_IFS
6281  if test -z "$ac_cv_path_lt_DD"; then
6282    :
6283  fi
6284else
6285  ac_cv_path_lt_DD=$lt_DD
6286fi
6287
6288rm -f conftest.i conftest2.i conftest.out
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6291$as_echo "$ac_cv_path_lt_DD" >&6; }
6292
6293
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6295$as_echo_n "checking how to truncate binary pipes... " >&6; }
6296if ${lt_cv_truncate_bin+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  printf 0123456789abcdef0123456789abcdef >conftest.i
6300cat conftest.i conftest.i >conftest2.i
6301lt_cv_truncate_bin=
6302if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6303  cmp -s conftest.i conftest.out \
6304  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6305fi
6306rm -f conftest.i conftest2.i conftest.out
6307test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6310$as_echo "$lt_cv_truncate_bin" >&6; }
6311
6312
6313
6314
6315
6316
6317
6318# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6319func_cc_basename ()
6320{
6321    for cc_temp in $*""; do
6322      case $cc_temp in
6323        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6324        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6325        \-*) ;;
6326        *) break;;
6327      esac
6328    done
6329    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6330}
6331
6332# Check whether --enable-libtool-lock was given.
6333if test "${enable_libtool_lock+set}" = set; then :
6334  enableval=$enable_libtool_lock;
6335fi
6336
6337test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6338
6339# Some flags need to be propagated to the compiler or linker for good
6340# libtool support.
6341case $host in
6342ia64-*-hpux*)
6343  # Find out what ABI is being produced by ac_compile, and set mode
6344  # options accordingly.
6345  echo 'int i;' > conftest.$ac_ext
6346  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347  (eval $ac_compile) 2>&5
6348  ac_status=$?
6349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350  test $ac_status = 0; }; then
6351    case `/usr/bin/file conftest.$ac_objext` in
6352      *ELF-32*)
6353	HPUX_IA64_MODE=32
6354	;;
6355      *ELF-64*)
6356	HPUX_IA64_MODE=64
6357	;;
6358    esac
6359  fi
6360  rm -rf conftest*
6361  ;;
6362*-*-irix6*)
6363  # Find out what ABI is being produced by ac_compile, and set linker
6364  # options accordingly.
6365  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6367  (eval $ac_compile) 2>&5
6368  ac_status=$?
6369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370  test $ac_status = 0; }; then
6371    if test yes = "$lt_cv_prog_gnu_ld"; then
6372      case `/usr/bin/file conftest.$ac_objext` in
6373	*32-bit*)
6374	  LD="${LD-ld} -melf32bsmip"
6375	  ;;
6376	*N32*)
6377	  LD="${LD-ld} -melf32bmipn32"
6378	  ;;
6379	*64-bit*)
6380	  LD="${LD-ld} -melf64bmip"
6381	;;
6382      esac
6383    else
6384      case `/usr/bin/file conftest.$ac_objext` in
6385	*32-bit*)
6386	  LD="${LD-ld} -32"
6387	  ;;
6388	*N32*)
6389	  LD="${LD-ld} -n32"
6390	  ;;
6391	*64-bit*)
6392	  LD="${LD-ld} -64"
6393	  ;;
6394      esac
6395    fi
6396  fi
6397  rm -rf conftest*
6398  ;;
6399
6400mips64*-*linux*)
6401  # Find out what ABI is being produced by ac_compile, and set linker
6402  # options accordingly.
6403  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405  (eval $ac_compile) 2>&5
6406  ac_status=$?
6407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408  test $ac_status = 0; }; then
6409    emul=elf
6410    case `/usr/bin/file conftest.$ac_objext` in
6411      *32-bit*)
6412	emul="${emul}32"
6413	;;
6414      *64-bit*)
6415	emul="${emul}64"
6416	;;
6417    esac
6418    case `/usr/bin/file conftest.$ac_objext` in
6419      *MSB*)
6420	emul="${emul}btsmip"
6421	;;
6422      *LSB*)
6423	emul="${emul}ltsmip"
6424	;;
6425    esac
6426    case `/usr/bin/file conftest.$ac_objext` in
6427      *N32*)
6428	emul="${emul}n32"
6429	;;
6430    esac
6431    LD="${LD-ld} -m $emul"
6432  fi
6433  rm -rf conftest*
6434  ;;
6435
6436x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6437s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6438  # Find out what ABI is being produced by ac_compile, and set linker
6439  # options accordingly.  Note that the listed cases only cover the
6440  # situations where additional linker options are needed (such as when
6441  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6442  # vice versa); the common cases where no linker options are needed do
6443  # not appear in the list.
6444  echo 'int i;' > conftest.$ac_ext
6445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446  (eval $ac_compile) 2>&5
6447  ac_status=$?
6448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449  test $ac_status = 0; }; then
6450    case `/usr/bin/file conftest.o` in
6451      *32-bit*)
6452	case $host in
6453	  x86_64-*kfreebsd*-gnu)
6454	    LD="${LD-ld} -m elf_i386_fbsd"
6455	    ;;
6456	  x86_64-*linux*)
6457	    case `/usr/bin/file conftest.o` in
6458	      *x86-64*)
6459		LD="${LD-ld} -m elf32_x86_64"
6460		;;
6461	      *)
6462		LD="${LD-ld} -m elf_i386"
6463		;;
6464	    esac
6465	    ;;
6466	  powerpc64le-*linux*)
6467	    LD="${LD-ld} -m elf32lppclinux"
6468	    ;;
6469	  powerpc64-*linux*)
6470	    LD="${LD-ld} -m elf32ppclinux"
6471	    ;;
6472	  s390x-*linux*)
6473	    LD="${LD-ld} -m elf_s390"
6474	    ;;
6475	  sparc64-*linux*)
6476	    LD="${LD-ld} -m elf32_sparc"
6477	    ;;
6478	esac
6479	;;
6480      *64-bit*)
6481	case $host in
6482	  x86_64-*kfreebsd*-gnu)
6483	    LD="${LD-ld} -m elf_x86_64_fbsd"
6484	    ;;
6485	  x86_64-*linux*)
6486	    LD="${LD-ld} -m elf_x86_64"
6487	    ;;
6488	  powerpcle-*linux*)
6489	    LD="${LD-ld} -m elf64lppc"
6490	    ;;
6491	  powerpc-*linux*)
6492	    LD="${LD-ld} -m elf64ppc"
6493	    ;;
6494	  s390*-*linux*|s390*-*tpf*)
6495	    LD="${LD-ld} -m elf64_s390"
6496	    ;;
6497	  sparc*-*linux*)
6498	    LD="${LD-ld} -m elf64_sparc"
6499	    ;;
6500	esac
6501	;;
6502    esac
6503  fi
6504  rm -rf conftest*
6505  ;;
6506
6507*-*-sco3.2v5*)
6508  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6509  SAVE_CFLAGS=$CFLAGS
6510  CFLAGS="$CFLAGS -belf"
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6512$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6513if ${lt_cv_cc_needs_belf+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h.  */
6524
6525int
6526main ()
6527{
6528
6529  ;
6530  return 0;
6531}
6532_ACEOF
6533if ac_fn_c_try_link "$LINENO"; then :
6534  lt_cv_cc_needs_belf=yes
6535else
6536  lt_cv_cc_needs_belf=no
6537fi
6538rm -f core conftest.err conftest.$ac_objext \
6539    conftest$ac_exeext conftest.$ac_ext
6540     ac_ext=c
6541ac_cpp='$CPP $CPPFLAGS'
6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6548$as_echo "$lt_cv_cc_needs_belf" >&6; }
6549  if test yes != "$lt_cv_cc_needs_belf"; then
6550    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6551    CFLAGS=$SAVE_CFLAGS
6552  fi
6553  ;;
6554*-*solaris*)
6555  # Find out what ABI is being produced by ac_compile, and set linker
6556  # options accordingly.
6557  echo 'int i;' > conftest.$ac_ext
6558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6559  (eval $ac_compile) 2>&5
6560  ac_status=$?
6561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562  test $ac_status = 0; }; then
6563    case `/usr/bin/file conftest.o` in
6564    *64-bit*)
6565      case $lt_cv_prog_gnu_ld in
6566      yes*)
6567        case $host in
6568        i?86-*-solaris*|x86_64-*-solaris*)
6569          LD="${LD-ld} -m elf_x86_64"
6570          ;;
6571        sparc*-*-solaris*)
6572          LD="${LD-ld} -m elf64_sparc"
6573          ;;
6574        esac
6575        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6576        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6577          LD=${LD-ld}_sol2
6578        fi
6579        ;;
6580      *)
6581	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6582	  LD="${LD-ld} -64"
6583	fi
6584	;;
6585      esac
6586      ;;
6587    esac
6588  fi
6589  rm -rf conftest*
6590  ;;
6591esac
6592
6593need_locks=$enable_libtool_lock
6594
6595if test -n "$ac_tool_prefix"; then
6596  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}mt; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  if test -n "$MANIFEST_TOOL"; then
6604  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6624if test -n "$MANIFEST_TOOL"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6626$as_echo "$MANIFEST_TOOL" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6635  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6636  # Extract the first word of "mt", so it can be a program name with args.
6637set dummy mt; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$ac_ct_MANIFEST_TOOL"; then
6644  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6664if test -n "$ac_ct_MANIFEST_TOOL"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6666$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6673    MANIFEST_TOOL=":"
6674  else
6675    case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
6681    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6682  fi
6683else
6684  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6685fi
6686
6687test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6689$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6690if ${lt_cv_path_mainfest_tool+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  lt_cv_path_mainfest_tool=no
6694  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6695  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6696  cat conftest.err >&5
6697  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6698    lt_cv_path_mainfest_tool=yes
6699  fi
6700  rm -f conftest*
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6703$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6704if test yes != "$lt_cv_path_mainfest_tool"; then
6705  MANIFEST_TOOL=:
6706fi
6707
6708
6709
6710
6711
6712
6713  case $host_os in
6714    rhapsody* | darwin*)
6715    if test -n "$ac_tool_prefix"; then
6716  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_DSYMUTIL+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$DSYMUTIL"; then
6724  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744if test -n "$DSYMUTIL"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6746$as_echo "$DSYMUTIL" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_DSYMUTIL"; then
6755  ac_ct_DSYMUTIL=$DSYMUTIL
6756  # Extract the first word of "dsymutil", so it can be a program name with args.
6757set dummy dsymutil; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$ac_ct_DSYMUTIL"; then
6764  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784if test -n "$ac_ct_DSYMUTIL"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6786$as_echo "$ac_ct_DSYMUTIL" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792  if test "x$ac_ct_DSYMUTIL" = x; then
6793    DSYMUTIL=":"
6794  else
6795    case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799ac_tool_warned=yes ;;
6800esac
6801    DSYMUTIL=$ac_ct_DSYMUTIL
6802  fi
6803else
6804  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6805fi
6806
6807    if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_NMEDIT+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$NMEDIT"; then
6816  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835NMEDIT=$ac_cv_prog_NMEDIT
6836if test -n "$NMEDIT"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6838$as_echo "$NMEDIT" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_NMEDIT"; then
6847  ac_ct_NMEDIT=$NMEDIT
6848  # Extract the first word of "nmedit", so it can be a program name with args.
6849set dummy nmedit; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_NMEDIT"; then
6856  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876if test -n "$ac_ct_NMEDIT"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6878$as_echo "$ac_ct_NMEDIT" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_NMEDIT" = x; then
6885    NMEDIT=":"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    NMEDIT=$ac_ct_NMEDIT
6894  fi
6895else
6896  NMEDIT="$ac_cv_prog_NMEDIT"
6897fi
6898
6899    if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}lipo; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_LIPO+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$LIPO"; then
6908  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927LIPO=$ac_cv_prog_LIPO
6928if test -n "$LIPO"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6930$as_echo "$LIPO" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_LIPO"; then
6939  ac_ct_LIPO=$LIPO
6940  # Extract the first word of "lipo", so it can be a program name with args.
6941set dummy lipo; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_LIPO"; then
6948  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_ac_ct_LIPO="lipo"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6968if test -n "$ac_ct_LIPO"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6970$as_echo "$ac_ct_LIPO" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_LIPO" = x; then
6977    LIPO=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    LIPO=$ac_ct_LIPO
6986  fi
6987else
6988  LIPO="$ac_cv_prog_LIPO"
6989fi
6990
6991    if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}otool; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_OTOOL+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$OTOOL"; then
7000  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019OTOOL=$ac_cv_prog_OTOOL
7020if test -n "$OTOOL"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7022$as_echo "$OTOOL" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_OTOOL"; then
7031  ac_ct_OTOOL=$OTOOL
7032  # Extract the first word of "otool", so it can be a program name with args.
7033set dummy otool; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_OTOOL"; then
7040  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_ac_ct_OTOOL="otool"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060if test -n "$ac_ct_OTOOL"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7062$as_echo "$ac_ct_OTOOL" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_OTOOL" = x; then
7069    OTOOL=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    OTOOL=$ac_ct_OTOOL
7078  fi
7079else
7080  OTOOL="$ac_cv_prog_OTOOL"
7081fi
7082
7083    if test -n "$ac_tool_prefix"; then
7084  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}otool64; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_OTOOL64+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  if test -n "$OTOOL64"; then
7092  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106  done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111OTOOL64=$ac_cv_prog_OTOOL64
7112if test -n "$OTOOL64"; then
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7114$as_echo "$OTOOL64" >&6; }
7115else
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120
7121fi
7122if test -z "$ac_cv_prog_OTOOL64"; then
7123  ac_ct_OTOOL64=$OTOOL64
7124  # Extract the first word of "otool64", so it can be a program name with args.
7125set dummy otool64; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if test -n "$ac_ct_OTOOL64"; then
7132  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141    ac_cv_prog_ac_ct_OTOOL64="otool64"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149fi
7150fi
7151ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152if test -n "$ac_ct_OTOOL64"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7154$as_echo "$ac_ct_OTOOL64" >&6; }
7155else
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
7158fi
7159
7160  if test "x$ac_ct_OTOOL64" = x; then
7161    OTOOL64=":"
7162  else
7163    case $cross_compiling:$ac_tool_warned in
7164yes:)
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167ac_tool_warned=yes ;;
7168esac
7169    OTOOL64=$ac_ct_OTOOL64
7170  fi
7171else
7172  OTOOL64="$ac_cv_prog_OTOOL64"
7173fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7202$as_echo_n "checking for -single_module linker flag... " >&6; }
7203if ${lt_cv_apple_cc_single_mod+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  lt_cv_apple_cc_single_mod=no
7207      if test -z "$LT_MULTI_MODULE"; then
7208	# By default we will add the -single_module flag. You can override
7209	# by either setting the environment variable LT_MULTI_MODULE
7210	# non-empty at configure time, or by adding -multi_module to the
7211	# link flags.
7212	rm -rf libconftest.dylib*
7213	echo "int foo(void){return 1;}" > conftest.c
7214	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215-dynamiclib -Wl,-single_module conftest.c" >&5
7216	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7218        _lt_result=$?
7219	# If there is a non-empty error log, and "single_module"
7220	# appears in it, assume the flag caused a linker warning
7221        if test -s conftest.err && $GREP single_module conftest.err; then
7222	  cat conftest.err >&5
7223	# Otherwise, if the output was created with a 0 exit code from
7224	# the compiler, it worked.
7225	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7226	  lt_cv_apple_cc_single_mod=yes
7227	else
7228	  cat conftest.err >&5
7229	fi
7230	rm -rf libconftest.dylib*
7231	rm -f conftest.*
7232      fi
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7235$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7236
7237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7238$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7239if ${lt_cv_ld_exported_symbols_list+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  lt_cv_ld_exported_symbols_list=no
7243      save_LDFLAGS=$LDFLAGS
7244      echo "_main" > conftest.sym
7245      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7246      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257if ac_fn_c_try_link "$LINENO"; then :
7258  lt_cv_ld_exported_symbols_list=yes
7259else
7260  lt_cv_ld_exported_symbols_list=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext \
7263    conftest$ac_exeext conftest.$ac_ext
7264	LDFLAGS=$save_LDFLAGS
7265
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7268$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7269
7270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7271$as_echo_n "checking for -force_load linker flag... " >&6; }
7272if ${lt_cv_ld_force_load+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  lt_cv_ld_force_load=no
7276      cat > conftest.c << _LT_EOF
7277int forced_loaded() { return 2;}
7278_LT_EOF
7279      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7280      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7281      echo "$AR cru libconftest.a conftest.o" >&5
7282      $AR cru libconftest.a conftest.o 2>&5
7283      echo "$RANLIB libconftest.a" >&5
7284      $RANLIB libconftest.a 2>&5
7285      cat > conftest.c << _LT_EOF
7286int main() { return 0;}
7287_LT_EOF
7288      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7289      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7290      _lt_result=$?
7291      if test -s conftest.err && $GREP force_load conftest.err; then
7292	cat conftest.err >&5
7293      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7294	lt_cv_ld_force_load=yes
7295      else
7296	cat conftest.err >&5
7297      fi
7298        rm -f conftest.err libconftest.a conftest conftest.c
7299        rm -rf conftest.dSYM
7300
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7303$as_echo "$lt_cv_ld_force_load" >&6; }
7304    case $host_os in
7305    rhapsody* | darwin1.[012])
7306      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7307    darwin1.*)
7308      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7309    darwin*) # darwin 5.x on
7310      # if running on 10.5 or later, the deployment target defaults
7311      # to the OS version, if on x86, and 10.4, the deployment
7312      # target defaults to 10.4. Don't you love it?
7313      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7314	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7315	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7316	10.[012][,.]*)
7317	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7318	10.*)
7319	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7320      esac
7321    ;;
7322  esac
7323    if test yes = "$lt_cv_apple_cc_single_mod"; then
7324      _lt_dar_single_mod='$single_module'
7325    fi
7326    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7327      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7328    else
7329      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7330    fi
7331    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7332      _lt_dsymutil='~$DSYMUTIL $lib || :'
7333    else
7334      _lt_dsymutil=
7335    fi
7336    ;;
7337  esac
7338
7339# func_munge_path_list VARIABLE PATH
7340# -----------------------------------
7341# VARIABLE is name of variable containing _space_ separated list of
7342# directories to be munged by the contents of PATH, which is string
7343# having a format:
7344# "DIR[:DIR]:"
7345#       string "DIR[ DIR]" will be prepended to VARIABLE
7346# ":DIR[:DIR]"
7347#       string "DIR[ DIR]" will be appended to VARIABLE
7348# "DIRP[:DIRP]::[DIRA:]DIRA"
7349#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7350#       "DIRA[ DIRA]" will be appended to VARIABLE
7351# "DIR[:DIR]"
7352#       VARIABLE will be replaced by "DIR[ DIR]"
7353func_munge_path_list ()
7354{
7355    case x$2 in
7356    x)
7357        ;;
7358    *:)
7359        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7360        ;;
7361    x:*)
7362        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7363        ;;
7364    *::*)
7365        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7366        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7367        ;;
7368    *)
7369        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7370        ;;
7371    esac
7372}
7373
7374ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7380$as_echo_n "checking how to run the C preprocessor... " >&6; }
7381# On Suns, sometimes $CPP names a directory.
7382if test -n "$CPP" && test -d "$CPP"; then
7383  CPP=
7384fi
7385if test -z "$CPP"; then
7386  if ${ac_cv_prog_CPP+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389      # Double quotes because CPP needs to be expanded
7390    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7391    do
7392      ac_preproc_ok=false
7393for ac_c_preproc_warn_flag in '' yes
7394do
7395  # Use a header file that comes with gcc, so configuring glibc
7396  # with a fresh cross-compiler works.
7397  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7398  # <limits.h> exists even on freestanding compilers.
7399  # On the NeXT, cc -E runs the code through the compiler's parser,
7400  # not just through cpp. "Syntax error" is here to catch this case.
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403#ifdef __STDC__
7404# include <limits.h>
7405#else
7406# include <assert.h>
7407#endif
7408		     Syntax error
7409_ACEOF
7410if ac_fn_c_try_cpp "$LINENO"; then :
7411
7412else
7413  # Broken: fails on valid input.
7414continue
7415fi
7416rm -f conftest.err conftest.i conftest.$ac_ext
7417
7418  # OK, works on sane cases.  Now check whether nonexistent headers
7419  # can be detected and how.
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422#include <ac_nonexistent.h>
7423_ACEOF
7424if ac_fn_c_try_cpp "$LINENO"; then :
7425  # Broken: success on invalid input.
7426continue
7427else
7428  # Passes both tests.
7429ac_preproc_ok=:
7430break
7431fi
7432rm -f conftest.err conftest.i conftest.$ac_ext
7433
7434done
7435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7436rm -f conftest.i conftest.err conftest.$ac_ext
7437if $ac_preproc_ok; then :
7438  break
7439fi
7440
7441    done
7442    ac_cv_prog_CPP=$CPP
7443
7444fi
7445  CPP=$ac_cv_prog_CPP
7446else
7447  ac_cv_prog_CPP=$CPP
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7450$as_echo "$CPP" >&6; }
7451ac_preproc_ok=false
7452for ac_c_preproc_warn_flag in '' yes
7453do
7454  # Use a header file that comes with gcc, so configuring glibc
7455  # with a fresh cross-compiler works.
7456  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457  # <limits.h> exists even on freestanding compilers.
7458  # On the NeXT, cc -E runs the code through the compiler's parser,
7459  # not just through cpp. "Syntax error" is here to catch this case.
7460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462#ifdef __STDC__
7463# include <limits.h>
7464#else
7465# include <assert.h>
7466#endif
7467		     Syntax error
7468_ACEOF
7469if ac_fn_c_try_cpp "$LINENO"; then :
7470
7471else
7472  # Broken: fails on valid input.
7473continue
7474fi
7475rm -f conftest.err conftest.i conftest.$ac_ext
7476
7477  # OK, works on sane cases.  Now check whether nonexistent headers
7478  # can be detected and how.
7479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h.  */
7481#include <ac_nonexistent.h>
7482_ACEOF
7483if ac_fn_c_try_cpp "$LINENO"; then :
7484  # Broken: success on invalid input.
7485continue
7486else
7487  # Passes both tests.
7488ac_preproc_ok=:
7489break
7490fi
7491rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493done
7494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7495rm -f conftest.i conftest.err conftest.$ac_ext
7496if $ac_preproc_ok; then :
7497
7498else
7499  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7501as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7502See \`config.log' for more details" "$LINENO" 5; }
7503fi
7504
7505ac_ext=c
7506ac_cpp='$CPP $CPPFLAGS'
7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7513$as_echo_n "checking for ANSI C header files... " >&6; }
7514if ${ac_cv_header_stdc+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519#include <stdlib.h>
7520#include <stdarg.h>
7521#include <string.h>
7522#include <float.h>
7523
7524int
7525main ()
7526{
7527
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_compile "$LINENO"; then :
7533  ac_cv_header_stdc=yes
7534else
7535  ac_cv_header_stdc=no
7536fi
7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539if test $ac_cv_header_stdc = yes; then
7540  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543#include <string.h>
7544
7545_ACEOF
7546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547  $EGREP "memchr" >/dev/null 2>&1; then :
7548
7549else
7550  ac_cv_header_stdc=no
7551fi
7552rm -f conftest*
7553
7554fi
7555
7556if test $ac_cv_header_stdc = yes; then
7557  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560#include <stdlib.h>
7561
7562_ACEOF
7563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564  $EGREP "free" >/dev/null 2>&1; then :
7565
7566else
7567  ac_cv_header_stdc=no
7568fi
7569rm -f conftest*
7570
7571fi
7572
7573if test $ac_cv_header_stdc = yes; then
7574  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7575  if test "$cross_compiling" = yes; then :
7576  :
7577else
7578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h.  */
7580#include <ctype.h>
7581#include <stdlib.h>
7582#if ((' ' & 0x0FF) == 0x020)
7583# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7584# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7585#else
7586# define ISLOWER(c) \
7587		   (('a' <= (c) && (c) <= 'i') \
7588		     || ('j' <= (c) && (c) <= 'r') \
7589		     || ('s' <= (c) && (c) <= 'z'))
7590# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7591#endif
7592
7593#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7594int
7595main ()
7596{
7597  int i;
7598  for (i = 0; i < 256; i++)
7599    if (XOR (islower (i), ISLOWER (i))
7600	|| toupper (i) != TOUPPER (i))
7601      return 2;
7602  return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_run "$LINENO"; then :
7606
7607else
7608  ac_cv_header_stdc=no
7609fi
7610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7611  conftest.$ac_objext conftest.beam conftest.$ac_ext
7612fi
7613
7614fi
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7617$as_echo "$ac_cv_header_stdc" >&6; }
7618if test $ac_cv_header_stdc = yes; then
7619
7620$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7621
7622fi
7623
7624# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7625for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7626		  inttypes.h stdint.h unistd.h
7627do :
7628  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7629ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7630"
7631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7632  cat >>confdefs.h <<_ACEOF
7633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634_ACEOF
7635
7636fi
7637
7638done
7639
7640
7641for ac_header in dlfcn.h
7642do :
7643  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7644"
7645if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7646  cat >>confdefs.h <<_ACEOF
7647#define HAVE_DLFCN_H 1
7648_ACEOF
7649
7650fi
7651
7652done
7653
7654
7655
7656
7657
7658# Set options
7659
7660
7661
7662        enable_dlopen=no
7663
7664
7665  enable_win32_dll=no
7666
7667
7668            # Check whether --enable-shared was given.
7669if test "${enable_shared+set}" = set; then :
7670  enableval=$enable_shared; p=${PACKAGE-default}
7671    case $enableval in
7672    yes) enable_shared=yes ;;
7673    no) enable_shared=no ;;
7674    *)
7675      enable_shared=no
7676      # Look at the argument we got.  We use all the common list separators.
7677      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7678      for pkg in $enableval; do
7679	IFS=$lt_save_ifs
7680	if test "X$pkg" = "X$p"; then
7681	  enable_shared=yes
7682	fi
7683      done
7684      IFS=$lt_save_ifs
7685      ;;
7686    esac
7687else
7688  enable_shared=yes
7689fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699  # Check whether --enable-static was given.
7700if test "${enable_static+set}" = set; then :
7701  enableval=$enable_static; p=${PACKAGE-default}
7702    case $enableval in
7703    yes) enable_static=yes ;;
7704    no) enable_static=no ;;
7705    *)
7706     enable_static=no
7707      # Look at the argument we got.  We use all the common list separators.
7708      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7709      for pkg in $enableval; do
7710	IFS=$lt_save_ifs
7711	if test "X$pkg" = "X$p"; then
7712	  enable_static=yes
7713	fi
7714      done
7715      IFS=$lt_save_ifs
7716      ;;
7717    esac
7718else
7719  enable_static=yes
7720fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731# Check whether --with-pic was given.
7732if test "${with_pic+set}" = set; then :
7733  withval=$with_pic; lt_p=${PACKAGE-default}
7734    case $withval in
7735    yes|no) pic_mode=$withval ;;
7736    *)
7737      pic_mode=default
7738      # Look at the argument we got.  We use all the common list separators.
7739      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7740      for lt_pkg in $withval; do
7741	IFS=$lt_save_ifs
7742	if test "X$lt_pkg" = "X$lt_p"; then
7743	  pic_mode=yes
7744	fi
7745      done
7746      IFS=$lt_save_ifs
7747      ;;
7748    esac
7749else
7750  pic_mode=default
7751fi
7752
7753
7754
7755
7756
7757
7758
7759
7760  # Check whether --enable-fast-install was given.
7761if test "${enable_fast_install+set}" = set; then :
7762  enableval=$enable_fast_install; p=${PACKAGE-default}
7763    case $enableval in
7764    yes) enable_fast_install=yes ;;
7765    no) enable_fast_install=no ;;
7766    *)
7767      enable_fast_install=no
7768      # Look at the argument we got.  We use all the common list separators.
7769      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7770      for pkg in $enableval; do
7771	IFS=$lt_save_ifs
7772	if test "X$pkg" = "X$p"; then
7773	  enable_fast_install=yes
7774	fi
7775      done
7776      IFS=$lt_save_ifs
7777      ;;
7778    esac
7779else
7780  enable_fast_install=yes
7781fi
7782
7783
7784
7785
7786
7787
7788
7789
7790  shared_archive_member_spec=
7791case $host,$enable_shared in
7792power*-*-aix[5-9]*,yes)
7793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7794$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7795
7796# Check whether --with-aix-soname was given.
7797if test "${with_aix_soname+set}" = set; then :
7798  withval=$with_aix_soname; case $withval in
7799    aix|svr4|both)
7800      ;;
7801    *)
7802      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7803      ;;
7804    esac
7805    lt_cv_with_aix_soname=$with_aix_soname
7806else
7807  if ${lt_cv_with_aix_soname+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  lt_cv_with_aix_soname=aix
7811fi
7812
7813    with_aix_soname=$lt_cv_with_aix_soname
7814fi
7815
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7817$as_echo "$with_aix_soname" >&6; }
7818  if test aix != "$with_aix_soname"; then
7819    # For the AIX way of multilib, we name the shared archive member
7820    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7821    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7822    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7823    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7824    if test 64 = "${OBJECT_MODE-32}"; then
7825      shared_archive_member_spec=shr_64
7826    else
7827      shared_archive_member_spec=shr
7828    fi
7829  fi
7830  ;;
7831*)
7832  with_aix_soname=aix
7833  ;;
7834esac
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845# This can be used to rebuild libtool when needed
7846LIBTOOL_DEPS=$ltmain
7847
7848# Always use our own libtool.
7849LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880test -z "$LN_S" && LN_S="ln -s"
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895if test -n "${ZSH_VERSION+set}"; then
7896   setopt NO_GLOB_SUBST
7897fi
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7900$as_echo_n "checking for objdir... " >&6; }
7901if ${lt_cv_objdir+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  rm -f .libs 2>/dev/null
7905mkdir .libs 2>/dev/null
7906if test -d .libs; then
7907  lt_cv_objdir=.libs
7908else
7909  # MS-DOS does not allow filenames that begin with a dot.
7910  lt_cv_objdir=_libs
7911fi
7912rmdir .libs 2>/dev/null
7913fi
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7915$as_echo "$lt_cv_objdir" >&6; }
7916objdir=$lt_cv_objdir
7917
7918
7919
7920
7921
7922cat >>confdefs.h <<_ACEOF
7923#define LT_OBJDIR "$lt_cv_objdir/"
7924_ACEOF
7925
7926
7927
7928
7929case $host_os in
7930aix3*)
7931  # AIX sometimes has problems with the GCC collect2 program.  For some
7932  # reason, if we set the COLLECT_NAMES environment variable, the problems
7933  # vanish in a puff of smoke.
7934  if test set != "${COLLECT_NAMES+set}"; then
7935    COLLECT_NAMES=
7936    export COLLECT_NAMES
7937  fi
7938  ;;
7939esac
7940
7941# Global variables:
7942ofile=libtool
7943can_build_shared=yes
7944
7945# All known linkers require a '.a' archive for static linking (except MSVC,
7946# which needs '.lib').
7947libext=a
7948
7949with_gnu_ld=$lt_cv_prog_gnu_ld
7950
7951old_CC=$CC
7952old_CFLAGS=$CFLAGS
7953
7954# Set sane defaults for various variables
7955test -z "$CC" && CC=cc
7956test -z "$LTCC" && LTCC=$CC
7957test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7958test -z "$LD" && LD=ld
7959test -z "$ac_objext" && ac_objext=o
7960
7961func_cc_basename $compiler
7962cc_basename=$func_cc_basename_result
7963
7964
7965# Only perform the check for file, if the check method requires it
7966test -z "$MAGIC_CMD" && MAGIC_CMD=file
7967case $deplibs_check_method in
7968file_magic*)
7969  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7971$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7972if ${lt_cv_path_MAGIC_CMD+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  case $MAGIC_CMD in
7976[\\/*] |  ?:[\\/]*)
7977  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7978  ;;
7979*)
7980  lt_save_MAGIC_CMD=$MAGIC_CMD
7981  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7982  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7983  for ac_dir in $ac_dummy; do
7984    IFS=$lt_save_ifs
7985    test -z "$ac_dir" && ac_dir=.
7986    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7987      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7988      if test -n "$file_magic_test_file"; then
7989	case $deplibs_check_method in
7990	"file_magic "*)
7991	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7992	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7993	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7994	    $EGREP "$file_magic_regex" > /dev/null; then
7995	    :
7996	  else
7997	    cat <<_LT_EOF 1>&2
7998
7999*** Warning: the command libtool uses to detect shared libraries,
8000*** $file_magic_cmd, produces output that libtool cannot recognize.
8001*** The result is that libtool may fail to recognize shared libraries
8002*** as such.  This will affect the creation of libtool libraries that
8003*** depend on shared libraries, but programs linked with such libtool
8004*** libraries will work regardless of this problem.  Nevertheless, you
8005*** may want to report the problem to your system manager and/or to
8006*** bug-libtool@gnu.org
8007
8008_LT_EOF
8009	  fi ;;
8010	esac
8011      fi
8012      break
8013    fi
8014  done
8015  IFS=$lt_save_ifs
8016  MAGIC_CMD=$lt_save_MAGIC_CMD
8017  ;;
8018esac
8019fi
8020
8021MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8022if test -n "$MAGIC_CMD"; then
8023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8024$as_echo "$MAGIC_CMD" >&6; }
8025else
8026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027$as_echo "no" >&6; }
8028fi
8029
8030
8031
8032
8033
8034if test -z "$lt_cv_path_MAGIC_CMD"; then
8035  if test -n "$ac_tool_prefix"; then
8036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8037$as_echo_n "checking for file... " >&6; }
8038if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039  $as_echo_n "(cached) " >&6
8040else
8041  case $MAGIC_CMD in
8042[\\/*] |  ?:[\\/]*)
8043  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044  ;;
8045*)
8046  lt_save_MAGIC_CMD=$MAGIC_CMD
8047  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049  for ac_dir in $ac_dummy; do
8050    IFS=$lt_save_ifs
8051    test -z "$ac_dir" && ac_dir=.
8052    if test -f "$ac_dir/file"; then
8053      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8054      if test -n "$file_magic_test_file"; then
8055	case $deplibs_check_method in
8056	"file_magic "*)
8057	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060	    $EGREP "$file_magic_regex" > /dev/null; then
8061	    :
8062	  else
8063	    cat <<_LT_EOF 1>&2
8064
8065*** Warning: the command libtool uses to detect shared libraries,
8066*** $file_magic_cmd, produces output that libtool cannot recognize.
8067*** The result is that libtool may fail to recognize shared libraries
8068*** as such.  This will affect the creation of libtool libraries that
8069*** depend on shared libraries, but programs linked with such libtool
8070*** libraries will work regardless of this problem.  Nevertheless, you
8071*** may want to report the problem to your system manager and/or to
8072*** bug-libtool@gnu.org
8073
8074_LT_EOF
8075	  fi ;;
8076	esac
8077      fi
8078      break
8079    fi
8080  done
8081  IFS=$lt_save_ifs
8082  MAGIC_CMD=$lt_save_MAGIC_CMD
8083  ;;
8084esac
8085fi
8086
8087MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088if test -n "$MAGIC_CMD"; then
8089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090$as_echo "$MAGIC_CMD" >&6; }
8091else
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
8094fi
8095
8096
8097  else
8098    MAGIC_CMD=:
8099  fi
8100fi
8101
8102  fi
8103  ;;
8104esac
8105
8106# Use C for the default configuration in the libtool script
8107
8108lt_save_CC=$CC
8109ac_ext=c
8110ac_cpp='$CPP $CPPFLAGS'
8111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114
8115
8116# Source file extension for C test sources.
8117ac_ext=c
8118
8119# Object file extension for compiled C test sources.
8120objext=o
8121objext=$objext
8122
8123# Code to be used in simple compile tests
8124lt_simple_compile_test_code="int some_variable = 0;"
8125
8126# Code to be used in simple link tests
8127lt_simple_link_test_code='int main(){return(0);}'
8128
8129
8130
8131
8132
8133
8134
8135# If no C compiler was specified, use CC.
8136LTCC=${LTCC-"$CC"}
8137
8138# If no C compiler flags were specified, use CFLAGS.
8139LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8140
8141# Allow CC to be a program name with arguments.
8142compiler=$CC
8143
8144# Save the default compiler, since it gets overwritten when the other
8145# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8146compiler_DEFAULT=$CC
8147
8148# save warnings/boilerplate of simple test code
8149ac_outfile=conftest.$ac_objext
8150echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8151eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152_lt_compiler_boilerplate=`cat conftest.err`
8153$RM conftest*
8154
8155ac_outfile=conftest.$ac_objext
8156echo "$lt_simple_link_test_code" >conftest.$ac_ext
8157eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158_lt_linker_boilerplate=`cat conftest.err`
8159$RM -r conftest*
8160
8161
8162if test -n "$compiler"; then
8163
8164lt_prog_compiler_no_builtin_flag=
8165
8166if test yes = "$GCC"; then
8167  case $cc_basename in
8168  nvcc*)
8169    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8170  *)
8171    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8172  esac
8173
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8175$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8176if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  lt_cv_prog_compiler_rtti_exceptions=no
8180   ac_outfile=conftest.$ac_objext
8181   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8183   # Insert the option either (1) after the last *FLAGS variable, or
8184   # (2) before a word containing "conftest.", or (3) at the end.
8185   # Note that $ac_compile itself does not contain backslashes and begins
8186   # with a dollar sign (not a hyphen), so the echo should work correctly.
8187   # The option is referenced via a variable to avoid confusing sed.
8188   lt_compile=`echo "$ac_compile" | $SED \
8189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191   -e 's:$: $lt_compiler_flag:'`
8192   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8193   (eval "$lt_compile" 2>conftest.err)
8194   ac_status=$?
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   if (exit $ac_status) && test -s "$ac_outfile"; then
8198     # The compiler can only warn and ignore the option if not recognized
8199     # So say no if there are warnings other than the usual output.
8200     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8201     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203       lt_cv_prog_compiler_rtti_exceptions=yes
8204     fi
8205   fi
8206   $RM conftest*
8207
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8210$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8211
8212if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8213    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8214else
8215    :
8216fi
8217
8218fi
8219
8220
8221
8222
8223
8224
8225  lt_prog_compiler_wl=
8226lt_prog_compiler_pic=
8227lt_prog_compiler_static=
8228
8229
8230  if test yes = "$GCC"; then
8231    lt_prog_compiler_wl='-Wl,'
8232    lt_prog_compiler_static='-static'
8233
8234    case $host_os in
8235      aix*)
8236      # All AIX code is PIC.
8237      if test ia64 = "$host_cpu"; then
8238	# AIX 5 now supports IA64 processor
8239	lt_prog_compiler_static='-Bstatic'
8240      fi
8241      lt_prog_compiler_pic='-fPIC'
8242      ;;
8243
8244    amigaos*)
8245      case $host_cpu in
8246      powerpc)
8247            # see comment about AmigaOS4 .so support
8248            lt_prog_compiler_pic='-fPIC'
8249        ;;
8250      m68k)
8251            # FIXME: we need at least 68020 code to build shared libraries, but
8252            # adding the '-m68020' flag to GCC prevents building anything better,
8253            # like '-m68040'.
8254            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8255        ;;
8256      esac
8257      ;;
8258
8259    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8260      # PIC is the default for these OSes.
8261      ;;
8262
8263    mingw* | cygwin* | pw32* | os2* | cegcc*)
8264      # This hack is so that the source file can tell whether it is being
8265      # built for inclusion in a dll (and should export symbols for example).
8266      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8267      # (--disable-auto-import) libraries
8268      lt_prog_compiler_pic='-DDLL_EXPORT'
8269      case $host_os in
8270      os2*)
8271	lt_prog_compiler_static='$wl-static'
8272	;;
8273      esac
8274      ;;
8275
8276    darwin* | rhapsody*)
8277      # PIC is the default on this platform
8278      # Common symbols not allowed in MH_DYLIB files
8279      lt_prog_compiler_pic='-fno-common'
8280      ;;
8281
8282    haiku*)
8283      # PIC is the default for Haiku.
8284      # The "-static" flag exists, but is broken.
8285      lt_prog_compiler_static=
8286      ;;
8287
8288    hpux*)
8289      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8290      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8291      # sets the default TLS model and affects inlining.
8292      case $host_cpu in
8293      hppa*64*)
8294	# +Z the default
8295	;;
8296      *)
8297	lt_prog_compiler_pic='-fPIC'
8298	;;
8299      esac
8300      ;;
8301
8302    interix[3-9]*)
8303      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8304      # Instead, we relocate shared libraries at runtime.
8305      ;;
8306
8307    msdosdjgpp*)
8308      # Just because we use GCC doesn't mean we suddenly get shared libraries
8309      # on systems that don't support them.
8310      lt_prog_compiler_can_build_shared=no
8311      enable_shared=no
8312      ;;
8313
8314    *nto* | *qnx*)
8315      # QNX uses GNU C++, but need to define -shared option too, otherwise
8316      # it will coredump.
8317      lt_prog_compiler_pic='-fPIC -shared'
8318      ;;
8319
8320    sysv4*MP*)
8321      if test -d /usr/nec; then
8322	lt_prog_compiler_pic=-Kconform_pic
8323      fi
8324      ;;
8325
8326    *)
8327      lt_prog_compiler_pic='-fPIC'
8328      ;;
8329    esac
8330
8331    case $cc_basename in
8332    nvcc*) # Cuda Compiler Driver 2.2
8333      lt_prog_compiler_wl='-Xlinker '
8334      if test -n "$lt_prog_compiler_pic"; then
8335        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8336      fi
8337      ;;
8338    esac
8339  else
8340    # PORTME Check for flag to pass linker flags through the system compiler.
8341    case $host_os in
8342    aix*)
8343      lt_prog_compiler_wl='-Wl,'
8344      if test ia64 = "$host_cpu"; then
8345	# AIX 5 now supports IA64 processor
8346	lt_prog_compiler_static='-Bstatic'
8347      else
8348	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8349      fi
8350      ;;
8351
8352    darwin* | rhapsody*)
8353      # PIC is the default on this platform
8354      # Common symbols not allowed in MH_DYLIB files
8355      lt_prog_compiler_pic='-fno-common'
8356      case $cc_basename in
8357      nagfor*)
8358        # NAG Fortran compiler
8359        lt_prog_compiler_wl='-Wl,-Wl,,'
8360        lt_prog_compiler_pic='-PIC'
8361        lt_prog_compiler_static='-Bstatic'
8362        ;;
8363      esac
8364      ;;
8365
8366    mingw* | cygwin* | pw32* | os2* | cegcc*)
8367      # This hack is so that the source file can tell whether it is being
8368      # built for inclusion in a dll (and should export symbols for example).
8369      lt_prog_compiler_pic='-DDLL_EXPORT'
8370      case $host_os in
8371      os2*)
8372	lt_prog_compiler_static='$wl-static'
8373	;;
8374      esac
8375      ;;
8376
8377    hpux9* | hpux10* | hpux11*)
8378      lt_prog_compiler_wl='-Wl,'
8379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8380      # not for PA HP-UX.
8381      case $host_cpu in
8382      hppa*64*|ia64*)
8383	# +Z the default
8384	;;
8385      *)
8386	lt_prog_compiler_pic='+Z'
8387	;;
8388      esac
8389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8390      lt_prog_compiler_static='$wl-a ${wl}archive'
8391      ;;
8392
8393    irix5* | irix6* | nonstopux*)
8394      lt_prog_compiler_wl='-Wl,'
8395      # PIC (with -KPIC) is the default.
8396      lt_prog_compiler_static='-non_shared'
8397      ;;
8398
8399    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8400      case $cc_basename in
8401      # old Intel for x86_64, which still supported -KPIC.
8402      ecc*)
8403	lt_prog_compiler_wl='-Wl,'
8404	lt_prog_compiler_pic='-KPIC'
8405	lt_prog_compiler_static='-static'
8406        ;;
8407      # icc used to be incompatible with GCC.
8408      # ICC 10 doesn't accept -KPIC any more.
8409      icc* | ifort*)
8410	lt_prog_compiler_wl='-Wl,'
8411	lt_prog_compiler_pic='-fPIC'
8412	lt_prog_compiler_static='-static'
8413        ;;
8414      # Lahey Fortran 8.1.
8415      lf95*)
8416	lt_prog_compiler_wl='-Wl,'
8417	lt_prog_compiler_pic='--shared'
8418	lt_prog_compiler_static='--static'
8419	;;
8420      nagfor*)
8421	# NAG Fortran compiler
8422	lt_prog_compiler_wl='-Wl,-Wl,,'
8423	lt_prog_compiler_pic='-PIC'
8424	lt_prog_compiler_static='-Bstatic'
8425	;;
8426      tcc*)
8427	# Fabrice Bellard et al's Tiny C Compiler
8428	lt_prog_compiler_wl='-Wl,'
8429	lt_prog_compiler_pic='-fPIC'
8430	lt_prog_compiler_static='-static'
8431	;;
8432      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8433        # Portland Group compilers (*not* the Pentium gcc compiler,
8434	# which looks to be a dead project)
8435	lt_prog_compiler_wl='-Wl,'
8436	lt_prog_compiler_pic='-fpic'
8437	lt_prog_compiler_static='-Bstatic'
8438        ;;
8439      ccc*)
8440        lt_prog_compiler_wl='-Wl,'
8441        # All Alpha code is PIC.
8442        lt_prog_compiler_static='-non_shared'
8443        ;;
8444      xl* | bgxl* | bgf* | mpixl*)
8445	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8446	lt_prog_compiler_wl='-Wl,'
8447	lt_prog_compiler_pic='-qpic'
8448	lt_prog_compiler_static='-qstaticlink'
8449	;;
8450      *)
8451	case `$CC -V 2>&1 | sed 5q` in
8452	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8453	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8454	  lt_prog_compiler_pic='-KPIC'
8455	  lt_prog_compiler_static='-Bstatic'
8456	  lt_prog_compiler_wl=''
8457	  ;;
8458	*Sun\ F* | *Sun*Fortran*)
8459	  lt_prog_compiler_pic='-KPIC'
8460	  lt_prog_compiler_static='-Bstatic'
8461	  lt_prog_compiler_wl='-Qoption ld '
8462	  ;;
8463	*Sun\ C*)
8464	  # Sun C 5.9
8465	  lt_prog_compiler_pic='-KPIC'
8466	  lt_prog_compiler_static='-Bstatic'
8467	  lt_prog_compiler_wl='-Wl,'
8468	  ;;
8469        *Intel*\ [CF]*Compiler*)
8470	  lt_prog_compiler_wl='-Wl,'
8471	  lt_prog_compiler_pic='-fPIC'
8472	  lt_prog_compiler_static='-static'
8473	  ;;
8474	*Portland\ Group*)
8475	  lt_prog_compiler_wl='-Wl,'
8476	  lt_prog_compiler_pic='-fpic'
8477	  lt_prog_compiler_static='-Bstatic'
8478	  ;;
8479	esac
8480	;;
8481      esac
8482      ;;
8483
8484    newsos6)
8485      lt_prog_compiler_pic='-KPIC'
8486      lt_prog_compiler_static='-Bstatic'
8487      ;;
8488
8489    *nto* | *qnx*)
8490      # QNX uses GNU C++, but need to define -shared option too, otherwise
8491      # it will coredump.
8492      lt_prog_compiler_pic='-fPIC -shared'
8493      ;;
8494
8495    osf3* | osf4* | osf5*)
8496      lt_prog_compiler_wl='-Wl,'
8497      # All OSF/1 code is PIC.
8498      lt_prog_compiler_static='-non_shared'
8499      ;;
8500
8501    rdos*)
8502      lt_prog_compiler_static='-non_shared'
8503      ;;
8504
8505    solaris*)
8506      lt_prog_compiler_pic='-KPIC'
8507      lt_prog_compiler_static='-Bstatic'
8508      case $cc_basename in
8509      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8510	lt_prog_compiler_wl='-Qoption ld ';;
8511      *)
8512	lt_prog_compiler_wl='-Wl,';;
8513      esac
8514      ;;
8515
8516    sunos4*)
8517      lt_prog_compiler_wl='-Qoption ld '
8518      lt_prog_compiler_pic='-PIC'
8519      lt_prog_compiler_static='-Bstatic'
8520      ;;
8521
8522    sysv4 | sysv4.2uw2* | sysv4.3*)
8523      lt_prog_compiler_wl='-Wl,'
8524      lt_prog_compiler_pic='-KPIC'
8525      lt_prog_compiler_static='-Bstatic'
8526      ;;
8527
8528    sysv4*MP*)
8529      if test -d /usr/nec; then
8530	lt_prog_compiler_pic='-Kconform_pic'
8531	lt_prog_compiler_static='-Bstatic'
8532      fi
8533      ;;
8534
8535    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8536      lt_prog_compiler_wl='-Wl,'
8537      lt_prog_compiler_pic='-KPIC'
8538      lt_prog_compiler_static='-Bstatic'
8539      ;;
8540
8541    unicos*)
8542      lt_prog_compiler_wl='-Wl,'
8543      lt_prog_compiler_can_build_shared=no
8544      ;;
8545
8546    uts4*)
8547      lt_prog_compiler_pic='-pic'
8548      lt_prog_compiler_static='-Bstatic'
8549      ;;
8550
8551    *)
8552      lt_prog_compiler_can_build_shared=no
8553      ;;
8554    esac
8555  fi
8556
8557case $host_os in
8558  # For platforms that do not support PIC, -DPIC is meaningless:
8559  *djgpp*)
8560    lt_prog_compiler_pic=
8561    ;;
8562  *)
8563    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8564    ;;
8565esac
8566
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8568$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8569if ${lt_cv_prog_compiler_pic+:} false; then :
8570  $as_echo_n "(cached) " >&6
8571else
8572  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8575$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8576lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8577
8578#
8579# Check to make sure the PIC flag actually works.
8580#
8581if test -n "$lt_prog_compiler_pic"; then
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8583$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8584if ${lt_cv_prog_compiler_pic_works+:} false; then :
8585  $as_echo_n "(cached) " >&6
8586else
8587  lt_cv_prog_compiler_pic_works=no
8588   ac_outfile=conftest.$ac_objext
8589   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8591   # Insert the option either (1) after the last *FLAGS variable, or
8592   # (2) before a word containing "conftest.", or (3) at the end.
8593   # Note that $ac_compile itself does not contain backslashes and begins
8594   # with a dollar sign (not a hyphen), so the echo should work correctly.
8595   # The option is referenced via a variable to avoid confusing sed.
8596   lt_compile=`echo "$ac_compile" | $SED \
8597   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599   -e 's:$: $lt_compiler_flag:'`
8600   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601   (eval "$lt_compile" 2>conftest.err)
8602   ac_status=$?
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   if (exit $ac_status) && test -s "$ac_outfile"; then
8606     # The compiler can only warn and ignore the option if not recognized
8607     # So say no if there are warnings other than the usual output.
8608     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8609     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8610     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8611       lt_cv_prog_compiler_pic_works=yes
8612     fi
8613   fi
8614   $RM conftest*
8615
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8618$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8619
8620if test yes = "$lt_cv_prog_compiler_pic_works"; then
8621    case $lt_prog_compiler_pic in
8622     "" | " "*) ;;
8623     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8624     esac
8625else
8626    lt_prog_compiler_pic=
8627     lt_prog_compiler_can_build_shared=no
8628fi
8629
8630fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642#
8643# Check to make sure the static flag actually works.
8644#
8645wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8647$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8648if ${lt_cv_prog_compiler_static_works+:} false; then :
8649  $as_echo_n "(cached) " >&6
8650else
8651  lt_cv_prog_compiler_static_works=no
8652   save_LDFLAGS=$LDFLAGS
8653   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8654   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8655   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8656     # The linker can only warn and ignore the option if not recognized
8657     # So say no if there are warnings
8658     if test -s conftest.err; then
8659       # Append any errors to the config.log.
8660       cat conftest.err 1>&5
8661       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8662       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663       if diff conftest.exp conftest.er2 >/dev/null; then
8664         lt_cv_prog_compiler_static_works=yes
8665       fi
8666     else
8667       lt_cv_prog_compiler_static_works=yes
8668     fi
8669   fi
8670   $RM -r conftest*
8671   LDFLAGS=$save_LDFLAGS
8672
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8675$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8676
8677if test yes = "$lt_cv_prog_compiler_static_works"; then
8678    :
8679else
8680    lt_prog_compiler_static=
8681fi
8682
8683
8684
8685
8686
8687
8688
8689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8691if ${lt_cv_prog_compiler_c_o+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  lt_cv_prog_compiler_c_o=no
8695   $RM -r conftest 2>/dev/null
8696   mkdir conftest
8697   cd conftest
8698   mkdir out
8699   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700
8701   lt_compiler_flag="-o out/conftest2.$ac_objext"
8702   # Insert the option either (1) after the last *FLAGS variable, or
8703   # (2) before a word containing "conftest.", or (3) at the end.
8704   # Note that $ac_compile itself does not contain backslashes and begins
8705   # with a dollar sign (not a hyphen), so the echo should work correctly.
8706   lt_compile=`echo "$ac_compile" | $SED \
8707   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709   -e 's:$: $lt_compiler_flag:'`
8710   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711   (eval "$lt_compile" 2>out/conftest.err)
8712   ac_status=$?
8713   cat out/conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8716   then
8717     # The compiler can only warn and ignore the option if not recognized
8718     # So say no if there are warnings
8719     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8720     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8721     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8722       lt_cv_prog_compiler_c_o=yes
8723     fi
8724   fi
8725   chmod u+w . 2>&5
8726   $RM conftest*
8727   # SGI C++ compiler will create directory out/ii_files/ for
8728   # template instantiation
8729   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8730   $RM out/* && rmdir out
8731   cd ..
8732   $RM -r conftest
8733   $RM conftest*
8734
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8737$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8738
8739
8740
8741
8742
8743
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8746if ${lt_cv_prog_compiler_c_o+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  lt_cv_prog_compiler_c_o=no
8750   $RM -r conftest 2>/dev/null
8751   mkdir conftest
8752   cd conftest
8753   mkdir out
8754   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755
8756   lt_compiler_flag="-o out/conftest2.$ac_objext"
8757   # Insert the option either (1) after the last *FLAGS variable, or
8758   # (2) before a word containing "conftest.", or (3) at the end.
8759   # Note that $ac_compile itself does not contain backslashes and begins
8760   # with a dollar sign (not a hyphen), so the echo should work correctly.
8761   lt_compile=`echo "$ac_compile" | $SED \
8762   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764   -e 's:$: $lt_compiler_flag:'`
8765   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8766   (eval "$lt_compile" 2>out/conftest.err)
8767   ac_status=$?
8768   cat out/conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8771   then
8772     # The compiler can only warn and ignore the option if not recognized
8773     # So say no if there are warnings
8774     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8775     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8776     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8777       lt_cv_prog_compiler_c_o=yes
8778     fi
8779   fi
8780   chmod u+w . 2>&5
8781   $RM conftest*
8782   # SGI C++ compiler will create directory out/ii_files/ for
8783   # template instantiation
8784   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8785   $RM out/* && rmdir out
8786   cd ..
8787   $RM -r conftest
8788   $RM conftest*
8789
8790fi
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8792$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8793
8794
8795
8796
8797hard_links=nottested
8798if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8799  # do not overwrite the value of need_locks provided by the user
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8801$as_echo_n "checking if we can lock with hard links... " >&6; }
8802  hard_links=yes
8803  $RM conftest*
8804  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8805  touch conftest.a
8806  ln conftest.a conftest.b 2>&5 || hard_links=no
8807  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8809$as_echo "$hard_links" >&6; }
8810  if test no = "$hard_links"; then
8811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8812$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8813    need_locks=warn
8814  fi
8815else
8816  need_locks=no
8817fi
8818
8819
8820
8821
8822
8823
8824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8825$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8826
8827  runpath_var=
8828  allow_undefined_flag=
8829  always_export_symbols=no
8830  archive_cmds=
8831  archive_expsym_cmds=
8832  compiler_needs_object=no
8833  enable_shared_with_static_runtimes=no
8834  export_dynamic_flag_spec=
8835  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8836  hardcode_automatic=no
8837  hardcode_direct=no
8838  hardcode_direct_absolute=no
8839  hardcode_libdir_flag_spec=
8840  hardcode_libdir_separator=
8841  hardcode_minus_L=no
8842  hardcode_shlibpath_var=unsupported
8843  inherit_rpath=no
8844  link_all_deplibs=unknown
8845  module_cmds=
8846  module_expsym_cmds=
8847  old_archive_from_new_cmds=
8848  old_archive_from_expsyms_cmds=
8849  thread_safe_flag_spec=
8850  whole_archive_flag_spec=
8851  # include_expsyms should be a list of space-separated symbols to be *always*
8852  # included in the symbol list
8853  include_expsyms=
8854  # exclude_expsyms can be an extended regexp of symbols to exclude
8855  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8856  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8857  # as well as any symbol that contains 'd'.
8858  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8859  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8860  # platforms (ab)use it in PIC code, but their linkers get confused if
8861  # the symbol is explicitly referenced.  Since portable code cannot
8862  # rely on this symbol name, it's probably fine to never include it in
8863  # preloaded symbol tables.
8864  # Exclude shared library initialization/finalization symbols.
8865  extract_expsyms_cmds=
8866
8867  case $host_os in
8868  cygwin* | mingw* | pw32* | cegcc*)
8869    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8870    # When not using gcc, we currently assume that we are using
8871    # Microsoft Visual C++.
8872    if test yes != "$GCC"; then
8873      with_gnu_ld=no
8874    fi
8875    ;;
8876  interix*)
8877    # we just hope/assume this is gcc and not c89 (= MSVC++)
8878    with_gnu_ld=yes
8879    ;;
8880  openbsd* | bitrig*)
8881    with_gnu_ld=no
8882    ;;
8883  esac
8884
8885  ld_shlibs=yes
8886
8887  # On some targets, GNU ld is compatible enough with the native linker
8888  # that we're better off using the native interface for both.
8889  lt_use_gnu_ld_interface=no
8890  if test yes = "$with_gnu_ld"; then
8891    case $host_os in
8892      aix*)
8893	# The AIX port of GNU ld has always aspired to compatibility
8894	# with the native linker.  However, as the warning in the GNU ld
8895	# block says, versions before 2.19.5* couldn't really create working
8896	# shared libraries, regardless of the interface used.
8897	case `$LD -v 2>&1` in
8898	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8899	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8900	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8901	  *)
8902	    lt_use_gnu_ld_interface=yes
8903	    ;;
8904	esac
8905	;;
8906      *)
8907	lt_use_gnu_ld_interface=yes
8908	;;
8909    esac
8910  fi
8911
8912  if test yes = "$lt_use_gnu_ld_interface"; then
8913    # If archive_cmds runs LD, not CC, wlarc should be empty
8914    wlarc='$wl'
8915
8916    # Set some defaults for GNU ld with shared library support. These
8917    # are reset later if shared libraries are not supported. Putting them
8918    # here allows them to be overridden if necessary.
8919    runpath_var=LD_RUN_PATH
8920    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8921    export_dynamic_flag_spec='$wl--export-dynamic'
8922    # ancient GNU ld didn't support --whole-archive et. al.
8923    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8924      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8925    else
8926      whole_archive_flag_spec=
8927    fi
8928    supports_anon_versioning=no
8929    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8930      *GNU\ gold*) supports_anon_versioning=yes ;;
8931      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8932      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8933      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8934      *\ 2.11.*) ;; # other 2.11 versions
8935      *) supports_anon_versioning=yes ;;
8936    esac
8937
8938    # See if GNU ld supports shared libraries.
8939    case $host_os in
8940    aix[3-9]*)
8941      # On AIX/PPC, the GNU linker is very broken
8942      if test ia64 != "$host_cpu"; then
8943	ld_shlibs=no
8944	cat <<_LT_EOF 1>&2
8945
8946*** Warning: the GNU linker, at least up to release 2.19, is reported
8947*** to be unable to reliably create shared libraries on AIX.
8948*** Therefore, libtool is disabling shared libraries support.  If you
8949*** really care for shared libraries, you may want to install binutils
8950*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8951*** You will then need to restart the configuration process.
8952
8953_LT_EOF
8954      fi
8955      ;;
8956
8957    amigaos*)
8958      case $host_cpu in
8959      powerpc)
8960            # see comment about AmigaOS4 .so support
8961            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8962            archive_expsym_cmds=''
8963        ;;
8964      m68k)
8965            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)'
8966            hardcode_libdir_flag_spec='-L$libdir'
8967            hardcode_minus_L=yes
8968        ;;
8969      esac
8970      ;;
8971
8972    beos*)
8973      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8974	allow_undefined_flag=unsupported
8975	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8976	# support --undefined.  This deserves some investigation.  FIXME
8977	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8978      else
8979	ld_shlibs=no
8980      fi
8981      ;;
8982
8983    cygwin* | mingw* | pw32* | cegcc*)
8984      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985      # as there is no search path for DLLs.
8986      hardcode_libdir_flag_spec='-L$libdir'
8987      export_dynamic_flag_spec='$wl--export-all-symbols'
8988      allow_undefined_flag=unsupported
8989      always_export_symbols=no
8990      enable_shared_with_static_runtimes=yes
8991      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'
8992      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8993
8994      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8995        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8996	# If the export-symbols file already is a .def file, use it as
8997	# is; otherwise, prepend EXPORTS...
8998	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8999          cp $export_symbols $output_objdir/$soname.def;
9000        else
9001          echo EXPORTS > $output_objdir/$soname.def;
9002          cat $export_symbols >> $output_objdir/$soname.def;
9003        fi~
9004        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9005      else
9006	ld_shlibs=no
9007      fi
9008      ;;
9009
9010    haiku*)
9011      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9012      link_all_deplibs=yes
9013      ;;
9014
9015    os2*)
9016      hardcode_libdir_flag_spec='-L$libdir'
9017      hardcode_minus_L=yes
9018      allow_undefined_flag=unsupported
9019      shrext_cmds=.dll
9020      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9021	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9022	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9023	$ECHO EXPORTS >> $output_objdir/$libname.def~
9024	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9025	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9026	emximp -o $lib $output_objdir/$libname.def'
9027      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9028	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9029	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9030	$ECHO EXPORTS >> $output_objdir/$libname.def~
9031	prefix_cmds="$SED"~
9032	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9033	  prefix_cmds="$prefix_cmds -e 1d";
9034	fi~
9035	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9036	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9037	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9038	emximp -o $lib $output_objdir/$libname.def'
9039      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9040      enable_shared_with_static_runtimes=yes
9041      ;;
9042
9043    interix[3-9]*)
9044      hardcode_direct=no
9045      hardcode_shlibpath_var=no
9046      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9047      export_dynamic_flag_spec='$wl-E'
9048      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9049      # Instead, shared libraries are loaded at an image base (0x10000000 by
9050      # default) and relocated if they conflict, which is a slow very memory
9051      # consuming and fragmenting process.  To avoid this, we pick a random,
9052      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9053      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9054      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9055      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'
9056      ;;
9057
9058    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9059      tmp_diet=no
9060      if test linux-dietlibc = "$host_os"; then
9061	case $cc_basename in
9062	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9063	esac
9064      fi
9065      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9066	 && test no = "$tmp_diet"
9067      then
9068	tmp_addflag=' $pic_flag'
9069	tmp_sharedflag='-shared'
9070	case $cc_basename,$host_cpu in
9071        pgcc*)				# Portland Group C compiler
9072	  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'
9073	  tmp_addflag=' $pic_flag'
9074	  ;;
9075	pgf77* | pgf90* | pgf95* | pgfortran*)
9076					# Portland Group f77 and f90 compilers
9077	  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'
9078	  tmp_addflag=' $pic_flag -Mnomain' ;;
9079	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9080	  tmp_addflag=' -i_dynamic' ;;
9081	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9082	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9083	ifc* | ifort*)			# Intel Fortran compiler
9084	  tmp_addflag=' -nofor_main' ;;
9085	lf95*)				# Lahey Fortran 8.1
9086	  whole_archive_flag_spec=
9087	  tmp_sharedflag='--shared' ;;
9088        nagfor*)                        # NAGFOR 5.3
9089          tmp_sharedflag='-Wl,-shared' ;;
9090	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9091	  tmp_sharedflag='-qmkshrobj'
9092	  tmp_addflag= ;;
9093	nvcc*)	# Cuda Compiler Driver 2.2
9094	  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'
9095	  compiler_needs_object=yes
9096	  ;;
9097	esac
9098	case `$CC -V 2>&1 | sed 5q` in
9099	*Sun\ C*)			# Sun C 5.9
9100	  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'
9101	  compiler_needs_object=yes
9102	  tmp_sharedflag='-G' ;;
9103	*Sun\ F*)			# Sun Fortran 8.3
9104	  tmp_sharedflag='-G' ;;
9105	esac
9106	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9107
9108        if test yes = "$supports_anon_versioning"; then
9109          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111            echo "local: *; };" >> $output_objdir/$libname.ver~
9112            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9113        fi
9114
9115	case $cc_basename in
9116	tcc*)
9117	  export_dynamic_flag_spec='-rdynamic'
9118	  ;;
9119	xlf* | bgf* | bgxlf* | mpixlf*)
9120	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9121	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9122	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9123	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9124	  if test yes = "$supports_anon_versioning"; then
9125	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9126              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9127              echo "local: *; };" >> $output_objdir/$libname.ver~
9128              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9129	  fi
9130	  ;;
9131	esac
9132      else
9133        ld_shlibs=no
9134      fi
9135      ;;
9136
9137    netbsd*)
9138      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9139	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9140	wlarc=
9141      else
9142	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9144      fi
9145      ;;
9146
9147    solaris*)
9148      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9149	ld_shlibs=no
9150	cat <<_LT_EOF 1>&2
9151
9152*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9153*** create shared libraries on Solaris systems.  Therefore, libtool
9154*** is disabling shared libraries support.  We urge you to upgrade GNU
9155*** binutils to release 2.9.1 or newer.  Another option is to modify
9156*** your PATH or compiler configuration so that the native linker is
9157*** used, and then restart.
9158
9159_LT_EOF
9160      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9163      else
9164	ld_shlibs=no
9165      fi
9166      ;;
9167
9168    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9169      case `$LD -v 2>&1` in
9170        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9171	ld_shlibs=no
9172	cat <<_LT_EOF 1>&2
9173
9174*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9175*** reliably create shared libraries on SCO systems.  Therefore, libtool
9176*** is disabling shared libraries support.  We urge you to upgrade GNU
9177*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9178*** your PATH or compiler configuration so that the native linker is
9179*** used, and then restart.
9180
9181_LT_EOF
9182	;;
9183	*)
9184	  # For security reasons, it is highly recommended that you always
9185	  # use absolute paths for naming shared libraries, and exclude the
9186	  # DT_RUNPATH tag from executables and libraries.  But doing so
9187	  # requires that you compile everything twice, which is a pain.
9188	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9190	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9191	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9192	  else
9193	    ld_shlibs=no
9194	  fi
9195	;;
9196      esac
9197      ;;
9198
9199    sunos4*)
9200      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9201      wlarc=
9202      hardcode_direct=yes
9203      hardcode_shlibpath_var=no
9204      ;;
9205
9206    *)
9207      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9208	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9209	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9210      else
9211	ld_shlibs=no
9212      fi
9213      ;;
9214    esac
9215
9216    if test no = "$ld_shlibs"; then
9217      runpath_var=
9218      hardcode_libdir_flag_spec=
9219      export_dynamic_flag_spec=
9220      whole_archive_flag_spec=
9221    fi
9222  else
9223    # PORTME fill in a description of your system's linker (not GNU ld)
9224    case $host_os in
9225    aix3*)
9226      allow_undefined_flag=unsupported
9227      always_export_symbols=yes
9228      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'
9229      # Note: this linker hardcodes the directories in LIBPATH if there
9230      # are no directories specified by -L.
9231      hardcode_minus_L=yes
9232      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9233	# Neither direct hardcoding nor static linking is supported with a
9234	# broken collect2.
9235	hardcode_direct=unsupported
9236      fi
9237      ;;
9238
9239    aix[4-9]*)
9240      if test ia64 = "$host_cpu"; then
9241	# On IA64, the linker does run time linking by default, so we don't
9242	# have to do anything special.
9243	aix_use_runtimelinking=no
9244	exp_sym_flag='-Bexport'
9245	no_entry_flag=
9246      else
9247	# If we're using GNU nm, then we don't want the "-C" option.
9248	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9249	# Without the "-l" option, or with the "-B" option, AIX nm treats
9250	# weak defined symbols like other global defined symbols, whereas
9251	# GNU nm marks them as "W".
9252	# While the 'weak' keyword is ignored in the Export File, we need
9253	# it in the Import File for the 'aix-soname' feature, so we have
9254	# to replace the "-B" option with "-P" for AIX nm.
9255	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9256	  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'
9257	else
9258	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9259	fi
9260	aix_use_runtimelinking=no
9261
9262	# Test if we are trying to use run time linking or normal
9263	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9264	# have runtime linking enabled, and use it for executables.
9265	# For shared libraries, we enable/disable runtime linking
9266	# depending on the kind of the shared library created -
9267	# when "with_aix_soname,aix_use_runtimelinking" is:
9268	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9269	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9270	#            lib.a           static archive
9271	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9272	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9273	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9274	#            lib.a(lib.so.V) shared, rtl:no
9275	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9276	#            lib.a           static archive
9277	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9278	  for ld_flag in $LDFLAGS; do
9279	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9280	    aix_use_runtimelinking=yes
9281	    break
9282	  fi
9283	  done
9284	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9285	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9286	    # so we don't have lib.a shared libs to link our executables.
9287	    # We have to force runtime linking in this case.
9288	    aix_use_runtimelinking=yes
9289	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9290	  fi
9291	  ;;
9292	esac
9293
9294	exp_sym_flag='-bexport'
9295	no_entry_flag='-bnoentry'
9296      fi
9297
9298      # When large executables or shared objects are built, AIX ld can
9299      # have problems creating the table of contents.  If linking a library
9300      # or program results in "error TOC overflow" add -mminimal-toc to
9301      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9302      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9303
9304      archive_cmds=''
9305      hardcode_direct=yes
9306      hardcode_direct_absolute=yes
9307      hardcode_libdir_separator=':'
9308      link_all_deplibs=yes
9309      file_list_spec='$wl-f,'
9310      case $with_aix_soname,$aix_use_runtimelinking in
9311      aix,*) ;; # traditional, no import file
9312      svr4,* | *,yes) # use import file
9313	# The Import File defines what to hardcode.
9314	hardcode_direct=no
9315	hardcode_direct_absolute=no
9316	;;
9317      esac
9318
9319      if test yes = "$GCC"; then
9320	case $host_os in aix4.[012]|aix4.[012].*)
9321	# We only want to do this on AIX 4.2 and lower, the check
9322	# below for broken collect2 doesn't work under 4.3+
9323	  collect2name=`$CC -print-prog-name=collect2`
9324	  if test -f "$collect2name" &&
9325	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9326	  then
9327	  # We have reworked collect2
9328	  :
9329	  else
9330	  # We have old collect2
9331	  hardcode_direct=unsupported
9332	  # It fails to find uninstalled libraries when the uninstalled
9333	  # path is not listed in the libpath.  Setting hardcode_minus_L
9334	  # to unsupported forces relinking
9335	  hardcode_minus_L=yes
9336	  hardcode_libdir_flag_spec='-L$libdir'
9337	  hardcode_libdir_separator=
9338	  fi
9339	  ;;
9340	esac
9341	shared_flag='-shared'
9342	if test yes = "$aix_use_runtimelinking"; then
9343	  shared_flag="$shared_flag "'$wl-G'
9344	fi
9345	# Need to ensure runtime linking is disabled for the traditional
9346	# shared library, or the linker may eventually find shared libraries
9347	# /with/ Import File - we do not want to mix them.
9348	shared_flag_aix='-shared'
9349	shared_flag_svr4='-shared $wl-G'
9350      else
9351	# not using gcc
9352	if test ia64 = "$host_cpu"; then
9353	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9354	# chokes on -Wl,-G. The following line is correct:
9355	  shared_flag='-G'
9356	else
9357	  if test yes = "$aix_use_runtimelinking"; then
9358	    shared_flag='$wl-G'
9359	  else
9360	    shared_flag='$wl-bM:SRE'
9361	  fi
9362	  shared_flag_aix='$wl-bM:SRE'
9363	  shared_flag_svr4='$wl-G'
9364	fi
9365      fi
9366
9367      export_dynamic_flag_spec='$wl-bexpall'
9368      # It seems that -bexpall does not export symbols beginning with
9369      # underscore (_), so it is better to generate a list of symbols to export.
9370      always_export_symbols=yes
9371      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9372	# Warning - without using the other runtime loading flags (-brtl),
9373	# -berok will link without error, but may produce a broken library.
9374	allow_undefined_flag='-berok'
9375        # Determine the default libpath from the value encoded in an
9376        # empty executable.
9377        if test set = "${lt_cv_aix_libpath+set}"; then
9378  aix_libpath=$lt_cv_aix_libpath
9379else
9380  if ${lt_cv_aix_libpath_+:} false; then :
9381  $as_echo_n "(cached) " >&6
9382else
9383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384/* end confdefs.h.  */
9385
9386int
9387main ()
9388{
9389
9390  ;
9391  return 0;
9392}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"; then :
9395
9396  lt_aix_libpath_sed='
9397      /Import File Strings/,/^$/ {
9398	  /^0/ {
9399	      s/^0  *\([^ ]*\) *$/\1/
9400	      p
9401	  }
9402      }'
9403  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9404  # Check for a 64-bit object if we didn't find anything.
9405  if test -z "$lt_cv_aix_libpath_"; then
9406    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407  fi
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410    conftest$ac_exeext conftest.$ac_ext
9411  if test -z "$lt_cv_aix_libpath_"; then
9412    lt_cv_aix_libpath_=/usr/lib:/lib
9413  fi
9414
9415fi
9416
9417  aix_libpath=$lt_cv_aix_libpath_
9418fi
9419
9420        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9421        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
9422      else
9423	if test ia64 = "$host_cpu"; then
9424	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9425	  allow_undefined_flag="-z nodefs"
9426	  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"
9427	else
9428	 # Determine the default libpath from the value encoded in an
9429	 # empty executable.
9430	 if test set = "${lt_cv_aix_libpath+set}"; then
9431  aix_libpath=$lt_cv_aix_libpath
9432else
9433  if ${lt_cv_aix_libpath_+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438
9439int
9440main ()
9441{
9442
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447if ac_fn_c_try_link "$LINENO"; then :
9448
9449  lt_aix_libpath_sed='
9450      /Import File Strings/,/^$/ {
9451	  /^0/ {
9452	      s/^0  *\([^ ]*\) *$/\1/
9453	      p
9454	  }
9455      }'
9456  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9457  # Check for a 64-bit object if we didn't find anything.
9458  if test -z "$lt_cv_aix_libpath_"; then
9459    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9460  fi
9461fi
9462rm -f core conftest.err conftest.$ac_objext \
9463    conftest$ac_exeext conftest.$ac_ext
9464  if test -z "$lt_cv_aix_libpath_"; then
9465    lt_cv_aix_libpath_=/usr/lib:/lib
9466  fi
9467
9468fi
9469
9470  aix_libpath=$lt_cv_aix_libpath_
9471fi
9472
9473	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9474	  # Warning - without using the other run time loading flags,
9475	  # -berok will link without error, but may produce a broken library.
9476	  no_undefined_flag=' $wl-bernotok'
9477	  allow_undefined_flag=' $wl-berok'
9478	  if test yes = "$with_gnu_ld"; then
9479	    # We only use this code for GNU lds that support --whole-archive.
9480	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9481	  else
9482	    # Exported symbols can be pulled into shared objects from archives
9483	    whole_archive_flag_spec='$convenience'
9484	  fi
9485	  archive_cmds_need_lc=yes
9486	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9487	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9488	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9489	  if test svr4 != "$with_aix_soname"; then
9490	    # This is similar to how AIX traditionally builds its shared libraries.
9491	    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'
9492	  fi
9493	  if test aix != "$with_aix_soname"; then
9494	    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'
9495	  else
9496	    # used by -dlpreopen to get the symbols
9497	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9498	  fi
9499	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9500	fi
9501      fi
9502      ;;
9503
9504    amigaos*)
9505      case $host_cpu in
9506      powerpc)
9507            # see comment about AmigaOS4 .so support
9508            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509            archive_expsym_cmds=''
9510        ;;
9511      m68k)
9512            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)'
9513            hardcode_libdir_flag_spec='-L$libdir'
9514            hardcode_minus_L=yes
9515        ;;
9516      esac
9517      ;;
9518
9519    bsdi[45]*)
9520      export_dynamic_flag_spec=-rdynamic
9521      ;;
9522
9523    cygwin* | mingw* | pw32* | cegcc*)
9524      # When not using gcc, we currently assume that we are using
9525      # Microsoft Visual C++.
9526      # hardcode_libdir_flag_spec is actually meaningless, as there is
9527      # no search path for DLLs.
9528      case $cc_basename in
9529      cl*)
9530	# Native MSVC
9531	hardcode_libdir_flag_spec=' '
9532	allow_undefined_flag=unsupported
9533	always_export_symbols=yes
9534	file_list_spec='@'
9535	# Tell ltmain to make .lib files, not .a files.
9536	libext=lib
9537	# Tell ltmain to make .dll files, not .so files.
9538	shrext_cmds=.dll
9539	# FIXME: Setting linknames here is a bad hack.
9540	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9541	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9542            cp "$export_symbols" "$output_objdir/$soname.def";
9543            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9544          else
9545            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9546          fi~
9547          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9548          linknames='
9549	# The linker will not automatically build a static lib if we build a DLL.
9550	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9551	enable_shared_with_static_runtimes=yes
9552	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9553	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9554	# Don't use ranlib
9555	old_postinstall_cmds='chmod 644 $oldlib'
9556	postlink_cmds='lt_outputfile="@OUTPUT@"~
9557          lt_tool_outputfile="@TOOL_OUTPUT@"~
9558          case $lt_outputfile in
9559            *.exe|*.EXE) ;;
9560            *)
9561              lt_outputfile=$lt_outputfile.exe
9562              lt_tool_outputfile=$lt_tool_outputfile.exe
9563              ;;
9564          esac~
9565          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9566            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9567            $RM "$lt_outputfile.manifest";
9568          fi'
9569	;;
9570      *)
9571	# Assume MSVC wrapper
9572	hardcode_libdir_flag_spec=' '
9573	allow_undefined_flag=unsupported
9574	# Tell ltmain to make .lib files, not .a files.
9575	libext=lib
9576	# Tell ltmain to make .dll files, not .so files.
9577	shrext_cmds=.dll
9578	# FIXME: Setting linknames here is a bad hack.
9579	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9580	# The linker will automatically build a .lib file if we build a DLL.
9581	old_archive_from_new_cmds='true'
9582	# FIXME: Should let the user specify the lib program.
9583	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9584	enable_shared_with_static_runtimes=yes
9585	;;
9586      esac
9587      ;;
9588
9589    darwin* | rhapsody*)
9590
9591
9592  archive_cmds_need_lc=no
9593  hardcode_direct=no
9594  hardcode_automatic=yes
9595  hardcode_shlibpath_var=unsupported
9596  if test yes = "$lt_cv_ld_force_load"; then
9597    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\"`'
9598
9599  else
9600    whole_archive_flag_spec=''
9601  fi
9602  link_all_deplibs=yes
9603  allow_undefined_flag=$_lt_dar_allow_undefined
9604  case $cc_basename in
9605     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9606     *) _lt_dar_can_shared=$GCC ;;
9607  esac
9608  if test yes = "$_lt_dar_can_shared"; then
9609    output_verbose_link_cmd=func_echo_all
9610    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9611    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9612    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"
9613    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"
9614
9615  else
9616  ld_shlibs=no
9617  fi
9618
9619      ;;
9620
9621    dgux*)
9622      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623      hardcode_libdir_flag_spec='-L$libdir'
9624      hardcode_shlibpath_var=no
9625      ;;
9626
9627    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9628    # support.  Future versions do this automatically, but an explicit c++rt0.o
9629    # does not break anything, and helps significantly (at the cost of a little
9630    # extra space).
9631    freebsd2.2*)
9632      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9633      hardcode_libdir_flag_spec='-R$libdir'
9634      hardcode_direct=yes
9635      hardcode_shlibpath_var=no
9636      ;;
9637
9638    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639    freebsd2.*)
9640      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641      hardcode_direct=yes
9642      hardcode_minus_L=yes
9643      hardcode_shlibpath_var=no
9644      ;;
9645
9646    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9647    freebsd* | dragonfly*)
9648      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9649      hardcode_libdir_flag_spec='-R$libdir'
9650      hardcode_direct=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    hpux9*)
9655      if test yes = "$GCC"; then
9656	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'
9657      else
9658	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'
9659      fi
9660      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9661      hardcode_libdir_separator=:
9662      hardcode_direct=yes
9663
9664      # hardcode_minus_L: Not really in the search PATH,
9665      # but as the default location of the library.
9666      hardcode_minus_L=yes
9667      export_dynamic_flag_spec='$wl-E'
9668      ;;
9669
9670    hpux10*)
9671      if test yes,no = "$GCC,$with_gnu_ld"; then
9672	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673      else
9674	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675      fi
9676      if test no = "$with_gnu_ld"; then
9677	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9678	hardcode_libdir_separator=:
9679	hardcode_direct=yes
9680	hardcode_direct_absolute=yes
9681	export_dynamic_flag_spec='$wl-E'
9682	# hardcode_minus_L: Not really in the search PATH,
9683	# but as the default location of the library.
9684	hardcode_minus_L=yes
9685      fi
9686      ;;
9687
9688    hpux11*)
9689      if test yes,no = "$GCC,$with_gnu_ld"; then
9690	case $host_cpu in
9691	hppa*64*)
9692	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9693	  ;;
9694	ia64*)
9695	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696	  ;;
9697	*)
9698	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699	  ;;
9700	esac
9701      else
9702	case $host_cpu in
9703	hppa*64*)
9704	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9705	  ;;
9706	ia64*)
9707	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9708	  ;;
9709	*)
9710
9711	  # Older versions of the 11.00 compiler do not understand -b yet
9712	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9713	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9714$as_echo_n "checking if $CC understands -b... " >&6; }
9715if ${lt_cv_prog_compiler__b+:} false; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  lt_cv_prog_compiler__b=no
9719   save_LDFLAGS=$LDFLAGS
9720   LDFLAGS="$LDFLAGS -b"
9721   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9723     # The linker can only warn and ignore the option if not recognized
9724     # So say no if there are warnings
9725     if test -s conftest.err; then
9726       # Append any errors to the config.log.
9727       cat conftest.err 1>&5
9728       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9729       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730       if diff conftest.exp conftest.er2 >/dev/null; then
9731         lt_cv_prog_compiler__b=yes
9732       fi
9733     else
9734       lt_cv_prog_compiler__b=yes
9735     fi
9736   fi
9737   $RM -r conftest*
9738   LDFLAGS=$save_LDFLAGS
9739
9740fi
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9742$as_echo "$lt_cv_prog_compiler__b" >&6; }
9743
9744if test yes = "$lt_cv_prog_compiler__b"; then
9745    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746else
9747    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9748fi
9749
9750	  ;;
9751	esac
9752      fi
9753      if test no = "$with_gnu_ld"; then
9754	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9755	hardcode_libdir_separator=:
9756
9757	case $host_cpu in
9758	hppa*64*|ia64*)
9759	  hardcode_direct=no
9760	  hardcode_shlibpath_var=no
9761	  ;;
9762	*)
9763	  hardcode_direct=yes
9764	  hardcode_direct_absolute=yes
9765	  export_dynamic_flag_spec='$wl-E'
9766
9767	  # hardcode_minus_L: Not really in the search PATH,
9768	  # but as the default location of the library.
9769	  hardcode_minus_L=yes
9770	  ;;
9771	esac
9772      fi
9773      ;;
9774
9775    irix5* | irix6* | nonstopux*)
9776      if test yes = "$GCC"; then
9777	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'
9778	# Try to use the -exported_symbol ld option, if it does not
9779	# work, assume that -exports_file does not work either and
9780	# implicitly export all symbols.
9781	# This should be the same for all languages, so no per-tag cache variable.
9782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9783$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9784if ${lt_cv_irix_exported_symbol+:} false; then :
9785  $as_echo_n "(cached) " >&6
9786else
9787  save_LDFLAGS=$LDFLAGS
9788	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9789	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h.  */
9791int foo (void) { return 0; }
9792_ACEOF
9793if ac_fn_c_try_link "$LINENO"; then :
9794  lt_cv_irix_exported_symbol=yes
9795else
9796  lt_cv_irix_exported_symbol=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext \
9799    conftest$ac_exeext conftest.$ac_ext
9800           LDFLAGS=$save_LDFLAGS
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9803$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9804	if test yes = "$lt_cv_irix_exported_symbol"; then
9805          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'
9806	fi
9807      else
9808	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'
9809	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'
9810      fi
9811      archive_cmds_need_lc='no'
9812      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9813      hardcode_libdir_separator=:
9814      inherit_rpath=yes
9815      link_all_deplibs=yes
9816      ;;
9817
9818    linux*)
9819      case $cc_basename in
9820      tcc*)
9821	# Fabrice Bellard et al's Tiny C Compiler
9822	ld_shlibs=yes
9823	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9824	;;
9825      esac
9826      ;;
9827
9828    netbsd*)
9829      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9830	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9831      else
9832	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9833      fi
9834      hardcode_libdir_flag_spec='-R$libdir'
9835      hardcode_direct=yes
9836      hardcode_shlibpath_var=no
9837      ;;
9838
9839    newsos6)
9840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841      hardcode_direct=yes
9842      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9843      hardcode_libdir_separator=:
9844      hardcode_shlibpath_var=no
9845      ;;
9846
9847    *nto* | *qnx*)
9848      ;;
9849
9850    openbsd* | bitrig*)
9851      if test -f /usr/libexec/ld.so; then
9852	hardcode_direct=yes
9853	hardcode_shlibpath_var=no
9854	hardcode_direct_absolute=yes
9855	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9856	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9858	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9859	  export_dynamic_flag_spec='$wl-E'
9860	else
9861	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9863	fi
9864      else
9865	ld_shlibs=no
9866      fi
9867      ;;
9868
9869    os2*)
9870      hardcode_libdir_flag_spec='-L$libdir'
9871      hardcode_minus_L=yes
9872      allow_undefined_flag=unsupported
9873      shrext_cmds=.dll
9874      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9875	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9876	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9877	$ECHO EXPORTS >> $output_objdir/$libname.def~
9878	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9879	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9880	emximp -o $lib $output_objdir/$libname.def'
9881      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9882	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9883	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9884	$ECHO EXPORTS >> $output_objdir/$libname.def~
9885	prefix_cmds="$SED"~
9886	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9887	  prefix_cmds="$prefix_cmds -e 1d";
9888	fi~
9889	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9890	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9891	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9892	emximp -o $lib $output_objdir/$libname.def'
9893      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9894      enable_shared_with_static_runtimes=yes
9895      ;;
9896
9897    osf3*)
9898      if test yes = "$GCC"; then
9899	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9900	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'
9901      else
9902	allow_undefined_flag=' -expect_unresolved \*'
9903	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'
9904      fi
9905      archive_cmds_need_lc='no'
9906      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907      hardcode_libdir_separator=:
9908      ;;
9909
9910    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9911      if test yes = "$GCC"; then
9912	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9913	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'
9914	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9915      else
9916	allow_undefined_flag=' -expect_unresolved \*'
9917	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'
9918	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~
9919          $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'
9920
9921	# Both c and cxx compiler support -rpath directly
9922	hardcode_libdir_flag_spec='-rpath $libdir'
9923      fi
9924      archive_cmds_need_lc='no'
9925      hardcode_libdir_separator=:
9926      ;;
9927
9928    solaris*)
9929      no_undefined_flag=' -z defs'
9930      if test yes = "$GCC"; then
9931	wlarc='$wl'
9932	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9933	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9934          $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'
9935      else
9936	case `$CC -V 2>&1` in
9937	*"Compilers 5.0"*)
9938	  wlarc=''
9939	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9942	  ;;
9943	*)
9944	  wlarc='$wl'
9945	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9946	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9947            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9948	  ;;
9949	esac
9950      fi
9951      hardcode_libdir_flag_spec='-R$libdir'
9952      hardcode_shlibpath_var=no
9953      case $host_os in
9954      solaris2.[0-5] | solaris2.[0-5].*) ;;
9955      *)
9956	# The compiler driver will combine and reorder linker options,
9957	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9958	# but is careful enough not to reorder.
9959	# Supported since Solaris 2.6 (maybe 2.5.1?)
9960	if test yes = "$GCC"; then
9961	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9962	else
9963	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9964	fi
9965	;;
9966      esac
9967      link_all_deplibs=yes
9968      ;;
9969
9970    sunos4*)
9971      if test sequent = "$host_vendor"; then
9972	# Use $CC to link under sequent, because it throws in some extra .o
9973	# files that make .init and .fini sections work.
9974	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9975      else
9976	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9977      fi
9978      hardcode_libdir_flag_spec='-L$libdir'
9979      hardcode_direct=yes
9980      hardcode_minus_L=yes
9981      hardcode_shlibpath_var=no
9982      ;;
9983
9984    sysv4)
9985      case $host_vendor in
9986	sni)
9987	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988	  hardcode_direct=yes # is this really true???
9989	;;
9990	siemens)
9991	  ## LD is ld it makes a PLAMLIB
9992	  ## CC just makes a GrossModule.
9993	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9994	  reload_cmds='$CC -r -o $output$reload_objs'
9995	  hardcode_direct=no
9996        ;;
9997	motorola)
9998	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10000	;;
10001      esac
10002      runpath_var='LD_RUN_PATH'
10003      hardcode_shlibpath_var=no
10004      ;;
10005
10006    sysv4.3*)
10007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008      hardcode_shlibpath_var=no
10009      export_dynamic_flag_spec='-Bexport'
10010      ;;
10011
10012    sysv4*MP*)
10013      if test -d /usr/nec; then
10014	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015	hardcode_shlibpath_var=no
10016	runpath_var=LD_RUN_PATH
10017	hardcode_runpath_var=yes
10018	ld_shlibs=yes
10019      fi
10020      ;;
10021
10022    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10023      no_undefined_flag='$wl-z,text'
10024      archive_cmds_need_lc=no
10025      hardcode_shlibpath_var=no
10026      runpath_var='LD_RUN_PATH'
10027
10028      if test yes = "$GCC"; then
10029	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031      else
10032	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034      fi
10035      ;;
10036
10037    sysv5* | sco3.2v5* | sco5v6*)
10038      # Note: We CANNOT use -z defs as we might desire, because we do not
10039      # link with -lc, and that would cause any symbols used from libc to
10040      # always be unresolved, which means just about no library would
10041      # ever link correctly.  If we're not using GNU ld we use -z text
10042      # though, which does catch some bad symbols but isn't as heavy-handed
10043      # as -z defs.
10044      no_undefined_flag='$wl-z,text'
10045      allow_undefined_flag='$wl-z,nodefs'
10046      archive_cmds_need_lc=no
10047      hardcode_shlibpath_var=no
10048      hardcode_libdir_flag_spec='$wl-R,$libdir'
10049      hardcode_libdir_separator=':'
10050      link_all_deplibs=yes
10051      export_dynamic_flag_spec='$wl-Bexport'
10052      runpath_var='LD_RUN_PATH'
10053
10054      if test yes = "$GCC"; then
10055	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057      else
10058	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060      fi
10061      ;;
10062
10063    uts4*)
10064      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065      hardcode_libdir_flag_spec='-L$libdir'
10066      hardcode_shlibpath_var=no
10067      ;;
10068
10069    *)
10070      ld_shlibs=no
10071      ;;
10072    esac
10073
10074    if test sni = "$host_vendor"; then
10075      case $host in
10076      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10077	export_dynamic_flag_spec='$wl-Blargedynsym'
10078	;;
10079      esac
10080    fi
10081  fi
10082
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10084$as_echo "$ld_shlibs" >&6; }
10085test no = "$ld_shlibs" && can_build_shared=no
10086
10087with_gnu_ld=$with_gnu_ld
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103#
10104# Do we need to explicitly link libc?
10105#
10106case "x$archive_cmds_need_lc" in
10107x|xyes)
10108  # Assume -lc should be added
10109  archive_cmds_need_lc=yes
10110
10111  if test yes,yes = "$GCC,$enable_shared"; then
10112    case $archive_cmds in
10113    *'~'*)
10114      # FIXME: we may have to deal with multi-command sequences.
10115      ;;
10116    '$CC '*)
10117      # Test whether the compiler implicitly links with -lc since on some
10118      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10119      # to ld, don't add -lc before -lgcc.
10120      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10121$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10122if ${lt_cv_archive_cmds_need_lc+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  $RM conftest*
10126	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10127
10128	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10129  (eval $ac_compile) 2>&5
10130  ac_status=$?
10131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132  test $ac_status = 0; } 2>conftest.err; then
10133	  soname=conftest
10134	  lib=conftest
10135	  libobjs=conftest.$ac_objext
10136	  deplibs=
10137	  wl=$lt_prog_compiler_wl
10138	  pic_flag=$lt_prog_compiler_pic
10139	  compiler_flags=-v
10140	  linker_flags=-v
10141	  verstring=
10142	  output_objdir=.
10143	  libname=conftest
10144	  lt_save_allow_undefined_flag=$allow_undefined_flag
10145	  allow_undefined_flag=
10146	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10147  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10148  ac_status=$?
10149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10150  test $ac_status = 0; }
10151	  then
10152	    lt_cv_archive_cmds_need_lc=no
10153	  else
10154	    lt_cv_archive_cmds_need_lc=yes
10155	  fi
10156	  allow_undefined_flag=$lt_save_allow_undefined_flag
10157	else
10158	  cat conftest.err 1>&5
10159	fi
10160	$RM conftest*
10161
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10164$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10165      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10166      ;;
10167    esac
10168  fi
10169  ;;
10170esac
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324$as_echo_n "checking dynamic linker characteristics... " >&6; }
10325
10326if test yes = "$GCC"; then
10327  case $host_os in
10328    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10329    *) lt_awk_arg='/^libraries:/' ;;
10330  esac
10331  case $host_os in
10332    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10333    *) lt_sed_strip_eq='s|=/|/|g' ;;
10334  esac
10335  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336  case $lt_search_path_spec in
10337  *\;*)
10338    # if the path contains ";" then we assume it to be the separator
10339    # otherwise default to the standard path separator (i.e. ":") - it is
10340    # assumed that no part of a normal pathname contains ";" but that should
10341    # okay in the real world where ";" in dirpaths is itself problematic.
10342    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10343    ;;
10344  *)
10345    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10346    ;;
10347  esac
10348  # Ok, now we have the path, separated by spaces, we can step through it
10349  # and add multilib dir if necessary...
10350  lt_tmp_lt_search_path_spec=
10351  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352  # ...but if some path component already ends with the multilib dir we assume
10353  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10354  case "$lt_multi_os_dir; $lt_search_path_spec " in
10355  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10356    lt_multi_os_dir=
10357    ;;
10358  esac
10359  for lt_sys_path in $lt_search_path_spec; do
10360    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10361      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10362    elif test -n "$lt_multi_os_dir"; then
10363      test -d "$lt_sys_path" && \
10364	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10365    fi
10366  done
10367  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10368BEGIN {RS = " "; FS = "/|\n";} {
10369  lt_foo = "";
10370  lt_count = 0;
10371  for (lt_i = NF; lt_i > 0; lt_i--) {
10372    if ($lt_i != "" && $lt_i != ".") {
10373      if ($lt_i == "..") {
10374        lt_count++;
10375      } else {
10376        if (lt_count == 0) {
10377          lt_foo = "/" $lt_i lt_foo;
10378        } else {
10379          lt_count--;
10380        }
10381      }
10382    }
10383  }
10384  if (lt_foo != "") { lt_freq[lt_foo]++; }
10385  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10386}'`
10387  # AWK program above erroneously prepends '/' to C:/dos/paths
10388  # for these hosts.
10389  case $host_os in
10390    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10391      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10392  esac
10393  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10394else
10395  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10396fi
10397library_names_spec=
10398libname_spec='lib$name'
10399soname_spec=
10400shrext_cmds=.so
10401postinstall_cmds=
10402postuninstall_cmds=
10403finish_cmds=
10404finish_eval=
10405shlibpath_var=
10406shlibpath_overrides_runpath=unknown
10407version_type=none
10408dynamic_linker="$host_os ld.so"
10409sys_lib_dlsearch_path_spec="/lib /usr/lib"
10410need_lib_prefix=unknown
10411hardcode_into_libs=no
10412
10413# when you set need_version to no, make sure it does not cause -set_version
10414# flags to be left without arguments
10415need_version=unknown
10416
10417
10418
10419case $host_os in
10420aix3*)
10421  version_type=linux # correct to gnu/linux during the next big refactor
10422  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10423  shlibpath_var=LIBPATH
10424
10425  # AIX 3 has no versioning support, so we append a major version to the name.
10426  soname_spec='$libname$release$shared_ext$major'
10427  ;;
10428
10429aix[4-9]*)
10430  version_type=linux # correct to gnu/linux during the next big refactor
10431  need_lib_prefix=no
10432  need_version=no
10433  hardcode_into_libs=yes
10434  if test ia64 = "$host_cpu"; then
10435    # AIX 5 supports IA64
10436    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10437    shlibpath_var=LD_LIBRARY_PATH
10438  else
10439    # With GCC up to 2.95.x, collect2 would create an import file
10440    # for dependence libraries.  The import file would start with
10441    # the line '#! .'.  This would cause the generated library to
10442    # depend on '.', always an invalid library.  This was fixed in
10443    # development snapshots of GCC prior to 3.0.
10444    case $host_os in
10445      aix4 | aix4.[01] | aix4.[01].*)
10446      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10447	   echo ' yes '
10448	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10449	:
10450      else
10451	can_build_shared=no
10452      fi
10453      ;;
10454    esac
10455    # Using Import Files as archive members, it is possible to support
10456    # filename-based versioning of shared library archives on AIX. While
10457    # this would work for both with and without runtime linking, it will
10458    # prevent static linking of such archives. So we do filename-based
10459    # shared library versioning with .so extension only, which is used
10460    # when both runtime linking and shared linking is enabled.
10461    # Unfortunately, runtime linking may impact performance, so we do
10462    # not want this to be the default eventually. Also, we use the
10463    # versioned .so libs for executables only if there is the -brtl
10464    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10465    # To allow for filename-based versioning support, we need to create
10466    # libNAME.so.V as an archive file, containing:
10467    # *) an Import File, referring to the versioned filename of the
10468    #    archive as well as the shared archive member, telling the
10469    #    bitwidth (32 or 64) of that shared object, and providing the
10470    #    list of exported symbols of that shared object, eventually
10471    #    decorated with the 'weak' keyword
10472    # *) the shared object with the F_LOADONLY flag set, to really avoid
10473    #    it being seen by the linker.
10474    # At run time we better use the real file rather than another symlink,
10475    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10476
10477    case $with_aix_soname,$aix_use_runtimelinking in
10478    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10479    # soname into executable. Probably we can add versioning support to
10480    # collect2, so additional links can be useful in future.
10481    aix,yes) # traditional libtool
10482      dynamic_linker='AIX unversionable lib.so'
10483      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10484      # instead of lib<name>.a to let people know that these are not
10485      # typical AIX shared libraries.
10486      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10487      ;;
10488    aix,no) # traditional AIX only
10489      dynamic_linker='AIX lib.a(lib.so.V)'
10490      # We preserve .a as extension for shared libraries through AIX4.2
10491      # and later when we are not doing run time linking.
10492      library_names_spec='$libname$release.a $libname.a'
10493      soname_spec='$libname$release$shared_ext$major'
10494      ;;
10495    svr4,*) # full svr4 only
10496      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10497      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10498      # We do not specify a path in Import Files, so LIBPATH fires.
10499      shlibpath_overrides_runpath=yes
10500      ;;
10501    *,yes) # both, prefer svr4
10502      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10503      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10504      # unpreferred sharedlib libNAME.a needs extra handling
10505      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"'
10506      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"'
10507      # We do not specify a path in Import Files, so LIBPATH fires.
10508      shlibpath_overrides_runpath=yes
10509      ;;
10510    *,no) # both, prefer aix
10511      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10512      library_names_spec='$libname$release.a $libname.a'
10513      soname_spec='$libname$release$shared_ext$major'
10514      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10515      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)'
10516      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"'
10517      ;;
10518    esac
10519    shlibpath_var=LIBPATH
10520  fi
10521  ;;
10522
10523amigaos*)
10524  case $host_cpu in
10525  powerpc)
10526    # Since July 2007 AmigaOS4 officially supports .so libraries.
10527    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10528    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10529    ;;
10530  m68k)
10531    library_names_spec='$libname.ixlibrary $libname.a'
10532    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10533    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'
10534    ;;
10535  esac
10536  ;;
10537
10538beos*)
10539  library_names_spec='$libname$shared_ext'
10540  dynamic_linker="$host_os ld.so"
10541  shlibpath_var=LIBRARY_PATH
10542  ;;
10543
10544bsdi[45]*)
10545  version_type=linux # correct to gnu/linux during the next big refactor
10546  need_version=no
10547  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10548  soname_spec='$libname$release$shared_ext$major'
10549  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10550  shlibpath_var=LD_LIBRARY_PATH
10551  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10552  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10553  # the default ld.so.conf also contains /usr/contrib/lib and
10554  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10555  # libtool to hard-code these into programs
10556  ;;
10557
10558cygwin* | mingw* | pw32* | cegcc*)
10559  version_type=windows
10560  shrext_cmds=.dll
10561  need_version=no
10562  need_lib_prefix=no
10563
10564  case $GCC,$cc_basename in
10565  yes,*)
10566    # gcc
10567    library_names_spec='$libname.dll.a'
10568    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10569    postinstall_cmds='base_file=`basename \$file`~
10570      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10571      dldir=$destdir/`dirname \$dlpath`~
10572      test -d \$dldir || mkdir -p \$dldir~
10573      $install_prog $dir/$dlname \$dldir/$dlname~
10574      chmod a+x \$dldir/$dlname~
10575      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10576        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10577      fi'
10578    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10579      dlpath=$dir/\$dldll~
10580       $RM \$dlpath'
10581    shlibpath_overrides_runpath=yes
10582
10583    case $host_os in
10584    cygwin*)
10585      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10586      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10587
10588      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10589      ;;
10590    mingw* | cegcc*)
10591      # MinGW DLLs use traditional 'lib' prefix
10592      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10593      ;;
10594    pw32*)
10595      # pw32 DLLs use 'pw' prefix rather than 'lib'
10596      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10597      ;;
10598    esac
10599    dynamic_linker='Win32 ld.exe'
10600    ;;
10601
10602  *,cl*)
10603    # Native MSVC
10604    libname_spec='$name'
10605    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10606    library_names_spec='$libname.dll.lib'
10607
10608    case $build_os in
10609    mingw*)
10610      sys_lib_search_path_spec=
10611      lt_save_ifs=$IFS
10612      IFS=';'
10613      for lt_path in $LIB
10614      do
10615        IFS=$lt_save_ifs
10616        # Let DOS variable expansion print the short 8.3 style file name.
10617        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10618        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10619      done
10620      IFS=$lt_save_ifs
10621      # Convert to MSYS style.
10622      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10623      ;;
10624    cygwin*)
10625      # Convert to unix form, then to dos form, then back to unix form
10626      # but this time dos style (no spaces!) so that the unix form looks
10627      # like /cygdrive/c/PROGRA~1:/cygdr...
10628      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10629      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10630      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10631      ;;
10632    *)
10633      sys_lib_search_path_spec=$LIB
10634      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10635        # It is most probably a Windows format PATH.
10636        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10637      else
10638        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10639      fi
10640      # FIXME: find the short name or the path components, as spaces are
10641      # common. (e.g. "Program Files" -> "PROGRA~1")
10642      ;;
10643    esac
10644
10645    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10646    postinstall_cmds='base_file=`basename \$file`~
10647      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10648      dldir=$destdir/`dirname \$dlpath`~
10649      test -d \$dldir || mkdir -p \$dldir~
10650      $install_prog $dir/$dlname \$dldir/$dlname'
10651    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10652      dlpath=$dir/\$dldll~
10653       $RM \$dlpath'
10654    shlibpath_overrides_runpath=yes
10655    dynamic_linker='Win32 link.exe'
10656    ;;
10657
10658  *)
10659    # Assume MSVC wrapper
10660    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10661    dynamic_linker='Win32 ld.exe'
10662    ;;
10663  esac
10664  # FIXME: first we should search . and the directory the executable is in
10665  shlibpath_var=PATH
10666  ;;
10667
10668darwin* | rhapsody*)
10669  dynamic_linker="$host_os dyld"
10670  version_type=darwin
10671  need_lib_prefix=no
10672  need_version=no
10673  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10674  soname_spec='$libname$release$major$shared_ext'
10675  shlibpath_overrides_runpath=yes
10676  shlibpath_var=DYLD_LIBRARY_PATH
10677  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10678
10679  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10680  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10681  ;;
10682
10683dgux*)
10684  version_type=linux # correct to gnu/linux during the next big refactor
10685  need_lib_prefix=no
10686  need_version=no
10687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10688  soname_spec='$libname$release$shared_ext$major'
10689  shlibpath_var=LD_LIBRARY_PATH
10690  ;;
10691
10692freebsd* | dragonfly*)
10693  # DragonFly does not have aout.  When/if they implement a new
10694  # versioning mechanism, adjust this.
10695  if test -x /usr/bin/objformat; then
10696    objformat=`/usr/bin/objformat`
10697  else
10698    case $host_os in
10699    freebsd[23].*) objformat=aout ;;
10700    *) objformat=elf ;;
10701    esac
10702  fi
10703  version_type=freebsd-$objformat
10704  case $version_type in
10705    freebsd-elf*)
10706      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10707      soname_spec='$libname$release$shared_ext$major'
10708      need_version=no
10709      need_lib_prefix=no
10710      ;;
10711    freebsd-*)
10712      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10713      need_version=yes
10714      ;;
10715  esac
10716  shlibpath_var=LD_LIBRARY_PATH
10717  case $host_os in
10718  freebsd2.*)
10719    shlibpath_overrides_runpath=yes
10720    ;;
10721  freebsd3.[01]* | freebsdelf3.[01]*)
10722    shlibpath_overrides_runpath=yes
10723    hardcode_into_libs=yes
10724    ;;
10725  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10726  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10727    shlibpath_overrides_runpath=no
10728    hardcode_into_libs=yes
10729    ;;
10730  *) # from 4.6 on, and DragonFly
10731    shlibpath_overrides_runpath=yes
10732    hardcode_into_libs=yes
10733    ;;
10734  esac
10735  ;;
10736
10737haiku*)
10738  version_type=linux # correct to gnu/linux during the next big refactor
10739  need_lib_prefix=no
10740  need_version=no
10741  dynamic_linker="$host_os runtime_loader"
10742  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743  soname_spec='$libname$release$shared_ext$major'
10744  shlibpath_var=LIBRARY_PATH
10745  shlibpath_overrides_runpath=no
10746  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10747  hardcode_into_libs=yes
10748  ;;
10749
10750hpux9* | hpux10* | hpux11*)
10751  # Give a soname corresponding to the major version so that dld.sl refuses to
10752  # link against other versions.
10753  version_type=sunos
10754  need_lib_prefix=no
10755  need_version=no
10756  case $host_cpu in
10757  ia64*)
10758    shrext_cmds='.so'
10759    hardcode_into_libs=yes
10760    dynamic_linker="$host_os dld.so"
10761    shlibpath_var=LD_LIBRARY_PATH
10762    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764    soname_spec='$libname$release$shared_ext$major'
10765    if test 32 = "$HPUX_IA64_MODE"; then
10766      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10767      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10768    else
10769      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10770      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10771    fi
10772    ;;
10773  hppa*64*)
10774    shrext_cmds='.sl'
10775    hardcode_into_libs=yes
10776    dynamic_linker="$host_os dld.sl"
10777    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780    soname_spec='$libname$release$shared_ext$major'
10781    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10782    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10783    ;;
10784  *)
10785    shrext_cmds='.sl'
10786    dynamic_linker="$host_os dld.sl"
10787    shlibpath_var=SHLIB_PATH
10788    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10789    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10790    soname_spec='$libname$release$shared_ext$major'
10791    ;;
10792  esac
10793  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10794  postinstall_cmds='chmod 555 $lib'
10795  # or fails outright, so override atomically:
10796  install_override_mode=555
10797  ;;
10798
10799interix[3-9]*)
10800  version_type=linux # correct to gnu/linux during the next big refactor
10801  need_lib_prefix=no
10802  need_version=no
10803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804  soname_spec='$libname$release$shared_ext$major'
10805  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10806  shlibpath_var=LD_LIBRARY_PATH
10807  shlibpath_overrides_runpath=no
10808  hardcode_into_libs=yes
10809  ;;
10810
10811irix5* | irix6* | nonstopux*)
10812  case $host_os in
10813    nonstopux*) version_type=nonstopux ;;
10814    *)
10815	if test yes = "$lt_cv_prog_gnu_ld"; then
10816		version_type=linux # correct to gnu/linux during the next big refactor
10817	else
10818		version_type=irix
10819	fi ;;
10820  esac
10821  need_lib_prefix=no
10822  need_version=no
10823  soname_spec='$libname$release$shared_ext$major'
10824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10825  case $host_os in
10826  irix5* | nonstopux*)
10827    libsuff= shlibsuff=
10828    ;;
10829  *)
10830    case $LD in # libtool.m4 will add one of these switches to LD
10831    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10832      libsuff= shlibsuff= libmagic=32-bit;;
10833    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10834      libsuff=32 shlibsuff=N32 libmagic=N32;;
10835    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10836      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10837    *) libsuff= shlibsuff= libmagic=never-match;;
10838    esac
10839    ;;
10840  esac
10841  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10842  shlibpath_overrides_runpath=no
10843  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10844  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10845  hardcode_into_libs=yes
10846  ;;
10847
10848# No shared lib support for Linux oldld, aout, or coff.
10849linux*oldld* | linux*aout* | linux*coff*)
10850  dynamic_linker=no
10851  ;;
10852
10853linux*android*)
10854  version_type=none # Android doesn't support versioned libraries.
10855  need_lib_prefix=no
10856  need_version=no
10857  library_names_spec='$libname$release$shared_ext'
10858  soname_spec='$libname$release$shared_ext'
10859  finish_cmds=
10860  shlibpath_var=LD_LIBRARY_PATH
10861  shlibpath_overrides_runpath=yes
10862
10863  # This implies no fast_install, which is unacceptable.
10864  # Some rework will be needed to allow for fast_install
10865  # before this can be enabled.
10866  hardcode_into_libs=yes
10867
10868  dynamic_linker='Android linker'
10869  # Don't embed -rpath directories since the linker doesn't support them.
10870  hardcode_libdir_flag_spec='-L$libdir'
10871  ;;
10872
10873# This must be glibc/ELF.
10874linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10875  version_type=linux # correct to gnu/linux during the next big refactor
10876  need_lib_prefix=no
10877  need_version=no
10878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879  soname_spec='$libname$release$shared_ext$major'
10880  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10881  shlibpath_var=LD_LIBRARY_PATH
10882  shlibpath_overrides_runpath=no
10883
10884  # Some binutils ld are patched to set DT_RUNPATH
10885  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10886  $as_echo_n "(cached) " >&6
10887else
10888  lt_cv_shlibpath_overrides_runpath=no
10889    save_LDFLAGS=$LDFLAGS
10890    save_libdir=$libdir
10891    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10892	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10893    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894/* end confdefs.h.  */
10895
10896int
10897main ()
10898{
10899
10900  ;
10901  return 0;
10902}
10903_ACEOF
10904if ac_fn_c_try_link "$LINENO"; then :
10905  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10906  lt_cv_shlibpath_overrides_runpath=yes
10907fi
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910    conftest$ac_exeext conftest.$ac_ext
10911    LDFLAGS=$save_LDFLAGS
10912    libdir=$save_libdir
10913
10914fi
10915
10916  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10917
10918  # This implies no fast_install, which is unacceptable.
10919  # Some rework will be needed to allow for fast_install
10920  # before this can be enabled.
10921  hardcode_into_libs=yes
10922
10923  # Add ABI-specific directories to the system library path.
10924  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10925
10926  # Ideally, we could use ldconfig to report *all* directores which are
10927  # searched for libraries, however this is still not possible.  Aside from not
10928  # being certain /sbin/ldconfig is available, command
10929  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10930  # even though it is searched at run-time.  Try to do the best guess by
10931  # appending ld.so.conf contents (and includes) to the search path.
10932  if test -f /etc/ld.so.conf; then
10933    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' ' '`
10934    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10935  fi
10936
10937  # We used to test for /lib/ld.so.1 and disable shared libraries on
10938  # powerpc, because MkLinux only supported shared libraries with the
10939  # GNU dynamic linker.  Since this was broken with cross compilers,
10940  # most powerpc-linux boxes support dynamic linking these days and
10941  # people can always --disable-shared, the test was removed, and we
10942  # assume the GNU/Linux dynamic linker is in use.
10943  dynamic_linker='GNU/Linux ld.so'
10944  ;;
10945
10946netbsd*)
10947  version_type=sunos
10948  need_lib_prefix=no
10949  need_version=no
10950  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10951    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10952    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10953    dynamic_linker='NetBSD (a.out) ld.so'
10954  else
10955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956    soname_spec='$libname$release$shared_ext$major'
10957    dynamic_linker='NetBSD ld.elf_so'
10958  fi
10959  shlibpath_var=LD_LIBRARY_PATH
10960  shlibpath_overrides_runpath=yes
10961  hardcode_into_libs=yes
10962  ;;
10963
10964newsos6)
10965  version_type=linux # correct to gnu/linux during the next big refactor
10966  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10967  shlibpath_var=LD_LIBRARY_PATH
10968  shlibpath_overrides_runpath=yes
10969  ;;
10970
10971*nto* | *qnx*)
10972  version_type=qnx
10973  need_lib_prefix=no
10974  need_version=no
10975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10976  soname_spec='$libname$release$shared_ext$major'
10977  shlibpath_var=LD_LIBRARY_PATH
10978  shlibpath_overrides_runpath=no
10979  hardcode_into_libs=yes
10980  dynamic_linker='ldqnx.so'
10981  ;;
10982
10983openbsd* | bitrig*)
10984  version_type=sunos
10985  sys_lib_dlsearch_path_spec=/usr/lib
10986  need_lib_prefix=no
10987  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10988    need_version=no
10989  else
10990    need_version=yes
10991  fi
10992  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10993  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10994  shlibpath_var=LD_LIBRARY_PATH
10995  shlibpath_overrides_runpath=yes
10996  ;;
10997
10998os2*)
10999  libname_spec='$name'
11000  version_type=windows
11001  shrext_cmds=.dll
11002  need_version=no
11003  need_lib_prefix=no
11004  # OS/2 can only load a DLL with a base name of 8 characters or less.
11005  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11006    v=$($ECHO $release$versuffix | tr -d .-);
11007    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11008    $ECHO $n$v`$shared_ext'
11009  library_names_spec='${libname}_dll.$libext'
11010  dynamic_linker='OS/2 ld.exe'
11011  shlibpath_var=BEGINLIBPATH
11012  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11013  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11014  postinstall_cmds='base_file=`basename \$file`~
11015    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11016    dldir=$destdir/`dirname \$dlpath`~
11017    test -d \$dldir || mkdir -p \$dldir~
11018    $install_prog $dir/$dlname \$dldir/$dlname~
11019    chmod a+x \$dldir/$dlname~
11020    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11021      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11022    fi'
11023  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11024    dlpath=$dir/\$dldll~
11025    $RM \$dlpath'
11026  ;;
11027
11028osf3* | osf4* | osf5*)
11029  version_type=osf
11030  need_lib_prefix=no
11031  need_version=no
11032  soname_spec='$libname$release$shared_ext$major'
11033  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034  shlibpath_var=LD_LIBRARY_PATH
11035  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11036  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11037  ;;
11038
11039rdos*)
11040  dynamic_linker=no
11041  ;;
11042
11043solaris*)
11044  version_type=linux # correct to gnu/linux during the next big refactor
11045  need_lib_prefix=no
11046  need_version=no
11047  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11048  soname_spec='$libname$release$shared_ext$major'
11049  shlibpath_var=LD_LIBRARY_PATH
11050  shlibpath_overrides_runpath=yes
11051  hardcode_into_libs=yes
11052  # ldd complains unless libraries are executable
11053  postinstall_cmds='chmod +x $lib'
11054  ;;
11055
11056sunos4*)
11057  version_type=sunos
11058  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11059  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11060  shlibpath_var=LD_LIBRARY_PATH
11061  shlibpath_overrides_runpath=yes
11062  if test yes = "$with_gnu_ld"; then
11063    need_lib_prefix=no
11064  fi
11065  need_version=yes
11066  ;;
11067
11068sysv4 | sysv4.3*)
11069  version_type=linux # correct to gnu/linux during the next big refactor
11070  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11071  soname_spec='$libname$release$shared_ext$major'
11072  shlibpath_var=LD_LIBRARY_PATH
11073  case $host_vendor in
11074    sni)
11075      shlibpath_overrides_runpath=no
11076      need_lib_prefix=no
11077      runpath_var=LD_RUN_PATH
11078      ;;
11079    siemens)
11080      need_lib_prefix=no
11081      ;;
11082    motorola)
11083      need_lib_prefix=no
11084      need_version=no
11085      shlibpath_overrides_runpath=no
11086      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11087      ;;
11088  esac
11089  ;;
11090
11091sysv4*MP*)
11092  if test -d /usr/nec; then
11093    version_type=linux # correct to gnu/linux during the next big refactor
11094    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11095    soname_spec='$libname$shared_ext.$major'
11096    shlibpath_var=LD_LIBRARY_PATH
11097  fi
11098  ;;
11099
11100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11101  version_type=sco
11102  need_lib_prefix=no
11103  need_version=no
11104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11105  soname_spec='$libname$release$shared_ext$major'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  shlibpath_overrides_runpath=yes
11108  hardcode_into_libs=yes
11109  if test yes = "$with_gnu_ld"; then
11110    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11111  else
11112    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11113    case $host_os in
11114      sco3.2v5*)
11115        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11116	;;
11117    esac
11118  fi
11119  sys_lib_dlsearch_path_spec='/usr/lib'
11120  ;;
11121
11122tpf*)
11123  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11124  version_type=linux # correct to gnu/linux during the next big refactor
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128  shlibpath_var=LD_LIBRARY_PATH
11129  shlibpath_overrides_runpath=no
11130  hardcode_into_libs=yes
11131  ;;
11132
11133uts4*)
11134  version_type=linux # correct to gnu/linux during the next big refactor
11135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136  soname_spec='$libname$release$shared_ext$major'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  ;;
11139
11140*)
11141  dynamic_linker=no
11142  ;;
11143esac
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11145$as_echo "$dynamic_linker" >&6; }
11146test no = "$dynamic_linker" && can_build_shared=no
11147
11148variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11149if test yes = "$GCC"; then
11150  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11151fi
11152
11153if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11154  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11155fi
11156
11157if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11158  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11159fi
11160
11161# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11162configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11163
11164# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11165func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11166
11167# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11168configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11267$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11268hardcode_action=
11269if test -n "$hardcode_libdir_flag_spec" ||
11270   test -n "$runpath_var" ||
11271   test yes = "$hardcode_automatic"; then
11272
11273  # We can hardcode non-existent directories.
11274  if test no != "$hardcode_direct" &&
11275     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11276     # have to relink, otherwise we might link with an installed library
11277     # when we should be linking with a yet-to-be-installed one
11278     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11279     test no != "$hardcode_minus_L"; then
11280    # Linking always hardcodes the temporary library directory.
11281    hardcode_action=relink
11282  else
11283    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11284    hardcode_action=immediate
11285  fi
11286else
11287  # We cannot hardcode anything, or else we can only hardcode existing
11288  # directories.
11289  hardcode_action=unsupported
11290fi
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11292$as_echo "$hardcode_action" >&6; }
11293
11294if test relink = "$hardcode_action" ||
11295   test yes = "$inherit_rpath"; then
11296  # Fast installation is not supported
11297  enable_fast_install=no
11298elif test yes = "$shlibpath_overrides_runpath" ||
11299     test no = "$enable_shared"; then
11300  # Fast installation is not necessary
11301  enable_fast_install=needless
11302fi
11303
11304
11305
11306
11307
11308
11309  if test yes != "$enable_dlopen"; then
11310  enable_dlopen=unknown
11311  enable_dlopen_self=unknown
11312  enable_dlopen_self_static=unknown
11313else
11314  lt_cv_dlopen=no
11315  lt_cv_dlopen_libs=
11316
11317  case $host_os in
11318  beos*)
11319    lt_cv_dlopen=load_add_on
11320    lt_cv_dlopen_libs=
11321    lt_cv_dlopen_self=yes
11322    ;;
11323
11324  mingw* | pw32* | cegcc*)
11325    lt_cv_dlopen=LoadLibrary
11326    lt_cv_dlopen_libs=
11327    ;;
11328
11329  cygwin*)
11330    lt_cv_dlopen=dlopen
11331    lt_cv_dlopen_libs=
11332    ;;
11333
11334  darwin*)
11335    # if libdl is installed we need to link against it
11336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337$as_echo_n "checking for dlopen in -ldl... " >&6; }
11338if ${ac_cv_lib_dl_dlopen+:} false; then :
11339  $as_echo_n "(cached) " >&6
11340else
11341  ac_check_lib_save_LIBS=$LIBS
11342LIBS="-ldl  $LIBS"
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h.  */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347   Use char because int might match the return type of a GCC
11348   builtin and then its argument prototype would still apply.  */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dlopen ();
11353int
11354main ()
11355{
11356return dlopen ();
11357  ;
11358  return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
11362  ac_cv_lib_dl_dlopen=yes
11363else
11364  ac_cv_lib_dl_dlopen=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367    conftest$ac_exeext conftest.$ac_ext
11368LIBS=$ac_check_lib_save_LIBS
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11374else
11375
11376    lt_cv_dlopen=dyld
11377    lt_cv_dlopen_libs=
11378    lt_cv_dlopen_self=yes
11379
11380fi
11381
11382    ;;
11383
11384  tpf*)
11385    # Don't try to run any link tests for TPF.  We know it's impossible
11386    # because TPF is a cross-compiler, and we know how we open DSOs.
11387    lt_cv_dlopen=dlopen
11388    lt_cv_dlopen_libs=
11389    lt_cv_dlopen_self=no
11390    ;;
11391
11392  *)
11393    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11394if test "x$ac_cv_func_shl_load" = xyes; then :
11395  lt_cv_dlopen=shl_load
11396else
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11398$as_echo_n "checking for shl_load in -ldld... " >&6; }
11399if ${ac_cv_lib_dld_shl_load+:} false; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  ac_check_lib_save_LIBS=$LIBS
11403LIBS="-ldld  $LIBS"
11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407/* Override any GCC internal prototype to avoid an error.
11408   Use char because int might match the return type of a GCC
11409   builtin and then its argument prototype would still apply.  */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char shl_load ();
11414int
11415main ()
11416{
11417return shl_load ();
11418  ;
11419  return 0;
11420}
11421_ACEOF
11422if ac_fn_c_try_link "$LINENO"; then :
11423  ac_cv_lib_dld_shl_load=yes
11424else
11425  ac_cv_lib_dld_shl_load=no
11426fi
11427rm -f core conftest.err conftest.$ac_objext \
11428    conftest$ac_exeext conftest.$ac_ext
11429LIBS=$ac_check_lib_save_LIBS
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11432$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11433if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11434  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11435else
11436  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11437if test "x$ac_cv_func_dlopen" = xyes; then :
11438  lt_cv_dlopen=dlopen
11439else
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11441$as_echo_n "checking for dlopen in -ldl... " >&6; }
11442if ${ac_cv_lib_dl_dlopen+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  ac_check_lib_save_LIBS=$LIBS
11446LIBS="-ldl  $LIBS"
11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h.  */
11449
11450/* Override any GCC internal prototype to avoid an error.
11451   Use char because int might match the return type of a GCC
11452   builtin and then its argument prototype would still apply.  */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456char dlopen ();
11457int
11458main ()
11459{
11460return dlopen ();
11461  ;
11462  return 0;
11463}
11464_ACEOF
11465if ac_fn_c_try_link "$LINENO"; then :
11466  ac_cv_lib_dl_dlopen=yes
11467else
11468  ac_cv_lib_dl_dlopen=no
11469fi
11470rm -f core conftest.err conftest.$ac_objext \
11471    conftest$ac_exeext conftest.$ac_ext
11472LIBS=$ac_check_lib_save_LIBS
11473fi
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11477  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11480$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11481if ${ac_cv_lib_svld_dlopen+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-lsvld  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char dlopen ();
11496int
11497main ()
11498{
11499return dlopen ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_svld_dlopen=yes
11506else
11507  ac_cv_lib_svld_dlopen=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11514$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11515if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11516  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11517else
11518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11519$as_echo_n "checking for dld_link in -ldld... " >&6; }
11520if ${ac_cv_lib_dld_dld_link+:} false; then :
11521  $as_echo_n "(cached) " >&6
11522else
11523  ac_check_lib_save_LIBS=$LIBS
11524LIBS="-ldld  $LIBS"
11525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h.  */
11527
11528/* Override any GCC internal prototype to avoid an error.
11529   Use char because int might match the return type of a GCC
11530   builtin and then its argument prototype would still apply.  */
11531#ifdef __cplusplus
11532extern "C"
11533#endif
11534char dld_link ();
11535int
11536main ()
11537{
11538return dld_link ();
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543if ac_fn_c_try_link "$LINENO"; then :
11544  ac_cv_lib_dld_dld_link=yes
11545else
11546  ac_cv_lib_dld_dld_link=no
11547fi
11548rm -f core conftest.err conftest.$ac_objext \
11549    conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11553$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11554if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11555  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11556fi
11557
11558
11559fi
11560
11561
11562fi
11563
11564
11565fi
11566
11567
11568fi
11569
11570
11571fi
11572
11573    ;;
11574  esac
11575
11576  if test no = "$lt_cv_dlopen"; then
11577    enable_dlopen=no
11578  else
11579    enable_dlopen=yes
11580  fi
11581
11582  case $lt_cv_dlopen in
11583  dlopen)
11584    save_CPPFLAGS=$CPPFLAGS
11585    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11586
11587    save_LDFLAGS=$LDFLAGS
11588    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11589
11590    save_LIBS=$LIBS
11591    LIBS="$lt_cv_dlopen_libs $LIBS"
11592
11593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11594$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11595if ${lt_cv_dlopen_self+:} false; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  	  if test yes = "$cross_compiling"; then :
11599  lt_cv_dlopen_self=cross
11600else
11601  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11602  lt_status=$lt_dlunknown
11603  cat > conftest.$ac_ext <<_LT_EOF
11604#line $LINENO "configure"
11605#include "confdefs.h"
11606
11607#if HAVE_DLFCN_H
11608#include <dlfcn.h>
11609#endif
11610
11611#include <stdio.h>
11612
11613#ifdef RTLD_GLOBAL
11614#  define LT_DLGLOBAL		RTLD_GLOBAL
11615#else
11616#  ifdef DL_GLOBAL
11617#    define LT_DLGLOBAL		DL_GLOBAL
11618#  else
11619#    define LT_DLGLOBAL		0
11620#  endif
11621#endif
11622
11623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11624   find out it does not work in some platform. */
11625#ifndef LT_DLLAZY_OR_NOW
11626#  ifdef RTLD_LAZY
11627#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11628#  else
11629#    ifdef DL_LAZY
11630#      define LT_DLLAZY_OR_NOW		DL_LAZY
11631#    else
11632#      ifdef RTLD_NOW
11633#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11634#      else
11635#        ifdef DL_NOW
11636#          define LT_DLLAZY_OR_NOW	DL_NOW
11637#        else
11638#          define LT_DLLAZY_OR_NOW	0
11639#        endif
11640#      endif
11641#    endif
11642#  endif
11643#endif
11644
11645/* When -fvisibility=hidden is used, assume the code has been annotated
11646   correspondingly for the symbols needed.  */
11647#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11648int fnord () __attribute__((visibility("default")));
11649#endif
11650
11651int fnord () { return 42; }
11652int main ()
11653{
11654  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11655  int status = $lt_dlunknown;
11656
11657  if (self)
11658    {
11659      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11660      else
11661        {
11662	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11663          else puts (dlerror ());
11664	}
11665      /* dlclose (self); */
11666    }
11667  else
11668    puts (dlerror ());
11669
11670  return status;
11671}
11672_LT_EOF
11673  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11674  (eval $ac_link) 2>&5
11675  ac_status=$?
11676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11678    (./conftest; exit; ) >&5 2>/dev/null
11679    lt_status=$?
11680    case x$lt_status in
11681      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11682      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11683      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11684    esac
11685  else :
11686    # compilation failed
11687    lt_cv_dlopen_self=no
11688  fi
11689fi
11690rm -fr conftest*
11691
11692
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11695$as_echo "$lt_cv_dlopen_self" >&6; }
11696
11697    if test yes = "$lt_cv_dlopen_self"; then
11698      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11699      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11700$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11701if ${lt_cv_dlopen_self_static+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  	  if test yes = "$cross_compiling"; then :
11705  lt_cv_dlopen_self_static=cross
11706else
11707  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11708  lt_status=$lt_dlunknown
11709  cat > conftest.$ac_ext <<_LT_EOF
11710#line $LINENO "configure"
11711#include "confdefs.h"
11712
11713#if HAVE_DLFCN_H
11714#include <dlfcn.h>
11715#endif
11716
11717#include <stdio.h>
11718
11719#ifdef RTLD_GLOBAL
11720#  define LT_DLGLOBAL		RTLD_GLOBAL
11721#else
11722#  ifdef DL_GLOBAL
11723#    define LT_DLGLOBAL		DL_GLOBAL
11724#  else
11725#    define LT_DLGLOBAL		0
11726#  endif
11727#endif
11728
11729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11730   find out it does not work in some platform. */
11731#ifndef LT_DLLAZY_OR_NOW
11732#  ifdef RTLD_LAZY
11733#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11734#  else
11735#    ifdef DL_LAZY
11736#      define LT_DLLAZY_OR_NOW		DL_LAZY
11737#    else
11738#      ifdef RTLD_NOW
11739#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11740#      else
11741#        ifdef DL_NOW
11742#          define LT_DLLAZY_OR_NOW	DL_NOW
11743#        else
11744#          define LT_DLLAZY_OR_NOW	0
11745#        endif
11746#      endif
11747#    endif
11748#  endif
11749#endif
11750
11751/* When -fvisibility=hidden is used, assume the code has been annotated
11752   correspondingly for the symbols needed.  */
11753#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11754int fnord () __attribute__((visibility("default")));
11755#endif
11756
11757int fnord () { return 42; }
11758int main ()
11759{
11760  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11761  int status = $lt_dlunknown;
11762
11763  if (self)
11764    {
11765      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11766      else
11767        {
11768	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11769          else puts (dlerror ());
11770	}
11771      /* dlclose (self); */
11772    }
11773  else
11774    puts (dlerror ());
11775
11776  return status;
11777}
11778_LT_EOF
11779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11780  (eval $ac_link) 2>&5
11781  ac_status=$?
11782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11784    (./conftest; exit; ) >&5 2>/dev/null
11785    lt_status=$?
11786    case x$lt_status in
11787      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11788      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11789      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11790    esac
11791  else :
11792    # compilation failed
11793    lt_cv_dlopen_self_static=no
11794  fi
11795fi
11796rm -fr conftest*
11797
11798
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11801$as_echo "$lt_cv_dlopen_self_static" >&6; }
11802    fi
11803
11804    CPPFLAGS=$save_CPPFLAGS
11805    LDFLAGS=$save_LDFLAGS
11806    LIBS=$save_LIBS
11807    ;;
11808  esac
11809
11810  case $lt_cv_dlopen_self in
11811  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11812  *) enable_dlopen_self=unknown ;;
11813  esac
11814
11815  case $lt_cv_dlopen_self_static in
11816  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11817  *) enable_dlopen_self_static=unknown ;;
11818  esac
11819fi
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837striplib=
11838old_striplib=
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11840$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11841if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11842  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11843  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845$as_echo "yes" >&6; }
11846else
11847# FIXME - insert some real tests, host_os isn't really good enough
11848  case $host_os in
11849  darwin*)
11850    if test -n "$STRIP"; then
11851      striplib="$STRIP -x"
11852      old_striplib="$STRIP -S"
11853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854$as_echo "yes" >&6; }
11855    else
11856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
11858    fi
11859    ;;
11860  *)
11861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
11863    ;;
11864  esac
11865fi
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878  # Report what library types will actually be built
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11880$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11882$as_echo "$can_build_shared" >&6; }
11883
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11885$as_echo_n "checking whether to build shared libraries... " >&6; }
11886  test no = "$can_build_shared" && enable_shared=no
11887
11888  # On AIX, shared libraries and static libraries use the same namespace, and
11889  # are all built from PIC.
11890  case $host_os in
11891  aix3*)
11892    test yes = "$enable_shared" && enable_static=no
11893    if test -n "$RANLIB"; then
11894      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11895      postinstall_cmds='$RANLIB $lib'
11896    fi
11897    ;;
11898
11899  aix[4-9]*)
11900    if test ia64 != "$host_cpu"; then
11901      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11902      yes,aix,yes) ;;			# shared object as lib.so file only
11903      yes,svr4,*) ;;			# shared object as lib.so archive member only
11904      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11905      esac
11906    fi
11907    ;;
11908  esac
11909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11910$as_echo "$enable_shared" >&6; }
11911
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11913$as_echo_n "checking whether to build static libraries... " >&6; }
11914  # Make sure either enable_shared or enable_static is yes.
11915  test yes = "$enable_shared" || enable_static=yes
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11917$as_echo "$enable_static" >&6; }
11918
11919
11920
11921
11922fi
11923ac_ext=c
11924ac_cpp='$CPP $CPPFLAGS'
11925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928
11929CC=$lt_save_CC
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945        ac_config_commands="$ac_config_commands libtool"
11946
11947
11948
11949
11950# Only expand once:
11951
11952
11953
11954# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11967$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11968if ${ac_cv_prog_cc_c99+:} false; then :
11969  $as_echo_n "(cached) " >&6
11970else
11971  ac_cv_prog_cc_c99=no
11972ac_save_CC=$CC
11973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h.  */
11975#include <stdarg.h>
11976#include <stdbool.h>
11977#include <stdlib.h>
11978#include <wchar.h>
11979#include <stdio.h>
11980
11981// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11982#define debug(...) fprintf (stderr, __VA_ARGS__)
11983#define showlist(...) puts (#__VA_ARGS__)
11984#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11985static void
11986test_varargs_macros (void)
11987{
11988  int x = 1234;
11989  int y = 5678;
11990  debug ("Flag");
11991  debug ("X = %d\n", x);
11992  showlist (The first, second, and third items.);
11993  report (x>y, "x is %d but y is %d", x, y);
11994}
11995
11996// Check long long types.
11997#define BIG64 18446744073709551615ull
11998#define BIG32 4294967295ul
11999#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12000#if !BIG_OK
12001  your preprocessor is broken;
12002#endif
12003#if BIG_OK
12004#else
12005  your preprocessor is broken;
12006#endif
12007static long long int bignum = -9223372036854775807LL;
12008static unsigned long long int ubignum = BIG64;
12009
12010struct incomplete_array
12011{
12012  int datasize;
12013  double data[];
12014};
12015
12016struct named_init {
12017  int number;
12018  const wchar_t *name;
12019  double average;
12020};
12021
12022typedef const char *ccp;
12023
12024static inline int
12025test_restrict (ccp restrict text)
12026{
12027  // See if C++-style comments work.
12028  // Iterate through items via the restricted pointer.
12029  // Also check for declarations in for loops.
12030  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12031    continue;
12032  return 0;
12033}
12034
12035// Check varargs and va_copy.
12036static void
12037test_varargs (const char *format, ...)
12038{
12039  va_list args;
12040  va_start (args, format);
12041  va_list args_copy;
12042  va_copy (args_copy, args);
12043
12044  const char *str;
12045  int number;
12046  float fnumber;
12047
12048  while (*format)
12049    {
12050      switch (*format++)
12051	{
12052	case 's': // string
12053	  str = va_arg (args_copy, const char *);
12054	  break;
12055	case 'd': // int
12056	  number = va_arg (args_copy, int);
12057	  break;
12058	case 'f': // float
12059	  fnumber = va_arg (args_copy, double);
12060	  break;
12061	default:
12062	  break;
12063	}
12064    }
12065  va_end (args_copy);
12066  va_end (args);
12067}
12068
12069int
12070main ()
12071{
12072
12073  // Check bool.
12074  _Bool success = false;
12075
12076  // Check restrict.
12077  if (test_restrict ("String literal") == 0)
12078    success = true;
12079  char *restrict newvar = "Another string";
12080
12081  // Check varargs.
12082  test_varargs ("s, d' f .", "string", 65, 34.234);
12083  test_varargs_macros ();
12084
12085  // Check flexible array members.
12086  struct incomplete_array *ia =
12087    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12088  ia->datasize = 10;
12089  for (int i = 0; i < ia->datasize; ++i)
12090    ia->data[i] = i * 1.234;
12091
12092  // Check named initializers.
12093  struct named_init ni = {
12094    .number = 34,
12095    .name = L"Test wide string",
12096    .average = 543.34343,
12097  };
12098
12099  ni.number = 58;
12100
12101  int dynamic_array[ni.number];
12102  dynamic_array[ni.number - 1] = 543;
12103
12104  // work around unused variable warnings
12105  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12106	  || dynamic_array[ni.number - 1] != 543);
12107
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12113do
12114  CC="$ac_save_CC $ac_arg"
12115  if ac_fn_c_try_compile "$LINENO"; then :
12116  ac_cv_prog_cc_c99=$ac_arg
12117fi
12118rm -f core conftest.err conftest.$ac_objext
12119  test "x$ac_cv_prog_cc_c99" != "xno" && break
12120done
12121rm -f conftest.$ac_ext
12122CC=$ac_save_CC
12123
12124fi
12125# AC_CACHE_VAL
12126case "x$ac_cv_prog_cc_c99" in
12127  x)
12128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12129$as_echo "none needed" >&6; } ;;
12130  xno)
12131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12132$as_echo "unsupported" >&6; } ;;
12133  *)
12134    CC="$CC $ac_cv_prog_cc_c99"
12135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12136$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12137esac
12138if test "x$ac_cv_prog_cc_c99" != xno; then :
12139
12140fi
12141
12142
12143
12144
12145
12146
12147ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12148if test "x$ac_cv_have_decl___clang__" = xyes; then :
12149  CLANGCC="yes"
12150else
12151  CLANGCC="no"
12152fi
12153
12154ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12155if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12156  INTELCC="yes"
12157else
12158  INTELCC="no"
12159fi
12160
12161ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12162if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12163  SUNCC="yes"
12164else
12165  SUNCC="no"
12166fi
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12177	if test -n "$ac_tool_prefix"; then
12178  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12179set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
12182if ${ac_cv_path_PKG_CONFIG+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  case $PKG_CONFIG in
12186  [\\/]* | ?:[\\/]*)
12187  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12188  ;;
12189  *)
12190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193  IFS=$as_save_IFS
12194  test -z "$as_dir" && as_dir=.
12195    for ac_exec_ext in '' $ac_executable_extensions; do
12196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199    break 2
12200  fi
12201done
12202  done
12203IFS=$as_save_IFS
12204
12205  ;;
12206esac
12207fi
12208PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12209if test -n "$PKG_CONFIG"; then
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12211$as_echo "$PKG_CONFIG" >&6; }
12212else
12213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214$as_echo "no" >&6; }
12215fi
12216
12217
12218fi
12219if test -z "$ac_cv_path_PKG_CONFIG"; then
12220  ac_pt_PKG_CONFIG=$PKG_CONFIG
12221  # Extract the first word of "pkg-config", so it can be a program name with args.
12222set dummy pkg-config; ac_word=$2
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  case $ac_pt_PKG_CONFIG in
12229  [\\/]* | ?:[\\/]*)
12230  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12231  ;;
12232  *)
12233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236  IFS=$as_save_IFS
12237  test -z "$as_dir" && as_dir=.
12238    for ac_exec_ext in '' $ac_executable_extensions; do
12239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242    break 2
12243  fi
12244done
12245  done
12246IFS=$as_save_IFS
12247
12248  ;;
12249esac
12250fi
12251ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12252if test -n "$ac_pt_PKG_CONFIG"; then
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12254$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12255else
12256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258fi
12259
12260  if test "x$ac_pt_PKG_CONFIG" = x; then
12261    PKG_CONFIG=""
12262  else
12263    case $cross_compiling:$ac_tool_warned in
12264yes:)
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12267ac_tool_warned=yes ;;
12268esac
12269    PKG_CONFIG=$ac_pt_PKG_CONFIG
12270  fi
12271else
12272  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12273fi
12274
12275fi
12276if test -n "$PKG_CONFIG"; then
12277	_pkg_min_version=0.9.0
12278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12279$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12280	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282$as_echo "yes" >&6; }
12283	else
12284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
12286		PKG_CONFIG=""
12287	fi
12288fi
12289
12290
12291
12292
12293
12294# Check whether --enable-selective-werror was given.
12295if test "${enable_selective_werror+set}" = set; then :
12296  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12297else
12298  SELECTIVE_WERROR=yes
12299fi
12300
12301
12302
12303
12304
12305# -v is too short to test reliably with XORG_TESTSET_CFLAG
12306if test "x$SUNCC" = "xyes"; then
12307    BASE_CFLAGS="-v"
12308else
12309    BASE_CFLAGS=""
12310fi
12311
12312# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326xorg_testset_save_CFLAGS="$CFLAGS"
12327
12328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337int i;
12338_ACEOF
12339if ac_fn_c_try_compile "$LINENO"; then :
12340  xorg_cv_cc_flag_unknown_warning_option=yes
12341else
12342  xorg_cv_cc_flag_unknown_warning_option=no
12343fi
12344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345fi
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12349	CFLAGS="$xorg_testset_save_CFLAGS"
12350fi
12351
12352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12355	fi
12356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364int i;
12365_ACEOF
12366if ac_fn_c_try_compile "$LINENO"; then :
12367  xorg_cv_cc_flag_unused_command_line_argument=yes
12368else
12369  xorg_cv_cc_flag_unused_command_line_argument=no
12370fi
12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12376	CFLAGS="$xorg_testset_save_CFLAGS"
12377fi
12378
12379found="no"
12380
12381	if test $found = "no" ; then
12382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12384		fi
12385
12386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12388		fi
12389
12390		CFLAGS="$CFLAGS -Wall"
12391
12392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12393$as_echo_n "checking if $CC supports -Wall... " >&6; }
12394		cacheid=xorg_cv_cc_flag__Wall
12395		if eval \${$cacheid+:} false; then :
12396  $as_echo_n "(cached) " >&6
12397else
12398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h.  */
12400int i;
12401int
12402main ()
12403{
12404
12405  ;
12406  return 0;
12407}
12408_ACEOF
12409if ac_fn_c_try_link "$LINENO"; then :
12410  eval $cacheid=yes
12411else
12412  eval $cacheid=no
12413fi
12414rm -f core conftest.err conftest.$ac_objext \
12415    conftest$ac_exeext conftest.$ac_ext
12416fi
12417
12418
12419		CFLAGS="$xorg_testset_save_CFLAGS"
12420
12421		eval supported=\$$cacheid
12422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12423$as_echo "$supported" >&6; }
12424		if test "$supported" = "yes" ; then
12425			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12426			found="yes"
12427		fi
12428	fi
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444xorg_testset_save_CFLAGS="$CFLAGS"
12445
12446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12451  $as_echo_n "(cached) " >&6
12452else
12453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454/* end confdefs.h.  */
12455int i;
12456_ACEOF
12457if ac_fn_c_try_compile "$LINENO"; then :
12458  xorg_cv_cc_flag_unknown_warning_option=yes
12459else
12460  xorg_cv_cc_flag_unknown_warning_option=no
12461fi
12462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12467	CFLAGS="$xorg_testset_save_CFLAGS"
12468fi
12469
12470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12473	fi
12474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12478  $as_echo_n "(cached) " >&6
12479else
12480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h.  */
12482int i;
12483_ACEOF
12484if ac_fn_c_try_compile "$LINENO"; then :
12485  xorg_cv_cc_flag_unused_command_line_argument=yes
12486else
12487  xorg_cv_cc_flag_unused_command_line_argument=no
12488fi
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490fi
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12494	CFLAGS="$xorg_testset_save_CFLAGS"
12495fi
12496
12497found="no"
12498
12499	if test $found = "no" ; then
12500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12502		fi
12503
12504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12506		fi
12507
12508		CFLAGS="$CFLAGS -Wpointer-arith"
12509
12510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12511$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12512		cacheid=xorg_cv_cc_flag__Wpointer_arith
12513		if eval \${$cacheid+:} false; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h.  */
12518int i;
12519int
12520main ()
12521{
12522
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_link "$LINENO"; then :
12528  eval $cacheid=yes
12529else
12530  eval $cacheid=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext \
12533    conftest$ac_exeext conftest.$ac_ext
12534fi
12535
12536
12537		CFLAGS="$xorg_testset_save_CFLAGS"
12538
12539		eval supported=\$$cacheid
12540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12541$as_echo "$supported" >&6; }
12542		if test "$supported" = "yes" ; then
12543			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12544			found="yes"
12545		fi
12546	fi
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562xorg_testset_save_CFLAGS="$CFLAGS"
12563
12564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12569  $as_echo_n "(cached) " >&6
12570else
12571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572/* end confdefs.h.  */
12573int i;
12574_ACEOF
12575if ac_fn_c_try_compile "$LINENO"; then :
12576  xorg_cv_cc_flag_unknown_warning_option=yes
12577else
12578  xorg_cv_cc_flag_unknown_warning_option=no
12579fi
12580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12585	CFLAGS="$xorg_testset_save_CFLAGS"
12586fi
12587
12588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12591	fi
12592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599/* end confdefs.h.  */
12600int i;
12601_ACEOF
12602if ac_fn_c_try_compile "$LINENO"; then :
12603  xorg_cv_cc_flag_unused_command_line_argument=yes
12604else
12605  xorg_cv_cc_flag_unused_command_line_argument=no
12606fi
12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12612	CFLAGS="$xorg_testset_save_CFLAGS"
12613fi
12614
12615found="no"
12616
12617	if test $found = "no" ; then
12618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12620		fi
12621
12622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12624		fi
12625
12626		CFLAGS="$CFLAGS -Wmissing-declarations"
12627
12628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12629$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12630		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12631		if eval \${$cacheid+:} false; then :
12632  $as_echo_n "(cached) " >&6
12633else
12634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h.  */
12636int i;
12637int
12638main ()
12639{
12640
12641  ;
12642  return 0;
12643}
12644_ACEOF
12645if ac_fn_c_try_link "$LINENO"; then :
12646  eval $cacheid=yes
12647else
12648  eval $cacheid=no
12649fi
12650rm -f core conftest.err conftest.$ac_objext \
12651    conftest$ac_exeext conftest.$ac_ext
12652fi
12653
12654
12655		CFLAGS="$xorg_testset_save_CFLAGS"
12656
12657		eval supported=\$$cacheid
12658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12659$as_echo "$supported" >&6; }
12660		if test "$supported" = "yes" ; then
12661			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12662			found="yes"
12663		fi
12664	fi
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680xorg_testset_save_CFLAGS="$CFLAGS"
12681
12682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690/* end confdefs.h.  */
12691int i;
12692_ACEOF
12693if ac_fn_c_try_compile "$LINENO"; then :
12694  xorg_cv_cc_flag_unknown_warning_option=yes
12695else
12696  xorg_cv_cc_flag_unknown_warning_option=no
12697fi
12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12703	CFLAGS="$xorg_testset_save_CFLAGS"
12704fi
12705
12706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12709	fi
12710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h.  */
12718int i;
12719_ACEOF
12720if ac_fn_c_try_compile "$LINENO"; then :
12721  xorg_cv_cc_flag_unused_command_line_argument=yes
12722else
12723  xorg_cv_cc_flag_unused_command_line_argument=no
12724fi
12725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726fi
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12730	CFLAGS="$xorg_testset_save_CFLAGS"
12731fi
12732
12733found="no"
12734
12735	if test $found = "no" ; then
12736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12738		fi
12739
12740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12742		fi
12743
12744		CFLAGS="$CFLAGS -Wformat=2"
12745
12746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12747$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12748		cacheid=xorg_cv_cc_flag__Wformat_2
12749		if eval \${$cacheid+:} false; then :
12750  $as_echo_n "(cached) " >&6
12751else
12752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h.  */
12754int i;
12755int
12756main ()
12757{
12758
12759  ;
12760  return 0;
12761}
12762_ACEOF
12763if ac_fn_c_try_link "$LINENO"; then :
12764  eval $cacheid=yes
12765else
12766  eval $cacheid=no
12767fi
12768rm -f core conftest.err conftest.$ac_objext \
12769    conftest$ac_exeext conftest.$ac_ext
12770fi
12771
12772
12773		CFLAGS="$xorg_testset_save_CFLAGS"
12774
12775		eval supported=\$$cacheid
12776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12777$as_echo "$supported" >&6; }
12778		if test "$supported" = "yes" ; then
12779			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12780			found="yes"
12781		fi
12782	fi
12783
12784	if test $found = "no" ; then
12785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12787		fi
12788
12789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12791		fi
12792
12793		CFLAGS="$CFLAGS -Wformat"
12794
12795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12796$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12797		cacheid=xorg_cv_cc_flag__Wformat
12798		if eval \${$cacheid+:} false; then :
12799  $as_echo_n "(cached) " >&6
12800else
12801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h.  */
12803int i;
12804int
12805main ()
12806{
12807
12808  ;
12809  return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_link "$LINENO"; then :
12813  eval $cacheid=yes
12814else
12815  eval $cacheid=no
12816fi
12817rm -f core conftest.err conftest.$ac_objext \
12818    conftest$ac_exeext conftest.$ac_ext
12819fi
12820
12821
12822		CFLAGS="$xorg_testset_save_CFLAGS"
12823
12824		eval supported=\$$cacheid
12825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12826$as_echo "$supported" >&6; }
12827		if test "$supported" = "yes" ; then
12828			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12829			found="yes"
12830		fi
12831	fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849xorg_testset_save_CFLAGS="$CFLAGS"
12850
12851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h.  */
12860int i;
12861_ACEOF
12862if ac_fn_c_try_compile "$LINENO"; then :
12863  xorg_cv_cc_flag_unknown_warning_option=yes
12864else
12865  xorg_cv_cc_flag_unknown_warning_option=no
12866fi
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868fi
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12872	CFLAGS="$xorg_testset_save_CFLAGS"
12873fi
12874
12875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12878	fi
12879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12883  $as_echo_n "(cached) " >&6
12884else
12885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886/* end confdefs.h.  */
12887int i;
12888_ACEOF
12889if ac_fn_c_try_compile "$LINENO"; then :
12890  xorg_cv_cc_flag_unused_command_line_argument=yes
12891else
12892  xorg_cv_cc_flag_unused_command_line_argument=no
12893fi
12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895fi
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12899	CFLAGS="$xorg_testset_save_CFLAGS"
12900fi
12901
12902found="no"
12903
12904	if test $found = "no" ; then
12905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12907		fi
12908
12909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12911		fi
12912
12913		CFLAGS="$CFLAGS -Wstrict-prototypes"
12914
12915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12916$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12917		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12918		if eval \${$cacheid+:} false; then :
12919  $as_echo_n "(cached) " >&6
12920else
12921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922/* end confdefs.h.  */
12923int i;
12924int
12925main ()
12926{
12927
12928  ;
12929  return 0;
12930}
12931_ACEOF
12932if ac_fn_c_try_link "$LINENO"; then :
12933  eval $cacheid=yes
12934else
12935  eval $cacheid=no
12936fi
12937rm -f core conftest.err conftest.$ac_objext \
12938    conftest$ac_exeext conftest.$ac_ext
12939fi
12940
12941
12942		CFLAGS="$xorg_testset_save_CFLAGS"
12943
12944		eval supported=\$$cacheid
12945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12946$as_echo "$supported" >&6; }
12947		if test "$supported" = "yes" ; then
12948			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12949			found="yes"
12950		fi
12951	fi
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967xorg_testset_save_CFLAGS="$CFLAGS"
12968
12969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12974  $as_echo_n "(cached) " >&6
12975else
12976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978int i;
12979_ACEOF
12980if ac_fn_c_try_compile "$LINENO"; then :
12981  xorg_cv_cc_flag_unknown_warning_option=yes
12982else
12983  xorg_cv_cc_flag_unknown_warning_option=no
12984fi
12985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12990	CFLAGS="$xorg_testset_save_CFLAGS"
12991fi
12992
12993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996	fi
12997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005int i;
13006_ACEOF
13007if ac_fn_c_try_compile "$LINENO"; then :
13008  xorg_cv_cc_flag_unused_command_line_argument=yes
13009else
13010  xorg_cv_cc_flag_unused_command_line_argument=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13017	CFLAGS="$xorg_testset_save_CFLAGS"
13018fi
13019
13020found="no"
13021
13022	if test $found = "no" ; then
13023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13025		fi
13026
13027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13029		fi
13030
13031		CFLAGS="$CFLAGS -Wmissing-prototypes"
13032
13033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13034$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13035		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13036		if eval \${$cacheid+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h.  */
13041int i;
13042int
13043main ()
13044{
13045
13046  ;
13047  return 0;
13048}
13049_ACEOF
13050if ac_fn_c_try_link "$LINENO"; then :
13051  eval $cacheid=yes
13052else
13053  eval $cacheid=no
13054fi
13055rm -f core conftest.err conftest.$ac_objext \
13056    conftest$ac_exeext conftest.$ac_ext
13057fi
13058
13059
13060		CFLAGS="$xorg_testset_save_CFLAGS"
13061
13062		eval supported=\$$cacheid
13063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13064$as_echo "$supported" >&6; }
13065		if test "$supported" = "yes" ; then
13066			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13067			found="yes"
13068		fi
13069	fi
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085xorg_testset_save_CFLAGS="$CFLAGS"
13086
13087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095/* end confdefs.h.  */
13096int i;
13097_ACEOF
13098if ac_fn_c_try_compile "$LINENO"; then :
13099  xorg_cv_cc_flag_unknown_warning_option=yes
13100else
13101  xorg_cv_cc_flag_unknown_warning_option=no
13102fi
13103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104fi
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13108	CFLAGS="$xorg_testset_save_CFLAGS"
13109fi
13110
13111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13114	fi
13115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13119  $as_echo_n "(cached) " >&6
13120else
13121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h.  */
13123int i;
13124_ACEOF
13125if ac_fn_c_try_compile "$LINENO"; then :
13126  xorg_cv_cc_flag_unused_command_line_argument=yes
13127else
13128  xorg_cv_cc_flag_unused_command_line_argument=no
13129fi
13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131fi
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13135	CFLAGS="$xorg_testset_save_CFLAGS"
13136fi
13137
13138found="no"
13139
13140	if test $found = "no" ; then
13141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13143		fi
13144
13145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13147		fi
13148
13149		CFLAGS="$CFLAGS -Wnested-externs"
13150
13151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13152$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13153		cacheid=xorg_cv_cc_flag__Wnested_externs
13154		if eval \${$cacheid+:} false; then :
13155  $as_echo_n "(cached) " >&6
13156else
13157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158/* end confdefs.h.  */
13159int i;
13160int
13161main ()
13162{
13163
13164  ;
13165  return 0;
13166}
13167_ACEOF
13168if ac_fn_c_try_link "$LINENO"; then :
13169  eval $cacheid=yes
13170else
13171  eval $cacheid=no
13172fi
13173rm -f core conftest.err conftest.$ac_objext \
13174    conftest$ac_exeext conftest.$ac_ext
13175fi
13176
13177
13178		CFLAGS="$xorg_testset_save_CFLAGS"
13179
13180		eval supported=\$$cacheid
13181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13182$as_echo "$supported" >&6; }
13183		if test "$supported" = "yes" ; then
13184			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13185			found="yes"
13186		fi
13187	fi
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203xorg_testset_save_CFLAGS="$CFLAGS"
13204
13205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213/* end confdefs.h.  */
13214int i;
13215_ACEOF
13216if ac_fn_c_try_compile "$LINENO"; then :
13217  xorg_cv_cc_flag_unknown_warning_option=yes
13218else
13219  xorg_cv_cc_flag_unknown_warning_option=no
13220fi
13221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222fi
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13226	CFLAGS="$xorg_testset_save_CFLAGS"
13227fi
13228
13229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232	fi
13233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13237  $as_echo_n "(cached) " >&6
13238else
13239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h.  */
13241int i;
13242_ACEOF
13243if ac_fn_c_try_compile "$LINENO"; then :
13244  xorg_cv_cc_flag_unused_command_line_argument=yes
13245else
13246  xorg_cv_cc_flag_unused_command_line_argument=no
13247fi
13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249fi
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13253	CFLAGS="$xorg_testset_save_CFLAGS"
13254fi
13255
13256found="no"
13257
13258	if test $found = "no" ; then
13259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13261		fi
13262
13263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13265		fi
13266
13267		CFLAGS="$CFLAGS -Wbad-function-cast"
13268
13269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13270$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13271		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13272		if eval \${$cacheid+:} false; then :
13273  $as_echo_n "(cached) " >&6
13274else
13275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h.  */
13277int i;
13278int
13279main ()
13280{
13281
13282  ;
13283  return 0;
13284}
13285_ACEOF
13286if ac_fn_c_try_link "$LINENO"; then :
13287  eval $cacheid=yes
13288else
13289  eval $cacheid=no
13290fi
13291rm -f core conftest.err conftest.$ac_objext \
13292    conftest$ac_exeext conftest.$ac_ext
13293fi
13294
13295
13296		CFLAGS="$xorg_testset_save_CFLAGS"
13297
13298		eval supported=\$$cacheid
13299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13300$as_echo "$supported" >&6; }
13301		if test "$supported" = "yes" ; then
13302			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13303			found="yes"
13304		fi
13305	fi
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321xorg_testset_save_CFLAGS="$CFLAGS"
13322
13323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13328  $as_echo_n "(cached) " >&6
13329else
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332int i;
13333_ACEOF
13334if ac_fn_c_try_compile "$LINENO"; then :
13335  xorg_cv_cc_flag_unknown_warning_option=yes
13336else
13337  xorg_cv_cc_flag_unknown_warning_option=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13344	CFLAGS="$xorg_testset_save_CFLAGS"
13345fi
13346
13347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350	fi
13351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h.  */
13359int i;
13360_ACEOF
13361if ac_fn_c_try_compile "$LINENO"; then :
13362  xorg_cv_cc_flag_unused_command_line_argument=yes
13363else
13364  xorg_cv_cc_flag_unused_command_line_argument=no
13365fi
13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367fi
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13371	CFLAGS="$xorg_testset_save_CFLAGS"
13372fi
13373
13374found="no"
13375
13376	if test $found = "no" ; then
13377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379		fi
13380
13381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383		fi
13384
13385		CFLAGS="$CFLAGS -Wold-style-definition"
13386
13387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13388$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13389		cacheid=xorg_cv_cc_flag__Wold_style_definition
13390		if eval \${$cacheid+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395int i;
13396int
13397main ()
13398{
13399
13400  ;
13401  return 0;
13402}
13403_ACEOF
13404if ac_fn_c_try_link "$LINENO"; then :
13405  eval $cacheid=yes
13406else
13407  eval $cacheid=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext \
13410    conftest$ac_exeext conftest.$ac_ext
13411fi
13412
13413
13414		CFLAGS="$xorg_testset_save_CFLAGS"
13415
13416		eval supported=\$$cacheid
13417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418$as_echo "$supported" >&6; }
13419		if test "$supported" = "yes" ; then
13420			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13421			found="yes"
13422		fi
13423	fi
13424
13425	if test $found = "no" ; then
13426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13428		fi
13429
13430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432		fi
13433
13434		CFLAGS="$CFLAGS -fd"
13435
13436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13437$as_echo_n "checking if $CC supports -fd... " >&6; }
13438		cacheid=xorg_cv_cc_flag__fd
13439		if eval \${$cacheid+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443/* end confdefs.h.  */
13444int i;
13445int
13446main ()
13447{
13448
13449  ;
13450  return 0;
13451}
13452_ACEOF
13453if ac_fn_c_try_link "$LINENO"; then :
13454  eval $cacheid=yes
13455else
13456  eval $cacheid=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext \
13459    conftest$ac_exeext conftest.$ac_ext
13460fi
13461
13462
13463		CFLAGS="$xorg_testset_save_CFLAGS"
13464
13465		eval supported=\$$cacheid
13466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13467$as_echo "$supported" >&6; }
13468		if test "$supported" = "yes" ; then
13469			BASE_CFLAGS="$BASE_CFLAGS -fd"
13470			found="yes"
13471		fi
13472	fi
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488xorg_testset_save_CFLAGS="$CFLAGS"
13489
13490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13495  $as_echo_n "(cached) " >&6
13496else
13497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499int i;
13500_ACEOF
13501if ac_fn_c_try_compile "$LINENO"; then :
13502  xorg_cv_cc_flag_unknown_warning_option=yes
13503else
13504  xorg_cv_cc_flag_unknown_warning_option=no
13505fi
13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507fi
13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13511	CFLAGS="$xorg_testset_save_CFLAGS"
13512fi
13513
13514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13517	fi
13518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13522  $as_echo_n "(cached) " >&6
13523else
13524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h.  */
13526int i;
13527_ACEOF
13528if ac_fn_c_try_compile "$LINENO"; then :
13529  xorg_cv_cc_flag_unused_command_line_argument=yes
13530else
13531  xorg_cv_cc_flag_unused_command_line_argument=no
13532fi
13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13538	CFLAGS="$xorg_testset_save_CFLAGS"
13539fi
13540
13541found="no"
13542
13543	if test $found = "no" ; then
13544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546		fi
13547
13548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13550		fi
13551
13552		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13553
13554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13555$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13556		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13557		if eval \${$cacheid+:} false; then :
13558  $as_echo_n "(cached) " >&6
13559else
13560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561/* end confdefs.h.  */
13562int i;
13563int
13564main ()
13565{
13566
13567  ;
13568  return 0;
13569}
13570_ACEOF
13571if ac_fn_c_try_link "$LINENO"; then :
13572  eval $cacheid=yes
13573else
13574  eval $cacheid=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext \
13577    conftest$ac_exeext conftest.$ac_ext
13578fi
13579
13580
13581		CFLAGS="$xorg_testset_save_CFLAGS"
13582
13583		eval supported=\$$cacheid
13584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13585$as_echo "$supported" >&6; }
13586		if test "$supported" = "yes" ; then
13587			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13588			found="yes"
13589		fi
13590	fi
13591
13592
13593
13594
13595
13596# This chunk adds additional warnings that could catch undesired effects.
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610xorg_testset_save_CFLAGS="$CFLAGS"
13611
13612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13617  $as_echo_n "(cached) " >&6
13618else
13619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620/* end confdefs.h.  */
13621int i;
13622_ACEOF
13623if ac_fn_c_try_compile "$LINENO"; then :
13624  xorg_cv_cc_flag_unknown_warning_option=yes
13625else
13626  xorg_cv_cc_flag_unknown_warning_option=no
13627fi
13628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629fi
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13633	CFLAGS="$xorg_testset_save_CFLAGS"
13634fi
13635
13636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639	fi
13640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648int i;
13649_ACEOF
13650if ac_fn_c_try_compile "$LINENO"; then :
13651  xorg_cv_cc_flag_unused_command_line_argument=yes
13652else
13653  xorg_cv_cc_flag_unused_command_line_argument=no
13654fi
13655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656fi
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13660	CFLAGS="$xorg_testset_save_CFLAGS"
13661fi
13662
13663found="no"
13664
13665	if test $found = "no" ; then
13666		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668		fi
13669
13670		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13672		fi
13673
13674		CFLAGS="$CFLAGS -Wunused"
13675
13676		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13677$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13678		cacheid=xorg_cv_cc_flag__Wunused
13679		if eval \${$cacheid+:} false; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684int i;
13685int
13686main ()
13687{
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_link "$LINENO"; then :
13694  eval $cacheid=yes
13695else
13696  eval $cacheid=no
13697fi
13698rm -f core conftest.err conftest.$ac_objext \
13699    conftest$ac_exeext conftest.$ac_ext
13700fi
13701
13702
13703		CFLAGS="$xorg_testset_save_CFLAGS"
13704
13705		eval supported=\$$cacheid
13706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13707$as_echo "$supported" >&6; }
13708		if test "$supported" = "yes" ; then
13709			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13710			found="yes"
13711		fi
13712	fi
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728xorg_testset_save_CFLAGS="$CFLAGS"
13729
13730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h.  */
13739int i;
13740_ACEOF
13741if ac_fn_c_try_compile "$LINENO"; then :
13742  xorg_cv_cc_flag_unknown_warning_option=yes
13743else
13744  xorg_cv_cc_flag_unknown_warning_option=no
13745fi
13746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747fi
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13751	CFLAGS="$xorg_testset_save_CFLAGS"
13752fi
13753
13754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757	fi
13758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13762  $as_echo_n "(cached) " >&6
13763else
13764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h.  */
13766int i;
13767_ACEOF
13768if ac_fn_c_try_compile "$LINENO"; then :
13769  xorg_cv_cc_flag_unused_command_line_argument=yes
13770else
13771  xorg_cv_cc_flag_unused_command_line_argument=no
13772fi
13773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774fi
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13778	CFLAGS="$xorg_testset_save_CFLAGS"
13779fi
13780
13781found="no"
13782
13783	if test $found = "no" ; then
13784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13786		fi
13787
13788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13790		fi
13791
13792		CFLAGS="$CFLAGS -Wuninitialized"
13793
13794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13795$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13796		cacheid=xorg_cv_cc_flag__Wuninitialized
13797		if eval \${$cacheid+:} false; then :
13798  $as_echo_n "(cached) " >&6
13799else
13800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801/* end confdefs.h.  */
13802int i;
13803int
13804main ()
13805{
13806
13807  ;
13808  return 0;
13809}
13810_ACEOF
13811if ac_fn_c_try_link "$LINENO"; then :
13812  eval $cacheid=yes
13813else
13814  eval $cacheid=no
13815fi
13816rm -f core conftest.err conftest.$ac_objext \
13817    conftest$ac_exeext conftest.$ac_ext
13818fi
13819
13820
13821		CFLAGS="$xorg_testset_save_CFLAGS"
13822
13823		eval supported=\$$cacheid
13824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13825$as_echo "$supported" >&6; }
13826		if test "$supported" = "yes" ; then
13827			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13828			found="yes"
13829		fi
13830	fi
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846xorg_testset_save_CFLAGS="$CFLAGS"
13847
13848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13853  $as_echo_n "(cached) " >&6
13854else
13855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h.  */
13857int i;
13858_ACEOF
13859if ac_fn_c_try_compile "$LINENO"; then :
13860  xorg_cv_cc_flag_unknown_warning_option=yes
13861else
13862  xorg_cv_cc_flag_unknown_warning_option=no
13863fi
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865fi
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13869	CFLAGS="$xorg_testset_save_CFLAGS"
13870fi
13871
13872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13875	fi
13876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h.  */
13884int i;
13885_ACEOF
13886if ac_fn_c_try_compile "$LINENO"; then :
13887  xorg_cv_cc_flag_unused_command_line_argument=yes
13888else
13889  xorg_cv_cc_flag_unused_command_line_argument=no
13890fi
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13896	CFLAGS="$xorg_testset_save_CFLAGS"
13897fi
13898
13899found="no"
13900
13901	if test $found = "no" ; then
13902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13904		fi
13905
13906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13908		fi
13909
13910		CFLAGS="$CFLAGS -Wshadow"
13911
13912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13913$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13914		cacheid=xorg_cv_cc_flag__Wshadow
13915		if eval \${$cacheid+:} false; then :
13916  $as_echo_n "(cached) " >&6
13917else
13918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919/* end confdefs.h.  */
13920int i;
13921int
13922main ()
13923{
13924
13925  ;
13926  return 0;
13927}
13928_ACEOF
13929if ac_fn_c_try_link "$LINENO"; then :
13930  eval $cacheid=yes
13931else
13932  eval $cacheid=no
13933fi
13934rm -f core conftest.err conftest.$ac_objext \
13935    conftest$ac_exeext conftest.$ac_ext
13936fi
13937
13938
13939		CFLAGS="$xorg_testset_save_CFLAGS"
13940
13941		eval supported=\$$cacheid
13942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13943$as_echo "$supported" >&6; }
13944		if test "$supported" = "yes" ; then
13945			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13946			found="yes"
13947		fi
13948	fi
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964xorg_testset_save_CFLAGS="$CFLAGS"
13965
13966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13971  $as_echo_n "(cached) " >&6
13972else
13973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h.  */
13975int i;
13976_ACEOF
13977if ac_fn_c_try_compile "$LINENO"; then :
13978  xorg_cv_cc_flag_unknown_warning_option=yes
13979else
13980  xorg_cv_cc_flag_unknown_warning_option=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983fi
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13987	CFLAGS="$xorg_testset_save_CFLAGS"
13988fi
13989
13990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13993	fi
13994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002int i;
14003_ACEOF
14004if ac_fn_c_try_compile "$LINENO"; then :
14005  xorg_cv_cc_flag_unused_command_line_argument=yes
14006else
14007  xorg_cv_cc_flag_unused_command_line_argument=no
14008fi
14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010fi
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14014	CFLAGS="$xorg_testset_save_CFLAGS"
14015fi
14016
14017found="no"
14018
14019	if test $found = "no" ; then
14020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14022		fi
14023
14024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14026		fi
14027
14028		CFLAGS="$CFLAGS -Wmissing-noreturn"
14029
14030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14031$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14032		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14033		if eval \${$cacheid+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037/* end confdefs.h.  */
14038int i;
14039int
14040main ()
14041{
14042
14043  ;
14044  return 0;
14045}
14046_ACEOF
14047if ac_fn_c_try_link "$LINENO"; then :
14048  eval $cacheid=yes
14049else
14050  eval $cacheid=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext \
14053    conftest$ac_exeext conftest.$ac_ext
14054fi
14055
14056
14057		CFLAGS="$xorg_testset_save_CFLAGS"
14058
14059		eval supported=\$$cacheid
14060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14061$as_echo "$supported" >&6; }
14062		if test "$supported" = "yes" ; then
14063			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14064			found="yes"
14065		fi
14066	fi
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082xorg_testset_save_CFLAGS="$CFLAGS"
14083
14084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093int i;
14094_ACEOF
14095if ac_fn_c_try_compile "$LINENO"; then :
14096  xorg_cv_cc_flag_unknown_warning_option=yes
14097else
14098  xorg_cv_cc_flag_unknown_warning_option=no
14099fi
14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14105	CFLAGS="$xorg_testset_save_CFLAGS"
14106fi
14107
14108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14111	fi
14112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14116  $as_echo_n "(cached) " >&6
14117else
14118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119/* end confdefs.h.  */
14120int i;
14121_ACEOF
14122if ac_fn_c_try_compile "$LINENO"; then :
14123  xorg_cv_cc_flag_unused_command_line_argument=yes
14124else
14125  xorg_cv_cc_flag_unused_command_line_argument=no
14126fi
14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128fi
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14132	CFLAGS="$xorg_testset_save_CFLAGS"
14133fi
14134
14135found="no"
14136
14137	if test $found = "no" ; then
14138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140		fi
14141
14142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14144		fi
14145
14146		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14147
14148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14149$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14150		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14151		if eval \${$cacheid+:} false; then :
14152  $as_echo_n "(cached) " >&6
14153else
14154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155/* end confdefs.h.  */
14156int i;
14157int
14158main ()
14159{
14160
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165if ac_fn_c_try_link "$LINENO"; then :
14166  eval $cacheid=yes
14167else
14168  eval $cacheid=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext \
14171    conftest$ac_exeext conftest.$ac_ext
14172fi
14173
14174
14175		CFLAGS="$xorg_testset_save_CFLAGS"
14176
14177		eval supported=\$$cacheid
14178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14179$as_echo "$supported" >&6; }
14180		if test "$supported" = "yes" ; then
14181			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14182			found="yes"
14183		fi
14184	fi
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200xorg_testset_save_CFLAGS="$CFLAGS"
14201
14202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14207  $as_echo_n "(cached) " >&6
14208else
14209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h.  */
14211int i;
14212_ACEOF
14213if ac_fn_c_try_compile "$LINENO"; then :
14214  xorg_cv_cc_flag_unknown_warning_option=yes
14215else
14216  xorg_cv_cc_flag_unknown_warning_option=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219fi
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14223	CFLAGS="$xorg_testset_save_CFLAGS"
14224fi
14225
14226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229	fi
14230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14234  $as_echo_n "(cached) " >&6
14235else
14236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237/* end confdefs.h.  */
14238int i;
14239_ACEOF
14240if ac_fn_c_try_compile "$LINENO"; then :
14241  xorg_cv_cc_flag_unused_command_line_argument=yes
14242else
14243  xorg_cv_cc_flag_unused_command_line_argument=no
14244fi
14245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246fi
14247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14250	CFLAGS="$xorg_testset_save_CFLAGS"
14251fi
14252
14253found="no"
14254
14255	if test $found = "no" ; then
14256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258		fi
14259
14260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262		fi
14263
14264		CFLAGS="$CFLAGS -Wredundant-decls"
14265
14266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14267$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14268		cacheid=xorg_cv_cc_flag__Wredundant_decls
14269		if eval \${$cacheid+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274int i;
14275int
14276main ()
14277{
14278
14279  ;
14280  return 0;
14281}
14282_ACEOF
14283if ac_fn_c_try_link "$LINENO"; then :
14284  eval $cacheid=yes
14285else
14286  eval $cacheid=no
14287fi
14288rm -f core conftest.err conftest.$ac_objext \
14289    conftest$ac_exeext conftest.$ac_ext
14290fi
14291
14292
14293		CFLAGS="$xorg_testset_save_CFLAGS"
14294
14295		eval supported=\$$cacheid
14296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14297$as_echo "$supported" >&6; }
14298		if test "$supported" = "yes" ; then
14299			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14300			found="yes"
14301		fi
14302	fi
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318xorg_testset_save_CFLAGS="$CFLAGS"
14319
14320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329int i;
14330_ACEOF
14331if ac_fn_c_try_compile "$LINENO"; then :
14332  xorg_cv_cc_flag_unknown_warning_option=yes
14333else
14334  xorg_cv_cc_flag_unknown_warning_option=no
14335fi
14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337fi
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14341	CFLAGS="$xorg_testset_save_CFLAGS"
14342fi
14343
14344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347	fi
14348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14352  $as_echo_n "(cached) " >&6
14353else
14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356int i;
14357_ACEOF
14358if ac_fn_c_try_compile "$LINENO"; then :
14359  xorg_cv_cc_flag_unused_command_line_argument=yes
14360else
14361  xorg_cv_cc_flag_unused_command_line_argument=no
14362fi
14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364fi
14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14368	CFLAGS="$xorg_testset_save_CFLAGS"
14369fi
14370
14371found="no"
14372
14373	if test $found = "no" ; then
14374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376		fi
14377
14378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14380		fi
14381
14382		CFLAGS="$CFLAGS -Wlogical-op"
14383
14384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14385$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14386		cacheid=xorg_cv_cc_flag__Wlogical_op
14387		if eval \${$cacheid+:} false; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h.  */
14392int i;
14393int
14394main ()
14395{
14396
14397  ;
14398  return 0;
14399}
14400_ACEOF
14401if ac_fn_c_try_link "$LINENO"; then :
14402  eval $cacheid=yes
14403else
14404  eval $cacheid=no
14405fi
14406rm -f core conftest.err conftest.$ac_objext \
14407    conftest$ac_exeext conftest.$ac_ext
14408fi
14409
14410
14411		CFLAGS="$xorg_testset_save_CFLAGS"
14412
14413		eval supported=\$$cacheid
14414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14415$as_echo "$supported" >&6; }
14416		if test "$supported" = "yes" ; then
14417			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14418			found="yes"
14419		fi
14420	fi
14421
14422
14423
14424# These are currently disabled because they are noisy.  They will be enabled
14425# in the future once the codebase is sufficiently modernized to silence
14426# them.  For now, I don't want them to drown out the other warnings.
14427# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14428# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14429# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14430
14431# Turn some warnings into errors, so we don't accidently get successful builds
14432# when there are problems that should be fixed.
14433
14434if test "x$SELECTIVE_WERROR" = "xyes" ; then
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448xorg_testset_save_CFLAGS="$CFLAGS"
14449
14450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14455  $as_echo_n "(cached) " >&6
14456else
14457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458/* end confdefs.h.  */
14459int i;
14460_ACEOF
14461if ac_fn_c_try_compile "$LINENO"; then :
14462  xorg_cv_cc_flag_unknown_warning_option=yes
14463else
14464  xorg_cv_cc_flag_unknown_warning_option=no
14465fi
14466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14471	CFLAGS="$xorg_testset_save_CFLAGS"
14472fi
14473
14474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477	fi
14478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14482  $as_echo_n "(cached) " >&6
14483else
14484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485/* end confdefs.h.  */
14486int i;
14487_ACEOF
14488if ac_fn_c_try_compile "$LINENO"; then :
14489  xorg_cv_cc_flag_unused_command_line_argument=yes
14490else
14491  xorg_cv_cc_flag_unused_command_line_argument=no
14492fi
14493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14498	CFLAGS="$xorg_testset_save_CFLAGS"
14499fi
14500
14501found="no"
14502
14503	if test $found = "no" ; then
14504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506		fi
14507
14508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14510		fi
14511
14512		CFLAGS="$CFLAGS -Werror=implicit"
14513
14514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14515$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14516		cacheid=xorg_cv_cc_flag__Werror_implicit
14517		if eval \${$cacheid+:} false; then :
14518  $as_echo_n "(cached) " >&6
14519else
14520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521/* end confdefs.h.  */
14522int i;
14523int
14524main ()
14525{
14526
14527  ;
14528  return 0;
14529}
14530_ACEOF
14531if ac_fn_c_try_link "$LINENO"; then :
14532  eval $cacheid=yes
14533else
14534  eval $cacheid=no
14535fi
14536rm -f core conftest.err conftest.$ac_objext \
14537    conftest$ac_exeext conftest.$ac_ext
14538fi
14539
14540
14541		CFLAGS="$xorg_testset_save_CFLAGS"
14542
14543		eval supported=\$$cacheid
14544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14545$as_echo "$supported" >&6; }
14546		if test "$supported" = "yes" ; then
14547			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14548			found="yes"
14549		fi
14550	fi
14551
14552	if test $found = "no" ; then
14553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14555		fi
14556
14557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14559		fi
14560
14561		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14562
14563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14564$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14565		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14566		if eval \${$cacheid+:} false; then :
14567  $as_echo_n "(cached) " >&6
14568else
14569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571int i;
14572int
14573main ()
14574{
14575
14576  ;
14577  return 0;
14578}
14579_ACEOF
14580if ac_fn_c_try_link "$LINENO"; then :
14581  eval $cacheid=yes
14582else
14583  eval $cacheid=no
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586    conftest$ac_exeext conftest.$ac_ext
14587fi
14588
14589
14590		CFLAGS="$xorg_testset_save_CFLAGS"
14591
14592		eval supported=\$$cacheid
14593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14594$as_echo "$supported" >&6; }
14595		if test "$supported" = "yes" ; then
14596			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14597			found="yes"
14598		fi
14599	fi
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615xorg_testset_save_CFLAGS="$CFLAGS"
14616
14617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14622  $as_echo_n "(cached) " >&6
14623else
14624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625/* end confdefs.h.  */
14626int i;
14627_ACEOF
14628if ac_fn_c_try_compile "$LINENO"; then :
14629  xorg_cv_cc_flag_unknown_warning_option=yes
14630else
14631  xorg_cv_cc_flag_unknown_warning_option=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634fi
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14638	CFLAGS="$xorg_testset_save_CFLAGS"
14639fi
14640
14641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14644	fi
14645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14649  $as_echo_n "(cached) " >&6
14650else
14651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653int i;
14654_ACEOF
14655if ac_fn_c_try_compile "$LINENO"; then :
14656  xorg_cv_cc_flag_unused_command_line_argument=yes
14657else
14658  xorg_cv_cc_flag_unused_command_line_argument=no
14659fi
14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661fi
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14665	CFLAGS="$xorg_testset_save_CFLAGS"
14666fi
14667
14668found="no"
14669
14670	if test $found = "no" ; then
14671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14673		fi
14674
14675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14677		fi
14678
14679		CFLAGS="$CFLAGS -Werror=nonnull"
14680
14681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14682$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14683		cacheid=xorg_cv_cc_flag__Werror_nonnull
14684		if eval \${$cacheid+:} false; then :
14685  $as_echo_n "(cached) " >&6
14686else
14687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688/* end confdefs.h.  */
14689int i;
14690int
14691main ()
14692{
14693
14694  ;
14695  return 0;
14696}
14697_ACEOF
14698if ac_fn_c_try_link "$LINENO"; then :
14699  eval $cacheid=yes
14700else
14701  eval $cacheid=no
14702fi
14703rm -f core conftest.err conftest.$ac_objext \
14704    conftest$ac_exeext conftest.$ac_ext
14705fi
14706
14707
14708		CFLAGS="$xorg_testset_save_CFLAGS"
14709
14710		eval supported=\$$cacheid
14711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14712$as_echo "$supported" >&6; }
14713		if test "$supported" = "yes" ; then
14714			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14715			found="yes"
14716		fi
14717	fi
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733xorg_testset_save_CFLAGS="$CFLAGS"
14734
14735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14740  $as_echo_n "(cached) " >&6
14741else
14742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743/* end confdefs.h.  */
14744int i;
14745_ACEOF
14746if ac_fn_c_try_compile "$LINENO"; then :
14747  xorg_cv_cc_flag_unknown_warning_option=yes
14748else
14749  xorg_cv_cc_flag_unknown_warning_option=no
14750fi
14751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14756	CFLAGS="$xorg_testset_save_CFLAGS"
14757fi
14758
14759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14762	fi
14763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14767  $as_echo_n "(cached) " >&6
14768else
14769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h.  */
14771int i;
14772_ACEOF
14773if ac_fn_c_try_compile "$LINENO"; then :
14774  xorg_cv_cc_flag_unused_command_line_argument=yes
14775else
14776  xorg_cv_cc_flag_unused_command_line_argument=no
14777fi
14778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14783	CFLAGS="$xorg_testset_save_CFLAGS"
14784fi
14785
14786found="no"
14787
14788	if test $found = "no" ; then
14789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791		fi
14792
14793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14795		fi
14796
14797		CFLAGS="$CFLAGS -Werror=init-self"
14798
14799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14800$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14801		cacheid=xorg_cv_cc_flag__Werror_init_self
14802		if eval \${$cacheid+:} false; then :
14803  $as_echo_n "(cached) " >&6
14804else
14805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h.  */
14807int i;
14808int
14809main ()
14810{
14811
14812  ;
14813  return 0;
14814}
14815_ACEOF
14816if ac_fn_c_try_link "$LINENO"; then :
14817  eval $cacheid=yes
14818else
14819  eval $cacheid=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext \
14822    conftest$ac_exeext conftest.$ac_ext
14823fi
14824
14825
14826		CFLAGS="$xorg_testset_save_CFLAGS"
14827
14828		eval supported=\$$cacheid
14829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14830$as_echo "$supported" >&6; }
14831		if test "$supported" = "yes" ; then
14832			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14833			found="yes"
14834		fi
14835	fi
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851xorg_testset_save_CFLAGS="$CFLAGS"
14852
14853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862int i;
14863_ACEOF
14864if ac_fn_c_try_compile "$LINENO"; then :
14865  xorg_cv_cc_flag_unknown_warning_option=yes
14866else
14867  xorg_cv_cc_flag_unknown_warning_option=no
14868fi
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870fi
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14874	CFLAGS="$xorg_testset_save_CFLAGS"
14875fi
14876
14877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14880	fi
14881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14885  $as_echo_n "(cached) " >&6
14886else
14887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889int i;
14890_ACEOF
14891if ac_fn_c_try_compile "$LINENO"; then :
14892  xorg_cv_cc_flag_unused_command_line_argument=yes
14893else
14894  xorg_cv_cc_flag_unused_command_line_argument=no
14895fi
14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897fi
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14901	CFLAGS="$xorg_testset_save_CFLAGS"
14902fi
14903
14904found="no"
14905
14906	if test $found = "no" ; then
14907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909		fi
14910
14911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14913		fi
14914
14915		CFLAGS="$CFLAGS -Werror=main"
14916
14917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14918$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14919		cacheid=xorg_cv_cc_flag__Werror_main
14920		if eval \${$cacheid+:} false; then :
14921  $as_echo_n "(cached) " >&6
14922else
14923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924/* end confdefs.h.  */
14925int i;
14926int
14927main ()
14928{
14929
14930  ;
14931  return 0;
14932}
14933_ACEOF
14934if ac_fn_c_try_link "$LINENO"; then :
14935  eval $cacheid=yes
14936else
14937  eval $cacheid=no
14938fi
14939rm -f core conftest.err conftest.$ac_objext \
14940    conftest$ac_exeext conftest.$ac_ext
14941fi
14942
14943
14944		CFLAGS="$xorg_testset_save_CFLAGS"
14945
14946		eval supported=\$$cacheid
14947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14948$as_echo "$supported" >&6; }
14949		if test "$supported" = "yes" ; then
14950			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14951			found="yes"
14952		fi
14953	fi
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969xorg_testset_save_CFLAGS="$CFLAGS"
14970
14971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14976  $as_echo_n "(cached) " >&6
14977else
14978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979/* end confdefs.h.  */
14980int i;
14981_ACEOF
14982if ac_fn_c_try_compile "$LINENO"; then :
14983  xorg_cv_cc_flag_unknown_warning_option=yes
14984else
14985  xorg_cv_cc_flag_unknown_warning_option=no
14986fi
14987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988fi
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14992	CFLAGS="$xorg_testset_save_CFLAGS"
14993fi
14994
14995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14998	fi
14999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15003  $as_echo_n "(cached) " >&6
15004else
15005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006/* end confdefs.h.  */
15007int i;
15008_ACEOF
15009if ac_fn_c_try_compile "$LINENO"; then :
15010  xorg_cv_cc_flag_unused_command_line_argument=yes
15011else
15012  xorg_cv_cc_flag_unused_command_line_argument=no
15013fi
15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015fi
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15019	CFLAGS="$xorg_testset_save_CFLAGS"
15020fi
15021
15022found="no"
15023
15024	if test $found = "no" ; then
15025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15027		fi
15028
15029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15031		fi
15032
15033		CFLAGS="$CFLAGS -Werror=missing-braces"
15034
15035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15036$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15037		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15038		if eval \${$cacheid+:} false; then :
15039  $as_echo_n "(cached) " >&6
15040else
15041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h.  */
15043int i;
15044int
15045main ()
15046{
15047
15048  ;
15049  return 0;
15050}
15051_ACEOF
15052if ac_fn_c_try_link "$LINENO"; then :
15053  eval $cacheid=yes
15054else
15055  eval $cacheid=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext \
15058    conftest$ac_exeext conftest.$ac_ext
15059fi
15060
15061
15062		CFLAGS="$xorg_testset_save_CFLAGS"
15063
15064		eval supported=\$$cacheid
15065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15066$as_echo "$supported" >&6; }
15067		if test "$supported" = "yes" ; then
15068			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15069			found="yes"
15070		fi
15071	fi
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087xorg_testset_save_CFLAGS="$CFLAGS"
15088
15089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098int i;
15099_ACEOF
15100if ac_fn_c_try_compile "$LINENO"; then :
15101  xorg_cv_cc_flag_unknown_warning_option=yes
15102else
15103  xorg_cv_cc_flag_unknown_warning_option=no
15104fi
15105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15110	CFLAGS="$xorg_testset_save_CFLAGS"
15111fi
15112
15113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15116	fi
15117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15121  $as_echo_n "(cached) " >&6
15122else
15123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124/* end confdefs.h.  */
15125int i;
15126_ACEOF
15127if ac_fn_c_try_compile "$LINENO"; then :
15128  xorg_cv_cc_flag_unused_command_line_argument=yes
15129else
15130  xorg_cv_cc_flag_unused_command_line_argument=no
15131fi
15132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15137	CFLAGS="$xorg_testset_save_CFLAGS"
15138fi
15139
15140found="no"
15141
15142	if test $found = "no" ; then
15143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145		fi
15146
15147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15149		fi
15150
15151		CFLAGS="$CFLAGS -Werror=sequence-point"
15152
15153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15154$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15155		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15156		if eval \${$cacheid+:} false; then :
15157  $as_echo_n "(cached) " >&6
15158else
15159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160/* end confdefs.h.  */
15161int i;
15162int
15163main ()
15164{
15165
15166  ;
15167  return 0;
15168}
15169_ACEOF
15170if ac_fn_c_try_link "$LINENO"; then :
15171  eval $cacheid=yes
15172else
15173  eval $cacheid=no
15174fi
15175rm -f core conftest.err conftest.$ac_objext \
15176    conftest$ac_exeext conftest.$ac_ext
15177fi
15178
15179
15180		CFLAGS="$xorg_testset_save_CFLAGS"
15181
15182		eval supported=\$$cacheid
15183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15184$as_echo "$supported" >&6; }
15185		if test "$supported" = "yes" ; then
15186			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15187			found="yes"
15188		fi
15189	fi
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205xorg_testset_save_CFLAGS="$CFLAGS"
15206
15207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h.  */
15216int i;
15217_ACEOF
15218if ac_fn_c_try_compile "$LINENO"; then :
15219  xorg_cv_cc_flag_unknown_warning_option=yes
15220else
15221  xorg_cv_cc_flag_unknown_warning_option=no
15222fi
15223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224fi
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15228	CFLAGS="$xorg_testset_save_CFLAGS"
15229fi
15230
15231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15234	fi
15235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15239  $as_echo_n "(cached) " >&6
15240else
15241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242/* end confdefs.h.  */
15243int i;
15244_ACEOF
15245if ac_fn_c_try_compile "$LINENO"; then :
15246  xorg_cv_cc_flag_unused_command_line_argument=yes
15247else
15248  xorg_cv_cc_flag_unused_command_line_argument=no
15249fi
15250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15255	CFLAGS="$xorg_testset_save_CFLAGS"
15256fi
15257
15258found="no"
15259
15260	if test $found = "no" ; then
15261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15263		fi
15264
15265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15267		fi
15268
15269		CFLAGS="$CFLAGS -Werror=return-type"
15270
15271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15272$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15273		cacheid=xorg_cv_cc_flag__Werror_return_type
15274		if eval \${$cacheid+:} false; then :
15275  $as_echo_n "(cached) " >&6
15276else
15277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h.  */
15279int i;
15280int
15281main ()
15282{
15283
15284  ;
15285  return 0;
15286}
15287_ACEOF
15288if ac_fn_c_try_link "$LINENO"; then :
15289  eval $cacheid=yes
15290else
15291  eval $cacheid=no
15292fi
15293rm -f core conftest.err conftest.$ac_objext \
15294    conftest$ac_exeext conftest.$ac_ext
15295fi
15296
15297
15298		CFLAGS="$xorg_testset_save_CFLAGS"
15299
15300		eval supported=\$$cacheid
15301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15302$as_echo "$supported" >&6; }
15303		if test "$supported" = "yes" ; then
15304			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15305			found="yes"
15306		fi
15307	fi
15308
15309	if test $found = "no" ; then
15310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15312		fi
15313
15314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316		fi
15317
15318		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15319
15320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15321$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15322		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15323		if eval \${$cacheid+:} false; then :
15324  $as_echo_n "(cached) " >&6
15325else
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328int i;
15329int
15330main ()
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
15338  eval $cacheid=yes
15339else
15340  eval $cacheid=no
15341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343    conftest$ac_exeext conftest.$ac_ext
15344fi
15345
15346
15347		CFLAGS="$xorg_testset_save_CFLAGS"
15348
15349		eval supported=\$$cacheid
15350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15351$as_echo "$supported" >&6; }
15352		if test "$supported" = "yes" ; then
15353			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15354			found="yes"
15355		fi
15356	fi
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372xorg_testset_save_CFLAGS="$CFLAGS"
15373
15374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15379  $as_echo_n "(cached) " >&6
15380else
15381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382/* end confdefs.h.  */
15383int i;
15384_ACEOF
15385if ac_fn_c_try_compile "$LINENO"; then :
15386  xorg_cv_cc_flag_unknown_warning_option=yes
15387else
15388  xorg_cv_cc_flag_unknown_warning_option=no
15389fi
15390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391fi
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15395	CFLAGS="$xorg_testset_save_CFLAGS"
15396fi
15397
15398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401	fi
15402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15406  $as_echo_n "(cached) " >&6
15407else
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410int i;
15411_ACEOF
15412if ac_fn_c_try_compile "$LINENO"; then :
15413  xorg_cv_cc_flag_unused_command_line_argument=yes
15414else
15415  xorg_cv_cc_flag_unused_command_line_argument=no
15416fi
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15422	CFLAGS="$xorg_testset_save_CFLAGS"
15423fi
15424
15425found="no"
15426
15427	if test $found = "no" ; then
15428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15430		fi
15431
15432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15434		fi
15435
15436		CFLAGS="$CFLAGS -Werror=trigraphs"
15437
15438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15439$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15440		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15441		if eval \${$cacheid+:} false; then :
15442  $as_echo_n "(cached) " >&6
15443else
15444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445/* end confdefs.h.  */
15446int i;
15447int
15448main ()
15449{
15450
15451  ;
15452  return 0;
15453}
15454_ACEOF
15455if ac_fn_c_try_link "$LINENO"; then :
15456  eval $cacheid=yes
15457else
15458  eval $cacheid=no
15459fi
15460rm -f core conftest.err conftest.$ac_objext \
15461    conftest$ac_exeext conftest.$ac_ext
15462fi
15463
15464
15465		CFLAGS="$xorg_testset_save_CFLAGS"
15466
15467		eval supported=\$$cacheid
15468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15469$as_echo "$supported" >&6; }
15470		if test "$supported" = "yes" ; then
15471			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15472			found="yes"
15473		fi
15474	fi
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490xorg_testset_save_CFLAGS="$CFLAGS"
15491
15492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15497  $as_echo_n "(cached) " >&6
15498else
15499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500/* end confdefs.h.  */
15501int i;
15502_ACEOF
15503if ac_fn_c_try_compile "$LINENO"; then :
15504  xorg_cv_cc_flag_unknown_warning_option=yes
15505else
15506  xorg_cv_cc_flag_unknown_warning_option=no
15507fi
15508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509fi
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15513	CFLAGS="$xorg_testset_save_CFLAGS"
15514fi
15515
15516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15519	fi
15520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15524  $as_echo_n "(cached) " >&6
15525else
15526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527/* end confdefs.h.  */
15528int i;
15529_ACEOF
15530if ac_fn_c_try_compile "$LINENO"; then :
15531  xorg_cv_cc_flag_unused_command_line_argument=yes
15532else
15533  xorg_cv_cc_flag_unused_command_line_argument=no
15534fi
15535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536fi
15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15540	CFLAGS="$xorg_testset_save_CFLAGS"
15541fi
15542
15543found="no"
15544
15545	if test $found = "no" ; then
15546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15548		fi
15549
15550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15552		fi
15553
15554		CFLAGS="$CFLAGS -Werror=array-bounds"
15555
15556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15557$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15558		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15559		if eval \${$cacheid+:} false; then :
15560  $as_echo_n "(cached) " >&6
15561else
15562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563/* end confdefs.h.  */
15564int i;
15565int
15566main ()
15567{
15568
15569  ;
15570  return 0;
15571}
15572_ACEOF
15573if ac_fn_c_try_link "$LINENO"; then :
15574  eval $cacheid=yes
15575else
15576  eval $cacheid=no
15577fi
15578rm -f core conftest.err conftest.$ac_objext \
15579    conftest$ac_exeext conftest.$ac_ext
15580fi
15581
15582
15583		CFLAGS="$xorg_testset_save_CFLAGS"
15584
15585		eval supported=\$$cacheid
15586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15587$as_echo "$supported" >&6; }
15588		if test "$supported" = "yes" ; then
15589			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15590			found="yes"
15591		fi
15592	fi
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608xorg_testset_save_CFLAGS="$CFLAGS"
15609
15610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15615  $as_echo_n "(cached) " >&6
15616else
15617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618/* end confdefs.h.  */
15619int i;
15620_ACEOF
15621if ac_fn_c_try_compile "$LINENO"; then :
15622  xorg_cv_cc_flag_unknown_warning_option=yes
15623else
15624  xorg_cv_cc_flag_unknown_warning_option=no
15625fi
15626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627fi
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15631	CFLAGS="$xorg_testset_save_CFLAGS"
15632fi
15633
15634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637	fi
15638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15642  $as_echo_n "(cached) " >&6
15643else
15644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h.  */
15646int i;
15647_ACEOF
15648if ac_fn_c_try_compile "$LINENO"; then :
15649  xorg_cv_cc_flag_unused_command_line_argument=yes
15650else
15651  xorg_cv_cc_flag_unused_command_line_argument=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654fi
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15658	CFLAGS="$xorg_testset_save_CFLAGS"
15659fi
15660
15661found="no"
15662
15663	if test $found = "no" ; then
15664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15666		fi
15667
15668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15670		fi
15671
15672		CFLAGS="$CFLAGS -Werror=write-strings"
15673
15674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15675$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15676		cacheid=xorg_cv_cc_flag__Werror_write_strings
15677		if eval \${$cacheid+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682int i;
15683int
15684main ()
15685{
15686
15687  ;
15688  return 0;
15689}
15690_ACEOF
15691if ac_fn_c_try_link "$LINENO"; then :
15692  eval $cacheid=yes
15693else
15694  eval $cacheid=no
15695fi
15696rm -f core conftest.err conftest.$ac_objext \
15697    conftest$ac_exeext conftest.$ac_ext
15698fi
15699
15700
15701		CFLAGS="$xorg_testset_save_CFLAGS"
15702
15703		eval supported=\$$cacheid
15704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15705$as_echo "$supported" >&6; }
15706		if test "$supported" = "yes" ; then
15707			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15708			found="yes"
15709		fi
15710	fi
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726xorg_testset_save_CFLAGS="$CFLAGS"
15727
15728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15733  $as_echo_n "(cached) " >&6
15734else
15735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736/* end confdefs.h.  */
15737int i;
15738_ACEOF
15739if ac_fn_c_try_compile "$LINENO"; then :
15740  xorg_cv_cc_flag_unknown_warning_option=yes
15741else
15742  xorg_cv_cc_flag_unknown_warning_option=no
15743fi
15744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745fi
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15749	CFLAGS="$xorg_testset_save_CFLAGS"
15750fi
15751
15752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755	fi
15756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15760  $as_echo_n "(cached) " >&6
15761else
15762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h.  */
15764int i;
15765_ACEOF
15766if ac_fn_c_try_compile "$LINENO"; then :
15767  xorg_cv_cc_flag_unused_command_line_argument=yes
15768else
15769  xorg_cv_cc_flag_unused_command_line_argument=no
15770fi
15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15776	CFLAGS="$xorg_testset_save_CFLAGS"
15777fi
15778
15779found="no"
15780
15781	if test $found = "no" ; then
15782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784		fi
15785
15786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15788		fi
15789
15790		CFLAGS="$CFLAGS -Werror=address"
15791
15792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15793$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15794		cacheid=xorg_cv_cc_flag__Werror_address
15795		if eval \${$cacheid+:} false; then :
15796  $as_echo_n "(cached) " >&6
15797else
15798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h.  */
15800int i;
15801int
15802main ()
15803{
15804
15805  ;
15806  return 0;
15807}
15808_ACEOF
15809if ac_fn_c_try_link "$LINENO"; then :
15810  eval $cacheid=yes
15811else
15812  eval $cacheid=no
15813fi
15814rm -f core conftest.err conftest.$ac_objext \
15815    conftest$ac_exeext conftest.$ac_ext
15816fi
15817
15818
15819		CFLAGS="$xorg_testset_save_CFLAGS"
15820
15821		eval supported=\$$cacheid
15822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15823$as_echo "$supported" >&6; }
15824		if test "$supported" = "yes" ; then
15825			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15826			found="yes"
15827		fi
15828	fi
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844xorg_testset_save_CFLAGS="$CFLAGS"
15845
15846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15851  $as_echo_n "(cached) " >&6
15852else
15853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854/* end confdefs.h.  */
15855int i;
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"; then :
15858  xorg_cv_cc_flag_unknown_warning_option=yes
15859else
15860  xorg_cv_cc_flag_unknown_warning_option=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873	fi
15874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15878  $as_echo_n "(cached) " >&6
15879else
15880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h.  */
15882int i;
15883_ACEOF
15884if ac_fn_c_try_compile "$LINENO"; then :
15885  xorg_cv_cc_flag_unused_command_line_argument=yes
15886else
15887  xorg_cv_cc_flag_unused_command_line_argument=no
15888fi
15889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890fi
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15894	CFLAGS="$xorg_testset_save_CFLAGS"
15895fi
15896
15897found="no"
15898
15899	if test $found = "no" ; then
15900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902		fi
15903
15904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15906		fi
15907
15908		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15909
15910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15911$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15912		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15913		if eval \${$cacheid+:} false; then :
15914  $as_echo_n "(cached) " >&6
15915else
15916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917/* end confdefs.h.  */
15918int i;
15919int
15920main ()
15921{
15922
15923  ;
15924  return 0;
15925}
15926_ACEOF
15927if ac_fn_c_try_link "$LINENO"; then :
15928  eval $cacheid=yes
15929else
15930  eval $cacheid=no
15931fi
15932rm -f core conftest.err conftest.$ac_objext \
15933    conftest$ac_exeext conftest.$ac_ext
15934fi
15935
15936
15937		CFLAGS="$xorg_testset_save_CFLAGS"
15938
15939		eval supported=\$$cacheid
15940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15941$as_echo "$supported" >&6; }
15942		if test "$supported" = "yes" ; then
15943			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15944			found="yes"
15945		fi
15946	fi
15947
15948	if test $found = "no" ; then
15949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15951		fi
15952
15953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15955		fi
15956
15957		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15958
15959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15960$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15961		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15962		if eval \${$cacheid+:} false; then :
15963  $as_echo_n "(cached) " >&6
15964else
15965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967int i;
15968int
15969main ()
15970{
15971
15972  ;
15973  return 0;
15974}
15975_ACEOF
15976if ac_fn_c_try_link "$LINENO"; then :
15977  eval $cacheid=yes
15978else
15979  eval $cacheid=no
15980fi
15981rm -f core conftest.err conftest.$ac_objext \
15982    conftest$ac_exeext conftest.$ac_ext
15983fi
15984
15985
15986		CFLAGS="$xorg_testset_save_CFLAGS"
15987
15988		eval supported=\$$cacheid
15989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15990$as_echo "$supported" >&6; }
15991		if test "$supported" = "yes" ; then
15992			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15993			found="yes"
15994		fi
15995	fi
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011xorg_testset_save_CFLAGS="$CFLAGS"
16012
16013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021/* end confdefs.h.  */
16022int i;
16023_ACEOF
16024if ac_fn_c_try_compile "$LINENO"; then :
16025  xorg_cv_cc_flag_unknown_warning_option=yes
16026else
16027  xorg_cv_cc_flag_unknown_warning_option=no
16028fi
16029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030fi
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16034	CFLAGS="$xorg_testset_save_CFLAGS"
16035fi
16036
16037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16040	fi
16041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16045  $as_echo_n "(cached) " >&6
16046else
16047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048/* end confdefs.h.  */
16049int i;
16050_ACEOF
16051if ac_fn_c_try_compile "$LINENO"; then :
16052  xorg_cv_cc_flag_unused_command_line_argument=yes
16053else
16054  xorg_cv_cc_flag_unused_command_line_argument=no
16055fi
16056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057fi
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16061	CFLAGS="$xorg_testset_save_CFLAGS"
16062fi
16063
16064found="no"
16065
16066	if test $found = "no" ; then
16067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16069		fi
16070
16071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16073		fi
16074
16075		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16076
16077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16078$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16079		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16080		if eval \${$cacheid+:} false; then :
16081  $as_echo_n "(cached) " >&6
16082else
16083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h.  */
16085int i;
16086int
16087main ()
16088{
16089
16090  ;
16091  return 0;
16092}
16093_ACEOF
16094if ac_fn_c_try_link "$LINENO"; then :
16095  eval $cacheid=yes
16096else
16097  eval $cacheid=no
16098fi
16099rm -f core conftest.err conftest.$ac_objext \
16100    conftest$ac_exeext conftest.$ac_ext
16101fi
16102
16103
16104		CFLAGS="$xorg_testset_save_CFLAGS"
16105
16106		eval supported=\$$cacheid
16107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16108$as_echo "$supported" >&6; }
16109		if test "$supported" = "yes" ; then
16110			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16111			found="yes"
16112		fi
16113	fi
16114
16115 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16116else
16117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16118$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132xorg_testset_save_CFLAGS="$CFLAGS"
16133
16134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h.  */
16143int i;
16144_ACEOF
16145if ac_fn_c_try_compile "$LINENO"; then :
16146  xorg_cv_cc_flag_unknown_warning_option=yes
16147else
16148  xorg_cv_cc_flag_unknown_warning_option=no
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151fi
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16155	CFLAGS="$xorg_testset_save_CFLAGS"
16156fi
16157
16158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161	fi
16162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16166  $as_echo_n "(cached) " >&6
16167else
16168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169/* end confdefs.h.  */
16170int i;
16171_ACEOF
16172if ac_fn_c_try_compile "$LINENO"; then :
16173  xorg_cv_cc_flag_unused_command_line_argument=yes
16174else
16175  xorg_cv_cc_flag_unused_command_line_argument=no
16176fi
16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178fi
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16181	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16182	CFLAGS="$xorg_testset_save_CFLAGS"
16183fi
16184
16185found="no"
16186
16187	if test $found = "no" ; then
16188		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16190		fi
16191
16192		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16194		fi
16195
16196		CFLAGS="$CFLAGS -Wimplicit"
16197
16198		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16199$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16200		cacheid=xorg_cv_cc_flag__Wimplicit
16201		if eval \${$cacheid+:} false; then :
16202  $as_echo_n "(cached) " >&6
16203else
16204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205/* end confdefs.h.  */
16206int i;
16207int
16208main ()
16209{
16210
16211  ;
16212  return 0;
16213}
16214_ACEOF
16215if ac_fn_c_try_link "$LINENO"; then :
16216  eval $cacheid=yes
16217else
16218  eval $cacheid=no
16219fi
16220rm -f core conftest.err conftest.$ac_objext \
16221    conftest$ac_exeext conftest.$ac_ext
16222fi
16223
16224
16225		CFLAGS="$xorg_testset_save_CFLAGS"
16226
16227		eval supported=\$$cacheid
16228		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16229$as_echo "$supported" >&6; }
16230		if test "$supported" = "yes" ; then
16231			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16232			found="yes"
16233		fi
16234	fi
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250xorg_testset_save_CFLAGS="$CFLAGS"
16251
16252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16257  $as_echo_n "(cached) " >&6
16258else
16259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h.  */
16261int i;
16262_ACEOF
16263if ac_fn_c_try_compile "$LINENO"; then :
16264  xorg_cv_cc_flag_unknown_warning_option=yes
16265else
16266  xorg_cv_cc_flag_unknown_warning_option=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16273	CFLAGS="$xorg_testset_save_CFLAGS"
16274fi
16275
16276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279	fi
16280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16284  $as_echo_n "(cached) " >&6
16285else
16286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h.  */
16288int i;
16289_ACEOF
16290if ac_fn_c_try_compile "$LINENO"; then :
16291  xorg_cv_cc_flag_unused_command_line_argument=yes
16292else
16293  xorg_cv_cc_flag_unused_command_line_argument=no
16294fi
16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296fi
16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16300	CFLAGS="$xorg_testset_save_CFLAGS"
16301fi
16302
16303found="no"
16304
16305	if test $found = "no" ; then
16306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16308		fi
16309
16310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16312		fi
16313
16314		CFLAGS="$CFLAGS -Wnonnull"
16315
16316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16317$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16318		cacheid=xorg_cv_cc_flag__Wnonnull
16319		if eval \${$cacheid+:} false; then :
16320  $as_echo_n "(cached) " >&6
16321else
16322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323/* end confdefs.h.  */
16324int i;
16325int
16326main ()
16327{
16328
16329  ;
16330  return 0;
16331}
16332_ACEOF
16333if ac_fn_c_try_link "$LINENO"; then :
16334  eval $cacheid=yes
16335else
16336  eval $cacheid=no
16337fi
16338rm -f core conftest.err conftest.$ac_objext \
16339    conftest$ac_exeext conftest.$ac_ext
16340fi
16341
16342
16343		CFLAGS="$xorg_testset_save_CFLAGS"
16344
16345		eval supported=\$$cacheid
16346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16347$as_echo "$supported" >&6; }
16348		if test "$supported" = "yes" ; then
16349			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16350			found="yes"
16351		fi
16352	fi
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368xorg_testset_save_CFLAGS="$CFLAGS"
16369
16370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16375  $as_echo_n "(cached) " >&6
16376else
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379int i;
16380_ACEOF
16381if ac_fn_c_try_compile "$LINENO"; then :
16382  xorg_cv_cc_flag_unknown_warning_option=yes
16383else
16384  xorg_cv_cc_flag_unknown_warning_option=no
16385fi
16386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387fi
16388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16391	CFLAGS="$xorg_testset_save_CFLAGS"
16392fi
16393
16394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397	fi
16398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16402  $as_echo_n "(cached) " >&6
16403else
16404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405/* end confdefs.h.  */
16406int i;
16407_ACEOF
16408if ac_fn_c_try_compile "$LINENO"; then :
16409  xorg_cv_cc_flag_unused_command_line_argument=yes
16410else
16411  xorg_cv_cc_flag_unused_command_line_argument=no
16412fi
16413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414fi
16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16418	CFLAGS="$xorg_testset_save_CFLAGS"
16419fi
16420
16421found="no"
16422
16423	if test $found = "no" ; then
16424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426		fi
16427
16428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16430		fi
16431
16432		CFLAGS="$CFLAGS -Winit-self"
16433
16434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16435$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16436		cacheid=xorg_cv_cc_flag__Winit_self
16437		if eval \${$cacheid+:} false; then :
16438  $as_echo_n "(cached) " >&6
16439else
16440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441/* end confdefs.h.  */
16442int i;
16443int
16444main ()
16445{
16446
16447  ;
16448  return 0;
16449}
16450_ACEOF
16451if ac_fn_c_try_link "$LINENO"; then :
16452  eval $cacheid=yes
16453else
16454  eval $cacheid=no
16455fi
16456rm -f core conftest.err conftest.$ac_objext \
16457    conftest$ac_exeext conftest.$ac_ext
16458fi
16459
16460
16461		CFLAGS="$xorg_testset_save_CFLAGS"
16462
16463		eval supported=\$$cacheid
16464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16465$as_echo "$supported" >&6; }
16466		if test "$supported" = "yes" ; then
16467			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16468			found="yes"
16469		fi
16470	fi
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486xorg_testset_save_CFLAGS="$CFLAGS"
16487
16488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16493  $as_echo_n "(cached) " >&6
16494else
16495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h.  */
16497int i;
16498_ACEOF
16499if ac_fn_c_try_compile "$LINENO"; then :
16500  xorg_cv_cc_flag_unknown_warning_option=yes
16501else
16502  xorg_cv_cc_flag_unknown_warning_option=no
16503fi
16504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505fi
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16509	CFLAGS="$xorg_testset_save_CFLAGS"
16510fi
16511
16512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515	fi
16516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16520  $as_echo_n "(cached) " >&6
16521else
16522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h.  */
16524int i;
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"; then :
16527  xorg_cv_cc_flag_unused_command_line_argument=yes
16528else
16529  xorg_cv_cc_flag_unused_command_line_argument=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532fi
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16536	CFLAGS="$xorg_testset_save_CFLAGS"
16537fi
16538
16539found="no"
16540
16541	if test $found = "no" ; then
16542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544		fi
16545
16546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16548		fi
16549
16550		CFLAGS="$CFLAGS -Wmain"
16551
16552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16553$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16554		cacheid=xorg_cv_cc_flag__Wmain
16555		if eval \${$cacheid+:} false; then :
16556  $as_echo_n "(cached) " >&6
16557else
16558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h.  */
16560int i;
16561int
16562main ()
16563{
16564
16565  ;
16566  return 0;
16567}
16568_ACEOF
16569if ac_fn_c_try_link "$LINENO"; then :
16570  eval $cacheid=yes
16571else
16572  eval $cacheid=no
16573fi
16574rm -f core conftest.err conftest.$ac_objext \
16575    conftest$ac_exeext conftest.$ac_ext
16576fi
16577
16578
16579		CFLAGS="$xorg_testset_save_CFLAGS"
16580
16581		eval supported=\$$cacheid
16582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16583$as_echo "$supported" >&6; }
16584		if test "$supported" = "yes" ; then
16585			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16586			found="yes"
16587		fi
16588	fi
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604xorg_testset_save_CFLAGS="$CFLAGS"
16605
16606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16611  $as_echo_n "(cached) " >&6
16612else
16613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h.  */
16615int i;
16616_ACEOF
16617if ac_fn_c_try_compile "$LINENO"; then :
16618  xorg_cv_cc_flag_unknown_warning_option=yes
16619else
16620  xorg_cv_cc_flag_unknown_warning_option=no
16621fi
16622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623fi
16624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16627	CFLAGS="$xorg_testset_save_CFLAGS"
16628fi
16629
16630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633	fi
16634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16638  $as_echo_n "(cached) " >&6
16639else
16640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h.  */
16642int i;
16643_ACEOF
16644if ac_fn_c_try_compile "$LINENO"; then :
16645  xorg_cv_cc_flag_unused_command_line_argument=yes
16646else
16647  xorg_cv_cc_flag_unused_command_line_argument=no
16648fi
16649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650fi
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16654	CFLAGS="$xorg_testset_save_CFLAGS"
16655fi
16656
16657found="no"
16658
16659	if test $found = "no" ; then
16660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16662		fi
16663
16664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16666		fi
16667
16668		CFLAGS="$CFLAGS -Wmissing-braces"
16669
16670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16671$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16672		cacheid=xorg_cv_cc_flag__Wmissing_braces
16673		if eval \${$cacheid+:} false; then :
16674  $as_echo_n "(cached) " >&6
16675else
16676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678int i;
16679int
16680main ()
16681{
16682
16683  ;
16684  return 0;
16685}
16686_ACEOF
16687if ac_fn_c_try_link "$LINENO"; then :
16688  eval $cacheid=yes
16689else
16690  eval $cacheid=no
16691fi
16692rm -f core conftest.err conftest.$ac_objext \
16693    conftest$ac_exeext conftest.$ac_ext
16694fi
16695
16696
16697		CFLAGS="$xorg_testset_save_CFLAGS"
16698
16699		eval supported=\$$cacheid
16700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16701$as_echo "$supported" >&6; }
16702		if test "$supported" = "yes" ; then
16703			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16704			found="yes"
16705		fi
16706	fi
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722xorg_testset_save_CFLAGS="$CFLAGS"
16723
16724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16729  $as_echo_n "(cached) " >&6
16730else
16731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732/* end confdefs.h.  */
16733int i;
16734_ACEOF
16735if ac_fn_c_try_compile "$LINENO"; then :
16736  xorg_cv_cc_flag_unknown_warning_option=yes
16737else
16738  xorg_cv_cc_flag_unknown_warning_option=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741fi
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16745	CFLAGS="$xorg_testset_save_CFLAGS"
16746fi
16747
16748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16751	fi
16752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16756  $as_echo_n "(cached) " >&6
16757else
16758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759/* end confdefs.h.  */
16760int i;
16761_ACEOF
16762if ac_fn_c_try_compile "$LINENO"; then :
16763  xorg_cv_cc_flag_unused_command_line_argument=yes
16764else
16765  xorg_cv_cc_flag_unused_command_line_argument=no
16766fi
16767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768fi
16769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16772	CFLAGS="$xorg_testset_save_CFLAGS"
16773fi
16774
16775found="no"
16776
16777	if test $found = "no" ; then
16778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16780		fi
16781
16782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16784		fi
16785
16786		CFLAGS="$CFLAGS -Wsequence-point"
16787
16788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16789$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16790		cacheid=xorg_cv_cc_flag__Wsequence_point
16791		if eval \${$cacheid+:} false; then :
16792  $as_echo_n "(cached) " >&6
16793else
16794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795/* end confdefs.h.  */
16796int i;
16797int
16798main ()
16799{
16800
16801  ;
16802  return 0;
16803}
16804_ACEOF
16805if ac_fn_c_try_link "$LINENO"; then :
16806  eval $cacheid=yes
16807else
16808  eval $cacheid=no
16809fi
16810rm -f core conftest.err conftest.$ac_objext \
16811    conftest$ac_exeext conftest.$ac_ext
16812fi
16813
16814
16815		CFLAGS="$xorg_testset_save_CFLAGS"
16816
16817		eval supported=\$$cacheid
16818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16819$as_echo "$supported" >&6; }
16820		if test "$supported" = "yes" ; then
16821			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16822			found="yes"
16823		fi
16824	fi
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840xorg_testset_save_CFLAGS="$CFLAGS"
16841
16842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h.  */
16851int i;
16852_ACEOF
16853if ac_fn_c_try_compile "$LINENO"; then :
16854  xorg_cv_cc_flag_unknown_warning_option=yes
16855else
16856  xorg_cv_cc_flag_unknown_warning_option=no
16857fi
16858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859fi
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16863	CFLAGS="$xorg_testset_save_CFLAGS"
16864fi
16865
16866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16869	fi
16870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16874  $as_echo_n "(cached) " >&6
16875else
16876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877/* end confdefs.h.  */
16878int i;
16879_ACEOF
16880if ac_fn_c_try_compile "$LINENO"; then :
16881  xorg_cv_cc_flag_unused_command_line_argument=yes
16882else
16883  xorg_cv_cc_flag_unused_command_line_argument=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886fi
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16890	CFLAGS="$xorg_testset_save_CFLAGS"
16891fi
16892
16893found="no"
16894
16895	if test $found = "no" ; then
16896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16898		fi
16899
16900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16902		fi
16903
16904		CFLAGS="$CFLAGS -Wreturn-type"
16905
16906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16907$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16908		cacheid=xorg_cv_cc_flag__Wreturn_type
16909		if eval \${$cacheid+:} false; then :
16910  $as_echo_n "(cached) " >&6
16911else
16912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913/* end confdefs.h.  */
16914int i;
16915int
16916main ()
16917{
16918
16919  ;
16920  return 0;
16921}
16922_ACEOF
16923if ac_fn_c_try_link "$LINENO"; then :
16924  eval $cacheid=yes
16925else
16926  eval $cacheid=no
16927fi
16928rm -f core conftest.err conftest.$ac_objext \
16929    conftest$ac_exeext conftest.$ac_ext
16930fi
16931
16932
16933		CFLAGS="$xorg_testset_save_CFLAGS"
16934
16935		eval supported=\$$cacheid
16936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16937$as_echo "$supported" >&6; }
16938		if test "$supported" = "yes" ; then
16939			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16940			found="yes"
16941		fi
16942	fi
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958xorg_testset_save_CFLAGS="$CFLAGS"
16959
16960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16965  $as_echo_n "(cached) " >&6
16966else
16967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h.  */
16969int i;
16970_ACEOF
16971if ac_fn_c_try_compile "$LINENO"; then :
16972  xorg_cv_cc_flag_unknown_warning_option=yes
16973else
16974  xorg_cv_cc_flag_unknown_warning_option=no
16975fi
16976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16981	CFLAGS="$xorg_testset_save_CFLAGS"
16982fi
16983
16984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16987	fi
16988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996int i;
16997_ACEOF
16998if ac_fn_c_try_compile "$LINENO"; then :
16999  xorg_cv_cc_flag_unused_command_line_argument=yes
17000else
17001  xorg_cv_cc_flag_unused_command_line_argument=no
17002fi
17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004fi
17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17008	CFLAGS="$xorg_testset_save_CFLAGS"
17009fi
17010
17011found="no"
17012
17013	if test $found = "no" ; then
17014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17016		fi
17017
17018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17020		fi
17021
17022		CFLAGS="$CFLAGS -Wtrigraphs"
17023
17024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17025$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17026		cacheid=xorg_cv_cc_flag__Wtrigraphs
17027		if eval \${$cacheid+:} false; then :
17028  $as_echo_n "(cached) " >&6
17029else
17030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031/* end confdefs.h.  */
17032int i;
17033int
17034main ()
17035{
17036
17037  ;
17038  return 0;
17039}
17040_ACEOF
17041if ac_fn_c_try_link "$LINENO"; then :
17042  eval $cacheid=yes
17043else
17044  eval $cacheid=no
17045fi
17046rm -f core conftest.err conftest.$ac_objext \
17047    conftest$ac_exeext conftest.$ac_ext
17048fi
17049
17050
17051		CFLAGS="$xorg_testset_save_CFLAGS"
17052
17053		eval supported=\$$cacheid
17054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17055$as_echo "$supported" >&6; }
17056		if test "$supported" = "yes" ; then
17057			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17058			found="yes"
17059		fi
17060	fi
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076xorg_testset_save_CFLAGS="$CFLAGS"
17077
17078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17083  $as_echo_n "(cached) " >&6
17084else
17085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086/* end confdefs.h.  */
17087int i;
17088_ACEOF
17089if ac_fn_c_try_compile "$LINENO"; then :
17090  xorg_cv_cc_flag_unknown_warning_option=yes
17091else
17092  xorg_cv_cc_flag_unknown_warning_option=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17099	CFLAGS="$xorg_testset_save_CFLAGS"
17100fi
17101
17102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17105	fi
17106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17110  $as_echo_n "(cached) " >&6
17111else
17112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113/* end confdefs.h.  */
17114int i;
17115_ACEOF
17116if ac_fn_c_try_compile "$LINENO"; then :
17117  xorg_cv_cc_flag_unused_command_line_argument=yes
17118else
17119  xorg_cv_cc_flag_unused_command_line_argument=no
17120fi
17121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122fi
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17126	CFLAGS="$xorg_testset_save_CFLAGS"
17127fi
17128
17129found="no"
17130
17131	if test $found = "no" ; then
17132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17134		fi
17135
17136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17138		fi
17139
17140		CFLAGS="$CFLAGS -Warray-bounds"
17141
17142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17143$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17144		cacheid=xorg_cv_cc_flag__Warray_bounds
17145		if eval \${$cacheid+:} false; then :
17146  $as_echo_n "(cached) " >&6
17147else
17148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150int i;
17151int
17152main ()
17153{
17154
17155  ;
17156  return 0;
17157}
17158_ACEOF
17159if ac_fn_c_try_link "$LINENO"; then :
17160  eval $cacheid=yes
17161else
17162  eval $cacheid=no
17163fi
17164rm -f core conftest.err conftest.$ac_objext \
17165    conftest$ac_exeext conftest.$ac_ext
17166fi
17167
17168
17169		CFLAGS="$xorg_testset_save_CFLAGS"
17170
17171		eval supported=\$$cacheid
17172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17173$as_echo "$supported" >&6; }
17174		if test "$supported" = "yes" ; then
17175			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17176			found="yes"
17177		fi
17178	fi
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194xorg_testset_save_CFLAGS="$CFLAGS"
17195
17196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17201  $as_echo_n "(cached) " >&6
17202else
17203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204/* end confdefs.h.  */
17205int i;
17206_ACEOF
17207if ac_fn_c_try_compile "$LINENO"; then :
17208  xorg_cv_cc_flag_unknown_warning_option=yes
17209else
17210  xorg_cv_cc_flag_unknown_warning_option=no
17211fi
17212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213fi
17214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17217	CFLAGS="$xorg_testset_save_CFLAGS"
17218fi
17219
17220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17223	fi
17224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17228  $as_echo_n "(cached) " >&6
17229else
17230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h.  */
17232int i;
17233_ACEOF
17234if ac_fn_c_try_compile "$LINENO"; then :
17235  xorg_cv_cc_flag_unused_command_line_argument=yes
17236else
17237  xorg_cv_cc_flag_unused_command_line_argument=no
17238fi
17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240fi
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17244	CFLAGS="$xorg_testset_save_CFLAGS"
17245fi
17246
17247found="no"
17248
17249	if test $found = "no" ; then
17250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17252		fi
17253
17254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17256		fi
17257
17258		CFLAGS="$CFLAGS -Wwrite-strings"
17259
17260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17261$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17262		cacheid=xorg_cv_cc_flag__Wwrite_strings
17263		if eval \${$cacheid+:} false; then :
17264  $as_echo_n "(cached) " >&6
17265else
17266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267/* end confdefs.h.  */
17268int i;
17269int
17270main ()
17271{
17272
17273  ;
17274  return 0;
17275}
17276_ACEOF
17277if ac_fn_c_try_link "$LINENO"; then :
17278  eval $cacheid=yes
17279else
17280  eval $cacheid=no
17281fi
17282rm -f core conftest.err conftest.$ac_objext \
17283    conftest$ac_exeext conftest.$ac_ext
17284fi
17285
17286
17287		CFLAGS="$xorg_testset_save_CFLAGS"
17288
17289		eval supported=\$$cacheid
17290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17291$as_echo "$supported" >&6; }
17292		if test "$supported" = "yes" ; then
17293			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17294			found="yes"
17295		fi
17296	fi
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312xorg_testset_save_CFLAGS="$CFLAGS"
17313
17314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17319  $as_echo_n "(cached) " >&6
17320else
17321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h.  */
17323int i;
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"; then :
17326  xorg_cv_cc_flag_unknown_warning_option=yes
17327else
17328  xorg_cv_cc_flag_unknown_warning_option=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331fi
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17335	CFLAGS="$xorg_testset_save_CFLAGS"
17336fi
17337
17338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341	fi
17342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17346  $as_echo_n "(cached) " >&6
17347else
17348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350int i;
17351_ACEOF
17352if ac_fn_c_try_compile "$LINENO"; then :
17353  xorg_cv_cc_flag_unused_command_line_argument=yes
17354else
17355  xorg_cv_cc_flag_unused_command_line_argument=no
17356fi
17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358fi
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17362	CFLAGS="$xorg_testset_save_CFLAGS"
17363fi
17364
17365found="no"
17366
17367	if test $found = "no" ; then
17368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370		fi
17371
17372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17374		fi
17375
17376		CFLAGS="$CFLAGS -Waddress"
17377
17378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17379$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17380		cacheid=xorg_cv_cc_flag__Waddress
17381		if eval \${$cacheid+:} false; then :
17382  $as_echo_n "(cached) " >&6
17383else
17384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h.  */
17386int i;
17387int
17388main ()
17389{
17390
17391  ;
17392  return 0;
17393}
17394_ACEOF
17395if ac_fn_c_try_link "$LINENO"; then :
17396  eval $cacheid=yes
17397else
17398  eval $cacheid=no
17399fi
17400rm -f core conftest.err conftest.$ac_objext \
17401    conftest$ac_exeext conftest.$ac_ext
17402fi
17403
17404
17405		CFLAGS="$xorg_testset_save_CFLAGS"
17406
17407		eval supported=\$$cacheid
17408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17409$as_echo "$supported" >&6; }
17410		if test "$supported" = "yes" ; then
17411			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17412			found="yes"
17413		fi
17414	fi
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430xorg_testset_save_CFLAGS="$CFLAGS"
17431
17432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17437  $as_echo_n "(cached) " >&6
17438else
17439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h.  */
17441int i;
17442_ACEOF
17443if ac_fn_c_try_compile "$LINENO"; then :
17444  xorg_cv_cc_flag_unknown_warning_option=yes
17445else
17446  xorg_cv_cc_flag_unknown_warning_option=no
17447fi
17448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17453	CFLAGS="$xorg_testset_save_CFLAGS"
17454fi
17455
17456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17459	fi
17460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17464  $as_echo_n "(cached) " >&6
17465else
17466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467/* end confdefs.h.  */
17468int i;
17469_ACEOF
17470if ac_fn_c_try_compile "$LINENO"; then :
17471  xorg_cv_cc_flag_unused_command_line_argument=yes
17472else
17473  xorg_cv_cc_flag_unused_command_line_argument=no
17474fi
17475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476fi
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17480	CFLAGS="$xorg_testset_save_CFLAGS"
17481fi
17482
17483found="no"
17484
17485	if test $found = "no" ; then
17486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17488		fi
17489
17490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492		fi
17493
17494		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17495
17496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17497$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17498		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17499		if eval \${$cacheid+:} false; then :
17500  $as_echo_n "(cached) " >&6
17501else
17502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503/* end confdefs.h.  */
17504int i;
17505int
17506main ()
17507{
17508
17509  ;
17510  return 0;
17511}
17512_ACEOF
17513if ac_fn_c_try_link "$LINENO"; then :
17514  eval $cacheid=yes
17515else
17516  eval $cacheid=no
17517fi
17518rm -f core conftest.err conftest.$ac_objext \
17519    conftest$ac_exeext conftest.$ac_ext
17520fi
17521
17522
17523		CFLAGS="$xorg_testset_save_CFLAGS"
17524
17525		eval supported=\$$cacheid
17526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17527$as_echo "$supported" >&6; }
17528		if test "$supported" = "yes" ; then
17529			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17530			found="yes"
17531		fi
17532	fi
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548xorg_testset_save_CFLAGS="$CFLAGS"
17549
17550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558/* end confdefs.h.  */
17559int i;
17560_ACEOF
17561if ac_fn_c_try_compile "$LINENO"; then :
17562  xorg_cv_cc_flag_unknown_warning_option=yes
17563else
17564  xorg_cv_cc_flag_unknown_warning_option=no
17565fi
17566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17571	CFLAGS="$xorg_testset_save_CFLAGS"
17572fi
17573
17574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17577	fi
17578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17582  $as_echo_n "(cached) " >&6
17583else
17584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585/* end confdefs.h.  */
17586int i;
17587_ACEOF
17588if ac_fn_c_try_compile "$LINENO"; then :
17589  xorg_cv_cc_flag_unused_command_line_argument=yes
17590else
17591  xorg_cv_cc_flag_unused_command_line_argument=no
17592fi
17593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594fi
17595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17598	CFLAGS="$xorg_testset_save_CFLAGS"
17599fi
17600
17601found="no"
17602
17603	if test $found = "no" ; then
17604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17606		fi
17607
17608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17610		fi
17611
17612		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17613
17614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17615$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17616		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17617		if eval \${$cacheid+:} false; then :
17618  $as_echo_n "(cached) " >&6
17619else
17620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621/* end confdefs.h.  */
17622int i;
17623int
17624main ()
17625{
17626
17627  ;
17628  return 0;
17629}
17630_ACEOF
17631if ac_fn_c_try_link "$LINENO"; then :
17632  eval $cacheid=yes
17633else
17634  eval $cacheid=no
17635fi
17636rm -f core conftest.err conftest.$ac_objext \
17637    conftest$ac_exeext conftest.$ac_ext
17638fi
17639
17640
17641		CFLAGS="$xorg_testset_save_CFLAGS"
17642
17643		eval supported=\$$cacheid
17644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17645$as_echo "$supported" >&6; }
17646		if test "$supported" = "yes" ; then
17647			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17648			found="yes"
17649		fi
17650	fi
17651
17652
17653fi
17654
17655
17656
17657
17658
17659
17660
17661		CWARNFLAGS="$BASE_CFLAGS"
17662		if  test "x$GCC" = xyes ; then
17663		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17664		fi
17665
17666
17667
17668
17669
17670
17671
17672
17673# Check whether --enable-strict-compilation was given.
17674if test "${enable_strict_compilation+set}" = set; then :
17675  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17676else
17677  STRICT_COMPILE=no
17678fi
17679
17680
17681
17682
17683
17684
17685STRICT_CFLAGS=""
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699xorg_testset_save_CFLAGS="$CFLAGS"
17700
17701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17706  $as_echo_n "(cached) " >&6
17707else
17708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709/* end confdefs.h.  */
17710int i;
17711_ACEOF
17712if ac_fn_c_try_compile "$LINENO"; then :
17713  xorg_cv_cc_flag_unknown_warning_option=yes
17714else
17715  xorg_cv_cc_flag_unknown_warning_option=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718fi
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17722	CFLAGS="$xorg_testset_save_CFLAGS"
17723fi
17724
17725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17728	fi
17729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17733  $as_echo_n "(cached) " >&6
17734else
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737int i;
17738_ACEOF
17739if ac_fn_c_try_compile "$LINENO"; then :
17740  xorg_cv_cc_flag_unused_command_line_argument=yes
17741else
17742  xorg_cv_cc_flag_unused_command_line_argument=no
17743fi
17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745fi
17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17749	CFLAGS="$xorg_testset_save_CFLAGS"
17750fi
17751
17752found="no"
17753
17754	if test $found = "no" ; then
17755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17757		fi
17758
17759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17761		fi
17762
17763		CFLAGS="$CFLAGS -pedantic"
17764
17765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17766$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17767		cacheid=xorg_cv_cc_flag__pedantic
17768		if eval \${$cacheid+:} false; then :
17769  $as_echo_n "(cached) " >&6
17770else
17771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772/* end confdefs.h.  */
17773int i;
17774int
17775main ()
17776{
17777
17778  ;
17779  return 0;
17780}
17781_ACEOF
17782if ac_fn_c_try_link "$LINENO"; then :
17783  eval $cacheid=yes
17784else
17785  eval $cacheid=no
17786fi
17787rm -f core conftest.err conftest.$ac_objext \
17788    conftest$ac_exeext conftest.$ac_ext
17789fi
17790
17791
17792		CFLAGS="$xorg_testset_save_CFLAGS"
17793
17794		eval supported=\$$cacheid
17795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17796$as_echo "$supported" >&6; }
17797		if test "$supported" = "yes" ; then
17798			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17799			found="yes"
17800		fi
17801	fi
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817xorg_testset_save_CFLAGS="$CFLAGS"
17818
17819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17824  $as_echo_n "(cached) " >&6
17825else
17826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h.  */
17828int i;
17829_ACEOF
17830if ac_fn_c_try_compile "$LINENO"; then :
17831  xorg_cv_cc_flag_unknown_warning_option=yes
17832else
17833  xorg_cv_cc_flag_unknown_warning_option=no
17834fi
17835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836fi
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17840	CFLAGS="$xorg_testset_save_CFLAGS"
17841fi
17842
17843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17846	fi
17847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17851  $as_echo_n "(cached) " >&6
17852else
17853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854/* end confdefs.h.  */
17855int i;
17856_ACEOF
17857if ac_fn_c_try_compile "$LINENO"; then :
17858  xorg_cv_cc_flag_unused_command_line_argument=yes
17859else
17860  xorg_cv_cc_flag_unused_command_line_argument=no
17861fi
17862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863fi
17864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17867	CFLAGS="$xorg_testset_save_CFLAGS"
17868fi
17869
17870found="no"
17871
17872	if test $found = "no" ; then
17873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17875		fi
17876
17877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17879		fi
17880
17881		CFLAGS="$CFLAGS -Werror"
17882
17883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17884$as_echo_n "checking if $CC supports -Werror... " >&6; }
17885		cacheid=xorg_cv_cc_flag__Werror
17886		if eval \${$cacheid+:} false; then :
17887  $as_echo_n "(cached) " >&6
17888else
17889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891int i;
17892int
17893main ()
17894{
17895
17896  ;
17897  return 0;
17898}
17899_ACEOF
17900if ac_fn_c_try_link "$LINENO"; then :
17901  eval $cacheid=yes
17902else
17903  eval $cacheid=no
17904fi
17905rm -f core conftest.err conftest.$ac_objext \
17906    conftest$ac_exeext conftest.$ac_ext
17907fi
17908
17909
17910		CFLAGS="$xorg_testset_save_CFLAGS"
17911
17912		eval supported=\$$cacheid
17913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17914$as_echo "$supported" >&6; }
17915		if test "$supported" = "yes" ; then
17916			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17917			found="yes"
17918		fi
17919	fi
17920
17921	if test $found = "no" ; then
17922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17924		fi
17925
17926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17928		fi
17929
17930		CFLAGS="$CFLAGS -errwarn"
17931
17932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17933$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17934		cacheid=xorg_cv_cc_flag__errwarn
17935		if eval \${$cacheid+:} false; then :
17936  $as_echo_n "(cached) " >&6
17937else
17938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940int i;
17941int
17942main ()
17943{
17944
17945  ;
17946  return 0;
17947}
17948_ACEOF
17949if ac_fn_c_try_link "$LINENO"; then :
17950  eval $cacheid=yes
17951else
17952  eval $cacheid=no
17953fi
17954rm -f core conftest.err conftest.$ac_objext \
17955    conftest$ac_exeext conftest.$ac_ext
17956fi
17957
17958
17959		CFLAGS="$xorg_testset_save_CFLAGS"
17960
17961		eval supported=\$$cacheid
17962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17963$as_echo "$supported" >&6; }
17964		if test "$supported" = "yes" ; then
17965			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17966			found="yes"
17967		fi
17968	fi
17969
17970
17971
17972# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17973# activate it with -Werror, so we add it here explicitly.
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987xorg_testset_save_CFLAGS="$CFLAGS"
17988
17989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17994  $as_echo_n "(cached) " >&6
17995else
17996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997/* end confdefs.h.  */
17998int i;
17999_ACEOF
18000if ac_fn_c_try_compile "$LINENO"; then :
18001  xorg_cv_cc_flag_unknown_warning_option=yes
18002else
18003  xorg_cv_cc_flag_unknown_warning_option=no
18004fi
18005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006fi
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18010	CFLAGS="$xorg_testset_save_CFLAGS"
18011fi
18012
18013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18016	fi
18017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18021  $as_echo_n "(cached) " >&6
18022else
18023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024/* end confdefs.h.  */
18025int i;
18026_ACEOF
18027if ac_fn_c_try_compile "$LINENO"; then :
18028  xorg_cv_cc_flag_unused_command_line_argument=yes
18029else
18030  xorg_cv_cc_flag_unused_command_line_argument=no
18031fi
18032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18033fi
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18037	CFLAGS="$xorg_testset_save_CFLAGS"
18038fi
18039
18040found="no"
18041
18042	if test $found = "no" ; then
18043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18045		fi
18046
18047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18049		fi
18050
18051		CFLAGS="$CFLAGS -Werror=attributes"
18052
18053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18054$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18055		cacheid=xorg_cv_cc_flag__Werror_attributes
18056		if eval \${$cacheid+:} false; then :
18057  $as_echo_n "(cached) " >&6
18058else
18059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060/* end confdefs.h.  */
18061int i;
18062int
18063main ()
18064{
18065
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070if ac_fn_c_try_link "$LINENO"; then :
18071  eval $cacheid=yes
18072else
18073  eval $cacheid=no
18074fi
18075rm -f core conftest.err conftest.$ac_objext \
18076    conftest$ac_exeext conftest.$ac_ext
18077fi
18078
18079
18080		CFLAGS="$xorg_testset_save_CFLAGS"
18081
18082		eval supported=\$$cacheid
18083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18084$as_echo "$supported" >&6; }
18085		if test "$supported" = "yes" ; then
18086			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18087			found="yes"
18088		fi
18089	fi
18090
18091
18092
18093if test "x$STRICT_COMPILE" = "xyes"; then
18094    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18095    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18096fi
18097
18098
18099
18100
18101
18102
18103cat >>confdefs.h <<_ACEOF
18104#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18105_ACEOF
18106
18107	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18108	if test "x$PVM" = "x"; then
18109		PVM="0"
18110	fi
18111
18112cat >>confdefs.h <<_ACEOF
18113#define PACKAGE_VERSION_MINOR $PVM
18114_ACEOF
18115
18116	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18117	if test "x$PVP" = "x"; then
18118		PVP="0"
18119	fi
18120
18121cat >>confdefs.h <<_ACEOF
18122#define PACKAGE_VERSION_PATCHLEVEL $PVP
18123_ACEOF
18124
18125
18126
18127CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18128mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18129|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18130touch \$(top_srcdir)/ChangeLog; \
18131echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18132
18133
18134
18135
18136macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18137INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18138mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18139|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18140touch \$(top_srcdir)/INSTALL; \
18141echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18142
18143
18144
18145
18146
18147
18148case $host_os in
18149    solaris*)
18150        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18151        # check for a man page file found in later versions that use
18152        # traditional section numbers instead
18153        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18154$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18155if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18156  $as_echo_n "(cached) " >&6
18157else
18158  test "$cross_compiling" = yes &&
18159  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18160if test -r "/usr/share/man/man7/attributes.7"; then
18161  ac_cv_file__usr_share_man_man7_attributes_7=yes
18162else
18163  ac_cv_file__usr_share_man_man7_attributes_7=no
18164fi
18165fi
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18167$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18168if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18169  SYSV_MAN_SECTIONS=false
18170else
18171  SYSV_MAN_SECTIONS=true
18172fi
18173
18174        ;;
18175    *) SYSV_MAN_SECTIONS=false ;;
18176esac
18177
18178if test x$APP_MAN_SUFFIX = x    ; then
18179    APP_MAN_SUFFIX=1
18180fi
18181if test x$APP_MAN_DIR = x    ; then
18182    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18183fi
18184
18185if test x$LIB_MAN_SUFFIX = x    ; then
18186    LIB_MAN_SUFFIX=3
18187fi
18188if test x$LIB_MAN_DIR = x    ; then
18189    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18190fi
18191
18192if test x$FILE_MAN_SUFFIX = x    ; then
18193    case $SYSV_MAN_SECTIONS in
18194	true)				FILE_MAN_SUFFIX=4  ;;
18195	*)				FILE_MAN_SUFFIX=5  ;;
18196    esac
18197fi
18198if test x$FILE_MAN_DIR = x    ; then
18199    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18200fi
18201
18202if test x$MISC_MAN_SUFFIX = x    ; then
18203    case $SYSV_MAN_SECTIONS in
18204	true)				MISC_MAN_SUFFIX=5  ;;
18205	*)				MISC_MAN_SUFFIX=7  ;;
18206    esac
18207fi
18208if test x$MISC_MAN_DIR = x    ; then
18209    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18210fi
18211
18212if test x$DRIVER_MAN_SUFFIX = x    ; then
18213    case $SYSV_MAN_SECTIONS in
18214	true)				DRIVER_MAN_SUFFIX=7  ;;
18215	*)				DRIVER_MAN_SUFFIX=4  ;;
18216    esac
18217fi
18218if test x$DRIVER_MAN_DIR = x    ; then
18219    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18220fi
18221
18222if test x$ADMIN_MAN_SUFFIX = x    ; then
18223    case $SYSV_MAN_SECTIONS in
18224	true)				ADMIN_MAN_SUFFIX=1m ;;
18225	*)				ADMIN_MAN_SUFFIX=8  ;;
18226    esac
18227fi
18228if test x$ADMIN_MAN_DIR = x    ; then
18229    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18230fi
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246XORG_MAN_PAGE="X Version 11"
18247
18248MAN_SUBSTS="\
18249	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18250	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18251	-e 's|__xservername__|Xorg|g' \
18252	-e 's|__xconfigfile__|xorg.conf|g' \
18253	-e 's|__projectroot__|\$(prefix)|g' \
18254	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18255	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18256	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18257	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18258	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18259	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18260	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18261
18262
18263
18264# Check whether --enable-silent-rules was given.
18265if test "${enable_silent_rules+set}" = set; then :
18266  enableval=$enable_silent_rules;
18267fi
18268
18269case $enable_silent_rules in # (((
18270  yes) AM_DEFAULT_VERBOSITY=0;;
18271   no) AM_DEFAULT_VERBOSITY=1;;
18272    *) AM_DEFAULT_VERBOSITY=0;;
18273esac
18274am_make=${MAKE-make}
18275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18276$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18277if ${am_cv_make_support_nested_variables+:} false; then :
18278  $as_echo_n "(cached) " >&6
18279else
18280  if $as_echo 'TRUE=$(BAR$(V))
18281BAR0=false
18282BAR1=true
18283V=1
18284am__doit:
18285	@$(TRUE)
18286.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18287  am_cv_make_support_nested_variables=yes
18288else
18289  am_cv_make_support_nested_variables=no
18290fi
18291fi
18292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18293$as_echo "$am_cv_make_support_nested_variables" >&6; }
18294if test $am_cv_make_support_nested_variables = yes; then
18295    AM_V='$(V)'
18296  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18297else
18298  AM_V=$AM_DEFAULT_VERBOSITY
18299  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18300fi
18301AM_BACKSLASH='\'
18302
18303
18304
18305# Check whether --enable-malloc0returnsnull was given.
18306if test "${enable_malloc0returnsnull+set}" = set; then :
18307  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18308else
18309  MALLOC_ZERO_RETURNS_NULL=auto
18310fi
18311
18312
18313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18314$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18315if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18316if ${xorg_cv_malloc0_returns_null+:} false; then :
18317  $as_echo_n "(cached) " >&6
18318else
18319  if test "$cross_compiling" = yes; then :
18320  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18322as_fn_error $? "cannot run test program while cross compiling
18323See \`config.log' for more details" "$LINENO" 5; }
18324else
18325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326/* end confdefs.h.  */
18327
18328#include <stdlib.h>
18329
18330int
18331main ()
18332{
18333
18334    char *m0, *r0, *c0, *p;
18335    m0 = malloc(0);
18336    p = malloc(10);
18337    r0 = realloc(p,0);
18338    c0 = calloc(0,10);
18339    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18340
18341  ;
18342  return 0;
18343}
18344_ACEOF
18345if ac_fn_c_try_run "$LINENO"; then :
18346  xorg_cv_malloc0_returns_null=yes
18347else
18348  xorg_cv_malloc0_returns_null=no
18349fi
18350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18351  conftest.$ac_objext conftest.beam conftest.$ac_ext
18352fi
18353
18354fi
18355
18356MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18357fi
18358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18359$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18360
18361if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18362	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18363	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18364	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18365else
18366	MALLOC_ZERO_CFLAGS=""
18367	XMALLOC_ZERO_CFLAGS=""
18368	XTMALLOC_ZERO_CFLAGS=""
18369fi
18370
18371
18372
18373
18374
18375
18376# Obtain compiler/linker options for depedencies
18377
18378pkg_failed=no
18379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
18380$as_echo_n "checking for XVMC... " >&6; }
18381
18382if test -n "$XVMC_CFLAGS"; then
18383    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
18384 elif test -n "$PKG_CONFIG"; then
18385    if test -n "$PKG_CONFIG" && \
18386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
18387  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
18388  ac_status=$?
18389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18390  test $ac_status = 0; }; then
18391  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
18392		      test "x$?" != "x0" && pkg_failed=yes
18393else
18394  pkg_failed=yes
18395fi
18396 else
18397    pkg_failed=untried
18398fi
18399if test -n "$XVMC_LIBS"; then
18400    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
18401 elif test -n "$PKG_CONFIG"; then
18402    if test -n "$PKG_CONFIG" && \
18403    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
18404  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
18405  ac_status=$?
18406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18407  test $ac_status = 0; }; then
18408  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
18409		      test "x$?" != "x0" && pkg_failed=yes
18410else
18411  pkg_failed=yes
18412fi
18413 else
18414    pkg_failed=untried
18415fi
18416
18417
18418
18419if test $pkg_failed = yes; then
18420   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421$as_echo "no" >&6; }
18422
18423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18424        _pkg_short_errors_supported=yes
18425else
18426        _pkg_short_errors_supported=no
18427fi
18428        if test $_pkg_short_errors_supported = yes; then
18429	        XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
18430        else
18431	        XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
18432        fi
18433	# Put the nasty error message in config.log where it belongs
18434	echo "$XVMC_PKG_ERRORS" >&5
18435
18436	as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met:
18437
18438$XVMC_PKG_ERRORS
18439
18440Consider adjusting the PKG_CONFIG_PATH environment variable if you
18441installed software in a non-standard prefix.
18442
18443Alternatively, you may set the environment variables XVMC_CFLAGS
18444and XVMC_LIBS to avoid the need to call pkg-config.
18445See the pkg-config man page for more details." "$LINENO" 5
18446elif test $pkg_failed = untried; then
18447     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448$as_echo "no" >&6; }
18449	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18451as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18452is in your PATH or set the PKG_CONFIG environment variable to the full
18453path to pkg-config.
18454
18455Alternatively, you may set the environment variables XVMC_CFLAGS
18456and XVMC_LIBS to avoid the need to call pkg-config.
18457See the pkg-config man page for more details.
18458
18459To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18460See \`config.log' for more details" "$LINENO" 5; }
18461else
18462	XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
18463	XVMC_LIBS=$pkg_cv_XVMC_LIBS
18464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18465$as_echo "yes" >&6; }
18466
18467fi
18468
18469# Checks for library functions.
18470for ac_func in shmat
18471do :
18472  ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18473if test "x$ac_cv_func_shmat" = xyes; then :
18474  cat >>confdefs.h <<_ACEOF
18475#define HAVE_SHMAT 1
18476_ACEOF
18477
18478fi
18479done
18480
18481
18482# Check to see if dlopen is in default libraries (like Solaris, which
18483# has it in libc), or if libdl is needed to get it.
18484ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18485if test "x$ac_cv_func_dlopen" = xyes; then :
18486
18487else
18488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18489$as_echo_n "checking for dlopen in -ldl... " >&6; }
18490if ${ac_cv_lib_dl_dlopen+:} false; then :
18491  $as_echo_n "(cached) " >&6
18492else
18493  ac_check_lib_save_LIBS=$LIBS
18494LIBS="-ldl  $LIBS"
18495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497
18498/* Override any GCC internal prototype to avoid an error.
18499   Use char because int might match the return type of a GCC
18500   builtin and then its argument prototype would still apply.  */
18501#ifdef __cplusplus
18502extern "C"
18503#endif
18504char dlopen ();
18505int
18506main ()
18507{
18508return dlopen ();
18509  ;
18510  return 0;
18511}
18512_ACEOF
18513if ac_fn_c_try_link "$LINENO"; then :
18514  ac_cv_lib_dl_dlopen=yes
18515else
18516  ac_cv_lib_dl_dlopen=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext \
18519    conftest$ac_exeext conftest.$ac_ext
18520LIBS=$ac_check_lib_save_LIBS
18521fi
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18523$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18524if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18525  DLOPEN_LIBS="-ldl"
18526fi
18527
18528fi
18529
18530
18531
18532# Allow checking code with lint, sparse, etc.
18533
18534
18535
18536
18537
18538# Check whether --with-lint was given.
18539if test "${with_lint+set}" = set; then :
18540  withval=$with_lint; use_lint=$withval
18541else
18542  use_lint=no
18543fi
18544
18545
18546# Obtain platform specific info like program name and options
18547# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18548case $host_os in
18549  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18550	lint_name=splint
18551	lint_options="-badflag"
18552	;;
18553  *freebsd* | *netbsd*)
18554	lint_name=lint
18555	lint_options="-u -b"
18556	;;
18557  *solaris*)
18558	lint_name=lint
18559	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18560	;;
18561esac
18562
18563# Test for the presence of the program (either guessed by the code or spelled out by the user)
18564if test "x$use_lint" = x"yes" ; then
18565   # Extract the first word of "$lint_name", so it can be a program name with args.
18566set dummy $lint_name; ac_word=$2
18567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18568$as_echo_n "checking for $ac_word... " >&6; }
18569if ${ac_cv_path_LINT+:} false; then :
18570  $as_echo_n "(cached) " >&6
18571else
18572  case $LINT in
18573  [\\/]* | ?:[\\/]*)
18574  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18575  ;;
18576  *)
18577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578for as_dir in $PATH
18579do
18580  IFS=$as_save_IFS
18581  test -z "$as_dir" && as_dir=.
18582    for ac_exec_ext in '' $ac_executable_extensions; do
18583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18584    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18586    break 2
18587  fi
18588done
18589  done
18590IFS=$as_save_IFS
18591
18592  ;;
18593esac
18594fi
18595LINT=$ac_cv_path_LINT
18596if test -n "$LINT"; then
18597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18598$as_echo "$LINT" >&6; }
18599else
18600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601$as_echo "no" >&6; }
18602fi
18603
18604
18605   if test "x$LINT" = "x"; then
18606        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18607   fi
18608elif test "x$use_lint" = x"no" ; then
18609   if test "x$LINT" != "x"; then
18610      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18611$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18612   fi
18613else
18614   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18615fi
18616
18617# User supplied flags override default flags
18618if test "x$LINT_FLAGS" != "x"; then
18619   lint_options=$LINT_FLAGS
18620fi
18621
18622LINT_FLAGS=$lint_options
18623
18624 if test "x$LINT" != x; then
18625  LINT_TRUE=
18626  LINT_FALSE='#'
18627else
18628  LINT_TRUE='#'
18629  LINT_FALSE=
18630fi
18631
18632
18633
18634LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
18635
18636ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc xvmc-wrapper.pc"
18637
18638cat >confcache <<\_ACEOF
18639# This file is a shell script that caches the results of configure
18640# tests run on this system so they can be shared between configure
18641# scripts and configure runs, see configure's option --config-cache.
18642# It is not useful on other systems.  If it contains results you don't
18643# want to keep, you may remove or edit it.
18644#
18645# config.status only pays attention to the cache file if you give it
18646# the --recheck option to rerun configure.
18647#
18648# `ac_cv_env_foo' variables (set or unset) will be overridden when
18649# loading this file, other *unset* `ac_cv_foo' will be assigned the
18650# following values.
18651
18652_ACEOF
18653
18654# The following way of writing the cache mishandles newlines in values,
18655# but we know of no workaround that is simple, portable, and efficient.
18656# So, we kill variables containing newlines.
18657# Ultrix sh set writes to stderr and can't be redirected directly,
18658# and sets the high bit in the cache file unless we assign to the vars.
18659(
18660  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18661    eval ac_val=\$$ac_var
18662    case $ac_val in #(
18663    *${as_nl}*)
18664      case $ac_var in #(
18665      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18666$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18667      esac
18668      case $ac_var in #(
18669      _ | IFS | as_nl) ;; #(
18670      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18671      *) { eval $ac_var=; unset $ac_var;} ;;
18672      esac ;;
18673    esac
18674  done
18675
18676  (set) 2>&1 |
18677    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18678    *${as_nl}ac_space=\ *)
18679      # `set' does not quote correctly, so add quotes: double-quote
18680      # substitution turns \\\\ into \\, and sed turns \\ into \.
18681      sed -n \
18682	"s/'/'\\\\''/g;
18683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18684      ;; #(
18685    *)
18686      # `set' quotes correctly as required by POSIX, so do not add quotes.
18687      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18688      ;;
18689    esac |
18690    sort
18691) |
18692  sed '
18693     /^ac_cv_env_/b end
18694     t clear
18695     :clear
18696     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18697     t end
18698     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18699     :end' >>confcache
18700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18701  if test -w "$cache_file"; then
18702    if test "x$cache_file" != "x/dev/null"; then
18703      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18704$as_echo "$as_me: updating cache $cache_file" >&6;}
18705      if test ! -f "$cache_file" || test -h "$cache_file"; then
18706	cat confcache >"$cache_file"
18707      else
18708        case $cache_file in #(
18709        */* | ?:*)
18710	  mv -f confcache "$cache_file"$$ &&
18711	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18712        *)
18713	  mv -f confcache "$cache_file" ;;
18714	esac
18715      fi
18716    fi
18717  else
18718    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18720  fi
18721fi
18722rm -f confcache
18723
18724test "x$prefix" = xNONE && prefix=$ac_default_prefix
18725# Let make expand exec_prefix.
18726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18727
18728DEFS=-DHAVE_CONFIG_H
18729
18730ac_libobjs=
18731ac_ltlibobjs=
18732U=
18733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18734  # 1. Remove the extension, and $U if already installed.
18735  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18736  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18737  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18738  #    will be set to the directory where LIBOBJS objects are built.
18739  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18740  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18741done
18742LIBOBJS=$ac_libobjs
18743
18744LTLIBOBJS=$ac_ltlibobjs
18745
18746
18747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18748$as_echo_n "checking that generated files are newer than configure... " >&6; }
18749   if test -n "$am_sleep_pid"; then
18750     # Hide warnings about reused PIDs.
18751     wait $am_sleep_pid 2>/dev/null
18752   fi
18753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18754$as_echo "done" >&6; }
18755 if test -n "$EXEEXT"; then
18756  am__EXEEXT_TRUE=
18757  am__EXEEXT_FALSE='#'
18758else
18759  am__EXEEXT_TRUE='#'
18760  am__EXEEXT_FALSE=
18761fi
18762
18763if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18764  as_fn_error $? "conditional \"AMDEP\" was never defined.
18765Usually this means the macro was only invoked conditionally." "$LINENO" 5
18766fi
18767if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18768  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18769Usually this means the macro was only invoked conditionally." "$LINENO" 5
18770fi
18771if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18772  as_fn_error $? "conditional \"LINT\" was never defined.
18773Usually this means the macro was only invoked conditionally." "$LINENO" 5
18774fi
18775
18776: "${CONFIG_STATUS=./config.status}"
18777ac_write_fail=0
18778ac_clean_files_save=$ac_clean_files
18779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18780{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18781$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18782as_write_fail=0
18783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18784#! $SHELL
18785# Generated by $as_me.
18786# Run this file to recreate the current configuration.
18787# Compiler output produced by configure, useful for debugging
18788# configure, is in config.log if it exists.
18789
18790debug=false
18791ac_cs_recheck=false
18792ac_cs_silent=false
18793
18794SHELL=\${CONFIG_SHELL-$SHELL}
18795export SHELL
18796_ASEOF
18797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18798## -------------------- ##
18799## M4sh Initialization. ##
18800## -------------------- ##
18801
18802# Be more Bourne compatible
18803DUALCASE=1; export DUALCASE # for MKS sh
18804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18805  emulate sh
18806  NULLCMD=:
18807  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18808  # is contrary to our usage.  Disable this feature.
18809  alias -g '${1+"$@"}'='"$@"'
18810  setopt NO_GLOB_SUBST
18811else
18812  case `(set -o) 2>/dev/null` in #(
18813  *posix*) :
18814    set -o posix ;; #(
18815  *) :
18816     ;;
18817esac
18818fi
18819
18820
18821as_nl='
18822'
18823export as_nl
18824# Printing a long string crashes Solaris 7 /usr/bin/printf.
18825as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18828# Prefer a ksh shell builtin over an external printf program on Solaris,
18829# but without wasting forks for bash or zsh.
18830if test -z "$BASH_VERSION$ZSH_VERSION" \
18831    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18832  as_echo='print -r --'
18833  as_echo_n='print -rn --'
18834elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18835  as_echo='printf %s\n'
18836  as_echo_n='printf %s'
18837else
18838  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18839    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18840    as_echo_n='/usr/ucb/echo -n'
18841  else
18842    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18843    as_echo_n_body='eval
18844      arg=$1;
18845      case $arg in #(
18846      *"$as_nl"*)
18847	expr "X$arg" : "X\\(.*\\)$as_nl";
18848	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18849      esac;
18850      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18851    '
18852    export as_echo_n_body
18853    as_echo_n='sh -c $as_echo_n_body as_echo'
18854  fi
18855  export as_echo_body
18856  as_echo='sh -c $as_echo_body as_echo'
18857fi
18858
18859# The user is always right.
18860if test "${PATH_SEPARATOR+set}" != set; then
18861  PATH_SEPARATOR=:
18862  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18863    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18864      PATH_SEPARATOR=';'
18865  }
18866fi
18867
18868
18869# IFS
18870# We need space, tab and new line, in precisely that order.  Quoting is
18871# there to prevent editors from complaining about space-tab.
18872# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18873# splitting by setting IFS to empty value.)
18874IFS=" ""	$as_nl"
18875
18876# Find who we are.  Look in the path if we contain no directory separator.
18877as_myself=
18878case $0 in #((
18879  *[\\/]* ) as_myself=$0 ;;
18880  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18881for as_dir in $PATH
18882do
18883  IFS=$as_save_IFS
18884  test -z "$as_dir" && as_dir=.
18885    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18886  done
18887IFS=$as_save_IFS
18888
18889     ;;
18890esac
18891# We did not find ourselves, most probably we were run as `sh COMMAND'
18892# in which case we are not to be found in the path.
18893if test "x$as_myself" = x; then
18894  as_myself=$0
18895fi
18896if test ! -f "$as_myself"; then
18897  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18898  exit 1
18899fi
18900
18901# Unset variables that we do not need and which cause bugs (e.g. in
18902# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18903# suppresses any "Segmentation fault" message there.  '((' could
18904# trigger a bug in pdksh 5.2.14.
18905for as_var in BASH_ENV ENV MAIL MAILPATH
18906do eval test x\${$as_var+set} = xset \
18907  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18908done
18909PS1='$ '
18910PS2='> '
18911PS4='+ '
18912
18913# NLS nuisances.
18914LC_ALL=C
18915export LC_ALL
18916LANGUAGE=C
18917export LANGUAGE
18918
18919# CDPATH.
18920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18921
18922
18923# as_fn_error STATUS ERROR [LINENO LOG_FD]
18924# ----------------------------------------
18925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18927# script with STATUS, using 1 if that was 0.
18928as_fn_error ()
18929{
18930  as_status=$1; test $as_status -eq 0 && as_status=1
18931  if test "$4"; then
18932    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18933    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18934  fi
18935  $as_echo "$as_me: error: $2" >&2
18936  as_fn_exit $as_status
18937} # as_fn_error
18938
18939
18940# as_fn_set_status STATUS
18941# -----------------------
18942# Set $? to STATUS, without forking.
18943as_fn_set_status ()
18944{
18945  return $1
18946} # as_fn_set_status
18947
18948# as_fn_exit STATUS
18949# -----------------
18950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18951as_fn_exit ()
18952{
18953  set +e
18954  as_fn_set_status $1
18955  exit $1
18956} # as_fn_exit
18957
18958# as_fn_unset VAR
18959# ---------------
18960# Portably unset VAR.
18961as_fn_unset ()
18962{
18963  { eval $1=; unset $1;}
18964}
18965as_unset=as_fn_unset
18966# as_fn_append VAR VALUE
18967# ----------------------
18968# Append the text in VALUE to the end of the definition contained in VAR. Take
18969# advantage of any shell optimizations that allow amortized linear growth over
18970# repeated appends, instead of the typical quadratic growth present in naive
18971# implementations.
18972if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18973  eval 'as_fn_append ()
18974  {
18975    eval $1+=\$2
18976  }'
18977else
18978  as_fn_append ()
18979  {
18980    eval $1=\$$1\$2
18981  }
18982fi # as_fn_append
18983
18984# as_fn_arith ARG...
18985# ------------------
18986# Perform arithmetic evaluation on the ARGs, and store the result in the
18987# global $as_val. Take advantage of shells that can avoid forks. The arguments
18988# must be portable across $(()) and expr.
18989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18990  eval 'as_fn_arith ()
18991  {
18992    as_val=$(( $* ))
18993  }'
18994else
18995  as_fn_arith ()
18996  {
18997    as_val=`expr "$@" || test $? -eq 1`
18998  }
18999fi # as_fn_arith
19000
19001
19002if expr a : '\(a\)' >/dev/null 2>&1 &&
19003   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19004  as_expr=expr
19005else
19006  as_expr=false
19007fi
19008
19009if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19010  as_basename=basename
19011else
19012  as_basename=false
19013fi
19014
19015if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19016  as_dirname=dirname
19017else
19018  as_dirname=false
19019fi
19020
19021as_me=`$as_basename -- "$0" ||
19022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19023	 X"$0" : 'X\(//\)$' \| \
19024	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19025$as_echo X/"$0" |
19026    sed '/^.*\/\([^/][^/]*\)\/*$/{
19027	    s//\1/
19028	    q
19029	  }
19030	  /^X\/\(\/\/\)$/{
19031	    s//\1/
19032	    q
19033	  }
19034	  /^X\/\(\/\).*/{
19035	    s//\1/
19036	    q
19037	  }
19038	  s/.*/./; q'`
19039
19040# Avoid depending upon Character Ranges.
19041as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19042as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19043as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19044as_cr_digits='0123456789'
19045as_cr_alnum=$as_cr_Letters$as_cr_digits
19046
19047ECHO_C= ECHO_N= ECHO_T=
19048case `echo -n x` in #(((((
19049-n*)
19050  case `echo 'xy\c'` in
19051  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19052  xy)  ECHO_C='\c';;
19053  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19054       ECHO_T='	';;
19055  esac;;
19056*)
19057  ECHO_N='-n';;
19058esac
19059
19060rm -f conf$$ conf$$.exe conf$$.file
19061if test -d conf$$.dir; then
19062  rm -f conf$$.dir/conf$$.file
19063else
19064  rm -f conf$$.dir
19065  mkdir conf$$.dir 2>/dev/null
19066fi
19067if (echo >conf$$.file) 2>/dev/null; then
19068  if ln -s conf$$.file conf$$ 2>/dev/null; then
19069    as_ln_s='ln -s'
19070    # ... but there are two gotchas:
19071    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19072    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19073    # In both cases, we have to default to `cp -pR'.
19074    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19075      as_ln_s='cp -pR'
19076  elif ln conf$$.file conf$$ 2>/dev/null; then
19077    as_ln_s=ln
19078  else
19079    as_ln_s='cp -pR'
19080  fi
19081else
19082  as_ln_s='cp -pR'
19083fi
19084rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19085rmdir conf$$.dir 2>/dev/null
19086
19087
19088# as_fn_mkdir_p
19089# -------------
19090# Create "$as_dir" as a directory, including parents if necessary.
19091as_fn_mkdir_p ()
19092{
19093
19094  case $as_dir in #(
19095  -*) as_dir=./$as_dir;;
19096  esac
19097  test -d "$as_dir" || eval $as_mkdir_p || {
19098    as_dirs=
19099    while :; do
19100      case $as_dir in #(
19101      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19102      *) as_qdir=$as_dir;;
19103      esac
19104      as_dirs="'$as_qdir' $as_dirs"
19105      as_dir=`$as_dirname -- "$as_dir" ||
19106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19107	 X"$as_dir" : 'X\(//\)[^/]' \| \
19108	 X"$as_dir" : 'X\(//\)$' \| \
19109	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19110$as_echo X"$as_dir" |
19111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19112	    s//\1/
19113	    q
19114	  }
19115	  /^X\(\/\/\)[^/].*/{
19116	    s//\1/
19117	    q
19118	  }
19119	  /^X\(\/\/\)$/{
19120	    s//\1/
19121	    q
19122	  }
19123	  /^X\(\/\).*/{
19124	    s//\1/
19125	    q
19126	  }
19127	  s/.*/./; q'`
19128      test -d "$as_dir" && break
19129    done
19130    test -z "$as_dirs" || eval "mkdir $as_dirs"
19131  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19132
19133
19134} # as_fn_mkdir_p
19135if mkdir -p . 2>/dev/null; then
19136  as_mkdir_p='mkdir -p "$as_dir"'
19137else
19138  test -d ./-p && rmdir ./-p
19139  as_mkdir_p=false
19140fi
19141
19142
19143# as_fn_executable_p FILE
19144# -----------------------
19145# Test if FILE is an executable regular file.
19146as_fn_executable_p ()
19147{
19148  test -f "$1" && test -x "$1"
19149} # as_fn_executable_p
19150as_test_x='test -x'
19151as_executable_p=as_fn_executable_p
19152
19153# Sed expression to map a string onto a valid CPP name.
19154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19155
19156# Sed expression to map a string onto a valid variable name.
19157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19158
19159
19160exec 6>&1
19161## ----------------------------------- ##
19162## Main body of $CONFIG_STATUS script. ##
19163## ----------------------------------- ##
19164_ASEOF
19165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19166
19167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168# Save the log message, to keep $0 and so on meaningful, and to
19169# report actual input values of CONFIG_FILES etc. instead of their
19170# values after options handling.
19171ac_log="
19172This file was extended by libXvMC $as_me 1.0.12, which was
19173generated by GNU Autoconf 2.69.  Invocation command line was
19174
19175  CONFIG_FILES    = $CONFIG_FILES
19176  CONFIG_HEADERS  = $CONFIG_HEADERS
19177  CONFIG_LINKS    = $CONFIG_LINKS
19178  CONFIG_COMMANDS = $CONFIG_COMMANDS
19179  $ $0 $@
19180
19181on `(hostname || uname -n) 2>/dev/null | sed 1q`
19182"
19183
19184_ACEOF
19185
19186case $ac_config_files in *"
19187"*) set x $ac_config_files; shift; ac_config_files=$*;;
19188esac
19189
19190case $ac_config_headers in *"
19191"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19192esac
19193
19194
19195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196# Files that config.status was made for.
19197config_files="$ac_config_files"
19198config_headers="$ac_config_headers"
19199config_commands="$ac_config_commands"
19200
19201_ACEOF
19202
19203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204ac_cs_usage="\
19205\`$as_me' instantiates files and other configuration actions
19206from templates according to the current configuration.  Unless the files
19207and actions are specified as TAGs, all are instantiated by default.
19208
19209Usage: $0 [OPTION]... [TAG]...
19210
19211  -h, --help       print this help, then exit
19212  -V, --version    print version number and configuration settings, then exit
19213      --config     print configuration, then exit
19214  -q, --quiet, --silent
19215                   do not print progress messages
19216  -d, --debug      don't remove temporary files
19217      --recheck    update $as_me by reconfiguring in the same conditions
19218      --file=FILE[:TEMPLATE]
19219                   instantiate the configuration file FILE
19220      --header=FILE[:TEMPLATE]
19221                   instantiate the configuration header FILE
19222
19223Configuration files:
19224$config_files
19225
19226Configuration headers:
19227$config_headers
19228
19229Configuration commands:
19230$config_commands
19231
19232Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>."
19233
19234_ACEOF
19235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19236ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19237ac_cs_version="\\
19238libXvMC config.status 1.0.12
19239configured by $0, generated by GNU Autoconf 2.69,
19240  with options \\"\$ac_cs_config\\"
19241
19242Copyright (C) 2012 Free Software Foundation, Inc.
19243This config.status script is free software; the Free Software Foundation
19244gives unlimited permission to copy, distribute and modify it."
19245
19246ac_pwd='$ac_pwd'
19247srcdir='$srcdir'
19248INSTALL='$INSTALL'
19249MKDIR_P='$MKDIR_P'
19250AWK='$AWK'
19251test -n "\$AWK" || AWK=awk
19252_ACEOF
19253
19254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19255# The default lists apply if the user does not specify any file.
19256ac_need_defaults=:
19257while test $# != 0
19258do
19259  case $1 in
19260  --*=?*)
19261    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19262    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19263    ac_shift=:
19264    ;;
19265  --*=)
19266    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19267    ac_optarg=
19268    ac_shift=:
19269    ;;
19270  *)
19271    ac_option=$1
19272    ac_optarg=$2
19273    ac_shift=shift
19274    ;;
19275  esac
19276
19277  case $ac_option in
19278  # Handling of the options.
19279  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19280    ac_cs_recheck=: ;;
19281  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19282    $as_echo "$ac_cs_version"; exit ;;
19283  --config | --confi | --conf | --con | --co | --c )
19284    $as_echo "$ac_cs_config"; exit ;;
19285  --debug | --debu | --deb | --de | --d | -d )
19286    debug=: ;;
19287  --file | --fil | --fi | --f )
19288    $ac_shift
19289    case $ac_optarg in
19290    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19291    '') as_fn_error $? "missing file argument" ;;
19292    esac
19293    as_fn_append CONFIG_FILES " '$ac_optarg'"
19294    ac_need_defaults=false;;
19295  --header | --heade | --head | --hea )
19296    $ac_shift
19297    case $ac_optarg in
19298    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19299    esac
19300    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19301    ac_need_defaults=false;;
19302  --he | --h)
19303    # Conflict between --help and --header
19304    as_fn_error $? "ambiguous option: \`$1'
19305Try \`$0 --help' for more information.";;
19306  --help | --hel | -h )
19307    $as_echo "$ac_cs_usage"; exit ;;
19308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19309  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19310    ac_cs_silent=: ;;
19311
19312  # This is an error.
19313  -*) as_fn_error $? "unrecognized option: \`$1'
19314Try \`$0 --help' for more information." ;;
19315
19316  *) as_fn_append ac_config_targets " $1"
19317     ac_need_defaults=false ;;
19318
19319  esac
19320  shift
19321done
19322
19323ac_configure_extra_args=
19324
19325if $ac_cs_silent; then
19326  exec 6>/dev/null
19327  ac_configure_extra_args="$ac_configure_extra_args --silent"
19328fi
19329
19330_ACEOF
19331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19332if \$ac_cs_recheck; then
19333  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19334  shift
19335  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19336  CONFIG_SHELL='$SHELL'
19337  export CONFIG_SHELL
19338  exec "\$@"
19339fi
19340
19341_ACEOF
19342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19343exec 5>>config.log
19344{
19345  echo
19346  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19347## Running $as_me. ##
19348_ASBOX
19349  $as_echo "$ac_log"
19350} >&5
19351
19352_ACEOF
19353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19354#
19355# INIT-COMMANDS
19356#
19357AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19358
19359
19360# The HP-UX ksh and POSIX shell print the target directory to stdout
19361# if CDPATH is set.
19362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19363
19364sed_quote_subst='$sed_quote_subst'
19365double_quote_subst='$double_quote_subst'
19366delay_variable_subst='$delay_variable_subst'
19367macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19368macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19370enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19371pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19372enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19373shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19374SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19375ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19376PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19377host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19378host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19379host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19380build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19381build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19382build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19383SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19384Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19385GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19386EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19387FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19388LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19389NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19390LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19391max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19392ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19393exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19394lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19395lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19396lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19397lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19398lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19399reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19400reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19401OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19402deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19403file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19404file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19405want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19406DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19407sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19408AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19409AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19410archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19411STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19412RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19413old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19414old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19415old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19416lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19417CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19418CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19419compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19420GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19421lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19422lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19423lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19424lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19425lt_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"`'
19426lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19427nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19428lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19429lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19430objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19431MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19432lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19433lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19434lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19435lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19436lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19437need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19438MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19439DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19440NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19441LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19442OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19443OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19444libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19445shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19446extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19447archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19448enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19449export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19450whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19451compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19452old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19453old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19454archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19455archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19456module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19457module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19458with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19459allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19460no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19461hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19462hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19463hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19464hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19465hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19466hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19467hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19468inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19469link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19470always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19471export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19472exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19473include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19474prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19475postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19476file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19477variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19478need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19479need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19480version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19481runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19482shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19483shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19484libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19485library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19486soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19487install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19488postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19489postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19490finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19491finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19492hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19493sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19494configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19495configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19496hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19497enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19498enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19499enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19500old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19501striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19502
19503LTCC='$LTCC'
19504LTCFLAGS='$LTCFLAGS'
19505compiler='$compiler_DEFAULT'
19506
19507# A function that is used when there is no print builtin or printf.
19508func_fallback_echo ()
19509{
19510  eval 'cat <<_LTECHO_EOF
19511\$1
19512_LTECHO_EOF'
19513}
19514
19515# Quote evaled strings.
19516for var in SHELL \
19517ECHO \
19518PATH_SEPARATOR \
19519SED \
19520GREP \
19521EGREP \
19522FGREP \
19523LD \
19524NM \
19525LN_S \
19526lt_SP2NL \
19527lt_NL2SP \
19528reload_flag \
19529OBJDUMP \
19530deplibs_check_method \
19531file_magic_cmd \
19532file_magic_glob \
19533want_nocaseglob \
19534DLLTOOL \
19535sharedlib_from_linklib_cmd \
19536AR \
19537AR_FLAGS \
19538archiver_list_spec \
19539STRIP \
19540RANLIB \
19541CC \
19542CFLAGS \
19543compiler \
19544lt_cv_sys_global_symbol_pipe \
19545lt_cv_sys_global_symbol_to_cdecl \
19546lt_cv_sys_global_symbol_to_import \
19547lt_cv_sys_global_symbol_to_c_name_address \
19548lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19549lt_cv_nm_interface \
19550nm_file_list_spec \
19551lt_cv_truncate_bin \
19552lt_prog_compiler_no_builtin_flag \
19553lt_prog_compiler_pic \
19554lt_prog_compiler_wl \
19555lt_prog_compiler_static \
19556lt_cv_prog_compiler_c_o \
19557need_locks \
19558MANIFEST_TOOL \
19559DSYMUTIL \
19560NMEDIT \
19561LIPO \
19562OTOOL \
19563OTOOL64 \
19564shrext_cmds \
19565export_dynamic_flag_spec \
19566whole_archive_flag_spec \
19567compiler_needs_object \
19568with_gnu_ld \
19569allow_undefined_flag \
19570no_undefined_flag \
19571hardcode_libdir_flag_spec \
19572hardcode_libdir_separator \
19573exclude_expsyms \
19574include_expsyms \
19575file_list_spec \
19576variables_saved_for_relink \
19577libname_spec \
19578library_names_spec \
19579soname_spec \
19580install_override_mode \
19581finish_eval \
19582old_striplib \
19583striplib; do
19584    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19585    *[\\\\\\\`\\"\\\$]*)
19586      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19587      ;;
19588    *)
19589      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19590      ;;
19591    esac
19592done
19593
19594# Double-quote double-evaled strings.
19595for var in reload_cmds \
19596old_postinstall_cmds \
19597old_postuninstall_cmds \
19598old_archive_cmds \
19599extract_expsyms_cmds \
19600old_archive_from_new_cmds \
19601old_archive_from_expsyms_cmds \
19602archive_cmds \
19603archive_expsym_cmds \
19604module_cmds \
19605module_expsym_cmds \
19606export_symbols_cmds \
19607prelink_cmds \
19608postlink_cmds \
19609postinstall_cmds \
19610postuninstall_cmds \
19611finish_cmds \
19612sys_lib_search_path_spec \
19613configure_time_dlsearch_path \
19614configure_time_lt_sys_library_path; do
19615    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19616    *[\\\\\\\`\\"\\\$]*)
19617      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19618      ;;
19619    *)
19620      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19621      ;;
19622    esac
19623done
19624
19625ac_aux_dir='$ac_aux_dir'
19626
19627# See if we are running on zsh, and set the options that allow our
19628# commands through without removal of \ escapes INIT.
19629if test -n "\${ZSH_VERSION+set}"; then
19630   setopt NO_GLOB_SUBST
19631fi
19632
19633
19634    PACKAGE='$PACKAGE'
19635    VERSION='$VERSION'
19636    RM='$RM'
19637    ofile='$ofile'
19638
19639
19640
19641
19642_ACEOF
19643
19644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19645
19646# Handling of arguments.
19647for ac_config_target in $ac_config_targets
19648do
19649  case $ac_config_target in
19650    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19651    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19652    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19653    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19654    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19655    "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
19656    "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
19657    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19658    "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
19659    "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
19660    "xvmc-wrapper.pc") CONFIG_FILES="$CONFIG_FILES xvmc-wrapper.pc" ;;
19661
19662  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19663  esac
19664done
19665
19666
19667# If the user did not use the arguments to specify the items to instantiate,
19668# then the envvar interface is used.  Set only those that are not.
19669# We use the long form for the default assignment because of an extremely
19670# bizarre bug on SunOS 4.1.3.
19671if $ac_need_defaults; then
19672  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19673  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19674  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19675fi
19676
19677# Have a temporary directory for convenience.  Make it in the build tree
19678# simply because there is no reason against having it here, and in addition,
19679# creating and moving files from /tmp can sometimes cause problems.
19680# Hook for its removal unless debugging.
19681# Note that there is a small window in which the directory will not be cleaned:
19682# after its creation but before its name has been assigned to `$tmp'.
19683$debug ||
19684{
19685  tmp= ac_tmp=
19686  trap 'exit_status=$?
19687  : "${ac_tmp:=$tmp}"
19688  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19689' 0
19690  trap 'as_fn_exit 1' 1 2 13 15
19691}
19692# Create a (secure) tmp directory for tmp files.
19693
19694{
19695  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19696  test -d "$tmp"
19697}  ||
19698{
19699  tmp=./conf$$-$RANDOM
19700  (umask 077 && mkdir "$tmp")
19701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19702ac_tmp=$tmp
19703
19704# Set up the scripts for CONFIG_FILES section.
19705# No need to generate them if there are no CONFIG_FILES.
19706# This happens for instance with `./config.status config.h'.
19707if test -n "$CONFIG_FILES"; then
19708
19709
19710ac_cr=`echo X | tr X '\015'`
19711# On cygwin, bash can eat \r inside `` if the user requested igncr.
19712# But we know of no other shell where ac_cr would be empty at this
19713# point, so we can use a bashism as a fallback.
19714if test "x$ac_cr" = x; then
19715  eval ac_cr=\$\'\\r\'
19716fi
19717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19719  ac_cs_awk_cr='\\r'
19720else
19721  ac_cs_awk_cr=$ac_cr
19722fi
19723
19724echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19725_ACEOF
19726
19727
19728{
19729  echo "cat >conf$$subs.awk <<_ACEOF" &&
19730  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19731  echo "_ACEOF"
19732} >conf$$subs.sh ||
19733  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19735ac_delim='%!_!# '
19736for ac_last_try in false false false false false :; do
19737  . ./conf$$subs.sh ||
19738    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19739
19740  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19741  if test $ac_delim_n = $ac_delim_num; then
19742    break
19743  elif $ac_last_try; then
19744    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19745  else
19746    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19747  fi
19748done
19749rm -f conf$$subs.sh
19750
19751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19753_ACEOF
19754sed -n '
19755h
19756s/^/S["/; s/!.*/"]=/
19757p
19758g
19759s/^[^!]*!//
19760:repl
19761t repl
19762s/'"$ac_delim"'$//
19763t delim
19764:nl
19765h
19766s/\(.\{148\}\)..*/\1/
19767t more1
19768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19769p
19770n
19771b repl
19772:more1
19773s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19774p
19775g
19776s/.\{148\}//
19777t nl
19778:delim
19779h
19780s/\(.\{148\}\)..*/\1/
19781t more2
19782s/["\\]/\\&/g; s/^/"/; s/$/"/
19783p
19784b
19785:more2
19786s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19787p
19788g
19789s/.\{148\}//
19790t delim
19791' <conf$$subs.awk | sed '
19792/^[^""]/{
19793  N
19794  s/\n//
19795}
19796' >>$CONFIG_STATUS || ac_write_fail=1
19797rm -f conf$$subs.awk
19798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19799_ACAWK
19800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19801  for (key in S) S_is_set[key] = 1
19802  FS = ""
19803
19804}
19805{
19806  line = $ 0
19807  nfields = split(line, field, "@")
19808  substed = 0
19809  len = length(field[1])
19810  for (i = 2; i < nfields; i++) {
19811    key = field[i]
19812    keylen = length(key)
19813    if (S_is_set[key]) {
19814      value = S[key]
19815      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19816      len += length(value) + length(field[++i])
19817      substed = 1
19818    } else
19819      len += 1 + keylen
19820  }
19821
19822  print line
19823}
19824
19825_ACAWK
19826_ACEOF
19827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19829  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19830else
19831  cat
19832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19833  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19834_ACEOF
19835
19836# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19838# trailing colons and then remove the whole line if VPATH becomes empty
19839# (actually we leave an empty line to preserve line numbers).
19840if test "x$srcdir" = x.; then
19841  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19842h
19843s///
19844s/^/:/
19845s/[	 ]*$/:/
19846s/:\$(srcdir):/:/g
19847s/:\${srcdir}:/:/g
19848s/:@srcdir@:/:/g
19849s/^:*//
19850s/:*$//
19851x
19852s/\(=[	 ]*\).*/\1/
19853G
19854s/\n//
19855s/^[^=]*=[	 ]*$//
19856}'
19857fi
19858
19859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19860fi # test -n "$CONFIG_FILES"
19861
19862# Set up the scripts for CONFIG_HEADERS section.
19863# No need to generate them if there are no CONFIG_HEADERS.
19864# This happens for instance with `./config.status Makefile'.
19865if test -n "$CONFIG_HEADERS"; then
19866cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19867BEGIN {
19868_ACEOF
19869
19870# Transform confdefs.h into an awk script `defines.awk', embedded as
19871# here-document in config.status, that substitutes the proper values into
19872# config.h.in to produce config.h.
19873
19874# Create a delimiter string that does not exist in confdefs.h, to ease
19875# handling of long lines.
19876ac_delim='%!_!# '
19877for ac_last_try in false false :; do
19878  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19879  if test -z "$ac_tt"; then
19880    break
19881  elif $ac_last_try; then
19882    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19883  else
19884    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19885  fi
19886done
19887
19888# For the awk script, D is an array of macro values keyed by name,
19889# likewise P contains macro parameters if any.  Preserve backslash
19890# newline sequences.
19891
19892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19893sed -n '
19894s/.\{148\}/&'"$ac_delim"'/g
19895t rset
19896:rset
19897s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19898t def
19899d
19900:def
19901s/\\$//
19902t bsnl
19903s/["\\]/\\&/g
19904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19905D["\1"]=" \3"/p
19906s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19907d
19908:bsnl
19909s/["\\]/\\&/g
19910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19911D["\1"]=" \3\\\\\\n"\\/p
19912t cont
19913s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19914t cont
19915d
19916:cont
19917n
19918s/.\{148\}/&'"$ac_delim"'/g
19919t clear
19920:clear
19921s/\\$//
19922t bsnlc
19923s/["\\]/\\&/g; s/^/"/; s/$/"/p
19924d
19925:bsnlc
19926s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19927b cont
19928' <confdefs.h | sed '
19929s/'"$ac_delim"'/"\\\
19930"/g' >>$CONFIG_STATUS || ac_write_fail=1
19931
19932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19933  for (key in D) D_is_set[key] = 1
19934  FS = ""
19935}
19936/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19937  line = \$ 0
19938  split(line, arg, " ")
19939  if (arg[1] == "#") {
19940    defundef = arg[2]
19941    mac1 = arg[3]
19942  } else {
19943    defundef = substr(arg[1], 2)
19944    mac1 = arg[2]
19945  }
19946  split(mac1, mac2, "(") #)
19947  macro = mac2[1]
19948  prefix = substr(line, 1, index(line, defundef) - 1)
19949  if (D_is_set[macro]) {
19950    # Preserve the white space surrounding the "#".
19951    print prefix "define", macro P[macro] D[macro]
19952    next
19953  } else {
19954    # Replace #undef with comments.  This is necessary, for example,
19955    # in the case of _POSIX_SOURCE, which is predefined and required
19956    # on some systems where configure will not decide to define it.
19957    if (defundef == "undef") {
19958      print "/*", prefix defundef, macro, "*/"
19959      next
19960    }
19961  }
19962}
19963{ print }
19964_ACAWK
19965_ACEOF
19966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19967  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19968fi # test -n "$CONFIG_HEADERS"
19969
19970
19971eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19972shift
19973for ac_tag
19974do
19975  case $ac_tag in
19976  :[FHLC]) ac_mode=$ac_tag; continue;;
19977  esac
19978  case $ac_mode$ac_tag in
19979  :[FHL]*:*);;
19980  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19981  :[FH]-) ac_tag=-:-;;
19982  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19983  esac
19984  ac_save_IFS=$IFS
19985  IFS=:
19986  set x $ac_tag
19987  IFS=$ac_save_IFS
19988  shift
19989  ac_file=$1
19990  shift
19991
19992  case $ac_mode in
19993  :L) ac_source=$1;;
19994  :[FH])
19995    ac_file_inputs=
19996    for ac_f
19997    do
19998      case $ac_f in
19999      -) ac_f="$ac_tmp/stdin";;
20000      *) # Look for the file first in the build tree, then in the source tree
20001	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20002	 # because $ac_f cannot contain `:'.
20003	 test -f "$ac_f" ||
20004	   case $ac_f in
20005	   [\\/$]*) false;;
20006	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20007	   esac ||
20008	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20009      esac
20010      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20011      as_fn_append ac_file_inputs " '$ac_f'"
20012    done
20013
20014    # Let's still pretend it is `configure' which instantiates (i.e., don't
20015    # use $as_me), people would be surprised to read:
20016    #    /* config.h.  Generated by config.status.  */
20017    configure_input='Generated from '`
20018	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20019	`' by configure.'
20020    if test x"$ac_file" != x-; then
20021      configure_input="$ac_file.  $configure_input"
20022      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20023$as_echo "$as_me: creating $ac_file" >&6;}
20024    fi
20025    # Neutralize special characters interpreted by sed in replacement strings.
20026    case $configure_input in #(
20027    *\&* | *\|* | *\\* )
20028       ac_sed_conf_input=`$as_echo "$configure_input" |
20029       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20030    *) ac_sed_conf_input=$configure_input;;
20031    esac
20032
20033    case $ac_tag in
20034    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20035      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20036    esac
20037    ;;
20038  esac
20039
20040  ac_dir=`$as_dirname -- "$ac_file" ||
20041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20042	 X"$ac_file" : 'X\(//\)[^/]' \| \
20043	 X"$ac_file" : 'X\(//\)$' \| \
20044	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20045$as_echo X"$ac_file" |
20046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20047	    s//\1/
20048	    q
20049	  }
20050	  /^X\(\/\/\)[^/].*/{
20051	    s//\1/
20052	    q
20053	  }
20054	  /^X\(\/\/\)$/{
20055	    s//\1/
20056	    q
20057	  }
20058	  /^X\(\/\).*/{
20059	    s//\1/
20060	    q
20061	  }
20062	  s/.*/./; q'`
20063  as_dir="$ac_dir"; as_fn_mkdir_p
20064  ac_builddir=.
20065
20066case "$ac_dir" in
20067.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20068*)
20069  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20070  # A ".." for each directory in $ac_dir_suffix.
20071  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20072  case $ac_top_builddir_sub in
20073  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20074  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20075  esac ;;
20076esac
20077ac_abs_top_builddir=$ac_pwd
20078ac_abs_builddir=$ac_pwd$ac_dir_suffix
20079# for backward compatibility:
20080ac_top_builddir=$ac_top_build_prefix
20081
20082case $srcdir in
20083  .)  # We are building in place.
20084    ac_srcdir=.
20085    ac_top_srcdir=$ac_top_builddir_sub
20086    ac_abs_top_srcdir=$ac_pwd ;;
20087  [\\/]* | ?:[\\/]* )  # Absolute name.
20088    ac_srcdir=$srcdir$ac_dir_suffix;
20089    ac_top_srcdir=$srcdir
20090    ac_abs_top_srcdir=$srcdir ;;
20091  *) # Relative name.
20092    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20093    ac_top_srcdir=$ac_top_build_prefix$srcdir
20094    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20095esac
20096ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20097
20098
20099  case $ac_mode in
20100  :F)
20101  #
20102  # CONFIG_FILE
20103  #
20104
20105  case $INSTALL in
20106  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20107  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20108  esac
20109  ac_MKDIR_P=$MKDIR_P
20110  case $MKDIR_P in
20111  [\\/$]* | ?:[\\/]* ) ;;
20112  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20113  esac
20114_ACEOF
20115
20116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20117# If the template does not know about datarootdir, expand it.
20118# FIXME: This hack should be removed a few years after 2.60.
20119ac_datarootdir_hack=; ac_datarootdir_seen=
20120ac_sed_dataroot='
20121/datarootdir/ {
20122  p
20123  q
20124}
20125/@datadir@/p
20126/@docdir@/p
20127/@infodir@/p
20128/@localedir@/p
20129/@mandir@/p'
20130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20131*datarootdir*) ac_datarootdir_seen=yes;;
20132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20133  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20135_ACEOF
20136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20137  ac_datarootdir_hack='
20138  s&@datadir@&$datadir&g
20139  s&@docdir@&$docdir&g
20140  s&@infodir@&$infodir&g
20141  s&@localedir@&$localedir&g
20142  s&@mandir@&$mandir&g
20143  s&\\\${datarootdir}&$datarootdir&g' ;;
20144esac
20145_ACEOF
20146
20147# Neutralize VPATH when `$srcdir' = `.'.
20148# Shell code in configure.ac might set extrasub.
20149# FIXME: do we really want to maintain this feature?
20150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20151ac_sed_extra="$ac_vpsub
20152$extrasub
20153_ACEOF
20154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20155:t
20156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20157s|@configure_input@|$ac_sed_conf_input|;t t
20158s&@top_builddir@&$ac_top_builddir_sub&;t t
20159s&@top_build_prefix@&$ac_top_build_prefix&;t t
20160s&@srcdir@&$ac_srcdir&;t t
20161s&@abs_srcdir@&$ac_abs_srcdir&;t t
20162s&@top_srcdir@&$ac_top_srcdir&;t t
20163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20164s&@builddir@&$ac_builddir&;t t
20165s&@abs_builddir@&$ac_abs_builddir&;t t
20166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20167s&@INSTALL@&$ac_INSTALL&;t t
20168s&@MKDIR_P@&$ac_MKDIR_P&;t t
20169$ac_datarootdir_hack
20170"
20171eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20172  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20173
20174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20175  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20176  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20177      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20178  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20179which seems to be undefined.  Please make sure it is defined" >&5
20180$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20181which seems to be undefined.  Please make sure it is defined" >&2;}
20182
20183  rm -f "$ac_tmp/stdin"
20184  case $ac_file in
20185  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20186  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20187  esac \
20188  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20189 ;;
20190  :H)
20191  #
20192  # CONFIG_HEADER
20193  #
20194  if test x"$ac_file" != x-; then
20195    {
20196      $as_echo "/* $configure_input  */" \
20197      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20198    } >"$ac_tmp/config.h" \
20199      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20200    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20201      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20202$as_echo "$as_me: $ac_file is unchanged" >&6;}
20203    else
20204      rm -f "$ac_file"
20205      mv "$ac_tmp/config.h" "$ac_file" \
20206	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20207    fi
20208  else
20209    $as_echo "/* $configure_input  */" \
20210      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20211      || as_fn_error $? "could not create -" "$LINENO" 5
20212  fi
20213# Compute "$ac_file"'s index in $config_headers.
20214_am_arg="$ac_file"
20215_am_stamp_count=1
20216for _am_header in $config_headers :; do
20217  case $_am_header in
20218    $_am_arg | $_am_arg:* )
20219      break ;;
20220    * )
20221      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20222  esac
20223done
20224echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20225$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20227	 X"$_am_arg" : 'X\(//\)$' \| \
20228	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20229$as_echo X"$_am_arg" |
20230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20231	    s//\1/
20232	    q
20233	  }
20234	  /^X\(\/\/\)[^/].*/{
20235	    s//\1/
20236	    q
20237	  }
20238	  /^X\(\/\/\)$/{
20239	    s//\1/
20240	    q
20241	  }
20242	  /^X\(\/\).*/{
20243	    s//\1/
20244	    q
20245	  }
20246	  s/.*/./; q'`/stamp-h$_am_stamp_count
20247 ;;
20248
20249  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20250$as_echo "$as_me: executing $ac_file commands" >&6;}
20251 ;;
20252  esac
20253
20254
20255  case $ac_file$ac_mode in
20256    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20257  # Older Autoconf quotes --file arguments for eval, but not when files
20258  # are listed without --file.  Let's play safe and only enable the eval
20259  # if we detect the quoting.
20260  # TODO: see whether this extra hack can be removed once we start
20261  # requiring Autoconf 2.70 or later.
20262  case $CONFIG_FILES in #(
20263  *\'*) :
20264    eval set x "$CONFIG_FILES" ;; #(
20265  *) :
20266    set x $CONFIG_FILES ;; #(
20267  *) :
20268     ;;
20269esac
20270  shift
20271  # Used to flag and report bootstrapping failures.
20272  am_rc=0
20273  for am_mf
20274  do
20275    # Strip MF so we end up with the name of the file.
20276    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20277    # Check whether this is an Automake generated Makefile which includes
20278    # dependency-tracking related rules and includes.
20279    # Grep'ing the whole file directly is not great: AIX grep has a line
20280    # limit of 2048, but all sed's we know have understand at least 4000.
20281    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20282      || continue
20283    am_dirpart=`$as_dirname -- "$am_mf" ||
20284$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285	 X"$am_mf" : 'X\(//\)[^/]' \| \
20286	 X"$am_mf" : 'X\(//\)$' \| \
20287	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20288$as_echo X"$am_mf" |
20289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20290	    s//\1/
20291	    q
20292	  }
20293	  /^X\(\/\/\)[^/].*/{
20294	    s//\1/
20295	    q
20296	  }
20297	  /^X\(\/\/\)$/{
20298	    s//\1/
20299	    q
20300	  }
20301	  /^X\(\/\).*/{
20302	    s//\1/
20303	    q
20304	  }
20305	  s/.*/./; q'`
20306    am_filepart=`$as_basename -- "$am_mf" ||
20307$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20308	 X"$am_mf" : 'X\(//\)$' \| \
20309	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20310$as_echo X/"$am_mf" |
20311    sed '/^.*\/\([^/][^/]*\)\/*$/{
20312	    s//\1/
20313	    q
20314	  }
20315	  /^X\/\(\/\/\)$/{
20316	    s//\1/
20317	    q
20318	  }
20319	  /^X\/\(\/\).*/{
20320	    s//\1/
20321	    q
20322	  }
20323	  s/.*/./; q'`
20324    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20325      && sed -e '/# am--include-marker/d' "$am_filepart" \
20326        | $MAKE -f - am--depfiles" >&5
20327   (cd "$am_dirpart" \
20328      && sed -e '/# am--include-marker/d' "$am_filepart" \
20329        | $MAKE -f - am--depfiles) >&5 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } || am_rc=$?
20333  done
20334  if test $am_rc -ne 0; then
20335    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20337as_fn_error $? "Something went wrong bootstrapping makefile fragments
20338    for automatic dependency tracking.  Try re-running configure with the
20339    '--disable-dependency-tracking' option to at least be able to build
20340    the package (albeit without support for automatic dependency tracking).
20341See \`config.log' for more details" "$LINENO" 5; }
20342  fi
20343  { am_dirpart=; unset am_dirpart;}
20344  { am_filepart=; unset am_filepart;}
20345  { am_mf=; unset am_mf;}
20346  { am_rc=; unset am_rc;}
20347  rm -f conftest-deps.mk
20348}
20349 ;;
20350    "libtool":C)
20351
20352    # See if we are running on zsh, and set the options that allow our
20353    # commands through without removal of \ escapes.
20354    if test -n "${ZSH_VERSION+set}"; then
20355      setopt NO_GLOB_SUBST
20356    fi
20357
20358    cfgfile=${ofile}T
20359    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20360    $RM "$cfgfile"
20361
20362    cat <<_LT_EOF >> "$cfgfile"
20363#! $SHELL
20364# Generated automatically by $as_me ($PACKAGE) $VERSION
20365# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20366# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20367
20368# Provide generalized library-building support services.
20369# Written by Gordon Matzigkeit, 1996
20370
20371# Copyright (C) 2014 Free Software Foundation, Inc.
20372# This is free software; see the source for copying conditions.  There is NO
20373# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20374
20375# GNU Libtool is free software; you can redistribute it and/or modify
20376# it under the terms of the GNU General Public License as published by
20377# the Free Software Foundation; either version 2 of of the License, or
20378# (at your option) any later version.
20379#
20380# As a special exception to the GNU General Public License, if you
20381# distribute this file as part of a program or library that is built
20382# using GNU Libtool, you may include this file under the  same
20383# distribution terms that you use for the rest of that program.
20384#
20385# GNU Libtool is distributed in the hope that it will be useful, but
20386# WITHOUT ANY WARRANTY; without even the implied warranty of
20387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20388# GNU General Public License for more details.
20389#
20390# You should have received a copy of the GNU General Public License
20391# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20392
20393
20394# The names of the tagged configurations supported by this script.
20395available_tags=''
20396
20397# Configured defaults for sys_lib_dlsearch_path munging.
20398: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20399
20400# ### BEGIN LIBTOOL CONFIG
20401
20402# Which release of libtool.m4 was used?
20403macro_version=$macro_version
20404macro_revision=$macro_revision
20405
20406# Whether or not to build shared libraries.
20407build_libtool_libs=$enable_shared
20408
20409# Whether or not to build static libraries.
20410build_old_libs=$enable_static
20411
20412# What type of objects to build.
20413pic_mode=$pic_mode
20414
20415# Whether or not to optimize for fast installation.
20416fast_install=$enable_fast_install
20417
20418# Shared archive member basename,for filename based shared library versioning on AIX.
20419shared_archive_member_spec=$shared_archive_member_spec
20420
20421# Shell to use when invoking shell scripts.
20422SHELL=$lt_SHELL
20423
20424# An echo program that protects backslashes.
20425ECHO=$lt_ECHO
20426
20427# The PATH separator for the build system.
20428PATH_SEPARATOR=$lt_PATH_SEPARATOR
20429
20430# The host system.
20431host_alias=$host_alias
20432host=$host
20433host_os=$host_os
20434
20435# The build system.
20436build_alias=$build_alias
20437build=$build
20438build_os=$build_os
20439
20440# A sed program that does not truncate output.
20441SED=$lt_SED
20442
20443# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20444Xsed="\$SED -e 1s/^X//"
20445
20446# A grep program that handles long lines.
20447GREP=$lt_GREP
20448
20449# An ERE matcher.
20450EGREP=$lt_EGREP
20451
20452# A literal string matcher.
20453FGREP=$lt_FGREP
20454
20455# A BSD- or MS-compatible name lister.
20456NM=$lt_NM
20457
20458# Whether we need soft or hard links.
20459LN_S=$lt_LN_S
20460
20461# What is the maximum length of a command?
20462max_cmd_len=$max_cmd_len
20463
20464# Object file suffix (normally "o").
20465objext=$ac_objext
20466
20467# Executable file suffix (normally "").
20468exeext=$exeext
20469
20470# whether the shell understands "unset".
20471lt_unset=$lt_unset
20472
20473# turn spaces into newlines.
20474SP2NL=$lt_lt_SP2NL
20475
20476# turn newlines into spaces.
20477NL2SP=$lt_lt_NL2SP
20478
20479# convert \$build file names to \$host format.
20480to_host_file_cmd=$lt_cv_to_host_file_cmd
20481
20482# convert \$build files to toolchain format.
20483to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20484
20485# An object symbol dumper.
20486OBJDUMP=$lt_OBJDUMP
20487
20488# Method to check whether dependent libraries are shared objects.
20489deplibs_check_method=$lt_deplibs_check_method
20490
20491# Command to use when deplibs_check_method = "file_magic".
20492file_magic_cmd=$lt_file_magic_cmd
20493
20494# How to find potential files when deplibs_check_method = "file_magic".
20495file_magic_glob=$lt_file_magic_glob
20496
20497# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20498want_nocaseglob=$lt_want_nocaseglob
20499
20500# DLL creation program.
20501DLLTOOL=$lt_DLLTOOL
20502
20503# Command to associate shared and link libraries.
20504sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20505
20506# The archiver.
20507AR=$lt_AR
20508
20509# Flags to create an archive.
20510AR_FLAGS=$lt_AR_FLAGS
20511
20512# How to feed a file listing to the archiver.
20513archiver_list_spec=$lt_archiver_list_spec
20514
20515# A symbol stripping program.
20516STRIP=$lt_STRIP
20517
20518# Commands used to install an old-style archive.
20519RANLIB=$lt_RANLIB
20520old_postinstall_cmds=$lt_old_postinstall_cmds
20521old_postuninstall_cmds=$lt_old_postuninstall_cmds
20522
20523# Whether to use a lock for old archive extraction.
20524lock_old_archive_extraction=$lock_old_archive_extraction
20525
20526# A C compiler.
20527LTCC=$lt_CC
20528
20529# LTCC compiler flags.
20530LTCFLAGS=$lt_CFLAGS
20531
20532# Take the output of nm and produce a listing of raw symbols and C names.
20533global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20534
20535# Transform the output of nm in a proper C declaration.
20536global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20537
20538# Transform the output of nm into a list of symbols to manually relocate.
20539global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20540
20541# Transform the output of nm in a C name address pair.
20542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20543
20544# Transform the output of nm in a C name address pair when lib prefix is needed.
20545global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20546
20547# The name lister interface.
20548nm_interface=$lt_lt_cv_nm_interface
20549
20550# Specify filename containing input files for \$NM.
20551nm_file_list_spec=$lt_nm_file_list_spec
20552
20553# The root where to search for dependent libraries,and where our libraries should be installed.
20554lt_sysroot=$lt_sysroot
20555
20556# Command to truncate a binary pipe.
20557lt_truncate_bin=$lt_lt_cv_truncate_bin
20558
20559# The name of the directory that contains temporary libtool files.
20560objdir=$objdir
20561
20562# Used to examine libraries when file_magic_cmd begins with "file".
20563MAGIC_CMD=$MAGIC_CMD
20564
20565# Must we lock files when doing compilation?
20566need_locks=$lt_need_locks
20567
20568# Manifest tool.
20569MANIFEST_TOOL=$lt_MANIFEST_TOOL
20570
20571# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20572DSYMUTIL=$lt_DSYMUTIL
20573
20574# Tool to change global to local symbols on Mac OS X.
20575NMEDIT=$lt_NMEDIT
20576
20577# Tool to manipulate fat objects and archives on Mac OS X.
20578LIPO=$lt_LIPO
20579
20580# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20581OTOOL=$lt_OTOOL
20582
20583# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20584OTOOL64=$lt_OTOOL64
20585
20586# Old archive suffix (normally "a").
20587libext=$libext
20588
20589# Shared library suffix (normally ".so").
20590shrext_cmds=$lt_shrext_cmds
20591
20592# The commands to extract the exported symbol list from a shared archive.
20593extract_expsyms_cmds=$lt_extract_expsyms_cmds
20594
20595# Variables whose values should be saved in libtool wrapper scripts and
20596# restored at link time.
20597variables_saved_for_relink=$lt_variables_saved_for_relink
20598
20599# Do we need the "lib" prefix for modules?
20600need_lib_prefix=$need_lib_prefix
20601
20602# Do we need a version for libraries?
20603need_version=$need_version
20604
20605# Library versioning type.
20606version_type=$version_type
20607
20608# Shared library runtime path variable.
20609runpath_var=$runpath_var
20610
20611# Shared library path variable.
20612shlibpath_var=$shlibpath_var
20613
20614# Is shlibpath searched before the hard-coded library search path?
20615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20616
20617# Format of library name prefix.
20618libname_spec=$lt_libname_spec
20619
20620# List of archive names.  First name is the real one, the rest are links.
20621# The last name is the one that the linker finds with -lNAME
20622library_names_spec=$lt_library_names_spec
20623
20624# The coded name of the library, if different from the real name.
20625soname_spec=$lt_soname_spec
20626
20627# Permission mode override for installation of shared libraries.
20628install_override_mode=$lt_install_override_mode
20629
20630# Command to use after installation of a shared archive.
20631postinstall_cmds=$lt_postinstall_cmds
20632
20633# Command to use after uninstallation of a shared archive.
20634postuninstall_cmds=$lt_postuninstall_cmds
20635
20636# Commands used to finish a libtool library installation in a directory.
20637finish_cmds=$lt_finish_cmds
20638
20639# As "finish_cmds", except a single script fragment to be evaled but
20640# not shown.
20641finish_eval=$lt_finish_eval
20642
20643# Whether we should hardcode library paths into libraries.
20644hardcode_into_libs=$hardcode_into_libs
20645
20646# Compile-time system search path for libraries.
20647sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20648
20649# Detected run-time system search path for libraries.
20650sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20651
20652# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20653configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20654
20655# Whether dlopen is supported.
20656dlopen_support=$enable_dlopen
20657
20658# Whether dlopen of programs is supported.
20659dlopen_self=$enable_dlopen_self
20660
20661# Whether dlopen of statically linked programs is supported.
20662dlopen_self_static=$enable_dlopen_self_static
20663
20664# Commands to strip libraries.
20665old_striplib=$lt_old_striplib
20666striplib=$lt_striplib
20667
20668
20669# The linker used to build libraries.
20670LD=$lt_LD
20671
20672# How to create reloadable object files.
20673reload_flag=$lt_reload_flag
20674reload_cmds=$lt_reload_cmds
20675
20676# Commands used to build an old-style archive.
20677old_archive_cmds=$lt_old_archive_cmds
20678
20679# A language specific compiler.
20680CC=$lt_compiler
20681
20682# Is the compiler the GNU compiler?
20683with_gcc=$GCC
20684
20685# Compiler flag to turn off builtin functions.
20686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20687
20688# Additional compiler flags for building library objects.
20689pic_flag=$lt_lt_prog_compiler_pic
20690
20691# How to pass a linker flag through the compiler.
20692wl=$lt_lt_prog_compiler_wl
20693
20694# Compiler flag to prevent dynamic linking.
20695link_static_flag=$lt_lt_prog_compiler_static
20696
20697# Does compiler simultaneously support -c and -o options?
20698compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20699
20700# Whether or not to add -lc for building shared libraries.
20701build_libtool_need_lc=$archive_cmds_need_lc
20702
20703# Whether or not to disallow shared libs when runtime libs are static.
20704allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20705
20706# Compiler flag to allow reflexive dlopens.
20707export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20708
20709# Compiler flag to generate shared objects directly from archives.
20710whole_archive_flag_spec=$lt_whole_archive_flag_spec
20711
20712# Whether the compiler copes with passing no objects directly.
20713compiler_needs_object=$lt_compiler_needs_object
20714
20715# Create an old-style archive from a shared archive.
20716old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20717
20718# Create a temporary old-style archive to link instead of a shared archive.
20719old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20720
20721# Commands used to build a shared archive.
20722archive_cmds=$lt_archive_cmds
20723archive_expsym_cmds=$lt_archive_expsym_cmds
20724
20725# Commands used to build a loadable module if different from building
20726# a shared archive.
20727module_cmds=$lt_module_cmds
20728module_expsym_cmds=$lt_module_expsym_cmds
20729
20730# Whether we are building with GNU ld or not.
20731with_gnu_ld=$lt_with_gnu_ld
20732
20733# Flag that allows shared libraries with undefined symbols to be built.
20734allow_undefined_flag=$lt_allow_undefined_flag
20735
20736# Flag that enforces no undefined symbols.
20737no_undefined_flag=$lt_no_undefined_flag
20738
20739# Flag to hardcode \$libdir into a binary during linking.
20740# This must work even if \$libdir does not exist
20741hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20742
20743# Whether we need a single "-rpath" flag with a separated argument.
20744hardcode_libdir_separator=$lt_hardcode_libdir_separator
20745
20746# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20747# DIR into the resulting binary.
20748hardcode_direct=$hardcode_direct
20749
20750# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20751# DIR into the resulting binary and the resulting library dependency is
20752# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20753# library is relocated.
20754hardcode_direct_absolute=$hardcode_direct_absolute
20755
20756# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20757# into the resulting binary.
20758hardcode_minus_L=$hardcode_minus_L
20759
20760# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20761# into the resulting binary.
20762hardcode_shlibpath_var=$hardcode_shlibpath_var
20763
20764# Set to "yes" if building a shared library automatically hardcodes DIR
20765# into the library and all subsequent libraries and executables linked
20766# against it.
20767hardcode_automatic=$hardcode_automatic
20768
20769# Set to yes if linker adds runtime paths of dependent libraries
20770# to runtime path list.
20771inherit_rpath=$inherit_rpath
20772
20773# Whether libtool must link a program against all its dependency libraries.
20774link_all_deplibs=$link_all_deplibs
20775
20776# Set to "yes" if exported symbols are required.
20777always_export_symbols=$always_export_symbols
20778
20779# The commands to list exported symbols.
20780export_symbols_cmds=$lt_export_symbols_cmds
20781
20782# Symbols that should not be listed in the preloaded symbols.
20783exclude_expsyms=$lt_exclude_expsyms
20784
20785# Symbols that must always be exported.
20786include_expsyms=$lt_include_expsyms
20787
20788# Commands necessary for linking programs (against libraries) with templates.
20789prelink_cmds=$lt_prelink_cmds
20790
20791# Commands necessary for finishing linking programs.
20792postlink_cmds=$lt_postlink_cmds
20793
20794# Specify filename containing input files.
20795file_list_spec=$lt_file_list_spec
20796
20797# How to hardcode a shared library path into an executable.
20798hardcode_action=$hardcode_action
20799
20800# ### END LIBTOOL CONFIG
20801
20802_LT_EOF
20803
20804    cat <<'_LT_EOF' >> "$cfgfile"
20805
20806# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20807
20808# func_munge_path_list VARIABLE PATH
20809# -----------------------------------
20810# VARIABLE is name of variable containing _space_ separated list of
20811# directories to be munged by the contents of PATH, which is string
20812# having a format:
20813# "DIR[:DIR]:"
20814#       string "DIR[ DIR]" will be prepended to VARIABLE
20815# ":DIR[:DIR]"
20816#       string "DIR[ DIR]" will be appended to VARIABLE
20817# "DIRP[:DIRP]::[DIRA:]DIRA"
20818#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20819#       "DIRA[ DIRA]" will be appended to VARIABLE
20820# "DIR[:DIR]"
20821#       VARIABLE will be replaced by "DIR[ DIR]"
20822func_munge_path_list ()
20823{
20824    case x$2 in
20825    x)
20826        ;;
20827    *:)
20828        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20829        ;;
20830    x:*)
20831        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20832        ;;
20833    *::*)
20834        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20835        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20836        ;;
20837    *)
20838        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20839        ;;
20840    esac
20841}
20842
20843
20844# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20845func_cc_basename ()
20846{
20847    for cc_temp in $*""; do
20848      case $cc_temp in
20849        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20850        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20851        \-*) ;;
20852        *) break;;
20853      esac
20854    done
20855    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20856}
20857
20858
20859# ### END FUNCTIONS SHARED WITH CONFIGURE
20860
20861_LT_EOF
20862
20863  case $host_os in
20864  aix3*)
20865    cat <<\_LT_EOF >> "$cfgfile"
20866# AIX sometimes has problems with the GCC collect2 program.  For some
20867# reason, if we set the COLLECT_NAMES environment variable, the problems
20868# vanish in a puff of smoke.
20869if test set != "${COLLECT_NAMES+set}"; then
20870  COLLECT_NAMES=
20871  export COLLECT_NAMES
20872fi
20873_LT_EOF
20874    ;;
20875  esac
20876
20877
20878ltmain=$ac_aux_dir/ltmain.sh
20879
20880
20881  # We use sed instead of cat because bash on DJGPP gets confused if
20882  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20883  # text mode, it properly converts lines to CR/LF.  This bash problem
20884  # is reportedly fixed, but why not run on old versions too?
20885  sed '$q' "$ltmain" >> "$cfgfile" \
20886     || (rm -f "$cfgfile"; exit 1)
20887
20888   mv -f "$cfgfile" "$ofile" ||
20889    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20890  chmod +x "$ofile"
20891
20892 ;;
20893
20894  esac
20895done # for ac_tag
20896
20897
20898as_fn_exit 0
20899_ACEOF
20900ac_clean_files=$ac_clean_files_save
20901
20902test $ac_write_fail = 0 ||
20903  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20904
20905
20906# configure is writing to config.log, and then calls config.status.
20907# config.status does its own redirection, appending to config.log.
20908# Unfortunately, on DOS this fails, as config.log is still kept open
20909# by configure, so config.status won't be able to write to it; its
20910# output is simply discarded.  So we exec the FD to /dev/null,
20911# effectively closing config.log, so it can be properly (re)opened and
20912# appended to by config.status.  When coming back to configure, we
20913# need to make the FD available again.
20914if test "$no_create" != yes; then
20915  ac_cs_success=:
20916  ac_config_status_args=
20917  test "$silent" = yes &&
20918    ac_config_status_args="$ac_config_status_args --quiet"
20919  exec 5>/dev/null
20920  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20921  exec 5>>config.log
20922  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20923  # would make configure fail if this is the last instruction.
20924  $ac_cs_success || as_fn_exit 1
20925fi
20926if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20927  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20928$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20929fi
20930
20931