1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXTrap 1.0.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libXTrap'
593PACKAGE_TARNAME='libXTrap'
594PACKAGE_VERSION='1.0.1'
595PACKAGE_STRING='libXTrap 1.0.1'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CHANGELOG_CMD
640XTRAP_LIBS
641XTRAP_CFLAGS
642PKG_CONFIG_LIBDIR
643PKG_CONFIG_PATH
644PKG_CONFIG
645BASE_CFLAGS
646CPP
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654ac_ct_AR
655AR
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676am__fastdepCC_FALSE
677am__fastdepCC_TRUE
678CCDEPMODE
679am__nodep
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_maintainer_mode
766enable_dependency_tracking
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_selective_werror
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785PKG_CONFIG
786PKG_CONFIG_PATH
787PKG_CONFIG_LIBDIR
788XTRAP_CFLAGS
789XTRAP_LIBS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266  ac_srcdir_defaulted=yes
1267  # Try the directory containing this script, then the parent directory.
1268  ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270	 X"$as_myself" : 'X\(//\)[^/]' \| \
1271	 X"$as_myself" : 'X\(//\)$' \| \
1272	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)[^/].*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\).*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  s/.*/./; q'`
1291  srcdir=$ac_confdir
1292  if test ! -r "$srcdir/$ac_unique_file"; then
1293    srcdir=..
1294  fi
1295else
1296  ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305	pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308  srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_env_${ac_var}_value=\$${ac_var}
1319  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327  # Omit some internal or obsolete options to make the list less imposing.
1328  # This message is too long to be a string in the A/UX 3.1 sh.
1329  cat <<_ACEOF
1330\`configure' configures libXTrap 1.0.1 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340  -h, --help              display this help and exit
1341      --help=short        display options specific to this package
1342      --help=recursive    display the short help of all the included packages
1343  -V, --version           display version information and exit
1344  -q, --quiet, --silent   do not print \`checking ...' messages
1345      --cache-file=FILE   cache test results in FILE [disabled]
1346  -C, --config-cache      alias for \`--cache-file=config.cache'
1347  -n, --no-create         do not create output files
1348      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351  --prefix=PREFIX         install architecture-independent files in PREFIX
1352                          [$ac_default_prefix]
1353  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                          [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364  --bindir=DIR            user executables [EPREFIX/bin]
1365  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366  --libexecdir=DIR        program executables [EPREFIX/libexec]
1367  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370  --libdir=DIR            object code libraries [EPREFIX/lib]
1371  --includedir=DIR        C header files [PREFIX/include]
1372  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375  --infodir=DIR           info documentation [DATAROOTDIR/info]
1376  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377  --mandir=DIR            man documentation [DATAROOTDIR/man]
1378  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXTrap]
1379  --htmldir=DIR           html documentation [DOCDIR]
1380  --dvidir=DIR            dvi documentation [DOCDIR]
1381  --pdfdir=DIR            pdf documentation [DOCDIR]
1382  --psdir=DIR             ps documentation [DOCDIR]
1383_ACEOF
1384
1385  cat <<\_ACEOF
1386
1387Program names:
1388  --program-prefix=PREFIX            prepend PREFIX to installed program names
1389  --program-suffix=SUFFIX            append SUFFIX to installed program names
1390  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392System types:
1393  --build=BUILD     configure for building on BUILD [guessed]
1394  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of libXTrap 1.0.1:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-option-checking  ignore unrecognized --enable/--with options
1406  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408  --enable-silent-rules   less verbose build output (undo: "make V=1")
1409  --disable-silent-rules  verbose build output (undo: "make V=0")
1410  --enable-maintainer-mode
1411                          enable make rules and dependencies not useful (and
1412                          sometimes confusing) to the casual installer
1413  --enable-dependency-tracking
1414                          do not reject slow dependency extractors
1415  --disable-dependency-tracking
1416                          speeds up one-time build
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-static[=PKGS]  build static libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422  --disable-selective-werror
1423                          Turn off selective compiler errors. (default:
1424                          enabled)
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1430                          both]
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot=DIR Search for dependent libraries within DIR
1433                        (or the compiler's sysroot if not specified).
1434
1435Some influential environment variables:
1436  CC          C compiler command
1437  CFLAGS      C compiler flags
1438  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439              nonstandard directory <lib dir>
1440  LIBS        libraries to pass to the linker, e.g. -l<library>
1441  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442              you have headers in a nonstandard directory <include dir>
1443  CPP         C preprocessor
1444  PKG_CONFIG  path to pkg-config utility
1445  PKG_CONFIG_PATH
1446              directories to add to pkg-config's search path
1447  PKG_CONFIG_LIBDIR
1448              path overriding pkg-config's built-in search path
1449  XTRAP_CFLAGS
1450              C compiler flags for XTRAP, overriding pkg-config
1451  XTRAP_LIBS  linker flags for XTRAP, overriding pkg-config
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519libXTrap configure 1.0.1
1520generated by GNU Autoconf 2.69
1521
1522Copyright (C) 2012 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext conftest$ac_exeext
1578  if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_link") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest$ac_exeext && {
1597	 test "$cross_compiling" = yes ||
1598	 test -x conftest$ac_exeext
1599       }; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609  # interfere with the next link command; also delete a directory that is
1610  # left behind by Apple's compiler.  We do this before executing the actions.
1611  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627  $as_echo_n "(cached) " >&6
1628else
1629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635  eval "$3=yes"
1636else
1637  eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745    which can conflict with char $2 (); below.
1746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747    <limits.h> exists even on freestanding compilers.  */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1795# ---------------------------------------------
1796# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797# accordingly.
1798ac_fn_c_check_decl ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  as_decl_name=`echo $2|sed 's/ *(.*//'`
1802  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1804$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811int
1812main ()
1813{
1814#ifndef $as_decl_name
1815#ifdef __cplusplus
1816  (void) $as_decl_use;
1817#else
1818  (void) $as_decl_name;
1819#endif
1820#endif
1821
1822  ;
1823  return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838} # ac_fn_c_check_decl
1839cat >config.log <<_ACEOF
1840This file contains any messages produced by compilers while
1841running configure, to aid debugging if configure makes a mistake.
1842
1843It was created by libXTrap $as_me 1.0.1, which was
1844generated by GNU Autoconf 2.69.  Invocation command line was
1845
1846  $ $0 $@
1847
1848_ACEOF
1849exec 5>>config.log
1850{
1851cat <<_ASUNAME
1852## --------- ##
1853## Platform. ##
1854## --------- ##
1855
1856hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1864
1865/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1866/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1867/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1869/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1870/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1871/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1872
1873_ASUNAME
1874
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878  IFS=$as_save_IFS
1879  test -z "$as_dir" && as_dir=.
1880    $as_echo "PATH: $as_dir"
1881  done
1882IFS=$as_save_IFS
1883
1884} >&5
1885
1886cat >&5 <<_ACEOF
1887
1888
1889## ----------- ##
1890## Core tests. ##
1891## ----------- ##
1892
1893_ACEOF
1894
1895
1896# Keep a trace of the command line.
1897# Strip out --no-create and --no-recursion so they do not pile up.
1898# Strip out --silent because we don't want to record it for future runs.
1899# Also quote any args containing shell meta-characters.
1900# Make two passes to allow for proper duplicate-argument suppression.
1901ac_configure_args=
1902ac_configure_args0=
1903ac_configure_args1=
1904ac_must_keep_next=false
1905for ac_pass in 1 2
1906do
1907  for ac_arg
1908  do
1909    case $ac_arg in
1910    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912    | -silent | --silent | --silen | --sile | --sil)
1913      continue ;;
1914    *\'*)
1915      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916    esac
1917    case $ac_pass in
1918    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919    2)
1920      as_fn_append ac_configure_args1 " '$ac_arg'"
1921      if test $ac_must_keep_next = true; then
1922	ac_must_keep_next=false # Got value, back to normal.
1923      else
1924	case $ac_arg in
1925	  *=* | --config-cache | -C | -disable-* | --disable-* \
1926	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928	  | -with-* | --with-* | -without-* | --without-* | --x)
1929	    case "$ac_configure_args0 " in
1930	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931	    esac
1932	    ;;
1933	  -* ) ac_must_keep_next=true ;;
1934	esac
1935      fi
1936      as_fn_append ac_configure_args " '$ac_arg'"
1937      ;;
1938    esac
1939  done
1940done
1941{ ac_configure_args0=; unset ac_configure_args0;}
1942{ ac_configure_args1=; unset ac_configure_args1;}
1943
1944# When interrupted or exit'd, cleanup temporary files, and complete
1945# config.log.  We remove comments because anyway the quotes in there
1946# would cause problems or look ugly.
1947# WARNING: Use '\'' to represent an apostrophe within the trap.
1948# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949trap 'exit_status=$?
1950  # Save into config.log some information that might help in debugging.
1951  {
1952    echo
1953
1954    $as_echo "## ---------------- ##
1955## Cache variables. ##
1956## ---------------- ##"
1957    echo
1958    # The following way of writing the cache mishandles newlines in values,
1959(
1960  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1961    eval ac_val=\$$ac_var
1962    case $ac_val in #(
1963    *${as_nl}*)
1964      case $ac_var in #(
1965      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1967      esac
1968      case $ac_var in #(
1969      _ | IFS | as_nl) ;; #(
1970      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1971      *) { eval $ac_var=; unset $ac_var;} ;;
1972      esac ;;
1973    esac
1974  done
1975  (set) 2>&1 |
1976    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977    *${as_nl}ac_space=\ *)
1978      sed -n \
1979	"s/'\''/'\''\\\\'\'''\''/g;
1980	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981      ;; #(
1982    *)
1983      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984      ;;
1985    esac |
1986    sort
1987)
1988    echo
1989
1990    $as_echo "## ----------------- ##
1991## Output variables. ##
1992## ----------------- ##"
1993    echo
1994    for ac_var in $ac_subst_vars
1995    do
1996      eval ac_val=\$$ac_var
1997      case $ac_val in
1998      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999      esac
2000      $as_echo "$ac_var='\''$ac_val'\''"
2001    done | sort
2002    echo
2003
2004    if test -n "$ac_subst_files"; then
2005      $as_echo "## ------------------- ##
2006## File substitutions. ##
2007## ------------------- ##"
2008      echo
2009      for ac_var in $ac_subst_files
2010      do
2011	eval ac_val=\$$ac_var
2012	case $ac_val in
2013	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014	esac
2015	$as_echo "$ac_var='\''$ac_val'\''"
2016      done | sort
2017      echo
2018    fi
2019
2020    if test -s confdefs.h; then
2021      $as_echo "## ----------- ##
2022## confdefs.h. ##
2023## ----------- ##"
2024      echo
2025      cat confdefs.h
2026      echo
2027    fi
2028    test "$ac_signal" != 0 &&
2029      $as_echo "$as_me: caught signal $ac_signal"
2030    $as_echo "$as_me: exit $exit_status"
2031  } >&5
2032  rm -f core *.core core.conftest.* &&
2033    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034    exit $exit_status
2035' 0
2036for ac_signal in 1 2 13 15; do
2037  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038done
2039ac_signal=0
2040
2041# confdefs.h avoids OS command line length limits that DEFS can exceed.
2042rm -f -r conftest* confdefs.h
2043
2044$as_echo "/* confdefs.h */" > confdefs.h
2045
2046# Predefined preprocessor variables.
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_NAME "$PACKAGE_NAME"
2050_ACEOF
2051
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054_ACEOF
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_VERSION "$PACKAGE_VERSION"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_STRING "$PACKAGE_STRING"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_URL "$PACKAGE_URL"
2070_ACEOF
2071
2072
2073# Let the site file select an alternate cache file if it wants to.
2074# Prefer an explicitly selected file to automatically selected ones.
2075ac_site_file1=NONE
2076ac_site_file2=NONE
2077if test -n "$CONFIG_SITE"; then
2078  # We do not want a PATH search for config.site.
2079  case $CONFIG_SITE in #((
2080    -*)  ac_site_file1=./$CONFIG_SITE;;
2081    */*) ac_site_file1=$CONFIG_SITE;;
2082    *)   ac_site_file1=./$CONFIG_SITE;;
2083  esac
2084elif test "x$prefix" != xNONE; then
2085  ac_site_file1=$prefix/share/config.site
2086  ac_site_file2=$prefix/etc/config.site
2087else
2088  ac_site_file1=$ac_default_prefix/share/config.site
2089  ac_site_file2=$ac_default_prefix/etc/config.site
2090fi
2091for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092do
2093  test "x$ac_site_file" = xNONE && continue
2094  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2095    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2097    sed 's/^/| /' "$ac_site_file" >&5
2098    . "$ac_site_file" \
2099      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2101as_fn_error $? "failed to load site script $ac_site_file
2102See \`config.log' for more details" "$LINENO" 5; }
2103  fi
2104done
2105
2106if test -r "$cache_file"; then
2107  # Some versions of bash will fail to source /dev/null (special files
2108  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2109  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111$as_echo "$as_me: loading cache $cache_file" >&6;}
2112    case $cache_file in
2113      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114      *)                      . "./$cache_file";;
2115    esac
2116  fi
2117else
2118  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119$as_echo "$as_me: creating cache $cache_file" >&6;}
2120  >$cache_file
2121fi
2122
2123# Check that the precious variables saved in the cache have kept the same
2124# value.
2125ac_cache_corrupted=false
2126for ac_var in $ac_precious_vars; do
2127  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128  eval ac_new_set=\$ac_env_${ac_var}_set
2129  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130  eval ac_new_val=\$ac_env_${ac_var}_value
2131  case $ac_old_set,$ac_new_set in
2132    set,)
2133      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135      ac_cache_corrupted=: ;;
2136    ,set)
2137      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2138$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139      ac_cache_corrupted=: ;;
2140    ,);;
2141    *)
2142      if test "x$ac_old_val" != "x$ac_new_val"; then
2143	# differences in whitespace do not lead to failure.
2144	ac_old_val_w=`echo x $ac_old_val`
2145	ac_new_val_w=`echo x $ac_new_val`
2146	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2148$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149	  ac_cache_corrupted=:
2150	else
2151	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153	  eval $ac_var=\$ac_old_val
2154	fi
2155	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2156$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2157	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2158$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2159      fi;;
2160  esac
2161  # Pass precious variables to config.status.
2162  if test "$ac_new_set" = set; then
2163    case $ac_new_val in
2164    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2165    *) ac_arg=$ac_var=$ac_new_val ;;
2166    esac
2167    case " $ac_configure_args " in
2168      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2169      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2170    esac
2171  fi
2172done
2173if $ac_cache_corrupted; then
2174  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2177$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179fi
2180## -------------------- ##
2181## Main body of script. ##
2182## -------------------- ##
2183
2184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
2190
2191am__api_version='1.13'
2192
2193ac_aux_dir=
2194for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195  if test -f "$ac_dir/install-sh"; then
2196    ac_aux_dir=$ac_dir
2197    ac_install_sh="$ac_aux_dir/install-sh -c"
2198    break
2199  elif test -f "$ac_dir/install.sh"; then
2200    ac_aux_dir=$ac_dir
2201    ac_install_sh="$ac_aux_dir/install.sh -c"
2202    break
2203  elif test -f "$ac_dir/shtool"; then
2204    ac_aux_dir=$ac_dir
2205    ac_install_sh="$ac_aux_dir/shtool install -c"
2206    break
2207  fi
2208done
2209if test -z "$ac_aux_dir"; then
2210  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211fi
2212
2213# These three variables are undocumented and unsupported,
2214# and are intended to be withdrawn in a future Autoconf release.
2215# They can cause serious problems if a builder's source tree is in a directory
2216# whose full name contains unusual characters.
2217ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222# Find a good install program.  We prefer a C program (faster),
2223# so one script is as good as another.  But avoid the broken or
2224# incompatible versions:
2225# SysV /etc/install, /usr/sbin/install
2226# SunOS /usr/etc/install
2227# IRIX /sbin/install
2228# AIX /bin/install
2229# AmigaOS /C/install, which installs bootblocks on floppy discs
2230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233# OS/2's system install, which has a completely different semantic
2234# ./install, which can be erroneously created by make from ./install.sh.
2235# Reject install programs that cannot install multiple files.
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237$as_echo_n "checking for a BSD-compatible install... " >&6; }
2238if test -z "$INSTALL"; then
2239if ${ac_cv_path_install+:} false; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    # Account for people who put trailing slashes in PATH elements.
2248case $as_dir/ in #((
2249  ./ | .// | /[cC]/* | \
2250  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252  /usr/ucb/* ) ;;
2253  *)
2254    # OSF1 and SCO ODT 3.0 have their own names for install.
2255    # Don't use installbsd from OSF since it installs stuff as root
2256    # by default.
2257    for ac_prog in ginstall scoinst install; do
2258      for ac_exec_ext in '' $ac_executable_extensions; do
2259	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2260	  if test $ac_prog = install &&
2261	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262	    # AIX install.  It has an incompatible calling convention.
2263	    :
2264	  elif test $ac_prog = install &&
2265	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266	    # program-specific install script used by HP pwplus--don't use.
2267	    :
2268	  else
2269	    rm -rf conftest.one conftest.two conftest.dir
2270	    echo one > conftest.one
2271	    echo two > conftest.two
2272	    mkdir conftest.dir
2273	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274	      test -s conftest.one && test -s conftest.two &&
2275	      test -s conftest.dir/conftest.one &&
2276	      test -s conftest.dir/conftest.two
2277	    then
2278	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2279	      break 3
2280	    fi
2281	  fi
2282	fi
2283      done
2284    done
2285    ;;
2286esac
2287
2288  done
2289IFS=$as_save_IFS
2290
2291rm -rf conftest.one conftest.two conftest.dir
2292
2293fi
2294  if test "${ac_cv_path_install+set}" = set; then
2295    INSTALL=$ac_cv_path_install
2296  else
2297    # As a last resort, use the slow shell script.  Don't cache a
2298    # value for INSTALL within a source directory, because that will
2299    # break other packages using the cache if that directory is
2300    # removed, or if the value is a relative name.
2301    INSTALL=$ac_install_sh
2302  fi
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305$as_echo "$INSTALL" >&6; }
2306
2307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308# It thinks the first close brace ends the variable substitution.
2309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316$as_echo_n "checking whether build environment is sane... " >&6; }
2317# Reject unsafe characters in $srcdir or the absolute working directory
2318# name.  Accept space and tab only in the latter.
2319am_lf='
2320'
2321case `pwd` in
2322  *[\\\"\#\$\&\'\`$am_lf]*)
2323    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2324esac
2325case $srcdir in
2326  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2327    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2328esac
2329
2330# Do 'set' in a subshell so we don't clobber the current shell's
2331# arguments.  Must try -L first in case configure is actually a
2332# symlink; some systems play weird games with the mod time of symlinks
2333# (eg FreeBSD returns the mod time of the symlink's containing
2334# directory).
2335if (
2336   am_has_slept=no
2337   for am_try in 1 2; do
2338     echo "timestamp, slept: $am_has_slept" > conftest.file
2339     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340     if test "$*" = "X"; then
2341	# -L didn't work.
2342	set X `ls -t "$srcdir/configure" conftest.file`
2343     fi
2344     if test "$*" != "X $srcdir/configure conftest.file" \
2345	&& test "$*" != "X conftest.file $srcdir/configure"; then
2346
2347	# If neither matched, then we have a broken ls.  This can happen
2348	# if, for instance, CONFIG_SHELL is bash and it inherits a
2349	# broken ls alias from the environment.  This has actually
2350	# happened.  Such a system could not be considered "sane".
2351	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2352  alias in your environment" "$LINENO" 5
2353     fi
2354     if test "$2" = conftest.file || test $am_try -eq 2; then
2355       break
2356     fi
2357     # Just in case.
2358     sleep 1
2359     am_has_slept=yes
2360   done
2361   test "$2" = conftest.file
2362   )
2363then
2364   # Ok.
2365   :
2366else
2367   as_fn_error $? "newly created file is older than distributed files!
2368Check your system clock" "$LINENO" 5
2369fi
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2371$as_echo "yes" >&6; }
2372# If we didn't sleep, we still need to ensure time stamps of config.status and
2373# generated files are strictly newer.
2374am_sleep_pid=
2375if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2376  ( sleep 1 ) &
2377  am_sleep_pid=$!
2378fi
2379
2380rm -f conftest.file
2381
2382test "$program_prefix" != NONE &&
2383  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2384# Use a double $ so make ignores it.
2385test "$program_suffix" != NONE &&
2386  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2387# Double any \ or $.
2388# By default was `s,x,x', remove it if useless.
2389ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2390program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2391
2392# expand $ac_aux_dir to an absolute path
2393am_aux_dir=`cd $ac_aux_dir && pwd`
2394
2395if test x"${MISSING+set}" != xset; then
2396  case $am_aux_dir in
2397  *\ * | *\	*)
2398    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2399  *)
2400    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2401  esac
2402fi
2403# Use eval to expand $SHELL
2404if eval "$MISSING --is-lightweight"; then
2405  am_missing_run="$MISSING "
2406else
2407  am_missing_run=
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2409$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2410fi
2411
2412if test x"${install_sh}" != xset; then
2413  case $am_aux_dir in
2414  *\ * | *\	*)
2415    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2416  *)
2417    install_sh="\${SHELL} $am_aux_dir/install-sh"
2418  esac
2419fi
2420
2421# Installed binaries are usually stripped using 'strip' when the user
2422# run "make install-strip".  However 'strip' might not be the right
2423# tool to use in cross-compilation environments, therefore Automake
2424# will honor the 'STRIP' environment variable to overrule this program.
2425if test "$cross_compiling" != no; then
2426  if test -n "$ac_tool_prefix"; then
2427  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2428set dummy ${ac_tool_prefix}strip; ac_word=$2
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430$as_echo_n "checking for $ac_word... " >&6; }
2431if ${ac_cv_prog_STRIP+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  if test -n "$STRIP"; then
2435  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    for ac_exec_ext in '' $ac_executable_extensions; do
2443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446    break 2
2447  fi
2448done
2449  done
2450IFS=$as_save_IFS
2451
2452fi
2453fi
2454STRIP=$ac_cv_prog_STRIP
2455if test -n "$STRIP"; then
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2457$as_echo "$STRIP" >&6; }
2458else
2459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460$as_echo "no" >&6; }
2461fi
2462
2463
2464fi
2465if test -z "$ac_cv_prog_STRIP"; then
2466  ac_ct_STRIP=$STRIP
2467  # Extract the first word of "strip", so it can be a program name with args.
2468set dummy strip; ac_word=$2
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
2471if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2472  $as_echo_n "(cached) " >&6
2473else
2474  if test -n "$ac_ct_STRIP"; then
2475  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482    for ac_exec_ext in '' $ac_executable_extensions; do
2483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484    ac_cv_prog_ac_ct_STRIP="strip"
2485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486    break 2
2487  fi
2488done
2489  done
2490IFS=$as_save_IFS
2491
2492fi
2493fi
2494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2495if test -n "$ac_ct_STRIP"; then
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2497$as_echo "$ac_ct_STRIP" >&6; }
2498else
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500$as_echo "no" >&6; }
2501fi
2502
2503  if test "x$ac_ct_STRIP" = x; then
2504    STRIP=":"
2505  else
2506    case $cross_compiling:$ac_tool_warned in
2507yes:)
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510ac_tool_warned=yes ;;
2511esac
2512    STRIP=$ac_ct_STRIP
2513  fi
2514else
2515  STRIP="$ac_cv_prog_STRIP"
2516fi
2517
2518fi
2519INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2522$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2523if test -z "$MKDIR_P"; then
2524  if ${ac_cv_path_mkdir+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_prog in mkdir gmkdir; do
2533	 for ac_exec_ext in '' $ac_executable_extensions; do
2534	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2535	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2536	     'mkdir (GNU coreutils) '* | \
2537	     'mkdir (coreutils) '* | \
2538	     'mkdir (fileutils) '4.1*)
2539	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2540	       break 3;;
2541	   esac
2542	 done
2543       done
2544  done
2545IFS=$as_save_IFS
2546
2547fi
2548
2549  test -d ./--version && rmdir ./--version
2550  if test "${ac_cv_path_mkdir+set}" = set; then
2551    MKDIR_P="$ac_cv_path_mkdir -p"
2552  else
2553    # As a last resort, use the slow shell script.  Don't cache a
2554    # value for MKDIR_P within a source directory, because that will
2555    # break other packages using the cache if that directory is
2556    # removed, or if the value is a relative name.
2557    MKDIR_P="$ac_install_sh -d"
2558  fi
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2561$as_echo "$MKDIR_P" >&6; }
2562
2563for ac_prog in gawk mawk nawk awk
2564do
2565  # Extract the first word of "$ac_prog", so it can be a program name with args.
2566set dummy $ac_prog; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if ${ac_cv_prog_AWK+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  if test -n "$AWK"; then
2573  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    for ac_exec_ext in '' $ac_executable_extensions; do
2581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582    ac_cv_prog_AWK="$ac_prog"
2583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584    break 2
2585  fi
2586done
2587  done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592AWK=$ac_cv_prog_AWK
2593if test -n "$AWK"; then
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2595$as_echo "$AWK" >&6; }
2596else
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602  test -n "$AWK" && break
2603done
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2606$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2607set x ${MAKE-make}
2608ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2609if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  cat >conftest.make <<\_ACEOF
2613SHELL = /bin/sh
2614all:
2615	@echo '@@@%%%=$(MAKE)=@@@%%%'
2616_ACEOF
2617# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2618case `${MAKE-make} -f conftest.make 2>/dev/null` in
2619  *@@@%%%=?*=@@@%%%*)
2620    eval ac_cv_prog_make_${ac_make}_set=yes;;
2621  *)
2622    eval ac_cv_prog_make_${ac_make}_set=no;;
2623esac
2624rm -f conftest.make
2625fi
2626if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628$as_echo "yes" >&6; }
2629  SET_MAKE=
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633  SET_MAKE="MAKE=${MAKE-make}"
2634fi
2635
2636rm -rf .tst 2>/dev/null
2637mkdir .tst 2>/dev/null
2638if test -d .tst; then
2639  am__leading_dot=.
2640else
2641  am__leading_dot=_
2642fi
2643rmdir .tst 2>/dev/null
2644
2645# Check whether --enable-silent-rules was given.
2646if test "${enable_silent_rules+set}" = set; then :
2647  enableval=$enable_silent_rules;
2648fi
2649
2650case $enable_silent_rules in # (((
2651  yes) AM_DEFAULT_VERBOSITY=0;;
2652   no) AM_DEFAULT_VERBOSITY=1;;
2653    *) AM_DEFAULT_VERBOSITY=1;;
2654esac
2655am_make=${MAKE-make}
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2657$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2658if ${am_cv_make_support_nested_variables+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if $as_echo 'TRUE=$(BAR$(V))
2662BAR0=false
2663BAR1=true
2664V=1
2665am__doit:
2666	@$(TRUE)
2667.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2668  am_cv_make_support_nested_variables=yes
2669else
2670  am_cv_make_support_nested_variables=no
2671fi
2672fi
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2674$as_echo "$am_cv_make_support_nested_variables" >&6; }
2675if test $am_cv_make_support_nested_variables = yes; then
2676    AM_V='$(V)'
2677  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2678else
2679  AM_V=$AM_DEFAULT_VERBOSITY
2680  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2681fi
2682AM_BACKSLASH='\'
2683
2684if test "`cd $srcdir && pwd`" != "`pwd`"; then
2685  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2686  # is not polluted with repeated "-I."
2687  am__isrc=' -I$(srcdir)'
2688  # test to see if srcdir already configured
2689  if test -f $srcdir/config.status; then
2690    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2691  fi
2692fi
2693
2694# test whether we have cygpath
2695if test -z "$CYGPATH_W"; then
2696  if (cygpath --version) >/dev/null 2>/dev/null; then
2697    CYGPATH_W='cygpath -w'
2698  else
2699    CYGPATH_W=echo
2700  fi
2701fi
2702
2703
2704# Define the identity of the package.
2705 PACKAGE='libXTrap'
2706 VERSION='1.0.1'
2707
2708
2709cat >>confdefs.h <<_ACEOF
2710#define PACKAGE "$PACKAGE"
2711_ACEOF
2712
2713
2714cat >>confdefs.h <<_ACEOF
2715#define VERSION "$VERSION"
2716_ACEOF
2717
2718# Some tools Automake needs.
2719
2720ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2721
2722
2723AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2724
2725
2726AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2727
2728
2729AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2730
2731
2732MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733
2734# For better backward compatibility.  To be removed once Automake 1.9.x
2735# dies out for good.  For more background, see:
2736# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2737# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2738mkdir_p='$(MKDIR_P)'
2739
2740# We need awk for the "check" target.  The system "awk" is bad on
2741# some platforms.
2742# Always define AMTAR for backward compatibility.  Yes, it's still used
2743# in the wild :-(  We should find a proper way to deprecate it ...
2744AMTAR='$${TAR-tar}'
2745
2746am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2747
2748
2749
2750
2751
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2754$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2755    # Check whether --enable-maintainer-mode was given.
2756if test "${enable_maintainer_mode+set}" = set; then :
2757  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2758else
2759  USE_MAINTAINER_MODE=no
2760fi
2761
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2763$as_echo "$USE_MAINTAINER_MODE" >&6; }
2764   if test $USE_MAINTAINER_MODE = yes; then
2765  MAINTAINER_MODE_TRUE=
2766  MAINTAINER_MODE_FALSE='#'
2767else
2768  MAINTAINER_MODE_TRUE='#'
2769  MAINTAINER_MODE_FALSE=
2770fi
2771
2772  MAINT=$MAINTAINER_MODE_TRUE
2773
2774
2775
2776# Require xorg-macros: XORG_COMPILER_FLAGS, XORG_CHANGELOG
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788ac_config_headers="$ac_config_headers config.h"
2789
2790
2791# Check for progs
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797if test -n "$ac_tool_prefix"; then
2798  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}gcc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_CC+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835fi
2836if test -z "$ac_cv_prog_CC"; then
2837  ac_ct_CC=$CC
2838  # Extract the first word of "gcc", so it can be a program name with args.
2839set dummy gcc; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_ac_ct_CC+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$ac_ct_CC"; then
2846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_ac_ct_CC="gcc"
2856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866if test -n "$ac_ct_CC"; then
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868$as_echo "$ac_ct_CC" >&6; }
2869else
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874  if test "x$ac_ct_CC" = x; then
2875    CC=""
2876  else
2877    case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883    CC=$ac_ct_CC
2884  fi
2885else
2886  CC="$ac_cv_prog_CC"
2887fi
2888
2889if test -z "$CC"; then
2890          if test -n "$ac_tool_prefix"; then
2891    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}cc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_CC="${ac_tool_prefix}cc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928  fi
2929fi
2930if test -z "$CC"; then
2931  # Extract the first word of "cc", so it can be a program name with args.
2932set dummy cc; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$CC"; then
2939  ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941  ac_prog_rejected=no
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945  IFS=$as_save_IFS
2946  test -z "$as_dir" && as_dir=.
2947    for ac_exec_ext in '' $ac_executable_extensions; do
2948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2950       ac_prog_rejected=yes
2951       continue
2952     fi
2953    ac_cv_prog_CC="cc"
2954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958  done
2959IFS=$as_save_IFS
2960
2961if test $ac_prog_rejected = yes; then
2962  # We found a bogon in the path, so make sure we never use it.
2963  set dummy $ac_cv_prog_CC
2964  shift
2965  if test $# != 0; then
2966    # We chose a different compiler from the bogus one.
2967    # However, it has the same basename, so the bogon will be chosen
2968    # first if we set CC to just the basename; use the full file name.
2969    shift
2970    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971  fi
2972fi
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978$as_echo "$CC" >&6; }
2979else
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984
2985fi
2986if test -z "$CC"; then
2987  if test -n "$ac_tool_prefix"; then
2988  for ac_prog in cl.exe
2989  do
2990    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if ${ac_cv_prog_CC+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  if test -n "$CC"; then
2998  ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003  IFS=$as_save_IFS
3004  test -z "$as_dir" && as_dir=.
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017CC=$ac_cv_prog_CC
3018if test -n "$CC"; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020$as_echo "$CC" >&6; }
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027    test -n "$CC" && break
3028  done
3029fi
3030if test -z "$CC"; then
3031  ac_ct_CC=$CC
3032  for ac_prog in cl.exe
3033do
3034  # Extract the first word of "$ac_prog", so it can be a program name with args.
3035set dummy $ac_prog; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_ac_ct_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$ac_ct_CC"; then
3042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051    ac_cv_prog_ac_ct_CC="$ac_prog"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062if test -n "$ac_ct_CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3064$as_echo "$ac_ct_CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071  test -n "$ac_ct_CC" && break
3072done
3073
3074  if test "x$ac_ct_CC" = x; then
3075    CC=""
3076  else
3077    case $cross_compiling:$ac_tool_warned in
3078yes:)
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081ac_tool_warned=yes ;;
3082esac
3083    CC=$ac_ct_CC
3084  fi
3085fi
3086
3087fi
3088
3089
3090test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error $? "no acceptable C compiler found in \$PATH
3093See \`config.log' for more details" "$LINENO" 5; }
3094
3095# Provide some information about the compiler.
3096$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3097set X $ac_compile
3098ac_compiler=$2
3099for ac_option in --version -v -V -qversion; do
3100  { { ac_try="$ac_compiler $ac_option >&5"
3101case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3108  ac_status=$?
3109  if test -s conftest.err; then
3110    sed '10a\
3111... rest of stderr output deleted ...
3112         10q' conftest.err >conftest.er1
3113    cat conftest.er1 >&5
3114  fi
3115  rm -f conftest.er1 conftest.err
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }
3118done
3119
3120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121/* end confdefs.h.  */
3122
3123int
3124main ()
3125{
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131ac_clean_files_save=$ac_clean_files
3132ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3133# Try to create an executable without -o first, disregard a.out.
3134# It will help us diagnose broken compilers, and finding out an intuition
3135# of exeext.
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3137$as_echo_n "checking whether the C compiler works... " >&6; }
3138ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3139
3140# The possible output files:
3141ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3142
3143ac_rmfiles=
3144for ac_file in $ac_files
3145do
3146  case $ac_file in
3147    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3149  esac
3150done
3151rm -f $ac_rmfiles
3152
3153if { { ac_try="$ac_link_default"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159$as_echo "$ac_try_echo"; } >&5
3160  (eval "$ac_link_default") 2>&5
3161  ac_status=$?
3162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163  test $ac_status = 0; }; then :
3164  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3166# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3167# so that the user can short-circuit this test for compilers unknown to
3168# Autoconf.
3169for ac_file in $ac_files ''
3170do
3171  test -f "$ac_file" || continue
3172  case $ac_file in
3173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3174	;;
3175    [ab].out )
3176	# We found the default executable, but exeext='' is most
3177	# certainly right.
3178	break;;
3179    *.* )
3180	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3181	then :; else
3182	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183	fi
3184	# We set ac_cv_exeext here because the later test for it is not
3185	# safe: cross compilers may not add the suffix if given an `-o'
3186	# argument, so we may need to know it at that point already.
3187	# Even if this section looks crufty: it has the advantage of
3188	# actually working.
3189	break;;
3190    * )
3191	break;;
3192  esac
3193done
3194test "$ac_cv_exeext" = no && ac_cv_exeext=
3195
3196else
3197  ac_file=''
3198fi
3199if test -z "$ac_file"; then :
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202$as_echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207as_fn_error 77 "C compiler cannot create executables
3208See \`config.log' for more details" "$LINENO" 5; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211$as_echo "yes" >&6; }
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3214$as_echo_n "checking for C compiler default output file name... " >&6; }
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3216$as_echo "$ac_file" >&6; }
3217ac_exeext=$ac_cv_exeext
3218
3219rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3220ac_clean_files=$ac_clean_files_save
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3222$as_echo_n "checking for suffix of executables... " >&6; }
3223if { { ac_try="$ac_link"
3224case "(($ac_try" in
3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226  *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
3230  (eval "$ac_link") 2>&5
3231  ac_status=$?
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; }; then :
3234  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3235# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3236# work properly (i.e., refer to `conftest.exe'), while it won't with
3237# `rm'.
3238for ac_file in conftest.exe conftest conftest.*; do
3239  test -f "$ac_file" || continue
3240  case $ac_file in
3241    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243	  break;;
3244    * ) break;;
3245  esac
3246done
3247else
3248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3251See \`config.log' for more details" "$LINENO" 5; }
3252fi
3253rm -f conftest conftest$ac_cv_exeext
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3255$as_echo "$ac_cv_exeext" >&6; }
3256
3257rm -f conftest.$ac_ext
3258EXEEXT=$ac_cv_exeext
3259ac_exeext=$EXEEXT
3260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262#include <stdio.h>
3263int
3264main ()
3265{
3266FILE *f = fopen ("conftest.out", "w");
3267 return ferror (f) || fclose (f) != 0;
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273ac_clean_files="$ac_clean_files conftest.out"
3274# Check that the compiler produces executables we can run.  If not, either
3275# the compiler is broken, or we cross compile.
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3277$as_echo_n "checking whether we are cross compiling... " >&6; }
3278if test "$cross_compiling" != yes; then
3279  { { ac_try="$ac_link"
3280case "(($ac_try" in
3281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282  *) ac_try_echo=$ac_try;;
3283esac
3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285$as_echo "$ac_try_echo"; } >&5
3286  (eval "$ac_link") 2>&5
3287  ac_status=$?
3288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289  test $ac_status = 0; }
3290  if { ac_try='./conftest$ac_cv_exeext'
3291  { { case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297  (eval "$ac_try") 2>&5
3298  ac_status=$?
3299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300  test $ac_status = 0; }; }; then
3301    cross_compiling=no
3302  else
3303    if test "$cross_compiling" = maybe; then
3304	cross_compiling=yes
3305    else
3306	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308as_fn_error $? "cannot run C compiled programs.
3309If you meant to cross compile, use \`--host'.
3310See \`config.log' for more details" "$LINENO" 5; }
3311    fi
3312  fi
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3315$as_echo "$cross_compiling" >&6; }
3316
3317rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3318ac_clean_files=$ac_clean_files_save
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3320$as_echo_n "checking for suffix of object files... " >&6; }
3321if ${ac_cv_objext+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325/* end confdefs.h.  */
3326
3327int
3328main ()
3329{
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335rm -f conftest.o conftest.obj
3336if { { ac_try="$ac_compile"
3337case "(($ac_try" in
3338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339  *) ac_try_echo=$ac_try;;
3340esac
3341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342$as_echo "$ac_try_echo"; } >&5
3343  (eval "$ac_compile") 2>&5
3344  ac_status=$?
3345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346  test $ac_status = 0; }; then :
3347  for ac_file in conftest.o conftest.obj conftest.*; do
3348  test -f "$ac_file" || continue;
3349  case $ac_file in
3350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3351    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352       break;;
3353  esac
3354done
3355else
3356  $as_echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error $? "cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details" "$LINENO" 5; }
3363fi
3364rm -f conftest.$ac_cv_objext conftest.$ac_ext
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3367$as_echo "$ac_cv_objext" >&6; }
3368OBJEXT=$ac_cv_objext
3369ac_objext=$OBJEXT
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3371$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3372if ${ac_cv_c_compiler_gnu+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381#ifndef __GNUC__
3382       choke me
3383#endif
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389if ac_fn_c_try_compile "$LINENO"; then :
3390  ac_compiler_gnu=yes
3391else
3392  ac_compiler_gnu=no
3393fi
3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395ac_cv_c_compiler_gnu=$ac_compiler_gnu
3396
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3399$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3400if test $ac_compiler_gnu = yes; then
3401  GCC=yes
3402else
3403  GCC=
3404fi
3405ac_test_CFLAGS=${CFLAGS+set}
3406ac_save_CFLAGS=$CFLAGS
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3408$as_echo_n "checking whether $CC accepts -g... " >&6; }
3409if ${ac_cv_prog_cc_g+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  ac_save_c_werror_flag=$ac_c_werror_flag
3413   ac_c_werror_flag=yes
3414   ac_cv_prog_cc_g=no
3415   CFLAGS="-g"
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427if ac_fn_c_try_compile "$LINENO"; then :
3428  ac_cv_prog_cc_g=yes
3429else
3430  CFLAGS=""
3431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433
3434int
3435main ()
3436{
3437
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442if ac_fn_c_try_compile "$LINENO"; then :
3443
3444else
3445  ac_c_werror_flag=$ac_save_c_werror_flag
3446	 CFLAGS="-g"
3447	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458if ac_fn_c_try_compile "$LINENO"; then :
3459  ac_cv_prog_cc_g=yes
3460fi
3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466   ac_c_werror_flag=$ac_save_c_werror_flag
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3469$as_echo "$ac_cv_prog_cc_g" >&6; }
3470if test "$ac_test_CFLAGS" = set; then
3471  CFLAGS=$ac_save_CFLAGS
3472elif test $ac_cv_prog_cc_g = yes; then
3473  if test "$GCC" = yes; then
3474    CFLAGS="-g -O2"
3475  else
3476    CFLAGS="-g"
3477  fi
3478else
3479  if test "$GCC" = yes; then
3480    CFLAGS="-O2"
3481  else
3482    CFLAGS=
3483  fi
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3486$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3487if ${ac_cv_prog_cc_c89+:} false; then :
3488  $as_echo_n "(cached) " >&6
3489else
3490  ac_cv_prog_cc_c89=no
3491ac_save_CC=$CC
3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494#include <stdarg.h>
3495#include <stdio.h>
3496struct stat;
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501     char **p;
3502     int i;
3503{
3504  return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508  char *s;
3509  va_list v;
3510  va_start (v,p);
3511  s = g (p, va_arg (v,int));
3512  va_end (v);
3513  return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3517   function prototypes and stuff, but not '\xHH' hex character constants.
3518   These don't provoke an error unfortunately, instead are silently treated
3519   as 'x'.  The following induces an error, until -std is added to get
3520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3521   array size at least.  It's necessary to write '\x00'==0 to get something
3522   that's true only with -std.  */
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3526   inside strings and character constants.  */
3527#define FOO(x) 'x'
3528int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3529
3530int test (int i, double x);
3531struct s1 {int (*f) (int a);};
3532struct s2 {int (*f) (double a);};
3533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534int argc;
3535char **argv;
3536int
3537main ()
3538{
3539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3545	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3546do
3547  CC="$ac_save_CC $ac_arg"
3548  if ac_fn_c_try_compile "$LINENO"; then :
3549  ac_cv_prog_cc_c89=$ac_arg
3550fi
3551rm -f core conftest.err conftest.$ac_objext
3552  test "x$ac_cv_prog_cc_c89" != "xno" && break
3553done
3554rm -f conftest.$ac_ext
3555CC=$ac_save_CC
3556
3557fi
3558# AC_CACHE_VAL
3559case "x$ac_cv_prog_cc_c89" in
3560  x)
3561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3562$as_echo "none needed" >&6; } ;;
3563  xno)
3564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3565$as_echo "unsupported" >&6; } ;;
3566  *)
3567    CC="$CC $ac_cv_prog_cc_c89"
3568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3569$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3570esac
3571if test "x$ac_cv_prog_cc_c89" != xno; then :
3572
3573fi
3574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580DEPDIR="${am__leading_dot}deps"
3581
3582ac_config_commands="$ac_config_commands depfiles"
3583
3584
3585am_make=${MAKE-make}
3586cat > confinc << 'END'
3587am__doit:
3588	@echo this is the am__doit target
3589.PHONY: am__doit
3590END
3591# If we don't find an include directive, just comment out the code.
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3593$as_echo_n "checking for style of include used by $am_make... " >&6; }
3594am__include="#"
3595am__quote=
3596_am_result=none
3597# First try GNU make style include.
3598echo "include confinc" > confmf
3599# Ignore all kinds of additional output from 'make'.
3600case `$am_make -s -f confmf 2> /dev/null` in #(
3601*the\ am__doit\ target*)
3602  am__include=include
3603  am__quote=
3604  _am_result=GNU
3605  ;;
3606esac
3607# Now try BSD make style include.
3608if test "$am__include" = "#"; then
3609   echo '.include "confinc"' > confmf
3610   case `$am_make -s -f confmf 2> /dev/null` in #(
3611   *the\ am__doit\ target*)
3612     am__include=.include
3613     am__quote="\""
3614     _am_result=BSD
3615     ;;
3616   esac
3617fi
3618
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3621$as_echo "$_am_result" >&6; }
3622rm -f confinc confmf
3623
3624# Check whether --enable-dependency-tracking was given.
3625if test "${enable_dependency_tracking+set}" = set; then :
3626  enableval=$enable_dependency_tracking;
3627fi
3628
3629if test "x$enable_dependency_tracking" != xno; then
3630  am_depcomp="$ac_aux_dir/depcomp"
3631  AMDEPBACKSLASH='\'
3632  am__nodep='_no'
3633fi
3634 if test "x$enable_dependency_tracking" != xno; then
3635  AMDEP_TRUE=
3636  AMDEP_FALSE='#'
3637else
3638  AMDEP_TRUE='#'
3639  AMDEP_FALSE=
3640fi
3641
3642
3643
3644depcc="$CC"   am_compiler_list=
3645
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3647$as_echo_n "checking dependency style of $depcc... " >&6; }
3648if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652  # We make a subdir and do the tests there.  Otherwise we can end up
3653  # making bogus files that we don't know about and never remove.  For
3654  # instance it was reported that on HP-UX the gcc test will end up
3655  # making a dummy file named 'D' -- because '-MD' means "put the output
3656  # in D".
3657  rm -rf conftest.dir
3658  mkdir conftest.dir
3659  # Copy depcomp to subdir because otherwise we won't find it if we're
3660  # using a relative directory.
3661  cp "$am_depcomp" conftest.dir
3662  cd conftest.dir
3663  # We will build objects and dependencies in a subdirectory because
3664  # it helps to detect inapplicable dependency modes.  For instance
3665  # both Tru64's cc and ICC support -MD to output dependencies as a
3666  # side effect of compilation, but ICC will put the dependencies in
3667  # the current directory while Tru64 will put them in the object
3668  # directory.
3669  mkdir sub
3670
3671  am_cv_CC_dependencies_compiler_type=none
3672  if test "$am_compiler_list" = ""; then
3673     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674  fi
3675  am__universal=false
3676  case " $depcc " in #(
3677     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3678     esac
3679
3680  for depmode in $am_compiler_list; do
3681    # Setup a source with many dependencies, because some compilers
3682    # like to wrap large dependency lists on column 80 (with \), and
3683    # we should not choose a depcomp mode which is confused by this.
3684    #
3685    # We need to recreate these files for each test, as the compiler may
3686    # overwrite some of them when testing with obscure command lines.
3687    # This happens at least with the AIX C compiler.
3688    : > sub/conftest.c
3689    for i in 1 2 3 4 5 6; do
3690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3692      # Solaris 10 /bin/sh.
3693      echo '/* dummy */' > sub/conftst$i.h
3694    done
3695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3696
3697    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3698    # mode.  It turns out that the SunPro C++ compiler does not properly
3699    # handle '-M -o', and we need to detect this.  Also, some Intel
3700    # versions had trouble with output in subdirs.
3701    am__obj=sub/conftest.${OBJEXT-o}
3702    am__minus_obj="-o $am__obj"
3703    case $depmode in
3704    gcc)
3705      # This depmode causes a compiler race in universal mode.
3706      test "$am__universal" = false || continue
3707      ;;
3708    nosideeffect)
3709      # After this tag, mechanisms are not by side-effect, so they'll
3710      # only be used when explicitly requested.
3711      if test "x$enable_dependency_tracking" = xyes; then
3712	continue
3713      else
3714	break
3715      fi
3716      ;;
3717    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3718      # This compiler won't grok '-c -o', but also, the minuso test has
3719      # not run yet.  These depmodes are late enough in the game, and
3720      # so weak that their functioning should not be impacted.
3721      am__obj=conftest.${OBJEXT-o}
3722      am__minus_obj=
3723      ;;
3724    none) break ;;
3725    esac
3726    if depmode=$depmode \
3727       source=sub/conftest.c object=$am__obj \
3728       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3729       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3730         >/dev/null 2>conftest.err &&
3731       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3733       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3735      # icc doesn't choke on unknown options, it will just issue warnings
3736      # or remarks (even with -Werror).  So we grep stderr for any message
3737      # that says an option was ignored or not supported.
3738      # When given -MP, icc 7.0 and 7.1 complain thusly:
3739      #   icc: Command line warning: ignoring option '-M'; no argument required
3740      # The diagnosis changed in icc 8.0:
3741      #   icc: Command line remark: option '-MP' not supported
3742      if (grep 'ignoring option' conftest.err ||
3743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3744        am_cv_CC_dependencies_compiler_type=$depmode
3745        break
3746      fi
3747    fi
3748  done
3749
3750  cd ..
3751  rm -rf conftest.dir
3752else
3753  am_cv_CC_dependencies_compiler_type=none
3754fi
3755
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3758$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3760
3761 if
3762  test "x$enable_dependency_tracking" != xno \
3763  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764  am__fastdepCC_TRUE=
3765  am__fastdepCC_FALSE='#'
3766else
3767  am__fastdepCC_TRUE='#'
3768  am__fastdepCC_FALSE=
3769fi
3770
3771
3772case `pwd` in
3773  *\ * | *\	*)
3774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3775$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3776esac
3777
3778
3779
3780macro_version='2.4.2'
3781macro_revision='1.3337'
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795ltmain="$ac_aux_dir/ltmain.sh"
3796
3797# Make sure we can run config.sub.
3798$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3799  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3800
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3802$as_echo_n "checking build system type... " >&6; }
3803if ${ac_cv_build+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  ac_build_alias=$build_alias
3807test "x$ac_build_alias" = x &&
3808  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3809test "x$ac_build_alias" = x &&
3810  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3811ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3812  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3813
3814fi
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3816$as_echo "$ac_cv_build" >&6; }
3817case $ac_cv_build in
3818*-*-*) ;;
3819*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3820esac
3821build=$ac_cv_build
3822ac_save_IFS=$IFS; IFS='-'
3823set x $ac_cv_build
3824shift
3825build_cpu=$1
3826build_vendor=$2
3827shift; shift
3828# Remember, the first character of IFS is used to create $*,
3829# except with old shells:
3830build_os=$*
3831IFS=$ac_save_IFS
3832case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3833
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3836$as_echo_n "checking host system type... " >&6; }
3837if ${ac_cv_host+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  if test "x$host_alias" = x; then
3841  ac_cv_host=$ac_cv_build
3842else
3843  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3844    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3845fi
3846
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3849$as_echo "$ac_cv_host" >&6; }
3850case $ac_cv_host in
3851*-*-*) ;;
3852*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3853esac
3854host=$ac_cv_host
3855ac_save_IFS=$IFS; IFS='-'
3856set x $ac_cv_host
3857shift
3858host_cpu=$1
3859host_vendor=$2
3860shift; shift
3861# Remember, the first character of IFS is used to create $*,
3862# except with old shells:
3863host_os=$*
3864IFS=$ac_save_IFS
3865case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3866
3867
3868# Backslashify metacharacters that are still active within
3869# double-quoted strings.
3870sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3871
3872# Same as above, but do not quote variable references.
3873double_quote_subst='s/\(["`\\]\)/\\\1/g'
3874
3875# Sed substitution to delay expansion of an escaped shell variable in a
3876# double_quote_subst'ed string.
3877delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3878
3879# Sed substitution to delay expansion of an escaped single quote.
3880delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3881
3882# Sed substitution to avoid accidental globbing in evaled expressions
3883no_glob_subst='s/\*/\\\*/g'
3884
3885ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3886ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3887ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3888
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3890$as_echo_n "checking how to print strings... " >&6; }
3891# Test print first, because it will be a builtin if present.
3892if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3893   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3894  ECHO='print -r --'
3895elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3896  ECHO='printf %s\n'
3897else
3898  # Use this function as a fallback that always works.
3899  func_fallback_echo ()
3900  {
3901    eval 'cat <<_LTECHO_EOF
3902$1
3903_LTECHO_EOF'
3904  }
3905  ECHO='func_fallback_echo'
3906fi
3907
3908# func_echo_all arg...
3909# Invoke $ECHO with all args, space-separated.
3910func_echo_all ()
3911{
3912    $ECHO ""
3913}
3914
3915case "$ECHO" in
3916  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3917$as_echo "printf" >&6; } ;;
3918  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3919$as_echo "print -r" >&6; } ;;
3920  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3921$as_echo "cat" >&6; } ;;
3922esac
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3938$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3939if ${ac_cv_path_SED+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3943     for ac_i in 1 2 3 4 5 6 7; do
3944       ac_script="$ac_script$as_nl$ac_script"
3945     done
3946     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3947     { ac_script=; unset ac_script;}
3948     if test -z "$SED"; then
3949  ac_path_SED_found=false
3950  # Loop through the user's path and test for each of PROGNAME-LIST
3951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956    for ac_prog in sed gsed; do
3957    for ac_exec_ext in '' $ac_executable_extensions; do
3958      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3959      as_fn_executable_p "$ac_path_SED" || continue
3960# Check for GNU ac_path_SED and select it if it is found.
3961  # Check for GNU $ac_path_SED
3962case `"$ac_path_SED" --version 2>&1` in
3963*GNU*)
3964  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3965*)
3966  ac_count=0
3967  $as_echo_n 0123456789 >"conftest.in"
3968  while :
3969  do
3970    cat "conftest.in" "conftest.in" >"conftest.tmp"
3971    mv "conftest.tmp" "conftest.in"
3972    cp "conftest.in" "conftest.nl"
3973    $as_echo '' >> "conftest.nl"
3974    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976    as_fn_arith $ac_count + 1 && ac_count=$as_val
3977    if test $ac_count -gt ${ac_path_SED_max-0}; then
3978      # Best one so far, save it but keep looking for a better one
3979      ac_cv_path_SED="$ac_path_SED"
3980      ac_path_SED_max=$ac_count
3981    fi
3982    # 10*(2^10) chars as input seems more than enough
3983    test $ac_count -gt 10 && break
3984  done
3985  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986esac
3987
3988      $ac_path_SED_found && break 3
3989    done
3990  done
3991  done
3992IFS=$as_save_IFS
3993  if test -z "$ac_cv_path_SED"; then
3994    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3995  fi
3996else
3997  ac_cv_path_SED=$SED
3998fi
3999
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4002$as_echo "$ac_cv_path_SED" >&6; }
4003 SED="$ac_cv_path_SED"
4004  rm -f conftest.sed
4005
4006test -z "$SED" && SED=sed
4007Xsed="$SED -e 1s/^X//"
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4020$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4021if ${ac_cv_path_GREP+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  if test -z "$GREP"; then
4025  ac_path_GREP_found=false
4026  # Loop through the user's path and test for each of PROGNAME-LIST
4027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029do
4030  IFS=$as_save_IFS
4031  test -z "$as_dir" && as_dir=.
4032    for ac_prog in grep ggrep; do
4033    for ac_exec_ext in '' $ac_executable_extensions; do
4034      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035      as_fn_executable_p "$ac_path_GREP" || continue
4036# Check for GNU ac_path_GREP and select it if it is found.
4037  # Check for GNU $ac_path_GREP
4038case `"$ac_path_GREP" --version 2>&1` in
4039*GNU*)
4040  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041*)
4042  ac_count=0
4043  $as_echo_n 0123456789 >"conftest.in"
4044  while :
4045  do
4046    cat "conftest.in" "conftest.in" >"conftest.tmp"
4047    mv "conftest.tmp" "conftest.in"
4048    cp "conftest.in" "conftest.nl"
4049    $as_echo 'GREP' >> "conftest.nl"
4050    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052    as_fn_arith $ac_count + 1 && ac_count=$as_val
4053    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054      # Best one so far, save it but keep looking for a better one
4055      ac_cv_path_GREP="$ac_path_GREP"
4056      ac_path_GREP_max=$ac_count
4057    fi
4058    # 10*(2^10) chars as input seems more than enough
4059    test $ac_count -gt 10 && break
4060  done
4061  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062esac
4063
4064      $ac_path_GREP_found && break 3
4065    done
4066  done
4067  done
4068IFS=$as_save_IFS
4069  if test -z "$ac_cv_path_GREP"; then
4070    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071  fi
4072else
4073  ac_cv_path_GREP=$GREP
4074fi
4075
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4078$as_echo "$ac_cv_path_GREP" >&6; }
4079 GREP="$ac_cv_path_GREP"
4080
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4083$as_echo_n "checking for egrep... " >&6; }
4084if ${ac_cv_path_EGREP+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4088   then ac_cv_path_EGREP="$GREP -E"
4089   else
4090     if test -z "$EGREP"; then
4091  ac_path_EGREP_found=false
4092  # Loop through the user's path and test for each of PROGNAME-LIST
4093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098    for ac_prog in egrep; do
4099    for ac_exec_ext in '' $ac_executable_extensions; do
4100      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4101      as_fn_executable_p "$ac_path_EGREP" || continue
4102# Check for GNU ac_path_EGREP and select it if it is found.
4103  # Check for GNU $ac_path_EGREP
4104case `"$ac_path_EGREP" --version 2>&1` in
4105*GNU*)
4106  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4107*)
4108  ac_count=0
4109  $as_echo_n 0123456789 >"conftest.in"
4110  while :
4111  do
4112    cat "conftest.in" "conftest.in" >"conftest.tmp"
4113    mv "conftest.tmp" "conftest.in"
4114    cp "conftest.in" "conftest.nl"
4115    $as_echo 'EGREP' >> "conftest.nl"
4116    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118    as_fn_arith $ac_count + 1 && ac_count=$as_val
4119    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4120      # Best one so far, save it but keep looking for a better one
4121      ac_cv_path_EGREP="$ac_path_EGREP"
4122      ac_path_EGREP_max=$ac_count
4123    fi
4124    # 10*(2^10) chars as input seems more than enough
4125    test $ac_count -gt 10 && break
4126  done
4127  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128esac
4129
4130      $ac_path_EGREP_found && break 3
4131    done
4132  done
4133  done
4134IFS=$as_save_IFS
4135  if test -z "$ac_cv_path_EGREP"; then
4136    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137  fi
4138else
4139  ac_cv_path_EGREP=$EGREP
4140fi
4141
4142   fi
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4145$as_echo "$ac_cv_path_EGREP" >&6; }
4146 EGREP="$ac_cv_path_EGREP"
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4150$as_echo_n "checking for fgrep... " >&6; }
4151if ${ac_cv_path_FGREP+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4155   then ac_cv_path_FGREP="$GREP -F"
4156   else
4157     if test -z "$FGREP"; then
4158  ac_path_FGREP_found=false
4159  # Loop through the user's path and test for each of PROGNAME-LIST
4160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_prog in fgrep; do
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4168      as_fn_executable_p "$ac_path_FGREP" || continue
4169# Check for GNU ac_path_FGREP and select it if it is found.
4170  # Check for GNU $ac_path_FGREP
4171case `"$ac_path_FGREP" --version 2>&1` in
4172*GNU*)
4173  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4174*)
4175  ac_count=0
4176  $as_echo_n 0123456789 >"conftest.in"
4177  while :
4178  do
4179    cat "conftest.in" "conftest.in" >"conftest.tmp"
4180    mv "conftest.tmp" "conftest.in"
4181    cp "conftest.in" "conftest.nl"
4182    $as_echo 'FGREP' >> "conftest.nl"
4183    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185    as_fn_arith $ac_count + 1 && ac_count=$as_val
4186    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4187      # Best one so far, save it but keep looking for a better one
4188      ac_cv_path_FGREP="$ac_path_FGREP"
4189      ac_path_FGREP_max=$ac_count
4190    fi
4191    # 10*(2^10) chars as input seems more than enough
4192    test $ac_count -gt 10 && break
4193  done
4194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195esac
4196
4197      $ac_path_FGREP_found && break 3
4198    done
4199  done
4200  done
4201IFS=$as_save_IFS
4202  if test -z "$ac_cv_path_FGREP"; then
4203    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204  fi
4205else
4206  ac_cv_path_FGREP=$FGREP
4207fi
4208
4209   fi
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4212$as_echo "$ac_cv_path_FGREP" >&6; }
4213 FGREP="$ac_cv_path_FGREP"
4214
4215
4216test -z "$GREP" && GREP=grep
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236# Check whether --with-gnu-ld was given.
4237if test "${with_gnu_ld+set}" = set; then :
4238  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4239else
4240  with_gnu_ld=no
4241fi
4242
4243ac_prog=ld
4244if test "$GCC" = yes; then
4245  # Check if gcc -print-prog-name=ld gives a path.
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4247$as_echo_n "checking for ld used by $CC... " >&6; }
4248  case $host in
4249  *-*-mingw*)
4250    # gcc leaves a trailing carriage return which upsets mingw
4251    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4252  *)
4253    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4254  esac
4255  case $ac_prog in
4256    # Accept absolute paths.
4257    [\\/]* | ?:[\\/]*)
4258      re_direlt='/[^/][^/]*/\.\./'
4259      # Canonicalize the pathname of ld
4260      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4261      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4262	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4263      done
4264      test -z "$LD" && LD="$ac_prog"
4265      ;;
4266  "")
4267    # If it fails, then pretend we aren't using GCC.
4268    ac_prog=ld
4269    ;;
4270  *)
4271    # If it is relative, then search for the first ld in PATH.
4272    with_gnu_ld=unknown
4273    ;;
4274  esac
4275elif test "$with_gnu_ld" = yes; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4277$as_echo_n "checking for GNU ld... " >&6; }
4278else
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4280$as_echo_n "checking for non-GNU ld... " >&6; }
4281fi
4282if ${lt_cv_path_LD+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  if test -z "$LD"; then
4286  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4287  for ac_dir in $PATH; do
4288    IFS="$lt_save_ifs"
4289    test -z "$ac_dir" && ac_dir=.
4290    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4291      lt_cv_path_LD="$ac_dir/$ac_prog"
4292      # Check to see if the program is GNU ld.  I'd rather use --version,
4293      # but apparently some variants of GNU ld only accept -v.
4294      # Break only if it was the GNU/non-GNU ld that we prefer.
4295      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4296      *GNU* | *'with BFD'*)
4297	test "$with_gnu_ld" != no && break
4298	;;
4299      *)
4300	test "$with_gnu_ld" != yes && break
4301	;;
4302      esac
4303    fi
4304  done
4305  IFS="$lt_save_ifs"
4306else
4307  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4308fi
4309fi
4310
4311LD="$lt_cv_path_LD"
4312if test -n "$LD"; then
4313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4314$as_echo "$LD" >&6; }
4315else
4316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317$as_echo "no" >&6; }
4318fi
4319test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4321$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4322if ${lt_cv_prog_gnu_ld+:} false; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4326case `$LD -v 2>&1 </dev/null` in
4327*GNU* | *'with BFD'*)
4328  lt_cv_prog_gnu_ld=yes
4329  ;;
4330*)
4331  lt_cv_prog_gnu_ld=no
4332  ;;
4333esac
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4336$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4337with_gnu_ld=$lt_cv_prog_gnu_ld
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4348$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4349if ${lt_cv_path_NM+:} false; then :
4350  $as_echo_n "(cached) " >&6
4351else
4352  if test -n "$NM"; then
4353  # Let the user override the test.
4354  lt_cv_path_NM="$NM"
4355else
4356  lt_nm_to_check="${ac_tool_prefix}nm"
4357  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4358    lt_nm_to_check="$lt_nm_to_check nm"
4359  fi
4360  for lt_tmp_nm in $lt_nm_to_check; do
4361    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4362    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4363      IFS="$lt_save_ifs"
4364      test -z "$ac_dir" && ac_dir=.
4365      tmp_nm="$ac_dir/$lt_tmp_nm"
4366      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4367	# Check to see if the nm accepts a BSD-compat flag.
4368	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4369	#   nm: unknown option "B" ignored
4370	# Tru64's nm complains that /dev/null is an invalid object file
4371	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4372	*/dev/null* | *'Invalid file or object type'*)
4373	  lt_cv_path_NM="$tmp_nm -B"
4374	  break
4375	  ;;
4376	*)
4377	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4378	  */dev/null*)
4379	    lt_cv_path_NM="$tmp_nm -p"
4380	    break
4381	    ;;
4382	  *)
4383	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4384	    continue # so that we can try to find one that supports BSD flags
4385	    ;;
4386	  esac
4387	  ;;
4388	esac
4389      fi
4390    done
4391    IFS="$lt_save_ifs"
4392  done
4393  : ${lt_cv_path_NM=no}
4394fi
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4397$as_echo "$lt_cv_path_NM" >&6; }
4398if test "$lt_cv_path_NM" != "no"; then
4399  NM="$lt_cv_path_NM"
4400else
4401  # Didn't find any BSD compatible name lister, look for dumpbin.
4402  if test -n "$DUMPBIN"; then :
4403    # Let the user override the test.
4404  else
4405    if test -n "$ac_tool_prefix"; then
4406  for ac_prog in dumpbin "link -dump"
4407  do
4408    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411$as_echo_n "checking for $ac_word... " >&6; }
4412if ${ac_cv_prog_DUMPBIN+:} false; then :
4413  $as_echo_n "(cached) " >&6
4414else
4415  if test -n "$DUMPBIN"; then
4416  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423    for ac_exec_ext in '' $ac_executable_extensions; do
4424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430  done
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435DUMPBIN=$ac_cv_prog_DUMPBIN
4436if test -n "$DUMPBIN"; then
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4438$as_echo "$DUMPBIN" >&6; }
4439else
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442fi
4443
4444
4445    test -n "$DUMPBIN" && break
4446  done
4447fi
4448if test -z "$DUMPBIN"; then
4449  ac_ct_DUMPBIN=$DUMPBIN
4450  for ac_prog in dumpbin "link -dump"
4451do
4452  # Extract the first word of "$ac_prog", so it can be a program name with args.
4453set dummy $ac_prog; ac_word=$2
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455$as_echo_n "checking for $ac_word... " >&6; }
4456if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  if test -n "$ac_ct_DUMPBIN"; then
4460  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_exec_ext in '' $ac_executable_extensions; do
4468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471    break 2
4472  fi
4473done
4474  done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4480if test -n "$ac_ct_DUMPBIN"; then
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4482$as_echo "$ac_ct_DUMPBIN" >&6; }
4483else
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489  test -n "$ac_ct_DUMPBIN" && break
4490done
4491
4492  if test "x$ac_ct_DUMPBIN" = x; then
4493    DUMPBIN=":"
4494  else
4495    case $cross_compiling:$ac_tool_warned in
4496yes:)
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499ac_tool_warned=yes ;;
4500esac
4501    DUMPBIN=$ac_ct_DUMPBIN
4502  fi
4503fi
4504
4505    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4506    *COFF*)
4507      DUMPBIN="$DUMPBIN -symbols"
4508      ;;
4509    *)
4510      DUMPBIN=:
4511      ;;
4512    esac
4513  fi
4514
4515  if test "$DUMPBIN" != ":"; then
4516    NM="$DUMPBIN"
4517  fi
4518fi
4519test -z "$NM" && NM=nm
4520
4521
4522
4523
4524
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4527$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4528if ${lt_cv_nm_interface+:} false; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  lt_cv_nm_interface="BSD nm"
4532  echo "int some_variable = 0;" > conftest.$ac_ext
4533  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4534  (eval "$ac_compile" 2>conftest.err)
4535  cat conftest.err >&5
4536  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4537  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4538  cat conftest.err >&5
4539  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4540  cat conftest.out >&5
4541  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4542    lt_cv_nm_interface="MS dumpbin"
4543  fi
4544  rm -f conftest*
4545fi
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4547$as_echo "$lt_cv_nm_interface" >&6; }
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4550$as_echo_n "checking whether ln -s works... " >&6; }
4551LN_S=$as_ln_s
4552if test "$LN_S" = "ln -s"; then
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554$as_echo "yes" >&6; }
4555else
4556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4557$as_echo "no, using $LN_S" >&6; }
4558fi
4559
4560# find the maximum length of command line arguments
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4562$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4563if ${lt_cv_sys_max_cmd_len+:} false; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566    i=0
4567  teststring="ABCD"
4568
4569  case $build_os in
4570  msdosdjgpp*)
4571    # On DJGPP, this test can blow up pretty badly due to problems in libc
4572    # (any single argument exceeding 2000 bytes causes a buffer overrun
4573    # during glob expansion).  Even if it were fixed, the result of this
4574    # check would be larger than it should be.
4575    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4576    ;;
4577
4578  gnu*)
4579    # Under GNU Hurd, this test is not required because there is
4580    # no limit to the length of command line arguments.
4581    # Libtool will interpret -1 as no limit whatsoever
4582    lt_cv_sys_max_cmd_len=-1;
4583    ;;
4584
4585  cygwin* | mingw* | cegcc*)
4586    # On Win9x/ME, this test blows up -- it succeeds, but takes
4587    # about 5 minutes as the teststring grows exponentially.
4588    # Worse, since 9x/ME are not pre-emptively multitasking,
4589    # you end up with a "frozen" computer, even though with patience
4590    # the test eventually succeeds (with a max line length of 256k).
4591    # Instead, let's just punt: use the minimum linelength reported by
4592    # all of the supported platforms: 8192 (on NT/2K/XP).
4593    lt_cv_sys_max_cmd_len=8192;
4594    ;;
4595
4596  mint*)
4597    # On MiNT this can take a long time and run out of memory.
4598    lt_cv_sys_max_cmd_len=8192;
4599    ;;
4600
4601  amigaos*)
4602    # On AmigaOS with pdksh, this test takes hours, literally.
4603    # So we just punt and use a minimum line length of 8192.
4604    lt_cv_sys_max_cmd_len=8192;
4605    ;;
4606
4607  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4608    # This has been around since 386BSD, at least.  Likely further.
4609    if test -x /sbin/sysctl; then
4610      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4611    elif test -x /usr/sbin/sysctl; then
4612      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4613    else
4614      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4615    fi
4616    # And add a safety zone
4617    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4618    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4619    ;;
4620
4621  interix*)
4622    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4623    lt_cv_sys_max_cmd_len=196608
4624    ;;
4625
4626  os2*)
4627    # The test takes a long time on OS/2.
4628    lt_cv_sys_max_cmd_len=8192
4629    ;;
4630
4631  osf*)
4632    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4633    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4634    # nice to cause kernel panics so lets avoid the loop below.
4635    # First set a reasonable default.
4636    lt_cv_sys_max_cmd_len=16384
4637    #
4638    if test -x /sbin/sysconfig; then
4639      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4640        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4641      esac
4642    fi
4643    ;;
4644  sco3.2v5*)
4645    lt_cv_sys_max_cmd_len=102400
4646    ;;
4647  sysv5* | sco5v6* | sysv4.2uw2*)
4648    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4649    if test -n "$kargmax"; then
4650      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4651    else
4652      lt_cv_sys_max_cmd_len=32768
4653    fi
4654    ;;
4655  *)
4656    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4657    if test -n "$lt_cv_sys_max_cmd_len"; then
4658      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4659      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4660    else
4661      # Make teststring a little bigger before we do anything with it.
4662      # a 1K string should be a reasonable start.
4663      for i in 1 2 3 4 5 6 7 8 ; do
4664        teststring=$teststring$teststring
4665      done
4666      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4667      # If test is not a shell built-in, we'll probably end up computing a
4668      # maximum length that is only half of the actual maximum length, but
4669      # we can't tell.
4670      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4671	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4672	      test $i != 17 # 1/2 MB should be enough
4673      do
4674        i=`expr $i + 1`
4675        teststring=$teststring$teststring
4676      done
4677      # Only check the string length outside the loop.
4678      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4679      teststring=
4680      # Add a significant safety factor because C++ compilers can tack on
4681      # massive amounts of additional arguments before passing them to the
4682      # linker.  It appears as though 1/2 is a usable value.
4683      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4684    fi
4685    ;;
4686  esac
4687
4688fi
4689
4690if test -n $lt_cv_sys_max_cmd_len ; then
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4692$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4693else
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4695$as_echo "none" >&6; }
4696fi
4697max_cmd_len=$lt_cv_sys_max_cmd_len
4698
4699
4700
4701
4702
4703
4704: ${CP="cp -f"}
4705: ${MV="mv -f"}
4706: ${RM="rm -f"}
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4709$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4710# Try some XSI features
4711xsi_shell=no
4712( _lt_dummy="a/b/c"
4713  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4714      = c,a/b,b/c, \
4715    && eval 'test $(( 1 + 1 )) -eq 2 \
4716    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4717  && xsi_shell=yes
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4719$as_echo "$xsi_shell" >&6; }
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4723$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4724lt_shell_append=no
4725( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4726    >/dev/null 2>&1 \
4727  && lt_shell_append=yes
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4729$as_echo "$lt_shell_append" >&6; }
4730
4731
4732if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4733  lt_unset=unset
4734else
4735  lt_unset=false
4736fi
4737
4738
4739
4740
4741
4742# test EBCDIC or ASCII
4743case `echo X|tr X '\101'` in
4744 A) # ASCII based system
4745    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4746  lt_SP2NL='tr \040 \012'
4747  lt_NL2SP='tr \015\012 \040\040'
4748  ;;
4749 *) # EBCDIC based system
4750  lt_SP2NL='tr \100 \n'
4751  lt_NL2SP='tr \r\n \100\100'
4752  ;;
4753esac
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4764$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4765if ${lt_cv_to_host_file_cmd+:} false; then :
4766  $as_echo_n "(cached) " >&6
4767else
4768  case $host in
4769  *-*-mingw* )
4770    case $build in
4771      *-*-mingw* ) # actually msys
4772        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4773        ;;
4774      *-*-cygwin* )
4775        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4776        ;;
4777      * ) # otherwise, assume *nix
4778        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4779        ;;
4780    esac
4781    ;;
4782  *-*-cygwin* )
4783    case $build in
4784      *-*-mingw* ) # actually msys
4785        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4786        ;;
4787      *-*-cygwin* )
4788        lt_cv_to_host_file_cmd=func_convert_file_noop
4789        ;;
4790      * ) # otherwise, assume *nix
4791        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4792        ;;
4793    esac
4794    ;;
4795  * ) # unhandled hosts (and "normal" native builds)
4796    lt_cv_to_host_file_cmd=func_convert_file_noop
4797    ;;
4798esac
4799
4800fi
4801
4802to_host_file_cmd=$lt_cv_to_host_file_cmd
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4804$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4805
4806
4807
4808
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4811$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4812if ${lt_cv_to_tool_file_cmd+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  #assume ordinary cross tools, or native build.
4816lt_cv_to_tool_file_cmd=func_convert_file_noop
4817case $host in
4818  *-*-mingw* )
4819    case $build in
4820      *-*-mingw* ) # actually msys
4821        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4822        ;;
4823    esac
4824    ;;
4825esac
4826
4827fi
4828
4829to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4831$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4832
4833
4834
4835
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4838$as_echo_n "checking for $LD option to reload object files... " >&6; }
4839if ${lt_cv_ld_reload_flag+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  lt_cv_ld_reload_flag='-r'
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4845$as_echo "$lt_cv_ld_reload_flag" >&6; }
4846reload_flag=$lt_cv_ld_reload_flag
4847case $reload_flag in
4848"" | " "*) ;;
4849*) reload_flag=" $reload_flag" ;;
4850esac
4851reload_cmds='$LD$reload_flag -o $output$reload_objs'
4852case $host_os in
4853  cygwin* | mingw* | pw32* | cegcc*)
4854    if test "$GCC" != yes; then
4855      reload_cmds=false
4856    fi
4857    ;;
4858  darwin*)
4859    if test "$GCC" = yes; then
4860      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4861    else
4862      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863    fi
4864    ;;
4865esac
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875if test -n "$ac_tool_prefix"; then
4876  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4877set dummy ${ac_tool_prefix}objdump; ac_word=$2
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if ${ac_cv_prog_OBJDUMP+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  if test -n "$OBJDUMP"; then
4884  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889  IFS=$as_save_IFS
4890  test -z "$as_dir" && as_dir=.
4891    for ac_exec_ext in '' $ac_executable_extensions; do
4892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895    break 2
4896  fi
4897done
4898  done
4899IFS=$as_save_IFS
4900
4901fi
4902fi
4903OBJDUMP=$ac_cv_prog_OBJDUMP
4904if test -n "$OBJDUMP"; then
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4906$as_echo "$OBJDUMP" >&6; }
4907else
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913fi
4914if test -z "$ac_cv_prog_OBJDUMP"; then
4915  ac_ct_OBJDUMP=$OBJDUMP
4916  # Extract the first word of "objdump", so it can be a program name with args.
4917set dummy objdump; ac_word=$2
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919$as_echo_n "checking for $ac_word... " >&6; }
4920if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  if test -n "$ac_ct_OBJDUMP"; then
4924  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931    for ac_exec_ext in '' $ac_executable_extensions; do
4932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935    break 2
4936  fi
4937done
4938  done
4939IFS=$as_save_IFS
4940
4941fi
4942fi
4943ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4944if test -n "$ac_ct_OBJDUMP"; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4946$as_echo "$ac_ct_OBJDUMP" >&6; }
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951
4952  if test "x$ac_ct_OBJDUMP" = x; then
4953    OBJDUMP="false"
4954  else
4955    case $cross_compiling:$ac_tool_warned in
4956yes:)
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959ac_tool_warned=yes ;;
4960esac
4961    OBJDUMP=$ac_ct_OBJDUMP
4962  fi
4963else
4964  OBJDUMP="$ac_cv_prog_OBJDUMP"
4965fi
4966
4967test -z "$OBJDUMP" && OBJDUMP=objdump
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4978$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4979if ${lt_cv_deplibs_check_method+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  lt_cv_file_magic_cmd='$MAGIC_CMD'
4983lt_cv_file_magic_test_file=
4984lt_cv_deplibs_check_method='unknown'
4985# Need to set the preceding variable on all platforms that support
4986# interlibrary dependencies.
4987# 'none' -- dependencies not supported.
4988# `unknown' -- same as none, but documents that we really don't know.
4989# 'pass_all' -- all dependencies passed with no checks.
4990# 'test_compile' -- check by making test program.
4991# 'file_magic [[regex]]' -- check by looking for files in library path
4992# which responds to the $file_magic_cmd with a given extended regex.
4993# If you have `file' or equivalent on your system and you're not sure
4994# whether `pass_all' will *always* work, you probably want this one.
4995
4996case $host_os in
4997aix[4-9]*)
4998  lt_cv_deplibs_check_method=pass_all
4999  ;;
5000
5001beos*)
5002  lt_cv_deplibs_check_method=pass_all
5003  ;;
5004
5005bsdi[45]*)
5006  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5007  lt_cv_file_magic_cmd='/usr/bin/file -L'
5008  lt_cv_file_magic_test_file=/shlib/libc.so
5009  ;;
5010
5011cygwin*)
5012  # func_win32_libid is a shell function defined in ltmain.sh
5013  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5014  lt_cv_file_magic_cmd='func_win32_libid'
5015  ;;
5016
5017mingw* | pw32*)
5018  # Base MSYS/MinGW do not provide the 'file' command needed by
5019  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5020  # unless we find 'file', for example because we are cross-compiling.
5021  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5022  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5023    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024    lt_cv_file_magic_cmd='func_win32_libid'
5025  else
5026    # Keep this pattern in sync with the one in func_win32_libid.
5027    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5028    lt_cv_file_magic_cmd='$OBJDUMP -f'
5029  fi
5030  ;;
5031
5032cegcc*)
5033  # use the weaker test based on 'objdump'. See mingw*.
5034  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5035  lt_cv_file_magic_cmd='$OBJDUMP -f'
5036  ;;
5037
5038darwin* | rhapsody*)
5039  lt_cv_deplibs_check_method=pass_all
5040  ;;
5041
5042freebsd* | dragonfly*)
5043  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5044    case $host_cpu in
5045    i*86 )
5046      # Not sure whether the presence of OpenBSD here was a mistake.
5047      # Let's accept both of them until this is cleared up.
5048      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5049      lt_cv_file_magic_cmd=/usr/bin/file
5050      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5051      ;;
5052    esac
5053  else
5054    lt_cv_deplibs_check_method=pass_all
5055  fi
5056  ;;
5057
5058gnu*)
5059  lt_cv_deplibs_check_method=pass_all
5060  ;;
5061
5062haiku*)
5063  lt_cv_deplibs_check_method=pass_all
5064  ;;
5065
5066hpux10.20* | hpux11*)
5067  lt_cv_file_magic_cmd=/usr/bin/file
5068  case $host_cpu in
5069  ia64*)
5070    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5071    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5072    ;;
5073  hppa*64*)
5074    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]'
5075    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5076    ;;
5077  *)
5078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5079    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5080    ;;
5081  esac
5082  ;;
5083
5084interix[3-9]*)
5085  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5086  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5087  ;;
5088
5089irix5* | irix6* | nonstopux*)
5090  case $LD in
5091  *-32|*"-32 ") libmagic=32-bit;;
5092  *-n32|*"-n32 ") libmagic=N32;;
5093  *-64|*"-64 ") libmagic=64-bit;;
5094  *) libmagic=never-match;;
5095  esac
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099# This must be glibc/ELF.
5100linux* | k*bsd*-gnu | kopensolaris*-gnu)
5101  lt_cv_deplibs_check_method=pass_all
5102  ;;
5103
5104netbsd*)
5105  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5107  else
5108    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5109  fi
5110  ;;
5111
5112newos6*)
5113  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5114  lt_cv_file_magic_cmd=/usr/bin/file
5115  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5116  ;;
5117
5118*nto* | *qnx*)
5119  lt_cv_deplibs_check_method=pass_all
5120  ;;
5121
5122openbsd*)
5123  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5124    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5125  else
5126    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5127  fi
5128  ;;
5129
5130osf3* | osf4* | osf5*)
5131  lt_cv_deplibs_check_method=pass_all
5132  ;;
5133
5134rdos*)
5135  lt_cv_deplibs_check_method=pass_all
5136  ;;
5137
5138solaris*)
5139  lt_cv_deplibs_check_method=pass_all
5140  ;;
5141
5142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5143  lt_cv_deplibs_check_method=pass_all
5144  ;;
5145
5146sysv4 | sysv4.3*)
5147  case $host_vendor in
5148  motorola)
5149    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]'
5150    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5151    ;;
5152  ncr)
5153    lt_cv_deplibs_check_method=pass_all
5154    ;;
5155  sequent)
5156    lt_cv_file_magic_cmd='/bin/file'
5157    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5158    ;;
5159  sni)
5160    lt_cv_file_magic_cmd='/bin/file'
5161    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5162    lt_cv_file_magic_test_file=/lib/libc.so
5163    ;;
5164  siemens)
5165    lt_cv_deplibs_check_method=pass_all
5166    ;;
5167  pc)
5168    lt_cv_deplibs_check_method=pass_all
5169    ;;
5170  esac
5171  ;;
5172
5173tpf*)
5174  lt_cv_deplibs_check_method=pass_all
5175  ;;
5176esac
5177
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5180$as_echo "$lt_cv_deplibs_check_method" >&6; }
5181
5182file_magic_glob=
5183want_nocaseglob=no
5184if test "$build" = "$host"; then
5185  case $host_os in
5186  mingw* | pw32*)
5187    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5188      want_nocaseglob=yes
5189    else
5190      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5191    fi
5192    ;;
5193  esac
5194fi
5195
5196file_magic_cmd=$lt_cv_file_magic_cmd
5197deplibs_check_method=$lt_cv_deplibs_check_method
5198test -z "$deplibs_check_method" && deplibs_check_method=unknown
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221if test -n "$ac_tool_prefix"; then
5222  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
5226if ${ac_cv_prog_DLLTOOL+:} false; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  if test -n "$DLLTOOL"; then
5230  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  test -z "$as_dir" && as_dir=.
5237    for ac_exec_ext in '' $ac_executable_extensions; do
5238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244  done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249DLLTOOL=$ac_cv_prog_DLLTOOL
5250if test -n "$DLLTOOL"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5252$as_echo "$DLLTOOL" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_prog_DLLTOOL"; then
5261  ac_ct_DLLTOOL=$DLLTOOL
5262  # Extract the first word of "dlltool", so it can be a program name with args.
5263set dummy dlltool; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  if test -n "$ac_ct_DLLTOOL"; then
5270  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5290if test -n "$ac_ct_DLLTOOL"; then
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5292$as_echo "$ac_ct_DLLTOOL" >&6; }
5293else
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298  if test "x$ac_ct_DLLTOOL" = x; then
5299    DLLTOOL="false"
5300  else
5301    case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307    DLLTOOL=$ac_ct_DLLTOOL
5308  fi
5309else
5310  DLLTOOL="$ac_cv_prog_DLLTOOL"
5311fi
5312
5313test -z "$DLLTOOL" && DLLTOOL=dlltool
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5325$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5326if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  lt_cv_sharedlib_from_linklib_cmd='unknown'
5330
5331case $host_os in
5332cygwin* | mingw* | pw32* | cegcc*)
5333  # two different shell functions defined in ltmain.sh
5334  # decide which to use based on capabilities of $DLLTOOL
5335  case `$DLLTOOL --help 2>&1` in
5336  *--identify-strict*)
5337    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5338    ;;
5339  *)
5340    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5341    ;;
5342  esac
5343  ;;
5344*)
5345  # fallback: assume linklib IS sharedlib
5346  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5347  ;;
5348esac
5349
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5352$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5353sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5354test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5355
5356
5357
5358
5359
5360
5361
5362
5363if test -n "$ac_tool_prefix"; then
5364  for ac_prog in ar
5365  do
5366    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369$as_echo_n "checking for $ac_word... " >&6; }
5370if ${ac_cv_prog_AR+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  if test -n "$AR"; then
5374  ac_cv_prog_AR="$AR" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379  IFS=$as_save_IFS
5380  test -z "$as_dir" && as_dir=.
5381    for ac_exec_ext in '' $ac_executable_extensions; do
5382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385    break 2
5386  fi
5387done
5388  done
5389IFS=$as_save_IFS
5390
5391fi
5392fi
5393AR=$ac_cv_prog_AR
5394if test -n "$AR"; then
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5396$as_echo "$AR" >&6; }
5397else
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }
5400fi
5401
5402
5403    test -n "$AR" && break
5404  done
5405fi
5406if test -z "$AR"; then
5407  ac_ct_AR=$AR
5408  for ac_prog in ar
5409do
5410  # Extract the first word of "$ac_prog", so it can be a program name with args.
5411set dummy $ac_prog; ac_word=$2
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if ${ac_cv_prog_ac_ct_AR+:} false; then :
5415  $as_echo_n "(cached) " >&6
5416else
5417  if test -n "$ac_ct_AR"; then
5418  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423  IFS=$as_save_IFS
5424  test -z "$as_dir" && as_dir=.
5425    for ac_exec_ext in '' $ac_executable_extensions; do
5426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427    ac_cv_prog_ac_ct_AR="$ac_prog"
5428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429    break 2
5430  fi
5431done
5432  done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437ac_ct_AR=$ac_cv_prog_ac_ct_AR
5438if test -n "$ac_ct_AR"; then
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5440$as_echo "$ac_ct_AR" >&6; }
5441else
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446
5447  test -n "$ac_ct_AR" && break
5448done
5449
5450  if test "x$ac_ct_AR" = x; then
5451    AR="false"
5452  else
5453    case $cross_compiling:$ac_tool_warned in
5454yes:)
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457ac_tool_warned=yes ;;
5458esac
5459    AR=$ac_ct_AR
5460  fi
5461fi
5462
5463: ${AR=ar}
5464: ${AR_FLAGS=cru}
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5477$as_echo_n "checking for archiver @FILE support... " >&6; }
5478if ${lt_cv_ar_at_file+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  lt_cv_ar_at_file=no
5482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h.  */
5484
5485int
5486main ()
5487{
5488
5489  ;
5490  return 0;
5491}
5492_ACEOF
5493if ac_fn_c_try_compile "$LINENO"; then :
5494  echo conftest.$ac_objext > conftest.lst
5495      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5496      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5497  (eval $lt_ar_try) 2>&5
5498  ac_status=$?
5499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500  test $ac_status = 0; }
5501      if test "$ac_status" -eq 0; then
5502	# Ensure the archiver fails upon bogus file names.
5503	rm -f conftest.$ac_objext libconftest.a
5504	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5505  (eval $lt_ar_try) 2>&5
5506  ac_status=$?
5507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5508  test $ac_status = 0; }
5509	if test "$ac_status" -ne 0; then
5510          lt_cv_ar_at_file=@
5511        fi
5512      fi
5513      rm -f conftest.* libconftest.a
5514
5515fi
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5520$as_echo "$lt_cv_ar_at_file" >&6; }
5521
5522if test "x$lt_cv_ar_at_file" = xno; then
5523  archiver_list_spec=
5524else
5525  archiver_list_spec=$lt_cv_ar_at_file
5526fi
5527
5528
5529
5530
5531
5532
5533
5534if test -n "$ac_tool_prefix"; then
5535  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}strip; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_prog_STRIP+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  if test -n "$STRIP"; then
5543  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548  IFS=$as_save_IFS
5549  test -z "$as_dir" && as_dir=.
5550    for ac_exec_ext in '' $ac_executable_extensions; do
5551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554    break 2
5555  fi
5556done
5557  done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562STRIP=$ac_cv_prog_STRIP
5563if test -n "$STRIP"; then
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5565$as_echo "$STRIP" >&6; }
5566else
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571
5572fi
5573if test -z "$ac_cv_prog_STRIP"; then
5574  ac_ct_STRIP=$STRIP
5575  # Extract the first word of "strip", so it can be a program name with args.
5576set dummy strip; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$ac_ct_STRIP"; then
5583  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    for ac_exec_ext in '' $ac_executable_extensions; do
5591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592    ac_cv_prog_ac_ct_STRIP="strip"
5593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594    break 2
5595  fi
5596done
5597  done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5603if test -n "$ac_ct_STRIP"; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5605$as_echo "$ac_ct_STRIP" >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611  if test "x$ac_ct_STRIP" = x; then
5612    STRIP=":"
5613  else
5614    case $cross_compiling:$ac_tool_warned in
5615yes:)
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618ac_tool_warned=yes ;;
5619esac
5620    STRIP=$ac_ct_STRIP
5621  fi
5622else
5623  STRIP="$ac_cv_prog_STRIP"
5624fi
5625
5626test -z "$STRIP" && STRIP=:
5627
5628
5629
5630
5631
5632
5633if test -n "$ac_tool_prefix"; then
5634  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5635set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637$as_echo_n "checking for $ac_word... " >&6; }
5638if ${ac_cv_prog_RANLIB+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  if test -n "$RANLIB"; then
5642  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647  IFS=$as_save_IFS
5648  test -z "$as_dir" && as_dir=.
5649    for ac_exec_ext in '' $ac_executable_extensions; do
5650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653    break 2
5654  fi
5655done
5656  done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661RANLIB=$ac_cv_prog_RANLIB
5662if test -n "$RANLIB"; then
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5664$as_echo "$RANLIB" >&6; }
5665else
5666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
5668fi
5669
5670
5671fi
5672if test -z "$ac_cv_prog_RANLIB"; then
5673  ac_ct_RANLIB=$RANLIB
5674  # Extract the first word of "ranlib", so it can be a program name with args.
5675set dummy ranlib; ac_word=$2
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677$as_echo_n "checking for $ac_word... " >&6; }
5678if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  if test -n "$ac_ct_RANLIB"; then
5682  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687  IFS=$as_save_IFS
5688  test -z "$as_dir" && as_dir=.
5689    for ac_exec_ext in '' $ac_executable_extensions; do
5690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691    ac_cv_prog_ac_ct_RANLIB="ranlib"
5692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693    break 2
5694  fi
5695done
5696  done
5697IFS=$as_save_IFS
5698
5699fi
5700fi
5701ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5702if test -n "$ac_ct_RANLIB"; then
5703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5704$as_echo "$ac_ct_RANLIB" >&6; }
5705else
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
5710  if test "x$ac_ct_RANLIB" = x; then
5711    RANLIB=":"
5712  else
5713    case $cross_compiling:$ac_tool_warned in
5714yes:)
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5717ac_tool_warned=yes ;;
5718esac
5719    RANLIB=$ac_ct_RANLIB
5720  fi
5721else
5722  RANLIB="$ac_cv_prog_RANLIB"
5723fi
5724
5725test -z "$RANLIB" && RANLIB=:
5726
5727
5728
5729
5730
5731
5732# Determine commands to create old-style static archives.
5733old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5734old_postinstall_cmds='chmod 644 $oldlib'
5735old_postuninstall_cmds=
5736
5737if test -n "$RANLIB"; then
5738  case $host_os in
5739  openbsd*)
5740    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5741    ;;
5742  *)
5743    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5744    ;;
5745  esac
5746  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5747fi
5748
5749case $host_os in
5750  darwin*)
5751    lock_old_archive_extraction=yes ;;
5752  *)
5753    lock_old_archive_extraction=no ;;
5754esac
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794# If no C compiler was specified, use CC.
5795LTCC=${LTCC-"$CC"}
5796
5797# If no C compiler flags were specified, use CFLAGS.
5798LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5799
5800# Allow CC to be a program name with arguments.
5801compiler=$CC
5802
5803
5804# Check for command to grab the raw symbol name followed by C symbol from nm.
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5806$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5807if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810
5811# These are sane defaults that work on at least a few old systems.
5812# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5813
5814# Character class describing NM global symbol codes.
5815symcode='[BCDEGRST]'
5816
5817# Regexp to match symbols that can be accessed directly from C.
5818sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5819
5820# Define system-specific variables.
5821case $host_os in
5822aix*)
5823  symcode='[BCDT]'
5824  ;;
5825cygwin* | mingw* | pw32* | cegcc*)
5826  symcode='[ABCDGISTW]'
5827  ;;
5828hpux*)
5829  if test "$host_cpu" = ia64; then
5830    symcode='[ABCDEGRST]'
5831  fi
5832  ;;
5833irix* | nonstopux*)
5834  symcode='[BCDEGRST]'
5835  ;;
5836osf*)
5837  symcode='[BCDEGQRST]'
5838  ;;
5839solaris*)
5840  symcode='[BDRT]'
5841  ;;
5842sco3.2v5*)
5843  symcode='[DT]'
5844  ;;
5845sysv4.2uw2*)
5846  symcode='[DT]'
5847  ;;
5848sysv5* | sco5v6* | unixware* | OpenUNIX*)
5849  symcode='[ABDT]'
5850  ;;
5851sysv4)
5852  symcode='[DFNSTU]'
5853  ;;
5854esac
5855
5856# If we're using GNU nm, then use its standard symbol codes.
5857case `$NM -V 2>&1` in
5858*GNU* | *'with BFD'*)
5859  symcode='[ABCDGIRSTW]' ;;
5860esac
5861
5862# Transform an extracted symbol line into a proper C declaration.
5863# Some systems (esp. on ia64) link data and code symbols differently,
5864# so use this general approach.
5865lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5866
5867# Transform an extracted symbol line into symbol name and symbol address
5868lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5869lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5870
5871# Handle CRLF in mingw tool chain
5872opt_cr=
5873case $build_os in
5874mingw*)
5875  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5876  ;;
5877esac
5878
5879# Try without a prefix underscore, then with it.
5880for ac_symprfx in "" "_"; do
5881
5882  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5883  symxfrm="\\1 $ac_symprfx\\2 \\2"
5884
5885  # Write the raw and C identifiers.
5886  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5887    # Fake it for dumpbin and say T for any non-static function
5888    # and D for any global variable.
5889    # Also find C++ and __fastcall symbols from MSVC++,
5890    # which start with @ or ?.
5891    lt_cv_sys_global_symbol_pipe="$AWK '"\
5892"     {last_section=section; section=\$ 3};"\
5893"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5894"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5895"     \$ 0!~/External *\|/{next};"\
5896"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5897"     {if(hide[section]) next};"\
5898"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5899"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5900"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5901"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5902"     ' prfx=^$ac_symprfx"
5903  else
5904    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5905  fi
5906  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5907
5908  # Check to see that the pipe works correctly.
5909  pipe_works=no
5910
5911  rm -f conftest*
5912  cat > conftest.$ac_ext <<_LT_EOF
5913#ifdef __cplusplus
5914extern "C" {
5915#endif
5916char nm_test_var;
5917void nm_test_func(void);
5918void nm_test_func(void){}
5919#ifdef __cplusplus
5920}
5921#endif
5922int main(){nm_test_var='a';nm_test_func();return(0);}
5923_LT_EOF
5924
5925  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5926  (eval $ac_compile) 2>&5
5927  ac_status=$?
5928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929  test $ac_status = 0; }; then
5930    # Now try to grab the symbols.
5931    nlist=conftest.nm
5932    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5933  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5934  ac_status=$?
5935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5936  test $ac_status = 0; } && test -s "$nlist"; then
5937      # Try sorting and uniquifying the output.
5938      if sort "$nlist" | uniq > "$nlist"T; then
5939	mv -f "$nlist"T "$nlist"
5940      else
5941	rm -f "$nlist"T
5942      fi
5943
5944      # Make sure that we snagged all the symbols we need.
5945      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5946	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5947	  cat <<_LT_EOF > conftest.$ac_ext
5948/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5949#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5950/* DATA imports from DLLs on WIN32 con't be const, because runtime
5951   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5952# define LT_DLSYM_CONST
5953#elif defined(__osf__)
5954/* This system does not cope well with relocations in const data.  */
5955# define LT_DLSYM_CONST
5956#else
5957# define LT_DLSYM_CONST const
5958#endif
5959
5960#ifdef __cplusplus
5961extern "C" {
5962#endif
5963
5964_LT_EOF
5965	  # Now generate the symbol file.
5966	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5967
5968	  cat <<_LT_EOF >> conftest.$ac_ext
5969
5970/* The mapping between symbol names and symbols.  */
5971LT_DLSYM_CONST struct {
5972  const char *name;
5973  void       *address;
5974}
5975lt__PROGRAM__LTX_preloaded_symbols[] =
5976{
5977  { "@PROGRAM@", (void *) 0 },
5978_LT_EOF
5979	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5980	  cat <<\_LT_EOF >> conftest.$ac_ext
5981  {0, (void *) 0}
5982};
5983
5984/* This works around a problem in FreeBSD linker */
5985#ifdef FREEBSD_WORKAROUND
5986static const void *lt_preloaded_setup() {
5987  return lt__PROGRAM__LTX_preloaded_symbols;
5988}
5989#endif
5990
5991#ifdef __cplusplus
5992}
5993#endif
5994_LT_EOF
5995	  # Now try linking the two files.
5996	  mv conftest.$ac_objext conftstm.$ac_objext
5997	  lt_globsym_save_LIBS=$LIBS
5998	  lt_globsym_save_CFLAGS=$CFLAGS
5999	  LIBS="conftstm.$ac_objext"
6000	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6001	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6002  (eval $ac_link) 2>&5
6003  ac_status=$?
6004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6006	    pipe_works=yes
6007	  fi
6008	  LIBS=$lt_globsym_save_LIBS
6009	  CFLAGS=$lt_globsym_save_CFLAGS
6010	else
6011	  echo "cannot find nm_test_func in $nlist" >&5
6012	fi
6013      else
6014	echo "cannot find nm_test_var in $nlist" >&5
6015      fi
6016    else
6017      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6018    fi
6019  else
6020    echo "$progname: failed program was:" >&5
6021    cat conftest.$ac_ext >&5
6022  fi
6023  rm -rf conftest* conftst*
6024
6025  # Do not use the global_symbol_pipe unless it works.
6026  if test "$pipe_works" = yes; then
6027    break
6028  else
6029    lt_cv_sys_global_symbol_pipe=
6030  fi
6031done
6032
6033fi
6034
6035if test -z "$lt_cv_sys_global_symbol_pipe"; then
6036  lt_cv_sys_global_symbol_to_cdecl=
6037fi
6038if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6040$as_echo "failed" >&6; }
6041else
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6043$as_echo "ok" >&6; }
6044fi
6045
6046# Response file support.
6047if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6048  nm_file_list_spec='@'
6049elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6050  nm_file_list_spec='@'
6051fi
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6080$as_echo_n "checking for sysroot... " >&6; }
6081
6082# Check whether --with-sysroot was given.
6083if test "${with_sysroot+set}" = set; then :
6084  withval=$with_sysroot;
6085else
6086  with_sysroot=no
6087fi
6088
6089
6090lt_sysroot=
6091case ${with_sysroot} in #(
6092 yes)
6093   if test "$GCC" = yes; then
6094     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6095   fi
6096   ;; #(
6097 /*)
6098   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6099   ;; #(
6100 no|'')
6101   ;; #(
6102 *)
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6104$as_echo "${with_sysroot}" >&6; }
6105   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6106   ;;
6107esac
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6110$as_echo "${lt_sysroot:-no}" >&6; }
6111
6112
6113
6114
6115
6116# Check whether --enable-libtool-lock was given.
6117if test "${enable_libtool_lock+set}" = set; then :
6118  enableval=$enable_libtool_lock;
6119fi
6120
6121test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6122
6123# Some flags need to be propagated to the compiler or linker for good
6124# libtool support.
6125case $host in
6126ia64-*-hpux*)
6127  # Find out which ABI we are using.
6128  echo 'int i;' > conftest.$ac_ext
6129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6130  (eval $ac_compile) 2>&5
6131  ac_status=$?
6132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133  test $ac_status = 0; }; then
6134    case `/usr/bin/file conftest.$ac_objext` in
6135      *ELF-32*)
6136	HPUX_IA64_MODE="32"
6137	;;
6138      *ELF-64*)
6139	HPUX_IA64_MODE="64"
6140	;;
6141    esac
6142  fi
6143  rm -rf conftest*
6144  ;;
6145*-*-irix6*)
6146  # Find out which ABI we are using.
6147  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6149  (eval $ac_compile) 2>&5
6150  ac_status=$?
6151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152  test $ac_status = 0; }; then
6153    if test "$lt_cv_prog_gnu_ld" = yes; then
6154      case `/usr/bin/file conftest.$ac_objext` in
6155	*32-bit*)
6156	  LD="${LD-ld} -melf32bsmip"
6157	  ;;
6158	*N32*)
6159	  LD="${LD-ld} -melf32bmipn32"
6160	  ;;
6161	*64-bit*)
6162	  LD="${LD-ld} -melf64bmip"
6163	;;
6164      esac
6165    else
6166      case `/usr/bin/file conftest.$ac_objext` in
6167	*32-bit*)
6168	  LD="${LD-ld} -32"
6169	  ;;
6170	*N32*)
6171	  LD="${LD-ld} -n32"
6172	  ;;
6173	*64-bit*)
6174	  LD="${LD-ld} -64"
6175	  ;;
6176      esac
6177    fi
6178  fi
6179  rm -rf conftest*
6180  ;;
6181
6182x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6183s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6184  # Find out which ABI we are using.
6185  echo 'int i;' > conftest.$ac_ext
6186  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6187  (eval $ac_compile) 2>&5
6188  ac_status=$?
6189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190  test $ac_status = 0; }; then
6191    case `/usr/bin/file conftest.o` in
6192      *32-bit*)
6193	case $host in
6194	  x86_64-*kfreebsd*-gnu)
6195	    LD="${LD-ld} -m elf_i386_fbsd"
6196	    ;;
6197	  x86_64-*linux*)
6198	    LD="${LD-ld} -m elf_i386"
6199	    ;;
6200	  ppc64-*linux*|powerpc64-*linux*)
6201	    LD="${LD-ld} -m elf32ppclinux"
6202	    ;;
6203	  s390x-*linux*)
6204	    LD="${LD-ld} -m elf_s390"
6205	    ;;
6206	  sparc64-*linux*)
6207	    LD="${LD-ld} -m elf32_sparc"
6208	    ;;
6209	esac
6210	;;
6211      *64-bit*)
6212	case $host in
6213	  x86_64-*kfreebsd*-gnu)
6214	    LD="${LD-ld} -m elf_x86_64_fbsd"
6215	    ;;
6216	  x86_64-*linux*)
6217	    LD="${LD-ld} -m elf_x86_64"
6218	    ;;
6219	  ppc*-*linux*|powerpc*-*linux*)
6220	    LD="${LD-ld} -m elf64ppc"
6221	    ;;
6222	  s390*-*linux*|s390*-*tpf*)
6223	    LD="${LD-ld} -m elf64_s390"
6224	    ;;
6225	  sparc*-*linux*)
6226	    LD="${LD-ld} -m elf64_sparc"
6227	    ;;
6228	esac
6229	;;
6230    esac
6231  fi
6232  rm -rf conftest*
6233  ;;
6234
6235*-*-sco3.2v5*)
6236  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6237  SAVE_CFLAGS="$CFLAGS"
6238  CFLAGS="$CFLAGS -belf"
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6240$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6241if ${lt_cv_cc_needs_belf+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  ac_ext=c
6245ac_cpp='$CPP $CPPFLAGS'
6246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248ac_compiler_gnu=$ac_cv_c_compiler_gnu
6249
6250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252
6253int
6254main ()
6255{
6256
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_link "$LINENO"; then :
6262  lt_cv_cc_needs_belf=yes
6263else
6264  lt_cv_cc_needs_belf=no
6265fi
6266rm -f core conftest.err conftest.$ac_objext \
6267    conftest$ac_exeext conftest.$ac_ext
6268     ac_ext=c
6269ac_cpp='$CPP $CPPFLAGS'
6270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272ac_compiler_gnu=$ac_cv_c_compiler_gnu
6273
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6276$as_echo "$lt_cv_cc_needs_belf" >&6; }
6277  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6278    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6279    CFLAGS="$SAVE_CFLAGS"
6280  fi
6281  ;;
6282*-*solaris*)
6283  # Find out which ABI we are using.
6284  echo 'int i;' > conftest.$ac_ext
6285  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6286  (eval $ac_compile) 2>&5
6287  ac_status=$?
6288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289  test $ac_status = 0; }; then
6290    case `/usr/bin/file conftest.o` in
6291    *64-bit*)
6292      case $lt_cv_prog_gnu_ld in
6293      yes*)
6294        case $host in
6295        i?86-*-solaris*)
6296          LD="${LD-ld} -m elf_x86_64"
6297          ;;
6298        sparc*-*-solaris*)
6299          LD="${LD-ld} -m elf64_sparc"
6300          ;;
6301        esac
6302        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6303        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6304          LD="${LD-ld}_sol2"
6305        fi
6306        ;;
6307      *)
6308	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6309	  LD="${LD-ld} -64"
6310	fi
6311	;;
6312      esac
6313      ;;
6314    esac
6315  fi
6316  rm -rf conftest*
6317  ;;
6318esac
6319
6320need_locks="$enable_libtool_lock"
6321
6322if test -n "$ac_tool_prefix"; then
6323  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6324set dummy ${ac_tool_prefix}mt; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  if test -n "$MANIFEST_TOOL"; then
6331  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6351if test -n "$MANIFEST_TOOL"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6353$as_echo "$MANIFEST_TOOL" >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359
6360fi
6361if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6362  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6363  # Extract the first word of "mt", so it can be a program name with args.
6364set dummy mt; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  if test -n "$ac_ct_MANIFEST_TOOL"; then
6371  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6391if test -n "$ac_ct_MANIFEST_TOOL"; then
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6393$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6394else
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6400    MANIFEST_TOOL=":"
6401  else
6402    case $cross_compiling:$ac_tool_warned in
6403yes:)
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406ac_tool_warned=yes ;;
6407esac
6408    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6409  fi
6410else
6411  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6412fi
6413
6414test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6416$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6417if ${lt_cv_path_mainfest_tool+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  lt_cv_path_mainfest_tool=no
6421  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6422  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6423  cat conftest.err >&5
6424  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6425    lt_cv_path_mainfest_tool=yes
6426  fi
6427  rm -f conftest*
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6430$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6431if test "x$lt_cv_path_mainfest_tool" != xyes; then
6432  MANIFEST_TOOL=:
6433fi
6434
6435
6436
6437
6438
6439
6440  case $host_os in
6441    rhapsody* | darwin*)
6442    if test -n "$ac_tool_prefix"; then
6443  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if ${ac_cv_prog_DSYMUTIL+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  if test -n "$DSYMUTIL"; then
6451  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456  IFS=$as_save_IFS
6457  test -z "$as_dir" && as_dir=.
6458    for ac_exec_ext in '' $ac_executable_extensions; do
6459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462    break 2
6463  fi
6464done
6465  done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470DSYMUTIL=$ac_cv_prog_DSYMUTIL
6471if test -n "$DSYMUTIL"; then
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6473$as_echo "$DSYMUTIL" >&6; }
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_DSYMUTIL"; then
6482  ac_ct_DSYMUTIL=$DSYMUTIL
6483  # Extract the first word of "dsymutil", so it can be a program name with args.
6484set dummy dsymutil; ac_word=$2
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
6487if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  if test -n "$ac_ct_DSYMUTIL"; then
6491  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6511if test -n "$ac_ct_DSYMUTIL"; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6513$as_echo "$ac_ct_DSYMUTIL" >&6; }
6514else
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
6519  if test "x$ac_ct_DSYMUTIL" = x; then
6520    DSYMUTIL=":"
6521  else
6522    case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528    DSYMUTIL=$ac_ct_DSYMUTIL
6529  fi
6530else
6531  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532fi
6533
6534    if test -n "$ac_tool_prefix"; then
6535  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if ${ac_cv_prog_NMEDIT+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  if test -n "$NMEDIT"; then
6543  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550    for ac_exec_ext in '' $ac_executable_extensions; do
6551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557  done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562NMEDIT=$ac_cv_prog_NMEDIT
6563if test -n "$NMEDIT"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6565$as_echo "$NMEDIT" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571
6572fi
6573if test -z "$ac_cv_prog_NMEDIT"; then
6574  ac_ct_NMEDIT=$NMEDIT
6575  # Extract the first word of "nmedit", so it can be a program name with args.
6576set dummy nmedit; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  if test -n "$ac_ct_NMEDIT"; then
6583  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590    for ac_exec_ext in '' $ac_executable_extensions; do
6591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597  done
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6603if test -n "$ac_ct_NMEDIT"; then
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6605$as_echo "$ac_ct_NMEDIT" >&6; }
6606else
6607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611  if test "x$ac_ct_NMEDIT" = x; then
6612    NMEDIT=":"
6613  else
6614    case $cross_compiling:$ac_tool_warned in
6615yes:)
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618ac_tool_warned=yes ;;
6619esac
6620    NMEDIT=$ac_ct_NMEDIT
6621  fi
6622else
6623  NMEDIT="$ac_cv_prog_NMEDIT"
6624fi
6625
6626    if test -n "$ac_tool_prefix"; then
6627  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}lipo; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_LIPO+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$LIPO"; then
6635  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654LIPO=$ac_cv_prog_LIPO
6655if test -n "$LIPO"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6657$as_echo "$LIPO" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663
6664fi
6665if test -z "$ac_cv_prog_LIPO"; then
6666  ac_ct_LIPO=$LIPO
6667  # Extract the first word of "lipo", so it can be a program name with args.
6668set dummy lipo; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  if test -n "$ac_ct_LIPO"; then
6675  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682    for ac_exec_ext in '' $ac_executable_extensions; do
6683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684    ac_cv_prog_ac_ct_LIPO="lipo"
6685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689  done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6695if test -n "$ac_ct_LIPO"; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6697$as_echo "$ac_ct_LIPO" >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703  if test "x$ac_ct_LIPO" = x; then
6704    LIPO=":"
6705  else
6706    case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712    LIPO=$ac_ct_LIPO
6713  fi
6714else
6715  LIPO="$ac_cv_prog_LIPO"
6716fi
6717
6718    if test -n "$ac_tool_prefix"; then
6719  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}otool; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_OTOOL+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$OTOOL"; then
6727  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746OTOOL=$ac_cv_prog_OTOOL
6747if test -n "$OTOOL"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6749$as_echo "$OTOOL" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_OTOOL"; then
6758  ac_ct_OTOOL=$OTOOL
6759  # Extract the first word of "otool", so it can be a program name with args.
6760set dummy otool; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  if test -n "$ac_ct_OTOOL"; then
6767  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774    for ac_exec_ext in '' $ac_executable_extensions; do
6775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776    ac_cv_prog_ac_ct_OTOOL="otool"
6777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781  done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6787if test -n "$ac_ct_OTOOL"; then
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6789$as_echo "$ac_ct_OTOOL" >&6; }
6790else
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795  if test "x$ac_ct_OTOOL" = x; then
6796    OTOOL=":"
6797  else
6798    case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802ac_tool_warned=yes ;;
6803esac
6804    OTOOL=$ac_ct_OTOOL
6805  fi
6806else
6807  OTOOL="$ac_cv_prog_OTOOL"
6808fi
6809
6810    if test -n "$ac_tool_prefix"; then
6811  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}otool64; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if ${ac_cv_prog_OTOOL64+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  if test -n "$OTOOL64"; then
6819  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826    for ac_exec_ext in '' $ac_executable_extensions; do
6827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833  done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838OTOOL64=$ac_cv_prog_OTOOL64
6839if test -n "$OTOOL64"; then
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6841$as_echo "$OTOOL64" >&6; }
6842else
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_OTOOL64"; then
6850  ac_ct_OTOOL64=$OTOOL64
6851  # Extract the first word of "otool64", so it can be a program name with args.
6852set dummy otool64; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  if test -n "$ac_ct_OTOOL64"; then
6859  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866    for ac_exec_ext in '' $ac_executable_extensions; do
6867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868    ac_cv_prog_ac_ct_OTOOL64="otool64"
6869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873  done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6879if test -n "$ac_ct_OTOOL64"; then
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6881$as_echo "$ac_ct_OTOOL64" >&6; }
6882else
6883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887  if test "x$ac_ct_OTOOL64" = x; then
6888    OTOOL64=":"
6889  else
6890    case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896    OTOOL64=$ac_ct_OTOOL64
6897  fi
6898else
6899  OTOOL64="$ac_cv_prog_OTOOL64"
6900fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6929$as_echo_n "checking for -single_module linker flag... " >&6; }
6930if ${lt_cv_apple_cc_single_mod+:} false; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933  lt_cv_apple_cc_single_mod=no
6934      if test -z "${LT_MULTI_MODULE}"; then
6935	# By default we will add the -single_module flag. You can override
6936	# by either setting the environment variable LT_MULTI_MODULE
6937	# non-empty at configure time, or by adding -multi_module to the
6938	# link flags.
6939	rm -rf libconftest.dylib*
6940	echo "int foo(void){return 1;}" > conftest.c
6941	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942-dynamiclib -Wl,-single_module conftest.c" >&5
6943	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6945        _lt_result=$?
6946	# If there is a non-empty error log, and "single_module"
6947	# appears in it, assume the flag caused a linker warning
6948        if test -s conftest.err && $GREP single_module conftest.err; then
6949	  cat conftest.err >&5
6950	# Otherwise, if the output was created with a 0 exit code from
6951	# the compiler, it worked.
6952	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6953	  lt_cv_apple_cc_single_mod=yes
6954	else
6955	  cat conftest.err >&5
6956	fi
6957	rm -rf libconftest.dylib*
6958	rm -f conftest.*
6959      fi
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6962$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6963
6964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6965$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6966if ${lt_cv_ld_exported_symbols_list+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  lt_cv_ld_exported_symbols_list=no
6970      save_LDFLAGS=$LDFLAGS
6971      echo "_main" > conftest.sym
6972      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985  lt_cv_ld_exported_symbols_list=yes
6986else
6987  lt_cv_ld_exported_symbols_list=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990    conftest$ac_exeext conftest.$ac_ext
6991	LDFLAGS="$save_LDFLAGS"
6992
6993fi
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6995$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6996
6997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6998$as_echo_n "checking for -force_load linker flag... " >&6; }
6999if ${lt_cv_ld_force_load+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002  lt_cv_ld_force_load=no
7003      cat > conftest.c << _LT_EOF
7004int forced_loaded() { return 2;}
7005_LT_EOF
7006      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7007      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7008      echo "$AR cru libconftest.a conftest.o" >&5
7009      $AR cru libconftest.a conftest.o 2>&5
7010      echo "$RANLIB libconftest.a" >&5
7011      $RANLIB libconftest.a 2>&5
7012      cat > conftest.c << _LT_EOF
7013int main() { return 0;}
7014_LT_EOF
7015      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7016      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7017      _lt_result=$?
7018      if test -s conftest.err && $GREP force_load conftest.err; then
7019	cat conftest.err >&5
7020      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7021	lt_cv_ld_force_load=yes
7022      else
7023	cat conftest.err >&5
7024      fi
7025        rm -f conftest.err libconftest.a conftest conftest.c
7026        rm -rf conftest.dSYM
7027
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7030$as_echo "$lt_cv_ld_force_load" >&6; }
7031    case $host_os in
7032    rhapsody* | darwin1.[012])
7033      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7034    darwin1.*)
7035      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7036    darwin*) # darwin 5.x on
7037      # if running on 10.5 or later, the deployment target defaults
7038      # to the OS version, if on x86, and 10.4, the deployment
7039      # target defaults to 10.4. Don't you love it?
7040      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7041	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7042	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7043	10.[012]*)
7044	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7045	10.*)
7046	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7047      esac
7048    ;;
7049  esac
7050    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7051      _lt_dar_single_mod='$single_module'
7052    fi
7053    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7054      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7055    else
7056      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7057    fi
7058    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7059      _lt_dsymutil='~$DSYMUTIL $lib || :'
7060    else
7061      _lt_dsymutil=
7062    fi
7063    ;;
7064  esac
7065
7066ac_ext=c
7067ac_cpp='$CPP $CPPFLAGS'
7068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7072$as_echo_n "checking how to run the C preprocessor... " >&6; }
7073# On Suns, sometimes $CPP names a directory.
7074if test -n "$CPP" && test -d "$CPP"; then
7075  CPP=
7076fi
7077if test -z "$CPP"; then
7078  if ${ac_cv_prog_CPP+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081      # Double quotes because CPP needs to be expanded
7082    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7083    do
7084      ac_preproc_ok=false
7085for ac_c_preproc_warn_flag in '' yes
7086do
7087  # Use a header file that comes with gcc, so configuring glibc
7088  # with a fresh cross-compiler works.
7089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090  # <limits.h> exists even on freestanding compilers.
7091  # On the NeXT, cc -E runs the code through the compiler's parser,
7092  # not just through cpp. "Syntax error" is here to catch this case.
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095#ifdef __STDC__
7096# include <limits.h>
7097#else
7098# include <assert.h>
7099#endif
7100		     Syntax error
7101_ACEOF
7102if ac_fn_c_try_cpp "$LINENO"; then :
7103
7104else
7105  # Broken: fails on valid input.
7106continue
7107fi
7108rm -f conftest.err conftest.i conftest.$ac_ext
7109
7110  # OK, works on sane cases.  Now check whether nonexistent headers
7111  # can be detected and how.
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114#include <ac_nonexistent.h>
7115_ACEOF
7116if ac_fn_c_try_cpp "$LINENO"; then :
7117  # Broken: success on invalid input.
7118continue
7119else
7120  # Passes both tests.
7121ac_preproc_ok=:
7122break
7123fi
7124rm -f conftest.err conftest.i conftest.$ac_ext
7125
7126done
7127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7128rm -f conftest.i conftest.err conftest.$ac_ext
7129if $ac_preproc_ok; then :
7130  break
7131fi
7132
7133    done
7134    ac_cv_prog_CPP=$CPP
7135
7136fi
7137  CPP=$ac_cv_prog_CPP
7138else
7139  ac_cv_prog_CPP=$CPP
7140fi
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7142$as_echo "$CPP" >&6; }
7143ac_preproc_ok=false
7144for ac_c_preproc_warn_flag in '' yes
7145do
7146  # Use a header file that comes with gcc, so configuring glibc
7147  # with a fresh cross-compiler works.
7148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7149  # <limits.h> exists even on freestanding compilers.
7150  # On the NeXT, cc -E runs the code through the compiler's parser,
7151  # not just through cpp. "Syntax error" is here to catch this case.
7152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153/* end confdefs.h.  */
7154#ifdef __STDC__
7155# include <limits.h>
7156#else
7157# include <assert.h>
7158#endif
7159		     Syntax error
7160_ACEOF
7161if ac_fn_c_try_cpp "$LINENO"; then :
7162
7163else
7164  # Broken: fails on valid input.
7165continue
7166fi
7167rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169  # OK, works on sane cases.  Now check whether nonexistent headers
7170  # can be detected and how.
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173#include <ac_nonexistent.h>
7174_ACEOF
7175if ac_fn_c_try_cpp "$LINENO"; then :
7176  # Broken: success on invalid input.
7177continue
7178else
7179  # Passes both tests.
7180ac_preproc_ok=:
7181break
7182fi
7183rm -f conftest.err conftest.i conftest.$ac_ext
7184
7185done
7186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187rm -f conftest.i conftest.err conftest.$ac_ext
7188if $ac_preproc_ok; then :
7189
7190else
7191  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7194See \`config.log' for more details" "$LINENO" 5; }
7195fi
7196
7197ac_ext=c
7198ac_cpp='$CPP $CPPFLAGS'
7199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202
7203
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7205$as_echo_n "checking for ANSI C header files... " >&6; }
7206if ${ac_cv_header_stdc+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211#include <stdlib.h>
7212#include <stdarg.h>
7213#include <string.h>
7214#include <float.h>
7215
7216int
7217main ()
7218{
7219
7220  ;
7221  return 0;
7222}
7223_ACEOF
7224if ac_fn_c_try_compile "$LINENO"; then :
7225  ac_cv_header_stdc=yes
7226else
7227  ac_cv_header_stdc=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230
7231if test $ac_cv_header_stdc = yes; then
7232  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235#include <string.h>
7236
7237_ACEOF
7238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7239  $EGREP "memchr" >/dev/null 2>&1; then :
7240
7241else
7242  ac_cv_header_stdc=no
7243fi
7244rm -f conftest*
7245
7246fi
7247
7248if test $ac_cv_header_stdc = yes; then
7249  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252#include <stdlib.h>
7253
7254_ACEOF
7255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7256  $EGREP "free" >/dev/null 2>&1; then :
7257
7258else
7259  ac_cv_header_stdc=no
7260fi
7261rm -f conftest*
7262
7263fi
7264
7265if test $ac_cv_header_stdc = yes; then
7266  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7267  if test "$cross_compiling" = yes; then :
7268  :
7269else
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272#include <ctype.h>
7273#include <stdlib.h>
7274#if ((' ' & 0x0FF) == 0x020)
7275# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7276# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7277#else
7278# define ISLOWER(c) \
7279		   (('a' <= (c) && (c) <= 'i') \
7280		     || ('j' <= (c) && (c) <= 'r') \
7281		     || ('s' <= (c) && (c) <= 'z'))
7282# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7283#endif
7284
7285#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7286int
7287main ()
7288{
7289  int i;
7290  for (i = 0; i < 256; i++)
7291    if (XOR (islower (i), ISLOWER (i))
7292	|| toupper (i) != TOUPPER (i))
7293      return 2;
7294  return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_run "$LINENO"; then :
7298
7299else
7300  ac_cv_header_stdc=no
7301fi
7302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7303  conftest.$ac_objext conftest.beam conftest.$ac_ext
7304fi
7305
7306fi
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7309$as_echo "$ac_cv_header_stdc" >&6; }
7310if test $ac_cv_header_stdc = yes; then
7311
7312$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7313
7314fi
7315
7316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7318		  inttypes.h stdint.h unistd.h
7319do :
7320  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7322"
7323if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7324  cat >>confdefs.h <<_ACEOF
7325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7326_ACEOF
7327
7328fi
7329
7330done
7331
7332
7333for ac_header in dlfcn.h
7334do :
7335  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7336"
7337if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7338  cat >>confdefs.h <<_ACEOF
7339#define HAVE_DLFCN_H 1
7340_ACEOF
7341
7342fi
7343
7344done
7345
7346
7347
7348
7349
7350# Set options
7351
7352
7353
7354        enable_dlopen=no
7355
7356
7357  enable_win32_dll=no
7358
7359
7360            # Check whether --enable-shared was given.
7361if test "${enable_shared+set}" = set; then :
7362  enableval=$enable_shared; p=${PACKAGE-default}
7363    case $enableval in
7364    yes) enable_shared=yes ;;
7365    no) enable_shared=no ;;
7366    *)
7367      enable_shared=no
7368      # Look at the argument we got.  We use all the common list separators.
7369      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7370      for pkg in $enableval; do
7371	IFS="$lt_save_ifs"
7372	if test "X$pkg" = "X$p"; then
7373	  enable_shared=yes
7374	fi
7375      done
7376      IFS="$lt_save_ifs"
7377      ;;
7378    esac
7379else
7380  enable_shared=yes
7381fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391  # Check whether --enable-static was given.
7392if test "${enable_static+set}" = set; then :
7393  enableval=$enable_static; p=${PACKAGE-default}
7394    case $enableval in
7395    yes) enable_static=yes ;;
7396    no) enable_static=no ;;
7397    *)
7398     enable_static=no
7399      # Look at the argument we got.  We use all the common list separators.
7400      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401      for pkg in $enableval; do
7402	IFS="$lt_save_ifs"
7403	if test "X$pkg" = "X$p"; then
7404	  enable_static=yes
7405	fi
7406      done
7407      IFS="$lt_save_ifs"
7408      ;;
7409    esac
7410else
7411  enable_static=yes
7412fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423# Check whether --with-pic was given.
7424if test "${with_pic+set}" = set; then :
7425  withval=$with_pic; lt_p=${PACKAGE-default}
7426    case $withval in
7427    yes|no) pic_mode=$withval ;;
7428    *)
7429      pic_mode=default
7430      # Look at the argument we got.  We use all the common list separators.
7431      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7432      for lt_pkg in $withval; do
7433	IFS="$lt_save_ifs"
7434	if test "X$lt_pkg" = "X$lt_p"; then
7435	  pic_mode=yes
7436	fi
7437      done
7438      IFS="$lt_save_ifs"
7439      ;;
7440    esac
7441else
7442  pic_mode=default
7443fi
7444
7445
7446test -z "$pic_mode" && pic_mode=default
7447
7448
7449
7450
7451
7452
7453
7454  # Check whether --enable-fast-install was given.
7455if test "${enable_fast_install+set}" = set; then :
7456  enableval=$enable_fast_install; p=${PACKAGE-default}
7457    case $enableval in
7458    yes) enable_fast_install=yes ;;
7459    no) enable_fast_install=no ;;
7460    *)
7461      enable_fast_install=no
7462      # Look at the argument we got.  We use all the common list separators.
7463      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464      for pkg in $enableval; do
7465	IFS="$lt_save_ifs"
7466	if test "X$pkg" = "X$p"; then
7467	  enable_fast_install=yes
7468	fi
7469      done
7470      IFS="$lt_save_ifs"
7471      ;;
7472    esac
7473else
7474  enable_fast_install=yes
7475fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487# This can be used to rebuild libtool when needed
7488LIBTOOL_DEPS="$ltmain"
7489
7490# Always use our own libtool.
7491LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522test -z "$LN_S" && LN_S="ln -s"
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537if test -n "${ZSH_VERSION+set}" ; then
7538   setopt NO_GLOB_SUBST
7539fi
7540
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7542$as_echo_n "checking for objdir... " >&6; }
7543if ${lt_cv_objdir+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  rm -f .libs 2>/dev/null
7547mkdir .libs 2>/dev/null
7548if test -d .libs; then
7549  lt_cv_objdir=.libs
7550else
7551  # MS-DOS does not allow filenames that begin with a dot.
7552  lt_cv_objdir=_libs
7553fi
7554rmdir .libs 2>/dev/null
7555fi
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7557$as_echo "$lt_cv_objdir" >&6; }
7558objdir=$lt_cv_objdir
7559
7560
7561
7562
7563
7564cat >>confdefs.h <<_ACEOF
7565#define LT_OBJDIR "$lt_cv_objdir/"
7566_ACEOF
7567
7568
7569
7570
7571case $host_os in
7572aix3*)
7573  # AIX sometimes has problems with the GCC collect2 program.  For some
7574  # reason, if we set the COLLECT_NAMES environment variable, the problems
7575  # vanish in a puff of smoke.
7576  if test "X${COLLECT_NAMES+set}" != Xset; then
7577    COLLECT_NAMES=
7578    export COLLECT_NAMES
7579  fi
7580  ;;
7581esac
7582
7583# Global variables:
7584ofile=libtool
7585can_build_shared=yes
7586
7587# All known linkers require a `.a' archive for static linking (except MSVC,
7588# which needs '.lib').
7589libext=a
7590
7591with_gnu_ld="$lt_cv_prog_gnu_ld"
7592
7593old_CC="$CC"
7594old_CFLAGS="$CFLAGS"
7595
7596# Set sane defaults for various variables
7597test -z "$CC" && CC=cc
7598test -z "$LTCC" && LTCC=$CC
7599test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7600test -z "$LD" && LD=ld
7601test -z "$ac_objext" && ac_objext=o
7602
7603for cc_temp in $compiler""; do
7604  case $cc_temp in
7605    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7606    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7607    \-*) ;;
7608    *) break;;
7609  esac
7610done
7611cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7612
7613
7614# Only perform the check for file, if the check method requires it
7615test -z "$MAGIC_CMD" && MAGIC_CMD=file
7616case $deplibs_check_method in
7617file_magic*)
7618  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7620$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7621if ${lt_cv_path_MAGIC_CMD+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  case $MAGIC_CMD in
7625[\\/*] |  ?:[\\/]*)
7626  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7627  ;;
7628*)
7629  lt_save_MAGIC_CMD="$MAGIC_CMD"
7630  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632  for ac_dir in $ac_dummy; do
7633    IFS="$lt_save_ifs"
7634    test -z "$ac_dir" && ac_dir=.
7635    if test -f $ac_dir/${ac_tool_prefix}file; then
7636      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7637      if test -n "$file_magic_test_file"; then
7638	case $deplibs_check_method in
7639	"file_magic "*)
7640	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643	    $EGREP "$file_magic_regex" > /dev/null; then
7644	    :
7645	  else
7646	    cat <<_LT_EOF 1>&2
7647
7648*** Warning: the command libtool uses to detect shared libraries,
7649*** $file_magic_cmd, produces output that libtool cannot recognize.
7650*** The result is that libtool may fail to recognize shared libraries
7651*** as such.  This will affect the creation of libtool libraries that
7652*** depend on shared libraries, but programs linked with such libtool
7653*** libraries will work regardless of this problem.  Nevertheless, you
7654*** may want to report the problem to your system manager and/or to
7655*** bug-libtool@gnu.org
7656
7657_LT_EOF
7658	  fi ;;
7659	esac
7660      fi
7661      break
7662    fi
7663  done
7664  IFS="$lt_save_ifs"
7665  MAGIC_CMD="$lt_save_MAGIC_CMD"
7666  ;;
7667esac
7668fi
7669
7670MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671if test -n "$MAGIC_CMD"; then
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673$as_echo "$MAGIC_CMD" >&6; }
7674else
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677fi
7678
7679
7680
7681
7682
7683if test -z "$lt_cv_path_MAGIC_CMD"; then
7684  if test -n "$ac_tool_prefix"; then
7685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7686$as_echo_n "checking for file... " >&6; }
7687if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688  $as_echo_n "(cached) " >&6
7689else
7690  case $MAGIC_CMD in
7691[\\/*] |  ?:[\\/]*)
7692  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7693  ;;
7694*)
7695  lt_save_MAGIC_CMD="$MAGIC_CMD"
7696  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698  for ac_dir in $ac_dummy; do
7699    IFS="$lt_save_ifs"
7700    test -z "$ac_dir" && ac_dir=.
7701    if test -f $ac_dir/file; then
7702      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7703      if test -n "$file_magic_test_file"; then
7704	case $deplibs_check_method in
7705	"file_magic "*)
7706	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709	    $EGREP "$file_magic_regex" > /dev/null; then
7710	    :
7711	  else
7712	    cat <<_LT_EOF 1>&2
7713
7714*** Warning: the command libtool uses to detect shared libraries,
7715*** $file_magic_cmd, produces output that libtool cannot recognize.
7716*** The result is that libtool may fail to recognize shared libraries
7717*** as such.  This will affect the creation of libtool libraries that
7718*** depend on shared libraries, but programs linked with such libtool
7719*** libraries will work regardless of this problem.  Nevertheless, you
7720*** may want to report the problem to your system manager and/or to
7721*** bug-libtool@gnu.org
7722
7723_LT_EOF
7724	  fi ;;
7725	esac
7726      fi
7727      break
7728    fi
7729  done
7730  IFS="$lt_save_ifs"
7731  MAGIC_CMD="$lt_save_MAGIC_CMD"
7732  ;;
7733esac
7734fi
7735
7736MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737if test -n "$MAGIC_CMD"; then
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739$as_echo "$MAGIC_CMD" >&6; }
7740else
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744
7745
7746  else
7747    MAGIC_CMD=:
7748  fi
7749fi
7750
7751  fi
7752  ;;
7753esac
7754
7755# Use C for the default configuration in the libtool script
7756
7757lt_save_CC="$CC"
7758ac_ext=c
7759ac_cpp='$CPP $CPPFLAGS'
7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765# Source file extension for C test sources.
7766ac_ext=c
7767
7768# Object file extension for compiled C test sources.
7769objext=o
7770objext=$objext
7771
7772# Code to be used in simple compile tests
7773lt_simple_compile_test_code="int some_variable = 0;"
7774
7775# Code to be used in simple link tests
7776lt_simple_link_test_code='int main(){return(0);}'
7777
7778
7779
7780
7781
7782
7783
7784# If no C compiler was specified, use CC.
7785LTCC=${LTCC-"$CC"}
7786
7787# If no C compiler flags were specified, use CFLAGS.
7788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789
7790# Allow CC to be a program name with arguments.
7791compiler=$CC
7792
7793# Save the default compiler, since it gets overwritten when the other
7794# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7795compiler_DEFAULT=$CC
7796
7797# save warnings/boilerplate of simple test code
7798ac_outfile=conftest.$ac_objext
7799echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7800eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801_lt_compiler_boilerplate=`cat conftest.err`
7802$RM conftest*
7803
7804ac_outfile=conftest.$ac_objext
7805echo "$lt_simple_link_test_code" >conftest.$ac_ext
7806eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807_lt_linker_boilerplate=`cat conftest.err`
7808$RM -r conftest*
7809
7810
7811if test -n "$compiler"; then
7812
7813lt_prog_compiler_no_builtin_flag=
7814
7815if test "$GCC" = yes; then
7816  case $cc_basename in
7817  nvcc*)
7818    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7819  *)
7820    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7821  esac
7822
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7824$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7825if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  lt_cv_prog_compiler_rtti_exceptions=no
7829   ac_outfile=conftest.$ac_objext
7830   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7831   lt_compiler_flag="-fno-rtti -fno-exceptions"
7832   # Insert the option either (1) after the last *FLAGS variable, or
7833   # (2) before a word containing "conftest.", or (3) at the end.
7834   # Note that $ac_compile itself does not contain backslashes and begins
7835   # with a dollar sign (not a hyphen), so the echo should work correctly.
7836   # The option is referenced via a variable to avoid confusing sed.
7837   lt_compile=`echo "$ac_compile" | $SED \
7838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840   -e 's:$: $lt_compiler_flag:'`
7841   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7842   (eval "$lt_compile" 2>conftest.err)
7843   ac_status=$?
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   if (exit $ac_status) && test -s "$ac_outfile"; then
7847     # The compiler can only warn and ignore the option if not recognized
7848     # So say no if there are warnings other than the usual output.
7849     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7850     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7851     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7852       lt_cv_prog_compiler_rtti_exceptions=yes
7853     fi
7854   fi
7855   $RM conftest*
7856
7857fi
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7859$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7860
7861if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7862    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7863else
7864    :
7865fi
7866
7867fi
7868
7869
7870
7871
7872
7873
7874  lt_prog_compiler_wl=
7875lt_prog_compiler_pic=
7876lt_prog_compiler_static=
7877
7878
7879  if test "$GCC" = yes; then
7880    lt_prog_compiler_wl='-Wl,'
7881    lt_prog_compiler_static='-static'
7882
7883    case $host_os in
7884      aix*)
7885      # All AIX code is PIC.
7886      if test "$host_cpu" = ia64; then
7887	# AIX 5 now supports IA64 processor
7888	lt_prog_compiler_static='-Bstatic'
7889      fi
7890      ;;
7891
7892    amigaos*)
7893      case $host_cpu in
7894      powerpc)
7895            # see comment about AmigaOS4 .so support
7896            lt_prog_compiler_pic='-fPIC'
7897        ;;
7898      m68k)
7899            # FIXME: we need at least 68020 code to build shared libraries, but
7900            # adding the `-m68020' flag to GCC prevents building anything better,
7901            # like `-m68040'.
7902            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7903        ;;
7904      esac
7905      ;;
7906
7907    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7908      # PIC is the default for these OSes.
7909      ;;
7910
7911    mingw* | cygwin* | pw32* | os2* | cegcc*)
7912      # This hack is so that the source file can tell whether it is being
7913      # built for inclusion in a dll (and should export symbols for example).
7914      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7915      # (--disable-auto-import) libraries
7916      lt_prog_compiler_pic='-DDLL_EXPORT'
7917      ;;
7918
7919    darwin* | rhapsody*)
7920      # PIC is the default on this platform
7921      # Common symbols not allowed in MH_DYLIB files
7922      lt_prog_compiler_pic='-fno-common'
7923      ;;
7924
7925    haiku*)
7926      # PIC is the default for Haiku.
7927      # The "-static" flag exists, but is broken.
7928      lt_prog_compiler_static=
7929      ;;
7930
7931    hpux*)
7932      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7933      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7934      # sets the default TLS model and affects inlining.
7935      case $host_cpu in
7936      hppa*64*)
7937	# +Z the default
7938	;;
7939      *)
7940	lt_prog_compiler_pic='-fPIC'
7941	;;
7942      esac
7943      ;;
7944
7945    interix[3-9]*)
7946      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7947      # Instead, we relocate shared libraries at runtime.
7948      ;;
7949
7950    msdosdjgpp*)
7951      # Just because we use GCC doesn't mean we suddenly get shared libraries
7952      # on systems that don't support them.
7953      lt_prog_compiler_can_build_shared=no
7954      enable_shared=no
7955      ;;
7956
7957    *nto* | *qnx*)
7958      # QNX uses GNU C++, but need to define -shared option too, otherwise
7959      # it will coredump.
7960      lt_prog_compiler_pic='-fPIC -shared'
7961      ;;
7962
7963    sysv4*MP*)
7964      if test -d /usr/nec; then
7965	lt_prog_compiler_pic=-Kconform_pic
7966      fi
7967      ;;
7968
7969    *)
7970      lt_prog_compiler_pic='-fPIC'
7971      ;;
7972    esac
7973
7974    case $cc_basename in
7975    nvcc*) # Cuda Compiler Driver 2.2
7976      lt_prog_compiler_wl='-Xlinker '
7977      if test -n "$lt_prog_compiler_pic"; then
7978        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7979      fi
7980      ;;
7981    esac
7982  else
7983    # PORTME Check for flag to pass linker flags through the system compiler.
7984    case $host_os in
7985    aix*)
7986      lt_prog_compiler_wl='-Wl,'
7987      if test "$host_cpu" = ia64; then
7988	# AIX 5 now supports IA64 processor
7989	lt_prog_compiler_static='-Bstatic'
7990      else
7991	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7992      fi
7993      ;;
7994
7995    mingw* | cygwin* | pw32* | os2* | cegcc*)
7996      # This hack is so that the source file can tell whether it is being
7997      # built for inclusion in a dll (and should export symbols for example).
7998      lt_prog_compiler_pic='-DDLL_EXPORT'
7999      ;;
8000
8001    hpux9* | hpux10* | hpux11*)
8002      lt_prog_compiler_wl='-Wl,'
8003      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8004      # not for PA HP-UX.
8005      case $host_cpu in
8006      hppa*64*|ia64*)
8007	# +Z the default
8008	;;
8009      *)
8010	lt_prog_compiler_pic='+Z'
8011	;;
8012      esac
8013      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8014      lt_prog_compiler_static='${wl}-a ${wl}archive'
8015      ;;
8016
8017    irix5* | irix6* | nonstopux*)
8018      lt_prog_compiler_wl='-Wl,'
8019      # PIC (with -KPIC) is the default.
8020      lt_prog_compiler_static='-non_shared'
8021      ;;
8022
8023    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8024      case $cc_basename in
8025      # old Intel for x86_64 which still supported -KPIC.
8026      ecc*)
8027	lt_prog_compiler_wl='-Wl,'
8028	lt_prog_compiler_pic='-KPIC'
8029	lt_prog_compiler_static='-static'
8030        ;;
8031      # icc used to be incompatible with GCC.
8032      # ICC 10 doesn't accept -KPIC any more.
8033      icc* | ifort*)
8034	lt_prog_compiler_wl='-Wl,'
8035	lt_prog_compiler_pic='-fPIC'
8036	lt_prog_compiler_static='-static'
8037        ;;
8038      # Lahey Fortran 8.1.
8039      lf95*)
8040	lt_prog_compiler_wl='-Wl,'
8041	lt_prog_compiler_pic='--shared'
8042	lt_prog_compiler_static='--static'
8043	;;
8044      nagfor*)
8045	# NAG Fortran compiler
8046	lt_prog_compiler_wl='-Wl,-Wl,,'
8047	lt_prog_compiler_pic='-PIC'
8048	lt_prog_compiler_static='-Bstatic'
8049	;;
8050      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8051        # Portland Group compilers (*not* the Pentium gcc compiler,
8052	# which looks to be a dead project)
8053	lt_prog_compiler_wl='-Wl,'
8054	lt_prog_compiler_pic='-fpic'
8055	lt_prog_compiler_static='-Bstatic'
8056        ;;
8057      ccc*)
8058        lt_prog_compiler_wl='-Wl,'
8059        # All Alpha code is PIC.
8060        lt_prog_compiler_static='-non_shared'
8061        ;;
8062      xl* | bgxl* | bgf* | mpixl*)
8063	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8064	lt_prog_compiler_wl='-Wl,'
8065	lt_prog_compiler_pic='-qpic'
8066	lt_prog_compiler_static='-qstaticlink'
8067	;;
8068      *)
8069	case `$CC -V 2>&1 | sed 5q` in
8070	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8071	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8072	  lt_prog_compiler_pic='-KPIC'
8073	  lt_prog_compiler_static='-Bstatic'
8074	  lt_prog_compiler_wl=''
8075	  ;;
8076	*Sun\ F* | *Sun*Fortran*)
8077	  lt_prog_compiler_pic='-KPIC'
8078	  lt_prog_compiler_static='-Bstatic'
8079	  lt_prog_compiler_wl='-Qoption ld '
8080	  ;;
8081	*Sun\ C*)
8082	  # Sun C 5.9
8083	  lt_prog_compiler_pic='-KPIC'
8084	  lt_prog_compiler_static='-Bstatic'
8085	  lt_prog_compiler_wl='-Wl,'
8086	  ;;
8087        *Intel*\ [CF]*Compiler*)
8088	  lt_prog_compiler_wl='-Wl,'
8089	  lt_prog_compiler_pic='-fPIC'
8090	  lt_prog_compiler_static='-static'
8091	  ;;
8092	*Portland\ Group*)
8093	  lt_prog_compiler_wl='-Wl,'
8094	  lt_prog_compiler_pic='-fpic'
8095	  lt_prog_compiler_static='-Bstatic'
8096	  ;;
8097	esac
8098	;;
8099      esac
8100      ;;
8101
8102    newsos6)
8103      lt_prog_compiler_pic='-KPIC'
8104      lt_prog_compiler_static='-Bstatic'
8105      ;;
8106
8107    *nto* | *qnx*)
8108      # QNX uses GNU C++, but need to define -shared option too, otherwise
8109      # it will coredump.
8110      lt_prog_compiler_pic='-fPIC -shared'
8111      ;;
8112
8113    osf3* | osf4* | osf5*)
8114      lt_prog_compiler_wl='-Wl,'
8115      # All OSF/1 code is PIC.
8116      lt_prog_compiler_static='-non_shared'
8117      ;;
8118
8119    rdos*)
8120      lt_prog_compiler_static='-non_shared'
8121      ;;
8122
8123    solaris*)
8124      lt_prog_compiler_pic='-KPIC'
8125      lt_prog_compiler_static='-Bstatic'
8126      case $cc_basename in
8127      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8128	lt_prog_compiler_wl='-Qoption ld ';;
8129      *)
8130	lt_prog_compiler_wl='-Wl,';;
8131      esac
8132      ;;
8133
8134    sunos4*)
8135      lt_prog_compiler_wl='-Qoption ld '
8136      lt_prog_compiler_pic='-PIC'
8137      lt_prog_compiler_static='-Bstatic'
8138      ;;
8139
8140    sysv4 | sysv4.2uw2* | sysv4.3*)
8141      lt_prog_compiler_wl='-Wl,'
8142      lt_prog_compiler_pic='-KPIC'
8143      lt_prog_compiler_static='-Bstatic'
8144      ;;
8145
8146    sysv4*MP*)
8147      if test -d /usr/nec ;then
8148	lt_prog_compiler_pic='-Kconform_pic'
8149	lt_prog_compiler_static='-Bstatic'
8150      fi
8151      ;;
8152
8153    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8154      lt_prog_compiler_wl='-Wl,'
8155      lt_prog_compiler_pic='-KPIC'
8156      lt_prog_compiler_static='-Bstatic'
8157      ;;
8158
8159    unicos*)
8160      lt_prog_compiler_wl='-Wl,'
8161      lt_prog_compiler_can_build_shared=no
8162      ;;
8163
8164    uts4*)
8165      lt_prog_compiler_pic='-pic'
8166      lt_prog_compiler_static='-Bstatic'
8167      ;;
8168
8169    *)
8170      lt_prog_compiler_can_build_shared=no
8171      ;;
8172    esac
8173  fi
8174
8175case $host_os in
8176  # For platforms which do not support PIC, -DPIC is meaningless:
8177  *djgpp*)
8178    lt_prog_compiler_pic=
8179    ;;
8180  *)
8181    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8182    ;;
8183esac
8184
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8186$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8187if ${lt_cv_prog_compiler_pic+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8193$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8194lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8195
8196#
8197# Check to make sure the PIC flag actually works.
8198#
8199if test -n "$lt_prog_compiler_pic"; then
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8201$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8202if ${lt_cv_prog_compiler_pic_works+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  lt_cv_prog_compiler_pic_works=no
8206   ac_outfile=conftest.$ac_objext
8207   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8209   # Insert the option either (1) after the last *FLAGS variable, or
8210   # (2) before a word containing "conftest.", or (3) at the end.
8211   # Note that $ac_compile itself does not contain backslashes and begins
8212   # with a dollar sign (not a hyphen), so the echo should work correctly.
8213   # The option is referenced via a variable to avoid confusing sed.
8214   lt_compile=`echo "$ac_compile" | $SED \
8215   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217   -e 's:$: $lt_compiler_flag:'`
8218   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219   (eval "$lt_compile" 2>conftest.err)
8220   ac_status=$?
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   if (exit $ac_status) && test -s "$ac_outfile"; then
8224     # The compiler can only warn and ignore the option if not recognized
8225     # So say no if there are warnings other than the usual output.
8226     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8229       lt_cv_prog_compiler_pic_works=yes
8230     fi
8231   fi
8232   $RM conftest*
8233
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8236$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8237
8238if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8239    case $lt_prog_compiler_pic in
8240     "" | " "*) ;;
8241     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8242     esac
8243else
8244    lt_prog_compiler_pic=
8245     lt_prog_compiler_can_build_shared=no
8246fi
8247
8248fi
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260#
8261# Check to make sure the static flag actually works.
8262#
8263wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8265$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8266if ${lt_cv_prog_compiler_static_works+:} false; then :
8267  $as_echo_n "(cached) " >&6
8268else
8269  lt_cv_prog_compiler_static_works=no
8270   save_LDFLAGS="$LDFLAGS"
8271   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8272   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8273   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8274     # The linker can only warn and ignore the option if not recognized
8275     # So say no if there are warnings
8276     if test -s conftest.err; then
8277       # Append any errors to the config.log.
8278       cat conftest.err 1>&5
8279       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8280       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281       if diff conftest.exp conftest.er2 >/dev/null; then
8282         lt_cv_prog_compiler_static_works=yes
8283       fi
8284     else
8285       lt_cv_prog_compiler_static_works=yes
8286     fi
8287   fi
8288   $RM -r conftest*
8289   LDFLAGS="$save_LDFLAGS"
8290
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8293$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8294
8295if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8296    :
8297else
8298    lt_prog_compiler_static=
8299fi
8300
8301
8302
8303
8304
8305
8306
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309if ${lt_cv_prog_compiler_c_o+:} false; then :
8310  $as_echo_n "(cached) " >&6
8311else
8312  lt_cv_prog_compiler_c_o=no
8313   $RM -r conftest 2>/dev/null
8314   mkdir conftest
8315   cd conftest
8316   mkdir out
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319   lt_compiler_flag="-o out/conftest2.$ac_objext"
8320   # Insert the option either (1) after the last *FLAGS variable, or
8321   # (2) before a word containing "conftest.", or (3) at the end.
8322   # Note that $ac_compile itself does not contain backslashes and begins
8323   # with a dollar sign (not a hyphen), so the echo should work correctly.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>out/conftest.err)
8330   ac_status=$?
8331   cat out/conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334   then
8335     # The compiler can only warn and ignore the option if not recognized
8336     # So say no if there are warnings
8337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8338     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340       lt_cv_prog_compiler_c_o=yes
8341     fi
8342   fi
8343   chmod u+w . 2>&5
8344   $RM conftest*
8345   # SGI C++ compiler will create directory out/ii_files/ for
8346   # template instantiation
8347   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348   $RM out/* && rmdir out
8349   cd ..
8350   $RM -r conftest
8351   $RM conftest*
8352
8353fi
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8355$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
8360
8361
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8364if ${lt_cv_prog_compiler_c_o+:} false; then :
8365  $as_echo_n "(cached) " >&6
8366else
8367  lt_cv_prog_compiler_c_o=no
8368   $RM -r conftest 2>/dev/null
8369   mkdir conftest
8370   cd conftest
8371   mkdir out
8372   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373
8374   lt_compiler_flag="-o out/conftest2.$ac_objext"
8375   # Insert the option either (1) after the last *FLAGS variable, or
8376   # (2) before a word containing "conftest.", or (3) at the end.
8377   # Note that $ac_compile itself does not contain backslashes and begins
8378   # with a dollar sign (not a hyphen), so the echo should work correctly.
8379   lt_compile=`echo "$ac_compile" | $SED \
8380   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8381   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8382   -e 's:$: $lt_compiler_flag:'`
8383   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8384   (eval "$lt_compile" 2>out/conftest.err)
8385   ac_status=$?
8386   cat out/conftest.err >&5
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8389   then
8390     # The compiler can only warn and ignore the option if not recognized
8391     # So say no if there are warnings
8392     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8393     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8394     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8395       lt_cv_prog_compiler_c_o=yes
8396     fi
8397   fi
8398   chmod u+w . 2>&5
8399   $RM conftest*
8400   # SGI C++ compiler will create directory out/ii_files/ for
8401   # template instantiation
8402   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8403   $RM out/* && rmdir out
8404   cd ..
8405   $RM -r conftest
8406   $RM conftest*
8407
8408fi
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8410$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8411
8412
8413
8414
8415hard_links="nottested"
8416if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8417  # do not overwrite the value of need_locks provided by the user
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8419$as_echo_n "checking if we can lock with hard links... " >&6; }
8420  hard_links=yes
8421  $RM conftest*
8422  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8423  touch conftest.a
8424  ln conftest.a conftest.b 2>&5 || hard_links=no
8425  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8427$as_echo "$hard_links" >&6; }
8428  if test "$hard_links" = no; then
8429    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8430$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8431    need_locks=warn
8432  fi
8433else
8434  need_locks=no
8435fi
8436
8437
8438
8439
8440
8441
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8444
8445  runpath_var=
8446  allow_undefined_flag=
8447  always_export_symbols=no
8448  archive_cmds=
8449  archive_expsym_cmds=
8450  compiler_needs_object=no
8451  enable_shared_with_static_runtimes=no
8452  export_dynamic_flag_spec=
8453  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8454  hardcode_automatic=no
8455  hardcode_direct=no
8456  hardcode_direct_absolute=no
8457  hardcode_libdir_flag_spec=
8458  hardcode_libdir_separator=
8459  hardcode_minus_L=no
8460  hardcode_shlibpath_var=unsupported
8461  inherit_rpath=no
8462  link_all_deplibs=unknown
8463  module_cmds=
8464  module_expsym_cmds=
8465  old_archive_from_new_cmds=
8466  old_archive_from_expsyms_cmds=
8467  thread_safe_flag_spec=
8468  whole_archive_flag_spec=
8469  # include_expsyms should be a list of space-separated symbols to be *always*
8470  # included in the symbol list
8471  include_expsyms=
8472  # exclude_expsyms can be an extended regexp of symbols to exclude
8473  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8474  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8475  # as well as any symbol that contains `d'.
8476  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8477  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8478  # platforms (ab)use it in PIC code, but their linkers get confused if
8479  # the symbol is explicitly referenced.  Since portable code cannot
8480  # rely on this symbol name, it's probably fine to never include it in
8481  # preloaded symbol tables.
8482  # Exclude shared library initialization/finalization symbols.
8483  extract_expsyms_cmds=
8484
8485  case $host_os in
8486  cygwin* | mingw* | pw32* | cegcc*)
8487    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8488    # When not using gcc, we currently assume that we are using
8489    # Microsoft Visual C++.
8490    if test "$GCC" != yes; then
8491      with_gnu_ld=no
8492    fi
8493    ;;
8494  interix*)
8495    # we just hope/assume this is gcc and not c89 (= MSVC++)
8496    with_gnu_ld=yes
8497    ;;
8498  openbsd*)
8499    with_gnu_ld=no
8500    ;;
8501  esac
8502
8503  ld_shlibs=yes
8504
8505  # On some targets, GNU ld is compatible enough with the native linker
8506  # that we're better off using the native interface for both.
8507  lt_use_gnu_ld_interface=no
8508  if test "$with_gnu_ld" = yes; then
8509    case $host_os in
8510      aix*)
8511	# The AIX port of GNU ld has always aspired to compatibility
8512	# with the native linker.  However, as the warning in the GNU ld
8513	# block says, versions before 2.19.5* couldn't really create working
8514	# shared libraries, regardless of the interface used.
8515	case `$LD -v 2>&1` in
8516	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8517	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8518	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8519	  *)
8520	    lt_use_gnu_ld_interface=yes
8521	    ;;
8522	esac
8523	;;
8524      *)
8525	lt_use_gnu_ld_interface=yes
8526	;;
8527    esac
8528  fi
8529
8530  if test "$lt_use_gnu_ld_interface" = yes; then
8531    # If archive_cmds runs LD, not CC, wlarc should be empty
8532    wlarc='${wl}'
8533
8534    # Set some defaults for GNU ld with shared library support. These
8535    # are reset later if shared libraries are not supported. Putting them
8536    # here allows them to be overridden if necessary.
8537    runpath_var=LD_RUN_PATH
8538    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8539    export_dynamic_flag_spec='${wl}--export-dynamic'
8540    # ancient GNU ld didn't support --whole-archive et. al.
8541    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8542      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8543    else
8544      whole_archive_flag_spec=
8545    fi
8546    supports_anon_versioning=no
8547    case `$LD -v 2>&1` in
8548      *GNU\ gold*) supports_anon_versioning=yes ;;
8549      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8550      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8551      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8552      *\ 2.11.*) ;; # other 2.11 versions
8553      *) supports_anon_versioning=yes ;;
8554    esac
8555
8556    # See if GNU ld supports shared libraries.
8557    case $host_os in
8558    aix[3-9]*)
8559      # On AIX/PPC, the GNU linker is very broken
8560      if test "$host_cpu" != ia64; then
8561	ld_shlibs=no
8562	cat <<_LT_EOF 1>&2
8563
8564*** Warning: the GNU linker, at least up to release 2.19, is reported
8565*** to be unable to reliably create shared libraries on AIX.
8566*** Therefore, libtool is disabling shared libraries support.  If you
8567*** really care for shared libraries, you may want to install binutils
8568*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8569*** You will then need to restart the configuration process.
8570
8571_LT_EOF
8572      fi
8573      ;;
8574
8575    amigaos*)
8576      case $host_cpu in
8577      powerpc)
8578            # see comment about AmigaOS4 .so support
8579            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580            archive_expsym_cmds=''
8581        ;;
8582      m68k)
8583            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)'
8584            hardcode_libdir_flag_spec='-L$libdir'
8585            hardcode_minus_L=yes
8586        ;;
8587      esac
8588      ;;
8589
8590    beos*)
8591      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8592	allow_undefined_flag=unsupported
8593	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8594	# support --undefined.  This deserves some investigation.  FIXME
8595	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596      else
8597	ld_shlibs=no
8598      fi
8599      ;;
8600
8601    cygwin* | mingw* | pw32* | cegcc*)
8602      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8603      # as there is no search path for DLLs.
8604      hardcode_libdir_flag_spec='-L$libdir'
8605      export_dynamic_flag_spec='${wl}--export-all-symbols'
8606      allow_undefined_flag=unsupported
8607      always_export_symbols=no
8608      enable_shared_with_static_runtimes=yes
8609      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'
8610      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8611
8612      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8613        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614	# If the export-symbols file already is a .def file (1st line
8615	# is EXPORTS), use it as is; otherwise, prepend...
8616	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8617	  cp $export_symbols $output_objdir/$soname.def;
8618	else
8619	  echo EXPORTS > $output_objdir/$soname.def;
8620	  cat $export_symbols >> $output_objdir/$soname.def;
8621	fi~
8622	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8623      else
8624	ld_shlibs=no
8625      fi
8626      ;;
8627
8628    haiku*)
8629      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630      link_all_deplibs=yes
8631      ;;
8632
8633    interix[3-9]*)
8634      hardcode_direct=no
8635      hardcode_shlibpath_var=no
8636      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8637      export_dynamic_flag_spec='${wl}-E'
8638      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8639      # Instead, shared libraries are loaded at an image base (0x10000000 by
8640      # default) and relocated if they conflict, which is a slow very memory
8641      # consuming and fragmenting process.  To avoid this, we pick a random,
8642      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8643      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8644      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8645      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'
8646      ;;
8647
8648    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8649      tmp_diet=no
8650      if test "$host_os" = linux-dietlibc; then
8651	case $cc_basename in
8652	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8653	esac
8654      fi
8655      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8656	 && test "$tmp_diet" = no
8657      then
8658	tmp_addflag=' $pic_flag'
8659	tmp_sharedflag='-shared'
8660	case $cc_basename,$host_cpu in
8661        pgcc*)				# Portland Group C compiler
8662	  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'
8663	  tmp_addflag=' $pic_flag'
8664	  ;;
8665	pgf77* | pgf90* | pgf95* | pgfortran*)
8666					# Portland Group f77 and f90 compilers
8667	  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'
8668	  tmp_addflag=' $pic_flag -Mnomain' ;;
8669	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8670	  tmp_addflag=' -i_dynamic' ;;
8671	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8672	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8673	ifc* | ifort*)			# Intel Fortran compiler
8674	  tmp_addflag=' -nofor_main' ;;
8675	lf95*)				# Lahey Fortran 8.1
8676	  whole_archive_flag_spec=
8677	  tmp_sharedflag='--shared' ;;
8678	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8679	  tmp_sharedflag='-qmkshrobj'
8680	  tmp_addflag= ;;
8681	nvcc*)	# Cuda Compiler Driver 2.2
8682	  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'
8683	  compiler_needs_object=yes
8684	  ;;
8685	esac
8686	case `$CC -V 2>&1 | sed 5q` in
8687	*Sun\ C*)			# Sun C 5.9
8688	  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'
8689	  compiler_needs_object=yes
8690	  tmp_sharedflag='-G' ;;
8691	*Sun\ F*)			# Sun Fortran 8.3
8692	  tmp_sharedflag='-G' ;;
8693	esac
8694	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695
8696        if test "x$supports_anon_versioning" = xyes; then
8697          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699	    echo "local: *; };" >> $output_objdir/$libname.ver~
8700	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701        fi
8702
8703	case $cc_basename in
8704	xlf* | bgf* | bgxlf* | mpixlf*)
8705	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8706	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8707	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8709	  if test "x$supports_anon_versioning" = xyes; then
8710	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8711	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8712	      echo "local: *; };" >> $output_objdir/$libname.ver~
8713	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8714	  fi
8715	  ;;
8716	esac
8717      else
8718        ld_shlibs=no
8719      fi
8720      ;;
8721
8722    netbsd*)
8723      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8724	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8725	wlarc=
8726      else
8727	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729      fi
8730      ;;
8731
8732    solaris*)
8733      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8734	ld_shlibs=no
8735	cat <<_LT_EOF 1>&2
8736
8737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8738*** create shared libraries on Solaris systems.  Therefore, libtool
8739*** is disabling shared libraries support.  We urge you to upgrade GNU
8740*** binutils to release 2.9.1 or newer.  Another option is to modify
8741*** your PATH or compiler configuration so that the native linker is
8742*** used, and then restart.
8743
8744_LT_EOF
8745      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8748      else
8749	ld_shlibs=no
8750      fi
8751      ;;
8752
8753    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8754      case `$LD -v 2>&1` in
8755        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8756	ld_shlibs=no
8757	cat <<_LT_EOF 1>&2
8758
8759*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8760*** reliably create shared libraries on SCO systems.  Therefore, libtool
8761*** is disabling shared libraries support.  We urge you to upgrade GNU
8762*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8763*** your PATH or compiler configuration so that the native linker is
8764*** used, and then restart.
8765
8766_LT_EOF
8767	;;
8768	*)
8769	  # For security reasons, it is highly recommended that you always
8770	  # use absolute paths for naming shared libraries, and exclude the
8771	  # DT_RUNPATH tag from executables and libraries.  But doing so
8772	  # requires that you compile everything twice, which is a pain.
8773	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8774	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777	  else
8778	    ld_shlibs=no
8779	  fi
8780	;;
8781      esac
8782      ;;
8783
8784    sunos4*)
8785      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8786      wlarc=
8787      hardcode_direct=yes
8788      hardcode_shlibpath_var=no
8789      ;;
8790
8791    *)
8792      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795      else
8796	ld_shlibs=no
8797      fi
8798      ;;
8799    esac
8800
8801    if test "$ld_shlibs" = no; then
8802      runpath_var=
8803      hardcode_libdir_flag_spec=
8804      export_dynamic_flag_spec=
8805      whole_archive_flag_spec=
8806    fi
8807  else
8808    # PORTME fill in a description of your system's linker (not GNU ld)
8809    case $host_os in
8810    aix3*)
8811      allow_undefined_flag=unsupported
8812      always_export_symbols=yes
8813      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'
8814      # Note: this linker hardcodes the directories in LIBPATH if there
8815      # are no directories specified by -L.
8816      hardcode_minus_L=yes
8817      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8818	# Neither direct hardcoding nor static linking is supported with a
8819	# broken collect2.
8820	hardcode_direct=unsupported
8821      fi
8822      ;;
8823
8824    aix[4-9]*)
8825      if test "$host_cpu" = ia64; then
8826	# On IA64, the linker does run time linking by default, so we don't
8827	# have to do anything special.
8828	aix_use_runtimelinking=no
8829	exp_sym_flag='-Bexport'
8830	no_entry_flag=""
8831      else
8832	# If we're using GNU nm, then we don't want the "-C" option.
8833	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8834	# Also, AIX nm treats weak defined symbols like other global
8835	# defined symbols, whereas GNU nm marks them as "W".
8836	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8837	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8838	else
8839	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8840	fi
8841	aix_use_runtimelinking=no
8842
8843	# Test if we are trying to use run time linking or normal
8844	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8845	# need to do runtime linking.
8846	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8847	  for ld_flag in $LDFLAGS; do
8848	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8849	    aix_use_runtimelinking=yes
8850	    break
8851	  fi
8852	  done
8853	  ;;
8854	esac
8855
8856	exp_sym_flag='-bexport'
8857	no_entry_flag='-bnoentry'
8858      fi
8859
8860      # When large executables or shared objects are built, AIX ld can
8861      # have problems creating the table of contents.  If linking a library
8862      # or program results in "error TOC overflow" add -mminimal-toc to
8863      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8864      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8865
8866      archive_cmds=''
8867      hardcode_direct=yes
8868      hardcode_direct_absolute=yes
8869      hardcode_libdir_separator=':'
8870      link_all_deplibs=yes
8871      file_list_spec='${wl}-f,'
8872
8873      if test "$GCC" = yes; then
8874	case $host_os in aix4.[012]|aix4.[012].*)
8875	# We only want to do this on AIX 4.2 and lower, the check
8876	# below for broken collect2 doesn't work under 4.3+
8877	  collect2name=`${CC} -print-prog-name=collect2`
8878	  if test -f "$collect2name" &&
8879	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8880	  then
8881	  # We have reworked collect2
8882	  :
8883	  else
8884	  # We have old collect2
8885	  hardcode_direct=unsupported
8886	  # It fails to find uninstalled libraries when the uninstalled
8887	  # path is not listed in the libpath.  Setting hardcode_minus_L
8888	  # to unsupported forces relinking
8889	  hardcode_minus_L=yes
8890	  hardcode_libdir_flag_spec='-L$libdir'
8891	  hardcode_libdir_separator=
8892	  fi
8893	  ;;
8894	esac
8895	shared_flag='-shared'
8896	if test "$aix_use_runtimelinking" = yes; then
8897	  shared_flag="$shared_flag "'${wl}-G'
8898	fi
8899      else
8900	# not using gcc
8901	if test "$host_cpu" = ia64; then
8902	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8903	# chokes on -Wl,-G. The following line is correct:
8904	  shared_flag='-G'
8905	else
8906	  if test "$aix_use_runtimelinking" = yes; then
8907	    shared_flag='${wl}-G'
8908	  else
8909	    shared_flag='${wl}-bM:SRE'
8910	  fi
8911	fi
8912      fi
8913
8914      export_dynamic_flag_spec='${wl}-bexpall'
8915      # It seems that -bexpall does not export symbols beginning with
8916      # underscore (_), so it is better to generate a list of symbols to export.
8917      always_export_symbols=yes
8918      if test "$aix_use_runtimelinking" = yes; then
8919	# Warning - without using the other runtime loading flags (-brtl),
8920	# -berok will link without error, but may produce a broken library.
8921	allow_undefined_flag='-berok'
8922        # Determine the default libpath from the value encoded in an
8923        # empty executable.
8924        if test "${lt_cv_aix_libpath+set}" = set; then
8925  aix_libpath=$lt_cv_aix_libpath
8926else
8927  if ${lt_cv_aix_libpath_+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h.  */
8932
8933int
8934main ()
8935{
8936
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_link "$LINENO"; then :
8942
8943  lt_aix_libpath_sed='
8944      /Import File Strings/,/^$/ {
8945	  /^0/ {
8946	      s/^0  *\([^ ]*\) *$/\1/
8947	      p
8948	  }
8949      }'
8950  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951  # Check for a 64-bit object if we didn't find anything.
8952  if test -z "$lt_cv_aix_libpath_"; then
8953    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954  fi
8955fi
8956rm -f core conftest.err conftest.$ac_objext \
8957    conftest$ac_exeext conftest.$ac_ext
8958  if test -z "$lt_cv_aix_libpath_"; then
8959    lt_cv_aix_libpath_="/usr/lib:/lib"
8960  fi
8961
8962fi
8963
8964  aix_libpath=$lt_cv_aix_libpath_
8965fi
8966
8967        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8968        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8969      else
8970	if test "$host_cpu" = ia64; then
8971	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8972	  allow_undefined_flag="-z nodefs"
8973	  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"
8974	else
8975	 # Determine the default libpath from the value encoded in an
8976	 # empty executable.
8977	 if test "${lt_cv_aix_libpath+set}" = set; then
8978  aix_libpath=$lt_cv_aix_libpath
8979else
8980  if ${lt_cv_aix_libpath_+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985
8986int
8987main ()
8988{
8989
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995
8996  lt_aix_libpath_sed='
8997      /Import File Strings/,/^$/ {
8998	  /^0/ {
8999	      s/^0  *\([^ ]*\) *$/\1/
9000	      p
9001	  }
9002      }'
9003  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004  # Check for a 64-bit object if we didn't find anything.
9005  if test -z "$lt_cv_aix_libpath_"; then
9006    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007  fi
9008fi
9009rm -f core conftest.err conftest.$ac_objext \
9010    conftest$ac_exeext conftest.$ac_ext
9011  if test -z "$lt_cv_aix_libpath_"; then
9012    lt_cv_aix_libpath_="/usr/lib:/lib"
9013  fi
9014
9015fi
9016
9017  aix_libpath=$lt_cv_aix_libpath_
9018fi
9019
9020	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021	  # Warning - without using the other run time loading flags,
9022	  # -berok will link without error, but may produce a broken library.
9023	  no_undefined_flag=' ${wl}-bernotok'
9024	  allow_undefined_flag=' ${wl}-berok'
9025	  if test "$with_gnu_ld" = yes; then
9026	    # We only use this code for GNU lds that support --whole-archive.
9027	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9028	  else
9029	    # Exported symbols can be pulled into shared objects from archives
9030	    whole_archive_flag_spec='$convenience'
9031	  fi
9032	  archive_cmds_need_lc=yes
9033	  # This is similar to how AIX traditionally builds its shared libraries.
9034	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9035	fi
9036      fi
9037      ;;
9038
9039    amigaos*)
9040      case $host_cpu in
9041      powerpc)
9042            # see comment about AmigaOS4 .so support
9043            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044            archive_expsym_cmds=''
9045        ;;
9046      m68k)
9047            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)'
9048            hardcode_libdir_flag_spec='-L$libdir'
9049            hardcode_minus_L=yes
9050        ;;
9051      esac
9052      ;;
9053
9054    bsdi[45]*)
9055      export_dynamic_flag_spec=-rdynamic
9056      ;;
9057
9058    cygwin* | mingw* | pw32* | cegcc*)
9059      # When not using gcc, we currently assume that we are using
9060      # Microsoft Visual C++.
9061      # hardcode_libdir_flag_spec is actually meaningless, as there is
9062      # no search path for DLLs.
9063      case $cc_basename in
9064      cl*)
9065	# Native MSVC
9066	hardcode_libdir_flag_spec=' '
9067	allow_undefined_flag=unsupported
9068	always_export_symbols=yes
9069	file_list_spec='@'
9070	# Tell ltmain to make .lib files, not .a files.
9071	libext=lib
9072	# Tell ltmain to make .dll files, not .so files.
9073	shrext_cmds=".dll"
9074	# FIXME: Setting linknames here is a bad hack.
9075	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9076	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9077	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9078	  else
9079	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9080	  fi~
9081	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9082	  linknames='
9083	# The linker will not automatically build a static lib if we build a DLL.
9084	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9085	enable_shared_with_static_runtimes=yes
9086	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9087	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9088	# Don't use ranlib
9089	old_postinstall_cmds='chmod 644 $oldlib'
9090	postlink_cmds='lt_outputfile="@OUTPUT@"~
9091	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9092	  case $lt_outputfile in
9093	    *.exe|*.EXE) ;;
9094	    *)
9095	      lt_outputfile="$lt_outputfile.exe"
9096	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9097	      ;;
9098	  esac~
9099	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9100	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9101	    $RM "$lt_outputfile.manifest";
9102	  fi'
9103	;;
9104      *)
9105	# Assume MSVC wrapper
9106	hardcode_libdir_flag_spec=' '
9107	allow_undefined_flag=unsupported
9108	# Tell ltmain to make .lib files, not .a files.
9109	libext=lib
9110	# Tell ltmain to make .dll files, not .so files.
9111	shrext_cmds=".dll"
9112	# FIXME: Setting linknames here is a bad hack.
9113	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9114	# The linker will automatically build a .lib file if we build a DLL.
9115	old_archive_from_new_cmds='true'
9116	# FIXME: Should let the user specify the lib program.
9117	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9118	enable_shared_with_static_runtimes=yes
9119	;;
9120      esac
9121      ;;
9122
9123    darwin* | rhapsody*)
9124
9125
9126  archive_cmds_need_lc=no
9127  hardcode_direct=no
9128  hardcode_automatic=yes
9129  hardcode_shlibpath_var=unsupported
9130  if test "$lt_cv_ld_force_load" = "yes"; then
9131    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\"`'
9132
9133  else
9134    whole_archive_flag_spec=''
9135  fi
9136  link_all_deplibs=yes
9137  allow_undefined_flag="$_lt_dar_allow_undefined"
9138  case $cc_basename in
9139     ifort*) _lt_dar_can_shared=yes ;;
9140     *) _lt_dar_can_shared=$GCC ;;
9141  esac
9142  if test "$_lt_dar_can_shared" = "yes"; then
9143    output_verbose_link_cmd=func_echo_all
9144    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9145    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9146    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}"
9147    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}"
9148
9149  else
9150  ld_shlibs=no
9151  fi
9152
9153      ;;
9154
9155    dgux*)
9156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157      hardcode_libdir_flag_spec='-L$libdir'
9158      hardcode_shlibpath_var=no
9159      ;;
9160
9161    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9162    # support.  Future versions do this automatically, but an explicit c++rt0.o
9163    # does not break anything, and helps significantly (at the cost of a little
9164    # extra space).
9165    freebsd2.2*)
9166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9167      hardcode_libdir_flag_spec='-R$libdir'
9168      hardcode_direct=yes
9169      hardcode_shlibpath_var=no
9170      ;;
9171
9172    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9173    freebsd2.*)
9174      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9175      hardcode_direct=yes
9176      hardcode_minus_L=yes
9177      hardcode_shlibpath_var=no
9178      ;;
9179
9180    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9181    freebsd* | dragonfly*)
9182      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9183      hardcode_libdir_flag_spec='-R$libdir'
9184      hardcode_direct=yes
9185      hardcode_shlibpath_var=no
9186      ;;
9187
9188    hpux9*)
9189      if test "$GCC" = yes; then
9190	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9191      else
9192	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9193      fi
9194      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195      hardcode_libdir_separator=:
9196      hardcode_direct=yes
9197
9198      # hardcode_minus_L: Not really in the search PATH,
9199      # but as the default location of the library.
9200      hardcode_minus_L=yes
9201      export_dynamic_flag_spec='${wl}-E'
9202      ;;
9203
9204    hpux10*)
9205      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9206	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9207      else
9208	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9209      fi
9210      if test "$with_gnu_ld" = no; then
9211	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9212	hardcode_libdir_separator=:
9213	hardcode_direct=yes
9214	hardcode_direct_absolute=yes
9215	export_dynamic_flag_spec='${wl}-E'
9216	# hardcode_minus_L: Not really in the search PATH,
9217	# but as the default location of the library.
9218	hardcode_minus_L=yes
9219      fi
9220      ;;
9221
9222    hpux11*)
9223      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9224	case $host_cpu in
9225	hppa*64*)
9226	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227	  ;;
9228	ia64*)
9229	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9230	  ;;
9231	*)
9232	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233	  ;;
9234	esac
9235      else
9236	case $host_cpu in
9237	hppa*64*)
9238	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239	  ;;
9240	ia64*)
9241	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9242	  ;;
9243	*)
9244
9245	  # Older versions of the 11.00 compiler do not understand -b yet
9246	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9247	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9248$as_echo_n "checking if $CC understands -b... " >&6; }
9249if ${lt_cv_prog_compiler__b+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  lt_cv_prog_compiler__b=no
9253   save_LDFLAGS="$LDFLAGS"
9254   LDFLAGS="$LDFLAGS -b"
9255   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9256   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9257     # The linker can only warn and ignore the option if not recognized
9258     # So say no if there are warnings
9259     if test -s conftest.err; then
9260       # Append any errors to the config.log.
9261       cat conftest.err 1>&5
9262       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9263       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264       if diff conftest.exp conftest.er2 >/dev/null; then
9265         lt_cv_prog_compiler__b=yes
9266       fi
9267     else
9268       lt_cv_prog_compiler__b=yes
9269     fi
9270   fi
9271   $RM -r conftest*
9272   LDFLAGS="$save_LDFLAGS"
9273
9274fi
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9276$as_echo "$lt_cv_prog_compiler__b" >&6; }
9277
9278if test x"$lt_cv_prog_compiler__b" = xyes; then
9279    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280else
9281    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9282fi
9283
9284	  ;;
9285	esac
9286      fi
9287      if test "$with_gnu_ld" = no; then
9288	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9289	hardcode_libdir_separator=:
9290
9291	case $host_cpu in
9292	hppa*64*|ia64*)
9293	  hardcode_direct=no
9294	  hardcode_shlibpath_var=no
9295	  ;;
9296	*)
9297	  hardcode_direct=yes
9298	  hardcode_direct_absolute=yes
9299	  export_dynamic_flag_spec='${wl}-E'
9300
9301	  # hardcode_minus_L: Not really in the search PATH,
9302	  # but as the default location of the library.
9303	  hardcode_minus_L=yes
9304	  ;;
9305	esac
9306      fi
9307      ;;
9308
9309    irix5* | irix6* | nonstopux*)
9310      if test "$GCC" = yes; then
9311	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'
9312	# Try to use the -exported_symbol ld option, if it does not
9313	# work, assume that -exports_file does not work either and
9314	# implicitly export all symbols.
9315	# This should be the same for all languages, so no per-tag cache variable.
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9317$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9318if ${lt_cv_irix_exported_symbol+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  save_LDFLAGS="$LDFLAGS"
9322	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9323	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325int foo (void) { return 0; }
9326_ACEOF
9327if ac_fn_c_try_link "$LINENO"; then :
9328  lt_cv_irix_exported_symbol=yes
9329else
9330  lt_cv_irix_exported_symbol=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext \
9333    conftest$ac_exeext conftest.$ac_ext
9334           LDFLAGS="$save_LDFLAGS"
9335fi
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9337$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9338	if test "$lt_cv_irix_exported_symbol" = yes; then
9339          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'
9340	fi
9341      else
9342	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'
9343	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'
9344      fi
9345      archive_cmds_need_lc='no'
9346      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347      hardcode_libdir_separator=:
9348      inherit_rpath=yes
9349      link_all_deplibs=yes
9350      ;;
9351
9352    netbsd*)
9353      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9355      else
9356	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9357      fi
9358      hardcode_libdir_flag_spec='-R$libdir'
9359      hardcode_direct=yes
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    newsos6)
9364      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365      hardcode_direct=yes
9366      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367      hardcode_libdir_separator=:
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    *nto* | *qnx*)
9372      ;;
9373
9374    openbsd*)
9375      if test -f /usr/libexec/ld.so; then
9376	hardcode_direct=yes
9377	hardcode_shlibpath_var=no
9378	hardcode_direct_absolute=yes
9379	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9380	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9381	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9382	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383	  export_dynamic_flag_spec='${wl}-E'
9384	else
9385	  case $host_os in
9386	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9387	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388	     hardcode_libdir_flag_spec='-R$libdir'
9389	     ;;
9390	   *)
9391	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9392	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393	     ;;
9394	  esac
9395	fi
9396      else
9397	ld_shlibs=no
9398      fi
9399      ;;
9400
9401    os2*)
9402      hardcode_libdir_flag_spec='-L$libdir'
9403      hardcode_minus_L=yes
9404      allow_undefined_flag=unsupported
9405      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9406      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9407      ;;
9408
9409    osf3*)
9410      if test "$GCC" = yes; then
9411	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9412	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'
9413      else
9414	allow_undefined_flag=' -expect_unresolved \*'
9415	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'
9416      fi
9417      archive_cmds_need_lc='no'
9418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419      hardcode_libdir_separator=:
9420      ;;
9421
9422    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9423      if test "$GCC" = yes; then
9424	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9425	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'
9426	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427      else
9428	allow_undefined_flag=' -expect_unresolved \*'
9429	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'
9430	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~
9431	$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'
9432
9433	# Both c and cxx compiler support -rpath directly
9434	hardcode_libdir_flag_spec='-rpath $libdir'
9435      fi
9436      archive_cmds_need_lc='no'
9437      hardcode_libdir_separator=:
9438      ;;
9439
9440    solaris*)
9441      no_undefined_flag=' -z defs'
9442      if test "$GCC" = yes; then
9443	wlarc='${wl}'
9444	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9446	  $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'
9447      else
9448	case `$CC -V 2>&1` in
9449	*"Compilers 5.0"*)
9450	  wlarc=''
9451	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9453	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9454	  ;;
9455	*)
9456	  wlarc='${wl}'
9457	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9458	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9459	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9460	  ;;
9461	esac
9462      fi
9463      hardcode_libdir_flag_spec='-R$libdir'
9464      hardcode_shlibpath_var=no
9465      case $host_os in
9466      solaris2.[0-5] | solaris2.[0-5].*) ;;
9467      *)
9468	# The compiler driver will combine and reorder linker options,
9469	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9470	# but is careful enough not to reorder.
9471	# Supported since Solaris 2.6 (maybe 2.5.1?)
9472	if test "$GCC" = yes; then
9473	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9474	else
9475	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9476	fi
9477	;;
9478      esac
9479      link_all_deplibs=yes
9480      ;;
9481
9482    sunos4*)
9483      if test "x$host_vendor" = xsequent; then
9484	# Use $CC to link under sequent, because it throws in some extra .o
9485	# files that make .init and .fini sections work.
9486	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9487      else
9488	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9489      fi
9490      hardcode_libdir_flag_spec='-L$libdir'
9491      hardcode_direct=yes
9492      hardcode_minus_L=yes
9493      hardcode_shlibpath_var=no
9494      ;;
9495
9496    sysv4)
9497      case $host_vendor in
9498	sni)
9499	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500	  hardcode_direct=yes # is this really true???
9501	;;
9502	siemens)
9503	  ## LD is ld it makes a PLAMLIB
9504	  ## CC just makes a GrossModule.
9505	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9506	  reload_cmds='$CC -r -o $output$reload_objs'
9507	  hardcode_direct=no
9508        ;;
9509	motorola)
9510	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9512	;;
9513      esac
9514      runpath_var='LD_RUN_PATH'
9515      hardcode_shlibpath_var=no
9516      ;;
9517
9518    sysv4.3*)
9519      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520      hardcode_shlibpath_var=no
9521      export_dynamic_flag_spec='-Bexport'
9522      ;;
9523
9524    sysv4*MP*)
9525      if test -d /usr/nec; then
9526	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527	hardcode_shlibpath_var=no
9528	runpath_var=LD_RUN_PATH
9529	hardcode_runpath_var=yes
9530	ld_shlibs=yes
9531      fi
9532      ;;
9533
9534    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9535      no_undefined_flag='${wl}-z,text'
9536      archive_cmds_need_lc=no
9537      hardcode_shlibpath_var=no
9538      runpath_var='LD_RUN_PATH'
9539
9540      if test "$GCC" = yes; then
9541	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9542	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543      else
9544	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546      fi
9547      ;;
9548
9549    sysv5* | sco3.2v5* | sco5v6*)
9550      # Note: We can NOT use -z defs as we might desire, because we do not
9551      # link with -lc, and that would cause any symbols used from libc to
9552      # always be unresolved, which means just about no library would
9553      # ever link correctly.  If we're not using GNU ld we use -z text
9554      # though, which does catch some bad symbols but isn't as heavy-handed
9555      # as -z defs.
9556      no_undefined_flag='${wl}-z,text'
9557      allow_undefined_flag='${wl}-z,nodefs'
9558      archive_cmds_need_lc=no
9559      hardcode_shlibpath_var=no
9560      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9561      hardcode_libdir_separator=':'
9562      link_all_deplibs=yes
9563      export_dynamic_flag_spec='${wl}-Bexport'
9564      runpath_var='LD_RUN_PATH'
9565
9566      if test "$GCC" = yes; then
9567	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569      else
9570	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9571	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572      fi
9573      ;;
9574
9575    uts4*)
9576      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577      hardcode_libdir_flag_spec='-L$libdir'
9578      hardcode_shlibpath_var=no
9579      ;;
9580
9581    *)
9582      ld_shlibs=no
9583      ;;
9584    esac
9585
9586    if test x$host_vendor = xsni; then
9587      case $host in
9588      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9589	export_dynamic_flag_spec='${wl}-Blargedynsym'
9590	;;
9591      esac
9592    fi
9593  fi
9594
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9596$as_echo "$ld_shlibs" >&6; }
9597test "$ld_shlibs" = no && can_build_shared=no
9598
9599with_gnu_ld=$with_gnu_ld
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615#
9616# Do we need to explicitly link libc?
9617#
9618case "x$archive_cmds_need_lc" in
9619x|xyes)
9620  # Assume -lc should be added
9621  archive_cmds_need_lc=yes
9622
9623  if test "$enable_shared" = yes && test "$GCC" = yes; then
9624    case $archive_cmds in
9625    *'~'*)
9626      # FIXME: we may have to deal with multi-command sequences.
9627      ;;
9628    '$CC '*)
9629      # Test whether the compiler implicitly links with -lc since on some
9630      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9631      # to ld, don't add -lc before -lgcc.
9632      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9633$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9634if ${lt_cv_archive_cmds_need_lc+:} false; then :
9635  $as_echo_n "(cached) " >&6
9636else
9637  $RM conftest*
9638	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639
9640	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9641  (eval $ac_compile) 2>&5
9642  ac_status=$?
9643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644  test $ac_status = 0; } 2>conftest.err; then
9645	  soname=conftest
9646	  lib=conftest
9647	  libobjs=conftest.$ac_objext
9648	  deplibs=
9649	  wl=$lt_prog_compiler_wl
9650	  pic_flag=$lt_prog_compiler_pic
9651	  compiler_flags=-v
9652	  linker_flags=-v
9653	  verstring=
9654	  output_objdir=.
9655	  libname=conftest
9656	  lt_save_allow_undefined_flag=$allow_undefined_flag
9657	  allow_undefined_flag=
9658	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9659  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9660  ac_status=$?
9661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9662  test $ac_status = 0; }
9663	  then
9664	    lt_cv_archive_cmds_need_lc=no
9665	  else
9666	    lt_cv_archive_cmds_need_lc=yes
9667	  fi
9668	  allow_undefined_flag=$lt_save_allow_undefined_flag
9669	else
9670	  cat conftest.err 1>&5
9671	fi
9672	$RM conftest*
9673
9674fi
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9676$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9677      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9678      ;;
9679    esac
9680  fi
9681  ;;
9682esac
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9836$as_echo_n "checking dynamic linker characteristics... " >&6; }
9837
9838if test "$GCC" = yes; then
9839  case $host_os in
9840    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9841    *) lt_awk_arg="/^libraries:/" ;;
9842  esac
9843  case $host_os in
9844    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9845    *) lt_sed_strip_eq="s,=/,/,g" ;;
9846  esac
9847  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9848  case $lt_search_path_spec in
9849  *\;*)
9850    # if the path contains ";" then we assume it to be the separator
9851    # otherwise default to the standard path separator (i.e. ":") - it is
9852    # assumed that no part of a normal pathname contains ";" but that should
9853    # okay in the real world where ";" in dirpaths is itself problematic.
9854    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9855    ;;
9856  *)
9857    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9858    ;;
9859  esac
9860  # Ok, now we have the path, separated by spaces, we can step through it
9861  # and add multilib dir if necessary.
9862  lt_tmp_lt_search_path_spec=
9863  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9864  for lt_sys_path in $lt_search_path_spec; do
9865    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9866      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9867    else
9868      test -d "$lt_sys_path" && \
9869	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9870    fi
9871  done
9872  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9873BEGIN {RS=" "; FS="/|\n";} {
9874  lt_foo="";
9875  lt_count=0;
9876  for (lt_i = NF; lt_i > 0; lt_i--) {
9877    if ($lt_i != "" && $lt_i != ".") {
9878      if ($lt_i == "..") {
9879        lt_count++;
9880      } else {
9881        if (lt_count == 0) {
9882          lt_foo="/" $lt_i lt_foo;
9883        } else {
9884          lt_count--;
9885        }
9886      }
9887    }
9888  }
9889  if (lt_foo != "") { lt_freq[lt_foo]++; }
9890  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9891}'`
9892  # AWK program above erroneously prepends '/' to C:/dos/paths
9893  # for these hosts.
9894  case $host_os in
9895    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9896      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9897  esac
9898  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9899else
9900  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901fi
9902library_names_spec=
9903libname_spec='lib$name'
9904soname_spec=
9905shrext_cmds=".so"
9906postinstall_cmds=
9907postuninstall_cmds=
9908finish_cmds=
9909finish_eval=
9910shlibpath_var=
9911shlibpath_overrides_runpath=unknown
9912version_type=none
9913dynamic_linker="$host_os ld.so"
9914sys_lib_dlsearch_path_spec="/lib /usr/lib"
9915need_lib_prefix=unknown
9916hardcode_into_libs=no
9917
9918# when you set need_version to no, make sure it does not cause -set_version
9919# flags to be left without arguments
9920need_version=unknown
9921
9922case $host_os in
9923aix3*)
9924  version_type=linux # correct to gnu/linux during the next big refactor
9925  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9926  shlibpath_var=LIBPATH
9927
9928  # AIX 3 has no versioning support, so we append a major version to the name.
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  ;;
9931
9932aix[4-9]*)
9933  version_type=linux # correct to gnu/linux during the next big refactor
9934  need_lib_prefix=no
9935  need_version=no
9936  hardcode_into_libs=yes
9937  if test "$host_cpu" = ia64; then
9938    # AIX 5 supports IA64
9939    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9940    shlibpath_var=LD_LIBRARY_PATH
9941  else
9942    # With GCC up to 2.95.x, collect2 would create an import file
9943    # for dependence libraries.  The import file would start with
9944    # the line `#! .'.  This would cause the generated library to
9945    # depend on `.', always an invalid library.  This was fixed in
9946    # development snapshots of GCC prior to 3.0.
9947    case $host_os in
9948      aix4 | aix4.[01] | aix4.[01].*)
9949      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9950	   echo ' yes '
9951	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9952	:
9953      else
9954	can_build_shared=no
9955      fi
9956      ;;
9957    esac
9958    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9959    # soname into executable. Probably we can add versioning support to
9960    # collect2, so additional links can be useful in future.
9961    if test "$aix_use_runtimelinking" = yes; then
9962      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9963      # instead of lib<name>.a to let people know that these are not
9964      # typical AIX shared libraries.
9965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966    else
9967      # We preserve .a as extension for shared libraries through AIX4.2
9968      # and later when we are not doing run time linking.
9969      library_names_spec='${libname}${release}.a $libname.a'
9970      soname_spec='${libname}${release}${shared_ext}$major'
9971    fi
9972    shlibpath_var=LIBPATH
9973  fi
9974  ;;
9975
9976amigaos*)
9977  case $host_cpu in
9978  powerpc)
9979    # Since July 2007 AmigaOS4 officially supports .so libraries.
9980    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982    ;;
9983  m68k)
9984    library_names_spec='$libname.ixlibrary $libname.a'
9985    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9986    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9987    ;;
9988  esac
9989  ;;
9990
9991beos*)
9992  library_names_spec='${libname}${shared_ext}'
9993  dynamic_linker="$host_os ld.so"
9994  shlibpath_var=LIBRARY_PATH
9995  ;;
9996
9997bsdi[45]*)
9998  version_type=linux # correct to gnu/linux during the next big refactor
9999  need_version=no
10000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001  soname_spec='${libname}${release}${shared_ext}$major'
10002  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10003  shlibpath_var=LD_LIBRARY_PATH
10004  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10005  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10006  # the default ld.so.conf also contains /usr/contrib/lib and
10007  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10008  # libtool to hard-code these into programs
10009  ;;
10010
10011cygwin* | mingw* | pw32* | cegcc*)
10012  version_type=windows
10013  shrext_cmds=".dll"
10014  need_version=no
10015  need_lib_prefix=no
10016
10017  case $GCC,$cc_basename in
10018  yes,*)
10019    # gcc
10020    library_names_spec='$libname.dll.a'
10021    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10022    postinstall_cmds='base_file=`basename \${file}`~
10023      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10024      dldir=$destdir/`dirname \$dlpath`~
10025      test -d \$dldir || mkdir -p \$dldir~
10026      $install_prog $dir/$dlname \$dldir/$dlname~
10027      chmod a+x \$dldir/$dlname~
10028      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10029        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10030      fi'
10031    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10032      dlpath=$dir/\$dldll~
10033       $RM \$dlpath'
10034    shlibpath_overrides_runpath=yes
10035
10036    case $host_os in
10037    cygwin*)
10038      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10039      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040
10041      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10042      ;;
10043    mingw* | cegcc*)
10044      # MinGW DLLs use traditional 'lib' prefix
10045      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046      ;;
10047    pw32*)
10048      # pw32 DLLs use 'pw' prefix rather than 'lib'
10049      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10050      ;;
10051    esac
10052    dynamic_linker='Win32 ld.exe'
10053    ;;
10054
10055  *,cl*)
10056    # Native MSVC
10057    libname_spec='$name'
10058    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059    library_names_spec='${libname}.dll.lib'
10060
10061    case $build_os in
10062    mingw*)
10063      sys_lib_search_path_spec=
10064      lt_save_ifs=$IFS
10065      IFS=';'
10066      for lt_path in $LIB
10067      do
10068        IFS=$lt_save_ifs
10069        # Let DOS variable expansion print the short 8.3 style file name.
10070        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10071        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10072      done
10073      IFS=$lt_save_ifs
10074      # Convert to MSYS style.
10075      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10076      ;;
10077    cygwin*)
10078      # Convert to unix form, then to dos form, then back to unix form
10079      # but this time dos style (no spaces!) so that the unix form looks
10080      # like /cygdrive/c/PROGRA~1:/cygdr...
10081      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10082      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10083      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10084      ;;
10085    *)
10086      sys_lib_search_path_spec="$LIB"
10087      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10088        # It is most probably a Windows format PATH.
10089        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10090      else
10091        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10092      fi
10093      # FIXME: find the short name or the path components, as spaces are
10094      # common. (e.g. "Program Files" -> "PROGRA~1")
10095      ;;
10096    esac
10097
10098    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10099    postinstall_cmds='base_file=`basename \${file}`~
10100      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10101      dldir=$destdir/`dirname \$dlpath`~
10102      test -d \$dldir || mkdir -p \$dldir~
10103      $install_prog $dir/$dlname \$dldir/$dlname'
10104    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10105      dlpath=$dir/\$dldll~
10106       $RM \$dlpath'
10107    shlibpath_overrides_runpath=yes
10108    dynamic_linker='Win32 link.exe'
10109    ;;
10110
10111  *)
10112    # Assume MSVC wrapper
10113    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10114    dynamic_linker='Win32 ld.exe'
10115    ;;
10116  esac
10117  # FIXME: first we should search . and the directory the executable is in
10118  shlibpath_var=PATH
10119  ;;
10120
10121darwin* | rhapsody*)
10122  dynamic_linker="$host_os dyld"
10123  version_type=darwin
10124  need_lib_prefix=no
10125  need_version=no
10126  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10127  soname_spec='${libname}${release}${major}$shared_ext'
10128  shlibpath_overrides_runpath=yes
10129  shlibpath_var=DYLD_LIBRARY_PATH
10130  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10131
10132  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10133  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134  ;;
10135
10136dgux*)
10137  version_type=linux # correct to gnu/linux during the next big refactor
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  ;;
10144
10145freebsd* | dragonfly*)
10146  # DragonFly does not have aout.  When/if they implement a new
10147  # versioning mechanism, adjust this.
10148  if test -x /usr/bin/objformat; then
10149    objformat=`/usr/bin/objformat`
10150  else
10151    case $host_os in
10152    freebsd[23].*) objformat=aout ;;
10153    *) objformat=elf ;;
10154    esac
10155  fi
10156  version_type=freebsd-$objformat
10157  case $version_type in
10158    freebsd-elf*)
10159      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10160      need_version=no
10161      need_lib_prefix=no
10162      ;;
10163    freebsd-*)
10164      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10165      need_version=yes
10166      ;;
10167  esac
10168  shlibpath_var=LD_LIBRARY_PATH
10169  case $host_os in
10170  freebsd2.*)
10171    shlibpath_overrides_runpath=yes
10172    ;;
10173  freebsd3.[01]* | freebsdelf3.[01]*)
10174    shlibpath_overrides_runpath=yes
10175    hardcode_into_libs=yes
10176    ;;
10177  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10178  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10179    shlibpath_overrides_runpath=no
10180    hardcode_into_libs=yes
10181    ;;
10182  *) # from 4.6 on, and DragonFly
10183    shlibpath_overrides_runpath=yes
10184    hardcode_into_libs=yes
10185    ;;
10186  esac
10187  ;;
10188
10189gnu*)
10190  version_type=linux # correct to gnu/linux during the next big refactor
10191  need_lib_prefix=no
10192  need_version=no
10193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10194  soname_spec='${libname}${release}${shared_ext}$major'
10195  shlibpath_var=LD_LIBRARY_PATH
10196  shlibpath_overrides_runpath=no
10197  hardcode_into_libs=yes
10198  ;;
10199
10200haiku*)
10201  version_type=linux # correct to gnu/linux during the next big refactor
10202  need_lib_prefix=no
10203  need_version=no
10204  dynamic_linker="$host_os runtime_loader"
10205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10206  soname_spec='${libname}${release}${shared_ext}$major'
10207  shlibpath_var=LIBRARY_PATH
10208  shlibpath_overrides_runpath=yes
10209  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10210  hardcode_into_libs=yes
10211  ;;
10212
10213hpux9* | hpux10* | hpux11*)
10214  # Give a soname corresponding to the major version so that dld.sl refuses to
10215  # link against other versions.
10216  version_type=sunos
10217  need_lib_prefix=no
10218  need_version=no
10219  case $host_cpu in
10220  ia64*)
10221    shrext_cmds='.so'
10222    hardcode_into_libs=yes
10223    dynamic_linker="$host_os dld.so"
10224    shlibpath_var=LD_LIBRARY_PATH
10225    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227    soname_spec='${libname}${release}${shared_ext}$major'
10228    if test "X$HPUX_IA64_MODE" = X32; then
10229      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10230    else
10231      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10232    fi
10233    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10234    ;;
10235  hppa*64*)
10236    shrext_cmds='.sl'
10237    hardcode_into_libs=yes
10238    dynamic_linker="$host_os dld.sl"
10239    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242    soname_spec='${libname}${release}${shared_ext}$major'
10243    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10244    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10245    ;;
10246  *)
10247    shrext_cmds='.sl'
10248    dynamic_linker="$host_os dld.sl"
10249    shlibpath_var=SHLIB_PATH
10250    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10251    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252    soname_spec='${libname}${release}${shared_ext}$major'
10253    ;;
10254  esac
10255  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10256  postinstall_cmds='chmod 555 $lib'
10257  # or fails outright, so override atomically:
10258  install_override_mode=555
10259  ;;
10260
10261interix[3-9]*)
10262  version_type=linux # correct to gnu/linux during the next big refactor
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270  hardcode_into_libs=yes
10271  ;;
10272
10273irix5* | irix6* | nonstopux*)
10274  case $host_os in
10275    nonstopux*) version_type=nonstopux ;;
10276    *)
10277	if test "$lt_cv_prog_gnu_ld" = yes; then
10278		version_type=linux # correct to gnu/linux during the next big refactor
10279	else
10280		version_type=irix
10281	fi ;;
10282  esac
10283  need_lib_prefix=no
10284  need_version=no
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10287  case $host_os in
10288  irix5* | nonstopux*)
10289    libsuff= shlibsuff=
10290    ;;
10291  *)
10292    case $LD in # libtool.m4 will add one of these switches to LD
10293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10294      libsuff= shlibsuff= libmagic=32-bit;;
10295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10296      libsuff=32 shlibsuff=N32 libmagic=N32;;
10297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10299    *) libsuff= shlibsuff= libmagic=never-match;;
10300    esac
10301    ;;
10302  esac
10303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10304  shlibpath_overrides_runpath=no
10305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10307  hardcode_into_libs=yes
10308  ;;
10309
10310# No shared lib support for Linux oldld, aout, or coff.
10311linux*oldld* | linux*aout* | linux*coff*)
10312  dynamic_linker=no
10313  ;;
10314
10315# This must be glibc/ELF.
10316linux* | k*bsd*-gnu | kopensolaris*-gnu)
10317  version_type=linux # correct to gnu/linux during the next big refactor
10318  need_lib_prefix=no
10319  need_version=no
10320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321  soname_spec='${libname}${release}${shared_ext}$major'
10322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10323  shlibpath_var=LD_LIBRARY_PATH
10324  shlibpath_overrides_runpath=no
10325
10326  # Some binutils ld are patched to set DT_RUNPATH
10327  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  lt_cv_shlibpath_overrides_runpath=no
10331    save_LDFLAGS=$LDFLAGS
10332    save_libdir=$libdir
10333    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10334	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337
10338int
10339main ()
10340{
10341
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346if ac_fn_c_try_link "$LINENO"; then :
10347  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10348  lt_cv_shlibpath_overrides_runpath=yes
10349fi
10350fi
10351rm -f core conftest.err conftest.$ac_objext \
10352    conftest$ac_exeext conftest.$ac_ext
10353    LDFLAGS=$save_LDFLAGS
10354    libdir=$save_libdir
10355
10356fi
10357
10358  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10359
10360  # This implies no fast_install, which is unacceptable.
10361  # Some rework will be needed to allow for fast_install
10362  # before this can be enabled.
10363  hardcode_into_libs=yes
10364
10365  # Append ld.so.conf contents to the search path
10366  if test -f /etc/ld.so.conf; then
10367    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' ' '`
10368    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10369  fi
10370
10371  # We used to test for /lib/ld.so.1 and disable shared libraries on
10372  # powerpc, because MkLinux only supported shared libraries with the
10373  # GNU dynamic linker.  Since this was broken with cross compilers,
10374  # most powerpc-linux boxes support dynamic linking these days and
10375  # people can always --disable-shared, the test was removed, and we
10376  # assume the GNU/Linux dynamic linker is in use.
10377  dynamic_linker='GNU/Linux ld.so'
10378  ;;
10379
10380netbsd*)
10381  version_type=sunos
10382  need_lib_prefix=no
10383  need_version=no
10384  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10385    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10387    dynamic_linker='NetBSD (a.out) ld.so'
10388  else
10389    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390    soname_spec='${libname}${release}${shared_ext}$major'
10391    dynamic_linker='NetBSD ld.elf_so'
10392  fi
10393  shlibpath_var=LD_LIBRARY_PATH
10394  shlibpath_overrides_runpath=yes
10395  hardcode_into_libs=yes
10396  ;;
10397
10398newsos6)
10399  version_type=linux # correct to gnu/linux during the next big refactor
10400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401  shlibpath_var=LD_LIBRARY_PATH
10402  shlibpath_overrides_runpath=yes
10403  ;;
10404
10405*nto* | *qnx*)
10406  version_type=qnx
10407  need_lib_prefix=no
10408  need_version=no
10409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410  soname_spec='${libname}${release}${shared_ext}$major'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  shlibpath_overrides_runpath=no
10413  hardcode_into_libs=yes
10414  dynamic_linker='ldqnx.so'
10415  ;;
10416
10417openbsd*)
10418  version_type=sunos
10419  sys_lib_dlsearch_path_spec="/usr/lib"
10420  need_lib_prefix=no
10421  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10422  case $host_os in
10423    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10424    *)				need_version=no  ;;
10425  esac
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10428  shlibpath_var=LD_LIBRARY_PATH
10429  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10430    case $host_os in
10431      openbsd2.[89] | openbsd2.[89].*)
10432	shlibpath_overrides_runpath=no
10433	;;
10434      *)
10435	shlibpath_overrides_runpath=yes
10436	;;
10437      esac
10438  else
10439    shlibpath_overrides_runpath=yes
10440  fi
10441  ;;
10442
10443os2*)
10444  libname_spec='$name'
10445  shrext_cmds=".dll"
10446  need_lib_prefix=no
10447  library_names_spec='$libname${shared_ext} $libname.a'
10448  dynamic_linker='OS/2 ld.exe'
10449  shlibpath_var=LIBPATH
10450  ;;
10451
10452osf3* | osf4* | osf5*)
10453  version_type=osf
10454  need_lib_prefix=no
10455  need_version=no
10456  soname_spec='${libname}${release}${shared_ext}$major'
10457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458  shlibpath_var=LD_LIBRARY_PATH
10459  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10460  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10461  ;;
10462
10463rdos*)
10464  dynamic_linker=no
10465  ;;
10466
10467solaris*)
10468  version_type=linux # correct to gnu/linux during the next big refactor
10469  need_lib_prefix=no
10470  need_version=no
10471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472  soname_spec='${libname}${release}${shared_ext}$major'
10473  shlibpath_var=LD_LIBRARY_PATH
10474  shlibpath_overrides_runpath=yes
10475  hardcode_into_libs=yes
10476  # ldd complains unless libraries are executable
10477  postinstall_cmds='chmod +x $lib'
10478  ;;
10479
10480sunos4*)
10481  version_type=sunos
10482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10484  shlibpath_var=LD_LIBRARY_PATH
10485  shlibpath_overrides_runpath=yes
10486  if test "$with_gnu_ld" = yes; then
10487    need_lib_prefix=no
10488  fi
10489  need_version=yes
10490  ;;
10491
10492sysv4 | sysv4.3*)
10493  version_type=linux # correct to gnu/linux during the next big refactor
10494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495  soname_spec='${libname}${release}${shared_ext}$major'
10496  shlibpath_var=LD_LIBRARY_PATH
10497  case $host_vendor in
10498    sni)
10499      shlibpath_overrides_runpath=no
10500      need_lib_prefix=no
10501      runpath_var=LD_RUN_PATH
10502      ;;
10503    siemens)
10504      need_lib_prefix=no
10505      ;;
10506    motorola)
10507      need_lib_prefix=no
10508      need_version=no
10509      shlibpath_overrides_runpath=no
10510      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10511      ;;
10512  esac
10513  ;;
10514
10515sysv4*MP*)
10516  if test -d /usr/nec ;then
10517    version_type=linux # correct to gnu/linux during the next big refactor
10518    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10519    soname_spec='$libname${shared_ext}.$major'
10520    shlibpath_var=LD_LIBRARY_PATH
10521  fi
10522  ;;
10523
10524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10525  version_type=freebsd-elf
10526  need_lib_prefix=no
10527  need_version=no
10528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10529  soname_spec='${libname}${release}${shared_ext}$major'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  shlibpath_overrides_runpath=yes
10532  hardcode_into_libs=yes
10533  if test "$with_gnu_ld" = yes; then
10534    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10535  else
10536    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10537    case $host_os in
10538      sco3.2v5*)
10539        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10540	;;
10541    esac
10542  fi
10543  sys_lib_dlsearch_path_spec='/usr/lib'
10544  ;;
10545
10546tpf*)
10547  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10548  version_type=linux # correct to gnu/linux during the next big refactor
10549  need_lib_prefix=no
10550  need_version=no
10551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552  shlibpath_var=LD_LIBRARY_PATH
10553  shlibpath_overrides_runpath=no
10554  hardcode_into_libs=yes
10555  ;;
10556
10557uts4*)
10558  version_type=linux # correct to gnu/linux during the next big refactor
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560  soname_spec='${libname}${release}${shared_ext}$major'
10561  shlibpath_var=LD_LIBRARY_PATH
10562  ;;
10563
10564*)
10565  dynamic_linker=no
10566  ;;
10567esac
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10569$as_echo "$dynamic_linker" >&6; }
10570test "$dynamic_linker" = no && can_build_shared=no
10571
10572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10573if test "$GCC" = yes; then
10574  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10575fi
10576
10577if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10578  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10579fi
10580if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10581  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10582fi
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10676$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10677hardcode_action=
10678if test -n "$hardcode_libdir_flag_spec" ||
10679   test -n "$runpath_var" ||
10680   test "X$hardcode_automatic" = "Xyes" ; then
10681
10682  # We can hardcode non-existent directories.
10683  if test "$hardcode_direct" != no &&
10684     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10685     # have to relink, otherwise we might link with an installed library
10686     # when we should be linking with a yet-to-be-installed one
10687     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10688     test "$hardcode_minus_L" != no; then
10689    # Linking always hardcodes the temporary library directory.
10690    hardcode_action=relink
10691  else
10692    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10693    hardcode_action=immediate
10694  fi
10695else
10696  # We cannot hardcode anything, or else we can only hardcode existing
10697  # directories.
10698  hardcode_action=unsupported
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10701$as_echo "$hardcode_action" >&6; }
10702
10703if test "$hardcode_action" = relink ||
10704   test "$inherit_rpath" = yes; then
10705  # Fast installation is not supported
10706  enable_fast_install=no
10707elif test "$shlibpath_overrides_runpath" = yes ||
10708     test "$enable_shared" = no; then
10709  # Fast installation is not necessary
10710  enable_fast_install=needless
10711fi
10712
10713
10714
10715
10716
10717
10718  if test "x$enable_dlopen" != xyes; then
10719  enable_dlopen=unknown
10720  enable_dlopen_self=unknown
10721  enable_dlopen_self_static=unknown
10722else
10723  lt_cv_dlopen=no
10724  lt_cv_dlopen_libs=
10725
10726  case $host_os in
10727  beos*)
10728    lt_cv_dlopen="load_add_on"
10729    lt_cv_dlopen_libs=
10730    lt_cv_dlopen_self=yes
10731    ;;
10732
10733  mingw* | pw32* | cegcc*)
10734    lt_cv_dlopen="LoadLibrary"
10735    lt_cv_dlopen_libs=
10736    ;;
10737
10738  cygwin*)
10739    lt_cv_dlopen="dlopen"
10740    lt_cv_dlopen_libs=
10741    ;;
10742
10743  darwin*)
10744  # if libdl is installed we need to link against it
10745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10746$as_echo_n "checking for dlopen in -ldl... " >&6; }
10747if ${ac_cv_lib_dl_dlopen+:} false; then :
10748  $as_echo_n "(cached) " >&6
10749else
10750  ac_check_lib_save_LIBS=$LIBS
10751LIBS="-ldl  $LIBS"
10752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h.  */
10754
10755/* Override any GCC internal prototype to avoid an error.
10756   Use char because int might match the return type of a GCC
10757   builtin and then its argument prototype would still apply.  */
10758#ifdef __cplusplus
10759extern "C"
10760#endif
10761char dlopen ();
10762int
10763main ()
10764{
10765return dlopen ();
10766  ;
10767  return 0;
10768}
10769_ACEOF
10770if ac_fn_c_try_link "$LINENO"; then :
10771  ac_cv_lib_dl_dlopen=yes
10772else
10773  ac_cv_lib_dl_dlopen=no
10774fi
10775rm -f core conftest.err conftest.$ac_objext \
10776    conftest$ac_exeext conftest.$ac_ext
10777LIBS=$ac_check_lib_save_LIBS
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10780$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10781if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10782  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10783else
10784
10785    lt_cv_dlopen="dyld"
10786    lt_cv_dlopen_libs=
10787    lt_cv_dlopen_self=yes
10788
10789fi
10790
10791    ;;
10792
10793  *)
10794    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10795if test "x$ac_cv_func_shl_load" = xyes; then :
10796  lt_cv_dlopen="shl_load"
10797else
10798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10799$as_echo_n "checking for shl_load in -ldld... " >&6; }
10800if ${ac_cv_lib_dld_shl_load+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  ac_check_lib_save_LIBS=$LIBS
10804LIBS="-ldld  $LIBS"
10805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h.  */
10807
10808/* Override any GCC internal prototype to avoid an error.
10809   Use char because int might match the return type of a GCC
10810   builtin and then its argument prototype would still apply.  */
10811#ifdef __cplusplus
10812extern "C"
10813#endif
10814char shl_load ();
10815int
10816main ()
10817{
10818return shl_load ();
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"; then :
10824  ac_cv_lib_dld_shl_load=yes
10825else
10826  ac_cv_lib_dld_shl_load=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext \
10829    conftest$ac_exeext conftest.$ac_ext
10830LIBS=$ac_check_lib_save_LIBS
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10833$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10834if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10835  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10836else
10837  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10838if test "x$ac_cv_func_dlopen" = xyes; then :
10839  lt_cv_dlopen="dlopen"
10840else
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10842$as_echo_n "checking for dlopen in -ldl... " >&6; }
10843if ${ac_cv_lib_dl_dlopen+:} false; then :
10844  $as_echo_n "(cached) " >&6
10845else
10846  ac_check_lib_save_LIBS=$LIBS
10847LIBS="-ldl  $LIBS"
10848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849/* end confdefs.h.  */
10850
10851/* Override any GCC internal prototype to avoid an error.
10852   Use char because int might match the return type of a GCC
10853   builtin and then its argument prototype would still apply.  */
10854#ifdef __cplusplus
10855extern "C"
10856#endif
10857char dlopen ();
10858int
10859main ()
10860{
10861return dlopen ();
10862  ;
10863  return 0;
10864}
10865_ACEOF
10866if ac_fn_c_try_link "$LINENO"; then :
10867  ac_cv_lib_dl_dlopen=yes
10868else
10869  ac_cv_lib_dl_dlopen=no
10870fi
10871rm -f core conftest.err conftest.$ac_objext \
10872    conftest$ac_exeext conftest.$ac_ext
10873LIBS=$ac_check_lib_save_LIBS
10874fi
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10876$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10877if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10878  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10879else
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10881$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10882if ${ac_cv_lib_svld_dlopen+:} false; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885  ac_check_lib_save_LIBS=$LIBS
10886LIBS="-lsvld  $LIBS"
10887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889
10890/* Override any GCC internal prototype to avoid an error.
10891   Use char because int might match the return type of a GCC
10892   builtin and then its argument prototype would still apply.  */
10893#ifdef __cplusplus
10894extern "C"
10895#endif
10896char dlopen ();
10897int
10898main ()
10899{
10900return dlopen ();
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
10906  ac_cv_lib_svld_dlopen=yes
10907else
10908  ac_cv_lib_svld_dlopen=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911    conftest$ac_exeext conftest.$ac_ext
10912LIBS=$ac_check_lib_save_LIBS
10913fi
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10915$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10916if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10917  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10918else
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10920$as_echo_n "checking for dld_link in -ldld... " >&6; }
10921if ${ac_cv_lib_dld_dld_link+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  ac_check_lib_save_LIBS=$LIBS
10925LIBS="-ldld  $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930   Use char because int might match the return type of a GCC
10931   builtin and then its argument prototype would still apply.  */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char dld_link ();
10936int
10937main ()
10938{
10939return dld_link ();
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945  ac_cv_lib_dld_dld_link=yes
10946else
10947  ac_cv_lib_dld_dld_link=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950    conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10954$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10955if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10956  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10957fi
10958
10959
10960fi
10961
10962
10963fi
10964
10965
10966fi
10967
10968
10969fi
10970
10971
10972fi
10973
10974    ;;
10975  esac
10976
10977  if test "x$lt_cv_dlopen" != xno; then
10978    enable_dlopen=yes
10979  else
10980    enable_dlopen=no
10981  fi
10982
10983  case $lt_cv_dlopen in
10984  dlopen)
10985    save_CPPFLAGS="$CPPFLAGS"
10986    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10987
10988    save_LDFLAGS="$LDFLAGS"
10989    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10990
10991    save_LIBS="$LIBS"
10992    LIBS="$lt_cv_dlopen_libs $LIBS"
10993
10994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10995$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10996if ${lt_cv_dlopen_self+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999  	  if test "$cross_compiling" = yes; then :
11000  lt_cv_dlopen_self=cross
11001else
11002  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11003  lt_status=$lt_dlunknown
11004  cat > conftest.$ac_ext <<_LT_EOF
11005#line $LINENO "configure"
11006#include "confdefs.h"
11007
11008#if HAVE_DLFCN_H
11009#include <dlfcn.h>
11010#endif
11011
11012#include <stdio.h>
11013
11014#ifdef RTLD_GLOBAL
11015#  define LT_DLGLOBAL		RTLD_GLOBAL
11016#else
11017#  ifdef DL_GLOBAL
11018#    define LT_DLGLOBAL		DL_GLOBAL
11019#  else
11020#    define LT_DLGLOBAL		0
11021#  endif
11022#endif
11023
11024/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11025   find out it does not work in some platform. */
11026#ifndef LT_DLLAZY_OR_NOW
11027#  ifdef RTLD_LAZY
11028#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11029#  else
11030#    ifdef DL_LAZY
11031#      define LT_DLLAZY_OR_NOW		DL_LAZY
11032#    else
11033#      ifdef RTLD_NOW
11034#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11035#      else
11036#        ifdef DL_NOW
11037#          define LT_DLLAZY_OR_NOW	DL_NOW
11038#        else
11039#          define LT_DLLAZY_OR_NOW	0
11040#        endif
11041#      endif
11042#    endif
11043#  endif
11044#endif
11045
11046/* When -fvisbility=hidden is used, assume the code has been annotated
11047   correspondingly for the symbols needed.  */
11048#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11049int fnord () __attribute__((visibility("default")));
11050#endif
11051
11052int fnord () { return 42; }
11053int main ()
11054{
11055  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11056  int status = $lt_dlunknown;
11057
11058  if (self)
11059    {
11060      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11061      else
11062        {
11063	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11064          else puts (dlerror ());
11065	}
11066      /* dlclose (self); */
11067    }
11068  else
11069    puts (dlerror ());
11070
11071  return status;
11072}
11073_LT_EOF
11074  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11075  (eval $ac_link) 2>&5
11076  ac_status=$?
11077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11079    (./conftest; exit; ) >&5 2>/dev/null
11080    lt_status=$?
11081    case x$lt_status in
11082      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11083      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11084      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11085    esac
11086  else :
11087    # compilation failed
11088    lt_cv_dlopen_self=no
11089  fi
11090fi
11091rm -fr conftest*
11092
11093
11094fi
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11096$as_echo "$lt_cv_dlopen_self" >&6; }
11097
11098    if test "x$lt_cv_dlopen_self" = xyes; then
11099      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11100      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11101$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11102if ${lt_cv_dlopen_self_static+:} false; then :
11103  $as_echo_n "(cached) " >&6
11104else
11105  	  if test "$cross_compiling" = yes; then :
11106  lt_cv_dlopen_self_static=cross
11107else
11108  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11109  lt_status=$lt_dlunknown
11110  cat > conftest.$ac_ext <<_LT_EOF
11111#line $LINENO "configure"
11112#include "confdefs.h"
11113
11114#if HAVE_DLFCN_H
11115#include <dlfcn.h>
11116#endif
11117
11118#include <stdio.h>
11119
11120#ifdef RTLD_GLOBAL
11121#  define LT_DLGLOBAL		RTLD_GLOBAL
11122#else
11123#  ifdef DL_GLOBAL
11124#    define LT_DLGLOBAL		DL_GLOBAL
11125#  else
11126#    define LT_DLGLOBAL		0
11127#  endif
11128#endif
11129
11130/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11131   find out it does not work in some platform. */
11132#ifndef LT_DLLAZY_OR_NOW
11133#  ifdef RTLD_LAZY
11134#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11135#  else
11136#    ifdef DL_LAZY
11137#      define LT_DLLAZY_OR_NOW		DL_LAZY
11138#    else
11139#      ifdef RTLD_NOW
11140#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11141#      else
11142#        ifdef DL_NOW
11143#          define LT_DLLAZY_OR_NOW	DL_NOW
11144#        else
11145#          define LT_DLLAZY_OR_NOW	0
11146#        endif
11147#      endif
11148#    endif
11149#  endif
11150#endif
11151
11152/* When -fvisbility=hidden is used, assume the code has been annotated
11153   correspondingly for the symbols needed.  */
11154#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11155int fnord () __attribute__((visibility("default")));
11156#endif
11157
11158int fnord () { return 42; }
11159int main ()
11160{
11161  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162  int status = $lt_dlunknown;
11163
11164  if (self)
11165    {
11166      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11167      else
11168        {
11169	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11170          else puts (dlerror ());
11171	}
11172      /* dlclose (self); */
11173    }
11174  else
11175    puts (dlerror ());
11176
11177  return status;
11178}
11179_LT_EOF
11180  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11181  (eval $ac_link) 2>&5
11182  ac_status=$?
11183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11185    (./conftest; exit; ) >&5 2>/dev/null
11186    lt_status=$?
11187    case x$lt_status in
11188      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11189      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11190      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11191    esac
11192  else :
11193    # compilation failed
11194    lt_cv_dlopen_self_static=no
11195  fi
11196fi
11197rm -fr conftest*
11198
11199
11200fi
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11202$as_echo "$lt_cv_dlopen_self_static" >&6; }
11203    fi
11204
11205    CPPFLAGS="$save_CPPFLAGS"
11206    LDFLAGS="$save_LDFLAGS"
11207    LIBS="$save_LIBS"
11208    ;;
11209  esac
11210
11211  case $lt_cv_dlopen_self in
11212  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11213  *) enable_dlopen_self=unknown ;;
11214  esac
11215
11216  case $lt_cv_dlopen_self_static in
11217  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11218  *) enable_dlopen_self_static=unknown ;;
11219  esac
11220fi
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238striplib=
11239old_striplib=
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11241$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11242if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11243  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11244  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246$as_echo "yes" >&6; }
11247else
11248# FIXME - insert some real tests, host_os isn't really good enough
11249  case $host_os in
11250  darwin*)
11251    if test -n "$STRIP" ; then
11252      striplib="$STRIP -x"
11253      old_striplib="$STRIP -S"
11254      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11255$as_echo "yes" >&6; }
11256    else
11257      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258$as_echo "no" >&6; }
11259    fi
11260    ;;
11261  *)
11262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263$as_echo "no" >&6; }
11264    ;;
11265  esac
11266fi
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279  # Report which library types will actually be built
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11281$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11283$as_echo "$can_build_shared" >&6; }
11284
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11286$as_echo_n "checking whether to build shared libraries... " >&6; }
11287  test "$can_build_shared" = "no" && enable_shared=no
11288
11289  # On AIX, shared libraries and static libraries use the same namespace, and
11290  # are all built from PIC.
11291  case $host_os in
11292  aix3*)
11293    test "$enable_shared" = yes && enable_static=no
11294    if test -n "$RANLIB"; then
11295      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11296      postinstall_cmds='$RANLIB $lib'
11297    fi
11298    ;;
11299
11300  aix[4-9]*)
11301    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11302      test "$enable_shared" = yes && enable_static=no
11303    fi
11304    ;;
11305  esac
11306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11307$as_echo "$enable_shared" >&6; }
11308
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11310$as_echo_n "checking whether to build static libraries... " >&6; }
11311  # Make sure either enable_shared or enable_static is yes.
11312  test "$enable_shared" = yes || enable_static=yes
11313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11314$as_echo "$enable_static" >&6; }
11315
11316
11317
11318
11319fi
11320ac_ext=c
11321ac_cpp='$CPP $CPPFLAGS'
11322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11324ac_compiler_gnu=$ac_cv_c_compiler_gnu
11325
11326CC="$lt_save_CC"
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342        ac_config_commands="$ac_config_commands libtool"
11343
11344
11345
11346
11347# Only expand once:
11348
11349
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11351$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11352if ${ac_cv_prog_cc_c99+:} false; then :
11353  $as_echo_n "(cached) " >&6
11354else
11355  ac_cv_prog_cc_c99=no
11356ac_save_CC=$CC
11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359#include <stdarg.h>
11360#include <stdbool.h>
11361#include <stdlib.h>
11362#include <wchar.h>
11363#include <stdio.h>
11364
11365// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11366#define debug(...) fprintf (stderr, __VA_ARGS__)
11367#define showlist(...) puts (#__VA_ARGS__)
11368#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11369static void
11370test_varargs_macros (void)
11371{
11372  int x = 1234;
11373  int y = 5678;
11374  debug ("Flag");
11375  debug ("X = %d\n", x);
11376  showlist (The first, second, and third items.);
11377  report (x>y, "x is %d but y is %d", x, y);
11378}
11379
11380// Check long long types.
11381#define BIG64 18446744073709551615ull
11382#define BIG32 4294967295ul
11383#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11384#if !BIG_OK
11385  your preprocessor is broken;
11386#endif
11387#if BIG_OK
11388#else
11389  your preprocessor is broken;
11390#endif
11391static long long int bignum = -9223372036854775807LL;
11392static unsigned long long int ubignum = BIG64;
11393
11394struct incomplete_array
11395{
11396  int datasize;
11397  double data[];
11398};
11399
11400struct named_init {
11401  int number;
11402  const wchar_t *name;
11403  double average;
11404};
11405
11406typedef const char *ccp;
11407
11408static inline int
11409test_restrict (ccp restrict text)
11410{
11411  // See if C++-style comments work.
11412  // Iterate through items via the restricted pointer.
11413  // Also check for declarations in for loops.
11414  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11415    continue;
11416  return 0;
11417}
11418
11419// Check varargs and va_copy.
11420static void
11421test_varargs (const char *format, ...)
11422{
11423  va_list args;
11424  va_start (args, format);
11425  va_list args_copy;
11426  va_copy (args_copy, args);
11427
11428  const char *str;
11429  int number;
11430  float fnumber;
11431
11432  while (*format)
11433    {
11434      switch (*format++)
11435	{
11436	case 's': // string
11437	  str = va_arg (args_copy, const char *);
11438	  break;
11439	case 'd': // int
11440	  number = va_arg (args_copy, int);
11441	  break;
11442	case 'f': // float
11443	  fnumber = va_arg (args_copy, double);
11444	  break;
11445	default:
11446	  break;
11447	}
11448    }
11449  va_end (args_copy);
11450  va_end (args);
11451}
11452
11453int
11454main ()
11455{
11456
11457  // Check bool.
11458  _Bool success = false;
11459
11460  // Check restrict.
11461  if (test_restrict ("String literal") == 0)
11462    success = true;
11463  char *restrict newvar = "Another string";
11464
11465  // Check varargs.
11466  test_varargs ("s, d' f .", "string", 65, 34.234);
11467  test_varargs_macros ();
11468
11469  // Check flexible array members.
11470  struct incomplete_array *ia =
11471    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11472  ia->datasize = 10;
11473  for (int i = 0; i < ia->datasize; ++i)
11474    ia->data[i] = i * 1.234;
11475
11476  // Check named initializers.
11477  struct named_init ni = {
11478    .number = 34,
11479    .name = L"Test wide string",
11480    .average = 543.34343,
11481  };
11482
11483  ni.number = 58;
11484
11485  int dynamic_array[ni.number];
11486  dynamic_array[ni.number - 1] = 543;
11487
11488  // work around unused variable warnings
11489  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11490	  || dynamic_array[ni.number - 1] != 543);
11491
11492  ;
11493  return 0;
11494}
11495_ACEOF
11496for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11497do
11498  CC="$ac_save_CC $ac_arg"
11499  if ac_fn_c_try_compile "$LINENO"; then :
11500  ac_cv_prog_cc_c99=$ac_arg
11501fi
11502rm -f core conftest.err conftest.$ac_objext
11503  test "x$ac_cv_prog_cc_c99" != "xno" && break
11504done
11505rm -f conftest.$ac_ext
11506CC=$ac_save_CC
11507
11508fi
11509# AC_CACHE_VAL
11510case "x$ac_cv_prog_cc_c99" in
11511  x)
11512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11513$as_echo "none needed" >&6; } ;;
11514  xno)
11515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11516$as_echo "unsupported" >&6; } ;;
11517  *)
11518    CC="$CC $ac_cv_prog_cc_c99"
11519    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11520$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11521esac
11522if test "x$ac_cv_prog_cc_c99" != xno; then :
11523
11524fi
11525
11526
11527
11528
11529
11530
11531ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11532if test "x$ac_cv_have_decl___clang__" = xyes; then :
11533  CLANGCC="yes"
11534else
11535  CLANGCC="no"
11536fi
11537
11538ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11539if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11540  INTELCC="yes"
11541else
11542  INTELCC="no"
11543fi
11544
11545ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11546if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11547  SUNCC="yes"
11548else
11549  SUNCC="no"
11550fi
11551
11552
11553
11554
11555
11556# Check whether --enable-selective-werror was given.
11557if test "${enable_selective_werror+set}" = set; then :
11558  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11559else
11560  SELECTIVE_WERROR=yes
11561fi
11562
11563
11564
11565
11566
11567# -v is too short to test reliably with XORG_TESTSET_CFLAG
11568if test "x$SUNCC" = "xyes"; then
11569    BASE_CFLAGS="-v"
11570else
11571    BASE_CFLAGS=""
11572fi
11573
11574# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588xorg_testset_save_CFLAGS="$CFLAGS"
11589
11590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11595  $as_echo_n "(cached) " >&6
11596else
11597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598/* end confdefs.h.  */
11599int i;
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602  xorg_cv_cc_flag_unknown_warning_option=yes
11603else
11604  xorg_cv_cc_flag_unknown_warning_option=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607fi
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11611	CFLAGS="$xorg_testset_save_CFLAGS"
11612fi
11613
11614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11617	fi
11618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625/* end confdefs.h.  */
11626int i;
11627_ACEOF
11628if ac_fn_c_try_compile "$LINENO"; then :
11629  xorg_cv_cc_flag_unused_command_line_argument=yes
11630else
11631  xorg_cv_cc_flag_unused_command_line_argument=no
11632fi
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11638	CFLAGS="$xorg_testset_save_CFLAGS"
11639fi
11640
11641found="no"
11642
11643	if test $found = "no" ; then
11644		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11646		fi
11647
11648		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11650		fi
11651
11652		CFLAGS="$CFLAGS -Wall"
11653
11654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11655$as_echo_n "checking if $CC supports -Wall... " >&6; }
11656		cacheid=xorg_cv_cc_flag__Wall
11657		if eval \${$cacheid+:} false; then :
11658  $as_echo_n "(cached) " >&6
11659else
11660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h.  */
11662int i;
11663int
11664main ()
11665{
11666
11667  ;
11668  return 0;
11669}
11670_ACEOF
11671if ac_fn_c_try_link "$LINENO"; then :
11672  eval $cacheid=yes
11673else
11674  eval $cacheid=no
11675fi
11676rm -f core conftest.err conftest.$ac_objext \
11677    conftest$ac_exeext conftest.$ac_ext
11678fi
11679
11680
11681		CFLAGS="$xorg_testset_save_CFLAGS"
11682
11683		eval supported=\$$cacheid
11684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11685$as_echo "$supported" >&6; }
11686		if test "$supported" = "yes" ; then
11687			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11688			found="yes"
11689		fi
11690	fi
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706xorg_testset_save_CFLAGS="$CFLAGS"
11707
11708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h.  */
11717int i;
11718_ACEOF
11719if ac_fn_c_try_compile "$LINENO"; then :
11720  xorg_cv_cc_flag_unknown_warning_option=yes
11721else
11722  xorg_cv_cc_flag_unknown_warning_option=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725fi
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11729	CFLAGS="$xorg_testset_save_CFLAGS"
11730fi
11731
11732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11735	fi
11736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11740  $as_echo_n "(cached) " >&6
11741else
11742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744int i;
11745_ACEOF
11746if ac_fn_c_try_compile "$LINENO"; then :
11747  xorg_cv_cc_flag_unused_command_line_argument=yes
11748else
11749  xorg_cv_cc_flag_unused_command_line_argument=no
11750fi
11751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11756	CFLAGS="$xorg_testset_save_CFLAGS"
11757fi
11758
11759found="no"
11760
11761	if test $found = "no" ; then
11762		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11764		fi
11765
11766		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11768		fi
11769
11770		CFLAGS="$CFLAGS -Wpointer-arith"
11771
11772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11773$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11774		cacheid=xorg_cv_cc_flag__Wpointer_arith
11775		if eval \${$cacheid+:} false; then :
11776  $as_echo_n "(cached) " >&6
11777else
11778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779/* end confdefs.h.  */
11780int i;
11781int
11782main ()
11783{
11784
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789if ac_fn_c_try_link "$LINENO"; then :
11790  eval $cacheid=yes
11791else
11792  eval $cacheid=no
11793fi
11794rm -f core conftest.err conftest.$ac_objext \
11795    conftest$ac_exeext conftest.$ac_ext
11796fi
11797
11798
11799		CFLAGS="$xorg_testset_save_CFLAGS"
11800
11801		eval supported=\$$cacheid
11802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11803$as_echo "$supported" >&6; }
11804		if test "$supported" = "yes" ; then
11805			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11806			found="yes"
11807		fi
11808	fi
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824xorg_testset_save_CFLAGS="$CFLAGS"
11825
11826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834/* end confdefs.h.  */
11835int i;
11836_ACEOF
11837if ac_fn_c_try_compile "$LINENO"; then :
11838  xorg_cv_cc_flag_unknown_warning_option=yes
11839else
11840  xorg_cv_cc_flag_unknown_warning_option=no
11841fi
11842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843fi
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11847	CFLAGS="$xorg_testset_save_CFLAGS"
11848fi
11849
11850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11853	fi
11854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11858  $as_echo_n "(cached) " >&6
11859else
11860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861/* end confdefs.h.  */
11862int i;
11863_ACEOF
11864if ac_fn_c_try_compile "$LINENO"; then :
11865  xorg_cv_cc_flag_unused_command_line_argument=yes
11866else
11867  xorg_cv_cc_flag_unused_command_line_argument=no
11868fi
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870fi
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11874	CFLAGS="$xorg_testset_save_CFLAGS"
11875fi
11876
11877found="no"
11878
11879	if test $found = "no" ; then
11880		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11882		fi
11883
11884		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11886		fi
11887
11888		CFLAGS="$CFLAGS -Wmissing-declarations"
11889
11890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11891$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11892		cacheid=xorg_cv_cc_flag__Wmissing_declarations
11893		if eval \${$cacheid+:} false; then :
11894  $as_echo_n "(cached) " >&6
11895else
11896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h.  */
11898int i;
11899int
11900main ()
11901{
11902
11903  ;
11904  return 0;
11905}
11906_ACEOF
11907if ac_fn_c_try_link "$LINENO"; then :
11908  eval $cacheid=yes
11909else
11910  eval $cacheid=no
11911fi
11912rm -f core conftest.err conftest.$ac_objext \
11913    conftest$ac_exeext conftest.$ac_ext
11914fi
11915
11916
11917		CFLAGS="$xorg_testset_save_CFLAGS"
11918
11919		eval supported=\$$cacheid
11920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11921$as_echo "$supported" >&6; }
11922		if test "$supported" = "yes" ; then
11923			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11924			found="yes"
11925		fi
11926	fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942xorg_testset_save_CFLAGS="$CFLAGS"
11943
11944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11949  $as_echo_n "(cached) " >&6
11950else
11951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953int i;
11954_ACEOF
11955if ac_fn_c_try_compile "$LINENO"; then :
11956  xorg_cv_cc_flag_unknown_warning_option=yes
11957else
11958  xorg_cv_cc_flag_unknown_warning_option=no
11959fi
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961fi
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11965	CFLAGS="$xorg_testset_save_CFLAGS"
11966fi
11967
11968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11971	fi
11972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11976  $as_echo_n "(cached) " >&6
11977else
11978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h.  */
11980int i;
11981_ACEOF
11982if ac_fn_c_try_compile "$LINENO"; then :
11983  xorg_cv_cc_flag_unused_command_line_argument=yes
11984else
11985  xorg_cv_cc_flag_unused_command_line_argument=no
11986fi
11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11992	CFLAGS="$xorg_testset_save_CFLAGS"
11993fi
11994
11995found="no"
11996
11997	if test $found = "no" ; then
11998		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12000		fi
12001
12002		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12004		fi
12005
12006		CFLAGS="$CFLAGS -Wformat=2"
12007
12008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12009$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12010		cacheid=xorg_cv_cc_flag__Wformat_2
12011		if eval \${$cacheid+:} false; then :
12012  $as_echo_n "(cached) " >&6
12013else
12014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015/* end confdefs.h.  */
12016int i;
12017int
12018main ()
12019{
12020
12021  ;
12022  return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_link "$LINENO"; then :
12026  eval $cacheid=yes
12027else
12028  eval $cacheid=no
12029fi
12030rm -f core conftest.err conftest.$ac_objext \
12031    conftest$ac_exeext conftest.$ac_ext
12032fi
12033
12034
12035		CFLAGS="$xorg_testset_save_CFLAGS"
12036
12037		eval supported=\$$cacheid
12038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12039$as_echo "$supported" >&6; }
12040		if test "$supported" = "yes" ; then
12041			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12042			found="yes"
12043		fi
12044	fi
12045
12046	if test $found = "no" ; then
12047		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12049		fi
12050
12051		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12053		fi
12054
12055		CFLAGS="$CFLAGS -Wformat"
12056
12057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12058$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12059		cacheid=xorg_cv_cc_flag__Wformat
12060		if eval \${$cacheid+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065int i;
12066int
12067main ()
12068{
12069
12070  ;
12071  return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_link "$LINENO"; then :
12075  eval $cacheid=yes
12076else
12077  eval $cacheid=no
12078fi
12079rm -f core conftest.err conftest.$ac_objext \
12080    conftest$ac_exeext conftest.$ac_ext
12081fi
12082
12083
12084		CFLAGS="$xorg_testset_save_CFLAGS"
12085
12086		eval supported=\$$cacheid
12087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12088$as_echo "$supported" >&6; }
12089		if test "$supported" = "yes" ; then
12090			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12091			found="yes"
12092		fi
12093	fi
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111xorg_testset_save_CFLAGS="$CFLAGS"
12112
12113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12118  $as_echo_n "(cached) " >&6
12119else
12120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121/* end confdefs.h.  */
12122int i;
12123_ACEOF
12124if ac_fn_c_try_compile "$LINENO"; then :
12125  xorg_cv_cc_flag_unknown_warning_option=yes
12126else
12127  xorg_cv_cc_flag_unknown_warning_option=no
12128fi
12129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12134	CFLAGS="$xorg_testset_save_CFLAGS"
12135fi
12136
12137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12140	fi
12141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12145  $as_echo_n "(cached) " >&6
12146else
12147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h.  */
12149int i;
12150_ACEOF
12151if ac_fn_c_try_compile "$LINENO"; then :
12152  xorg_cv_cc_flag_unused_command_line_argument=yes
12153else
12154  xorg_cv_cc_flag_unused_command_line_argument=no
12155fi
12156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157fi
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12161	CFLAGS="$xorg_testset_save_CFLAGS"
12162fi
12163
12164found="no"
12165
12166	if test $found = "no" ; then
12167		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12169		fi
12170
12171		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12173		fi
12174
12175		CFLAGS="$CFLAGS -Wstrict-prototypes"
12176
12177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12178$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12179		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12180		if eval \${$cacheid+:} false; then :
12181  $as_echo_n "(cached) " >&6
12182else
12183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h.  */
12185int i;
12186int
12187main ()
12188{
12189
12190  ;
12191  return 0;
12192}
12193_ACEOF
12194if ac_fn_c_try_link "$LINENO"; then :
12195  eval $cacheid=yes
12196else
12197  eval $cacheid=no
12198fi
12199rm -f core conftest.err conftest.$ac_objext \
12200    conftest$ac_exeext conftest.$ac_ext
12201fi
12202
12203
12204		CFLAGS="$xorg_testset_save_CFLAGS"
12205
12206		eval supported=\$$cacheid
12207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12208$as_echo "$supported" >&6; }
12209		if test "$supported" = "yes" ; then
12210			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12211			found="yes"
12212		fi
12213	fi
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229xorg_testset_save_CFLAGS="$CFLAGS"
12230
12231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12236  $as_echo_n "(cached) " >&6
12237else
12238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239/* end confdefs.h.  */
12240int i;
12241_ACEOF
12242if ac_fn_c_try_compile "$LINENO"; then :
12243  xorg_cv_cc_flag_unknown_warning_option=yes
12244else
12245  xorg_cv_cc_flag_unknown_warning_option=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248fi
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12252	CFLAGS="$xorg_testset_save_CFLAGS"
12253fi
12254
12255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12258	fi
12259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h.  */
12267int i;
12268_ACEOF
12269if ac_fn_c_try_compile "$LINENO"; then :
12270  xorg_cv_cc_flag_unused_command_line_argument=yes
12271else
12272  xorg_cv_cc_flag_unused_command_line_argument=no
12273fi
12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275fi
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12279	CFLAGS="$xorg_testset_save_CFLAGS"
12280fi
12281
12282found="no"
12283
12284	if test $found = "no" ; then
12285		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12287		fi
12288
12289		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12291		fi
12292
12293		CFLAGS="$CFLAGS -Wmissing-prototypes"
12294
12295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12296$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12297		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12298		if eval \${$cacheid+:} false; then :
12299  $as_echo_n "(cached) " >&6
12300else
12301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h.  */
12303int i;
12304int
12305main ()
12306{
12307
12308  ;
12309  return 0;
12310}
12311_ACEOF
12312if ac_fn_c_try_link "$LINENO"; then :
12313  eval $cacheid=yes
12314else
12315  eval $cacheid=no
12316fi
12317rm -f core conftest.err conftest.$ac_objext \
12318    conftest$ac_exeext conftest.$ac_ext
12319fi
12320
12321
12322		CFLAGS="$xorg_testset_save_CFLAGS"
12323
12324		eval supported=\$$cacheid
12325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12326$as_echo "$supported" >&6; }
12327		if test "$supported" = "yes" ; then
12328			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12329			found="yes"
12330		fi
12331	fi
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347xorg_testset_save_CFLAGS="$CFLAGS"
12348
12349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h.  */
12358int i;
12359_ACEOF
12360if ac_fn_c_try_compile "$LINENO"; then :
12361  xorg_cv_cc_flag_unknown_warning_option=yes
12362else
12363  xorg_cv_cc_flag_unknown_warning_option=no
12364fi
12365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366fi
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12370	CFLAGS="$xorg_testset_save_CFLAGS"
12371fi
12372
12373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12376	fi
12377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h.  */
12385int i;
12386_ACEOF
12387if ac_fn_c_try_compile "$LINENO"; then :
12388  xorg_cv_cc_flag_unused_command_line_argument=yes
12389else
12390  xorg_cv_cc_flag_unused_command_line_argument=no
12391fi
12392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12397	CFLAGS="$xorg_testset_save_CFLAGS"
12398fi
12399
12400found="no"
12401
12402	if test $found = "no" ; then
12403		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12405		fi
12406
12407		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12409		fi
12410
12411		CFLAGS="$CFLAGS -Wnested-externs"
12412
12413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12414$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12415		cacheid=xorg_cv_cc_flag__Wnested_externs
12416		if eval \${$cacheid+:} false; then :
12417  $as_echo_n "(cached) " >&6
12418else
12419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420/* end confdefs.h.  */
12421int i;
12422int
12423main ()
12424{
12425
12426  ;
12427  return 0;
12428}
12429_ACEOF
12430if ac_fn_c_try_link "$LINENO"; then :
12431  eval $cacheid=yes
12432else
12433  eval $cacheid=no
12434fi
12435rm -f core conftest.err conftest.$ac_objext \
12436    conftest$ac_exeext conftest.$ac_ext
12437fi
12438
12439
12440		CFLAGS="$xorg_testset_save_CFLAGS"
12441
12442		eval supported=\$$cacheid
12443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12444$as_echo "$supported" >&6; }
12445		if test "$supported" = "yes" ; then
12446			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12447			found="yes"
12448		fi
12449	fi
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465xorg_testset_save_CFLAGS="$CFLAGS"
12466
12467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12472  $as_echo_n "(cached) " >&6
12473else
12474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h.  */
12476int i;
12477_ACEOF
12478if ac_fn_c_try_compile "$LINENO"; then :
12479  xorg_cv_cc_flag_unknown_warning_option=yes
12480else
12481  xorg_cv_cc_flag_unknown_warning_option=no
12482fi
12483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12488	CFLAGS="$xorg_testset_save_CFLAGS"
12489fi
12490
12491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12494	fi
12495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12499  $as_echo_n "(cached) " >&6
12500else
12501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502/* end confdefs.h.  */
12503int i;
12504_ACEOF
12505if ac_fn_c_try_compile "$LINENO"; then :
12506  xorg_cv_cc_flag_unused_command_line_argument=yes
12507else
12508  xorg_cv_cc_flag_unused_command_line_argument=no
12509fi
12510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511fi
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12515	CFLAGS="$xorg_testset_save_CFLAGS"
12516fi
12517
12518found="no"
12519
12520	if test $found = "no" ; then
12521		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12523		fi
12524
12525		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12527		fi
12528
12529		CFLAGS="$CFLAGS -Wbad-function-cast"
12530
12531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12532$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12533		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12534		if eval \${$cacheid+:} false; then :
12535  $as_echo_n "(cached) " >&6
12536else
12537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539int i;
12540int
12541main ()
12542{
12543
12544  ;
12545  return 0;
12546}
12547_ACEOF
12548if ac_fn_c_try_link "$LINENO"; then :
12549  eval $cacheid=yes
12550else
12551  eval $cacheid=no
12552fi
12553rm -f core conftest.err conftest.$ac_objext \
12554    conftest$ac_exeext conftest.$ac_ext
12555fi
12556
12557
12558		CFLAGS="$xorg_testset_save_CFLAGS"
12559
12560		eval supported=\$$cacheid
12561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12562$as_echo "$supported" >&6; }
12563		if test "$supported" = "yes" ; then
12564			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12565			found="yes"
12566		fi
12567	fi
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583xorg_testset_save_CFLAGS="$CFLAGS"
12584
12585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h.  */
12594int i;
12595_ACEOF
12596if ac_fn_c_try_compile "$LINENO"; then :
12597  xorg_cv_cc_flag_unknown_warning_option=yes
12598else
12599  xorg_cv_cc_flag_unknown_warning_option=no
12600fi
12601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602fi
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12606	CFLAGS="$xorg_testset_save_CFLAGS"
12607fi
12608
12609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12612	fi
12613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12617  $as_echo_n "(cached) " >&6
12618else
12619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h.  */
12621int i;
12622_ACEOF
12623if ac_fn_c_try_compile "$LINENO"; then :
12624  xorg_cv_cc_flag_unused_command_line_argument=yes
12625else
12626  xorg_cv_cc_flag_unused_command_line_argument=no
12627fi
12628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629fi
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12633	CFLAGS="$xorg_testset_save_CFLAGS"
12634fi
12635
12636found="no"
12637
12638	if test $found = "no" ; then
12639		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12641		fi
12642
12643		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12645		fi
12646
12647		CFLAGS="$CFLAGS -Wold-style-definition"
12648
12649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12650$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12651		cacheid=xorg_cv_cc_flag__Wold_style_definition
12652		if eval \${$cacheid+:} false; then :
12653  $as_echo_n "(cached) " >&6
12654else
12655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h.  */
12657int i;
12658int
12659main ()
12660{
12661
12662  ;
12663  return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_link "$LINENO"; then :
12667  eval $cacheid=yes
12668else
12669  eval $cacheid=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672    conftest$ac_exeext conftest.$ac_ext
12673fi
12674
12675
12676		CFLAGS="$xorg_testset_save_CFLAGS"
12677
12678		eval supported=\$$cacheid
12679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12680$as_echo "$supported" >&6; }
12681		if test "$supported" = "yes" ; then
12682			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12683			found="yes"
12684		fi
12685	fi
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701xorg_testset_save_CFLAGS="$CFLAGS"
12702
12703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12708  $as_echo_n "(cached) " >&6
12709else
12710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711/* end confdefs.h.  */
12712int i;
12713_ACEOF
12714if ac_fn_c_try_compile "$LINENO"; then :
12715  xorg_cv_cc_flag_unknown_warning_option=yes
12716else
12717  xorg_cv_cc_flag_unknown_warning_option=no
12718fi
12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720fi
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12724	CFLAGS="$xorg_testset_save_CFLAGS"
12725fi
12726
12727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12730	fi
12731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12735  $as_echo_n "(cached) " >&6
12736else
12737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738/* end confdefs.h.  */
12739int i;
12740_ACEOF
12741if ac_fn_c_try_compile "$LINENO"; then :
12742  xorg_cv_cc_flag_unused_command_line_argument=yes
12743else
12744  xorg_cv_cc_flag_unused_command_line_argument=no
12745fi
12746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747fi
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12751	CFLAGS="$xorg_testset_save_CFLAGS"
12752fi
12753
12754found="no"
12755
12756	if test $found = "no" ; then
12757		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12759		fi
12760
12761		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12763		fi
12764
12765		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12766
12767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12768$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12769		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12770		if eval \${$cacheid+:} false; then :
12771  $as_echo_n "(cached) " >&6
12772else
12773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774/* end confdefs.h.  */
12775int i;
12776int
12777main ()
12778{
12779
12780  ;
12781  return 0;
12782}
12783_ACEOF
12784if ac_fn_c_try_link "$LINENO"; then :
12785  eval $cacheid=yes
12786else
12787  eval $cacheid=no
12788fi
12789rm -f core conftest.err conftest.$ac_objext \
12790    conftest$ac_exeext conftest.$ac_ext
12791fi
12792
12793
12794		CFLAGS="$xorg_testset_save_CFLAGS"
12795
12796		eval supported=\$$cacheid
12797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12798$as_echo "$supported" >&6; }
12799		if test "$supported" = "yes" ; then
12800			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12801			found="yes"
12802		fi
12803	fi
12804
12805
12806
12807
12808
12809# This chunk adds additional warnings that could catch undesired effects.
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823xorg_testset_save_CFLAGS="$CFLAGS"
12824
12825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12830  $as_echo_n "(cached) " >&6
12831else
12832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833/* end confdefs.h.  */
12834int i;
12835_ACEOF
12836if ac_fn_c_try_compile "$LINENO"; then :
12837  xorg_cv_cc_flag_unknown_warning_option=yes
12838else
12839  xorg_cv_cc_flag_unknown_warning_option=no
12840fi
12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842fi
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12846	CFLAGS="$xorg_testset_save_CFLAGS"
12847fi
12848
12849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12852	fi
12853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861int i;
12862_ACEOF
12863if ac_fn_c_try_compile "$LINENO"; then :
12864  xorg_cv_cc_flag_unused_command_line_argument=yes
12865else
12866  xorg_cv_cc_flag_unused_command_line_argument=no
12867fi
12868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869fi
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12873	CFLAGS="$xorg_testset_save_CFLAGS"
12874fi
12875
12876found="no"
12877
12878	if test $found = "no" ; then
12879		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12881		fi
12882
12883		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12885		fi
12886
12887		CFLAGS="$CFLAGS -Wunused"
12888
12889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12890$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12891		cacheid=xorg_cv_cc_flag__Wunused
12892		if eval \${$cacheid+:} false; then :
12893  $as_echo_n "(cached) " >&6
12894else
12895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896/* end confdefs.h.  */
12897int i;
12898int
12899main ()
12900{
12901
12902  ;
12903  return 0;
12904}
12905_ACEOF
12906if ac_fn_c_try_link "$LINENO"; then :
12907  eval $cacheid=yes
12908else
12909  eval $cacheid=no
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912    conftest$ac_exeext conftest.$ac_ext
12913fi
12914
12915
12916		CFLAGS="$xorg_testset_save_CFLAGS"
12917
12918		eval supported=\$$cacheid
12919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12920$as_echo "$supported" >&6; }
12921		if test "$supported" = "yes" ; then
12922			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12923			found="yes"
12924		fi
12925	fi
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941xorg_testset_save_CFLAGS="$CFLAGS"
12942
12943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12948  $as_echo_n "(cached) " >&6
12949else
12950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h.  */
12952int i;
12953_ACEOF
12954if ac_fn_c_try_compile "$LINENO"; then :
12955  xorg_cv_cc_flag_unknown_warning_option=yes
12956else
12957  xorg_cv_cc_flag_unknown_warning_option=no
12958fi
12959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960fi
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12964	CFLAGS="$xorg_testset_save_CFLAGS"
12965fi
12966
12967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12970	fi
12971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979int i;
12980_ACEOF
12981if ac_fn_c_try_compile "$LINENO"; then :
12982  xorg_cv_cc_flag_unused_command_line_argument=yes
12983else
12984  xorg_cv_cc_flag_unused_command_line_argument=no
12985fi
12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12991	CFLAGS="$xorg_testset_save_CFLAGS"
12992fi
12993
12994found="no"
12995
12996	if test $found = "no" ; then
12997		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12999		fi
13000
13001		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13003		fi
13004
13005		CFLAGS="$CFLAGS -Wuninitialized"
13006
13007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13008$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13009		cacheid=xorg_cv_cc_flag__Wuninitialized
13010		if eval \${$cacheid+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016int
13017main ()
13018{
13019
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024if ac_fn_c_try_link "$LINENO"; then :
13025  eval $cacheid=yes
13026else
13027  eval $cacheid=no
13028fi
13029rm -f core conftest.err conftest.$ac_objext \
13030    conftest$ac_exeext conftest.$ac_ext
13031fi
13032
13033
13034		CFLAGS="$xorg_testset_save_CFLAGS"
13035
13036		eval supported=\$$cacheid
13037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13038$as_echo "$supported" >&6; }
13039		if test "$supported" = "yes" ; then
13040			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13041			found="yes"
13042		fi
13043	fi
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059xorg_testset_save_CFLAGS="$CFLAGS"
13060
13061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070int i;
13071_ACEOF
13072if ac_fn_c_try_compile "$LINENO"; then :
13073  xorg_cv_cc_flag_unknown_warning_option=yes
13074else
13075  xorg_cv_cc_flag_unknown_warning_option=no
13076fi
13077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078fi
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13082	CFLAGS="$xorg_testset_save_CFLAGS"
13083fi
13084
13085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13088	fi
13089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097int i;
13098_ACEOF
13099if ac_fn_c_try_compile "$LINENO"; then :
13100  xorg_cv_cc_flag_unused_command_line_argument=yes
13101else
13102  xorg_cv_cc_flag_unused_command_line_argument=no
13103fi
13104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13109	CFLAGS="$xorg_testset_save_CFLAGS"
13110fi
13111
13112found="no"
13113
13114	if test $found = "no" ; then
13115		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117		fi
13118
13119		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13121		fi
13122
13123		CFLAGS="$CFLAGS -Wshadow"
13124
13125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13126$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13127		cacheid=xorg_cv_cc_flag__Wshadow
13128		if eval \${$cacheid+:} false; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133int i;
13134int
13135main ()
13136{
13137
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142if ac_fn_c_try_link "$LINENO"; then :
13143  eval $cacheid=yes
13144else
13145  eval $cacheid=no
13146fi
13147rm -f core conftest.err conftest.$ac_objext \
13148    conftest$ac_exeext conftest.$ac_ext
13149fi
13150
13151
13152		CFLAGS="$xorg_testset_save_CFLAGS"
13153
13154		eval supported=\$$cacheid
13155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13156$as_echo "$supported" >&6; }
13157		if test "$supported" = "yes" ; then
13158			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13159			found="yes"
13160		fi
13161	fi
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177xorg_testset_save_CFLAGS="$CFLAGS"
13178
13179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13184  $as_echo_n "(cached) " >&6
13185else
13186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h.  */
13188int i;
13189_ACEOF
13190if ac_fn_c_try_compile "$LINENO"; then :
13191  xorg_cv_cc_flag_unknown_warning_option=yes
13192else
13193  xorg_cv_cc_flag_unknown_warning_option=no
13194fi
13195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13200	CFLAGS="$xorg_testset_save_CFLAGS"
13201fi
13202
13203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13206	fi
13207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13211  $as_echo_n "(cached) " >&6
13212else
13213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h.  */
13215int i;
13216_ACEOF
13217if ac_fn_c_try_compile "$LINENO"; then :
13218  xorg_cv_cc_flag_unused_command_line_argument=yes
13219else
13220  xorg_cv_cc_flag_unused_command_line_argument=no
13221fi
13222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223fi
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13227	CFLAGS="$xorg_testset_save_CFLAGS"
13228fi
13229
13230found="no"
13231
13232	if test $found = "no" ; then
13233		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13235		fi
13236
13237		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13239		fi
13240
13241		CFLAGS="$CFLAGS -Wcast-qual"
13242
13243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13244$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13245		cacheid=xorg_cv_cc_flag__Wcast_qual
13246		if eval \${$cacheid+:} false; then :
13247  $as_echo_n "(cached) " >&6
13248else
13249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h.  */
13251int i;
13252int
13253main ()
13254{
13255
13256  ;
13257  return 0;
13258}
13259_ACEOF
13260if ac_fn_c_try_link "$LINENO"; then :
13261  eval $cacheid=yes
13262else
13263  eval $cacheid=no
13264fi
13265rm -f core conftest.err conftest.$ac_objext \
13266    conftest$ac_exeext conftest.$ac_ext
13267fi
13268
13269
13270		CFLAGS="$xorg_testset_save_CFLAGS"
13271
13272		eval supported=\$$cacheid
13273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13274$as_echo "$supported" >&6; }
13275		if test "$supported" = "yes" ; then
13276			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13277			found="yes"
13278		fi
13279	fi
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295xorg_testset_save_CFLAGS="$CFLAGS"
13296
13297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306int i;
13307_ACEOF
13308if ac_fn_c_try_compile "$LINENO"; then :
13309  xorg_cv_cc_flag_unknown_warning_option=yes
13310else
13311  xorg_cv_cc_flag_unknown_warning_option=no
13312fi
13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314fi
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13318	CFLAGS="$xorg_testset_save_CFLAGS"
13319fi
13320
13321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13324	fi
13325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13329  $as_echo_n "(cached) " >&6
13330else
13331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h.  */
13333int i;
13334_ACEOF
13335if ac_fn_c_try_compile "$LINENO"; then :
13336  xorg_cv_cc_flag_unused_command_line_argument=yes
13337else
13338  xorg_cv_cc_flag_unused_command_line_argument=no
13339fi
13340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341fi
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13345	CFLAGS="$xorg_testset_save_CFLAGS"
13346fi
13347
13348found="no"
13349
13350	if test $found = "no" ; then
13351		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353		fi
13354
13355		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13357		fi
13358
13359		CFLAGS="$CFLAGS -Wmissing-noreturn"
13360
13361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13362$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13363		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13364		if eval \${$cacheid+:} false; then :
13365  $as_echo_n "(cached) " >&6
13366else
13367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h.  */
13369int i;
13370int
13371main ()
13372{
13373
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_link "$LINENO"; then :
13379  eval $cacheid=yes
13380else
13381  eval $cacheid=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext \
13384    conftest$ac_exeext conftest.$ac_ext
13385fi
13386
13387
13388		CFLAGS="$xorg_testset_save_CFLAGS"
13389
13390		eval supported=\$$cacheid
13391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13392$as_echo "$supported" >&6; }
13393		if test "$supported" = "yes" ; then
13394			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13395			found="yes"
13396		fi
13397	fi
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413xorg_testset_save_CFLAGS="$CFLAGS"
13414
13415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423/* end confdefs.h.  */
13424int i;
13425_ACEOF
13426if ac_fn_c_try_compile "$LINENO"; then :
13427  xorg_cv_cc_flag_unknown_warning_option=yes
13428else
13429  xorg_cv_cc_flag_unknown_warning_option=no
13430fi
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13436	CFLAGS="$xorg_testset_save_CFLAGS"
13437fi
13438
13439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13442	fi
13443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13447  $as_echo_n "(cached) " >&6
13448else
13449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450/* end confdefs.h.  */
13451int i;
13452_ACEOF
13453if ac_fn_c_try_compile "$LINENO"; then :
13454  xorg_cv_cc_flag_unused_command_line_argument=yes
13455else
13456  xorg_cv_cc_flag_unused_command_line_argument=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459fi
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13463	CFLAGS="$xorg_testset_save_CFLAGS"
13464fi
13465
13466found="no"
13467
13468	if test $found = "no" ; then
13469		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13471		fi
13472
13473		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13475		fi
13476
13477		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13478
13479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13480$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13481		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13482		if eval \${$cacheid+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h.  */
13487int i;
13488int
13489main ()
13490{
13491
13492  ;
13493  return 0;
13494}
13495_ACEOF
13496if ac_fn_c_try_link "$LINENO"; then :
13497  eval $cacheid=yes
13498else
13499  eval $cacheid=no
13500fi
13501rm -f core conftest.err conftest.$ac_objext \
13502    conftest$ac_exeext conftest.$ac_ext
13503fi
13504
13505
13506		CFLAGS="$xorg_testset_save_CFLAGS"
13507
13508		eval supported=\$$cacheid
13509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13510$as_echo "$supported" >&6; }
13511		if test "$supported" = "yes" ; then
13512			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13513			found="yes"
13514		fi
13515	fi
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531xorg_testset_save_CFLAGS="$CFLAGS"
13532
13533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13538  $as_echo_n "(cached) " >&6
13539else
13540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541/* end confdefs.h.  */
13542int i;
13543_ACEOF
13544if ac_fn_c_try_compile "$LINENO"; then :
13545  xorg_cv_cc_flag_unknown_warning_option=yes
13546else
13547  xorg_cv_cc_flag_unknown_warning_option=no
13548fi
13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13554	CFLAGS="$xorg_testset_save_CFLAGS"
13555fi
13556
13557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13560	fi
13561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13565  $as_echo_n "(cached) " >&6
13566else
13567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569int i;
13570_ACEOF
13571if ac_fn_c_try_compile "$LINENO"; then :
13572  xorg_cv_cc_flag_unused_command_line_argument=yes
13573else
13574  xorg_cv_cc_flag_unused_command_line_argument=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577fi
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13581	CFLAGS="$xorg_testset_save_CFLAGS"
13582fi
13583
13584found="no"
13585
13586	if test $found = "no" ; then
13587		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589		fi
13590
13591		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13593		fi
13594
13595		CFLAGS="$CFLAGS -Wredundant-decls"
13596
13597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13598$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13599		cacheid=xorg_cv_cc_flag__Wredundant_decls
13600		if eval \${$cacheid+:} false; then :
13601  $as_echo_n "(cached) " >&6
13602else
13603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604/* end confdefs.h.  */
13605int i;
13606int
13607main ()
13608{
13609
13610  ;
13611  return 0;
13612}
13613_ACEOF
13614if ac_fn_c_try_link "$LINENO"; then :
13615  eval $cacheid=yes
13616else
13617  eval $cacheid=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext \
13620    conftest$ac_exeext conftest.$ac_ext
13621fi
13622
13623
13624		CFLAGS="$xorg_testset_save_CFLAGS"
13625
13626		eval supported=\$$cacheid
13627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13628$as_echo "$supported" >&6; }
13629		if test "$supported" = "yes" ; then
13630			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13631			found="yes"
13632		fi
13633	fi
13634
13635
13636
13637# These are currently disabled because they are noisy.  They will be enabled
13638# in the future once the codebase is sufficiently modernized to silence
13639# them.  For now, I don't want them to drown out the other warnings.
13640# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13641# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13642# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13643
13644# Turn some warnings into errors, so we don't accidently get successful builds
13645# when there are problems that should be fixed.
13646
13647if test "x$SELECTIVE_WERROR" = "xyes" ; then
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661xorg_testset_save_CFLAGS="$CFLAGS"
13662
13663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h.  */
13672int i;
13673_ACEOF
13674if ac_fn_c_try_compile "$LINENO"; then :
13675  xorg_cv_cc_flag_unknown_warning_option=yes
13676else
13677  xorg_cv_cc_flag_unknown_warning_option=no
13678fi
13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680fi
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13684	CFLAGS="$xorg_testset_save_CFLAGS"
13685fi
13686
13687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13690	fi
13691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13695  $as_echo_n "(cached) " >&6
13696else
13697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699int i;
13700_ACEOF
13701if ac_fn_c_try_compile "$LINENO"; then :
13702  xorg_cv_cc_flag_unused_command_line_argument=yes
13703else
13704  xorg_cv_cc_flag_unused_command_line_argument=no
13705fi
13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707fi
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13711	CFLAGS="$xorg_testset_save_CFLAGS"
13712fi
13713
13714found="no"
13715
13716	if test $found = "no" ; then
13717		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13719		fi
13720
13721		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13723		fi
13724
13725		CFLAGS="$CFLAGS -Werror=implicit"
13726
13727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13728$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13729		cacheid=xorg_cv_cc_flag__Werror_implicit
13730		if eval \${$cacheid+:} false; then :
13731  $as_echo_n "(cached) " >&6
13732else
13733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h.  */
13735int i;
13736int
13737main ()
13738{
13739
13740  ;
13741  return 0;
13742}
13743_ACEOF
13744if ac_fn_c_try_link "$LINENO"; then :
13745  eval $cacheid=yes
13746else
13747  eval $cacheid=no
13748fi
13749rm -f core conftest.err conftest.$ac_objext \
13750    conftest$ac_exeext conftest.$ac_ext
13751fi
13752
13753
13754		CFLAGS="$xorg_testset_save_CFLAGS"
13755
13756		eval supported=\$$cacheid
13757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13758$as_echo "$supported" >&6; }
13759		if test "$supported" = "yes" ; then
13760			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13761			found="yes"
13762		fi
13763	fi
13764
13765	if test $found = "no" ; then
13766		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13768		fi
13769
13770		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13772		fi
13773
13774		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13775
13776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13777$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13778		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13779		if eval \${$cacheid+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784int i;
13785int
13786main ()
13787{
13788
13789  ;
13790  return 0;
13791}
13792_ACEOF
13793if ac_fn_c_try_link "$LINENO"; then :
13794  eval $cacheid=yes
13795else
13796  eval $cacheid=no
13797fi
13798rm -f core conftest.err conftest.$ac_objext \
13799    conftest$ac_exeext conftest.$ac_ext
13800fi
13801
13802
13803		CFLAGS="$xorg_testset_save_CFLAGS"
13804
13805		eval supported=\$$cacheid
13806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13807$as_echo "$supported" >&6; }
13808		if test "$supported" = "yes" ; then
13809			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13810			found="yes"
13811		fi
13812	fi
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828xorg_testset_save_CFLAGS="$CFLAGS"
13829
13830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838/* end confdefs.h.  */
13839int i;
13840_ACEOF
13841if ac_fn_c_try_compile "$LINENO"; then :
13842  xorg_cv_cc_flag_unknown_warning_option=yes
13843else
13844  xorg_cv_cc_flag_unknown_warning_option=no
13845fi
13846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13851	CFLAGS="$xorg_testset_save_CFLAGS"
13852fi
13853
13854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13857	fi
13858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13862  $as_echo_n "(cached) " >&6
13863else
13864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865/* end confdefs.h.  */
13866int i;
13867_ACEOF
13868if ac_fn_c_try_compile "$LINENO"; then :
13869  xorg_cv_cc_flag_unused_command_line_argument=yes
13870else
13871  xorg_cv_cc_flag_unused_command_line_argument=no
13872fi
13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874fi
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13878	CFLAGS="$xorg_testset_save_CFLAGS"
13879fi
13880
13881found="no"
13882
13883	if test $found = "no" ; then
13884		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886		fi
13887
13888		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13890		fi
13891
13892		CFLAGS="$CFLAGS -Werror=nonnull"
13893
13894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13895$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13896		cacheid=xorg_cv_cc_flag__Werror_nonnull
13897		if eval \${$cacheid+:} false; then :
13898  $as_echo_n "(cached) " >&6
13899else
13900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902int i;
13903int
13904main ()
13905{
13906
13907  ;
13908  return 0;
13909}
13910_ACEOF
13911if ac_fn_c_try_link "$LINENO"; then :
13912  eval $cacheid=yes
13913else
13914  eval $cacheid=no
13915fi
13916rm -f core conftest.err conftest.$ac_objext \
13917    conftest$ac_exeext conftest.$ac_ext
13918fi
13919
13920
13921		CFLAGS="$xorg_testset_save_CFLAGS"
13922
13923		eval supported=\$$cacheid
13924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13925$as_echo "$supported" >&6; }
13926		if test "$supported" = "yes" ; then
13927			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13928			found="yes"
13929		fi
13930	fi
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946xorg_testset_save_CFLAGS="$CFLAGS"
13947
13948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13953  $as_echo_n "(cached) " >&6
13954else
13955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957int i;
13958_ACEOF
13959if ac_fn_c_try_compile "$LINENO"; then :
13960  xorg_cv_cc_flag_unknown_warning_option=yes
13961else
13962  xorg_cv_cc_flag_unknown_warning_option=no
13963fi
13964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965fi
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13969	CFLAGS="$xorg_testset_save_CFLAGS"
13970fi
13971
13972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13975	fi
13976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13980  $as_echo_n "(cached) " >&6
13981else
13982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983/* end confdefs.h.  */
13984int i;
13985_ACEOF
13986if ac_fn_c_try_compile "$LINENO"; then :
13987  xorg_cv_cc_flag_unused_command_line_argument=yes
13988else
13989  xorg_cv_cc_flag_unused_command_line_argument=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992fi
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13996	CFLAGS="$xorg_testset_save_CFLAGS"
13997fi
13998
13999found="no"
14000
14001	if test $found = "no" ; then
14002		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14004		fi
14005
14006		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14008		fi
14009
14010		CFLAGS="$CFLAGS -Werror=init-self"
14011
14012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14013$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14014		cacheid=xorg_cv_cc_flag__Werror_init_self
14015		if eval \${$cacheid+:} false; then :
14016  $as_echo_n "(cached) " >&6
14017else
14018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h.  */
14020int i;
14021int
14022main ()
14023{
14024
14025  ;
14026  return 0;
14027}
14028_ACEOF
14029if ac_fn_c_try_link "$LINENO"; then :
14030  eval $cacheid=yes
14031else
14032  eval $cacheid=no
14033fi
14034rm -f core conftest.err conftest.$ac_objext \
14035    conftest$ac_exeext conftest.$ac_ext
14036fi
14037
14038
14039		CFLAGS="$xorg_testset_save_CFLAGS"
14040
14041		eval supported=\$$cacheid
14042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14043$as_echo "$supported" >&6; }
14044		if test "$supported" = "yes" ; then
14045			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14046			found="yes"
14047		fi
14048	fi
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064xorg_testset_save_CFLAGS="$CFLAGS"
14065
14066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h.  */
14075int i;
14076_ACEOF
14077if ac_fn_c_try_compile "$LINENO"; then :
14078  xorg_cv_cc_flag_unknown_warning_option=yes
14079else
14080  xorg_cv_cc_flag_unknown_warning_option=no
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083fi
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14087	CFLAGS="$xorg_testset_save_CFLAGS"
14088fi
14089
14090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14093	fi
14094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14098  $as_echo_n "(cached) " >&6
14099else
14100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h.  */
14102int i;
14103_ACEOF
14104if ac_fn_c_try_compile "$LINENO"; then :
14105  xorg_cv_cc_flag_unused_command_line_argument=yes
14106else
14107  xorg_cv_cc_flag_unused_command_line_argument=no
14108fi
14109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14114	CFLAGS="$xorg_testset_save_CFLAGS"
14115fi
14116
14117found="no"
14118
14119	if test $found = "no" ; then
14120		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14122		fi
14123
14124		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14126		fi
14127
14128		CFLAGS="$CFLAGS -Werror=main"
14129
14130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14131$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14132		cacheid=xorg_cv_cc_flag__Werror_main
14133		if eval \${$cacheid+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137/* end confdefs.h.  */
14138int i;
14139int
14140main ()
14141{
14142
14143  ;
14144  return 0;
14145}
14146_ACEOF
14147if ac_fn_c_try_link "$LINENO"; then :
14148  eval $cacheid=yes
14149else
14150  eval $cacheid=no
14151fi
14152rm -f core conftest.err conftest.$ac_objext \
14153    conftest$ac_exeext conftest.$ac_ext
14154fi
14155
14156
14157		CFLAGS="$xorg_testset_save_CFLAGS"
14158
14159		eval supported=\$$cacheid
14160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14161$as_echo "$supported" >&6; }
14162		if test "$supported" = "yes" ; then
14163			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14164			found="yes"
14165		fi
14166	fi
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182xorg_testset_save_CFLAGS="$CFLAGS"
14183
14184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192/* end confdefs.h.  */
14193int i;
14194_ACEOF
14195if ac_fn_c_try_compile "$LINENO"; then :
14196  xorg_cv_cc_flag_unknown_warning_option=yes
14197else
14198  xorg_cv_cc_flag_unknown_warning_option=no
14199fi
14200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201fi
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14205	CFLAGS="$xorg_testset_save_CFLAGS"
14206fi
14207
14208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14211	fi
14212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14216  $as_echo_n "(cached) " >&6
14217else
14218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219/* end confdefs.h.  */
14220int i;
14221_ACEOF
14222if ac_fn_c_try_compile "$LINENO"; then :
14223  xorg_cv_cc_flag_unused_command_line_argument=yes
14224else
14225  xorg_cv_cc_flag_unused_command_line_argument=no
14226fi
14227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14232	CFLAGS="$xorg_testset_save_CFLAGS"
14233fi
14234
14235found="no"
14236
14237	if test $found = "no" ; then
14238		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240		fi
14241
14242		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14244		fi
14245
14246		CFLAGS="$CFLAGS -Werror=missing-braces"
14247
14248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14249$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14250		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14251		if eval \${$cacheid+:} false; then :
14252  $as_echo_n "(cached) " >&6
14253else
14254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h.  */
14256int i;
14257int
14258main ()
14259{
14260
14261  ;
14262  return 0;
14263}
14264_ACEOF
14265if ac_fn_c_try_link "$LINENO"; then :
14266  eval $cacheid=yes
14267else
14268  eval $cacheid=no
14269fi
14270rm -f core conftest.err conftest.$ac_objext \
14271    conftest$ac_exeext conftest.$ac_ext
14272fi
14273
14274
14275		CFLAGS="$xorg_testset_save_CFLAGS"
14276
14277		eval supported=\$$cacheid
14278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14279$as_echo "$supported" >&6; }
14280		if test "$supported" = "yes" ; then
14281			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14282			found="yes"
14283		fi
14284	fi
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300xorg_testset_save_CFLAGS="$CFLAGS"
14301
14302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14307  $as_echo_n "(cached) " >&6
14308else
14309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311int i;
14312_ACEOF
14313if ac_fn_c_try_compile "$LINENO"; then :
14314  xorg_cv_cc_flag_unknown_warning_option=yes
14315else
14316  xorg_cv_cc_flag_unknown_warning_option=no
14317fi
14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319fi
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14323	CFLAGS="$xorg_testset_save_CFLAGS"
14324fi
14325
14326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14329	fi
14330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14334  $as_echo_n "(cached) " >&6
14335else
14336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337/* end confdefs.h.  */
14338int i;
14339_ACEOF
14340if ac_fn_c_try_compile "$LINENO"; then :
14341  xorg_cv_cc_flag_unused_command_line_argument=yes
14342else
14343  xorg_cv_cc_flag_unused_command_line_argument=no
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346fi
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14350	CFLAGS="$xorg_testset_save_CFLAGS"
14351fi
14352
14353found="no"
14354
14355	if test $found = "no" ; then
14356		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14358		fi
14359
14360		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14362		fi
14363
14364		CFLAGS="$CFLAGS -Werror=sequence-point"
14365
14366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14367$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14368		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14369		if eval \${$cacheid+:} false; then :
14370  $as_echo_n "(cached) " >&6
14371else
14372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373/* end confdefs.h.  */
14374int i;
14375int
14376main ()
14377{
14378
14379  ;
14380  return 0;
14381}
14382_ACEOF
14383if ac_fn_c_try_link "$LINENO"; then :
14384  eval $cacheid=yes
14385else
14386  eval $cacheid=no
14387fi
14388rm -f core conftest.err conftest.$ac_objext \
14389    conftest$ac_exeext conftest.$ac_ext
14390fi
14391
14392
14393		CFLAGS="$xorg_testset_save_CFLAGS"
14394
14395		eval supported=\$$cacheid
14396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14397$as_echo "$supported" >&6; }
14398		if test "$supported" = "yes" ; then
14399			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14400			found="yes"
14401		fi
14402	fi
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418xorg_testset_save_CFLAGS="$CFLAGS"
14419
14420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14425  $as_echo_n "(cached) " >&6
14426else
14427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428/* end confdefs.h.  */
14429int i;
14430_ACEOF
14431if ac_fn_c_try_compile "$LINENO"; then :
14432  xorg_cv_cc_flag_unknown_warning_option=yes
14433else
14434  xorg_cv_cc_flag_unknown_warning_option=no
14435fi
14436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437fi
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14441	CFLAGS="$xorg_testset_save_CFLAGS"
14442fi
14443
14444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447	fi
14448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14452  $as_echo_n "(cached) " >&6
14453else
14454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455/* end confdefs.h.  */
14456int i;
14457_ACEOF
14458if ac_fn_c_try_compile "$LINENO"; then :
14459  xorg_cv_cc_flag_unused_command_line_argument=yes
14460else
14461  xorg_cv_cc_flag_unused_command_line_argument=no
14462fi
14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464fi
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14468	CFLAGS="$xorg_testset_save_CFLAGS"
14469fi
14470
14471found="no"
14472
14473	if test $found = "no" ; then
14474		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476		fi
14477
14478		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14480		fi
14481
14482		CFLAGS="$CFLAGS -Werror=return-type"
14483
14484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14485$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14486		cacheid=xorg_cv_cc_flag__Werror_return_type
14487		if eval \${$cacheid+:} false; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h.  */
14492int i;
14493int
14494main ()
14495{
14496
14497  ;
14498  return 0;
14499}
14500_ACEOF
14501if ac_fn_c_try_link "$LINENO"; then :
14502  eval $cacheid=yes
14503else
14504  eval $cacheid=no
14505fi
14506rm -f core conftest.err conftest.$ac_objext \
14507    conftest$ac_exeext conftest.$ac_ext
14508fi
14509
14510
14511		CFLAGS="$xorg_testset_save_CFLAGS"
14512
14513		eval supported=\$$cacheid
14514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14515$as_echo "$supported" >&6; }
14516		if test "$supported" = "yes" ; then
14517			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14518			found="yes"
14519		fi
14520	fi
14521
14522	if test $found = "no" ; then
14523		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14525		fi
14526
14527		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14529		fi
14530
14531		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14532
14533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14534$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14535		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14536		if eval \${$cacheid+:} false; then :
14537  $as_echo_n "(cached) " >&6
14538else
14539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540/* end confdefs.h.  */
14541int i;
14542int
14543main ()
14544{
14545
14546  ;
14547  return 0;
14548}
14549_ACEOF
14550if ac_fn_c_try_link "$LINENO"; then :
14551  eval $cacheid=yes
14552else
14553  eval $cacheid=no
14554fi
14555rm -f core conftest.err conftest.$ac_objext \
14556    conftest$ac_exeext conftest.$ac_ext
14557fi
14558
14559
14560		CFLAGS="$xorg_testset_save_CFLAGS"
14561
14562		eval supported=\$$cacheid
14563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14564$as_echo "$supported" >&6; }
14565		if test "$supported" = "yes" ; then
14566			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14567			found="yes"
14568		fi
14569	fi
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585xorg_testset_save_CFLAGS="$CFLAGS"
14586
14587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14592  $as_echo_n "(cached) " >&6
14593else
14594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595/* end confdefs.h.  */
14596int i;
14597_ACEOF
14598if ac_fn_c_try_compile "$LINENO"; then :
14599  xorg_cv_cc_flag_unknown_warning_option=yes
14600else
14601  xorg_cv_cc_flag_unknown_warning_option=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604fi
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14608	CFLAGS="$xorg_testset_save_CFLAGS"
14609fi
14610
14611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14614	fi
14615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14619  $as_echo_n "(cached) " >&6
14620else
14621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h.  */
14623int i;
14624_ACEOF
14625if ac_fn_c_try_compile "$LINENO"; then :
14626  xorg_cv_cc_flag_unused_command_line_argument=yes
14627else
14628  xorg_cv_cc_flag_unused_command_line_argument=no
14629fi
14630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631fi
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14635	CFLAGS="$xorg_testset_save_CFLAGS"
14636fi
14637
14638found="no"
14639
14640	if test $found = "no" ; then
14641		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14643		fi
14644
14645		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14647		fi
14648
14649		CFLAGS="$CFLAGS -Werror=trigraphs"
14650
14651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14652$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14653		cacheid=xorg_cv_cc_flag__Werror_trigraphs
14654		if eval \${$cacheid+:} false; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658/* end confdefs.h.  */
14659int i;
14660int
14661main ()
14662{
14663
14664  ;
14665  return 0;
14666}
14667_ACEOF
14668if ac_fn_c_try_link "$LINENO"; then :
14669  eval $cacheid=yes
14670else
14671  eval $cacheid=no
14672fi
14673rm -f core conftest.err conftest.$ac_objext \
14674    conftest$ac_exeext conftest.$ac_ext
14675fi
14676
14677
14678		CFLAGS="$xorg_testset_save_CFLAGS"
14679
14680		eval supported=\$$cacheid
14681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14682$as_echo "$supported" >&6; }
14683		if test "$supported" = "yes" ; then
14684			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14685			found="yes"
14686		fi
14687	fi
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703xorg_testset_save_CFLAGS="$CFLAGS"
14704
14705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14710  $as_echo_n "(cached) " >&6
14711else
14712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713/* end confdefs.h.  */
14714int i;
14715_ACEOF
14716if ac_fn_c_try_compile "$LINENO"; then :
14717  xorg_cv_cc_flag_unknown_warning_option=yes
14718else
14719  xorg_cv_cc_flag_unknown_warning_option=no
14720fi
14721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722fi
14723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14726	CFLAGS="$xorg_testset_save_CFLAGS"
14727fi
14728
14729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14732	fi
14733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14737  $as_echo_n "(cached) " >&6
14738else
14739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h.  */
14741int i;
14742_ACEOF
14743if ac_fn_c_try_compile "$LINENO"; then :
14744  xorg_cv_cc_flag_unused_command_line_argument=yes
14745else
14746  xorg_cv_cc_flag_unused_command_line_argument=no
14747fi
14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749fi
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14753	CFLAGS="$xorg_testset_save_CFLAGS"
14754fi
14755
14756found="no"
14757
14758	if test $found = "no" ; then
14759		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14761		fi
14762
14763		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14765		fi
14766
14767		CFLAGS="$CFLAGS -Werror=array-bounds"
14768
14769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14770$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14771		cacheid=xorg_cv_cc_flag__Werror_array_bounds
14772		if eval \${$cacheid+:} false; then :
14773  $as_echo_n "(cached) " >&6
14774else
14775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776/* end confdefs.h.  */
14777int i;
14778int
14779main ()
14780{
14781
14782  ;
14783  return 0;
14784}
14785_ACEOF
14786if ac_fn_c_try_link "$LINENO"; then :
14787  eval $cacheid=yes
14788else
14789  eval $cacheid=no
14790fi
14791rm -f core conftest.err conftest.$ac_objext \
14792    conftest$ac_exeext conftest.$ac_ext
14793fi
14794
14795
14796		CFLAGS="$xorg_testset_save_CFLAGS"
14797
14798		eval supported=\$$cacheid
14799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14800$as_echo "$supported" >&6; }
14801		if test "$supported" = "yes" ; then
14802			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14803			found="yes"
14804		fi
14805	fi
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821xorg_testset_save_CFLAGS="$CFLAGS"
14822
14823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14828  $as_echo_n "(cached) " >&6
14829else
14830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h.  */
14832int i;
14833_ACEOF
14834if ac_fn_c_try_compile "$LINENO"; then :
14835  xorg_cv_cc_flag_unknown_warning_option=yes
14836else
14837  xorg_cv_cc_flag_unknown_warning_option=no
14838fi
14839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14844	CFLAGS="$xorg_testset_save_CFLAGS"
14845fi
14846
14847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14850	fi
14851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14855  $as_echo_n "(cached) " >&6
14856else
14857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858/* end confdefs.h.  */
14859int i;
14860_ACEOF
14861if ac_fn_c_try_compile "$LINENO"; then :
14862  xorg_cv_cc_flag_unused_command_line_argument=yes
14863else
14864  xorg_cv_cc_flag_unused_command_line_argument=no
14865fi
14866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867fi
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14871	CFLAGS="$xorg_testset_save_CFLAGS"
14872fi
14873
14874found="no"
14875
14876	if test $found = "no" ; then
14877		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14879		fi
14880
14881		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14883		fi
14884
14885		CFLAGS="$CFLAGS -Werror=write-strings"
14886
14887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14888$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14889		cacheid=xorg_cv_cc_flag__Werror_write_strings
14890		if eval \${$cacheid+:} false; then :
14891  $as_echo_n "(cached) " >&6
14892else
14893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894/* end confdefs.h.  */
14895int i;
14896int
14897main ()
14898{
14899
14900  ;
14901  return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_link "$LINENO"; then :
14905  eval $cacheid=yes
14906else
14907  eval $cacheid=no
14908fi
14909rm -f core conftest.err conftest.$ac_objext \
14910    conftest$ac_exeext conftest.$ac_ext
14911fi
14912
14913
14914		CFLAGS="$xorg_testset_save_CFLAGS"
14915
14916		eval supported=\$$cacheid
14917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14918$as_echo "$supported" >&6; }
14919		if test "$supported" = "yes" ; then
14920			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14921			found="yes"
14922		fi
14923	fi
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939xorg_testset_save_CFLAGS="$CFLAGS"
14940
14941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14946  $as_echo_n "(cached) " >&6
14947else
14948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949/* end confdefs.h.  */
14950int i;
14951_ACEOF
14952if ac_fn_c_try_compile "$LINENO"; then :
14953  xorg_cv_cc_flag_unknown_warning_option=yes
14954else
14955  xorg_cv_cc_flag_unknown_warning_option=no
14956fi
14957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958fi
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14962	CFLAGS="$xorg_testset_save_CFLAGS"
14963fi
14964
14965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14968	fi
14969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14973  $as_echo_n "(cached) " >&6
14974else
14975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h.  */
14977int i;
14978_ACEOF
14979if ac_fn_c_try_compile "$LINENO"; then :
14980  xorg_cv_cc_flag_unused_command_line_argument=yes
14981else
14982  xorg_cv_cc_flag_unused_command_line_argument=no
14983fi
14984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985fi
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14989	CFLAGS="$xorg_testset_save_CFLAGS"
14990fi
14991
14992found="no"
14993
14994	if test $found = "no" ; then
14995		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997		fi
14998
14999		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15001		fi
15002
15003		CFLAGS="$CFLAGS -Werror=address"
15004
15005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15006$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15007		cacheid=xorg_cv_cc_flag__Werror_address
15008		if eval \${$cacheid+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h.  */
15013int i;
15014int
15015main ()
15016{
15017
15018  ;
15019  return 0;
15020}
15021_ACEOF
15022if ac_fn_c_try_link "$LINENO"; then :
15023  eval $cacheid=yes
15024else
15025  eval $cacheid=no
15026fi
15027rm -f core conftest.err conftest.$ac_objext \
15028    conftest$ac_exeext conftest.$ac_ext
15029fi
15030
15031
15032		CFLAGS="$xorg_testset_save_CFLAGS"
15033
15034		eval supported=\$$cacheid
15035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15036$as_echo "$supported" >&6; }
15037		if test "$supported" = "yes" ; then
15038			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15039			found="yes"
15040		fi
15041	fi
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057xorg_testset_save_CFLAGS="$CFLAGS"
15058
15059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15064  $as_echo_n "(cached) " >&6
15065else
15066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067/* end confdefs.h.  */
15068int i;
15069_ACEOF
15070if ac_fn_c_try_compile "$LINENO"; then :
15071  xorg_cv_cc_flag_unknown_warning_option=yes
15072else
15073  xorg_cv_cc_flag_unknown_warning_option=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076fi
15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15080	CFLAGS="$xorg_testset_save_CFLAGS"
15081fi
15082
15083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15086	fi
15087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15091  $as_echo_n "(cached) " >&6
15092else
15093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094/* end confdefs.h.  */
15095int i;
15096_ACEOF
15097if ac_fn_c_try_compile "$LINENO"; then :
15098  xorg_cv_cc_flag_unused_command_line_argument=yes
15099else
15100  xorg_cv_cc_flag_unused_command_line_argument=no
15101fi
15102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103fi
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15107	CFLAGS="$xorg_testset_save_CFLAGS"
15108fi
15109
15110found="no"
15111
15112	if test $found = "no" ; then
15113		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115		fi
15116
15117		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15119		fi
15120
15121		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15122
15123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15124$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15125		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15126		if eval \${$cacheid+:} false; then :
15127  $as_echo_n "(cached) " >&6
15128else
15129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131int i;
15132int
15133main ()
15134{
15135
15136  ;
15137  return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_link "$LINENO"; then :
15141  eval $cacheid=yes
15142else
15143  eval $cacheid=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext \
15146    conftest$ac_exeext conftest.$ac_ext
15147fi
15148
15149
15150		CFLAGS="$xorg_testset_save_CFLAGS"
15151
15152		eval supported=\$$cacheid
15153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15154$as_echo "$supported" >&6; }
15155		if test "$supported" = "yes" ; then
15156			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15157			found="yes"
15158		fi
15159	fi
15160
15161	if test $found = "no" ; then
15162		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15164		fi
15165
15166		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15168		fi
15169
15170		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15171
15172		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15173$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15174		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15175		if eval \${$cacheid+:} false; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h.  */
15180int i;
15181int
15182main ()
15183{
15184
15185  ;
15186  return 0;
15187}
15188_ACEOF
15189if ac_fn_c_try_link "$LINENO"; then :
15190  eval $cacheid=yes
15191else
15192  eval $cacheid=no
15193fi
15194rm -f core conftest.err conftest.$ac_objext \
15195    conftest$ac_exeext conftest.$ac_ext
15196fi
15197
15198
15199		CFLAGS="$xorg_testset_save_CFLAGS"
15200
15201		eval supported=\$$cacheid
15202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15203$as_echo "$supported" >&6; }
15204		if test "$supported" = "yes" ; then
15205			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15206			found="yes"
15207		fi
15208	fi
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224xorg_testset_save_CFLAGS="$CFLAGS"
15225
15226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15231  $as_echo_n "(cached) " >&6
15232else
15233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235int i;
15236_ACEOF
15237if ac_fn_c_try_compile "$LINENO"; then :
15238  xorg_cv_cc_flag_unknown_warning_option=yes
15239else
15240  xorg_cv_cc_flag_unknown_warning_option=no
15241fi
15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243fi
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15247	CFLAGS="$xorg_testset_save_CFLAGS"
15248fi
15249
15250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15253	fi
15254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15258  $as_echo_n "(cached) " >&6
15259else
15260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261/* end confdefs.h.  */
15262int i;
15263_ACEOF
15264if ac_fn_c_try_compile "$LINENO"; then :
15265  xorg_cv_cc_flag_unused_command_line_argument=yes
15266else
15267  xorg_cv_cc_flag_unused_command_line_argument=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15270fi
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15274	CFLAGS="$xorg_testset_save_CFLAGS"
15275fi
15276
15277found="no"
15278
15279	if test $found = "no" ; then
15280		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15282		fi
15283
15284		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15286		fi
15287
15288		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15289
15290		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15291$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15292		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15293		if eval \${$cacheid+:} false; then :
15294  $as_echo_n "(cached) " >&6
15295else
15296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h.  */
15298int i;
15299int
15300main ()
15301{
15302
15303  ;
15304  return 0;
15305}
15306_ACEOF
15307if ac_fn_c_try_link "$LINENO"; then :
15308  eval $cacheid=yes
15309else
15310  eval $cacheid=no
15311fi
15312rm -f core conftest.err conftest.$ac_objext \
15313    conftest$ac_exeext conftest.$ac_ext
15314fi
15315
15316
15317		CFLAGS="$xorg_testset_save_CFLAGS"
15318
15319		eval supported=\$$cacheid
15320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15321$as_echo "$supported" >&6; }
15322		if test "$supported" = "yes" ; then
15323			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15324			found="yes"
15325		fi
15326	fi
15327
15328 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15329else
15330{ $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
15331$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;}
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345xorg_testset_save_CFLAGS="$CFLAGS"
15346
15347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15352  $as_echo_n "(cached) " >&6
15353else
15354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h.  */
15356int i;
15357_ACEOF
15358if ac_fn_c_try_compile "$LINENO"; then :
15359  xorg_cv_cc_flag_unknown_warning_option=yes
15360else
15361  xorg_cv_cc_flag_unknown_warning_option=no
15362fi
15363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364fi
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15368	CFLAGS="$xorg_testset_save_CFLAGS"
15369fi
15370
15371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15374	fi
15375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15378if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15387else
15388  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15395	CFLAGS="$xorg_testset_save_CFLAGS"
15396fi
15397
15398found="no"
15399
15400	if test $found = "no" ; then
15401		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15403		fi
15404
15405		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15407		fi
15408
15409		CFLAGS="$CFLAGS -Wimplicit"
15410
15411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15412$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15413		cacheid=xorg_cv_cc_flag__Wimplicit
15414		if eval \${$cacheid+:} false; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418/* end confdefs.h.  */
15419int i;
15420int
15421main ()
15422{
15423
15424  ;
15425  return 0;
15426}
15427_ACEOF
15428if ac_fn_c_try_link "$LINENO"; then :
15429  eval $cacheid=yes
15430else
15431  eval $cacheid=no
15432fi
15433rm -f core conftest.err conftest.$ac_objext \
15434    conftest$ac_exeext conftest.$ac_ext
15435fi
15436
15437
15438		CFLAGS="$xorg_testset_save_CFLAGS"
15439
15440		eval supported=\$$cacheid
15441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15442$as_echo "$supported" >&6; }
15443		if test "$supported" = "yes" ; then
15444			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15445			found="yes"
15446		fi
15447	fi
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463xorg_testset_save_CFLAGS="$CFLAGS"
15464
15465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15466	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15470  $as_echo_n "(cached) " >&6
15471else
15472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473/* end confdefs.h.  */
15474int i;
15475_ACEOF
15476if ac_fn_c_try_compile "$LINENO"; then :
15477  xorg_cv_cc_flag_unknown_warning_option=yes
15478else
15479  xorg_cv_cc_flag_unknown_warning_option=no
15480fi
15481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482fi
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15486	CFLAGS="$xorg_testset_save_CFLAGS"
15487fi
15488
15489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492	fi
15493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15496if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15505else
15506  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15513	CFLAGS="$xorg_testset_save_CFLAGS"
15514fi
15515
15516found="no"
15517
15518	if test $found = "no" ; then
15519		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15521		fi
15522
15523		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15525		fi
15526
15527		CFLAGS="$CFLAGS -Wnonnull"
15528
15529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15530$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15531		cacheid=xorg_cv_cc_flag__Wnonnull
15532		if eval \${$cacheid+:} false; then :
15533  $as_echo_n "(cached) " >&6
15534else
15535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536/* end confdefs.h.  */
15537int i;
15538int
15539main ()
15540{
15541
15542  ;
15543  return 0;
15544}
15545_ACEOF
15546if ac_fn_c_try_link "$LINENO"; then :
15547  eval $cacheid=yes
15548else
15549  eval $cacheid=no
15550fi
15551rm -f core conftest.err conftest.$ac_objext \
15552    conftest$ac_exeext conftest.$ac_ext
15553fi
15554
15555
15556		CFLAGS="$xorg_testset_save_CFLAGS"
15557
15558		eval supported=\$$cacheid
15559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15560$as_echo "$supported" >&6; }
15561		if test "$supported" = "yes" ; then
15562			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15563			found="yes"
15564		fi
15565	fi
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581xorg_testset_save_CFLAGS="$CFLAGS"
15582
15583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15588  $as_echo_n "(cached) " >&6
15589else
15590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591/* end confdefs.h.  */
15592int i;
15593_ACEOF
15594if ac_fn_c_try_compile "$LINENO"; then :
15595  xorg_cv_cc_flag_unknown_warning_option=yes
15596else
15597  xorg_cv_cc_flag_unknown_warning_option=no
15598fi
15599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600fi
15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15604	CFLAGS="$xorg_testset_save_CFLAGS"
15605fi
15606
15607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610	fi
15611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15614if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15623else
15624  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15631	CFLAGS="$xorg_testset_save_CFLAGS"
15632fi
15633
15634found="no"
15635
15636	if test $found = "no" ; then
15637		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15639		fi
15640
15641		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643		fi
15644
15645		CFLAGS="$CFLAGS -Winit-self"
15646
15647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15648$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15649		cacheid=xorg_cv_cc_flag__Winit_self
15650		if eval \${$cacheid+:} false; then :
15651  $as_echo_n "(cached) " >&6
15652else
15653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654/* end confdefs.h.  */
15655int i;
15656int
15657main ()
15658{
15659
15660  ;
15661  return 0;
15662}
15663_ACEOF
15664if ac_fn_c_try_link "$LINENO"; then :
15665  eval $cacheid=yes
15666else
15667  eval $cacheid=no
15668fi
15669rm -f core conftest.err conftest.$ac_objext \
15670    conftest$ac_exeext conftest.$ac_ext
15671fi
15672
15673
15674		CFLAGS="$xorg_testset_save_CFLAGS"
15675
15676		eval supported=\$$cacheid
15677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15678$as_echo "$supported" >&6; }
15679		if test "$supported" = "yes" ; then
15680			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15681			found="yes"
15682		fi
15683	fi
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699xorg_testset_save_CFLAGS="$CFLAGS"
15700
15701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15706  $as_echo_n "(cached) " >&6
15707else
15708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709/* end confdefs.h.  */
15710int i;
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"; then :
15713  xorg_cv_cc_flag_unknown_warning_option=yes
15714else
15715  xorg_cv_cc_flag_unknown_warning_option=no
15716fi
15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718fi
15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722	CFLAGS="$xorg_testset_save_CFLAGS"
15723fi
15724
15725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728	fi
15729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15732if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15741else
15742  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15749	CFLAGS="$xorg_testset_save_CFLAGS"
15750fi
15751
15752found="no"
15753
15754	if test $found = "no" ; then
15755		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757		fi
15758
15759		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761		fi
15762
15763		CFLAGS="$CFLAGS -Wmain"
15764
15765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15766$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15767		cacheid=xorg_cv_cc_flag__Wmain
15768		if eval \${$cacheid+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h.  */
15773int i;
15774int
15775main ()
15776{
15777
15778  ;
15779  return 0;
15780}
15781_ACEOF
15782if ac_fn_c_try_link "$LINENO"; then :
15783  eval $cacheid=yes
15784else
15785  eval $cacheid=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext \
15788    conftest$ac_exeext conftest.$ac_ext
15789fi
15790
15791
15792		CFLAGS="$xorg_testset_save_CFLAGS"
15793
15794		eval supported=\$$cacheid
15795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796$as_echo "$supported" >&6; }
15797		if test "$supported" = "yes" ; then
15798			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15799			found="yes"
15800		fi
15801	fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817xorg_testset_save_CFLAGS="$CFLAGS"
15818
15819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15824  $as_echo_n "(cached) " >&6
15825else
15826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h.  */
15828int i;
15829_ACEOF
15830if ac_fn_c_try_compile "$LINENO"; then :
15831  xorg_cv_cc_flag_unknown_warning_option=yes
15832else
15833  xorg_cv_cc_flag_unknown_warning_option=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15840	CFLAGS="$xorg_testset_save_CFLAGS"
15841fi
15842
15843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	fi
15847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15850if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15859else
15860  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870found="no"
15871
15872	if test $found = "no" ; then
15873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875		fi
15876
15877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15879		fi
15880
15881		CFLAGS="$CFLAGS -Wmissing-braces"
15882
15883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15884$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15885		cacheid=xorg_cv_cc_flag__Wmissing_braces
15886		if eval \${$cacheid+:} false; then :
15887  $as_echo_n "(cached) " >&6
15888else
15889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890/* end confdefs.h.  */
15891int i;
15892int
15893main ()
15894{
15895
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_link "$LINENO"; then :
15901  eval $cacheid=yes
15902else
15903  eval $cacheid=no
15904fi
15905rm -f core conftest.err conftest.$ac_objext \
15906    conftest$ac_exeext conftest.$ac_ext
15907fi
15908
15909
15910		CFLAGS="$xorg_testset_save_CFLAGS"
15911
15912		eval supported=\$$cacheid
15913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15914$as_echo "$supported" >&6; }
15915		if test "$supported" = "yes" ; then
15916			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15917			found="yes"
15918		fi
15919	fi
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935xorg_testset_save_CFLAGS="$CFLAGS"
15936
15937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15942  $as_echo_n "(cached) " >&6
15943else
15944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946int i;
15947_ACEOF
15948if ac_fn_c_try_compile "$LINENO"; then :
15949  xorg_cv_cc_flag_unknown_warning_option=yes
15950else
15951  xorg_cv_cc_flag_unknown_warning_option=no
15952fi
15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958	CFLAGS="$xorg_testset_save_CFLAGS"
15959fi
15960
15961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964	fi
15965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15969  $as_echo_n "(cached) " >&6
15970else
15971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"; then :
15976  xorg_cv_cc_flag_unused_command_line_argument=yes
15977else
15978  xorg_cv_cc_flag_unused_command_line_argument=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981fi
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15985	CFLAGS="$xorg_testset_save_CFLAGS"
15986fi
15987
15988found="no"
15989
15990	if test $found = "no" ; then
15991		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993		fi
15994
15995		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15997		fi
15998
15999		CFLAGS="$CFLAGS -Wsequence-point"
16000
16001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16002$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16003		cacheid=xorg_cv_cc_flag__Wsequence_point
16004		if eval \${$cacheid+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010int
16011main ()
16012{
16013
16014  ;
16015  return 0;
16016}
16017_ACEOF
16018if ac_fn_c_try_link "$LINENO"; then :
16019  eval $cacheid=yes
16020else
16021  eval $cacheid=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext \
16024    conftest$ac_exeext conftest.$ac_ext
16025fi
16026
16027
16028		CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030		eval supported=\$$cacheid
16031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032$as_echo "$supported" >&6; }
16033		if test "$supported" = "yes" ; then
16034			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16035			found="yes"
16036		fi
16037	fi
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053xorg_testset_save_CFLAGS="$CFLAGS"
16054
16055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16060  $as_echo_n "(cached) " >&6
16061else
16062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063/* end confdefs.h.  */
16064int i;
16065_ACEOF
16066if ac_fn_c_try_compile "$LINENO"; then :
16067  xorg_cv_cc_flag_unknown_warning_option=yes
16068else
16069  xorg_cv_cc_flag_unknown_warning_option=no
16070fi
16071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16076	CFLAGS="$xorg_testset_save_CFLAGS"
16077fi
16078
16079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082	fi
16083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16087  $as_echo_n "(cached) " >&6
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092_ACEOF
16093if ac_fn_c_try_compile "$LINENO"; then :
16094  xorg_cv_cc_flag_unused_command_line_argument=yes
16095else
16096  xorg_cv_cc_flag_unused_command_line_argument=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099fi
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16103	CFLAGS="$xorg_testset_save_CFLAGS"
16104fi
16105
16106found="no"
16107
16108	if test $found = "no" ; then
16109		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111		fi
16112
16113		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16115		fi
16116
16117		CFLAGS="$CFLAGS -Wreturn-type"
16118
16119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16120$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16121		cacheid=xorg_cv_cc_flag__Wreturn_type
16122		if eval \${$cacheid+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128int
16129main ()
16130{
16131
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"; then :
16137  eval $cacheid=yes
16138else
16139  eval $cacheid=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext \
16142    conftest$ac_exeext conftest.$ac_ext
16143fi
16144
16145
16146		CFLAGS="$xorg_testset_save_CFLAGS"
16147
16148		eval supported=\$$cacheid
16149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16150$as_echo "$supported" >&6; }
16151		if test "$supported" = "yes" ; then
16152			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16153			found="yes"
16154		fi
16155	fi
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171xorg_testset_save_CFLAGS="$CFLAGS"
16172
16173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"; then :
16185  xorg_cv_cc_flag_unknown_warning_option=yes
16186else
16187  xorg_cv_cc_flag_unknown_warning_option=no
16188fi
16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16194	CFLAGS="$xorg_testset_save_CFLAGS"
16195fi
16196
16197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200	fi
16201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208/* end confdefs.h.  */
16209int i;
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212  xorg_cv_cc_flag_unused_command_line_argument=yes
16213else
16214  xorg_cv_cc_flag_unused_command_line_argument=no
16215fi
16216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16221	CFLAGS="$xorg_testset_save_CFLAGS"
16222fi
16223
16224found="no"
16225
16226	if test $found = "no" ; then
16227		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229		fi
16230
16231		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16233		fi
16234
16235		CFLAGS="$CFLAGS -Wtrigraphs"
16236
16237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16238$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16239		cacheid=xorg_cv_cc_flag__Wtrigraphs
16240		if eval \${$cacheid+:} false; then :
16241  $as_echo_n "(cached) " >&6
16242else
16243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245int i;
16246int
16247main ()
16248{
16249
16250  ;
16251  return 0;
16252}
16253_ACEOF
16254if ac_fn_c_try_link "$LINENO"; then :
16255  eval $cacheid=yes
16256else
16257  eval $cacheid=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext \
16260    conftest$ac_exeext conftest.$ac_ext
16261fi
16262
16263
16264		CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266		eval supported=\$$cacheid
16267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268$as_echo "$supported" >&6; }
16269		if test "$supported" = "yes" ; then
16270			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16271			found="yes"
16272		fi
16273	fi
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289xorg_testset_save_CFLAGS="$CFLAGS"
16290
16291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16296  $as_echo_n "(cached) " >&6
16297else
16298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300int i;
16301_ACEOF
16302if ac_fn_c_try_compile "$LINENO"; then :
16303  xorg_cv_cc_flag_unknown_warning_option=yes
16304else
16305  xorg_cv_cc_flag_unknown_warning_option=no
16306fi
16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308fi
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16312	CFLAGS="$xorg_testset_save_CFLAGS"
16313fi
16314
16315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318	fi
16319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16323  $as_echo_n "(cached) " >&6
16324else
16325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327int i;
16328_ACEOF
16329if ac_fn_c_try_compile "$LINENO"; then :
16330  xorg_cv_cc_flag_unused_command_line_argument=yes
16331else
16332  xorg_cv_cc_flag_unused_command_line_argument=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335fi
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16339	CFLAGS="$xorg_testset_save_CFLAGS"
16340fi
16341
16342found="no"
16343
16344	if test $found = "no" ; then
16345		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16347		fi
16348
16349		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16351		fi
16352
16353		CFLAGS="$CFLAGS -Warray-bounds"
16354
16355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16356$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16357		cacheid=xorg_cv_cc_flag__Warray_bounds
16358		if eval \${$cacheid+:} false; then :
16359  $as_echo_n "(cached) " >&6
16360else
16361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362/* end confdefs.h.  */
16363int i;
16364int
16365main ()
16366{
16367
16368  ;
16369  return 0;
16370}
16371_ACEOF
16372if ac_fn_c_try_link "$LINENO"; then :
16373  eval $cacheid=yes
16374else
16375  eval $cacheid=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext \
16378    conftest$ac_exeext conftest.$ac_ext
16379fi
16380
16381
16382		CFLAGS="$xorg_testset_save_CFLAGS"
16383
16384		eval supported=\$$cacheid
16385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16386$as_echo "$supported" >&6; }
16387		if test "$supported" = "yes" ; then
16388			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16389			found="yes"
16390		fi
16391	fi
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407xorg_testset_save_CFLAGS="$CFLAGS"
16408
16409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h.  */
16418int i;
16419_ACEOF
16420if ac_fn_c_try_compile "$LINENO"; then :
16421  xorg_cv_cc_flag_unknown_warning_option=yes
16422else
16423  xorg_cv_cc_flag_unknown_warning_option=no
16424fi
16425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426fi
16427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16430	CFLAGS="$xorg_testset_save_CFLAGS"
16431fi
16432
16433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16436	fi
16437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16441  $as_echo_n "(cached) " >&6
16442else
16443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444/* end confdefs.h.  */
16445int i;
16446_ACEOF
16447if ac_fn_c_try_compile "$LINENO"; then :
16448  xorg_cv_cc_flag_unused_command_line_argument=yes
16449else
16450  xorg_cv_cc_flag_unused_command_line_argument=no
16451fi
16452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453fi
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16457	CFLAGS="$xorg_testset_save_CFLAGS"
16458fi
16459
16460found="no"
16461
16462	if test $found = "no" ; then
16463		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16465		fi
16466
16467		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16469		fi
16470
16471		CFLAGS="$CFLAGS -Wwrite-strings"
16472
16473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16474$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16475		cacheid=xorg_cv_cc_flag__Wwrite_strings
16476		if eval \${$cacheid+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481int i;
16482int
16483main ()
16484{
16485
16486  ;
16487  return 0;
16488}
16489_ACEOF
16490if ac_fn_c_try_link "$LINENO"; then :
16491  eval $cacheid=yes
16492else
16493  eval $cacheid=no
16494fi
16495rm -f core conftest.err conftest.$ac_objext \
16496    conftest$ac_exeext conftest.$ac_ext
16497fi
16498
16499
16500		CFLAGS="$xorg_testset_save_CFLAGS"
16501
16502		eval supported=\$$cacheid
16503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16504$as_echo "$supported" >&6; }
16505		if test "$supported" = "yes" ; then
16506			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16507			found="yes"
16508		fi
16509	fi
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525xorg_testset_save_CFLAGS="$CFLAGS"
16526
16527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16532  $as_echo_n "(cached) " >&6
16533else
16534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535/* end confdefs.h.  */
16536int i;
16537_ACEOF
16538if ac_fn_c_try_compile "$LINENO"; then :
16539  xorg_cv_cc_flag_unknown_warning_option=yes
16540else
16541  xorg_cv_cc_flag_unknown_warning_option=no
16542fi
16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544fi
16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16548	CFLAGS="$xorg_testset_save_CFLAGS"
16549fi
16550
16551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16554	fi
16555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16559  $as_echo_n "(cached) " >&6
16560else
16561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h.  */
16563int i;
16564_ACEOF
16565if ac_fn_c_try_compile "$LINENO"; then :
16566  xorg_cv_cc_flag_unused_command_line_argument=yes
16567else
16568  xorg_cv_cc_flag_unused_command_line_argument=no
16569fi
16570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571fi
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16575	CFLAGS="$xorg_testset_save_CFLAGS"
16576fi
16577
16578found="no"
16579
16580	if test $found = "no" ; then
16581		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583		fi
16584
16585		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16587		fi
16588
16589		CFLAGS="$CFLAGS -Waddress"
16590
16591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16592$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16593		cacheid=xorg_cv_cc_flag__Waddress
16594		if eval \${$cacheid+:} false; then :
16595  $as_echo_n "(cached) " >&6
16596else
16597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h.  */
16599int i;
16600int
16601main ()
16602{
16603
16604  ;
16605  return 0;
16606}
16607_ACEOF
16608if ac_fn_c_try_link "$LINENO"; then :
16609  eval $cacheid=yes
16610else
16611  eval $cacheid=no
16612fi
16613rm -f core conftest.err conftest.$ac_objext \
16614    conftest$ac_exeext conftest.$ac_ext
16615fi
16616
16617
16618		CFLAGS="$xorg_testset_save_CFLAGS"
16619
16620		eval supported=\$$cacheid
16621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16622$as_echo "$supported" >&6; }
16623		if test "$supported" = "yes" ; then
16624			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16625			found="yes"
16626		fi
16627	fi
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643xorg_testset_save_CFLAGS="$CFLAGS"
16644
16645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16650  $as_echo_n "(cached) " >&6
16651else
16652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653/* end confdefs.h.  */
16654int i;
16655_ACEOF
16656if ac_fn_c_try_compile "$LINENO"; then :
16657  xorg_cv_cc_flag_unknown_warning_option=yes
16658else
16659  xorg_cv_cc_flag_unknown_warning_option=no
16660fi
16661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662fi
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16666	CFLAGS="$xorg_testset_save_CFLAGS"
16667fi
16668
16669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16672	fi
16673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h.  */
16681int i;
16682_ACEOF
16683if ac_fn_c_try_compile "$LINENO"; then :
16684  xorg_cv_cc_flag_unused_command_line_argument=yes
16685else
16686  xorg_cv_cc_flag_unused_command_line_argument=no
16687fi
16688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689fi
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16693	CFLAGS="$xorg_testset_save_CFLAGS"
16694fi
16695
16696found="no"
16697
16698	if test $found = "no" ; then
16699		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701		fi
16702
16703		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16705		fi
16706
16707		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16708
16709		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16710$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16711		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16712		if eval \${$cacheid+:} false; then :
16713  $as_echo_n "(cached) " >&6
16714else
16715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716/* end confdefs.h.  */
16717int i;
16718int
16719main ()
16720{
16721
16722  ;
16723  return 0;
16724}
16725_ACEOF
16726if ac_fn_c_try_link "$LINENO"; then :
16727  eval $cacheid=yes
16728else
16729  eval $cacheid=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext \
16732    conftest$ac_exeext conftest.$ac_ext
16733fi
16734
16735
16736		CFLAGS="$xorg_testset_save_CFLAGS"
16737
16738		eval supported=\$$cacheid
16739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16740$as_echo "$supported" >&6; }
16741		if test "$supported" = "yes" ; then
16742			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16743			found="yes"
16744		fi
16745	fi
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761xorg_testset_save_CFLAGS="$CFLAGS"
16762
16763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16768  $as_echo_n "(cached) " >&6
16769else
16770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771/* end confdefs.h.  */
16772int i;
16773_ACEOF
16774if ac_fn_c_try_compile "$LINENO"; then :
16775  xorg_cv_cc_flag_unknown_warning_option=yes
16776else
16777  xorg_cv_cc_flag_unknown_warning_option=no
16778fi
16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780fi
16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16784	CFLAGS="$xorg_testset_save_CFLAGS"
16785fi
16786
16787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16790	fi
16791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16795  $as_echo_n "(cached) " >&6
16796else
16797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800_ACEOF
16801if ac_fn_c_try_compile "$LINENO"; then :
16802  xorg_cv_cc_flag_unused_command_line_argument=yes
16803else
16804  xorg_cv_cc_flag_unused_command_line_argument=no
16805fi
16806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807fi
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16811	CFLAGS="$xorg_testset_save_CFLAGS"
16812fi
16813
16814found="no"
16815
16816	if test $found = "no" ; then
16817		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16819		fi
16820
16821		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16823		fi
16824
16825		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16826
16827		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16828$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16829		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16830		if eval \${$cacheid+:} false; then :
16831  $as_echo_n "(cached) " >&6
16832else
16833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834/* end confdefs.h.  */
16835int i;
16836int
16837main ()
16838{
16839
16840  ;
16841  return 0;
16842}
16843_ACEOF
16844if ac_fn_c_try_link "$LINENO"; then :
16845  eval $cacheid=yes
16846else
16847  eval $cacheid=no
16848fi
16849rm -f core conftest.err conftest.$ac_objext \
16850    conftest$ac_exeext conftest.$ac_ext
16851fi
16852
16853
16854		CFLAGS="$xorg_testset_save_CFLAGS"
16855
16856		eval supported=\$$cacheid
16857		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16858$as_echo "$supported" >&6; }
16859		if test "$supported" = "yes" ; then
16860			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16861			found="yes"
16862		fi
16863	fi
16864
16865
16866fi
16867
16868
16869
16870
16871# Check for dependencies
16872
16873
16874
16875
16876
16877
16878
16879if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16880	if test -n "$ac_tool_prefix"; then
16881  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16882set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884$as_echo_n "checking for $ac_word... " >&6; }
16885if ${ac_cv_path_PKG_CONFIG+:} false; then :
16886  $as_echo_n "(cached) " >&6
16887else
16888  case $PKG_CONFIG in
16889  [\\/]* | ?:[\\/]*)
16890  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16891  ;;
16892  *)
16893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16894for as_dir in $PATH
16895do
16896  IFS=$as_save_IFS
16897  test -z "$as_dir" && as_dir=.
16898    for ac_exec_ext in '' $ac_executable_extensions; do
16899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16900    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16902    break 2
16903  fi
16904done
16905  done
16906IFS=$as_save_IFS
16907
16908  ;;
16909esac
16910fi
16911PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16912if test -n "$PKG_CONFIG"; then
16913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16914$as_echo "$PKG_CONFIG" >&6; }
16915else
16916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917$as_echo "no" >&6; }
16918fi
16919
16920
16921fi
16922if test -z "$ac_cv_path_PKG_CONFIG"; then
16923  ac_pt_PKG_CONFIG=$PKG_CONFIG
16924  # Extract the first word of "pkg-config", so it can be a program name with args.
16925set dummy pkg-config; ac_word=$2
16926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16927$as_echo_n "checking for $ac_word... " >&6; }
16928if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16929  $as_echo_n "(cached) " >&6
16930else
16931  case $ac_pt_PKG_CONFIG in
16932  [\\/]* | ?:[\\/]*)
16933  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16934  ;;
16935  *)
16936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937for as_dir in $PATH
16938do
16939  IFS=$as_save_IFS
16940  test -z "$as_dir" && as_dir=.
16941    for ac_exec_ext in '' $ac_executable_extensions; do
16942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945    break 2
16946  fi
16947done
16948  done
16949IFS=$as_save_IFS
16950
16951  ;;
16952esac
16953fi
16954ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16955if test -n "$ac_pt_PKG_CONFIG"; then
16956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16957$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16958else
16959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16960$as_echo "no" >&6; }
16961fi
16962
16963  if test "x$ac_pt_PKG_CONFIG" = x; then
16964    PKG_CONFIG=""
16965  else
16966    case $cross_compiling:$ac_tool_warned in
16967yes:)
16968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16970ac_tool_warned=yes ;;
16971esac
16972    PKG_CONFIG=$ac_pt_PKG_CONFIG
16973  fi
16974else
16975  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16976fi
16977
16978fi
16979if test -n "$PKG_CONFIG"; then
16980	_pkg_min_version=0.9.0
16981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16982$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16983	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16985$as_echo "yes" >&6; }
16986	else
16987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988$as_echo "no" >&6; }
16989		PKG_CONFIG=""
16990	fi
16991fi
16992
16993pkg_failed=no
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRAP" >&5
16995$as_echo_n "checking for XTRAP... " >&6; }
16996
16997if test -n "$XTRAP_CFLAGS"; then
16998    pkg_cv_XTRAP_CFLAGS="$XTRAP_CFLAGS"
16999 elif test -n "$PKG_CONFIG"; then
17000    if test -n "$PKG_CONFIG" && \
17001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\""; } >&5
17002  ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5
17003  ac_status=$?
17004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17005  test $ac_status = 0; }; then
17006  pkg_cv_XTRAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xt trapproto xext xextproto" 2>/dev/null`
17007		      test "x$?" != "x0" && pkg_failed=yes
17008else
17009  pkg_failed=yes
17010fi
17011 else
17012    pkg_failed=untried
17013fi
17014if test -n "$XTRAP_LIBS"; then
17015    pkg_cv_XTRAP_LIBS="$XTRAP_LIBS"
17016 elif test -n "$PKG_CONFIG"; then
17017    if test -n "$PKG_CONFIG" && \
17018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\""; } >&5
17019  ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5
17020  ac_status=$?
17021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17022  test $ac_status = 0; }; then
17023  pkg_cv_XTRAP_LIBS=`$PKG_CONFIG --libs "x11 xt trapproto xext xextproto" 2>/dev/null`
17024		      test "x$?" != "x0" && pkg_failed=yes
17025else
17026  pkg_failed=yes
17027fi
17028 else
17029    pkg_failed=untried
17030fi
17031
17032
17033
17034if test $pkg_failed = yes; then
17035   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036$as_echo "no" >&6; }
17037
17038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17039        _pkg_short_errors_supported=yes
17040else
17041        _pkg_short_errors_supported=no
17042fi
17043        if test $_pkg_short_errors_supported = yes; then
17044	        XTRAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt trapproto xext xextproto" 2>&1`
17045        else
17046	        XTRAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt trapproto xext xextproto" 2>&1`
17047        fi
17048	# Put the nasty error message in config.log where it belongs
17049	echo "$XTRAP_PKG_ERRORS" >&5
17050
17051	as_fn_error $? "Package requirements (x11 xt trapproto xext xextproto) were not met:
17052
17053$XTRAP_PKG_ERRORS
17054
17055Consider adjusting the PKG_CONFIG_PATH environment variable if you
17056installed software in a non-standard prefix.
17057
17058Alternatively, you may set the environment variables XTRAP_CFLAGS
17059and XTRAP_LIBS to avoid the need to call pkg-config.
17060See the pkg-config man page for more details." "$LINENO" 5
17061elif test $pkg_failed = untried; then
17062     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063$as_echo "no" >&6; }
17064	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17066as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17067is in your PATH or set the PKG_CONFIG environment variable to the full
17068path to pkg-config.
17069
17070Alternatively, you may set the environment variables XTRAP_CFLAGS
17071and XTRAP_LIBS to avoid the need to call pkg-config.
17072See the pkg-config man page for more details.
17073
17074To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17075See \`config.log' for more details" "$LINENO" 5; }
17076else
17077	XTRAP_CFLAGS=$pkg_cv_XTRAP_CFLAGS
17078	XTRAP_LIBS=$pkg_cv_XTRAP_LIBS
17079        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080$as_echo "yes" >&6; }
17081
17082fi
17083XTRAP_CFLAGS="$BASE_CFLAGS $XTRAP_CFLAGS"
17084
17085
17086
17087
17088
17089cat >>confdefs.h <<_ACEOF
17090#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17091_ACEOF
17092
17093	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17094	if test "x$PVM" = "x"; then
17095		PVM="0"
17096	fi
17097
17098cat >>confdefs.h <<_ACEOF
17099#define PACKAGE_VERSION_MINOR $PVM
17100_ACEOF
17101
17102	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17103	if test "x$PVP" = "x"; then
17104		PVP="0"
17105	fi
17106
17107cat >>confdefs.h <<_ACEOF
17108#define PACKAGE_VERSION_PATCHLEVEL $PVP
17109_ACEOF
17110
17111
17112
17113CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17114mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17115|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17116echo 'git directory not found: installing possibly empty changelog.' >&2)"
17117
17118
17119
17120ac_config_files="$ac_config_files Makefile src/Makefile xtrap.pc"
17121
17122cat >confcache <<\_ACEOF
17123# This file is a shell script that caches the results of configure
17124# tests run on this system so they can be shared between configure
17125# scripts and configure runs, see configure's option --config-cache.
17126# It is not useful on other systems.  If it contains results you don't
17127# want to keep, you may remove or edit it.
17128#
17129# config.status only pays attention to the cache file if you give it
17130# the --recheck option to rerun configure.
17131#
17132# `ac_cv_env_foo' variables (set or unset) will be overridden when
17133# loading this file, other *unset* `ac_cv_foo' will be assigned the
17134# following values.
17135
17136_ACEOF
17137
17138# The following way of writing the cache mishandles newlines in values,
17139# but we know of no workaround that is simple, portable, and efficient.
17140# So, we kill variables containing newlines.
17141# Ultrix sh set writes to stderr and can't be redirected directly,
17142# and sets the high bit in the cache file unless we assign to the vars.
17143(
17144  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17145    eval ac_val=\$$ac_var
17146    case $ac_val in #(
17147    *${as_nl}*)
17148      case $ac_var in #(
17149      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17150$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17151      esac
17152      case $ac_var in #(
17153      _ | IFS | as_nl) ;; #(
17154      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17155      *) { eval $ac_var=; unset $ac_var;} ;;
17156      esac ;;
17157    esac
17158  done
17159
17160  (set) 2>&1 |
17161    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17162    *${as_nl}ac_space=\ *)
17163      # `set' does not quote correctly, so add quotes: double-quote
17164      # substitution turns \\\\ into \\, and sed turns \\ into \.
17165      sed -n \
17166	"s/'/'\\\\''/g;
17167	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17168      ;; #(
17169    *)
17170      # `set' quotes correctly as required by POSIX, so do not add quotes.
17171      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17172      ;;
17173    esac |
17174    sort
17175) |
17176  sed '
17177     /^ac_cv_env_/b end
17178     t clear
17179     :clear
17180     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17181     t end
17182     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17183     :end' >>confcache
17184if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17185  if test -w "$cache_file"; then
17186    if test "x$cache_file" != "x/dev/null"; then
17187      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17188$as_echo "$as_me: updating cache $cache_file" >&6;}
17189      if test ! -f "$cache_file" || test -h "$cache_file"; then
17190	cat confcache >"$cache_file"
17191      else
17192        case $cache_file in #(
17193        */* | ?:*)
17194	  mv -f confcache "$cache_file"$$ &&
17195	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17196        *)
17197	  mv -f confcache "$cache_file" ;;
17198	esac
17199      fi
17200    fi
17201  else
17202    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17203$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17204  fi
17205fi
17206rm -f confcache
17207
17208test "x$prefix" = xNONE && prefix=$ac_default_prefix
17209# Let make expand exec_prefix.
17210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17211
17212DEFS=-DHAVE_CONFIG_H
17213
17214ac_libobjs=
17215ac_ltlibobjs=
17216U=
17217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17218  # 1. Remove the extension, and $U if already installed.
17219  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17220  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17221  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17222  #    will be set to the directory where LIBOBJS objects are built.
17223  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17224  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17225done
17226LIBOBJS=$ac_libobjs
17227
17228LTLIBOBJS=$ac_ltlibobjs
17229
17230
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17232$as_echo_n "checking that generated files are newer than configure... " >&6; }
17233   if test -n "$am_sleep_pid"; then
17234     # Hide warnings about reused PIDs.
17235     wait $am_sleep_pid 2>/dev/null
17236   fi
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17238$as_echo "done" >&6; }
17239 if test -n "$EXEEXT"; then
17240  am__EXEEXT_TRUE=
17241  am__EXEEXT_FALSE='#'
17242else
17243  am__EXEEXT_TRUE='#'
17244  am__EXEEXT_FALSE=
17245fi
17246
17247if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17248  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17249Usually this means the macro was only invoked conditionally." "$LINENO" 5
17250fi
17251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17252  as_fn_error $? "conditional \"AMDEP\" was never defined.
17253Usually this means the macro was only invoked conditionally." "$LINENO" 5
17254fi
17255if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17256  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17257Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258fi
17259
17260: "${CONFIG_STATUS=./config.status}"
17261ac_write_fail=0
17262ac_clean_files_save=$ac_clean_files
17263ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17265$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17266as_write_fail=0
17267cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17268#! $SHELL
17269# Generated by $as_me.
17270# Run this file to recreate the current configuration.
17271# Compiler output produced by configure, useful for debugging
17272# configure, is in config.log if it exists.
17273
17274debug=false
17275ac_cs_recheck=false
17276ac_cs_silent=false
17277
17278SHELL=\${CONFIG_SHELL-$SHELL}
17279export SHELL
17280_ASEOF
17281cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17282## -------------------- ##
17283## M4sh Initialization. ##
17284## -------------------- ##
17285
17286# Be more Bourne compatible
17287DUALCASE=1; export DUALCASE # for MKS sh
17288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17289  emulate sh
17290  NULLCMD=:
17291  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17292  # is contrary to our usage.  Disable this feature.
17293  alias -g '${1+"$@"}'='"$@"'
17294  setopt NO_GLOB_SUBST
17295else
17296  case `(set -o) 2>/dev/null` in #(
17297  *posix*) :
17298    set -o posix ;; #(
17299  *) :
17300     ;;
17301esac
17302fi
17303
17304
17305as_nl='
17306'
17307export as_nl
17308# Printing a long string crashes Solaris 7 /usr/bin/printf.
17309as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17311as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17312# Prefer a ksh shell builtin over an external printf program on Solaris,
17313# but without wasting forks for bash or zsh.
17314if test -z "$BASH_VERSION$ZSH_VERSION" \
17315    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17316  as_echo='print -r --'
17317  as_echo_n='print -rn --'
17318elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17319  as_echo='printf %s\n'
17320  as_echo_n='printf %s'
17321else
17322  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17323    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17324    as_echo_n='/usr/ucb/echo -n'
17325  else
17326    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17327    as_echo_n_body='eval
17328      arg=$1;
17329      case $arg in #(
17330      *"$as_nl"*)
17331	expr "X$arg" : "X\\(.*\\)$as_nl";
17332	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17333      esac;
17334      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17335    '
17336    export as_echo_n_body
17337    as_echo_n='sh -c $as_echo_n_body as_echo'
17338  fi
17339  export as_echo_body
17340  as_echo='sh -c $as_echo_body as_echo'
17341fi
17342
17343# The user is always right.
17344if test "${PATH_SEPARATOR+set}" != set; then
17345  PATH_SEPARATOR=:
17346  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17347    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17348      PATH_SEPARATOR=';'
17349  }
17350fi
17351
17352
17353# IFS
17354# We need space, tab and new line, in precisely that order.  Quoting is
17355# there to prevent editors from complaining about space-tab.
17356# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17357# splitting by setting IFS to empty value.)
17358IFS=" ""	$as_nl"
17359
17360# Find who we are.  Look in the path if we contain no directory separator.
17361as_myself=
17362case $0 in #((
17363  *[\\/]* ) as_myself=$0 ;;
17364  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17365for as_dir in $PATH
17366do
17367  IFS=$as_save_IFS
17368  test -z "$as_dir" && as_dir=.
17369    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17370  done
17371IFS=$as_save_IFS
17372
17373     ;;
17374esac
17375# We did not find ourselves, most probably we were run as `sh COMMAND'
17376# in which case we are not to be found in the path.
17377if test "x$as_myself" = x; then
17378  as_myself=$0
17379fi
17380if test ! -f "$as_myself"; then
17381  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17382  exit 1
17383fi
17384
17385# Unset variables that we do not need and which cause bugs (e.g. in
17386# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17387# suppresses any "Segmentation fault" message there.  '((' could
17388# trigger a bug in pdksh 5.2.14.
17389for as_var in BASH_ENV ENV MAIL MAILPATH
17390do eval test x\${$as_var+set} = xset \
17391  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17392done
17393PS1='$ '
17394PS2='> '
17395PS4='+ '
17396
17397# NLS nuisances.
17398LC_ALL=C
17399export LC_ALL
17400LANGUAGE=C
17401export LANGUAGE
17402
17403# CDPATH.
17404(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17405
17406
17407# as_fn_error STATUS ERROR [LINENO LOG_FD]
17408# ----------------------------------------
17409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17411# script with STATUS, using 1 if that was 0.
17412as_fn_error ()
17413{
17414  as_status=$1; test $as_status -eq 0 && as_status=1
17415  if test "$4"; then
17416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17418  fi
17419  $as_echo "$as_me: error: $2" >&2
17420  as_fn_exit $as_status
17421} # as_fn_error
17422
17423
17424# as_fn_set_status STATUS
17425# -----------------------
17426# Set $? to STATUS, without forking.
17427as_fn_set_status ()
17428{
17429  return $1
17430} # as_fn_set_status
17431
17432# as_fn_exit STATUS
17433# -----------------
17434# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17435as_fn_exit ()
17436{
17437  set +e
17438  as_fn_set_status $1
17439  exit $1
17440} # as_fn_exit
17441
17442# as_fn_unset VAR
17443# ---------------
17444# Portably unset VAR.
17445as_fn_unset ()
17446{
17447  { eval $1=; unset $1;}
17448}
17449as_unset=as_fn_unset
17450# as_fn_append VAR VALUE
17451# ----------------------
17452# Append the text in VALUE to the end of the definition contained in VAR. Take
17453# advantage of any shell optimizations that allow amortized linear growth over
17454# repeated appends, instead of the typical quadratic growth present in naive
17455# implementations.
17456if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17457  eval 'as_fn_append ()
17458  {
17459    eval $1+=\$2
17460  }'
17461else
17462  as_fn_append ()
17463  {
17464    eval $1=\$$1\$2
17465  }
17466fi # as_fn_append
17467
17468# as_fn_arith ARG...
17469# ------------------
17470# Perform arithmetic evaluation on the ARGs, and store the result in the
17471# global $as_val. Take advantage of shells that can avoid forks. The arguments
17472# must be portable across $(()) and expr.
17473if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17474  eval 'as_fn_arith ()
17475  {
17476    as_val=$(( $* ))
17477  }'
17478else
17479  as_fn_arith ()
17480  {
17481    as_val=`expr "$@" || test $? -eq 1`
17482  }
17483fi # as_fn_arith
17484
17485
17486if expr a : '\(a\)' >/dev/null 2>&1 &&
17487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17488  as_expr=expr
17489else
17490  as_expr=false
17491fi
17492
17493if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17494  as_basename=basename
17495else
17496  as_basename=false
17497fi
17498
17499if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17500  as_dirname=dirname
17501else
17502  as_dirname=false
17503fi
17504
17505as_me=`$as_basename -- "$0" ||
17506$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17507	 X"$0" : 'X\(//\)$' \| \
17508	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17509$as_echo X/"$0" |
17510    sed '/^.*\/\([^/][^/]*\)\/*$/{
17511	    s//\1/
17512	    q
17513	  }
17514	  /^X\/\(\/\/\)$/{
17515	    s//\1/
17516	    q
17517	  }
17518	  /^X\/\(\/\).*/{
17519	    s//\1/
17520	    q
17521	  }
17522	  s/.*/./; q'`
17523
17524# Avoid depending upon Character Ranges.
17525as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17526as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17527as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17528as_cr_digits='0123456789'
17529as_cr_alnum=$as_cr_Letters$as_cr_digits
17530
17531ECHO_C= ECHO_N= ECHO_T=
17532case `echo -n x` in #(((((
17533-n*)
17534  case `echo 'xy\c'` in
17535  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17536  xy)  ECHO_C='\c';;
17537  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17538       ECHO_T='	';;
17539  esac;;
17540*)
17541  ECHO_N='-n';;
17542esac
17543
17544rm -f conf$$ conf$$.exe conf$$.file
17545if test -d conf$$.dir; then
17546  rm -f conf$$.dir/conf$$.file
17547else
17548  rm -f conf$$.dir
17549  mkdir conf$$.dir 2>/dev/null
17550fi
17551if (echo >conf$$.file) 2>/dev/null; then
17552  if ln -s conf$$.file conf$$ 2>/dev/null; then
17553    as_ln_s='ln -s'
17554    # ... but there are two gotchas:
17555    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17556    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17557    # In both cases, we have to default to `cp -pR'.
17558    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17559      as_ln_s='cp -pR'
17560  elif ln conf$$.file conf$$ 2>/dev/null; then
17561    as_ln_s=ln
17562  else
17563    as_ln_s='cp -pR'
17564  fi
17565else
17566  as_ln_s='cp -pR'
17567fi
17568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17569rmdir conf$$.dir 2>/dev/null
17570
17571
17572# as_fn_mkdir_p
17573# -------------
17574# Create "$as_dir" as a directory, including parents if necessary.
17575as_fn_mkdir_p ()
17576{
17577
17578  case $as_dir in #(
17579  -*) as_dir=./$as_dir;;
17580  esac
17581  test -d "$as_dir" || eval $as_mkdir_p || {
17582    as_dirs=
17583    while :; do
17584      case $as_dir in #(
17585      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17586      *) as_qdir=$as_dir;;
17587      esac
17588      as_dirs="'$as_qdir' $as_dirs"
17589      as_dir=`$as_dirname -- "$as_dir" ||
17590$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17591	 X"$as_dir" : 'X\(//\)[^/]' \| \
17592	 X"$as_dir" : 'X\(//\)$' \| \
17593	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17594$as_echo X"$as_dir" |
17595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17596	    s//\1/
17597	    q
17598	  }
17599	  /^X\(\/\/\)[^/].*/{
17600	    s//\1/
17601	    q
17602	  }
17603	  /^X\(\/\/\)$/{
17604	    s//\1/
17605	    q
17606	  }
17607	  /^X\(\/\).*/{
17608	    s//\1/
17609	    q
17610	  }
17611	  s/.*/./; q'`
17612      test -d "$as_dir" && break
17613    done
17614    test -z "$as_dirs" || eval "mkdir $as_dirs"
17615  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17616
17617
17618} # as_fn_mkdir_p
17619if mkdir -p . 2>/dev/null; then
17620  as_mkdir_p='mkdir -p "$as_dir"'
17621else
17622  test -d ./-p && rmdir ./-p
17623  as_mkdir_p=false
17624fi
17625
17626
17627# as_fn_executable_p FILE
17628# -----------------------
17629# Test if FILE is an executable regular file.
17630as_fn_executable_p ()
17631{
17632  test -f "$1" && test -x "$1"
17633} # as_fn_executable_p
17634as_test_x='test -x'
17635as_executable_p=as_fn_executable_p
17636
17637# Sed expression to map a string onto a valid CPP name.
17638as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17639
17640# Sed expression to map a string onto a valid variable name.
17641as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17642
17643
17644exec 6>&1
17645## ----------------------------------- ##
17646## Main body of $CONFIG_STATUS script. ##
17647## ----------------------------------- ##
17648_ASEOF
17649test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17650
17651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17652# Save the log message, to keep $0 and so on meaningful, and to
17653# report actual input values of CONFIG_FILES etc. instead of their
17654# values after options handling.
17655ac_log="
17656This file was extended by libXTrap $as_me 1.0.1, which was
17657generated by GNU Autoconf 2.69.  Invocation command line was
17658
17659  CONFIG_FILES    = $CONFIG_FILES
17660  CONFIG_HEADERS  = $CONFIG_HEADERS
17661  CONFIG_LINKS    = $CONFIG_LINKS
17662  CONFIG_COMMANDS = $CONFIG_COMMANDS
17663  $ $0 $@
17664
17665on `(hostname || uname -n) 2>/dev/null | sed 1q`
17666"
17667
17668_ACEOF
17669
17670case $ac_config_files in *"
17671"*) set x $ac_config_files; shift; ac_config_files=$*;;
17672esac
17673
17674case $ac_config_headers in *"
17675"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17676esac
17677
17678
17679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17680# Files that config.status was made for.
17681config_files="$ac_config_files"
17682config_headers="$ac_config_headers"
17683config_commands="$ac_config_commands"
17684
17685_ACEOF
17686
17687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17688ac_cs_usage="\
17689\`$as_me' instantiates files and other configuration actions
17690from templates according to the current configuration.  Unless the files
17691and actions are specified as TAGs, all are instantiated by default.
17692
17693Usage: $0 [OPTION]... [TAG]...
17694
17695  -h, --help       print this help, then exit
17696  -V, --version    print version number and configuration settings, then exit
17697      --config     print configuration, then exit
17698  -q, --quiet, --silent
17699                   do not print progress messages
17700  -d, --debug      don't remove temporary files
17701      --recheck    update $as_me by reconfiguring in the same conditions
17702      --file=FILE[:TEMPLATE]
17703                   instantiate the configuration file FILE
17704      --header=FILE[:TEMPLATE]
17705                   instantiate the configuration header FILE
17706
17707Configuration files:
17708$config_files
17709
17710Configuration headers:
17711$config_headers
17712
17713Configuration commands:
17714$config_commands
17715
17716Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
17717
17718_ACEOF
17719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17721ac_cs_version="\\
17722libXTrap config.status 1.0.1
17723configured by $0, generated by GNU Autoconf 2.69,
17724  with options \\"\$ac_cs_config\\"
17725
17726Copyright (C) 2012 Free Software Foundation, Inc.
17727This config.status script is free software; the Free Software Foundation
17728gives unlimited permission to copy, distribute and modify it."
17729
17730ac_pwd='$ac_pwd'
17731srcdir='$srcdir'
17732INSTALL='$INSTALL'
17733MKDIR_P='$MKDIR_P'
17734AWK='$AWK'
17735test -n "\$AWK" || AWK=awk
17736_ACEOF
17737
17738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739# The default lists apply if the user does not specify any file.
17740ac_need_defaults=:
17741while test $# != 0
17742do
17743  case $1 in
17744  --*=?*)
17745    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17746    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17747    ac_shift=:
17748    ;;
17749  --*=)
17750    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17751    ac_optarg=
17752    ac_shift=:
17753    ;;
17754  *)
17755    ac_option=$1
17756    ac_optarg=$2
17757    ac_shift=shift
17758    ;;
17759  esac
17760
17761  case $ac_option in
17762  # Handling of the options.
17763  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17764    ac_cs_recheck=: ;;
17765  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17766    $as_echo "$ac_cs_version"; exit ;;
17767  --config | --confi | --conf | --con | --co | --c )
17768    $as_echo "$ac_cs_config"; exit ;;
17769  --debug | --debu | --deb | --de | --d | -d )
17770    debug=: ;;
17771  --file | --fil | --fi | --f )
17772    $ac_shift
17773    case $ac_optarg in
17774    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17775    '') as_fn_error $? "missing file argument" ;;
17776    esac
17777    as_fn_append CONFIG_FILES " '$ac_optarg'"
17778    ac_need_defaults=false;;
17779  --header | --heade | --head | --hea )
17780    $ac_shift
17781    case $ac_optarg in
17782    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17783    esac
17784    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17785    ac_need_defaults=false;;
17786  --he | --h)
17787    # Conflict between --help and --header
17788    as_fn_error $? "ambiguous option: \`$1'
17789Try \`$0 --help' for more information.";;
17790  --help | --hel | -h )
17791    $as_echo "$ac_cs_usage"; exit ;;
17792  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17793  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17794    ac_cs_silent=: ;;
17795
17796  # This is an error.
17797  -*) as_fn_error $? "unrecognized option: \`$1'
17798Try \`$0 --help' for more information." ;;
17799
17800  *) as_fn_append ac_config_targets " $1"
17801     ac_need_defaults=false ;;
17802
17803  esac
17804  shift
17805done
17806
17807ac_configure_extra_args=
17808
17809if $ac_cs_silent; then
17810  exec 6>/dev/null
17811  ac_configure_extra_args="$ac_configure_extra_args --silent"
17812fi
17813
17814_ACEOF
17815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816if \$ac_cs_recheck; then
17817  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17818  shift
17819  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17820  CONFIG_SHELL='$SHELL'
17821  export CONFIG_SHELL
17822  exec "\$@"
17823fi
17824
17825_ACEOF
17826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827exec 5>>config.log
17828{
17829  echo
17830  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17831## Running $as_me. ##
17832_ASBOX
17833  $as_echo "$ac_log"
17834} >&5
17835
17836_ACEOF
17837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17838#
17839# INIT-COMMANDS
17840#
17841AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17842
17843
17844# The HP-UX ksh and POSIX shell print the target directory to stdout
17845# if CDPATH is set.
17846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17847
17848sed_quote_subst='$sed_quote_subst'
17849double_quote_subst='$double_quote_subst'
17850delay_variable_subst='$delay_variable_subst'
17851macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17852macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17853enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17854enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17855pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17856enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17857SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17858ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17859PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17860host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17861host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17862host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17863build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17864build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17865build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17866SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17867Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17868GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17869EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17870FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17871LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17872NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17873LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17874max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17875ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17876exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17877lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17878lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17879lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17880lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17881lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17882reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17883reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17884OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17885deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17886file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17887file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17888want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17889DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17890sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17891AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17892AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17893archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17894STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17895RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17896old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17897old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17898old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17899lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17900CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17901CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17902compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17903GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17904lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17905lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17906lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17907lt_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"`'
17908nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17909lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17910objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17911MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17912lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17913lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17914lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17915lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17916lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17917need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17918MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17919DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17920NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17921LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17922OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17923OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17924libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17925shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17926extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17927archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17928enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17929export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17930whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17931compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17932old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17933old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17934archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17935archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17936module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17937module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17938with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17939allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17940no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17941hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17942hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17943hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17944hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17945hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17946hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17947hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17948inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17949link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17950always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17951export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17952exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17953include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17954prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17955postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17956file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17957variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17958need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17959need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17960version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17961runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17962shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17963shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17964libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17965library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17966soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17967install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17968postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17969postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17970finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17971finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17972hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17973sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17974sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17975hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17976enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17977enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17978enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17979old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17980striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17981
17982LTCC='$LTCC'
17983LTCFLAGS='$LTCFLAGS'
17984compiler='$compiler_DEFAULT'
17985
17986# A function that is used when there is no print builtin or printf.
17987func_fallback_echo ()
17988{
17989  eval 'cat <<_LTECHO_EOF
17990\$1
17991_LTECHO_EOF'
17992}
17993
17994# Quote evaled strings.
17995for var in SHELL \
17996ECHO \
17997PATH_SEPARATOR \
17998SED \
17999GREP \
18000EGREP \
18001FGREP \
18002LD \
18003NM \
18004LN_S \
18005lt_SP2NL \
18006lt_NL2SP \
18007reload_flag \
18008OBJDUMP \
18009deplibs_check_method \
18010file_magic_cmd \
18011file_magic_glob \
18012want_nocaseglob \
18013DLLTOOL \
18014sharedlib_from_linklib_cmd \
18015AR \
18016AR_FLAGS \
18017archiver_list_spec \
18018STRIP \
18019RANLIB \
18020CC \
18021CFLAGS \
18022compiler \
18023lt_cv_sys_global_symbol_pipe \
18024lt_cv_sys_global_symbol_to_cdecl \
18025lt_cv_sys_global_symbol_to_c_name_address \
18026lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18027nm_file_list_spec \
18028lt_prog_compiler_no_builtin_flag \
18029lt_prog_compiler_pic \
18030lt_prog_compiler_wl \
18031lt_prog_compiler_static \
18032lt_cv_prog_compiler_c_o \
18033need_locks \
18034MANIFEST_TOOL \
18035DSYMUTIL \
18036NMEDIT \
18037LIPO \
18038OTOOL \
18039OTOOL64 \
18040shrext_cmds \
18041export_dynamic_flag_spec \
18042whole_archive_flag_spec \
18043compiler_needs_object \
18044with_gnu_ld \
18045allow_undefined_flag \
18046no_undefined_flag \
18047hardcode_libdir_flag_spec \
18048hardcode_libdir_separator \
18049exclude_expsyms \
18050include_expsyms \
18051file_list_spec \
18052variables_saved_for_relink \
18053libname_spec \
18054library_names_spec \
18055soname_spec \
18056install_override_mode \
18057finish_eval \
18058old_striplib \
18059striplib; do
18060    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18061    *[\\\\\\\`\\"\\\$]*)
18062      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18063      ;;
18064    *)
18065      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18066      ;;
18067    esac
18068done
18069
18070# Double-quote double-evaled strings.
18071for var in reload_cmds \
18072old_postinstall_cmds \
18073old_postuninstall_cmds \
18074old_archive_cmds \
18075extract_expsyms_cmds \
18076old_archive_from_new_cmds \
18077old_archive_from_expsyms_cmds \
18078archive_cmds \
18079archive_expsym_cmds \
18080module_cmds \
18081module_expsym_cmds \
18082export_symbols_cmds \
18083prelink_cmds \
18084postlink_cmds \
18085postinstall_cmds \
18086postuninstall_cmds \
18087finish_cmds \
18088sys_lib_search_path_spec \
18089sys_lib_dlsearch_path_spec; do
18090    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18091    *[\\\\\\\`\\"\\\$]*)
18092      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18093      ;;
18094    *)
18095      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18096      ;;
18097    esac
18098done
18099
18100ac_aux_dir='$ac_aux_dir'
18101xsi_shell='$xsi_shell'
18102lt_shell_append='$lt_shell_append'
18103
18104# See if we are running on zsh, and set the options which allow our
18105# commands through without removal of \ escapes INIT.
18106if test -n "\${ZSH_VERSION+set}" ; then
18107   setopt NO_GLOB_SUBST
18108fi
18109
18110
18111    PACKAGE='$PACKAGE'
18112    VERSION='$VERSION'
18113    TIMESTAMP='$TIMESTAMP'
18114    RM='$RM'
18115    ofile='$ofile'
18116
18117
18118
18119
18120_ACEOF
18121
18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123
18124# Handling of arguments.
18125for ac_config_target in $ac_config_targets
18126do
18127  case $ac_config_target in
18128    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18129    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18130    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18131    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18132    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18133    "xtrap.pc") CONFIG_FILES="$CONFIG_FILES xtrap.pc" ;;
18134
18135  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18136  esac
18137done
18138
18139
18140# If the user did not use the arguments to specify the items to instantiate,
18141# then the envvar interface is used.  Set only those that are not.
18142# We use the long form for the default assignment because of an extremely
18143# bizarre bug on SunOS 4.1.3.
18144if $ac_need_defaults; then
18145  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18146  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18147  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18148fi
18149
18150# Have a temporary directory for convenience.  Make it in the build tree
18151# simply because there is no reason against having it here, and in addition,
18152# creating and moving files from /tmp can sometimes cause problems.
18153# Hook for its removal unless debugging.
18154# Note that there is a small window in which the directory will not be cleaned:
18155# after its creation but before its name has been assigned to `$tmp'.
18156$debug ||
18157{
18158  tmp= ac_tmp=
18159  trap 'exit_status=$?
18160  : "${ac_tmp:=$tmp}"
18161  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18162' 0
18163  trap 'as_fn_exit 1' 1 2 13 15
18164}
18165# Create a (secure) tmp directory for tmp files.
18166
18167{
18168  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18169  test -d "$tmp"
18170}  ||
18171{
18172  tmp=./conf$$-$RANDOM
18173  (umask 077 && mkdir "$tmp")
18174} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18175ac_tmp=$tmp
18176
18177# Set up the scripts for CONFIG_FILES section.
18178# No need to generate them if there are no CONFIG_FILES.
18179# This happens for instance with `./config.status config.h'.
18180if test -n "$CONFIG_FILES"; then
18181
18182
18183ac_cr=`echo X | tr X '\015'`
18184# On cygwin, bash can eat \r inside `` if the user requested igncr.
18185# But we know of no other shell where ac_cr would be empty at this
18186# point, so we can use a bashism as a fallback.
18187if test "x$ac_cr" = x; then
18188  eval ac_cr=\$\'\\r\'
18189fi
18190ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18191if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18192  ac_cs_awk_cr='\\r'
18193else
18194  ac_cs_awk_cr=$ac_cr
18195fi
18196
18197echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18198_ACEOF
18199
18200
18201{
18202  echo "cat >conf$$subs.awk <<_ACEOF" &&
18203  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18204  echo "_ACEOF"
18205} >conf$$subs.sh ||
18206  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18207ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18208ac_delim='%!_!# '
18209for ac_last_try in false false false false false :; do
18210  . ./conf$$subs.sh ||
18211    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18212
18213  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18214  if test $ac_delim_n = $ac_delim_num; then
18215    break
18216  elif $ac_last_try; then
18217    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18218  else
18219    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18220  fi
18221done
18222rm -f conf$$subs.sh
18223
18224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18225cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18226_ACEOF
18227sed -n '
18228h
18229s/^/S["/; s/!.*/"]=/
18230p
18231g
18232s/^[^!]*!//
18233:repl
18234t repl
18235s/'"$ac_delim"'$//
18236t delim
18237:nl
18238h
18239s/\(.\{148\}\)..*/\1/
18240t more1
18241s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18242p
18243n
18244b repl
18245:more1
18246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18247p
18248g
18249s/.\{148\}//
18250t nl
18251:delim
18252h
18253s/\(.\{148\}\)..*/\1/
18254t more2
18255s/["\\]/\\&/g; s/^/"/; s/$/"/
18256p
18257b
18258:more2
18259s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18260p
18261g
18262s/.\{148\}//
18263t delim
18264' <conf$$subs.awk | sed '
18265/^[^""]/{
18266  N
18267  s/\n//
18268}
18269' >>$CONFIG_STATUS || ac_write_fail=1
18270rm -f conf$$subs.awk
18271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272_ACAWK
18273cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18274  for (key in S) S_is_set[key] = 1
18275  FS = ""
18276
18277}
18278{
18279  line = $ 0
18280  nfields = split(line, field, "@")
18281  substed = 0
18282  len = length(field[1])
18283  for (i = 2; i < nfields; i++) {
18284    key = field[i]
18285    keylen = length(key)
18286    if (S_is_set[key]) {
18287      value = S[key]
18288      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18289      len += length(value) + length(field[++i])
18290      substed = 1
18291    } else
18292      len += 1 + keylen
18293  }
18294
18295  print line
18296}
18297
18298_ACAWK
18299_ACEOF
18300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18301if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18302  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18303else
18304  cat
18305fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18306  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18307_ACEOF
18308
18309# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18310# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18311# trailing colons and then remove the whole line if VPATH becomes empty
18312# (actually we leave an empty line to preserve line numbers).
18313if test "x$srcdir" = x.; then
18314  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18315h
18316s///
18317s/^/:/
18318s/[	 ]*$/:/
18319s/:\$(srcdir):/:/g
18320s/:\${srcdir}:/:/g
18321s/:@srcdir@:/:/g
18322s/^:*//
18323s/:*$//
18324x
18325s/\(=[	 ]*\).*/\1/
18326G
18327s/\n//
18328s/^[^=]*=[	 ]*$//
18329}'
18330fi
18331
18332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18333fi # test -n "$CONFIG_FILES"
18334
18335# Set up the scripts for CONFIG_HEADERS section.
18336# No need to generate them if there are no CONFIG_HEADERS.
18337# This happens for instance with `./config.status Makefile'.
18338if test -n "$CONFIG_HEADERS"; then
18339cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18340BEGIN {
18341_ACEOF
18342
18343# Transform confdefs.h into an awk script `defines.awk', embedded as
18344# here-document in config.status, that substitutes the proper values into
18345# config.h.in to produce config.h.
18346
18347# Create a delimiter string that does not exist in confdefs.h, to ease
18348# handling of long lines.
18349ac_delim='%!_!# '
18350for ac_last_try in false false :; do
18351  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18352  if test -z "$ac_tt"; then
18353    break
18354  elif $ac_last_try; then
18355    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18356  else
18357    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18358  fi
18359done
18360
18361# For the awk script, D is an array of macro values keyed by name,
18362# likewise P contains macro parameters if any.  Preserve backslash
18363# newline sequences.
18364
18365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18366sed -n '
18367s/.\{148\}/&'"$ac_delim"'/g
18368t rset
18369:rset
18370s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18371t def
18372d
18373:def
18374s/\\$//
18375t bsnl
18376s/["\\]/\\&/g
18377s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18378D["\1"]=" \3"/p
18379s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18380d
18381:bsnl
18382s/["\\]/\\&/g
18383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18384D["\1"]=" \3\\\\\\n"\\/p
18385t cont
18386s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18387t cont
18388d
18389:cont
18390n
18391s/.\{148\}/&'"$ac_delim"'/g
18392t clear
18393:clear
18394s/\\$//
18395t bsnlc
18396s/["\\]/\\&/g; s/^/"/; s/$/"/p
18397d
18398:bsnlc
18399s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18400b cont
18401' <confdefs.h | sed '
18402s/'"$ac_delim"'/"\\\
18403"/g' >>$CONFIG_STATUS || ac_write_fail=1
18404
18405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406  for (key in D) D_is_set[key] = 1
18407  FS = ""
18408}
18409/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18410  line = \$ 0
18411  split(line, arg, " ")
18412  if (arg[1] == "#") {
18413    defundef = arg[2]
18414    mac1 = arg[3]
18415  } else {
18416    defundef = substr(arg[1], 2)
18417    mac1 = arg[2]
18418  }
18419  split(mac1, mac2, "(") #)
18420  macro = mac2[1]
18421  prefix = substr(line, 1, index(line, defundef) - 1)
18422  if (D_is_set[macro]) {
18423    # Preserve the white space surrounding the "#".
18424    print prefix "define", macro P[macro] D[macro]
18425    next
18426  } else {
18427    # Replace #undef with comments.  This is necessary, for example,
18428    # in the case of _POSIX_SOURCE, which is predefined and required
18429    # on some systems where configure will not decide to define it.
18430    if (defundef == "undef") {
18431      print "/*", prefix defundef, macro, "*/"
18432      next
18433    }
18434  }
18435}
18436{ print }
18437_ACAWK
18438_ACEOF
18439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18441fi # test -n "$CONFIG_HEADERS"
18442
18443
18444eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18445shift
18446for ac_tag
18447do
18448  case $ac_tag in
18449  :[FHLC]) ac_mode=$ac_tag; continue;;
18450  esac
18451  case $ac_mode$ac_tag in
18452  :[FHL]*:*);;
18453  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18454  :[FH]-) ac_tag=-:-;;
18455  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18456  esac
18457  ac_save_IFS=$IFS
18458  IFS=:
18459  set x $ac_tag
18460  IFS=$ac_save_IFS
18461  shift
18462  ac_file=$1
18463  shift
18464
18465  case $ac_mode in
18466  :L) ac_source=$1;;
18467  :[FH])
18468    ac_file_inputs=
18469    for ac_f
18470    do
18471      case $ac_f in
18472      -) ac_f="$ac_tmp/stdin";;
18473      *) # Look for the file first in the build tree, then in the source tree
18474	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18475	 # because $ac_f cannot contain `:'.
18476	 test -f "$ac_f" ||
18477	   case $ac_f in
18478	   [\\/$]*) false;;
18479	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18480	   esac ||
18481	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18482      esac
18483      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18484      as_fn_append ac_file_inputs " '$ac_f'"
18485    done
18486
18487    # Let's still pretend it is `configure' which instantiates (i.e., don't
18488    # use $as_me), people would be surprised to read:
18489    #    /* config.h.  Generated by config.status.  */
18490    configure_input='Generated from '`
18491	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18492	`' by configure.'
18493    if test x"$ac_file" != x-; then
18494      configure_input="$ac_file.  $configure_input"
18495      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18496$as_echo "$as_me: creating $ac_file" >&6;}
18497    fi
18498    # Neutralize special characters interpreted by sed in replacement strings.
18499    case $configure_input in #(
18500    *\&* | *\|* | *\\* )
18501       ac_sed_conf_input=`$as_echo "$configure_input" |
18502       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18503    *) ac_sed_conf_input=$configure_input;;
18504    esac
18505
18506    case $ac_tag in
18507    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18508      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18509    esac
18510    ;;
18511  esac
18512
18513  ac_dir=`$as_dirname -- "$ac_file" ||
18514$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18515	 X"$ac_file" : 'X\(//\)[^/]' \| \
18516	 X"$ac_file" : 'X\(//\)$' \| \
18517	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18518$as_echo X"$ac_file" |
18519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18520	    s//\1/
18521	    q
18522	  }
18523	  /^X\(\/\/\)[^/].*/{
18524	    s//\1/
18525	    q
18526	  }
18527	  /^X\(\/\/\)$/{
18528	    s//\1/
18529	    q
18530	  }
18531	  /^X\(\/\).*/{
18532	    s//\1/
18533	    q
18534	  }
18535	  s/.*/./; q'`
18536  as_dir="$ac_dir"; as_fn_mkdir_p
18537  ac_builddir=.
18538
18539case "$ac_dir" in
18540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18541*)
18542  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18543  # A ".." for each directory in $ac_dir_suffix.
18544  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18545  case $ac_top_builddir_sub in
18546  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18547  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18548  esac ;;
18549esac
18550ac_abs_top_builddir=$ac_pwd
18551ac_abs_builddir=$ac_pwd$ac_dir_suffix
18552# for backward compatibility:
18553ac_top_builddir=$ac_top_build_prefix
18554
18555case $srcdir in
18556  .)  # We are building in place.
18557    ac_srcdir=.
18558    ac_top_srcdir=$ac_top_builddir_sub
18559    ac_abs_top_srcdir=$ac_pwd ;;
18560  [\\/]* | ?:[\\/]* )  # Absolute name.
18561    ac_srcdir=$srcdir$ac_dir_suffix;
18562    ac_top_srcdir=$srcdir
18563    ac_abs_top_srcdir=$srcdir ;;
18564  *) # Relative name.
18565    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18566    ac_top_srcdir=$ac_top_build_prefix$srcdir
18567    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18568esac
18569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18570
18571
18572  case $ac_mode in
18573  :F)
18574  #
18575  # CONFIG_FILE
18576  #
18577
18578  case $INSTALL in
18579  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18580  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18581  esac
18582  ac_MKDIR_P=$MKDIR_P
18583  case $MKDIR_P in
18584  [\\/$]* | ?:[\\/]* ) ;;
18585  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18586  esac
18587_ACEOF
18588
18589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18590# If the template does not know about datarootdir, expand it.
18591# FIXME: This hack should be removed a few years after 2.60.
18592ac_datarootdir_hack=; ac_datarootdir_seen=
18593ac_sed_dataroot='
18594/datarootdir/ {
18595  p
18596  q
18597}
18598/@datadir@/p
18599/@docdir@/p
18600/@infodir@/p
18601/@localedir@/p
18602/@mandir@/p'
18603case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18604*datarootdir*) ac_datarootdir_seen=yes;;
18605*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18606  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18607$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18608_ACEOF
18609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18610  ac_datarootdir_hack='
18611  s&@datadir@&$datadir&g
18612  s&@docdir@&$docdir&g
18613  s&@infodir@&$infodir&g
18614  s&@localedir@&$localedir&g
18615  s&@mandir@&$mandir&g
18616  s&\\\${datarootdir}&$datarootdir&g' ;;
18617esac
18618_ACEOF
18619
18620# Neutralize VPATH when `$srcdir' = `.'.
18621# Shell code in configure.ac might set extrasub.
18622# FIXME: do we really want to maintain this feature?
18623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18624ac_sed_extra="$ac_vpsub
18625$extrasub
18626_ACEOF
18627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18628:t
18629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18630s|@configure_input@|$ac_sed_conf_input|;t t
18631s&@top_builddir@&$ac_top_builddir_sub&;t t
18632s&@top_build_prefix@&$ac_top_build_prefix&;t t
18633s&@srcdir@&$ac_srcdir&;t t
18634s&@abs_srcdir@&$ac_abs_srcdir&;t t
18635s&@top_srcdir@&$ac_top_srcdir&;t t
18636s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18637s&@builddir@&$ac_builddir&;t t
18638s&@abs_builddir@&$ac_abs_builddir&;t t
18639s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18640s&@INSTALL@&$ac_INSTALL&;t t
18641s&@MKDIR_P@&$ac_MKDIR_P&;t t
18642$ac_datarootdir_hack
18643"
18644eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18645  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18646
18647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18648  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18649  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18650      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18652which seems to be undefined.  Please make sure it is defined" >&5
18653$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18654which seems to be undefined.  Please make sure it is defined" >&2;}
18655
18656  rm -f "$ac_tmp/stdin"
18657  case $ac_file in
18658  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18659  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18660  esac \
18661  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18662 ;;
18663  :H)
18664  #
18665  # CONFIG_HEADER
18666  #
18667  if test x"$ac_file" != x-; then
18668    {
18669      $as_echo "/* $configure_input  */" \
18670      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18671    } >"$ac_tmp/config.h" \
18672      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18673    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18674      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18675$as_echo "$as_me: $ac_file is unchanged" >&6;}
18676    else
18677      rm -f "$ac_file"
18678      mv "$ac_tmp/config.h" "$ac_file" \
18679	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18680    fi
18681  else
18682    $as_echo "/* $configure_input  */" \
18683      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18684      || as_fn_error $? "could not create -" "$LINENO" 5
18685  fi
18686# Compute "$ac_file"'s index in $config_headers.
18687_am_arg="$ac_file"
18688_am_stamp_count=1
18689for _am_header in $config_headers :; do
18690  case $_am_header in
18691    $_am_arg | $_am_arg:* )
18692      break ;;
18693    * )
18694      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18695  esac
18696done
18697echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18698$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18700	 X"$_am_arg" : 'X\(//\)$' \| \
18701	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18702$as_echo X"$_am_arg" |
18703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18704	    s//\1/
18705	    q
18706	  }
18707	  /^X\(\/\/\)[^/].*/{
18708	    s//\1/
18709	    q
18710	  }
18711	  /^X\(\/\/\)$/{
18712	    s//\1/
18713	    q
18714	  }
18715	  /^X\(\/\).*/{
18716	    s//\1/
18717	    q
18718	  }
18719	  s/.*/./; q'`/stamp-h$_am_stamp_count
18720 ;;
18721
18722  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18723$as_echo "$as_me: executing $ac_file commands" >&6;}
18724 ;;
18725  esac
18726
18727
18728  case $ac_file$ac_mode in
18729    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18730  # Older Autoconf quotes --file arguments for eval, but not when files
18731  # are listed without --file.  Let's play safe and only enable the eval
18732  # if we detect the quoting.
18733  case $CONFIG_FILES in
18734  *\'*) eval set x "$CONFIG_FILES" ;;
18735  *)   set x $CONFIG_FILES ;;
18736  esac
18737  shift
18738  for mf
18739  do
18740    # Strip MF so we end up with the name of the file.
18741    mf=`echo "$mf" | sed -e 's/:.*$//'`
18742    # Check whether this is an Automake generated Makefile or not.
18743    # We used to match only the files named 'Makefile.in', but
18744    # some people rename them; so instead we look at the file content.
18745    # Grep'ing the first line is not enough: some people post-process
18746    # each Makefile.in and add a new line on top of each file to say so.
18747    # Grep'ing the whole file is not good either: AIX grep has a line
18748    # limit of 2048, but all sed's we know have understand at least 4000.
18749    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18750      dirpart=`$as_dirname -- "$mf" ||
18751$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18752	 X"$mf" : 'X\(//\)[^/]' \| \
18753	 X"$mf" : 'X\(//\)$' \| \
18754	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18755$as_echo X"$mf" |
18756    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18757	    s//\1/
18758	    q
18759	  }
18760	  /^X\(\/\/\)[^/].*/{
18761	    s//\1/
18762	    q
18763	  }
18764	  /^X\(\/\/\)$/{
18765	    s//\1/
18766	    q
18767	  }
18768	  /^X\(\/\).*/{
18769	    s//\1/
18770	    q
18771	  }
18772	  s/.*/./; q'`
18773    else
18774      continue
18775    fi
18776    # Extract the definition of DEPDIR, am__include, and am__quote
18777    # from the Makefile without running 'make'.
18778    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18779    test -z "$DEPDIR" && continue
18780    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18781    test -z "am__include" && continue
18782    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18783    # Find all dependency output files, they are included files with
18784    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18785    # simplest approach to changing $(DEPDIR) to its actual value in the
18786    # expansion.
18787    for file in `sed -n "
18788      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18789	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18790      # Make sure the directory exists.
18791      test -f "$dirpart/$file" && continue
18792      fdir=`$as_dirname -- "$file" ||
18793$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18794	 X"$file" : 'X\(//\)[^/]' \| \
18795	 X"$file" : 'X\(//\)$' \| \
18796	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18797$as_echo X"$file" |
18798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18799	    s//\1/
18800	    q
18801	  }
18802	  /^X\(\/\/\)[^/].*/{
18803	    s//\1/
18804	    q
18805	  }
18806	  /^X\(\/\/\)$/{
18807	    s//\1/
18808	    q
18809	  }
18810	  /^X\(\/\).*/{
18811	    s//\1/
18812	    q
18813	  }
18814	  s/.*/./; q'`
18815      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18816      # echo "creating $dirpart/$file"
18817      echo '# dummy' > "$dirpart/$file"
18818    done
18819  done
18820}
18821 ;;
18822    "libtool":C)
18823
18824    # See if we are running on zsh, and set the options which allow our
18825    # commands through without removal of \ escapes.
18826    if test -n "${ZSH_VERSION+set}" ; then
18827      setopt NO_GLOB_SUBST
18828    fi
18829
18830    cfgfile="${ofile}T"
18831    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18832    $RM "$cfgfile"
18833
18834    cat <<_LT_EOF >> "$cfgfile"
18835#! $SHELL
18836
18837# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18838# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18839# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18840# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18841#
18842#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18843#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18844#                 Foundation, Inc.
18845#   Written by Gordon Matzigkeit, 1996
18846#
18847#   This file is part of GNU Libtool.
18848#
18849# GNU Libtool is free software; you can redistribute it and/or
18850# modify it under the terms of the GNU General Public License as
18851# published by the Free Software Foundation; either version 2 of
18852# the License, or (at your option) any later version.
18853#
18854# As a special exception to the GNU General Public License,
18855# if you distribute this file as part of a program or library that
18856# is built using GNU Libtool, you may include this file under the
18857# same distribution terms that you use for the rest of that program.
18858#
18859# GNU Libtool is distributed in the hope that it will be useful,
18860# but WITHOUT ANY WARRANTY; without even the implied warranty of
18861# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18862# GNU General Public License for more details.
18863#
18864# You should have received a copy of the GNU General Public License
18865# along with GNU Libtool; see the file COPYING.  If not, a copy
18866# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18867# obtained by writing to the Free Software Foundation, Inc.,
18868# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18869
18870
18871# The names of the tagged configurations supported by this script.
18872available_tags=""
18873
18874# ### BEGIN LIBTOOL CONFIG
18875
18876# Which release of libtool.m4 was used?
18877macro_version=$macro_version
18878macro_revision=$macro_revision
18879
18880# Whether or not to build shared libraries.
18881build_libtool_libs=$enable_shared
18882
18883# Whether or not to build static libraries.
18884build_old_libs=$enable_static
18885
18886# What type of objects to build.
18887pic_mode=$pic_mode
18888
18889# Whether or not to optimize for fast installation.
18890fast_install=$enable_fast_install
18891
18892# Shell to use when invoking shell scripts.
18893SHELL=$lt_SHELL
18894
18895# An echo program that protects backslashes.
18896ECHO=$lt_ECHO
18897
18898# The PATH separator for the build system.
18899PATH_SEPARATOR=$lt_PATH_SEPARATOR
18900
18901# The host system.
18902host_alias=$host_alias
18903host=$host
18904host_os=$host_os
18905
18906# The build system.
18907build_alias=$build_alias
18908build=$build
18909build_os=$build_os
18910
18911# A sed program that does not truncate output.
18912SED=$lt_SED
18913
18914# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18915Xsed="\$SED -e 1s/^X//"
18916
18917# A grep program that handles long lines.
18918GREP=$lt_GREP
18919
18920# An ERE matcher.
18921EGREP=$lt_EGREP
18922
18923# A literal string matcher.
18924FGREP=$lt_FGREP
18925
18926# A BSD- or MS-compatible name lister.
18927NM=$lt_NM
18928
18929# Whether we need soft or hard links.
18930LN_S=$lt_LN_S
18931
18932# What is the maximum length of a command?
18933max_cmd_len=$max_cmd_len
18934
18935# Object file suffix (normally "o").
18936objext=$ac_objext
18937
18938# Executable file suffix (normally "").
18939exeext=$exeext
18940
18941# whether the shell understands "unset".
18942lt_unset=$lt_unset
18943
18944# turn spaces into newlines.
18945SP2NL=$lt_lt_SP2NL
18946
18947# turn newlines into spaces.
18948NL2SP=$lt_lt_NL2SP
18949
18950# convert \$build file names to \$host format.
18951to_host_file_cmd=$lt_cv_to_host_file_cmd
18952
18953# convert \$build files to toolchain format.
18954to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18955
18956# An object symbol dumper.
18957OBJDUMP=$lt_OBJDUMP
18958
18959# Method to check whether dependent libraries are shared objects.
18960deplibs_check_method=$lt_deplibs_check_method
18961
18962# Command to use when deplibs_check_method = "file_magic".
18963file_magic_cmd=$lt_file_magic_cmd
18964
18965# How to find potential files when deplibs_check_method = "file_magic".
18966file_magic_glob=$lt_file_magic_glob
18967
18968# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18969want_nocaseglob=$lt_want_nocaseglob
18970
18971# DLL creation program.
18972DLLTOOL=$lt_DLLTOOL
18973
18974# Command to associate shared and link libraries.
18975sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18976
18977# The archiver.
18978AR=$lt_AR
18979
18980# Flags to create an archive.
18981AR_FLAGS=$lt_AR_FLAGS
18982
18983# How to feed a file listing to the archiver.
18984archiver_list_spec=$lt_archiver_list_spec
18985
18986# A symbol stripping program.
18987STRIP=$lt_STRIP
18988
18989# Commands used to install an old-style archive.
18990RANLIB=$lt_RANLIB
18991old_postinstall_cmds=$lt_old_postinstall_cmds
18992old_postuninstall_cmds=$lt_old_postuninstall_cmds
18993
18994# Whether to use a lock for old archive extraction.
18995lock_old_archive_extraction=$lock_old_archive_extraction
18996
18997# A C compiler.
18998LTCC=$lt_CC
18999
19000# LTCC compiler flags.
19001LTCFLAGS=$lt_CFLAGS
19002
19003# Take the output of nm and produce a listing of raw symbols and C names.
19004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19005
19006# Transform the output of nm in a proper C declaration.
19007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19008
19009# Transform the output of nm in a C name address pair.
19010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19011
19012# Transform the output of nm in a C name address pair when lib prefix is needed.
19013global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19014
19015# Specify filename containing input files for \$NM.
19016nm_file_list_spec=$lt_nm_file_list_spec
19017
19018# The root where to search for dependent libraries,and in which our libraries should be installed.
19019lt_sysroot=$lt_sysroot
19020
19021# The name of the directory that contains temporary libtool files.
19022objdir=$objdir
19023
19024# Used to examine libraries when file_magic_cmd begins with "file".
19025MAGIC_CMD=$MAGIC_CMD
19026
19027# Must we lock files when doing compilation?
19028need_locks=$lt_need_locks
19029
19030# Manifest tool.
19031MANIFEST_TOOL=$lt_MANIFEST_TOOL
19032
19033# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19034DSYMUTIL=$lt_DSYMUTIL
19035
19036# Tool to change global to local symbols on Mac OS X.
19037NMEDIT=$lt_NMEDIT
19038
19039# Tool to manipulate fat objects and archives on Mac OS X.
19040LIPO=$lt_LIPO
19041
19042# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19043OTOOL=$lt_OTOOL
19044
19045# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19046OTOOL64=$lt_OTOOL64
19047
19048# Old archive suffix (normally "a").
19049libext=$libext
19050
19051# Shared library suffix (normally ".so").
19052shrext_cmds=$lt_shrext_cmds
19053
19054# The commands to extract the exported symbol list from a shared archive.
19055extract_expsyms_cmds=$lt_extract_expsyms_cmds
19056
19057# Variables whose values should be saved in libtool wrapper scripts and
19058# restored at link time.
19059variables_saved_for_relink=$lt_variables_saved_for_relink
19060
19061# Do we need the "lib" prefix for modules?
19062need_lib_prefix=$need_lib_prefix
19063
19064# Do we need a version for libraries?
19065need_version=$need_version
19066
19067# Library versioning type.
19068version_type=$version_type
19069
19070# Shared library runtime path variable.
19071runpath_var=$runpath_var
19072
19073# Shared library path variable.
19074shlibpath_var=$shlibpath_var
19075
19076# Is shlibpath searched before the hard-coded library search path?
19077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19078
19079# Format of library name prefix.
19080libname_spec=$lt_libname_spec
19081
19082# List of archive names.  First name is the real one, the rest are links.
19083# The last name is the one that the linker finds with -lNAME
19084library_names_spec=$lt_library_names_spec
19085
19086# The coded name of the library, if different from the real name.
19087soname_spec=$lt_soname_spec
19088
19089# Permission mode override for installation of shared libraries.
19090install_override_mode=$lt_install_override_mode
19091
19092# Command to use after installation of a shared archive.
19093postinstall_cmds=$lt_postinstall_cmds
19094
19095# Command to use after uninstallation of a shared archive.
19096postuninstall_cmds=$lt_postuninstall_cmds
19097
19098# Commands used to finish a libtool library installation in a directory.
19099finish_cmds=$lt_finish_cmds
19100
19101# As "finish_cmds", except a single script fragment to be evaled but
19102# not shown.
19103finish_eval=$lt_finish_eval
19104
19105# Whether we should hardcode library paths into libraries.
19106hardcode_into_libs=$hardcode_into_libs
19107
19108# Compile-time system search path for libraries.
19109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19110
19111# Run-time system search path for libraries.
19112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19113
19114# Whether dlopen is supported.
19115dlopen_support=$enable_dlopen
19116
19117# Whether dlopen of programs is supported.
19118dlopen_self=$enable_dlopen_self
19119
19120# Whether dlopen of statically linked programs is supported.
19121dlopen_self_static=$enable_dlopen_self_static
19122
19123# Commands to strip libraries.
19124old_striplib=$lt_old_striplib
19125striplib=$lt_striplib
19126
19127
19128# The linker used to build libraries.
19129LD=$lt_LD
19130
19131# How to create reloadable object files.
19132reload_flag=$lt_reload_flag
19133reload_cmds=$lt_reload_cmds
19134
19135# Commands used to build an old-style archive.
19136old_archive_cmds=$lt_old_archive_cmds
19137
19138# A language specific compiler.
19139CC=$lt_compiler
19140
19141# Is the compiler the GNU compiler?
19142with_gcc=$GCC
19143
19144# Compiler flag to turn off builtin functions.
19145no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19146
19147# Additional compiler flags for building library objects.
19148pic_flag=$lt_lt_prog_compiler_pic
19149
19150# How to pass a linker flag through the compiler.
19151wl=$lt_lt_prog_compiler_wl
19152
19153# Compiler flag to prevent dynamic linking.
19154link_static_flag=$lt_lt_prog_compiler_static
19155
19156# Does compiler simultaneously support -c and -o options?
19157compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19158
19159# Whether or not to add -lc for building shared libraries.
19160build_libtool_need_lc=$archive_cmds_need_lc
19161
19162# Whether or not to disallow shared libs when runtime libs are static.
19163allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19164
19165# Compiler flag to allow reflexive dlopens.
19166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19167
19168# Compiler flag to generate shared objects directly from archives.
19169whole_archive_flag_spec=$lt_whole_archive_flag_spec
19170
19171# Whether the compiler copes with passing no objects directly.
19172compiler_needs_object=$lt_compiler_needs_object
19173
19174# Create an old-style archive from a shared archive.
19175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19176
19177# Create a temporary old-style archive to link instead of a shared archive.
19178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19179
19180# Commands used to build a shared archive.
19181archive_cmds=$lt_archive_cmds
19182archive_expsym_cmds=$lt_archive_expsym_cmds
19183
19184# Commands used to build a loadable module if different from building
19185# a shared archive.
19186module_cmds=$lt_module_cmds
19187module_expsym_cmds=$lt_module_expsym_cmds
19188
19189# Whether we are building with GNU ld or not.
19190with_gnu_ld=$lt_with_gnu_ld
19191
19192# Flag that allows shared libraries with undefined symbols to be built.
19193allow_undefined_flag=$lt_allow_undefined_flag
19194
19195# Flag that enforces no undefined symbols.
19196no_undefined_flag=$lt_no_undefined_flag
19197
19198# Flag to hardcode \$libdir into a binary during linking.
19199# This must work even if \$libdir does not exist
19200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19201
19202# Whether we need a single "-rpath" flag with a separated argument.
19203hardcode_libdir_separator=$lt_hardcode_libdir_separator
19204
19205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19206# DIR into the resulting binary.
19207hardcode_direct=$hardcode_direct
19208
19209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19210# DIR into the resulting binary and the resulting library dependency is
19211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19212# library is relocated.
19213hardcode_direct_absolute=$hardcode_direct_absolute
19214
19215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19216# into the resulting binary.
19217hardcode_minus_L=$hardcode_minus_L
19218
19219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19220# into the resulting binary.
19221hardcode_shlibpath_var=$hardcode_shlibpath_var
19222
19223# Set to "yes" if building a shared library automatically hardcodes DIR
19224# into the library and all subsequent libraries and executables linked
19225# against it.
19226hardcode_automatic=$hardcode_automatic
19227
19228# Set to yes if linker adds runtime paths of dependent libraries
19229# to runtime path list.
19230inherit_rpath=$inherit_rpath
19231
19232# Whether libtool must link a program against all its dependency libraries.
19233link_all_deplibs=$link_all_deplibs
19234
19235# Set to "yes" if exported symbols are required.
19236always_export_symbols=$always_export_symbols
19237
19238# The commands to list exported symbols.
19239export_symbols_cmds=$lt_export_symbols_cmds
19240
19241# Symbols that should not be listed in the preloaded symbols.
19242exclude_expsyms=$lt_exclude_expsyms
19243
19244# Symbols that must always be exported.
19245include_expsyms=$lt_include_expsyms
19246
19247# Commands necessary for linking programs (against libraries) with templates.
19248prelink_cmds=$lt_prelink_cmds
19249
19250# Commands necessary for finishing linking programs.
19251postlink_cmds=$lt_postlink_cmds
19252
19253# Specify filename containing input files.
19254file_list_spec=$lt_file_list_spec
19255
19256# How to hardcode a shared library path into an executable.
19257hardcode_action=$hardcode_action
19258
19259# ### END LIBTOOL CONFIG
19260
19261_LT_EOF
19262
19263  case $host_os in
19264  aix3*)
19265    cat <<\_LT_EOF >> "$cfgfile"
19266# AIX sometimes has problems with the GCC collect2 program.  For some
19267# reason, if we set the COLLECT_NAMES environment variable, the problems
19268# vanish in a puff of smoke.
19269if test "X${COLLECT_NAMES+set}" != Xset; then
19270  COLLECT_NAMES=
19271  export COLLECT_NAMES
19272fi
19273_LT_EOF
19274    ;;
19275  esac
19276
19277
19278ltmain="$ac_aux_dir/ltmain.sh"
19279
19280
19281  # We use sed instead of cat because bash on DJGPP gets confused if
19282  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19283  # text mode, it properly converts lines to CR/LF.  This bash problem
19284  # is reportedly fixed, but why not run on old versions too?
19285  sed '$q' "$ltmain" >> "$cfgfile" \
19286     || (rm -f "$cfgfile"; exit 1)
19287
19288  if test x"$xsi_shell" = xyes; then
19289  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19290func_dirname ()\
19291{\
19292\    case ${1} in\
19293\      */*) func_dirname_result="${1%/*}${2}" ;;\
19294\      *  ) func_dirname_result="${3}" ;;\
19295\    esac\
19296} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19297  && mv -f "$cfgfile.tmp" "$cfgfile" \
19298    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19299test 0 -eq $? || _lt_function_replace_fail=:
19300
19301
19302  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19303func_basename ()\
19304{\
19305\    func_basename_result="${1##*/}"\
19306} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19307  && mv -f "$cfgfile.tmp" "$cfgfile" \
19308    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19309test 0 -eq $? || _lt_function_replace_fail=:
19310
19311
19312  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19313func_dirname_and_basename ()\
19314{\
19315\    case ${1} in\
19316\      */*) func_dirname_result="${1%/*}${2}" ;;\
19317\      *  ) func_dirname_result="${3}" ;;\
19318\    esac\
19319\    func_basename_result="${1##*/}"\
19320} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19321  && mv -f "$cfgfile.tmp" "$cfgfile" \
19322    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19323test 0 -eq $? || _lt_function_replace_fail=:
19324
19325
19326  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19327func_stripname ()\
19328{\
19329\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19330\    # positional parameters, so assign one to ordinary parameter first.\
19331\    func_stripname_result=${3}\
19332\    func_stripname_result=${func_stripname_result#"${1}"}\
19333\    func_stripname_result=${func_stripname_result%"${2}"}\
19334} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19335  && mv -f "$cfgfile.tmp" "$cfgfile" \
19336    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19337test 0 -eq $? || _lt_function_replace_fail=:
19338
19339
19340  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19341func_split_long_opt ()\
19342{\
19343\    func_split_long_opt_name=${1%%=*}\
19344\    func_split_long_opt_arg=${1#*=}\
19345} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19346  && mv -f "$cfgfile.tmp" "$cfgfile" \
19347    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19348test 0 -eq $? || _lt_function_replace_fail=:
19349
19350
19351  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19352func_split_short_opt ()\
19353{\
19354\    func_split_short_opt_arg=${1#??}\
19355\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19356} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19357  && mv -f "$cfgfile.tmp" "$cfgfile" \
19358    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19359test 0 -eq $? || _lt_function_replace_fail=:
19360
19361
19362  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19363func_lo2o ()\
19364{\
19365\    case ${1} in\
19366\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19367\      *)    func_lo2o_result=${1} ;;\
19368\    esac\
19369} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19370  && mv -f "$cfgfile.tmp" "$cfgfile" \
19371    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19372test 0 -eq $? || _lt_function_replace_fail=:
19373
19374
19375  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19376func_xform ()\
19377{\
19378    func_xform_result=${1%.*}.lo\
19379} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19380  && mv -f "$cfgfile.tmp" "$cfgfile" \
19381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19382test 0 -eq $? || _lt_function_replace_fail=:
19383
19384
19385  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19386func_arith ()\
19387{\
19388    func_arith_result=$(( $* ))\
19389} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19390  && mv -f "$cfgfile.tmp" "$cfgfile" \
19391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19392test 0 -eq $? || _lt_function_replace_fail=:
19393
19394
19395  sed -e '/^func_len ()$/,/^} # func_len /c\
19396func_len ()\
19397{\
19398    func_len_result=${#1}\
19399} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19400  && mv -f "$cfgfile.tmp" "$cfgfile" \
19401    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19402test 0 -eq $? || _lt_function_replace_fail=:
19403
19404fi
19405
19406if test x"$lt_shell_append" = xyes; then
19407  sed -e '/^func_append ()$/,/^} # func_append /c\
19408func_append ()\
19409{\
19410    eval "${1}+=\\${2}"\
19411} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19412  && mv -f "$cfgfile.tmp" "$cfgfile" \
19413    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19414test 0 -eq $? || _lt_function_replace_fail=:
19415
19416
19417  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19418func_append_quoted ()\
19419{\
19420\    func_quote_for_eval "${2}"\
19421\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19422} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19423  && mv -f "$cfgfile.tmp" "$cfgfile" \
19424    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19425test 0 -eq $? || _lt_function_replace_fail=:
19426
19427
19428  # Save a `func_append' function call where possible by direct use of '+='
19429  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19430    && mv -f "$cfgfile.tmp" "$cfgfile" \
19431      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19432  test 0 -eq $? || _lt_function_replace_fail=:
19433else
19434  # Save a `func_append' function call even when '+=' is not available
19435  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19436    && mv -f "$cfgfile.tmp" "$cfgfile" \
19437      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19438  test 0 -eq $? || _lt_function_replace_fail=:
19439fi
19440
19441if test x"$_lt_function_replace_fail" = x":"; then
19442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19443$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19444fi
19445
19446
19447   mv -f "$cfgfile" "$ofile" ||
19448    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19449  chmod +x "$ofile"
19450
19451 ;;
19452
19453  esac
19454done # for ac_tag
19455
19456
19457as_fn_exit 0
19458_ACEOF
19459ac_clean_files=$ac_clean_files_save
19460
19461test $ac_write_fail = 0 ||
19462  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19463
19464
19465# configure is writing to config.log, and then calls config.status.
19466# config.status does its own redirection, appending to config.log.
19467# Unfortunately, on DOS this fails, as config.log is still kept open
19468# by configure, so config.status won't be able to write to it; its
19469# output is simply discarded.  So we exec the FD to /dev/null,
19470# effectively closing config.log, so it can be properly (re)opened and
19471# appended to by config.status.  When coming back to configure, we
19472# need to make the FD available again.
19473if test "$no_create" != yes; then
19474  ac_cs_success=:
19475  ac_config_status_args=
19476  test "$silent" = yes &&
19477    ac_config_status_args="$ac_config_status_args --quiet"
19478  exec 5>/dev/null
19479  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19480  exec 5>>config.log
19481  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19482  # would make configure fail if this is the last instruction.
19483  $ac_cs_success || as_fn_exit 1
19484fi
19485if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19486  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19487$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19488fi
19489
19490
19491