configure revision 0760f5d2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXext 1.3.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601as_awk_strverscmp='
602  # Use only awk features that work with 7th edition Unix awk (1978).
603  # My, what an old awk you have, Mr. Solaris!
604  END {
605    while (length(v1) && length(v2)) {
606      # Set d1 to be the next thing to compare from v1, and likewise for d2.
607      # Normally this is a single character, but if v1 and v2 contain digits,
608      # compare them as integers and fractions as strverscmp does.
609      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610	# Split v1 and v2 into their leading digit string components d1 and d2,
611	# and advance v1 and v2 past the leading digit strings.
612	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616	if (d1 ~ /^0/) {
617	  if (d2 ~ /^0/) {
618	    # Compare two fractions.
619	    while (d1 ~ /^0/ && d2 ~ /^0/) {
620	      d1 = substr(d1, 2); len1--
621	      d2 = substr(d2, 2); len2--
622	    }
623	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624	      # The two components differ in length, and the common prefix
625	      # contains only leading zeros.  Consider the longer to be less.
626	      d1 = -len1
627	      d2 = -len2
628	    } else {
629	      # Otherwise, compare as strings.
630	      d1 = "x" d1
631	      d2 = "x" d2
632	    }
633	  } else {
634	    # A fraction is less than an integer.
635	    exit 1
636	  }
637	} else {
638	  if (d2 ~ /^0/) {
639	    # An integer is greater than a fraction.
640	    exit 2
641	  } else {
642	    # Compare two integers.
643	    d1 += 0
644	    d2 += 0
645	  }
646	}
647      } else {
648	# The normal case, without worrying about digits.
649	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651      }
652      if (d1 < d2) exit 1
653      if (d1 > d2) exit 2
654    }
655    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656    # which mishandles some comparisons of empty strings to integers.
657    if (length(v2)) exit 1
658    if (length(v1)) exit 2
659  }
660'
661
662test -n "$DJDIR" || exec 7<&0 </dev/null
663exec 6>&1
664
665# Name of the host.
666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667# so uname gets run too.
668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670#
671# Initializations.
672#
673ac_default_prefix=/usr/local
674ac_clean_files=
675ac_config_libobj_dir=.
676LIBOBJS=
677cross_compiling=no
678subdirs=
679MFLAGS=
680MAKEFLAGS=
681
682# Identity of this package.
683PACKAGE_NAME='libXext'
684PACKAGE_TARNAME='libXext'
685PACKAGE_VERSION='1.3.5'
686PACKAGE_STRING='libXext 1.3.5'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_subst_vars='am__EXEEXT_FALSE
724am__EXEEXT_TRUE
725LTLIBOBJS
726MAKE_LINT_LIB_FALSE
727MAKE_LINT_LIB_TRUE
728LINTLIB
729LINT_FALSE
730LINT_TRUE
731LINT_FLAGS
732LINT
733LIBOBJS
734XEXT_LIBS
735XEXT_CFLAGS
736XEXT_SOREV
737XTMALLOC_ZERO_CFLAGS
738XMALLOC_ZERO_CFLAGS
739MALLOC_ZERO_CFLAGS
740HAVE_STYLESHEETS_FALSE
741HAVE_STYLESHEETS_TRUE
742XSL_STYLESHEET
743STYLESHEET_SRCDIR
744XORG_SGML_PATH
745HAVE_XSLTPROC_FALSE
746HAVE_XSLTPROC_TRUE
747XSLTPROC
748HAVE_FOP_FALSE
749HAVE_FOP_TRUE
750FOP
751HAVE_XMLTO_FALSE
752HAVE_XMLTO_TRUE
753HAVE_XMLTO_TEXT_FALSE
754HAVE_XMLTO_TEXT_TRUE
755XMLTO
756ENABLE_SPECS_FALSE
757ENABLE_SPECS_TRUE
758MAN_SUBSTS
759XORG_MAN_PAGE
760ADMIN_MAN_DIR
761DRIVER_MAN_DIR
762MISC_MAN_DIR
763FILE_MAN_DIR
764LIB_MAN_DIR
765APP_MAN_DIR
766ADMIN_MAN_SUFFIX
767DRIVER_MAN_SUFFIX
768MISC_MAN_SUFFIX
769FILE_MAN_SUFFIX
770LIB_MAN_SUFFIX
771APP_MAN_SUFFIX
772INSTALL_CMD
773PKG_CONFIG_LIBDIR
774PKG_CONFIG_PATH
775PKG_CONFIG
776CHANGELOG_CMD
777STRICT_CFLAGS
778CWARNFLAGS
779BASE_CFLAGS
780LT_SYS_LIBRARY_PATH
781OTOOL64
782OTOOL
783LIPO
784NMEDIT
785DSYMUTIL
786MANIFEST_TOOL
787RANLIB
788ac_ct_AR
789AR
790DLLTOOL
791OBJDUMP
792FILECMD
793LN_S
794NM
795ac_ct_DUMPBIN
796DUMPBIN
797LD
798FGREP
799EGREP
800GREP
801SED
802host_os
803host_vendor
804host_cpu
805host
806build_os
807build_vendor
808build_cpu
809build
810LIBTOOL
811AM_BACKSLASH
812AM_DEFAULT_VERBOSITY
813AM_DEFAULT_V
814AM_V
815CSCOPE
816ETAGS
817CTAGS
818am__fastdepCC_FALSE
819am__fastdepCC_TRUE
820CCDEPMODE
821am__nodep
822AMDEPBACKSLASH
823AMDEP_FALSE
824AMDEP_TRUE
825am__include
826DEPDIR
827am__untar
828am__tar
829AMTAR
830am__leading_dot
831SET_MAKE
832AWK
833mkdir_p
834MKDIR_P
835INSTALL_STRIP_PROGRAM
836STRIP
837install_sh
838MAKEINFO
839AUTOHEADER
840AUTOMAKE
841AUTOCONF
842ACLOCAL
843VERSION
844PACKAGE
845CYGPATH_W
846am__isrc
847INSTALL_DATA
848INSTALL_SCRIPT
849INSTALL_PROGRAM
850OBJEXT
851EXEEXT
852ac_ct_CC
853CPPFLAGS
854LDFLAGS
855CFLAGS
856CC
857target_alias
858host_alias
859build_alias
860LIBS
861ECHO_T
862ECHO_N
863ECHO_C
864DEFS
865mandir
866localedir
867libdir
868psdir
869pdfdir
870dvidir
871htmldir
872infodir
873docdir
874oldincludedir
875includedir
876runstatedir
877localstatedir
878sharedstatedir
879sysconfdir
880datadir
881datarootdir
882libexecdir
883sbindir
884bindir
885program_transform_name
886prefix
887exec_prefix
888PACKAGE_URL
889PACKAGE_BUGREPORT
890PACKAGE_STRING
891PACKAGE_VERSION
892PACKAGE_TARNAME
893PACKAGE_NAME
894PATH_SEPARATOR
895SHELL
896am__quote'
897ac_subst_files=''
898ac_user_opts='
899enable_option_checking
900enable_dependency_tracking
901enable_silent_rules
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906with_aix_soname
907with_gnu_ld
908with_sysroot
909enable_libtool_lock
910enable_selective_werror
911enable_strict_compilation
912enable_specs
913with_xmlto
914with_fop
915with_xsltproc
916enable_malloc0returnsnull
917with_lint
918enable_lint_library
919'
920      ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928LT_SYS_LIBRARY_PATH
929PKG_CONFIG
930PKG_CONFIG_PATH
931PKG_CONFIG_LIBDIR
932XMLTO
933FOP
934XSLTPROC
935XEXT_CFLAGS
936XEXT_LIBS
937LINT
938LINT_FLAGS'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977runstatedir='${localstatedir}/run'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *=)   ac_optarg= ;;
1004  *)    ac_optarg=yes ;;
1005  esac
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -runstatedir | --runstatedir | --runstatedi | --runstated \
1229  | --runstate | --runstat | --runsta | --runst | --runs \
1230  | --run | --ru | --r)
1231    ac_prev=runstatedir ;;
1232  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234  | --run=* | --ru=* | --r=*)
1235    runstatedir=$ac_optarg ;;
1236
1237  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238    ac_prev=sbindir ;;
1239  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240  | --sbi=* | --sb=*)
1241    sbindir=$ac_optarg ;;
1242
1243  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245  | --sharedst | --shareds | --shared | --share | --shar \
1246  | --sha | --sh)
1247    ac_prev=sharedstatedir ;;
1248  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251  | --sha=* | --sh=*)
1252    sharedstatedir=$ac_optarg ;;
1253
1254  -site | --site | --sit)
1255    ac_prev=site ;;
1256  -site=* | --site=* | --sit=*)
1257    site=$ac_optarg ;;
1258
1259  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260    ac_prev=srcdir ;;
1261  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262    srcdir=$ac_optarg ;;
1263
1264  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265  | --syscon | --sysco | --sysc | --sys | --sy)
1266    ac_prev=sysconfdir ;;
1267  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269    sysconfdir=$ac_optarg ;;
1270
1271  -target | --target | --targe | --targ | --tar | --ta | --t)
1272    ac_prev=target_alias ;;
1273  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274    target_alias=$ac_optarg ;;
1275
1276  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277    verbose=yes ;;
1278
1279  -version | --version | --versio | --versi | --vers | -V)
1280    ac_init_version=: ;;
1281
1282  -with-* | --with-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: \`$ac_useropt'"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=\$ac_optarg ;;
1297
1298  -without-* | --without-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      as_fn_error $? "invalid package name: \`$ac_useropt'"
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=no ;;
1313
1314  --x)
1315    # Obsolete; use --with-x.
1316    with_x=yes ;;
1317
1318  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319  | --x-incl | --x-inc | --x-in | --x-i)
1320    ac_prev=x_includes ;;
1321  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323    x_includes=$ac_optarg ;;
1324
1325  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327    ac_prev=x_libraries ;;
1328  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330    x_libraries=$ac_optarg ;;
1331
1332  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333Try \`$0 --help' for more information"
1334    ;;
1335
1336  *=*)
1337    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338    # Reject names that are not valid shell variable names.
1339    case $ac_envvar in #(
1340      '' | [0-9]* | *[!_$as_cr_alnum]* )
1341      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342    esac
1343    eval $ac_envvar=\$ac_optarg
1344    export $ac_envvar ;;
1345
1346  *)
1347    # FIXME: should be removed in autoconf 3.0.
1348    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352    ;;
1353
1354  esac
1355done
1356
1357if test -n "$ac_prev"; then
1358  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359  as_fn_error $? "missing argument to $ac_option"
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363  case $enable_option_checking in
1364    no) ;;
1365    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367  esac
1368fi
1369
1370# Check all directory arguments for consistency.
1371for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372		datadir sysconfdir sharedstatedir localstatedir includedir \
1373		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374		libdir localedir mandir runstatedir
1375do
1376  eval ac_val=\$$ac_var
1377  # Remove trailing slashes.
1378  case $ac_val in
1379    */ )
1380      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381      eval $ac_var=\$ac_val;;
1382  esac
1383  # Be sure to have absolute directory names.
1384  case $ac_val in
1385    [\\/$]* | ?:[\\/]* )  continue;;
1386    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387  esac
1388  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389done
1390
1391# There might be people who depend on the old broken behavior: `$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400  if test "x$build_alias" = x; then
1401    cross_compiling=maybe
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  as_fn_error $? "working directory cannot be determined"
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423  ac_srcdir_defaulted=yes
1424  # Try the directory containing this script, then the parent directory.
1425  ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428	 X"$as_myself" : 'X\(//\)$' \| \
1429	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430printf "%s\n" X"$as_myself" |
1431    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)[^/].*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)$/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\).*/{
1444	    s//\1/
1445	    q
1446	  }
1447	  s/.*/./; q'`
1448  srcdir=$ac_confdir
1449  if test ! -r "$srcdir/$ac_unique_file"; then
1450    srcdir=..
1451  fi
1452else
1453  ac_srcdir_defaulted=no
1454fi
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487\`configure' configures libXext 1.3.5 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print \`checking ...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for \`--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXext]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libXext 1.3.5:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-dependency-tracking
1567                          do not reject slow dependency extractors
1568  --disable-dependency-tracking
1569                          speeds up one-time build
1570  --enable-silent-rules   less verbose build output (undo: "make V=1")
1571  --disable-silent-rules  verbose build output (undo: "make V=0")
1572  --enable-shared[=PKGS]  build shared libraries [default=yes]
1573  --enable-static[=PKGS]  build static libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --disable-selective-werror
1578                          Turn off selective compiler errors. (default:
1579                          enabled)
1580  --enable-strict-compilation
1581                          Enable all warnings from compiler and make them
1582                          errors (default: disabled)
1583  --enable-specs          Enable building the specs (default: yes)
1584  --enable-malloc0returnsnull
1585                          malloc(0) returns NULL (default: auto)
1586  --enable-lint-library   Create lint library (default: disabled)
1587
1588Optional Packages:
1589  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1590  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1591  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1592                          both]
1593  --with-aix-soname=aix|svr4|both
1594                          shared library versioning (aka "SONAME") variant to
1595                          provide on AIX, [default=aix].
1596  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1598                          compiler's sysroot if not specified).
1599  --with-xmlto            Use xmlto to regenerate documentation (default:
1600                          auto)
1601  --with-fop              Use fop to regenerate documentation (default: auto)
1602  --with-xsltproc         Use xsltproc for the transformation of XML documents
1603                          (default: auto)
1604  --with-lint             Use a lint-style source code checker (default:
1605                          disabled)
1606
1607Some influential environment variables:
1608  CC          C compiler command
1609  CFLAGS      C compiler flags
1610  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1611              nonstandard directory <lib dir>
1612  LIBS        libraries to pass to the linker, e.g. -l<library>
1613  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614              you have headers in a nonstandard directory <include dir>
1615  LT_SYS_LIBRARY_PATH
1616              User-defined run-time library search path.
1617  PKG_CONFIG  path to pkg-config utility
1618  PKG_CONFIG_PATH
1619              directories to add to pkg-config's search path
1620  PKG_CONFIG_LIBDIR
1621              path overriding pkg-config's built-in search path
1622  XMLTO       Path to xmlto command
1623  FOP         Path to fop command
1624  XSLTPROC    Path to xsltproc command
1625  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1626  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1627  LINT        Path to a lint-style command
1628  LINT_FLAGS  Flags for the lint-style command
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
1633Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639  # If there are subdirs, report their specific --help.
1640  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641    test -d "$ac_dir" ||
1642      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643      continue
1644    ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650  # A ".." for each directory in $ac_dir_suffix.
1651  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652  case $ac_top_builddir_sub in
1653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655  esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663  .)  # We are building in place.
1664    ac_srcdir=.
1665    ac_top_srcdir=$ac_top_builddir_sub
1666    ac_abs_top_srcdir=$ac_pwd ;;
1667  [\\/]* | ?:[\\/]* )  # Absolute name.
1668    ac_srcdir=$srcdir$ac_dir_suffix;
1669    ac_top_srcdir=$srcdir
1670    ac_abs_top_srcdir=$srcdir ;;
1671  *) # Relative name.
1672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673    ac_top_srcdir=$ac_top_build_prefix$srcdir
1674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678    cd "$ac_dir" || { ac_status=$?; continue; }
1679    # Check for configure.gnu first; this name is used for a wrapper for
1680    # Metaconfig's "Configure" on case-insensitive file systems.
1681    if test -f "$ac_srcdir/configure.gnu"; then
1682      echo &&
1683      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684    elif test -f "$ac_srcdir/configure"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure" --help=recursive
1687    else
1688      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689    fi || ac_status=$?
1690    cd "$ac_pwd" || { ac_status=$?; break; }
1691  done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696  cat <<\_ACEOF
1697libXext configure 1.3.5
1698generated by GNU Autoconf 2.71
1699
1700Copyright (C) 2021 Free Software Foundation, Inc.
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
1704  exit
1705fi
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext conftest.beam
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724printf "%s\n" "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext
1737then :
1738  ac_retval=0
1739else $as_nop
1740  printf "%s\n" "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751# -------------------------------------------------------
1752# Tests whether HEADER exists and can be compiled using the include files in
1753# INCLUDES, setting the cache variable VAR accordingly.
1754ac_fn_c_check_header_compile ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758printf %s "checking for $2... " >&6; }
1759if eval test \${$3+y}
1760then :
1761  printf %s "(cached) " >&6
1762else $as_nop
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"
1769then :
1770  eval "$3=yes"
1771else $as_nop
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778printf "%s\n" "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_header_compile
1782
1783# ac_fn_c_try_link LINENO
1784# -----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_link ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1790  if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796printf "%s\n" "$ac_try_echo"; } >&5
1797  (eval "$ac_link") 2>conftest.err
1798  ac_status=$?
1799  if test -s conftest.err; then
1800    grep -v '^ *+' conftest.err >conftest.er1
1801    cat conftest.er1 >&5
1802    mv -f conftest.er1 conftest.err
1803  fi
1804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && {
1806	 test -z "$ac_c_werror_flag" ||
1807	 test ! -s conftest.err
1808       } && test -s conftest$ac_exeext && {
1809	 test "$cross_compiling" = yes ||
1810	 test -x conftest$ac_exeext
1811       }
1812then :
1813  ac_retval=0
1814else $as_nop
1815  printf "%s\n" "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818	ac_retval=1
1819fi
1820  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822  # interfere with the next link command; also delete a directory that is
1823  # left behind by Apple's compiler.  We do this before executing the actions.
1824  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_link
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837printf %s "checking for $2... " >&6; }
1838if eval test \${$3+y}
1839then :
1840  printf %s "(cached) " >&6
1841else $as_nop
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849   which can conflict with char $2 (); below.  */
1850
1851#include <limits.h>
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main (void)
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"
1877then :
1878  eval "$3=yes"
1879else $as_nop
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883    conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887printf "%s\n" "$ac_res" >&6; }
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1893# ------------------------------------------------------------------
1894# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1896ac_fn_check_decl ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  as_decl_name=`echo $2|sed 's/ *(.*//'`
1900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901printf %s "checking whether $as_decl_name is declared... " >&6; }
1902if eval test \${$3+y}
1903then :
1904  printf %s "(cached) " >&6
1905else $as_nop
1906  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907  eval ac_save_FLAGS=\$$6
1908  as_fn_append $6 " $5"
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912int
1913main (void)
1914{
1915#ifndef $as_decl_name
1916#ifdef __cplusplus
1917  (void) $as_decl_use;
1918#else
1919  (void) $as_decl_name;
1920#endif
1921#endif
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"
1928then :
1929  eval "$3=yes"
1930else $as_nop
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1934  eval $6=\$ac_save_FLAGS
1935
1936fi
1937eval ac_res=\$$3
1938	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939printf "%s\n" "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_check_decl
1943
1944# ac_fn_c_try_run LINENO
1945# ----------------------
1946# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1947# executables *can* be run.
1948ac_fn_c_try_run ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_link"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957printf "%s\n" "$ac_try_echo"; } >&5
1958  (eval "$ac_link") 2>&5
1959  ac_status=$?
1960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962  { { case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967printf "%s\n" "$ac_try_echo"; } >&5
1968  (eval "$ac_try") 2>&5
1969  ac_status=$?
1970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; }; }
1972then :
1973  ac_retval=0
1974else $as_nop
1975  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1976       printf "%s\n" "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979       ac_retval=$ac_status
1980fi
1981  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983  as_fn_set_status $ac_retval
1984
1985} # ac_fn_c_try_run
1986ac_configure_args_raw=
1987for ac_arg
1988do
1989  case $ac_arg in
1990  *\'*)
1991    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992  esac
1993  as_fn_append ac_configure_args_raw " '$ac_arg'"
1994done
1995
1996case $ac_configure_args_raw in
1997  *$as_nl*)
1998    ac_safe_unquote= ;;
1999  *)
2000    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2001    ac_unsafe_a="$ac_unsafe_z#~"
2002    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2003    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2004esac
2005
2006cat >config.log <<_ACEOF
2007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by libXext $as_me 1.3.5, which was
2011generated by GNU Autoconf 2.71.  Invocation command line was
2012
2013  $ $0$ac_configure_args_raw
2014
2015_ACEOF
2016exec 5>>config.log
2017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  case $as_dir in #(((
2047    '') as_dir=./ ;;
2048    */) ;;
2049    *) as_dir=$as_dir/ ;;
2050  esac
2051    printf "%s\n" "PATH: $as_dir"
2052  done
2053IFS=$as_save_IFS
2054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
2075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078  for ac_arg
2079  do
2080    case $ac_arg in
2081    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083    | -silent | --silent | --silen | --sile | --sil)
2084      continue ;;
2085    *\'*)
2086      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087    esac
2088    case $ac_pass in
2089    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090    2)
2091      as_fn_append ac_configure_args1 " '$ac_arg'"
2092      if test $ac_must_keep_next = true; then
2093	ac_must_keep_next=false # Got value, back to normal.
2094      else
2095	case $ac_arg in
2096	  *=* | --config-cache | -C | -disable-* | --disable-* \
2097	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099	  | -with-* | --with-* | -without-* | --without-* | --x)
2100	    case "$ac_configure_args0 " in
2101	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102	    esac
2103	    ;;
2104	  -* ) ac_must_keep_next=true ;;
2105	esac
2106      fi
2107      as_fn_append ac_configure_args " '$ac_arg'"
2108      ;;
2109    esac
2110  done
2111done
2112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
2114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log.  We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
2118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120trap 'exit_status=$?
2121  # Sanitize IFS.
2122  IFS=" ""	$as_nl"
2123  # Save into config.log some information that might help in debugging.
2124  {
2125    echo
2126
2127    printf "%s\n" "## ---------------- ##
2128## Cache variables. ##
2129## ---------------- ##"
2130    echo
2131    # The following way of writing the cache mishandles newlines in values,
2132(
2133  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134    eval ac_val=\$$ac_var
2135    case $ac_val in #(
2136    *${as_nl}*)
2137      case $ac_var in #(
2138      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140      esac
2141      case $ac_var in #(
2142      _ | IFS | as_nl) ;; #(
2143      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144      *) { eval $ac_var=; unset $ac_var;} ;;
2145      esac ;;
2146    esac
2147  done
2148  (set) 2>&1 |
2149    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150    *${as_nl}ac_space=\ *)
2151      sed -n \
2152	"s/'\''/'\''\\\\'\'''\''/g;
2153	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154      ;; #(
2155    *)
2156      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157      ;;
2158    esac |
2159    sort
2160)
2161    echo
2162
2163    printf "%s\n" "## ----------------- ##
2164## Output variables. ##
2165## ----------------- ##"
2166    echo
2167    for ac_var in $ac_subst_vars
2168    do
2169      eval ac_val=\$$ac_var
2170      case $ac_val in
2171      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172      esac
2173      printf "%s\n" "$ac_var='\''$ac_val'\''"
2174    done | sort
2175    echo
2176
2177    if test -n "$ac_subst_files"; then
2178      printf "%s\n" "## ------------------- ##
2179## File substitutions. ##
2180## ------------------- ##"
2181      echo
2182      for ac_var in $ac_subst_files
2183      do
2184	eval ac_val=\$$ac_var
2185	case $ac_val in
2186	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187	esac
2188	printf "%s\n" "$ac_var='\''$ac_val'\''"
2189      done | sort
2190      echo
2191    fi
2192
2193    if test -s confdefs.h; then
2194      printf "%s\n" "## ----------- ##
2195## confdefs.h. ##
2196## ----------- ##"
2197      echo
2198      cat confdefs.h
2199      echo
2200    fi
2201    test "$ac_signal" != 0 &&
2202      printf "%s\n" "$as_me: caught signal $ac_signal"
2203    printf "%s\n" "$as_me: exit $exit_status"
2204  } >&5
2205  rm -f core *.core core.conftest.* &&
2206    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207    exit $exit_status
2208' 0
2209for ac_signal in 1 2 13 15; do
2210  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211done
2212ac_signal=0
2213
2214# confdefs.h avoids OS command line length limits that DEFS can exceed.
2215rm -f -r conftest* confdefs.h
2216
2217printf "%s\n" "/* confdefs.h */" > confdefs.h
2218
2219# Predefined preprocessor variables.
2220
2221printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2222
2223printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2224
2225printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2226
2227printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2228
2229printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2230
2231printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2232
2233
2234# Let the site file select an alternate cache file if it wants to.
2235# Prefer an explicitly selected file to automatically selected ones.
2236if test -n "$CONFIG_SITE"; then
2237  ac_site_files="$CONFIG_SITE"
2238elif test "x$prefix" != xNONE; then
2239  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2240else
2241  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2242fi
2243
2244for ac_site_file in $ac_site_files
2245do
2246  case $ac_site_file in #(
2247  */*) :
2248     ;; #(
2249  *) :
2250    ac_site_file=./$ac_site_file ;;
2251esac
2252  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2255    sed 's/^/| /' "$ac_site_file" >&5
2256    . "$ac_site_file" \
2257      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2259as_fn_error $? "failed to load site script $ac_site_file
2260See \`config.log' for more details" "$LINENO" 5; }
2261  fi
2262done
2263
2264if test -r "$cache_file"; then
2265  # Some versions of bash will fail to source /dev/null (special files
2266  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2270    case $cache_file in
2271      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272      *)                      . "./$cache_file";;
2273    esac
2274  fi
2275else
2276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2278  >$cache_file
2279fi
2280
2281as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2282# Test code for whether the C compiler supports C89 (global declarations)
2283ac_c_conftest_c89_globals='
2284/* Does the compiler advertise C89 conformance?
2285   Do not test the value of __STDC__, because some compilers set it to 0
2286   while being otherwise adequately conformant. */
2287#if !defined __STDC__
2288# error "Compiler does not advertise C89 conformance"
2289#endif
2290
2291#include <stddef.h>
2292#include <stdarg.h>
2293struct stat;
2294/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2295struct buf { int x; };
2296struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2297static char *e (p, i)
2298     char **p;
2299     int i;
2300{
2301  return p[i];
2302}
2303static char *f (char * (*g) (char **, int), char **p, ...)
2304{
2305  char *s;
2306  va_list v;
2307  va_start (v,p);
2308  s = g (p, va_arg (v,int));
2309  va_end (v);
2310  return s;
2311}
2312
2313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2314   function prototypes and stuff, but not \xHH hex character constants.
2315   These do not provoke an error unfortunately, instead are silently treated
2316   as an "x".  The following induces an error, until -std is added to get
2317   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2318   array size at least.  It is necessary to write \x00 == 0 to get something
2319   that is true only with -std.  */
2320int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2321
2322/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2323   inside strings and character constants.  */
2324#define FOO(x) '\''x'\''
2325int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2326
2327int test (int i, double x);
2328struct s1 {int (*f) (int a);};
2329struct s2 {int (*f) (double a);};
2330int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2331               int, int);'
2332
2333# Test code for whether the C compiler supports C89 (body of main).
2334ac_c_conftest_c89_main='
2335ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2336'
2337
2338# Test code for whether the C compiler supports C99 (global declarations)
2339ac_c_conftest_c99_globals='
2340// Does the compiler advertise C99 conformance?
2341#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2342# error "Compiler does not advertise C99 conformance"
2343#endif
2344
2345#include <stdbool.h>
2346extern int puts (const char *);
2347extern int printf (const char *, ...);
2348extern int dprintf (int, const char *, ...);
2349extern void *malloc (size_t);
2350
2351// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2352// dprintf is used instead of fprintf to avoid needing to declare
2353// FILE and stderr.
2354#define debug(...) dprintf (2, __VA_ARGS__)
2355#define showlist(...) puts (#__VA_ARGS__)
2356#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2357static void
2358test_varargs_macros (void)
2359{
2360  int x = 1234;
2361  int y = 5678;
2362  debug ("Flag");
2363  debug ("X = %d\n", x);
2364  showlist (The first, second, and third items.);
2365  report (x>y, "x is %d but y is %d", x, y);
2366}
2367
2368// Check long long types.
2369#define BIG64 18446744073709551615ull
2370#define BIG32 4294967295ul
2371#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2372#if !BIG_OK
2373  #error "your preprocessor is broken"
2374#endif
2375#if BIG_OK
2376#else
2377  #error "your preprocessor is broken"
2378#endif
2379static long long int bignum = -9223372036854775807LL;
2380static unsigned long long int ubignum = BIG64;
2381
2382struct incomplete_array
2383{
2384  int datasize;
2385  double data[];
2386};
2387
2388struct named_init {
2389  int number;
2390  const wchar_t *name;
2391  double average;
2392};
2393
2394typedef const char *ccp;
2395
2396static inline int
2397test_restrict (ccp restrict text)
2398{
2399  // See if C++-style comments work.
2400  // Iterate through items via the restricted pointer.
2401  // Also check for declarations in for loops.
2402  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2403    continue;
2404  return 0;
2405}
2406
2407// Check varargs and va_copy.
2408static bool
2409test_varargs (const char *format, ...)
2410{
2411  va_list args;
2412  va_start (args, format);
2413  va_list args_copy;
2414  va_copy (args_copy, args);
2415
2416  const char *str = "";
2417  int number = 0;
2418  float fnumber = 0;
2419
2420  while (*format)
2421    {
2422      switch (*format++)
2423	{
2424	case '\''s'\'': // string
2425	  str = va_arg (args_copy, const char *);
2426	  break;
2427	case '\''d'\'': // int
2428	  number = va_arg (args_copy, int);
2429	  break;
2430	case '\''f'\'': // float
2431	  fnumber = va_arg (args_copy, double);
2432	  break;
2433	default:
2434	  break;
2435	}
2436    }
2437  va_end (args_copy);
2438  va_end (args);
2439
2440  return *str && number && fnumber;
2441}
2442'
2443
2444# Test code for whether the C compiler supports C99 (body of main).
2445ac_c_conftest_c99_main='
2446  // Check bool.
2447  _Bool success = false;
2448  success |= (argc != 0);
2449
2450  // Check restrict.
2451  if (test_restrict ("String literal") == 0)
2452    success = true;
2453  char *restrict newvar = "Another string";
2454
2455  // Check varargs.
2456  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2457  test_varargs_macros ();
2458
2459  // Check flexible array members.
2460  struct incomplete_array *ia =
2461    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2462  ia->datasize = 10;
2463  for (int i = 0; i < ia->datasize; ++i)
2464    ia->data[i] = i * 1.234;
2465
2466  // Check named initializers.
2467  struct named_init ni = {
2468    .number = 34,
2469    .name = L"Test wide string",
2470    .average = 543.34343,
2471  };
2472
2473  ni.number = 58;
2474
2475  int dynamic_array[ni.number];
2476  dynamic_array[0] = argv[0][0];
2477  dynamic_array[ni.number - 1] = 543;
2478
2479  // work around unused variable warnings
2480  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2481	 || dynamic_array[ni.number - 1] != 543);
2482'
2483
2484# Test code for whether the C compiler supports C11 (global declarations)
2485ac_c_conftest_c11_globals='
2486// Does the compiler advertise C11 conformance?
2487#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2488# error "Compiler does not advertise C11 conformance"
2489#endif
2490
2491// Check _Alignas.
2492char _Alignas (double) aligned_as_double;
2493char _Alignas (0) no_special_alignment;
2494extern char aligned_as_int;
2495char _Alignas (0) _Alignas (int) aligned_as_int;
2496
2497// Check _Alignof.
2498enum
2499{
2500  int_alignment = _Alignof (int),
2501  int_array_alignment = _Alignof (int[100]),
2502  char_alignment = _Alignof (char)
2503};
2504_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2505
2506// Check _Noreturn.
2507int _Noreturn does_not_return (void) { for (;;) continue; }
2508
2509// Check _Static_assert.
2510struct test_static_assert
2511{
2512  int x;
2513  _Static_assert (sizeof (int) <= sizeof (long int),
2514                  "_Static_assert does not work in struct");
2515  long int y;
2516};
2517
2518// Check UTF-8 literals.
2519#define u8 syntax error!
2520char const utf8_literal[] = u8"happens to be ASCII" "another string";
2521
2522// Check duplicate typedefs.
2523typedef long *long_ptr;
2524typedef long int *long_ptr;
2525typedef long_ptr long_ptr;
2526
2527// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2528struct anonymous
2529{
2530  union {
2531    struct { int i; int j; };
2532    struct { int k; long int l; } w;
2533  };
2534  int m;
2535} v1;
2536'
2537
2538# Test code for whether the C compiler supports C11 (body of main).
2539ac_c_conftest_c11_main='
2540  _Static_assert ((offsetof (struct anonymous, i)
2541		   == offsetof (struct anonymous, w.k)),
2542		  "Anonymous union alignment botch");
2543  v1.i = 2;
2544  v1.w.k = 5;
2545  ok |= v1.i != 5;
2546'
2547
2548# Test code for whether the C compiler supports C11 (complete).
2549ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2550${ac_c_conftest_c99_globals}
2551${ac_c_conftest_c11_globals}
2552
2553int
2554main (int argc, char **argv)
2555{
2556  int ok = 0;
2557  ${ac_c_conftest_c89_main}
2558  ${ac_c_conftest_c99_main}
2559  ${ac_c_conftest_c11_main}
2560  return ok;
2561}
2562"
2563
2564# Test code for whether the C compiler supports C99 (complete).
2565ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2566${ac_c_conftest_c99_globals}
2567
2568int
2569main (int argc, char **argv)
2570{
2571  int ok = 0;
2572  ${ac_c_conftest_c89_main}
2573  ${ac_c_conftest_c99_main}
2574  return ok;
2575}
2576"
2577
2578# Test code for whether the C compiler supports C89 (complete).
2579ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2580
2581int
2582main (int argc, char **argv)
2583{
2584  int ok = 0;
2585  ${ac_c_conftest_c89_main}
2586  return ok;
2587}
2588"
2589
2590as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2591as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2592as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2593as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2594as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2595as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2596as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2597as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2598as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2599as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2600
2601# Auxiliary files required by this configure script.
2602ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2603
2604# Locations in which to look for auxiliary files.
2605ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2606
2607# Search for a directory containing all of the required auxiliary files,
2608# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2609# If we don't find one directory that contains all the files we need,
2610# we report the set of missing files from the *first* directory in
2611# $ac_aux_dir_candidates and give up.
2612ac_missing_aux_files=""
2613ac_first_candidate=:
2614printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616as_found=false
2617for as_dir in $ac_aux_dir_candidates
2618do
2619  IFS=$as_save_IFS
2620  case $as_dir in #(((
2621    '') as_dir=./ ;;
2622    */) ;;
2623    *) as_dir=$as_dir/ ;;
2624  esac
2625  as_found=:
2626
2627  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2628  ac_aux_dir_found=yes
2629  ac_install_sh=
2630  for ac_aux in $ac_aux_files
2631  do
2632    # As a special case, if "install-sh" is required, that requirement
2633    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2634    # and $ac_install_sh is set appropriately for whichever one is found.
2635    if test x"$ac_aux" = x"install-sh"
2636    then
2637      if test -f "${as_dir}install-sh"; then
2638        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2639        ac_install_sh="${as_dir}install-sh -c"
2640      elif test -f "${as_dir}install.sh"; then
2641        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2642        ac_install_sh="${as_dir}install.sh -c"
2643      elif test -f "${as_dir}shtool"; then
2644        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2645        ac_install_sh="${as_dir}shtool install -c"
2646      else
2647        ac_aux_dir_found=no
2648        if $ac_first_candidate; then
2649          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2650        else
2651          break
2652        fi
2653      fi
2654    else
2655      if test -f "${as_dir}${ac_aux}"; then
2656        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2657      else
2658        ac_aux_dir_found=no
2659        if $ac_first_candidate; then
2660          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2661        else
2662          break
2663        fi
2664      fi
2665    fi
2666  done
2667  if test "$ac_aux_dir_found" = yes; then
2668    ac_aux_dir="$as_dir"
2669    break
2670  fi
2671  ac_first_candidate=false
2672
2673  as_found=false
2674done
2675IFS=$as_save_IFS
2676if $as_found
2677then :
2678
2679else $as_nop
2680  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2681fi
2682
2683
2684# These three variables are undocumented and unsupported,
2685# and are intended to be withdrawn in a future Autoconf release.
2686# They can cause serious problems if a builder's source tree is in a directory
2687# whose full name contains unusual characters.
2688if test -f "${ac_aux_dir}config.guess"; then
2689  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2690fi
2691if test -f "${ac_aux_dir}config.sub"; then
2692  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2693fi
2694if test -f "$ac_aux_dir/configure"; then
2695  ac_configure="$SHELL ${ac_aux_dir}configure"
2696fi
2697
2698# Check that the precious variables saved in the cache have kept the same
2699# value.
2700ac_cache_corrupted=false
2701for ac_var in $ac_precious_vars; do
2702  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2703  eval ac_new_set=\$ac_env_${ac_var}_set
2704  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2705  eval ac_new_val=\$ac_env_${ac_var}_value
2706  case $ac_old_set,$ac_new_set in
2707    set,)
2708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710      ac_cache_corrupted=: ;;
2711    ,set)
2712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714      ac_cache_corrupted=: ;;
2715    ,);;
2716    *)
2717      if test "x$ac_old_val" != "x$ac_new_val"; then
2718	# differences in whitespace do not lead to failure.
2719	ac_old_val_w=`echo x $ac_old_val`
2720	ac_new_val_w=`echo x $ac_new_val`
2721	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724	  ac_cache_corrupted=:
2725	else
2726	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728	  eval $ac_var=\$ac_old_val
2729	fi
2730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2731printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2733printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2734      fi;;
2735  esac
2736  # Pass precious variables to config.status.
2737  if test "$ac_new_set" = set; then
2738    case $ac_new_val in
2739    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740    *) ac_arg=$ac_var=$ac_new_val ;;
2741    esac
2742    case " $ac_configure_args " in
2743      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2744      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745    esac
2746  fi
2747done
2748if $ac_cache_corrupted; then
2749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2753  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2754	    and start over" "$LINENO" 5
2755fi
2756## -------------------- ##
2757## Main body of script. ##
2758## -------------------- ##
2759
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766
2767
2768ac_config_headers="$ac_config_headers config.h"
2769
2770
2771
2772# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2773# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2774# to avoid autoconf errors.
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786# Expand $ac_aux_dir to an absolute path.
2787am_aux_dir=`cd "$ac_aux_dir" && pwd`
2788
2789ac_ext=c
2790ac_cpp='$CPP $CPPFLAGS'
2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794if test -n "$ac_tool_prefix"; then
2795  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798printf %s "checking for $ac_word... " >&6; }
2799if test ${ac_cv_prog_CC+y}
2800then :
2801  printf %s "(cached) " >&6
2802else $as_nop
2803  if test -n "$CC"; then
2804  ac_cv_prog_CC="$CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809  IFS=$as_save_IFS
2810  case $as_dir in #(((
2811    '') as_dir=./ ;;
2812    */) ;;
2813    *) as_dir=$as_dir/ ;;
2814  esac
2815    for ac_exec_ext in '' $ac_executable_extensions; do
2816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2817    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2819    break 2
2820  fi
2821done
2822  done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827CC=$ac_cv_prog_CC
2828if test -n "$CC"; then
2829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830printf "%s\n" "$CC" >&6; }
2831else
2832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833printf "%s\n" "no" >&6; }
2834fi
2835
2836
2837fi
2838if test -z "$ac_cv_prog_CC"; then
2839  ac_ct_CC=$CC
2840  # Extract the first word of "gcc", so it can be a program name with args.
2841set dummy gcc; ac_word=$2
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843printf %s "checking for $ac_word... " >&6; }
2844if test ${ac_cv_prog_ac_ct_CC+y}
2845then :
2846  printf %s "(cached) " >&6
2847else $as_nop
2848  if test -n "$ac_ct_CC"; then
2849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  case $as_dir in #(((
2856    '') as_dir=./ ;;
2857    */) ;;
2858    *) as_dir=$as_dir/ ;;
2859  esac
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_ac_ct_CC="gcc"
2863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2875printf "%s\n" "$ac_ct_CC" >&6; }
2876else
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878printf "%s\n" "no" >&6; }
2879fi
2880
2881  if test "x$ac_ct_CC" = x; then
2882    CC=""
2883  else
2884    case $cross_compiling:$ac_tool_warned in
2885yes:)
2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890    CC=$ac_ct_CC
2891  fi
2892else
2893  CC="$ac_cv_prog_CC"
2894fi
2895
2896if test -z "$CC"; then
2897          if test -n "$ac_tool_prefix"; then
2898    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}cc; ac_word=$2
2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901printf %s "checking for $ac_word... " >&6; }
2902if test ${ac_cv_prog_CC+y}
2903then :
2904  printf %s "(cached) " >&6
2905else $as_nop
2906  if test -n "$CC"; then
2907  ac_cv_prog_CC="$CC" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  case $as_dir in #(((
2914    '') as_dir=./ ;;
2915    */) ;;
2916    *) as_dir=$as_dir/ ;;
2917  esac
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_CC="${ac_tool_prefix}cc"
2921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933printf "%s\n" "$CC" >&6; }
2934else
2935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936printf "%s\n" "no" >&6; }
2937fi
2938
2939
2940  fi
2941fi
2942if test -z "$CC"; then
2943  # Extract the first word of "cc", so it can be a program name with args.
2944set dummy cc; ac_word=$2
2945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946printf %s "checking for $ac_word... " >&6; }
2947if test ${ac_cv_prog_CC+y}
2948then :
2949  printf %s "(cached) " >&6
2950else $as_nop
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954  ac_prog_rejected=no
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2967       ac_prog_rejected=yes
2968       continue
2969     fi
2970    ac_cv_prog_CC="cc"
2971    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975  done
2976IFS=$as_save_IFS
2977
2978if test $ac_prog_rejected = yes; then
2979  # We found a bogon in the path, so make sure we never use it.
2980  set dummy $ac_cv_prog_CC
2981  shift
2982  if test $# != 0; then
2983    # We chose a different compiler from the bogus one.
2984    # However, it has the same basename, so the bogon will be chosen
2985    # first if we set CC to just the basename; use the full file name.
2986    shift
2987    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2988  fi
2989fi
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995printf "%s\n" "$CC" >&6; }
2996else
2997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998printf "%s\n" "no" >&6; }
2999fi
3000
3001
3002fi
3003if test -z "$CC"; then
3004  if test -n "$ac_tool_prefix"; then
3005  for ac_prog in cl.exe
3006  do
3007    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010printf %s "checking for $ac_word... " >&6; }
3011if test ${ac_cv_prog_CC+y}
3012then :
3013  printf %s "(cached) " >&6
3014else $as_nop
3015  if test -n "$CC"; then
3016  ac_cv_prog_CC="$CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  case $as_dir in #(((
3023    '') as_dir=./ ;;
3024    */) ;;
3025    *) as_dir=$as_dir/ ;;
3026  esac
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3029    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042printf "%s\n" "$CC" >&6; }
3043else
3044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045printf "%s\n" "no" >&6; }
3046fi
3047
3048
3049    test -n "$CC" && break
3050  done
3051fi
3052if test -z "$CC"; then
3053  ac_ct_CC=$CC
3054  for ac_prog in cl.exe
3055do
3056  # Extract the first word of "$ac_prog", so it can be a program name with args.
3057set dummy $ac_prog; ac_word=$2
3058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059printf %s "checking for $ac_word... " >&6; }
3060if test ${ac_cv_prog_ac_ct_CC+y}
3061then :
3062  printf %s "(cached) " >&6
3063else $as_nop
3064  if test -n "$ac_ct_CC"; then
3065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070  IFS=$as_save_IFS
3071  case $as_dir in #(((
3072    '') as_dir=./ ;;
3073    */) ;;
3074    *) as_dir=$as_dir/ ;;
3075  esac
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_ac_ct_CC="$ac_prog"
3079    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089if test -n "$ac_ct_CC"; then
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091printf "%s\n" "$ac_ct_CC" >&6; }
3092else
3093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094printf "%s\n" "no" >&6; }
3095fi
3096
3097
3098  test -n "$ac_ct_CC" && break
3099done
3100
3101  if test "x$ac_ct_CC" = x; then
3102    CC=""
3103  else
3104    case $cross_compiling:$ac_tool_warned in
3105yes:)
3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108ac_tool_warned=yes ;;
3109esac
3110    CC=$ac_ct_CC
3111  fi
3112fi
3113
3114fi
3115if test -z "$CC"; then
3116  if test -n "$ac_tool_prefix"; then
3117  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3118set dummy ${ac_tool_prefix}clang; ac_word=$2
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120printf %s "checking for $ac_word... " >&6; }
3121if test ${ac_cv_prog_CC+y}
3122then :
3123  printf %s "(cached) " >&6
3124else $as_nop
3125  if test -n "$CC"; then
3126  ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  case $as_dir in #(((
3133    '') as_dir=./ ;;
3134    */) ;;
3135    *) as_dir=$as_dir/ ;;
3136  esac
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3139    ac_cv_prog_CC="${ac_tool_prefix}clang"
3140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148fi
3149CC=$ac_cv_prog_CC
3150if test -n "$CC"; then
3151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152printf "%s\n" "$CC" >&6; }
3153else
3154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155printf "%s\n" "no" >&6; }
3156fi
3157
3158
3159fi
3160if test -z "$ac_cv_prog_CC"; then
3161  ac_ct_CC=$CC
3162  # Extract the first word of "clang", so it can be a program name with args.
3163set dummy clang; ac_word=$2
3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165printf %s "checking for $ac_word... " >&6; }
3166if test ${ac_cv_prog_ac_ct_CC+y}
3167then :
3168  printf %s "(cached) " >&6
3169else $as_nop
3170  if test -n "$ac_ct_CC"; then
3171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  case $as_dir in #(((
3178    '') as_dir=./ ;;
3179    */) ;;
3180    *) as_dir=$as_dir/ ;;
3181  esac
3182    for ac_exec_ext in '' $ac_executable_extensions; do
3183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_ac_ct_CC="clang"
3185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193fi
3194ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195if test -n "$ac_ct_CC"; then
3196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197printf "%s\n" "$ac_ct_CC" >&6; }
3198else
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200printf "%s\n" "no" >&6; }
3201fi
3202
3203  if test "x$ac_ct_CC" = x; then
3204    CC=""
3205  else
3206    case $cross_compiling:$ac_tool_warned in
3207yes:)
3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212    CC=$ac_ct_CC
3213  fi
3214else
3215  CC="$ac_cv_prog_CC"
3216fi
3217
3218fi
3219
3220
3221test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "no acceptable C compiler found in \$PATH
3224See \`config.log' for more details" "$LINENO" 5; }
3225
3226# Provide some information about the compiler.
3227printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228set X $ac_compile
3229ac_compiler=$2
3230for ac_option in --version -v -V -qversion -version; do
3231  { { ac_try="$ac_compiler $ac_option >&5"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237printf "%s\n" "$ac_try_echo"; } >&5
3238  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239  ac_status=$?
3240  if test -s conftest.err; then
3241    sed '10a\
3242... rest of stderr output deleted ...
3243         10q' conftest.err >conftest.er1
3244    cat conftest.er1 >&5
3245  fi
3246  rm -f conftest.er1 conftest.err
3247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }
3249done
3250
3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main (void)
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262ac_clean_files_save=$ac_clean_files
3263ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264# Try to create an executable without -o first, disregard a.out.
3265# It will help us diagnose broken compilers, and finding out an intuition
3266# of exeext.
3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268printf %s "checking whether the C compiler works... " >&6; }
3269ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271# The possible output files:
3272ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274ac_rmfiles=
3275for ac_file in $ac_files
3276do
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280  esac
3281done
3282rm -f $ac_rmfiles
3283
3284if { { ac_try="$ac_link_default"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290printf "%s\n" "$ac_try_echo"; } >&5
3291  (eval "$ac_link_default") 2>&5
3292  ac_status=$?
3293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }
3295then :
3296  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3297# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3298# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3299# so that the user can short-circuit this test for compilers unknown to
3300# Autoconf.
3301for ac_file in $ac_files ''
3302do
3303  test -f "$ac_file" || continue
3304  case $ac_file in
3305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306	;;
3307    [ab].out )
3308	# We found the default executable, but exeext='' is most
3309	# certainly right.
3310	break;;
3311    *.* )
3312	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3313	then :; else
3314	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315	fi
3316	# We set ac_cv_exeext here because the later test for it is not
3317	# safe: cross compilers may not add the suffix if given an `-o'
3318	# argument, so we may need to know it at that point already.
3319	# Even if this section looks crufty: it has the advantage of
3320	# actually working.
3321	break;;
3322    * )
3323	break;;
3324  esac
3325done
3326test "$ac_cv_exeext" = no && ac_cv_exeext=
3327
3328else $as_nop
3329  ac_file=''
3330fi
3331if test -z "$ac_file"
3332then :
3333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334printf "%s\n" "no" >&6; }
3335printf "%s\n" "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3340as_fn_error 77 "C compiler cannot create executables
3341See \`config.log' for more details" "$LINENO" 5; }
3342else $as_nop
3343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344printf "%s\n" "yes" >&6; }
3345fi
3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347printf %s "checking for C compiler default output file name... " >&6; }
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349printf "%s\n" "$ac_file" >&6; }
3350ac_exeext=$ac_cv_exeext
3351
3352rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353ac_clean_files=$ac_clean_files_save
3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355printf %s "checking for suffix of executables... " >&6; }
3356if { { ac_try="$ac_link"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362printf "%s\n" "$ac_try_echo"; } >&5
3363  (eval "$ac_link") 2>&5
3364  ac_status=$?
3365  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366  test $ac_status = 0; }
3367then :
3368  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3370# work properly (i.e., refer to `conftest.exe'), while it won't with
3371# `rm'.
3372for ac_file in conftest.exe conftest conftest.*; do
3373  test -f "$ac_file" || continue
3374  case $ac_file in
3375    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377	  break;;
3378    * ) break;;
3379  esac
3380done
3381else $as_nop
3382  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385See \`config.log' for more details" "$LINENO" 5; }
3386fi
3387rm -f conftest conftest$ac_cv_exeext
3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389printf "%s\n" "$ac_cv_exeext" >&6; }
3390
3391rm -f conftest.$ac_ext
3392EXEEXT=$ac_cv_exeext
3393ac_exeext=$EXEEXT
3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h.  */
3396#include <stdio.h>
3397int
3398main (void)
3399{
3400FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3402
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407ac_clean_files="$ac_clean_files conftest.out"
3408# Check that the compiler produces executables we can run.  If not, either
3409# the compiler is broken, or we cross compile.
3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411printf %s "checking whether we are cross compiling... " >&6; }
3412if test "$cross_compiling" != yes; then
3413  { { ac_try="$ac_link"
3414case "(($ac_try" in
3415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416  *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419printf "%s\n" "$ac_try_echo"; } >&5
3420  (eval "$ac_link") 2>&5
3421  ac_status=$?
3422  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423  test $ac_status = 0; }
3424  if { ac_try='./conftest$ac_cv_exeext'
3425  { { case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430printf "%s\n" "$ac_try_echo"; } >&5
3431  (eval "$ac_try") 2>&5
3432  ac_status=$?
3433  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434  test $ac_status = 0; }; }; then
3435    cross_compiling=no
3436  else
3437    if test "$cross_compiling" = maybe; then
3438	cross_compiling=yes
3439    else
3440	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error 77 "cannot run C compiled programs.
3443If you meant to cross compile, use \`--host'.
3444See \`config.log' for more details" "$LINENO" 5; }
3445    fi
3446  fi
3447fi
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449printf "%s\n" "$cross_compiling" >&6; }
3450
3451rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452ac_clean_files=$ac_clean_files_save
3453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454printf %s "checking for suffix of object files... " >&6; }
3455if test ${ac_cv_objext+y}
3456then :
3457  printf %s "(cached) " >&6
3458else $as_nop
3459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461
3462int
3463main (void)
3464{
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470rm -f conftest.o conftest.obj
3471if { { ac_try="$ac_compile"
3472case "(($ac_try" in
3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474  *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477printf "%s\n" "$ac_try_echo"; } >&5
3478  (eval "$ac_compile") 2>&5
3479  ac_status=$?
3480  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481  test $ac_status = 0; }
3482then :
3483  for ac_file in conftest.o conftest.obj conftest.*; do
3484  test -f "$ac_file" || continue;
3485  case $ac_file in
3486    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488       break;;
3489  esac
3490done
3491else $as_nop
3492  printf "%s\n" "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3497as_fn_error $? "cannot compute suffix of object files: cannot compile
3498See \`config.log' for more details" "$LINENO" 5; }
3499fi
3500rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501fi
3502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503printf "%s\n" "$ac_cv_objext" >&6; }
3504OBJEXT=$ac_cv_objext
3505ac_objext=$OBJEXT
3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3507printf %s "checking whether the compiler supports GNU C... " >&6; }
3508if test ${ac_cv_c_compiler_gnu+y}
3509then :
3510  printf %s "(cached) " >&6
3511else $as_nop
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main (void)
3517{
3518#ifndef __GNUC__
3519       choke me
3520#endif
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"
3527then :
3528  ac_compiler_gnu=yes
3529else $as_nop
3530  ac_compiler_gnu=no
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3533ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
3535fi
3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540if test $ac_compiler_gnu = yes; then
3541  GCC=yes
3542else
3543  GCC=
3544fi
3545ac_test_CFLAGS=${CFLAGS+y}
3546ac_save_CFLAGS=$CFLAGS
3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3548printf %s "checking whether $CC accepts -g... " >&6; }
3549if test ${ac_cv_prog_cc_g+y}
3550then :
3551  printf %s "(cached) " >&6
3552else $as_nop
3553  ac_save_c_werror_flag=$ac_c_werror_flag
3554   ac_c_werror_flag=yes
3555   ac_cv_prog_cc_g=no
3556   CFLAGS="-g"
3557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main (void)
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"
3569then :
3570  ac_cv_prog_cc_g=yes
3571else $as_nop
3572  CFLAGS=""
3573      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576int
3577main (void)
3578{
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"
3585then :
3586
3587else $as_nop
3588  ac_c_werror_flag=$ac_save_c_werror_flag
3589	 CFLAGS="-g"
3590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main (void)
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_c_try_compile "$LINENO"
3602then :
3603  ac_cv_prog_cc_g=yes
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3610   ac_c_werror_flag=$ac_save_c_werror_flag
3611fi
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3614if test $ac_test_CFLAGS; then
3615  CFLAGS=$ac_save_CFLAGS
3616elif test $ac_cv_prog_cc_g = yes; then
3617  if test "$GCC" = yes; then
3618    CFLAGS="-g -O2"
3619  else
3620    CFLAGS="-g"
3621  fi
3622else
3623  if test "$GCC" = yes; then
3624    CFLAGS="-O2"
3625  else
3626    CFLAGS=
3627  fi
3628fi
3629ac_prog_cc_stdc=no
3630if test x$ac_prog_cc_stdc = xno
3631then :
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3633printf %s "checking for $CC option to enable C11 features... " >&6; }
3634if test ${ac_cv_prog_cc_c11+y}
3635then :
3636  printf %s "(cached) " >&6
3637else $as_nop
3638  ac_cv_prog_cc_c11=no
3639ac_save_CC=$CC
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642$ac_c_conftest_c11_program
3643_ACEOF
3644for ac_arg in '' -std=gnu11
3645do
3646  CC="$ac_save_CC $ac_arg"
3647  if ac_fn_c_try_compile "$LINENO"
3648then :
3649  ac_cv_prog_cc_c11=$ac_arg
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.beam
3652  test "x$ac_cv_prog_cc_c11" != "xno" && break
3653done
3654rm -f conftest.$ac_ext
3655CC=$ac_save_CC
3656fi
3657
3658if test "x$ac_cv_prog_cc_c11" = xno
3659then :
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661printf "%s\n" "unsupported" >&6; }
3662else $as_nop
3663  if test "x$ac_cv_prog_cc_c11" = x
3664then :
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666printf "%s\n" "none needed" >&6; }
3667else $as_nop
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3669printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3670     CC="$CC $ac_cv_prog_cc_c11"
3671fi
3672  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3673  ac_prog_cc_stdc=c11
3674fi
3675fi
3676if test x$ac_prog_cc_stdc = xno
3677then :
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3679printf %s "checking for $CC option to enable C99 features... " >&6; }
3680if test ${ac_cv_prog_cc_c99+y}
3681then :
3682  printf %s "(cached) " >&6
3683else $as_nop
3684  ac_cv_prog_cc_c99=no
3685ac_save_CC=$CC
3686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688$ac_c_conftest_c99_program
3689_ACEOF
3690for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3691do
3692  CC="$ac_save_CC $ac_arg"
3693  if ac_fn_c_try_compile "$LINENO"
3694then :
3695  ac_cv_prog_cc_c99=$ac_arg
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.beam
3698  test "x$ac_cv_prog_cc_c99" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702fi
3703
3704if test "x$ac_cv_prog_cc_c99" = xno
3705then :
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707printf "%s\n" "unsupported" >&6; }
3708else $as_nop
3709  if test "x$ac_cv_prog_cc_c99" = x
3710then :
3711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712printf "%s\n" "none needed" >&6; }
3713else $as_nop
3714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3715printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3716     CC="$CC $ac_cv_prog_cc_c99"
3717fi
3718  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3719  ac_prog_cc_stdc=c99
3720fi
3721fi
3722if test x$ac_prog_cc_stdc = xno
3723then :
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3725printf %s "checking for $CC option to enable C89 features... " >&6; }
3726if test ${ac_cv_prog_cc_c89+y}
3727then :
3728  printf %s "(cached) " >&6
3729else $as_nop
3730  ac_cv_prog_cc_c89=no
3731ac_save_CC=$CC
3732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734$ac_c_conftest_c89_program
3735_ACEOF
3736for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737do
3738  CC="$ac_save_CC $ac_arg"
3739  if ac_fn_c_try_compile "$LINENO"
3740then :
3741  ac_cv_prog_cc_c89=$ac_arg
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.beam
3744  test "x$ac_cv_prog_cc_c89" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748fi
3749
3750if test "x$ac_cv_prog_cc_c89" = xno
3751then :
3752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753printf "%s\n" "unsupported" >&6; }
3754else $as_nop
3755  if test "x$ac_cv_prog_cc_c89" = x
3756then :
3757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758printf "%s\n" "none needed" >&6; }
3759else $as_nop
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3762     CC="$CC $ac_cv_prog_cc_c89"
3763fi
3764  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3765  ac_prog_cc_stdc=c89
3766fi
3767fi
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775
3776  ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3782printf %s "checking whether $CC understands -c and -o together... " >&6; }
3783if test ${am_cv_prog_cc_c_o+y}
3784then :
3785  printf %s "(cached) " >&6
3786else $as_nop
3787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789
3790int
3791main (void)
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798  # Make sure it works both with $CC and with simple cc.
3799  # Following AC_PROG_CC_C_O, we do the test twice because some
3800  # compilers refuse to overwrite an existing .o file with -o,
3801  # though they will create one.
3802  am_cv_prog_cc_c_o=yes
3803  for am_i in 1 2; do
3804    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3805   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } \
3809         && test -f conftest2.$ac_objext; then
3810      : OK
3811    else
3812      am_cv_prog_cc_c_o=no
3813      break
3814    fi
3815  done
3816  rm -f core conftest*
3817  unset am_i
3818fi
3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3820printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3821if test "$am_cv_prog_cc_c_o" != yes; then
3822   # Losing compiler, so override with the script.
3823   # FIXME: It is wrong to rewrite CC.
3824   # But if we don't then we get into trouble of one sort or another.
3825   # A longer-term fix would be to have automake use am__CC in this case,
3826   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3827   CC="$am_aux_dir/compile $CC"
3828fi
3829ac_ext=c
3830ac_cpp='$CPP $CPPFLAGS'
3831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835
3836
3837ac_header= ac_cache=
3838for ac_item in $ac_header_c_list
3839do
3840  if test $ac_cache; then
3841    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3842    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3843      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3844    fi
3845    ac_header= ac_cache=
3846  elif test $ac_header; then
3847    ac_cache=$ac_item
3848  else
3849    ac_header=$ac_item
3850  fi
3851done
3852
3853
3854
3855
3856
3857
3858
3859
3860if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3861then :
3862
3863printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3864
3865fi
3866
3867
3868
3869
3870
3871
3872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874if test ${ac_cv_safe_to_define___extensions__+y}
3875then :
3876  printf %s "(cached) " >&6
3877else $as_nop
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881#         define __EXTENSIONS__ 1
3882          $ac_includes_default
3883int
3884main (void)
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"
3892then :
3893  ac_cv_safe_to_define___extensions__=yes
3894else $as_nop
3895  ac_cv_safe_to_define___extensions__=no
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3898fi
3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3900printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3901
3902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3903printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3904if test ${ac_cv_should_define__xopen_source+y}
3905then :
3906  printf %s "(cached) " >&6
3907else $as_nop
3908  ac_cv_should_define__xopen_source=no
3909    if test $ac_cv_header_wchar_h = yes
3910then :
3911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914          #include <wchar.h>
3915          mbstate_t x;
3916int
3917main (void)
3918{
3919
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"
3925then :
3926
3927else $as_nop
3928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h.  */
3930
3931            #define _XOPEN_SOURCE 500
3932            #include <wchar.h>
3933            mbstate_t x;
3934int
3935main (void)
3936{
3937
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942if ac_fn_c_try_compile "$LINENO"
3943then :
3944  ac_cv_should_define__xopen_source=yes
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3949fi
3950fi
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3952printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3953
3954  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3955
3956  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3957
3958  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3959
3960  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3961
3962  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3963
3964  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3965
3966  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3967
3968  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3969
3970  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3971
3972  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3973
3974  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3975
3976  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3977
3978  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3979
3980  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3981
3982  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3983
3984  if test $ac_cv_header_minix_config_h = yes
3985then :
3986  MINIX=yes
3987    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3988
3989    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3990
3991    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3992
3993else $as_nop
3994  MINIX=
3995fi
3996  if test $ac_cv_safe_to_define___extensions__ = yes
3997then :
3998  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3999
4000fi
4001  if test $ac_cv_should_define__xopen_source = yes
4002then :
4003  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4004
4005fi
4006
4007
4008# Initialize Automake
4009am__api_version='1.16'
4010
4011
4012  # Find a good install program.  We prefer a C program (faster),
4013# so one script is as good as another.  But avoid the broken or
4014# incompatible versions:
4015# SysV /etc/install, /usr/sbin/install
4016# SunOS /usr/etc/install
4017# IRIX /sbin/install
4018# AIX /bin/install
4019# AmigaOS /C/install, which installs bootblocks on floppy discs
4020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4023# OS/2's system install, which has a completely different semantic
4024# ./install, which can be erroneously created by make from ./install.sh.
4025# Reject install programs that cannot install multiple files.
4026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4027printf %s "checking for a BSD-compatible install... " >&6; }
4028if test -z "$INSTALL"; then
4029if test ${ac_cv_path_install+y}
4030then :
4031  printf %s "(cached) " >&6
4032else $as_nop
4033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036  IFS=$as_save_IFS
4037  case $as_dir in #(((
4038    '') as_dir=./ ;;
4039    */) ;;
4040    *) as_dir=$as_dir/ ;;
4041  esac
4042    # Account for fact that we put trailing slashes in our PATH walk.
4043case $as_dir in #((
4044  ./ | /[cC]/* | \
4045  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4046  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4047  /usr/ucb/* ) ;;
4048  *)
4049    # OSF1 and SCO ODT 3.0 have their own names for install.
4050    # Don't use installbsd from OSF since it installs stuff as root
4051    # by default.
4052    for ac_prog in ginstall scoinst install; do
4053      for ac_exec_ext in '' $ac_executable_extensions; do
4054	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4055	  if test $ac_prog = install &&
4056	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057	    # AIX install.  It has an incompatible calling convention.
4058	    :
4059	  elif test $ac_prog = install &&
4060	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4061	    # program-specific install script used by HP pwplus--don't use.
4062	    :
4063	  else
4064	    rm -rf conftest.one conftest.two conftest.dir
4065	    echo one > conftest.one
4066	    echo two > conftest.two
4067	    mkdir conftest.dir
4068	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4069	      test -s conftest.one && test -s conftest.two &&
4070	      test -s conftest.dir/conftest.one &&
4071	      test -s conftest.dir/conftest.two
4072	    then
4073	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4074	      break 3
4075	    fi
4076	  fi
4077	fi
4078      done
4079    done
4080    ;;
4081esac
4082
4083  done
4084IFS=$as_save_IFS
4085
4086rm -rf conftest.one conftest.two conftest.dir
4087
4088fi
4089  if test ${ac_cv_path_install+y}; then
4090    INSTALL=$ac_cv_path_install
4091  else
4092    # As a last resort, use the slow shell script.  Don't cache a
4093    # value for INSTALL within a source directory, because that will
4094    # break other packages using the cache if that directory is
4095    # removed, or if the value is a relative name.
4096    INSTALL=$ac_install_sh
4097  fi
4098fi
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4100printf "%s\n" "$INSTALL" >&6; }
4101
4102# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4103# It thinks the first close brace ends the variable substitution.
4104test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4105
4106test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4107
4108test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4111printf %s "checking whether build environment is sane... " >&6; }
4112# Reject unsafe characters in $srcdir or the absolute working directory
4113# name.  Accept space and tab only in the latter.
4114am_lf='
4115'
4116case `pwd` in
4117  *[\\\"\#\$\&\'\`$am_lf]*)
4118    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4119esac
4120case $srcdir in
4121  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4122    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4123esac
4124
4125# Do 'set' in a subshell so we don't clobber the current shell's
4126# arguments.  Must try -L first in case configure is actually a
4127# symlink; some systems play weird games with the mod time of symlinks
4128# (eg FreeBSD returns the mod time of the symlink's containing
4129# directory).
4130if (
4131   am_has_slept=no
4132   for am_try in 1 2; do
4133     echo "timestamp, slept: $am_has_slept" > conftest.file
4134     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4135     if test "$*" = "X"; then
4136	# -L didn't work.
4137	set X `ls -t "$srcdir/configure" conftest.file`
4138     fi
4139     if test "$*" != "X $srcdir/configure conftest.file" \
4140	&& test "$*" != "X conftest.file $srcdir/configure"; then
4141
4142	# If neither matched, then we have a broken ls.  This can happen
4143	# if, for instance, CONFIG_SHELL is bash and it inherits a
4144	# broken ls alias from the environment.  This has actually
4145	# happened.  Such a system could not be considered "sane".
4146	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4147  alias in your environment" "$LINENO" 5
4148     fi
4149     if test "$2" = conftest.file || test $am_try -eq 2; then
4150       break
4151     fi
4152     # Just in case.
4153     sleep 1
4154     am_has_slept=yes
4155   done
4156   test "$2" = conftest.file
4157   )
4158then
4159   # Ok.
4160   :
4161else
4162   as_fn_error $? "newly created file is older than distributed files!
4163Check your system clock" "$LINENO" 5
4164fi
4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166printf "%s\n" "yes" >&6; }
4167# If we didn't sleep, we still need to ensure time stamps of config.status and
4168# generated files are strictly newer.
4169am_sleep_pid=
4170if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4171  ( sleep 1 ) &
4172  am_sleep_pid=$!
4173fi
4174
4175rm -f conftest.file
4176
4177test "$program_prefix" != NONE &&
4178  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4179# Use a double $ so make ignores it.
4180test "$program_suffix" != NONE &&
4181  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4182# Double any \ or $.
4183# By default was `s,x,x', remove it if useless.
4184ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4185program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4186
4187
4188  if test x"${MISSING+set}" != xset; then
4189  MISSING="\${SHELL} '$am_aux_dir/missing'"
4190fi
4191# Use eval to expand $SHELL
4192if eval "$MISSING --is-lightweight"; then
4193  am_missing_run="$MISSING "
4194else
4195  am_missing_run=
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4197printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4198fi
4199
4200if test x"${install_sh+set}" != xset; then
4201  case $am_aux_dir in
4202  *\ * | *\	*)
4203    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4204  *)
4205    install_sh="\${SHELL} $am_aux_dir/install-sh"
4206  esac
4207fi
4208
4209# Installed binaries are usually stripped using 'strip' when the user
4210# run "make install-strip".  However 'strip' might not be the right
4211# tool to use in cross-compilation environments, therefore Automake
4212# will honor the 'STRIP' environment variable to overrule this program.
4213if test "$cross_compiling" != no; then
4214  if test -n "$ac_tool_prefix"; then
4215  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4216set dummy ${ac_tool_prefix}strip; ac_word=$2
4217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218printf %s "checking for $ac_word... " >&6; }
4219if test ${ac_cv_prog_STRIP+y}
4220then :
4221  printf %s "(cached) " >&6
4222else $as_nop
4223  if test -n "$STRIP"; then
4224  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4225else
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229  IFS=$as_save_IFS
4230  case $as_dir in #(((
4231    '') as_dir=./ ;;
4232    */) ;;
4233    *) as_dir=$as_dir/ ;;
4234  esac
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4237    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4238    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242  done
4243IFS=$as_save_IFS
4244
4245fi
4246fi
4247STRIP=$ac_cv_prog_STRIP
4248if test -n "$STRIP"; then
4249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4250printf "%s\n" "$STRIP" >&6; }
4251else
4252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253printf "%s\n" "no" >&6; }
4254fi
4255
4256
4257fi
4258if test -z "$ac_cv_prog_STRIP"; then
4259  ac_ct_STRIP=$STRIP
4260  # Extract the first word of "strip", so it can be a program name with args.
4261set dummy strip; ac_word=$2
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263printf %s "checking for $ac_word... " >&6; }
4264if test ${ac_cv_prog_ac_ct_STRIP+y}
4265then :
4266  printf %s "(cached) " >&6
4267else $as_nop
4268  if test -n "$ac_ct_STRIP"; then
4269  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274  IFS=$as_save_IFS
4275  case $as_dir in #(((
4276    '') as_dir=./ ;;
4277    */) ;;
4278    *) as_dir=$as_dir/ ;;
4279  esac
4280    for ac_exec_ext in '' $ac_executable_extensions; do
4281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282    ac_cv_prog_ac_ct_STRIP="strip"
4283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284    break 2
4285  fi
4286done
4287  done
4288IFS=$as_save_IFS
4289
4290fi
4291fi
4292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4293if test -n "$ac_ct_STRIP"; then
4294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4295printf "%s\n" "$ac_ct_STRIP" >&6; }
4296else
4297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298printf "%s\n" "no" >&6; }
4299fi
4300
4301  if test "x$ac_ct_STRIP" = x; then
4302    STRIP=":"
4303  else
4304    case $cross_compiling:$ac_tool_warned in
4305yes:)
4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308ac_tool_warned=yes ;;
4309esac
4310    STRIP=$ac_ct_STRIP
4311  fi
4312else
4313  STRIP="$ac_cv_prog_STRIP"
4314fi
4315
4316fi
4317INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4318
4319
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4321printf %s "checking for a race-free mkdir -p... " >&6; }
4322if test -z "$MKDIR_P"; then
4323  if test ${ac_cv_path_mkdir+y}
4324then :
4325  printf %s "(cached) " >&6
4326else $as_nop
4327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4329do
4330  IFS=$as_save_IFS
4331  case $as_dir in #(((
4332    '') as_dir=./ ;;
4333    */) ;;
4334    *) as_dir=$as_dir/ ;;
4335  esac
4336    for ac_prog in mkdir gmkdir; do
4337	 for ac_exec_ext in '' $ac_executable_extensions; do
4338	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4339	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4340	     'mkdir ('*'coreutils) '* | \
4341	     'BusyBox '* | \
4342	     'mkdir (fileutils) '4.1*)
4343	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4344	       break 3;;
4345	   esac
4346	 done
4347       done
4348  done
4349IFS=$as_save_IFS
4350
4351fi
4352
4353  test -d ./--version && rmdir ./--version
4354  if test ${ac_cv_path_mkdir+y}; then
4355    MKDIR_P="$ac_cv_path_mkdir -p"
4356  else
4357    # As a last resort, use the slow shell script.  Don't cache a
4358    # value for MKDIR_P within a source directory, because that will
4359    # break other packages using the cache if that directory is
4360    # removed, or if the value is a relative name.
4361    MKDIR_P="$ac_install_sh -d"
4362  fi
4363fi
4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4365printf "%s\n" "$MKDIR_P" >&6; }
4366
4367for ac_prog in gawk mawk nawk awk
4368do
4369  # Extract the first word of "$ac_prog", so it can be a program name with args.
4370set dummy $ac_prog; ac_word=$2
4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372printf %s "checking for $ac_word... " >&6; }
4373if test ${ac_cv_prog_AWK+y}
4374then :
4375  printf %s "(cached) " >&6
4376else $as_nop
4377  if test -n "$AWK"; then
4378  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4379else
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383  IFS=$as_save_IFS
4384  case $as_dir in #(((
4385    '') as_dir=./ ;;
4386    */) ;;
4387    *) as_dir=$as_dir/ ;;
4388  esac
4389    for ac_exec_ext in '' $ac_executable_extensions; do
4390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391    ac_cv_prog_AWK="$ac_prog"
4392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4393    break 2
4394  fi
4395done
4396  done
4397IFS=$as_save_IFS
4398
4399fi
4400fi
4401AWK=$ac_cv_prog_AWK
4402if test -n "$AWK"; then
4403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4404printf "%s\n" "$AWK" >&6; }
4405else
4406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407printf "%s\n" "no" >&6; }
4408fi
4409
4410
4411  test -n "$AWK" && break
4412done
4413
4414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4416set x ${MAKE-make}
4417ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4418if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4419then :
4420  printf %s "(cached) " >&6
4421else $as_nop
4422  cat >conftest.make <<\_ACEOF
4423SHELL = /bin/sh
4424all:
4425	@echo '@@@%%%=$(MAKE)=@@@%%%'
4426_ACEOF
4427# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4428case `${MAKE-make} -f conftest.make 2>/dev/null` in
4429  *@@@%%%=?*=@@@%%%*)
4430    eval ac_cv_prog_make_${ac_make}_set=yes;;
4431  *)
4432    eval ac_cv_prog_make_${ac_make}_set=no;;
4433esac
4434rm -f conftest.make
4435fi
4436if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438printf "%s\n" "yes" >&6; }
4439  SET_MAKE=
4440else
4441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442printf "%s\n" "no" >&6; }
4443  SET_MAKE="MAKE=${MAKE-make}"
4444fi
4445
4446rm -rf .tst 2>/dev/null
4447mkdir .tst 2>/dev/null
4448if test -d .tst; then
4449  am__leading_dot=.
4450else
4451  am__leading_dot=_
4452fi
4453rmdir .tst 2>/dev/null
4454
4455DEPDIR="${am__leading_dot}deps"
4456
4457ac_config_commands="$ac_config_commands depfiles"
4458
4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4460printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4461cat > confinc.mk << 'END'
4462am__doit:
4463	@echo this is the am__doit target >confinc.out
4464.PHONY: am__doit
4465END
4466am__include="#"
4467am__quote=
4468# BSD make does it like this.
4469echo '.include "confinc.mk" # ignored' > confmf.BSD
4470# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4471echo 'include confinc.mk # ignored' > confmf.GNU
4472_am_result=no
4473for s in GNU BSD; do
4474  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4475   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }
4479  case $?:`cat confinc.out 2>/dev/null` in #(
4480  '0:this is the am__doit target') :
4481    case $s in #(
4482  BSD) :
4483    am__include='.include' am__quote='"' ;; #(
4484  *) :
4485    am__include='include' am__quote='' ;;
4486esac ;; #(
4487  *) :
4488     ;;
4489esac
4490  if test "$am__include" != "#"; then
4491    _am_result="yes ($s style)"
4492    break
4493  fi
4494done
4495rm -f confinc.* confmf.*
4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4497printf "%s\n" "${_am_result}" >&6; }
4498
4499# Check whether --enable-dependency-tracking was given.
4500if test ${enable_dependency_tracking+y}
4501then :
4502  enableval=$enable_dependency_tracking;
4503fi
4504
4505if test "x$enable_dependency_tracking" != xno; then
4506  am_depcomp="$ac_aux_dir/depcomp"
4507  AMDEPBACKSLASH='\'
4508  am__nodep='_no'
4509fi
4510 if test "x$enable_dependency_tracking" != xno; then
4511  AMDEP_TRUE=
4512  AMDEP_FALSE='#'
4513else
4514  AMDEP_TRUE='#'
4515  AMDEP_FALSE=
4516fi
4517
4518
4519# Check whether --enable-silent-rules was given.
4520if test ${enable_silent_rules+y}
4521then :
4522  enableval=$enable_silent_rules;
4523fi
4524
4525case $enable_silent_rules in # (((
4526  yes) AM_DEFAULT_VERBOSITY=0;;
4527   no) AM_DEFAULT_VERBOSITY=1;;
4528    *) AM_DEFAULT_VERBOSITY=1;;
4529esac
4530am_make=${MAKE-make}
4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4532printf %s "checking whether $am_make supports nested variables... " >&6; }
4533if test ${am_cv_make_support_nested_variables+y}
4534then :
4535  printf %s "(cached) " >&6
4536else $as_nop
4537  if printf "%s\n" 'TRUE=$(BAR$(V))
4538BAR0=false
4539BAR1=true
4540V=1
4541am__doit:
4542	@$(TRUE)
4543.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4544  am_cv_make_support_nested_variables=yes
4545else
4546  am_cv_make_support_nested_variables=no
4547fi
4548fi
4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4550printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4551if test $am_cv_make_support_nested_variables = yes; then
4552    AM_V='$(V)'
4553  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4554else
4555  AM_V=$AM_DEFAULT_VERBOSITY
4556  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4557fi
4558AM_BACKSLASH='\'
4559
4560if test "`cd $srcdir && pwd`" != "`pwd`"; then
4561  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4562  # is not polluted with repeated "-I."
4563  am__isrc=' -I$(srcdir)'
4564  # test to see if srcdir already configured
4565  if test -f $srcdir/config.status; then
4566    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4567  fi
4568fi
4569
4570# test whether we have cygpath
4571if test -z "$CYGPATH_W"; then
4572  if (cygpath --version) >/dev/null 2>/dev/null; then
4573    CYGPATH_W='cygpath -w'
4574  else
4575    CYGPATH_W=echo
4576  fi
4577fi
4578
4579
4580# Define the identity of the package.
4581 PACKAGE='libXext'
4582 VERSION='1.3.5'
4583
4584
4585printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4586
4587
4588printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4589
4590# Some tools Automake needs.
4591
4592ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4593
4594
4595AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4596
4597
4598AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4599
4600
4601AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4602
4603
4604MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4605
4606# For better backward compatibility.  To be removed once Automake 1.9.x
4607# dies out for good.  For more background, see:
4608# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4609# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4610mkdir_p='$(MKDIR_P)'
4611
4612# We need awk for the "check" target (and possibly the TAP driver).  The
4613# system "awk" is bad on some platforms.
4614# Always define AMTAR for backward compatibility.  Yes, it's still used
4615# in the wild :-(  We should find a proper way to deprecate it ...
4616AMTAR='$${TAR-tar}'
4617
4618
4619# We'll loop over all known methods to create a tar archive until one works.
4620_am_tools='gnutar  pax cpio none'
4621
4622am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4623
4624
4625
4626
4627
4628depcc="$CC"   am_compiler_list=
4629
4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631printf %s "checking dependency style of $depcc... " >&6; }
4632if test ${am_cv_CC_dependencies_compiler_type+y}
4633then :
4634  printf %s "(cached) " >&6
4635else $as_nop
4636  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4637  # We make a subdir and do the tests there.  Otherwise we can end up
4638  # making bogus files that we don't know about and never remove.  For
4639  # instance it was reported that on HP-UX the gcc test will end up
4640  # making a dummy file named 'D' -- because '-MD' means "put the output
4641  # in D".
4642  rm -rf conftest.dir
4643  mkdir conftest.dir
4644  # Copy depcomp to subdir because otherwise we won't find it if we're
4645  # using a relative directory.
4646  cp "$am_depcomp" conftest.dir
4647  cd conftest.dir
4648  # We will build objects and dependencies in a subdirectory because
4649  # it helps to detect inapplicable dependency modes.  For instance
4650  # both Tru64's cc and ICC support -MD to output dependencies as a
4651  # side effect of compilation, but ICC will put the dependencies in
4652  # the current directory while Tru64 will put them in the object
4653  # directory.
4654  mkdir sub
4655
4656  am_cv_CC_dependencies_compiler_type=none
4657  if test "$am_compiler_list" = ""; then
4658     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659  fi
4660  am__universal=false
4661  case " $depcc " in #(
4662     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4663     esac
4664
4665  for depmode in $am_compiler_list; do
4666    # Setup a source with many dependencies, because some compilers
4667    # like to wrap large dependency lists on column 80 (with \), and
4668    # we should not choose a depcomp mode which is confused by this.
4669    #
4670    # We need to recreate these files for each test, as the compiler may
4671    # overwrite some of them when testing with obscure command lines.
4672    # This happens at least with the AIX C compiler.
4673    : > sub/conftest.c
4674    for i in 1 2 3 4 5 6; do
4675      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4676      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4677      # Solaris 10 /bin/sh.
4678      echo '/* dummy */' > sub/conftst$i.h
4679    done
4680    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4681
4682    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4683    # mode.  It turns out that the SunPro C++ compiler does not properly
4684    # handle '-M -o', and we need to detect this.  Also, some Intel
4685    # versions had trouble with output in subdirs.
4686    am__obj=sub/conftest.${OBJEXT-o}
4687    am__minus_obj="-o $am__obj"
4688    case $depmode in
4689    gcc)
4690      # This depmode causes a compiler race in universal mode.
4691      test "$am__universal" = false || continue
4692      ;;
4693    nosideeffect)
4694      # After this tag, mechanisms are not by side-effect, so they'll
4695      # only be used when explicitly requested.
4696      if test "x$enable_dependency_tracking" = xyes; then
4697	continue
4698      else
4699	break
4700      fi
4701      ;;
4702    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4703      # This compiler won't grok '-c -o', but also, the minuso test has
4704      # not run yet.  These depmodes are late enough in the game, and
4705      # so weak that their functioning should not be impacted.
4706      am__obj=conftest.${OBJEXT-o}
4707      am__minus_obj=
4708      ;;
4709    none) break ;;
4710    esac
4711    if depmode=$depmode \
4712       source=sub/conftest.c object=$am__obj \
4713       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4714       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4715         >/dev/null 2>conftest.err &&
4716       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4717       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4718       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4719       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4720      # icc doesn't choke on unknown options, it will just issue warnings
4721      # or remarks (even with -Werror).  So we grep stderr for any message
4722      # that says an option was ignored or not supported.
4723      # When given -MP, icc 7.0 and 7.1 complain thusly:
4724      #   icc: Command line warning: ignoring option '-M'; no argument required
4725      # The diagnosis changed in icc 8.0:
4726      #   icc: Command line remark: option '-MP' not supported
4727      if (grep 'ignoring option' conftest.err ||
4728          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4729        am_cv_CC_dependencies_compiler_type=$depmode
4730        break
4731      fi
4732    fi
4733  done
4734
4735  cd ..
4736  rm -rf conftest.dir
4737else
4738  am_cv_CC_dependencies_compiler_type=none
4739fi
4740
4741fi
4742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4743printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4744CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4745
4746 if
4747  test "x$enable_dependency_tracking" != xno \
4748  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4749  am__fastdepCC_TRUE=
4750  am__fastdepCC_FALSE='#'
4751else
4752  am__fastdepCC_TRUE='#'
4753  am__fastdepCC_FALSE=
4754fi
4755
4756
4757# Variables for tags utilities; see am/tags.am
4758if test -z "$CTAGS"; then
4759  CTAGS=ctags
4760fi
4761
4762if test -z "$ETAGS"; then
4763  ETAGS=etags
4764fi
4765
4766if test -z "$CSCOPE"; then
4767  CSCOPE=cscope
4768fi
4769
4770
4771
4772# POSIX will say in a future version that running "rm -f" with no argument
4773# is OK; and we want to be able to make that assumption in our Makefile
4774# recipes.  So use an aggressive probe to check that the usage we want is
4775# actually supported "in the wild" to an acceptable degree.
4776# See automake bug#10828.
4777# To make any issue more visible, cause the running configure to be aborted
4778# by default if the 'rm' program in use doesn't match our expectations; the
4779# user can still override this though.
4780if rm -f && rm -fr && rm -rf; then : OK; else
4781  cat >&2 <<'END'
4782Oops!
4783
4784Your 'rm' program seems unable to run without file operands specified
4785on the command line, even when the '-f' option is present.  This is contrary
4786to the behaviour of most rm programs out there, and not conforming with
4787the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4788
4789Please tell bug-automake@gnu.org about your system, including the value
4790of your $PATH and any error possibly output before this message.  This
4791can help us improve future automake versions.
4792
4793END
4794  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4795    echo 'Configuration will proceed anyway, since you have set the' >&2
4796    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4797    echo >&2
4798  else
4799    cat >&2 <<'END'
4800Aborting the configuration process, to ensure you take notice of the issue.
4801
4802You can download and install GNU coreutils to get an 'rm' implementation
4803that behaves properly: <https://www.gnu.org/software/coreutils/>.
4804
4805If you want to complete the configuration process using your problematic
4806'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4807to "yes", and re-run configure.
4808
4809END
4810    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4811  fi
4812fi
4813
4814
4815# Initialize libtool
4816case `pwd` in
4817  *\ * | *\	*)
4818    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4819printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4820esac
4821
4822
4823
4824macro_version='2.4.7'
4825macro_revision='2.4.7'
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840ltmain=$ac_aux_dir/ltmain.sh
4841
4842
4843
4844  # Make sure we can run config.sub.
4845$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4846  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4847
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849printf %s "checking build system type... " >&6; }
4850if test ${ac_cv_build+y}
4851then :
4852  printf %s "(cached) " >&6
4853else $as_nop
4854  ac_build_alias=$build_alias
4855test "x$ac_build_alias" = x &&
4856  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4857test "x$ac_build_alias" = x &&
4858  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4859ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4860  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4861
4862fi
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4864printf "%s\n" "$ac_cv_build" >&6; }
4865case $ac_cv_build in
4866*-*-*) ;;
4867*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4868esac
4869build=$ac_cv_build
4870ac_save_IFS=$IFS; IFS='-'
4871set x $ac_cv_build
4872shift
4873build_cpu=$1
4874build_vendor=$2
4875shift; shift
4876# Remember, the first character of IFS is used to create $*,
4877# except with old shells:
4878build_os=$*
4879IFS=$ac_save_IFS
4880case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881
4882
4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4884printf %s "checking host system type... " >&6; }
4885if test ${ac_cv_host+y}
4886then :
4887  printf %s "(cached) " >&6
4888else $as_nop
4889  if test "x$host_alias" = x; then
4890  ac_cv_host=$ac_cv_build
4891else
4892  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4893    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4894fi
4895
4896fi
4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4898printf "%s\n" "$ac_cv_host" >&6; }
4899case $ac_cv_host in
4900*-*-*) ;;
4901*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4902esac
4903host=$ac_cv_host
4904ac_save_IFS=$IFS; IFS='-'
4905set x $ac_cv_host
4906shift
4907host_cpu=$1
4908host_vendor=$2
4909shift; shift
4910# Remember, the first character of IFS is used to create $*,
4911# except with old shells:
4912host_os=$*
4913IFS=$ac_save_IFS
4914case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4915
4916
4917# Backslashify metacharacters that are still active within
4918# double-quoted strings.
4919sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4920
4921# Same as above, but do not quote variable references.
4922double_quote_subst='s/\(["`\\]\)/\\\1/g'
4923
4924# Sed substitution to delay expansion of an escaped shell variable in a
4925# double_quote_subst'ed string.
4926delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4927
4928# Sed substitution to delay expansion of an escaped single quote.
4929delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4930
4931# Sed substitution to avoid accidental globbing in evaled expressions
4932no_glob_subst='s/\*/\\\*/g'
4933
4934ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4935ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4936ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4937
4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4939printf %s "checking how to print strings... " >&6; }
4940# Test print first, because it will be a builtin if present.
4941if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4942   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4943  ECHO='print -r --'
4944elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4945  ECHO='printf %s\n'
4946else
4947  # Use this function as a fallback that always works.
4948  func_fallback_echo ()
4949  {
4950    eval 'cat <<_LTECHO_EOF
4951$1
4952_LTECHO_EOF'
4953  }
4954  ECHO='func_fallback_echo'
4955fi
4956
4957# func_echo_all arg...
4958# Invoke $ECHO with all args, space-separated.
4959func_echo_all ()
4960{
4961    $ECHO ""
4962}
4963
4964case $ECHO in
4965  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4966printf "%s\n" "printf" >&6; } ;;
4967  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4968printf "%s\n" "print -r" >&6; } ;;
4969  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4970printf "%s\n" "cat" >&6; } ;;
4971esac
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4987printf %s "checking for a sed that does not truncate output... " >&6; }
4988if test ${ac_cv_path_SED+y}
4989then :
4990  printf %s "(cached) " >&6
4991else $as_nop
4992            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993     for ac_i in 1 2 3 4 5 6 7; do
4994       ac_script="$ac_script$as_nl$ac_script"
4995     done
4996     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997     { ac_script=; unset ac_script;}
4998     if test -z "$SED"; then
4999  ac_path_SED_found=false
5000  # Loop through the user's path and test for each of PROGNAME-LIST
5001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  case $as_dir in #(((
5006    '') as_dir=./ ;;
5007    */) ;;
5008    *) as_dir=$as_dir/ ;;
5009  esac
5010    for ac_prog in sed gsed
5011   do
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5014      as_fn_executable_p "$ac_path_SED" || continue
5015# Check for GNU ac_path_SED and select it if it is found.
5016  # Check for GNU $ac_path_SED
5017case `"$ac_path_SED" --version 2>&1` in
5018*GNU*)
5019  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020*)
5021  ac_count=0
5022  printf %s 0123456789 >"conftest.in"
5023  while :
5024  do
5025    cat "conftest.in" "conftest.in" >"conftest.tmp"
5026    mv "conftest.tmp" "conftest.in"
5027    cp "conftest.in" "conftest.nl"
5028    printf "%s\n" '' >> "conftest.nl"
5029    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031    as_fn_arith $ac_count + 1 && ac_count=$as_val
5032    if test $ac_count -gt ${ac_path_SED_max-0}; then
5033      # Best one so far, save it but keep looking for a better one
5034      ac_cv_path_SED="$ac_path_SED"
5035      ac_path_SED_max=$ac_count
5036    fi
5037    # 10*(2^10) chars as input seems more than enough
5038    test $ac_count -gt 10 && break
5039  done
5040  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041esac
5042
5043      $ac_path_SED_found && break 3
5044    done
5045  done
5046  done
5047IFS=$as_save_IFS
5048  if test -z "$ac_cv_path_SED"; then
5049    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050  fi
5051else
5052  ac_cv_path_SED=$SED
5053fi
5054
5055fi
5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057printf "%s\n" "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5059  rm -f conftest.sed
5060
5061test -z "$SED" && SED=sed
5062Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5075printf %s "checking for grep that handles long lines and -e... " >&6; }
5076if test ${ac_cv_path_GREP+y}
5077then :
5078  printf %s "(cached) " >&6
5079else $as_nop
5080  if test -z "$GREP"; then
5081  ac_path_GREP_found=false
5082  # Loop through the user's path and test for each of PROGNAME-LIST
5083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085do
5086  IFS=$as_save_IFS
5087  case $as_dir in #(((
5088    '') as_dir=./ ;;
5089    */) ;;
5090    *) as_dir=$as_dir/ ;;
5091  esac
5092    for ac_prog in grep ggrep
5093   do
5094    for ac_exec_ext in '' $ac_executable_extensions; do
5095      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5096      as_fn_executable_p "$ac_path_GREP" || continue
5097# Check for GNU ac_path_GREP and select it if it is found.
5098  # Check for GNU $ac_path_GREP
5099case `"$ac_path_GREP" --version 2>&1` in
5100*GNU*)
5101  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5102*)
5103  ac_count=0
5104  printf %s 0123456789 >"conftest.in"
5105  while :
5106  do
5107    cat "conftest.in" "conftest.in" >"conftest.tmp"
5108    mv "conftest.tmp" "conftest.in"
5109    cp "conftest.in" "conftest.nl"
5110    printf "%s\n" 'GREP' >> "conftest.nl"
5111    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113    as_fn_arith $ac_count + 1 && ac_count=$as_val
5114    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5115      # Best one so far, save it but keep looking for a better one
5116      ac_cv_path_GREP="$ac_path_GREP"
5117      ac_path_GREP_max=$ac_count
5118    fi
5119    # 10*(2^10) chars as input seems more than enough
5120    test $ac_count -gt 10 && break
5121  done
5122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123esac
5124
5125      $ac_path_GREP_found && break 3
5126    done
5127  done
5128  done
5129IFS=$as_save_IFS
5130  if test -z "$ac_cv_path_GREP"; then
5131    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5132  fi
5133else
5134  ac_cv_path_GREP=$GREP
5135fi
5136
5137fi
5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5139printf "%s\n" "$ac_cv_path_GREP" >&6; }
5140 GREP="$ac_cv_path_GREP"
5141
5142
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5144printf %s "checking for egrep... " >&6; }
5145if test ${ac_cv_path_EGREP+y}
5146then :
5147  printf %s "(cached) " >&6
5148else $as_nop
5149  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5150   then ac_cv_path_EGREP="$GREP -E"
5151   else
5152     if test -z "$EGREP"; then
5153  ac_path_EGREP_found=false
5154  # Loop through the user's path and test for each of PROGNAME-LIST
5155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157do
5158  IFS=$as_save_IFS
5159  case $as_dir in #(((
5160    '') as_dir=./ ;;
5161    */) ;;
5162    *) as_dir=$as_dir/ ;;
5163  esac
5164    for ac_prog in egrep
5165   do
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5168      as_fn_executable_p "$ac_path_EGREP" || continue
5169# Check for GNU ac_path_EGREP and select it if it is found.
5170  # Check for GNU $ac_path_EGREP
5171case `"$ac_path_EGREP" --version 2>&1` in
5172*GNU*)
5173  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5174*)
5175  ac_count=0
5176  printf %s 0123456789 >"conftest.in"
5177  while :
5178  do
5179    cat "conftest.in" "conftest.in" >"conftest.tmp"
5180    mv "conftest.tmp" "conftest.in"
5181    cp "conftest.in" "conftest.nl"
5182    printf "%s\n" 'EGREP' >> "conftest.nl"
5183    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185    as_fn_arith $ac_count + 1 && ac_count=$as_val
5186    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5187      # Best one so far, save it but keep looking for a better one
5188      ac_cv_path_EGREP="$ac_path_EGREP"
5189      ac_path_EGREP_max=$ac_count
5190    fi
5191    # 10*(2^10) chars as input seems more than enough
5192    test $ac_count -gt 10 && break
5193  done
5194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195esac
5196
5197      $ac_path_EGREP_found && break 3
5198    done
5199  done
5200  done
5201IFS=$as_save_IFS
5202  if test -z "$ac_cv_path_EGREP"; then
5203    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204  fi
5205else
5206  ac_cv_path_EGREP=$EGREP
5207fi
5208
5209   fi
5210fi
5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5212printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5213 EGREP="$ac_cv_path_EGREP"
5214
5215
5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5217printf %s "checking for fgrep... " >&6; }
5218if test ${ac_cv_path_FGREP+y}
5219then :
5220  printf %s "(cached) " >&6
5221else $as_nop
5222  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5223   then ac_cv_path_FGREP="$GREP -F"
5224   else
5225     if test -z "$FGREP"; then
5226  ac_path_FGREP_found=false
5227  # Loop through the user's path and test for each of PROGNAME-LIST
5228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230do
5231  IFS=$as_save_IFS
5232  case $as_dir in #(((
5233    '') as_dir=./ ;;
5234    */) ;;
5235    *) as_dir=$as_dir/ ;;
5236  esac
5237    for ac_prog in fgrep
5238   do
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5241      as_fn_executable_p "$ac_path_FGREP" || continue
5242# Check for GNU ac_path_FGREP and select it if it is found.
5243  # Check for GNU $ac_path_FGREP
5244case `"$ac_path_FGREP" --version 2>&1` in
5245*GNU*)
5246  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5247*)
5248  ac_count=0
5249  printf %s 0123456789 >"conftest.in"
5250  while :
5251  do
5252    cat "conftest.in" "conftest.in" >"conftest.tmp"
5253    mv "conftest.tmp" "conftest.in"
5254    cp "conftest.in" "conftest.nl"
5255    printf "%s\n" 'FGREP' >> "conftest.nl"
5256    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5257    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5258    as_fn_arith $ac_count + 1 && ac_count=$as_val
5259    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5260      # Best one so far, save it but keep looking for a better one
5261      ac_cv_path_FGREP="$ac_path_FGREP"
5262      ac_path_FGREP_max=$ac_count
5263    fi
5264    # 10*(2^10) chars as input seems more than enough
5265    test $ac_count -gt 10 && break
5266  done
5267  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5268esac
5269
5270      $ac_path_FGREP_found && break 3
5271    done
5272  done
5273  done
5274IFS=$as_save_IFS
5275  if test -z "$ac_cv_path_FGREP"; then
5276    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277  fi
5278else
5279  ac_cv_path_FGREP=$FGREP
5280fi
5281
5282   fi
5283fi
5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5285printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5286 FGREP="$ac_cv_path_FGREP"
5287
5288
5289test -z "$GREP" && GREP=grep
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309# Check whether --with-gnu-ld was given.
5310if test ${with_gnu_ld+y}
5311then :
5312  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5313else $as_nop
5314  with_gnu_ld=no
5315fi
5316
5317ac_prog=ld
5318if test yes = "$GCC"; then
5319  # Check if gcc -print-prog-name=ld gives a path.
5320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5321printf %s "checking for ld used by $CC... " >&6; }
5322  case $host in
5323  *-*-mingw*)
5324    # gcc leaves a trailing carriage return, which upsets mingw
5325    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5326  *)
5327    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328  esac
5329  case $ac_prog in
5330    # Accept absolute paths.
5331    [\\/]* | ?:[\\/]*)
5332      re_direlt='/[^/][^/]*/\.\./'
5333      # Canonicalize the pathname of ld
5334      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5335      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5336	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5337      done
5338      test -z "$LD" && LD=$ac_prog
5339      ;;
5340  "")
5341    # If it fails, then pretend we aren't using GCC.
5342    ac_prog=ld
5343    ;;
5344  *)
5345    # If it is relative, then search for the first ld in PATH.
5346    with_gnu_ld=unknown
5347    ;;
5348  esac
5349elif test yes = "$with_gnu_ld"; then
5350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5351printf %s "checking for GNU ld... " >&6; }
5352else
5353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5354printf %s "checking for non-GNU ld... " >&6; }
5355fi
5356if test ${lt_cv_path_LD+y}
5357then :
5358  printf %s "(cached) " >&6
5359else $as_nop
5360  if test -z "$LD"; then
5361  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5362  for ac_dir in $PATH; do
5363    IFS=$lt_save_ifs
5364    test -z "$ac_dir" && ac_dir=.
5365    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5366      lt_cv_path_LD=$ac_dir/$ac_prog
5367      # Check to see if the program is GNU ld.  I'd rather use --version,
5368      # but apparently some variants of GNU ld only accept -v.
5369      # Break only if it was the GNU/non-GNU ld that we prefer.
5370      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5371      *GNU* | *'with BFD'*)
5372	test no != "$with_gnu_ld" && break
5373	;;
5374      *)
5375	test yes != "$with_gnu_ld" && break
5376	;;
5377      esac
5378    fi
5379  done
5380  IFS=$lt_save_ifs
5381else
5382  lt_cv_path_LD=$LD # Let the user override the test with a path.
5383fi
5384fi
5385
5386LD=$lt_cv_path_LD
5387if test -n "$LD"; then
5388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5389printf "%s\n" "$LD" >&6; }
5390else
5391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392printf "%s\n" "no" >&6; }
5393fi
5394test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5396printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5397if test ${lt_cv_prog_gnu_ld+y}
5398then :
5399  printf %s "(cached) " >&6
5400else $as_nop
5401  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5402case `$LD -v 2>&1 </dev/null` in
5403*GNU* | *'with BFD'*)
5404  lt_cv_prog_gnu_ld=yes
5405  ;;
5406*)
5407  lt_cv_prog_gnu_ld=no
5408  ;;
5409esac
5410fi
5411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5413with_gnu_ld=$lt_cv_prog_gnu_ld
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425if test ${lt_cv_path_NM+y}
5426then :
5427  printf %s "(cached) " >&6
5428else $as_nop
5429  if test -n "$NM"; then
5430  # Let the user override the test.
5431  lt_cv_path_NM=$NM
5432else
5433  lt_nm_to_check=${ac_tool_prefix}nm
5434  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5435    lt_nm_to_check="$lt_nm_to_check nm"
5436  fi
5437  for lt_tmp_nm in $lt_nm_to_check; do
5438    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5439    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5440      IFS=$lt_save_ifs
5441      test -z "$ac_dir" && ac_dir=.
5442      tmp_nm=$ac_dir/$lt_tmp_nm
5443      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5444	# Check to see if the nm accepts a BSD-compat flag.
5445	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5446	#   nm: unknown option "B" ignored
5447	# Tru64's nm complains that /dev/null is an invalid object file
5448	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5449	case $build_os in
5450	mingw*) lt_bad_file=conftest.nm/nofile ;;
5451	*) lt_bad_file=/dev/null ;;
5452	esac
5453	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5454	*$lt_bad_file* | *'Invalid file or object type'*)
5455	  lt_cv_path_NM="$tmp_nm -B"
5456	  break 2
5457	  ;;
5458	*)
5459	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5460	  */dev/null*)
5461	    lt_cv_path_NM="$tmp_nm -p"
5462	    break 2
5463	    ;;
5464	  *)
5465	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466	    continue # so that we can try to find one that supports BSD flags
5467	    ;;
5468	  esac
5469	  ;;
5470	esac
5471      fi
5472    done
5473    IFS=$lt_save_ifs
5474  done
5475  : ${lt_cv_path_NM=no}
5476fi
5477fi
5478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5479printf "%s\n" "$lt_cv_path_NM" >&6; }
5480if test no != "$lt_cv_path_NM"; then
5481  NM=$lt_cv_path_NM
5482else
5483  # Didn't find any BSD compatible name lister, look for dumpbin.
5484  if test -n "$DUMPBIN"; then :
5485    # Let the user override the test.
5486  else
5487    if test -n "$ac_tool_prefix"; then
5488  for ac_prog in dumpbin "link -dump"
5489  do
5490    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493printf %s "checking for $ac_word... " >&6; }
5494if test ${ac_cv_prog_DUMPBIN+y}
5495then :
5496  printf %s "(cached) " >&6
5497else $as_nop
5498  if test -n "$DUMPBIN"; then
5499  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504  IFS=$as_save_IFS
5505  case $as_dir in #(((
5506    '') as_dir=./ ;;
5507    */) ;;
5508    *) as_dir=$as_dir/ ;;
5509  esac
5510    for ac_exec_ext in '' $ac_executable_extensions; do
5511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5512    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5514    break 2
5515  fi
5516done
5517  done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522DUMPBIN=$ac_cv_prog_DUMPBIN
5523if test -n "$DUMPBIN"; then
5524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525printf "%s\n" "$DUMPBIN" >&6; }
5526else
5527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528printf "%s\n" "no" >&6; }
5529fi
5530
5531
5532    test -n "$DUMPBIN" && break
5533  done
5534fi
5535if test -z "$DUMPBIN"; then
5536  ac_ct_DUMPBIN=$DUMPBIN
5537  for ac_prog in dumpbin "link -dump"
5538do
5539  # Extract the first word of "$ac_prog", so it can be a program name with args.
5540set dummy $ac_prog; ac_word=$2
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542printf %s "checking for $ac_word... " >&6; }
5543if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5544then :
5545  printf %s "(cached) " >&6
5546else $as_nop
5547  if test -n "$ac_ct_DUMPBIN"; then
5548  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  case $as_dir in #(((
5555    '') as_dir=./ ;;
5556    */) ;;
5557    *) as_dir=$as_dir/ ;;
5558  esac
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5561    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566  done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5572if test -n "$ac_ct_DUMPBIN"; then
5573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5574printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5575else
5576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577printf "%s\n" "no" >&6; }
5578fi
5579
5580
5581  test -n "$ac_ct_DUMPBIN" && break
5582done
5583
5584  if test "x$ac_ct_DUMPBIN" = x; then
5585    DUMPBIN=":"
5586  else
5587    case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591ac_tool_warned=yes ;;
5592esac
5593    DUMPBIN=$ac_ct_DUMPBIN
5594  fi
5595fi
5596
5597    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5598    *COFF*)
5599      DUMPBIN="$DUMPBIN -symbols -headers"
5600      ;;
5601    *)
5602      DUMPBIN=:
5603      ;;
5604    esac
5605  fi
5606
5607  if test : != "$DUMPBIN"; then
5608    NM=$DUMPBIN
5609  fi
5610fi
5611test -z "$NM" && NM=nm
5612
5613
5614
5615
5616
5617
5618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5619printf %s "checking the name lister ($NM) interface... " >&6; }
5620if test ${lt_cv_nm_interface+y}
5621then :
5622  printf %s "(cached) " >&6
5623else $as_nop
5624  lt_cv_nm_interface="BSD nm"
5625  echo "int some_variable = 0;" > conftest.$ac_ext
5626  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5627  (eval "$ac_compile" 2>conftest.err)
5628  cat conftest.err >&5
5629  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5630  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5631  cat conftest.err >&5
5632  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5633  cat conftest.out >&5
5634  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5635    lt_cv_nm_interface="MS dumpbin"
5636  fi
5637  rm -f conftest*
5638fi
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5640printf "%s\n" "$lt_cv_nm_interface" >&6; }
5641
5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5643printf %s "checking whether ln -s works... " >&6; }
5644LN_S=$as_ln_s
5645if test "$LN_S" = "ln -s"; then
5646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647printf "%s\n" "yes" >&6; }
5648else
5649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5650printf "%s\n" "no, using $LN_S" >&6; }
5651fi
5652
5653# find the maximum length of command line arguments
5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5655printf %s "checking the maximum length of command line arguments... " >&6; }
5656if test ${lt_cv_sys_max_cmd_len+y}
5657then :
5658  printf %s "(cached) " >&6
5659else $as_nop
5660    i=0
5661  teststring=ABCD
5662
5663  case $build_os in
5664  msdosdjgpp*)
5665    # On DJGPP, this test can blow up pretty badly due to problems in libc
5666    # (any single argument exceeding 2000 bytes causes a buffer overrun
5667    # during glob expansion).  Even if it were fixed, the result of this
5668    # check would be larger than it should be.
5669    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5670    ;;
5671
5672  gnu*)
5673    # Under GNU Hurd, this test is not required because there is
5674    # no limit to the length of command line arguments.
5675    # Libtool will interpret -1 as no limit whatsoever
5676    lt_cv_sys_max_cmd_len=-1;
5677    ;;
5678
5679  cygwin* | mingw* | cegcc*)
5680    # On Win9x/ME, this test blows up -- it succeeds, but takes
5681    # about 5 minutes as the teststring grows exponentially.
5682    # Worse, since 9x/ME are not pre-emptively multitasking,
5683    # you end up with a "frozen" computer, even though with patience
5684    # the test eventually succeeds (with a max line length of 256k).
5685    # Instead, let's just punt: use the minimum linelength reported by
5686    # all of the supported platforms: 8192 (on NT/2K/XP).
5687    lt_cv_sys_max_cmd_len=8192;
5688    ;;
5689
5690  mint*)
5691    # On MiNT this can take a long time and run out of memory.
5692    lt_cv_sys_max_cmd_len=8192;
5693    ;;
5694
5695  amigaos*)
5696    # On AmigaOS with pdksh, this test takes hours, literally.
5697    # So we just punt and use a minimum line length of 8192.
5698    lt_cv_sys_max_cmd_len=8192;
5699    ;;
5700
5701  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5702    # This has been around since 386BSD, at least.  Likely further.
5703    if test -x /sbin/sysctl; then
5704      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5705    elif test -x /usr/sbin/sysctl; then
5706      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5707    else
5708      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5709    fi
5710    # And add a safety zone
5711    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713    ;;
5714
5715  interix*)
5716    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5717    lt_cv_sys_max_cmd_len=196608
5718    ;;
5719
5720  os2*)
5721    # The test takes a long time on OS/2.
5722    lt_cv_sys_max_cmd_len=8192
5723    ;;
5724
5725  osf*)
5726    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5727    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5728    # nice to cause kernel panics so lets avoid the loop below.
5729    # First set a reasonable default.
5730    lt_cv_sys_max_cmd_len=16384
5731    #
5732    if test -x /sbin/sysconfig; then
5733      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5734        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5735      esac
5736    fi
5737    ;;
5738  sco3.2v5*)
5739    lt_cv_sys_max_cmd_len=102400
5740    ;;
5741  sysv5* | sco5v6* | sysv4.2uw2*)
5742    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5743    if test -n "$kargmax"; then
5744      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5745    else
5746      lt_cv_sys_max_cmd_len=32768
5747    fi
5748    ;;
5749  *)
5750    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5751    if test -n "$lt_cv_sys_max_cmd_len" && \
5752       test undefined != "$lt_cv_sys_max_cmd_len"; then
5753      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5754      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5755    else
5756      # Make teststring a little bigger before we do anything with it.
5757      # a 1K string should be a reasonable start.
5758      for i in 1 2 3 4 5 6 7 8; do
5759        teststring=$teststring$teststring
5760      done
5761      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5762      # If test is not a shell built-in, we'll probably end up computing a
5763      # maximum length that is only half of the actual maximum length, but
5764      # we can't tell.
5765      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5766	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5767	      test 17 != "$i" # 1/2 MB should be enough
5768      do
5769        i=`expr $i + 1`
5770        teststring=$teststring$teststring
5771      done
5772      # Only check the string length outside the loop.
5773      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5774      teststring=
5775      # Add a significant safety factor because C++ compilers can tack on
5776      # massive amounts of additional arguments before passing them to the
5777      # linker.  It appears as though 1/2 is a usable value.
5778      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5779    fi
5780    ;;
5781  esac
5782
5783fi
5784
5785if test -n "$lt_cv_sys_max_cmd_len"; then
5786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5787printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5788else
5789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5790printf "%s\n" "none" >&6; }
5791fi
5792max_cmd_len=$lt_cv_sys_max_cmd_len
5793
5794
5795
5796
5797
5798
5799: ${CP="cp -f"}
5800: ${MV="mv -f"}
5801: ${RM="rm -f"}
5802
5803if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5804  lt_unset=unset
5805else
5806  lt_unset=false
5807fi
5808
5809
5810
5811
5812
5813# test EBCDIC or ASCII
5814case `echo X|tr X '\101'` in
5815 A) # ASCII based system
5816    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5817  lt_SP2NL='tr \040 \012'
5818  lt_NL2SP='tr \015\012 \040\040'
5819  ;;
5820 *) # EBCDIC based system
5821  lt_SP2NL='tr \100 \n'
5822  lt_NL2SP='tr \r\n \100\100'
5823  ;;
5824esac
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5835printf %s "checking how to convert $build file names to $host format... " >&6; }
5836if test ${lt_cv_to_host_file_cmd+y}
5837then :
5838  printf %s "(cached) " >&6
5839else $as_nop
5840  case $host in
5841  *-*-mingw* )
5842    case $build in
5843      *-*-mingw* ) # actually msys
5844        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5845        ;;
5846      *-*-cygwin* )
5847        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5848        ;;
5849      * ) # otherwise, assume *nix
5850        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5851        ;;
5852    esac
5853    ;;
5854  *-*-cygwin* )
5855    case $build in
5856      *-*-mingw* ) # actually msys
5857        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5858        ;;
5859      *-*-cygwin* )
5860        lt_cv_to_host_file_cmd=func_convert_file_noop
5861        ;;
5862      * ) # otherwise, assume *nix
5863        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5864        ;;
5865    esac
5866    ;;
5867  * ) # unhandled hosts (and "normal" native builds)
5868    lt_cv_to_host_file_cmd=func_convert_file_noop
5869    ;;
5870esac
5871
5872fi
5873
5874to_host_file_cmd=$lt_cv_to_host_file_cmd
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5876printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5877
5878
5879
5880
5881
5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5883printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5884if test ${lt_cv_to_tool_file_cmd+y}
5885then :
5886  printf %s "(cached) " >&6
5887else $as_nop
5888  #assume ordinary cross tools, or native build.
5889lt_cv_to_tool_file_cmd=func_convert_file_noop
5890case $host in
5891  *-*-mingw* )
5892    case $build in
5893      *-*-mingw* ) # actually msys
5894        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5895        ;;
5896    esac
5897    ;;
5898esac
5899
5900fi
5901
5902to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5904printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5905
5906
5907
5908
5909
5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5911printf %s "checking for $LD option to reload object files... " >&6; }
5912if test ${lt_cv_ld_reload_flag+y}
5913then :
5914  printf %s "(cached) " >&6
5915else $as_nop
5916  lt_cv_ld_reload_flag='-r'
5917fi
5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5919printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5920reload_flag=$lt_cv_ld_reload_flag
5921case $reload_flag in
5922"" | " "*) ;;
5923*) reload_flag=" $reload_flag" ;;
5924esac
5925reload_cmds='$LD$reload_flag -o $output$reload_objs'
5926case $host_os in
5927  cygwin* | mingw* | pw32* | cegcc*)
5928    if test yes != "$GCC"; then
5929      reload_cmds=false
5930    fi
5931    ;;
5932  darwin*)
5933    if test yes = "$GCC"; then
5934      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5935    else
5936      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937    fi
5938    ;;
5939esac
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949if test -n "$ac_tool_prefix"; then
5950  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5951set dummy ${ac_tool_prefix}file; ac_word=$2
5952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953printf %s "checking for $ac_word... " >&6; }
5954if test ${ac_cv_prog_FILECMD+y}
5955then :
5956  printf %s "(cached) " >&6
5957else $as_nop
5958  if test -n "$FILECMD"; then
5959  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964  IFS=$as_save_IFS
5965  case $as_dir in #(((
5966    '') as_dir=./ ;;
5967    */) ;;
5968    *) as_dir=$as_dir/ ;;
5969  esac
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5973    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977  done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982FILECMD=$ac_cv_prog_FILECMD
5983if test -n "$FILECMD"; then
5984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5985printf "%s\n" "$FILECMD" >&6; }
5986else
5987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988printf "%s\n" "no" >&6; }
5989fi
5990
5991
5992fi
5993if test -z "$ac_cv_prog_FILECMD"; then
5994  ac_ct_FILECMD=$FILECMD
5995  # Extract the first word of "file", so it can be a program name with args.
5996set dummy file; ac_word=$2
5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998printf %s "checking for $ac_word... " >&6; }
5999if test ${ac_cv_prog_ac_ct_FILECMD+y}
6000then :
6001  printf %s "(cached) " >&6
6002else $as_nop
6003  if test -n "$ac_ct_FILECMD"; then
6004  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009  IFS=$as_save_IFS
6010  case $as_dir in #(((
6011    '') as_dir=./ ;;
6012    */) ;;
6013    *) as_dir=$as_dir/ ;;
6014  esac
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6017    ac_cv_prog_ac_ct_FILECMD="file"
6018    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6019    break 2
6020  fi
6021done
6022  done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6028if test -n "$ac_ct_FILECMD"; then
6029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6030printf "%s\n" "$ac_ct_FILECMD" >&6; }
6031else
6032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033printf "%s\n" "no" >&6; }
6034fi
6035
6036  if test "x$ac_ct_FILECMD" = x; then
6037    FILECMD=":"
6038  else
6039    case $cross_compiling:$ac_tool_warned in
6040yes:)
6041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043ac_tool_warned=yes ;;
6044esac
6045    FILECMD=$ac_ct_FILECMD
6046  fi
6047else
6048  FILECMD="$ac_cv_prog_FILECMD"
6049fi
6050
6051
6052
6053
6054
6055
6056
6057if test -n "$ac_tool_prefix"; then
6058  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6059set dummy ${ac_tool_prefix}objdump; ac_word=$2
6060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061printf %s "checking for $ac_word... " >&6; }
6062if test ${ac_cv_prog_OBJDUMP+y}
6063then :
6064  printf %s "(cached) " >&6
6065else $as_nop
6066  if test -n "$OBJDUMP"; then
6067  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  case $as_dir in #(((
6074    '') as_dir=./ ;;
6075    */) ;;
6076    *) as_dir=$as_dir/ ;;
6077  esac
6078    for ac_exec_ext in '' $ac_executable_extensions; do
6079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6080    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6082    break 2
6083  fi
6084done
6085  done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090OBJDUMP=$ac_cv_prog_OBJDUMP
6091if test -n "$OBJDUMP"; then
6092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6093printf "%s\n" "$OBJDUMP" >&6; }
6094else
6095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096printf "%s\n" "no" >&6; }
6097fi
6098
6099
6100fi
6101if test -z "$ac_cv_prog_OBJDUMP"; then
6102  ac_ct_OBJDUMP=$OBJDUMP
6103  # Extract the first word of "objdump", so it can be a program name with args.
6104set dummy objdump; ac_word=$2
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106printf %s "checking for $ac_word... " >&6; }
6107if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6108then :
6109  printf %s "(cached) " >&6
6110else $as_nop
6111  if test -n "$ac_ct_OBJDUMP"; then
6112  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  case $as_dir in #(((
6119    '') as_dir=./ ;;
6120    */) ;;
6121    *) as_dir=$as_dir/ ;;
6122  esac
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6126    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6136if test -n "$ac_ct_OBJDUMP"; then
6137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6138printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6139else
6140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141printf "%s\n" "no" >&6; }
6142fi
6143
6144  if test "x$ac_ct_OBJDUMP" = x; then
6145    OBJDUMP="false"
6146  else
6147    case $cross_compiling:$ac_tool_warned in
6148yes:)
6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153    OBJDUMP=$ac_ct_OBJDUMP
6154  fi
6155else
6156  OBJDUMP="$ac_cv_prog_OBJDUMP"
6157fi
6158
6159test -z "$OBJDUMP" && OBJDUMP=objdump
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6170printf %s "checking how to recognize dependent libraries... " >&6; }
6171if test ${lt_cv_deplibs_check_method+y}
6172then :
6173  printf %s "(cached) " >&6
6174else $as_nop
6175  lt_cv_file_magic_cmd='$MAGIC_CMD'
6176lt_cv_file_magic_test_file=
6177lt_cv_deplibs_check_method='unknown'
6178# Need to set the preceding variable on all platforms that support
6179# interlibrary dependencies.
6180# 'none' -- dependencies not supported.
6181# 'unknown' -- same as none, but documents that we really don't know.
6182# 'pass_all' -- all dependencies passed with no checks.
6183# 'test_compile' -- check by making test program.
6184# 'file_magic [[regex]]' -- check by looking for files in library path
6185# that responds to the $file_magic_cmd with a given extended regex.
6186# If you have 'file' or equivalent on your system and you're not sure
6187# whether 'pass_all' will *always* work, you probably want this one.
6188
6189case $host_os in
6190aix[4-9]*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193
6194beos*)
6195  lt_cv_deplibs_check_method=pass_all
6196  ;;
6197
6198bsdi[45]*)
6199  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6200  lt_cv_file_magic_cmd='$FILECMD -L'
6201  lt_cv_file_magic_test_file=/shlib/libc.so
6202  ;;
6203
6204cygwin*)
6205  # func_win32_libid is a shell function defined in ltmain.sh
6206  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207  lt_cv_file_magic_cmd='func_win32_libid'
6208  ;;
6209
6210mingw* | pw32*)
6211  # Base MSYS/MinGW do not provide the 'file' command needed by
6212  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6213  # unless we find 'file', for example because we are cross-compiling.
6214  if ( file / ) >/dev/null 2>&1; then
6215    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6216    lt_cv_file_magic_cmd='func_win32_libid'
6217  else
6218    # Keep this pattern in sync with the one in func_win32_libid.
6219    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6220    lt_cv_file_magic_cmd='$OBJDUMP -f'
6221  fi
6222  ;;
6223
6224cegcc*)
6225  # use the weaker test based on 'objdump'. See mingw*.
6226  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6227  lt_cv_file_magic_cmd='$OBJDUMP -f'
6228  ;;
6229
6230darwin* | rhapsody*)
6231  lt_cv_deplibs_check_method=pass_all
6232  ;;
6233
6234freebsd* | dragonfly* | midnightbsd*)
6235  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236    case $host_cpu in
6237    i*86 )
6238      # Not sure whether the presence of OpenBSD here was a mistake.
6239      # Let's accept both of them until this is cleared up.
6240      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6241      lt_cv_file_magic_cmd=$FILECMD
6242      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6243      ;;
6244    esac
6245  else
6246    lt_cv_deplibs_check_method=pass_all
6247  fi
6248  ;;
6249
6250haiku*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254hpux10.20* | hpux11*)
6255  lt_cv_file_magic_cmd=$FILECMD
6256  case $host_cpu in
6257  ia64*)
6258    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6259    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6260    ;;
6261  hppa*64*)
6262    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]'
6263    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6264    ;;
6265  *)
6266    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6267    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6268    ;;
6269  esac
6270  ;;
6271
6272interix[3-9]*)
6273  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6274  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6275  ;;
6276
6277irix5* | irix6* | nonstopux*)
6278  case $LD in
6279  *-32|*"-32 ") libmagic=32-bit;;
6280  *-n32|*"-n32 ") libmagic=N32;;
6281  *-64|*"-64 ") libmagic=64-bit;;
6282  *) libmagic=never-match;;
6283  esac
6284  lt_cv_deplibs_check_method=pass_all
6285  ;;
6286
6287# This must be glibc/ELF.
6288linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6289  lt_cv_deplibs_check_method=pass_all
6290  ;;
6291
6292netbsd*)
6293  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6295  else
6296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6297  fi
6298  ;;
6299
6300newos6*)
6301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6302  lt_cv_file_magic_cmd=$FILECMD
6303  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6304  ;;
6305
6306*nto* | *qnx*)
6307  lt_cv_deplibs_check_method=pass_all
6308  ;;
6309
6310openbsd* | bitrig*)
6311  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6313  else
6314    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6315  fi
6316  ;;
6317
6318osf3* | osf4* | osf5*)
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322rdos*)
6323  lt_cv_deplibs_check_method=pass_all
6324  ;;
6325
6326solaris*)
6327  lt_cv_deplibs_check_method=pass_all
6328  ;;
6329
6330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6331  lt_cv_deplibs_check_method=pass_all
6332  ;;
6333
6334sysv4 | sysv4.3*)
6335  case $host_vendor in
6336  motorola)
6337    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]'
6338    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6339    ;;
6340  ncr)
6341    lt_cv_deplibs_check_method=pass_all
6342    ;;
6343  sequent)
6344    lt_cv_file_magic_cmd='/bin/file'
6345    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6346    ;;
6347  sni)
6348    lt_cv_file_magic_cmd='/bin/file'
6349    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6350    lt_cv_file_magic_test_file=/lib/libc.so
6351    ;;
6352  siemens)
6353    lt_cv_deplibs_check_method=pass_all
6354    ;;
6355  pc)
6356    lt_cv_deplibs_check_method=pass_all
6357    ;;
6358  esac
6359  ;;
6360
6361tpf*)
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364os2*)
6365  lt_cv_deplibs_check_method=pass_all
6366  ;;
6367esac
6368
6369fi
6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6371printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6372
6373file_magic_glob=
6374want_nocaseglob=no
6375if test "$build" = "$host"; then
6376  case $host_os in
6377  mingw* | pw32*)
6378    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6379      want_nocaseglob=yes
6380    else
6381      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6382    fi
6383    ;;
6384  esac
6385fi
6386
6387file_magic_cmd=$lt_cv_file_magic_cmd
6388deplibs_check_method=$lt_cv_deplibs_check_method
6389test -z "$deplibs_check_method" && deplibs_check_method=unknown
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412if test -n "$ac_tool_prefix"; then
6413  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416printf %s "checking for $ac_word... " >&6; }
6417if test ${ac_cv_prog_DLLTOOL+y}
6418then :
6419  printf %s "(cached) " >&6
6420else $as_nop
6421  if test -n "$DLLTOOL"; then
6422  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  case $as_dir in #(((
6429    '') as_dir=./ ;;
6430    */) ;;
6431    *) as_dir=$as_dir/ ;;
6432  esac
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6435    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6437    break 2
6438  fi
6439done
6440  done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445DLLTOOL=$ac_cv_prog_DLLTOOL
6446if test -n "$DLLTOOL"; then
6447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6448printf "%s\n" "$DLLTOOL" >&6; }
6449else
6450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451printf "%s\n" "no" >&6; }
6452fi
6453
6454
6455fi
6456if test -z "$ac_cv_prog_DLLTOOL"; then
6457  ac_ct_DLLTOOL=$DLLTOOL
6458  # Extract the first word of "dlltool", so it can be a program name with args.
6459set dummy dlltool; ac_word=$2
6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461printf %s "checking for $ac_word... " >&6; }
6462if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6463then :
6464  printf %s "(cached) " >&6
6465else $as_nop
6466  if test -n "$ac_ct_DLLTOOL"; then
6467  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  case $as_dir in #(((
6474    '') as_dir=./ ;;
6475    */) ;;
6476    *) as_dir=$as_dir/ ;;
6477  esac
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6491if test -n "$ac_ct_DLLTOOL"; then
6492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6493printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6494else
6495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496printf "%s\n" "no" >&6; }
6497fi
6498
6499  if test "x$ac_ct_DLLTOOL" = x; then
6500    DLLTOOL="false"
6501  else
6502    case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508    DLLTOOL=$ac_ct_DLLTOOL
6509  fi
6510else
6511  DLLTOOL="$ac_cv_prog_DLLTOOL"
6512fi
6513
6514test -z "$DLLTOOL" && DLLTOOL=dlltool
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6526printf %s "checking how to associate runtime and link libraries... " >&6; }
6527if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6528then :
6529  printf %s "(cached) " >&6
6530else $as_nop
6531  lt_cv_sharedlib_from_linklib_cmd='unknown'
6532
6533case $host_os in
6534cygwin* | mingw* | pw32* | cegcc*)
6535  # two different shell functions defined in ltmain.sh;
6536  # decide which one to use based on capabilities of $DLLTOOL
6537  case `$DLLTOOL --help 2>&1` in
6538  *--identify-strict*)
6539    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6540    ;;
6541  *)
6542    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6543    ;;
6544  esac
6545  ;;
6546*)
6547  # fallback: assume linklib IS sharedlib
6548  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6549  ;;
6550esac
6551
6552fi
6553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6554printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6555sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6556test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6557
6558
6559
6560
6561
6562
6563
6564if test -n "$ac_tool_prefix"; then
6565  for ac_prog in ar
6566  do
6567    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570printf %s "checking for $ac_word... " >&6; }
6571if test ${ac_cv_prog_AR+y}
6572then :
6573  printf %s "(cached) " >&6
6574else $as_nop
6575  if test -n "$AR"; then
6576  ac_cv_prog_AR="$AR" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  case $as_dir in #(((
6583    '') as_dir=./ ;;
6584    */) ;;
6585    *) as_dir=$as_dir/ ;;
6586  esac
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599AR=$ac_cv_prog_AR
6600if test -n "$AR"; then
6601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602printf "%s\n" "$AR" >&6; }
6603else
6604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605printf "%s\n" "no" >&6; }
6606fi
6607
6608
6609    test -n "$AR" && break
6610  done
6611fi
6612if test -z "$AR"; then
6613  ac_ct_AR=$AR
6614  for ac_prog in ar
6615do
6616  # Extract the first word of "$ac_prog", so it can be a program name with args.
6617set dummy $ac_prog; ac_word=$2
6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619printf %s "checking for $ac_word... " >&6; }
6620if test ${ac_cv_prog_ac_ct_AR+y}
6621then :
6622  printf %s "(cached) " >&6
6623else $as_nop
6624  if test -n "$ac_ct_AR"; then
6625  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  case $as_dir in #(((
6632    '') as_dir=./ ;;
6633    */) ;;
6634    *) as_dir=$as_dir/ ;;
6635  esac
6636    for ac_exec_ext in '' $ac_executable_extensions; do
6637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6638    ac_cv_prog_ac_ct_AR="$ac_prog"
6639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643  done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_AR=$ac_cv_prog_ac_ct_AR
6649if test -n "$ac_ct_AR"; then
6650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6651printf "%s\n" "$ac_ct_AR" >&6; }
6652else
6653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654printf "%s\n" "no" >&6; }
6655fi
6656
6657
6658  test -n "$ac_ct_AR" && break
6659done
6660
6661  if test "x$ac_ct_AR" = x; then
6662    AR="false"
6663  else
6664    case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668ac_tool_warned=yes ;;
6669esac
6670    AR=$ac_ct_AR
6671  fi
6672fi
6673
6674: ${AR=ar}
6675
6676
6677
6678
6679
6680
6681# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6682# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6683# higher priority because thats what people were doing historically (setting
6684# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6685# variable obsoleted/removed.
6686
6687test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6688lt_ar_flags=$AR_FLAGS
6689
6690
6691
6692
6693
6694
6695# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6696# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6697
6698
6699
6700
6701
6702
6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6704printf %s "checking for archiver @FILE support... " >&6; }
6705if test ${lt_cv_ar_at_file+y}
6706then :
6707  printf %s "(cached) " >&6
6708else $as_nop
6709  lt_cv_ar_at_file=no
6710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712
6713int
6714main (void)
6715{
6716
6717  ;
6718  return 0;
6719}
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"
6722then :
6723  echo conftest.$ac_objext > conftest.lst
6724      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6725      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6726  (eval $lt_ar_try) 2>&5
6727  ac_status=$?
6728  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729  test $ac_status = 0; }
6730      if test 0 -eq "$ac_status"; then
6731	# Ensure the archiver fails upon bogus file names.
6732	rm -f conftest.$ac_objext libconftest.a
6733	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6734  (eval $lt_ar_try) 2>&5
6735  ac_status=$?
6736  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737  test $ac_status = 0; }
6738	if test 0 -ne "$ac_status"; then
6739          lt_cv_ar_at_file=@
6740        fi
6741      fi
6742      rm -f conftest.* libconftest.a
6743
6744fi
6745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6746
6747fi
6748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6749printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6750
6751if test no = "$lt_cv_ar_at_file"; then
6752  archiver_list_spec=
6753else
6754  archiver_list_spec=$lt_cv_ar_at_file
6755fi
6756
6757
6758
6759
6760
6761
6762
6763if test -n "$ac_tool_prefix"; then
6764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6765set dummy ${ac_tool_prefix}strip; ac_word=$2
6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767printf %s "checking for $ac_word... " >&6; }
6768if test ${ac_cv_prog_STRIP+y}
6769then :
6770  printf %s "(cached) " >&6
6771else $as_nop
6772  if test -n "$STRIP"; then
6773  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  case $as_dir in #(((
6780    '') as_dir=./ ;;
6781    */) ;;
6782    *) as_dir=$as_dir/ ;;
6783  esac
6784    for ac_exec_ext in '' $ac_executable_extensions; do
6785  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6786    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6787    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6788    break 2
6789  fi
6790done
6791  done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796STRIP=$ac_cv_prog_STRIP
6797if test -n "$STRIP"; then
6798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6799printf "%s\n" "$STRIP" >&6; }
6800else
6801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802printf "%s\n" "no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_STRIP"; then
6808  ac_ct_STRIP=$STRIP
6809  # Extract the first word of "strip", so it can be a program name with args.
6810set dummy strip; ac_word=$2
6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812printf %s "checking for $ac_word... " >&6; }
6813if test ${ac_cv_prog_ac_ct_STRIP+y}
6814then :
6815  printf %s "(cached) " >&6
6816else $as_nop
6817  if test -n "$ac_ct_STRIP"; then
6818  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823  IFS=$as_save_IFS
6824  case $as_dir in #(((
6825    '') as_dir=./ ;;
6826    */) ;;
6827    *) as_dir=$as_dir/ ;;
6828  esac
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6831    ac_cv_prog_ac_ct_STRIP="strip"
6832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6842if test -n "$ac_ct_STRIP"; then
6843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6844printf "%s\n" "$ac_ct_STRIP" >&6; }
6845else
6846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847printf "%s\n" "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_STRIP" = x; then
6851    STRIP=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    STRIP=$ac_ct_STRIP
6860  fi
6861else
6862  STRIP="$ac_cv_prog_STRIP"
6863fi
6864
6865test -z "$STRIP" && STRIP=:
6866
6867
6868
6869
6870
6871
6872if test -n "$ac_tool_prefix"; then
6873  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6874set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876printf %s "checking for $ac_word... " >&6; }
6877if test ${ac_cv_prog_RANLIB+y}
6878then :
6879  printf %s "(cached) " >&6
6880else $as_nop
6881  if test -n "$RANLIB"; then
6882  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  case $as_dir in #(((
6889    '') as_dir=./ ;;
6890    */) ;;
6891    *) as_dir=$as_dir/ ;;
6892  esac
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6895    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905RANLIB=$ac_cv_prog_RANLIB
6906if test -n "$RANLIB"; then
6907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6908printf "%s\n" "$RANLIB" >&6; }
6909else
6910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911printf "%s\n" "no" >&6; }
6912fi
6913
6914
6915fi
6916if test -z "$ac_cv_prog_RANLIB"; then
6917  ac_ct_RANLIB=$RANLIB
6918  # Extract the first word of "ranlib", so it can be a program name with args.
6919set dummy ranlib; ac_word=$2
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921printf %s "checking for $ac_word... " >&6; }
6922if test ${ac_cv_prog_ac_ct_RANLIB+y}
6923then :
6924  printf %s "(cached) " >&6
6925else $as_nop
6926  if test -n "$ac_ct_RANLIB"; then
6927  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  case $as_dir in #(((
6934    '') as_dir=./ ;;
6935    */) ;;
6936    *) as_dir=$as_dir/ ;;
6937  esac
6938    for ac_exec_ext in '' $ac_executable_extensions; do
6939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940    ac_cv_prog_ac_ct_RANLIB="ranlib"
6941    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6942    break 2
6943  fi
6944done
6945  done
6946IFS=$as_save_IFS
6947
6948fi
6949fi
6950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951if test -n "$ac_ct_RANLIB"; then
6952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953printf "%s\n" "$ac_ct_RANLIB" >&6; }
6954else
6955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956printf "%s\n" "no" >&6; }
6957fi
6958
6959  if test "x$ac_ct_RANLIB" = x; then
6960    RANLIB=":"
6961  else
6962    case $cross_compiling:$ac_tool_warned in
6963yes:)
6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966ac_tool_warned=yes ;;
6967esac
6968    RANLIB=$ac_ct_RANLIB
6969  fi
6970else
6971  RANLIB="$ac_cv_prog_RANLIB"
6972fi
6973
6974test -z "$RANLIB" && RANLIB=:
6975
6976
6977
6978
6979
6980
6981# Determine commands to create old-style static archives.
6982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983old_postinstall_cmds='chmod 644 $oldlib'
6984old_postuninstall_cmds=
6985
6986if test -n "$RANLIB"; then
6987  case $host_os in
6988  bitrig* | openbsd*)
6989    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6990    ;;
6991  *)
6992    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6993    ;;
6994  esac
6995  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996fi
6997
6998case $host_os in
6999  darwin*)
7000    lock_old_archive_extraction=yes ;;
7001  *)
7002    lock_old_archive_extraction=no ;;
7003esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043# If no C compiler was specified, use CC.
7044LTCC=${LTCC-"$CC"}
7045
7046# If no C compiler flags were specified, use CFLAGS.
7047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048
7049# Allow CC to be a program name with arguments.
7050compiler=$CC
7051
7052
7053# Check for command to grab the raw symbol name followed by C symbol from nm.
7054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7056if test ${lt_cv_sys_global_symbol_pipe+y}
7057then :
7058  printf %s "(cached) " >&6
7059else $as_nop
7060
7061# These are sane defaults that work on at least a few old systems.
7062# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7063
7064# Character class describing NM global symbol codes.
7065symcode='[BCDEGRST]'
7066
7067# Regexp to match symbols that can be accessed directly from C.
7068sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7069
7070# Define system-specific variables.
7071case $host_os in
7072aix*)
7073  symcode='[BCDT]'
7074  ;;
7075cygwin* | mingw* | pw32* | cegcc*)
7076  symcode='[ABCDGISTW]'
7077  ;;
7078hpux*)
7079  if test ia64 = "$host_cpu"; then
7080    symcode='[ABCDEGRST]'
7081  fi
7082  ;;
7083irix* | nonstopux*)
7084  symcode='[BCDEGRST]'
7085  ;;
7086osf*)
7087  symcode='[BCDEGQRST]'
7088  ;;
7089solaris*)
7090  symcode='[BDRT]'
7091  ;;
7092sco3.2v5*)
7093  symcode='[DT]'
7094  ;;
7095sysv4.2uw2*)
7096  symcode='[DT]'
7097  ;;
7098sysv5* | sco5v6* | unixware* | OpenUNIX*)
7099  symcode='[ABDT]'
7100  ;;
7101sysv4)
7102  symcode='[DFNSTU]'
7103  ;;
7104esac
7105
7106# If we're using GNU nm, then use its standard symbol codes.
7107case `$NM -V 2>&1` in
7108*GNU* | *'with BFD'*)
7109  symcode='[ABCDGIRSTW]' ;;
7110esac
7111
7112if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113  # Gets list of data symbols to import.
7114  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7115  # Adjust the below global symbol transforms to fixup imported variables.
7116  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7117  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7118  lt_c_name_lib_hook="\
7119  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7120  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7121else
7122  # Disable hooks by default.
7123  lt_cv_sys_global_symbol_to_import=
7124  lt_cdecl_hook=
7125  lt_c_name_hook=
7126  lt_c_name_lib_hook=
7127fi
7128
7129# Transform an extracted symbol line into a proper C declaration.
7130# Some systems (esp. on ia64) link data and code symbols differently,
7131# so use this general approach.
7132lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7133$lt_cdecl_hook\
7134" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7135" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7136
7137# Transform an extracted symbol line into symbol name and symbol address
7138lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7139$lt_c_name_hook\
7140" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7141" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7142
7143# Transform an extracted symbol line into symbol name with lib prefix and
7144# symbol address.
7145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7146$lt_c_name_lib_hook\
7147" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7148" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7149" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7150
7151# Handle CRLF in mingw tool chain
7152opt_cr=
7153case $build_os in
7154mingw*)
7155  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7156  ;;
7157esac
7158
7159# Try without a prefix underscore, then with it.
7160for ac_symprfx in "" "_"; do
7161
7162  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7163  symxfrm="\\1 $ac_symprfx\\2 \\2"
7164
7165  # Write the raw and C identifiers.
7166  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7167    # Fake it for dumpbin and say T for any non-static function,
7168    # D for any global variable and I for any imported variable.
7169    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7170    # which start with @ or ?.
7171    lt_cv_sys_global_symbol_pipe="$AWK '"\
7172"     {last_section=section; section=\$ 3};"\
7173"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7174"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7175"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7176"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7177"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7178"     \$ 0!~/External *\|/{next};"\
7179"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7180"     {if(hide[section]) next};"\
7181"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7182"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7183"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7184"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7185"     ' prfx=^$ac_symprfx"
7186  else
7187    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7188  fi
7189  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7190
7191  # Check to see that the pipe works correctly.
7192  pipe_works=no
7193
7194  rm -f conftest*
7195  cat > conftest.$ac_ext <<_LT_EOF
7196#ifdef __cplusplus
7197extern "C" {
7198#endif
7199char nm_test_var;
7200void nm_test_func(void);
7201void nm_test_func(void){}
7202#ifdef __cplusplus
7203}
7204#endif
7205int main(){nm_test_var='a';nm_test_func();return(0);}
7206_LT_EOF
7207
7208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209  (eval $ac_compile) 2>&5
7210  ac_status=$?
7211  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212  test $ac_status = 0; }; then
7213    # Now try to grab the symbols.
7214    nlist=conftest.nm
7215    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7216  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7217  ac_status=$?
7218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219  test $ac_status = 0; } && test -s "$nlist"; then
7220      # Try sorting and uniquifying the output.
7221      if sort "$nlist" | uniq > "$nlist"T; then
7222	mv -f "$nlist"T "$nlist"
7223      else
7224	rm -f "$nlist"T
7225      fi
7226
7227      # Make sure that we snagged all the symbols we need.
7228      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7229	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7230	  cat <<_LT_EOF > conftest.$ac_ext
7231/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7232#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7233/* DATA imports from DLLs on WIN32 can't be const, because runtime
7234   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7235# define LT_DLSYM_CONST
7236#elif defined __osf__
7237/* This system does not cope well with relocations in const data.  */
7238# define LT_DLSYM_CONST
7239#else
7240# define LT_DLSYM_CONST const
7241#endif
7242
7243#ifdef __cplusplus
7244extern "C" {
7245#endif
7246
7247_LT_EOF
7248	  # Now generate the symbol file.
7249	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7250
7251	  cat <<_LT_EOF >> conftest.$ac_ext
7252
7253/* The mapping between symbol names and symbols.  */
7254LT_DLSYM_CONST struct {
7255  const char *name;
7256  void       *address;
7257}
7258lt__PROGRAM__LTX_preloaded_symbols[] =
7259{
7260  { "@PROGRAM@", (void *) 0 },
7261_LT_EOF
7262	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263	  cat <<\_LT_EOF >> conftest.$ac_ext
7264  {0, (void *) 0}
7265};
7266
7267/* This works around a problem in FreeBSD linker */
7268#ifdef FREEBSD_WORKAROUND
7269static const void *lt_preloaded_setup() {
7270  return lt__PROGRAM__LTX_preloaded_symbols;
7271}
7272#endif
7273
7274#ifdef __cplusplus
7275}
7276#endif
7277_LT_EOF
7278	  # Now try linking the two files.
7279	  mv conftest.$ac_objext conftstm.$ac_objext
7280	  lt_globsym_save_LIBS=$LIBS
7281	  lt_globsym_save_CFLAGS=$CFLAGS
7282	  LIBS=conftstm.$ac_objext
7283	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7285  (eval $ac_link) 2>&5
7286  ac_status=$?
7287  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7289	    pipe_works=yes
7290	  fi
7291	  LIBS=$lt_globsym_save_LIBS
7292	  CFLAGS=$lt_globsym_save_CFLAGS
7293	else
7294	  echo "cannot find nm_test_func in $nlist" >&5
7295	fi
7296      else
7297	echo "cannot find nm_test_var in $nlist" >&5
7298      fi
7299    else
7300      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7301    fi
7302  else
7303    echo "$progname: failed program was:" >&5
7304    cat conftest.$ac_ext >&5
7305  fi
7306  rm -rf conftest* conftst*
7307
7308  # Do not use the global_symbol_pipe unless it works.
7309  if test yes = "$pipe_works"; then
7310    break
7311  else
7312    lt_cv_sys_global_symbol_pipe=
7313  fi
7314done
7315
7316fi
7317
7318if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319  lt_cv_sys_global_symbol_to_cdecl=
7320fi
7321if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7323printf "%s\n" "failed" >&6; }
7324else
7325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7326printf "%s\n" "ok" >&6; }
7327fi
7328
7329# Response file support.
7330if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7331  nm_file_list_spec='@'
7332elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7333  nm_file_list_spec='@'
7334fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7373printf %s "checking for sysroot... " >&6; }
7374
7375# Check whether --with-sysroot was given.
7376if test ${with_sysroot+y}
7377then :
7378  withval=$with_sysroot;
7379else $as_nop
7380  with_sysroot=no
7381fi
7382
7383
7384lt_sysroot=
7385case $with_sysroot in #(
7386 yes)
7387   if test yes = "$GCC"; then
7388     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7389   fi
7390   ;; #(
7391 /*)
7392   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7393   ;; #(
7394 no|'')
7395   ;; #(
7396 *)
7397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7398printf "%s\n" "$with_sysroot" >&6; }
7399   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7400   ;;
7401esac
7402
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7404printf "%s\n" "${lt_sysroot:-no}" >&6; }
7405
7406
7407
7408
7409
7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7411printf %s "checking for a working dd... " >&6; }
7412if test ${ac_cv_path_lt_DD+y}
7413then :
7414  printf %s "(cached) " >&6
7415else $as_nop
7416  printf 0123456789abcdef0123456789abcdef >conftest.i
7417cat conftest.i conftest.i >conftest2.i
7418: ${lt_DD:=$DD}
7419if test -z "$lt_DD"; then
7420  ac_path_lt_DD_found=false
7421  # Loop through the user's path and test for each of PROGNAME-LIST
7422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  case $as_dir in #(((
7427    '') as_dir=./ ;;
7428    */) ;;
7429    *) as_dir=$as_dir/ ;;
7430  esac
7431    for ac_prog in dd
7432   do
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7435      as_fn_executable_p "$ac_path_lt_DD" || continue
7436if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7437  cmp -s conftest.i conftest.out \
7438  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7439fi
7440      $ac_path_lt_DD_found && break 3
7441    done
7442  done
7443  done
7444IFS=$as_save_IFS
7445  if test -z "$ac_cv_path_lt_DD"; then
7446    :
7447  fi
7448else
7449  ac_cv_path_lt_DD=$lt_DD
7450fi
7451
7452rm -f conftest.i conftest2.i conftest.out
7453fi
7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7455printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7456
7457
7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7459printf %s "checking how to truncate binary pipes... " >&6; }
7460if test ${lt_cv_truncate_bin+y}
7461then :
7462  printf %s "(cached) " >&6
7463else $as_nop
7464  printf 0123456789abcdef0123456789abcdef >conftest.i
7465cat conftest.i conftest.i >conftest2.i
7466lt_cv_truncate_bin=
7467if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7468  cmp -s conftest.i conftest.out \
7469  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7470fi
7471rm -f conftest.i conftest2.i conftest.out
7472test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7473fi
7474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7475printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7476
7477
7478
7479
7480
7481
7482
7483# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7484func_cc_basename ()
7485{
7486    for cc_temp in $*""; do
7487      case $cc_temp in
7488        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7489        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7490        \-*) ;;
7491        *) break;;
7492      esac
7493    done
7494    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7495}
7496
7497# Check whether --enable-libtool-lock was given.
7498if test ${enable_libtool_lock+y}
7499then :
7500  enableval=$enable_libtool_lock;
7501fi
7502
7503test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7504
7505# Some flags need to be propagated to the compiler or linker for good
7506# libtool support.
7507case $host in
7508ia64-*-hpux*)
7509  # Find out what ABI is being produced by ac_compile, and set mode
7510  # options accordingly.
7511  echo 'int i;' > conftest.$ac_ext
7512  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513  (eval $ac_compile) 2>&5
7514  ac_status=$?
7515  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516  test $ac_status = 0; }; then
7517    case `$FILECMD conftest.$ac_objext` in
7518      *ELF-32*)
7519	HPUX_IA64_MODE=32
7520	;;
7521      *ELF-64*)
7522	HPUX_IA64_MODE=64
7523	;;
7524    esac
7525  fi
7526  rm -rf conftest*
7527  ;;
7528*-*-irix6*)
7529  # Find out what ABI is being produced by ac_compile, and set linker
7530  # options accordingly.
7531  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7532  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533  (eval $ac_compile) 2>&5
7534  ac_status=$?
7535  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536  test $ac_status = 0; }; then
7537    if test yes = "$lt_cv_prog_gnu_ld"; then
7538      case `$FILECMD conftest.$ac_objext` in
7539	*32-bit*)
7540	  LD="${LD-ld} -melf32bsmip"
7541	  ;;
7542	*N32*)
7543	  LD="${LD-ld} -melf32bmipn32"
7544	  ;;
7545	*64-bit*)
7546	  LD="${LD-ld} -melf64bmip"
7547	;;
7548      esac
7549    else
7550      case `$FILECMD conftest.$ac_objext` in
7551	*32-bit*)
7552	  LD="${LD-ld} -32"
7553	  ;;
7554	*N32*)
7555	  LD="${LD-ld} -n32"
7556	  ;;
7557	*64-bit*)
7558	  LD="${LD-ld} -64"
7559	  ;;
7560      esac
7561    fi
7562  fi
7563  rm -rf conftest*
7564  ;;
7565
7566mips64*-*linux*)
7567  # Find out what ABI is being produced by ac_compile, and set linker
7568  # options accordingly.
7569  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7571  (eval $ac_compile) 2>&5
7572  ac_status=$?
7573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574  test $ac_status = 0; }; then
7575    emul=elf
7576    case `$FILECMD conftest.$ac_objext` in
7577      *32-bit*)
7578	emul="${emul}32"
7579	;;
7580      *64-bit*)
7581	emul="${emul}64"
7582	;;
7583    esac
7584    case `$FILECMD conftest.$ac_objext` in
7585      *MSB*)
7586	emul="${emul}btsmip"
7587	;;
7588      *LSB*)
7589	emul="${emul}ltsmip"
7590	;;
7591    esac
7592    case `$FILECMD conftest.$ac_objext` in
7593      *N32*)
7594	emul="${emul}n32"
7595	;;
7596    esac
7597    LD="${LD-ld} -m $emul"
7598  fi
7599  rm -rf conftest*
7600  ;;
7601
7602x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7603s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7604  # Find out what ABI is being produced by ac_compile, and set linker
7605  # options accordingly.  Note that the listed cases only cover the
7606  # situations where additional linker options are needed (such as when
7607  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7608  # vice versa); the common cases where no linker options are needed do
7609  # not appear in the list.
7610  echo 'int i;' > conftest.$ac_ext
7611  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7612  (eval $ac_compile) 2>&5
7613  ac_status=$?
7614  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615  test $ac_status = 0; }; then
7616    case `$FILECMD conftest.o` in
7617      *32-bit*)
7618	case $host in
7619	  x86_64-*kfreebsd*-gnu)
7620	    LD="${LD-ld} -m elf_i386_fbsd"
7621	    ;;
7622	  x86_64-*linux*)
7623	    case `$FILECMD conftest.o` in
7624	      *x86-64*)
7625		LD="${LD-ld} -m elf32_x86_64"
7626		;;
7627	      *)
7628		LD="${LD-ld} -m elf_i386"
7629		;;
7630	    esac
7631	    ;;
7632	  powerpc64le-*linux*)
7633	    LD="${LD-ld} -m elf32lppclinux"
7634	    ;;
7635	  powerpc64-*linux*)
7636	    LD="${LD-ld} -m elf32ppclinux"
7637	    ;;
7638	  s390x-*linux*)
7639	    LD="${LD-ld} -m elf_s390"
7640	    ;;
7641	  sparc64-*linux*)
7642	    LD="${LD-ld} -m elf32_sparc"
7643	    ;;
7644	esac
7645	;;
7646      *64-bit*)
7647	case $host in
7648	  x86_64-*kfreebsd*-gnu)
7649	    LD="${LD-ld} -m elf_x86_64_fbsd"
7650	    ;;
7651	  x86_64-*linux*)
7652	    LD="${LD-ld} -m elf_x86_64"
7653	    ;;
7654	  powerpcle-*linux*)
7655	    LD="${LD-ld} -m elf64lppc"
7656	    ;;
7657	  powerpc-*linux*)
7658	    LD="${LD-ld} -m elf64ppc"
7659	    ;;
7660	  s390*-*linux*|s390*-*tpf*)
7661	    LD="${LD-ld} -m elf64_s390"
7662	    ;;
7663	  sparc*-*linux*)
7664	    LD="${LD-ld} -m elf64_sparc"
7665	    ;;
7666	esac
7667	;;
7668    esac
7669  fi
7670  rm -rf conftest*
7671  ;;
7672
7673*-*-sco3.2v5*)
7674  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7675  SAVE_CFLAGS=$CFLAGS
7676  CFLAGS="$CFLAGS -belf"
7677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7678printf %s "checking whether the C compiler needs -belf... " >&6; }
7679if test ${lt_cv_cc_needs_belf+y}
7680then :
7681  printf %s "(cached) " >&6
7682else $as_nop
7683  ac_ext=c
7684ac_cpp='$CPP $CPPFLAGS'
7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691
7692int
7693main (void)
7694{
7695
7696  ;
7697  return 0;
7698}
7699_ACEOF
7700if ac_fn_c_try_link "$LINENO"
7701then :
7702  lt_cv_cc_needs_belf=yes
7703else $as_nop
7704  lt_cv_cc_needs_belf=no
7705fi
7706rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707    conftest$ac_exeext conftest.$ac_ext
7708     ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714fi
7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7716printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7717  if test yes != "$lt_cv_cc_needs_belf"; then
7718    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7719    CFLAGS=$SAVE_CFLAGS
7720  fi
7721  ;;
7722*-*solaris*)
7723  # Find out what ABI is being produced by ac_compile, and set linker
7724  # options accordingly.
7725  echo 'int i;' > conftest.$ac_ext
7726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727  (eval $ac_compile) 2>&5
7728  ac_status=$?
7729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730  test $ac_status = 0; }; then
7731    case `$FILECMD conftest.o` in
7732    *64-bit*)
7733      case $lt_cv_prog_gnu_ld in
7734      yes*)
7735        case $host in
7736        i?86-*-solaris*|x86_64-*-solaris*)
7737          LD="${LD-ld} -m elf_x86_64"
7738          ;;
7739        sparc*-*-solaris*)
7740          LD="${LD-ld} -m elf64_sparc"
7741          ;;
7742        esac
7743        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7744        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7745          LD=${LD-ld}_sol2
7746        fi
7747        ;;
7748      *)
7749	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7750	  LD="${LD-ld} -64"
7751	fi
7752	;;
7753      esac
7754      ;;
7755    esac
7756  fi
7757  rm -rf conftest*
7758  ;;
7759esac
7760
7761need_locks=$enable_libtool_lock
7762
7763if test -n "$ac_tool_prefix"; then
7764  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7765set dummy ${ac_tool_prefix}mt; ac_word=$2
7766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767printf %s "checking for $ac_word... " >&6; }
7768if test ${ac_cv_prog_MANIFEST_TOOL+y}
7769then :
7770  printf %s "(cached) " >&6
7771else $as_nop
7772  if test -n "$MANIFEST_TOOL"; then
7773  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778  IFS=$as_save_IFS
7779  case $as_dir in #(((
7780    '') as_dir=./ ;;
7781    */) ;;
7782    *) as_dir=$as_dir/ ;;
7783  esac
7784    for ac_exec_ext in '' $ac_executable_extensions; do
7785  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7786    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7787    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7788    break 2
7789  fi
7790done
7791  done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7797if test -n "$MANIFEST_TOOL"; then
7798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7799printf "%s\n" "$MANIFEST_TOOL" >&6; }
7800else
7801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802printf "%s\n" "no" >&6; }
7803fi
7804
7805
7806fi
7807if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7808  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7809  # Extract the first word of "mt", so it can be a program name with args.
7810set dummy mt; ac_word=$2
7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812printf %s "checking for $ac_word... " >&6; }
7813if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7814then :
7815  printf %s "(cached) " >&6
7816else $as_nop
7817  if test -n "$ac_ct_MANIFEST_TOOL"; then
7818  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823  IFS=$as_save_IFS
7824  case $as_dir in #(((
7825    '') as_dir=./ ;;
7826    */) ;;
7827    *) as_dir=$as_dir/ ;;
7828  esac
7829    for ac_exec_ext in '' $ac_executable_extensions; do
7830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833    break 2
7834  fi
7835done
7836  done
7837IFS=$as_save_IFS
7838
7839fi
7840fi
7841ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7842if test -n "$ac_ct_MANIFEST_TOOL"; then
7843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7844printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7845else
7846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847printf "%s\n" "no" >&6; }
7848fi
7849
7850  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7851    MANIFEST_TOOL=":"
7852  else
7853    case $cross_compiling:$ac_tool_warned in
7854yes:)
7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857ac_tool_warned=yes ;;
7858esac
7859    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7860  fi
7861else
7862  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7863fi
7864
7865test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7867printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7868if test ${lt_cv_path_mainfest_tool+y}
7869then :
7870  printf %s "(cached) " >&6
7871else $as_nop
7872  lt_cv_path_mainfest_tool=no
7873  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7874  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7875  cat conftest.err >&5
7876  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7877    lt_cv_path_mainfest_tool=yes
7878  fi
7879  rm -f conftest*
7880fi
7881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7882printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7883if test yes != "$lt_cv_path_mainfest_tool"; then
7884  MANIFEST_TOOL=:
7885fi
7886
7887
7888
7889
7890
7891
7892  case $host_os in
7893    rhapsody* | darwin*)
7894    if test -n "$ac_tool_prefix"; then
7895  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7896set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898printf %s "checking for $ac_word... " >&6; }
7899if test ${ac_cv_prog_DSYMUTIL+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  if test -n "$DSYMUTIL"; then
7904  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  case $as_dir in #(((
7911    '') as_dir=./ ;;
7912    */) ;;
7913    *) as_dir=$as_dir/ ;;
7914  esac
7915    for ac_exec_ext in '' $ac_executable_extensions; do
7916  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7917    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7918    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7919    break 2
7920  fi
7921done
7922  done
7923IFS=$as_save_IFS
7924
7925fi
7926fi
7927DSYMUTIL=$ac_cv_prog_DSYMUTIL
7928if test -n "$DSYMUTIL"; then
7929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7930printf "%s\n" "$DSYMUTIL" >&6; }
7931else
7932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933printf "%s\n" "no" >&6; }
7934fi
7935
7936
7937fi
7938if test -z "$ac_cv_prog_DSYMUTIL"; then
7939  ac_ct_DSYMUTIL=$DSYMUTIL
7940  # Extract the first word of "dsymutil", so it can be a program name with args.
7941set dummy dsymutil; ac_word=$2
7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943printf %s "checking for $ac_word... " >&6; }
7944if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7945then :
7946  printf %s "(cached) " >&6
7947else $as_nop
7948  if test -n "$ac_ct_DSYMUTIL"; then
7949  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954  IFS=$as_save_IFS
7955  case $as_dir in #(((
7956    '') as_dir=./ ;;
7957    */) ;;
7958    *) as_dir=$as_dir/ ;;
7959  esac
7960    for ac_exec_ext in '' $ac_executable_extensions; do
7961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7962    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7964    break 2
7965  fi
7966done
7967  done
7968IFS=$as_save_IFS
7969
7970fi
7971fi
7972ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7973if test -n "$ac_ct_DSYMUTIL"; then
7974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7975printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7976else
7977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978printf "%s\n" "no" >&6; }
7979fi
7980
7981  if test "x$ac_ct_DSYMUTIL" = x; then
7982    DSYMUTIL=":"
7983  else
7984    case $cross_compiling:$ac_tool_warned in
7985yes:)
7986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988ac_tool_warned=yes ;;
7989esac
7990    DSYMUTIL=$ac_ct_DSYMUTIL
7991  fi
7992else
7993  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7994fi
7995
7996    if test -n "$ac_tool_prefix"; then
7997  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7998set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000printf %s "checking for $ac_word... " >&6; }
8001if test ${ac_cv_prog_NMEDIT+y}
8002then :
8003  printf %s "(cached) " >&6
8004else $as_nop
8005  if test -n "$NMEDIT"; then
8006  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011  IFS=$as_save_IFS
8012  case $as_dir in #(((
8013    '') as_dir=./ ;;
8014    */) ;;
8015    *) as_dir=$as_dir/ ;;
8016  esac
8017    for ac_exec_ext in '' $ac_executable_extensions; do
8018  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8019    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8020    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8021    break 2
8022  fi
8023done
8024  done
8025IFS=$as_save_IFS
8026
8027fi
8028fi
8029NMEDIT=$ac_cv_prog_NMEDIT
8030if test -n "$NMEDIT"; then
8031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8032printf "%s\n" "$NMEDIT" >&6; }
8033else
8034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035printf "%s\n" "no" >&6; }
8036fi
8037
8038
8039fi
8040if test -z "$ac_cv_prog_NMEDIT"; then
8041  ac_ct_NMEDIT=$NMEDIT
8042  # Extract the first word of "nmedit", so it can be a program name with args.
8043set dummy nmedit; ac_word=$2
8044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045printf %s "checking for $ac_word... " >&6; }
8046if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8047then :
8048  printf %s "(cached) " >&6
8049else $as_nop
8050  if test -n "$ac_ct_NMEDIT"; then
8051  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056  IFS=$as_save_IFS
8057  case $as_dir in #(((
8058    '') as_dir=./ ;;
8059    */) ;;
8060    *) as_dir=$as_dir/ ;;
8061  esac
8062    for ac_exec_ext in '' $ac_executable_extensions; do
8063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8064    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8066    break 2
8067  fi
8068done
8069  done
8070IFS=$as_save_IFS
8071
8072fi
8073fi
8074ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8075if test -n "$ac_ct_NMEDIT"; then
8076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8077printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8078else
8079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080printf "%s\n" "no" >&6; }
8081fi
8082
8083  if test "x$ac_ct_NMEDIT" = x; then
8084    NMEDIT=":"
8085  else
8086    case $cross_compiling:$ac_tool_warned in
8087yes:)
8088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090ac_tool_warned=yes ;;
8091esac
8092    NMEDIT=$ac_ct_NMEDIT
8093  fi
8094else
8095  NMEDIT="$ac_cv_prog_NMEDIT"
8096fi
8097
8098    if test -n "$ac_tool_prefix"; then
8099  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8100set dummy ${ac_tool_prefix}lipo; ac_word=$2
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102printf %s "checking for $ac_word... " >&6; }
8103if test ${ac_cv_prog_LIPO+y}
8104then :
8105  printf %s "(cached) " >&6
8106else $as_nop
8107  if test -n "$LIPO"; then
8108  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113  IFS=$as_save_IFS
8114  case $as_dir in #(((
8115    '') as_dir=./ ;;
8116    */) ;;
8117    *) as_dir=$as_dir/ ;;
8118  esac
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131LIPO=$ac_cv_prog_LIPO
8132if test -n "$LIPO"; then
8133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8134printf "%s\n" "$LIPO" >&6; }
8135else
8136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137printf "%s\n" "no" >&6; }
8138fi
8139
8140
8141fi
8142if test -z "$ac_cv_prog_LIPO"; then
8143  ac_ct_LIPO=$LIPO
8144  # Extract the first word of "lipo", so it can be a program name with args.
8145set dummy lipo; ac_word=$2
8146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147printf %s "checking for $ac_word... " >&6; }
8148if test ${ac_cv_prog_ac_ct_LIPO+y}
8149then :
8150  printf %s "(cached) " >&6
8151else $as_nop
8152  if test -n "$ac_ct_LIPO"; then
8153  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8154else
8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158  IFS=$as_save_IFS
8159  case $as_dir in #(((
8160    '') as_dir=./ ;;
8161    */) ;;
8162    *) as_dir=$as_dir/ ;;
8163  esac
8164    for ac_exec_ext in '' $ac_executable_extensions; do
8165  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8166    ac_cv_prog_ac_ct_LIPO="lipo"
8167    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8168    break 2
8169  fi
8170done
8171  done
8172IFS=$as_save_IFS
8173
8174fi
8175fi
8176ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8177if test -n "$ac_ct_LIPO"; then
8178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8179printf "%s\n" "$ac_ct_LIPO" >&6; }
8180else
8181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182printf "%s\n" "no" >&6; }
8183fi
8184
8185  if test "x$ac_ct_LIPO" = x; then
8186    LIPO=":"
8187  else
8188    case $cross_compiling:$ac_tool_warned in
8189yes:)
8190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192ac_tool_warned=yes ;;
8193esac
8194    LIPO=$ac_ct_LIPO
8195  fi
8196else
8197  LIPO="$ac_cv_prog_LIPO"
8198fi
8199
8200    if test -n "$ac_tool_prefix"; then
8201  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8202set dummy ${ac_tool_prefix}otool; ac_word=$2
8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204printf %s "checking for $ac_word... " >&6; }
8205if test ${ac_cv_prog_OTOOL+y}
8206then :
8207  printf %s "(cached) " >&6
8208else $as_nop
8209  if test -n "$OTOOL"; then
8210  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215  IFS=$as_save_IFS
8216  case $as_dir in #(((
8217    '') as_dir=./ ;;
8218    */) ;;
8219    *) as_dir=$as_dir/ ;;
8220  esac
8221    for ac_exec_ext in '' $ac_executable_extensions; do
8222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8223    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8225    break 2
8226  fi
8227done
8228  done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233OTOOL=$ac_cv_prog_OTOOL
8234if test -n "$OTOOL"; then
8235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236printf "%s\n" "$OTOOL" >&6; }
8237else
8238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239printf "%s\n" "no" >&6; }
8240fi
8241
8242
8243fi
8244if test -z "$ac_cv_prog_OTOOL"; then
8245  ac_ct_OTOOL=$OTOOL
8246  # Extract the first word of "otool", so it can be a program name with args.
8247set dummy otool; ac_word=$2
8248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249printf %s "checking for $ac_word... " >&6; }
8250if test ${ac_cv_prog_ac_ct_OTOOL+y}
8251then :
8252  printf %s "(cached) " >&6
8253else $as_nop
8254  if test -n "$ac_ct_OTOOL"; then
8255  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260  IFS=$as_save_IFS
8261  case $as_dir in #(((
8262    '') as_dir=./ ;;
8263    */) ;;
8264    *) as_dir=$as_dir/ ;;
8265  esac
8266    for ac_exec_ext in '' $ac_executable_extensions; do
8267  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8268    ac_cv_prog_ac_ct_OTOOL="otool"
8269    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8270    break 2
8271  fi
8272done
8273  done
8274IFS=$as_save_IFS
8275
8276fi
8277fi
8278ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8279if test -n "$ac_ct_OTOOL"; then
8280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8281printf "%s\n" "$ac_ct_OTOOL" >&6; }
8282else
8283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284printf "%s\n" "no" >&6; }
8285fi
8286
8287  if test "x$ac_ct_OTOOL" = x; then
8288    OTOOL=":"
8289  else
8290    case $cross_compiling:$ac_tool_warned in
8291yes:)
8292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294ac_tool_warned=yes ;;
8295esac
8296    OTOOL=$ac_ct_OTOOL
8297  fi
8298else
8299  OTOOL="$ac_cv_prog_OTOOL"
8300fi
8301
8302    if test -n "$ac_tool_prefix"; then
8303  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8304set dummy ${ac_tool_prefix}otool64; ac_word=$2
8305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306printf %s "checking for $ac_word... " >&6; }
8307if test ${ac_cv_prog_OTOOL64+y}
8308then :
8309  printf %s "(cached) " >&6
8310else $as_nop
8311  if test -n "$OTOOL64"; then
8312  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8313else
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317  IFS=$as_save_IFS
8318  case $as_dir in #(((
8319    '') as_dir=./ ;;
8320    */) ;;
8321    *) as_dir=$as_dir/ ;;
8322  esac
8323    for ac_exec_ext in '' $ac_executable_extensions; do
8324  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8325    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8326    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8327    break 2
8328  fi
8329done
8330  done
8331IFS=$as_save_IFS
8332
8333fi
8334fi
8335OTOOL64=$ac_cv_prog_OTOOL64
8336if test -n "$OTOOL64"; then
8337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8338printf "%s\n" "$OTOOL64" >&6; }
8339else
8340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341printf "%s\n" "no" >&6; }
8342fi
8343
8344
8345fi
8346if test -z "$ac_cv_prog_OTOOL64"; then
8347  ac_ct_OTOOL64=$OTOOL64
8348  # Extract the first word of "otool64", so it can be a program name with args.
8349set dummy otool64; ac_word=$2
8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351printf %s "checking for $ac_word... " >&6; }
8352if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8353then :
8354  printf %s "(cached) " >&6
8355else $as_nop
8356  if test -n "$ac_ct_OTOOL64"; then
8357  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8358else
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362  IFS=$as_save_IFS
8363  case $as_dir in #(((
8364    '') as_dir=./ ;;
8365    */) ;;
8366    *) as_dir=$as_dir/ ;;
8367  esac
8368    for ac_exec_ext in '' $ac_executable_extensions; do
8369  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8370    ac_cv_prog_ac_ct_OTOOL64="otool64"
8371    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8372    break 2
8373  fi
8374done
8375  done
8376IFS=$as_save_IFS
8377
8378fi
8379fi
8380ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8381if test -n "$ac_ct_OTOOL64"; then
8382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8383printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8384else
8385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386printf "%s\n" "no" >&6; }
8387fi
8388
8389  if test "x$ac_ct_OTOOL64" = x; then
8390    OTOOL64=":"
8391  else
8392    case $cross_compiling:$ac_tool_warned in
8393yes:)
8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396ac_tool_warned=yes ;;
8397esac
8398    OTOOL64=$ac_ct_OTOOL64
8399  fi
8400else
8401  OTOOL64="$ac_cv_prog_OTOOL64"
8402fi
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8431printf %s "checking for -single_module linker flag... " >&6; }
8432if test ${lt_cv_apple_cc_single_mod+y}
8433then :
8434  printf %s "(cached) " >&6
8435else $as_nop
8436  lt_cv_apple_cc_single_mod=no
8437      if test -z "$LT_MULTI_MODULE"; then
8438	# By default we will add the -single_module flag. You can override
8439	# by either setting the environment variable LT_MULTI_MODULE
8440	# non-empty at configure time, or by adding -multi_module to the
8441	# link flags.
8442	rm -rf libconftest.dylib*
8443	echo "int foo(void){return 1;}" > conftest.c
8444	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8445-dynamiclib -Wl,-single_module conftest.c" >&5
8446	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8447	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8448        _lt_result=$?
8449	# If there is a non-empty error log, and "single_module"
8450	# appears in it, assume the flag caused a linker warning
8451        if test -s conftest.err && $GREP single_module conftest.err; then
8452	  cat conftest.err >&5
8453	# Otherwise, if the output was created with a 0 exit code from
8454	# the compiler, it worked.
8455	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8456	  lt_cv_apple_cc_single_mod=yes
8457	else
8458	  cat conftest.err >&5
8459	fi
8460	rm -rf libconftest.dylib*
8461	rm -f conftest.*
8462      fi
8463fi
8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8465printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8466
8467    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8468printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8469if test ${lt_cv_ld_exported_symbols_list+y}
8470then :
8471  printf %s "(cached) " >&6
8472else $as_nop
8473  lt_cv_ld_exported_symbols_list=no
8474      save_LDFLAGS=$LDFLAGS
8475      echo "_main" > conftest.sym
8476      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8477      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h.  */
8479
8480int
8481main (void)
8482{
8483
8484  ;
8485  return 0;
8486}
8487_ACEOF
8488if ac_fn_c_try_link "$LINENO"
8489then :
8490  lt_cv_ld_exported_symbols_list=yes
8491else $as_nop
8492  lt_cv_ld_exported_symbols_list=no
8493fi
8494rm -f core conftest.err conftest.$ac_objext conftest.beam \
8495    conftest$ac_exeext conftest.$ac_ext
8496	LDFLAGS=$save_LDFLAGS
8497
8498fi
8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8500printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8501
8502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8503printf %s "checking for -force_load linker flag... " >&6; }
8504if test ${lt_cv_ld_force_load+y}
8505then :
8506  printf %s "(cached) " >&6
8507else $as_nop
8508  lt_cv_ld_force_load=no
8509      cat > conftest.c << _LT_EOF
8510int forced_loaded() { return 2;}
8511_LT_EOF
8512      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8513      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8514      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8515      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8516      echo "$RANLIB libconftest.a" >&5
8517      $RANLIB libconftest.a 2>&5
8518      cat > conftest.c << _LT_EOF
8519int main() { return 0;}
8520_LT_EOF
8521      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8522      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8523      _lt_result=$?
8524      if test -s conftest.err && $GREP force_load conftest.err; then
8525	cat conftest.err >&5
8526      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8527	lt_cv_ld_force_load=yes
8528      else
8529	cat conftest.err >&5
8530      fi
8531        rm -f conftest.err libconftest.a conftest conftest.c
8532        rm -rf conftest.dSYM
8533
8534fi
8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8536printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8537    case $host_os in
8538    rhapsody* | darwin1.[012])
8539      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8540    darwin1.*)
8541      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8542    darwin*)
8543      case $MACOSX_DEPLOYMENT_TARGET,$host in
8544        10.[012],*|,*powerpc*-darwin[5-8]*)
8545          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8546        *)
8547          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8548      esac
8549    ;;
8550  esac
8551    if test yes = "$lt_cv_apple_cc_single_mod"; then
8552      _lt_dar_single_mod='$single_module'
8553    fi
8554    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8555      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8556    else
8557      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8558    fi
8559    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8560      _lt_dsymutil='~$DSYMUTIL $lib || :'
8561    else
8562      _lt_dsymutil=
8563    fi
8564    ;;
8565  esac
8566
8567# func_munge_path_list VARIABLE PATH
8568# -----------------------------------
8569# VARIABLE is name of variable containing _space_ separated list of
8570# directories to be munged by the contents of PATH, which is string
8571# having a format:
8572# "DIR[:DIR]:"
8573#       string "DIR[ DIR]" will be prepended to VARIABLE
8574# ":DIR[:DIR]"
8575#       string "DIR[ DIR]" will be appended to VARIABLE
8576# "DIRP[:DIRP]::[DIRA:]DIRA"
8577#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8578#       "DIRA[ DIRA]" will be appended to VARIABLE
8579# "DIR[:DIR]"
8580#       VARIABLE will be replaced by "DIR[ DIR]"
8581func_munge_path_list ()
8582{
8583    case x$2 in
8584    x)
8585        ;;
8586    *:)
8587        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8588        ;;
8589    x:*)
8590        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8591        ;;
8592    *::*)
8593        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8594        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8595        ;;
8596    *)
8597        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8598        ;;
8599    esac
8600}
8601
8602ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8603"
8604if test "x$ac_cv_header_dlfcn_h" = xyes
8605then :
8606  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8607
8608fi
8609
8610
8611
8612
8613
8614# Set options
8615
8616
8617
8618        enable_dlopen=no
8619
8620
8621  enable_win32_dll=no
8622
8623
8624            # Check whether --enable-shared was given.
8625if test ${enable_shared+y}
8626then :
8627  enableval=$enable_shared; p=${PACKAGE-default}
8628    case $enableval in
8629    yes) enable_shared=yes ;;
8630    no) enable_shared=no ;;
8631    *)
8632      enable_shared=no
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635      for pkg in $enableval; do
8636	IFS=$lt_save_ifs
8637	if test "X$pkg" = "X$p"; then
8638	  enable_shared=yes
8639	fi
8640      done
8641      IFS=$lt_save_ifs
8642      ;;
8643    esac
8644else $as_nop
8645  enable_shared=yes
8646fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656  # Check whether --enable-static was given.
8657if test ${enable_static+y}
8658then :
8659  enableval=$enable_static; p=${PACKAGE-default}
8660    case $enableval in
8661    yes) enable_static=yes ;;
8662    no) enable_static=no ;;
8663    *)
8664     enable_static=no
8665      # Look at the argument we got.  We use all the common list separators.
8666      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8667      for pkg in $enableval; do
8668	IFS=$lt_save_ifs
8669	if test "X$pkg" = "X$p"; then
8670	  enable_static=yes
8671	fi
8672      done
8673      IFS=$lt_save_ifs
8674      ;;
8675    esac
8676else $as_nop
8677  enable_static=yes
8678fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689# Check whether --with-pic was given.
8690if test ${with_pic+y}
8691then :
8692  withval=$with_pic; lt_p=${PACKAGE-default}
8693    case $withval in
8694    yes|no) pic_mode=$withval ;;
8695    *)
8696      pic_mode=default
8697      # Look at the argument we got.  We use all the common list separators.
8698      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8699      for lt_pkg in $withval; do
8700	IFS=$lt_save_ifs
8701	if test "X$lt_pkg" = "X$lt_p"; then
8702	  pic_mode=yes
8703	fi
8704      done
8705      IFS=$lt_save_ifs
8706      ;;
8707    esac
8708else $as_nop
8709  pic_mode=default
8710fi
8711
8712
8713
8714
8715
8716
8717
8718
8719  # Check whether --enable-fast-install was given.
8720if test ${enable_fast_install+y}
8721then :
8722  enableval=$enable_fast_install; p=${PACKAGE-default}
8723    case $enableval in
8724    yes) enable_fast_install=yes ;;
8725    no) enable_fast_install=no ;;
8726    *)
8727      enable_fast_install=no
8728      # Look at the argument we got.  We use all the common list separators.
8729      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8730      for pkg in $enableval; do
8731	IFS=$lt_save_ifs
8732	if test "X$pkg" = "X$p"; then
8733	  enable_fast_install=yes
8734	fi
8735      done
8736      IFS=$lt_save_ifs
8737      ;;
8738    esac
8739else $as_nop
8740  enable_fast_install=yes
8741fi
8742
8743
8744
8745
8746
8747
8748
8749
8750  shared_archive_member_spec=
8751case $host,$enable_shared in
8752power*-*-aix[5-9]*,yes)
8753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8754printf %s "checking which variant of shared library versioning to provide... " >&6; }
8755
8756# Check whether --with-aix-soname was given.
8757if test ${with_aix_soname+y}
8758then :
8759  withval=$with_aix_soname; case $withval in
8760    aix|svr4|both)
8761      ;;
8762    *)
8763      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8764      ;;
8765    esac
8766    lt_cv_with_aix_soname=$with_aix_soname
8767else $as_nop
8768  if test ${lt_cv_with_aix_soname+y}
8769then :
8770  printf %s "(cached) " >&6
8771else $as_nop
8772  lt_cv_with_aix_soname=aix
8773fi
8774
8775    with_aix_soname=$lt_cv_with_aix_soname
8776fi
8777
8778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8779printf "%s\n" "$with_aix_soname" >&6; }
8780  if test aix != "$with_aix_soname"; then
8781    # For the AIX way of multilib, we name the shared archive member
8782    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8783    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8784    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8785    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8786    if test 64 = "${OBJECT_MODE-32}"; then
8787      shared_archive_member_spec=shr_64
8788    else
8789      shared_archive_member_spec=shr
8790    fi
8791  fi
8792  ;;
8793*)
8794  with_aix_soname=aix
8795  ;;
8796esac
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807# This can be used to rebuild libtool when needed
8808LIBTOOL_DEPS=$ltmain
8809
8810# Always use our own libtool.
8811LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842test -z "$LN_S" && LN_S="ln -s"
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857if test -n "${ZSH_VERSION+set}"; then
8858   setopt NO_GLOB_SUBST
8859fi
8860
8861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8862printf %s "checking for objdir... " >&6; }
8863if test ${lt_cv_objdir+y}
8864then :
8865  printf %s "(cached) " >&6
8866else $as_nop
8867  rm -f .libs 2>/dev/null
8868mkdir .libs 2>/dev/null
8869if test -d .libs; then
8870  lt_cv_objdir=.libs
8871else
8872  # MS-DOS does not allow filenames that begin with a dot.
8873  lt_cv_objdir=_libs
8874fi
8875rmdir .libs 2>/dev/null
8876fi
8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8878printf "%s\n" "$lt_cv_objdir" >&6; }
8879objdir=$lt_cv_objdir
8880
8881
8882
8883
8884
8885printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8886
8887
8888
8889
8890case $host_os in
8891aix3*)
8892  # AIX sometimes has problems with the GCC collect2 program.  For some
8893  # reason, if we set the COLLECT_NAMES environment variable, the problems
8894  # vanish in a puff of smoke.
8895  if test set != "${COLLECT_NAMES+set}"; then
8896    COLLECT_NAMES=
8897    export COLLECT_NAMES
8898  fi
8899  ;;
8900esac
8901
8902# Global variables:
8903ofile=libtool
8904can_build_shared=yes
8905
8906# All known linkers require a '.a' archive for static linking (except MSVC and
8907# ICC, which need '.lib').
8908libext=a
8909
8910with_gnu_ld=$lt_cv_prog_gnu_ld
8911
8912old_CC=$CC
8913old_CFLAGS=$CFLAGS
8914
8915# Set sane defaults for various variables
8916test -z "$CC" && CC=cc
8917test -z "$LTCC" && LTCC=$CC
8918test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8919test -z "$LD" && LD=ld
8920test -z "$ac_objext" && ac_objext=o
8921
8922func_cc_basename $compiler
8923cc_basename=$func_cc_basename_result
8924
8925
8926# Only perform the check for file, if the check method requires it
8927test -z "$MAGIC_CMD" && MAGIC_CMD=file
8928case $deplibs_check_method in
8929file_magic*)
8930  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8932printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8933if test ${lt_cv_path_MAGIC_CMD+y}
8934then :
8935  printf %s "(cached) " >&6
8936else $as_nop
8937  case $MAGIC_CMD in
8938[\\/*] |  ?:[\\/]*)
8939  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8940  ;;
8941*)
8942  lt_save_MAGIC_CMD=$MAGIC_CMD
8943  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8944  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945  for ac_dir in $ac_dummy; do
8946    IFS=$lt_save_ifs
8947    test -z "$ac_dir" && ac_dir=.
8948    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8949      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8950      if test -n "$file_magic_test_file"; then
8951	case $deplibs_check_method in
8952	"file_magic "*)
8953	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8955	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956	    $EGREP "$file_magic_regex" > /dev/null; then
8957	    :
8958	  else
8959	    cat <<_LT_EOF 1>&2
8960
8961*** Warning: the command libtool uses to detect shared libraries,
8962*** $file_magic_cmd, produces output that libtool cannot recognize.
8963*** The result is that libtool may fail to recognize shared libraries
8964*** as such.  This will affect the creation of libtool libraries that
8965*** depend on shared libraries, but programs linked with such libtool
8966*** libraries will work regardless of this problem.  Nevertheless, you
8967*** may want to report the problem to your system manager and/or to
8968*** bug-libtool@gnu.org
8969
8970_LT_EOF
8971	  fi ;;
8972	esac
8973      fi
8974      break
8975    fi
8976  done
8977  IFS=$lt_save_ifs
8978  MAGIC_CMD=$lt_save_MAGIC_CMD
8979  ;;
8980esac
8981fi
8982
8983MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8984if test -n "$MAGIC_CMD"; then
8985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986printf "%s\n" "$MAGIC_CMD" >&6; }
8987else
8988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989printf "%s\n" "no" >&6; }
8990fi
8991
8992
8993
8994
8995
8996if test -z "$lt_cv_path_MAGIC_CMD"; then
8997  if test -n "$ac_tool_prefix"; then
8998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8999printf %s "checking for file... " >&6; }
9000if test ${lt_cv_path_MAGIC_CMD+y}
9001then :
9002  printf %s "(cached) " >&6
9003else $as_nop
9004  case $MAGIC_CMD in
9005[\\/*] |  ?:[\\/]*)
9006  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9007  ;;
9008*)
9009  lt_save_MAGIC_CMD=$MAGIC_CMD
9010  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9011  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012  for ac_dir in $ac_dummy; do
9013    IFS=$lt_save_ifs
9014    test -z "$ac_dir" && ac_dir=.
9015    if test -f "$ac_dir/file"; then
9016      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9017      if test -n "$file_magic_test_file"; then
9018	case $deplibs_check_method in
9019	"file_magic "*)
9020	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023	    $EGREP "$file_magic_regex" > /dev/null; then
9024	    :
9025	  else
9026	    cat <<_LT_EOF 1>&2
9027
9028*** Warning: the command libtool uses to detect shared libraries,
9029*** $file_magic_cmd, produces output that libtool cannot recognize.
9030*** The result is that libtool may fail to recognize shared libraries
9031*** as such.  This will affect the creation of libtool libraries that
9032*** depend on shared libraries, but programs linked with such libtool
9033*** libraries will work regardless of this problem.  Nevertheless, you
9034*** may want to report the problem to your system manager and/or to
9035*** bug-libtool@gnu.org
9036
9037_LT_EOF
9038	  fi ;;
9039	esac
9040      fi
9041      break
9042    fi
9043  done
9044  IFS=$lt_save_ifs
9045  MAGIC_CMD=$lt_save_MAGIC_CMD
9046  ;;
9047esac
9048fi
9049
9050MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9051if test -n "$MAGIC_CMD"; then
9052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9053printf "%s\n" "$MAGIC_CMD" >&6; }
9054else
9055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056printf "%s\n" "no" >&6; }
9057fi
9058
9059
9060  else
9061    MAGIC_CMD=:
9062  fi
9063fi
9064
9065  fi
9066  ;;
9067esac
9068
9069# Use C for the default configuration in the libtool script
9070
9071lt_save_CC=$CC
9072ac_ext=c
9073ac_cpp='$CPP $CPPFLAGS'
9074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077
9078
9079# Source file extension for C test sources.
9080ac_ext=c
9081
9082# Object file extension for compiled C test sources.
9083objext=o
9084objext=$objext
9085
9086# Code to be used in simple compile tests
9087lt_simple_compile_test_code="int some_variable = 0;"
9088
9089# Code to be used in simple link tests
9090lt_simple_link_test_code='int main(){return(0);}'
9091
9092
9093
9094
9095
9096
9097
9098# If no C compiler was specified, use CC.
9099LTCC=${LTCC-"$CC"}
9100
9101# If no C compiler flags were specified, use CFLAGS.
9102LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9103
9104# Allow CC to be a program name with arguments.
9105compiler=$CC
9106
9107# Save the default compiler, since it gets overwritten when the other
9108# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9109compiler_DEFAULT=$CC
9110
9111# save warnings/boilerplate of simple test code
9112ac_outfile=conftest.$ac_objext
9113echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9115_lt_compiler_boilerplate=`cat conftest.err`
9116$RM conftest*
9117
9118ac_outfile=conftest.$ac_objext
9119echo "$lt_simple_link_test_code" >conftest.$ac_ext
9120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9121_lt_linker_boilerplate=`cat conftest.err`
9122$RM -r conftest*
9123
9124
9125## CAVEAT EMPTOR:
9126## There is no encapsulation within the following macros, do not change
9127## the running order or otherwise move them around unless you know exactly
9128## what you are doing...
9129if test -n "$compiler"; then
9130
9131lt_prog_compiler_no_builtin_flag=
9132
9133if test yes = "$GCC"; then
9134  case $cc_basename in
9135  nvcc*)
9136    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9137  *)
9138    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9139  esac
9140
9141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9142printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9143if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9144then :
9145  printf %s "(cached) " >&6
9146else $as_nop
9147  lt_cv_prog_compiler_rtti_exceptions=no
9148   ac_outfile=conftest.$ac_objext
9149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9151   # Insert the option either (1) after the last *FLAGS variable, or
9152   # (2) before a word containing "conftest.", or (3) at the end.
9153   # Note that $ac_compile itself does not contain backslashes and begins
9154   # with a dollar sign (not a hyphen), so the echo should work correctly.
9155   # The option is referenced via a variable to avoid confusing sed.
9156   lt_compile=`echo "$ac_compile" | $SED \
9157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159   -e 's:$: $lt_compiler_flag:'`
9160   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161   (eval "$lt_compile" 2>conftest.err)
9162   ac_status=$?
9163   cat conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   if (exit $ac_status) && test -s "$ac_outfile"; then
9166     # The compiler can only warn and ignore the option if not recognized
9167     # So say no if there are warnings other than the usual output.
9168     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9169     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9171       lt_cv_prog_compiler_rtti_exceptions=yes
9172     fi
9173   fi
9174   $RM conftest*
9175
9176fi
9177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9178printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9179
9180if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9181    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9182else
9183    :
9184fi
9185
9186fi
9187
9188
9189
9190
9191
9192
9193  lt_prog_compiler_wl=
9194lt_prog_compiler_pic=
9195lt_prog_compiler_static=
9196
9197
9198  if test yes = "$GCC"; then
9199    lt_prog_compiler_wl='-Wl,'
9200    lt_prog_compiler_static='-static'
9201
9202    case $host_os in
9203      aix*)
9204      # All AIX code is PIC.
9205      if test ia64 = "$host_cpu"; then
9206	# AIX 5 now supports IA64 processor
9207	lt_prog_compiler_static='-Bstatic'
9208      fi
9209      lt_prog_compiler_pic='-fPIC'
9210      ;;
9211
9212    amigaos*)
9213      case $host_cpu in
9214      powerpc)
9215            # see comment about AmigaOS4 .so support
9216            lt_prog_compiler_pic='-fPIC'
9217        ;;
9218      m68k)
9219            # FIXME: we need at least 68020 code to build shared libraries, but
9220            # adding the '-m68020' flag to GCC prevents building anything better,
9221            # like '-m68040'.
9222            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9223        ;;
9224      esac
9225      ;;
9226
9227    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9228      # PIC is the default for these OSes.
9229      ;;
9230
9231    mingw* | cygwin* | pw32* | os2* | cegcc*)
9232      # This hack is so that the source file can tell whether it is being
9233      # built for inclusion in a dll (and should export symbols for example).
9234      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9235      # (--disable-auto-import) libraries
9236      lt_prog_compiler_pic='-DDLL_EXPORT'
9237      case $host_os in
9238      os2*)
9239	lt_prog_compiler_static='$wl-static'
9240	;;
9241      esac
9242      ;;
9243
9244    darwin* | rhapsody*)
9245      # PIC is the default on this platform
9246      # Common symbols not allowed in MH_DYLIB files
9247      lt_prog_compiler_pic='-fno-common'
9248      ;;
9249
9250    haiku*)
9251      # PIC is the default for Haiku.
9252      # The "-static" flag exists, but is broken.
9253      lt_prog_compiler_static=
9254      ;;
9255
9256    hpux*)
9257      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9258      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9259      # sets the default TLS model and affects inlining.
9260      case $host_cpu in
9261      hppa*64*)
9262	# +Z the default
9263	;;
9264      *)
9265	lt_prog_compiler_pic='-fPIC'
9266	;;
9267      esac
9268      ;;
9269
9270    interix[3-9]*)
9271      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9272      # Instead, we relocate shared libraries at runtime.
9273      ;;
9274
9275    msdosdjgpp*)
9276      # Just because we use GCC doesn't mean we suddenly get shared libraries
9277      # on systems that don't support them.
9278      lt_prog_compiler_can_build_shared=no
9279      enable_shared=no
9280      ;;
9281
9282    *nto* | *qnx*)
9283      # QNX uses GNU C++, but need to define -shared option too, otherwise
9284      # it will coredump.
9285      lt_prog_compiler_pic='-fPIC -shared'
9286      ;;
9287
9288    sysv4*MP*)
9289      if test -d /usr/nec; then
9290	lt_prog_compiler_pic=-Kconform_pic
9291      fi
9292      ;;
9293
9294    *)
9295      lt_prog_compiler_pic='-fPIC'
9296      ;;
9297    esac
9298
9299    case $cc_basename in
9300    nvcc*) # Cuda Compiler Driver 2.2
9301      lt_prog_compiler_wl='-Xlinker '
9302      if test -n "$lt_prog_compiler_pic"; then
9303        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9304      fi
9305      ;;
9306    esac
9307  else
9308    # PORTME Check for flag to pass linker flags through the system compiler.
9309    case $host_os in
9310    aix*)
9311      lt_prog_compiler_wl='-Wl,'
9312      if test ia64 = "$host_cpu"; then
9313	# AIX 5 now supports IA64 processor
9314	lt_prog_compiler_static='-Bstatic'
9315      else
9316	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9317      fi
9318      ;;
9319
9320    darwin* | rhapsody*)
9321      # PIC is the default on this platform
9322      # Common symbols not allowed in MH_DYLIB files
9323      lt_prog_compiler_pic='-fno-common'
9324      case $cc_basename in
9325      nagfor*)
9326        # NAG Fortran compiler
9327        lt_prog_compiler_wl='-Wl,-Wl,,'
9328        lt_prog_compiler_pic='-PIC'
9329        lt_prog_compiler_static='-Bstatic'
9330        ;;
9331      esac
9332      ;;
9333
9334    mingw* | cygwin* | pw32* | os2* | cegcc*)
9335      # This hack is so that the source file can tell whether it is being
9336      # built for inclusion in a dll (and should export symbols for example).
9337      lt_prog_compiler_pic='-DDLL_EXPORT'
9338      case $host_os in
9339      os2*)
9340	lt_prog_compiler_static='$wl-static'
9341	;;
9342      esac
9343      ;;
9344
9345    hpux9* | hpux10* | hpux11*)
9346      lt_prog_compiler_wl='-Wl,'
9347      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9348      # not for PA HP-UX.
9349      case $host_cpu in
9350      hppa*64*|ia64*)
9351	# +Z the default
9352	;;
9353      *)
9354	lt_prog_compiler_pic='+Z'
9355	;;
9356      esac
9357      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9358      lt_prog_compiler_static='$wl-a ${wl}archive'
9359      ;;
9360
9361    irix5* | irix6* | nonstopux*)
9362      lt_prog_compiler_wl='-Wl,'
9363      # PIC (with -KPIC) is the default.
9364      lt_prog_compiler_static='-non_shared'
9365      ;;
9366
9367    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9368      case $cc_basename in
9369      # old Intel for x86_64, which still supported -KPIC.
9370      ecc*)
9371	lt_prog_compiler_wl='-Wl,'
9372	lt_prog_compiler_pic='-KPIC'
9373	lt_prog_compiler_static='-static'
9374        ;;
9375      # icc used to be incompatible with GCC.
9376      # ICC 10 doesn't accept -KPIC any more.
9377      icc* | ifort*)
9378	lt_prog_compiler_wl='-Wl,'
9379	lt_prog_compiler_pic='-fPIC'
9380	lt_prog_compiler_static='-static'
9381        ;;
9382      # Lahey Fortran 8.1.
9383      lf95*)
9384	lt_prog_compiler_wl='-Wl,'
9385	lt_prog_compiler_pic='--shared'
9386	lt_prog_compiler_static='--static'
9387	;;
9388      nagfor*)
9389	# NAG Fortran compiler
9390	lt_prog_compiler_wl='-Wl,-Wl,,'
9391	lt_prog_compiler_pic='-PIC'
9392	lt_prog_compiler_static='-Bstatic'
9393	;;
9394      tcc*)
9395	# Fabrice Bellard et al's Tiny C Compiler
9396	lt_prog_compiler_wl='-Wl,'
9397	lt_prog_compiler_pic='-fPIC'
9398	lt_prog_compiler_static='-static'
9399	;;
9400      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9401        # Portland Group compilers (*not* the Pentium gcc compiler,
9402	# which looks to be a dead project)
9403	lt_prog_compiler_wl='-Wl,'
9404	lt_prog_compiler_pic='-fpic'
9405	lt_prog_compiler_static='-Bstatic'
9406        ;;
9407      ccc*)
9408        lt_prog_compiler_wl='-Wl,'
9409        # All Alpha code is PIC.
9410        lt_prog_compiler_static='-non_shared'
9411        ;;
9412      xl* | bgxl* | bgf* | mpixl*)
9413	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9414	lt_prog_compiler_wl='-Wl,'
9415	lt_prog_compiler_pic='-qpic'
9416	lt_prog_compiler_static='-qstaticlink'
9417	;;
9418      *)
9419	case `$CC -V 2>&1 | $SED 5q` in
9420	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9421	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9422	  lt_prog_compiler_pic='-KPIC'
9423	  lt_prog_compiler_static='-Bstatic'
9424	  lt_prog_compiler_wl=''
9425	  ;;
9426	*Sun\ F* | *Sun*Fortran*)
9427	  lt_prog_compiler_pic='-KPIC'
9428	  lt_prog_compiler_static='-Bstatic'
9429	  lt_prog_compiler_wl='-Qoption ld '
9430	  ;;
9431	*Sun\ C*)
9432	  # Sun C 5.9
9433	  lt_prog_compiler_pic='-KPIC'
9434	  lt_prog_compiler_static='-Bstatic'
9435	  lt_prog_compiler_wl='-Wl,'
9436	  ;;
9437        *Intel*\ [CF]*Compiler*)
9438	  lt_prog_compiler_wl='-Wl,'
9439	  lt_prog_compiler_pic='-fPIC'
9440	  lt_prog_compiler_static='-static'
9441	  ;;
9442	*Portland\ Group*)
9443	  lt_prog_compiler_wl='-Wl,'
9444	  lt_prog_compiler_pic='-fpic'
9445	  lt_prog_compiler_static='-Bstatic'
9446	  ;;
9447	esac
9448	;;
9449      esac
9450      ;;
9451
9452    newsos6)
9453      lt_prog_compiler_pic='-KPIC'
9454      lt_prog_compiler_static='-Bstatic'
9455      ;;
9456
9457    *nto* | *qnx*)
9458      # QNX uses GNU C++, but need to define -shared option too, otherwise
9459      # it will coredump.
9460      lt_prog_compiler_pic='-fPIC -shared'
9461      ;;
9462
9463    osf3* | osf4* | osf5*)
9464      lt_prog_compiler_wl='-Wl,'
9465      # All OSF/1 code is PIC.
9466      lt_prog_compiler_static='-non_shared'
9467      ;;
9468
9469    rdos*)
9470      lt_prog_compiler_static='-non_shared'
9471      ;;
9472
9473    solaris*)
9474      lt_prog_compiler_pic='-KPIC'
9475      lt_prog_compiler_static='-Bstatic'
9476      case $cc_basename in
9477      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9478	lt_prog_compiler_wl='-Qoption ld ';;
9479      *)
9480	lt_prog_compiler_wl='-Wl,';;
9481      esac
9482      ;;
9483
9484    sunos4*)
9485      lt_prog_compiler_wl='-Qoption ld '
9486      lt_prog_compiler_pic='-PIC'
9487      lt_prog_compiler_static='-Bstatic'
9488      ;;
9489
9490    sysv4 | sysv4.2uw2* | sysv4.3*)
9491      lt_prog_compiler_wl='-Wl,'
9492      lt_prog_compiler_pic='-KPIC'
9493      lt_prog_compiler_static='-Bstatic'
9494      ;;
9495
9496    sysv4*MP*)
9497      if test -d /usr/nec; then
9498	lt_prog_compiler_pic='-Kconform_pic'
9499	lt_prog_compiler_static='-Bstatic'
9500      fi
9501      ;;
9502
9503    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9504      lt_prog_compiler_wl='-Wl,'
9505      lt_prog_compiler_pic='-KPIC'
9506      lt_prog_compiler_static='-Bstatic'
9507      ;;
9508
9509    unicos*)
9510      lt_prog_compiler_wl='-Wl,'
9511      lt_prog_compiler_can_build_shared=no
9512      ;;
9513
9514    uts4*)
9515      lt_prog_compiler_pic='-pic'
9516      lt_prog_compiler_static='-Bstatic'
9517      ;;
9518
9519    *)
9520      lt_prog_compiler_can_build_shared=no
9521      ;;
9522    esac
9523  fi
9524
9525case $host_os in
9526  # For platforms that do not support PIC, -DPIC is meaningless:
9527  *djgpp*)
9528    lt_prog_compiler_pic=
9529    ;;
9530  *)
9531    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9532    ;;
9533esac
9534
9535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9536printf %s "checking for $compiler option to produce PIC... " >&6; }
9537if test ${lt_cv_prog_compiler_pic+y}
9538then :
9539  printf %s "(cached) " >&6
9540else $as_nop
9541  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9542fi
9543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9544printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9545lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9546
9547#
9548# Check to make sure the PIC flag actually works.
9549#
9550if test -n "$lt_prog_compiler_pic"; then
9551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9552printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9553if test ${lt_cv_prog_compiler_pic_works+y}
9554then :
9555  printf %s "(cached) " >&6
9556else $as_nop
9557  lt_cv_prog_compiler_pic_works=no
9558   ac_outfile=conftest.$ac_objext
9559   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9561   # Insert the option either (1) after the last *FLAGS variable, or
9562   # (2) before a word containing "conftest.", or (3) at the end.
9563   # Note that $ac_compile itself does not contain backslashes and begins
9564   # with a dollar sign (not a hyphen), so the echo should work correctly.
9565   # The option is referenced via a variable to avoid confusing sed.
9566   lt_compile=`echo "$ac_compile" | $SED \
9567   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9569   -e 's:$: $lt_compiler_flag:'`
9570   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9571   (eval "$lt_compile" 2>conftest.err)
9572   ac_status=$?
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   if (exit $ac_status) && test -s "$ac_outfile"; then
9576     # The compiler can only warn and ignore the option if not recognized
9577     # So say no if there are warnings other than the usual output.
9578     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9579     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9580     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9581       lt_cv_prog_compiler_pic_works=yes
9582     fi
9583   fi
9584   $RM conftest*
9585
9586fi
9587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9588printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9589
9590if test yes = "$lt_cv_prog_compiler_pic_works"; then
9591    case $lt_prog_compiler_pic in
9592     "" | " "*) ;;
9593     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9594     esac
9595else
9596    lt_prog_compiler_pic=
9597     lt_prog_compiler_can_build_shared=no
9598fi
9599
9600fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612#
9613# Check to make sure the static flag actually works.
9614#
9615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9617printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9618if test ${lt_cv_prog_compiler_static_works+y}
9619then :
9620  printf %s "(cached) " >&6
9621else $as_nop
9622  lt_cv_prog_compiler_static_works=no
9623   save_LDFLAGS=$LDFLAGS
9624   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9627     # The linker can only warn and ignore the option if not recognized
9628     # So say no if there are warnings
9629     if test -s conftest.err; then
9630       # Append any errors to the config.log.
9631       cat conftest.err 1>&5
9632       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634       if diff conftest.exp conftest.er2 >/dev/null; then
9635         lt_cv_prog_compiler_static_works=yes
9636       fi
9637     else
9638       lt_cv_prog_compiler_static_works=yes
9639     fi
9640   fi
9641   $RM -r conftest*
9642   LDFLAGS=$save_LDFLAGS
9643
9644fi
9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9646printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9647
9648if test yes = "$lt_cv_prog_compiler_static_works"; then
9649    :
9650else
9651    lt_prog_compiler_static=
9652fi
9653
9654
9655
9656
9657
9658
9659
9660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9661printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9662if test ${lt_cv_prog_compiler_c_o+y}
9663then :
9664  printf %s "(cached) " >&6
9665else $as_nop
9666  lt_cv_prog_compiler_c_o=no
9667   $RM -r conftest 2>/dev/null
9668   mkdir conftest
9669   cd conftest
9670   mkdir out
9671   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9672
9673   lt_compiler_flag="-o out/conftest2.$ac_objext"
9674   # Insert the option either (1) after the last *FLAGS variable, or
9675   # (2) before a word containing "conftest.", or (3) at the end.
9676   # Note that $ac_compile itself does not contain backslashes and begins
9677   # with a dollar sign (not a hyphen), so the echo should work correctly.
9678   lt_compile=`echo "$ac_compile" | $SED \
9679   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9681   -e 's:$: $lt_compiler_flag:'`
9682   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9683   (eval "$lt_compile" 2>out/conftest.err)
9684   ac_status=$?
9685   cat out/conftest.err >&5
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9688   then
9689     # The compiler can only warn and ignore the option if not recognized
9690     # So say no if there are warnings
9691     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9692     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9693     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9694       lt_cv_prog_compiler_c_o=yes
9695     fi
9696   fi
9697   chmod u+w . 2>&5
9698   $RM conftest*
9699   # SGI C++ compiler will create directory out/ii_files/ for
9700   # template instantiation
9701   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9702   $RM out/* && rmdir out
9703   cd ..
9704   $RM -r conftest
9705   $RM conftest*
9706
9707fi
9708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9709printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9710
9711
9712
9713
9714
9715
9716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9717printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9718if test ${lt_cv_prog_compiler_c_o+y}
9719then :
9720  printf %s "(cached) " >&6
9721else $as_nop
9722  lt_cv_prog_compiler_c_o=no
9723   $RM -r conftest 2>/dev/null
9724   mkdir conftest
9725   cd conftest
9726   mkdir out
9727   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9728
9729   lt_compiler_flag="-o out/conftest2.$ac_objext"
9730   # Insert the option either (1) after the last *FLAGS variable, or
9731   # (2) before a word containing "conftest.", or (3) at the end.
9732   # Note that $ac_compile itself does not contain backslashes and begins
9733   # with a dollar sign (not a hyphen), so the echo should work correctly.
9734   lt_compile=`echo "$ac_compile" | $SED \
9735   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9736   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9737   -e 's:$: $lt_compiler_flag:'`
9738   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9739   (eval "$lt_compile" 2>out/conftest.err)
9740   ac_status=$?
9741   cat out/conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9744   then
9745     # The compiler can only warn and ignore the option if not recognized
9746     # So say no if there are warnings
9747     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9748     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9749     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9750       lt_cv_prog_compiler_c_o=yes
9751     fi
9752   fi
9753   chmod u+w . 2>&5
9754   $RM conftest*
9755   # SGI C++ compiler will create directory out/ii_files/ for
9756   # template instantiation
9757   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9758   $RM out/* && rmdir out
9759   cd ..
9760   $RM -r conftest
9761   $RM conftest*
9762
9763fi
9764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9766
9767
9768
9769
9770hard_links=nottested
9771if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9772  # do not overwrite the value of need_locks provided by the user
9773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774printf %s "checking if we can lock with hard links... " >&6; }
9775  hard_links=yes
9776  $RM conftest*
9777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778  touch conftest.a
9779  ln conftest.a conftest.b 2>&5 || hard_links=no
9780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782printf "%s\n" "$hard_links" >&6; }
9783  if test no = "$hard_links"; then
9784    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9785printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9786    need_locks=warn
9787  fi
9788else
9789  need_locks=no
9790fi
9791
9792
9793
9794
9795
9796
9797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9799
9800  runpath_var=
9801  allow_undefined_flag=
9802  always_export_symbols=no
9803  archive_cmds=
9804  archive_expsym_cmds=
9805  compiler_needs_object=no
9806  enable_shared_with_static_runtimes=no
9807  export_dynamic_flag_spec=
9808  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809  hardcode_automatic=no
9810  hardcode_direct=no
9811  hardcode_direct_absolute=no
9812  hardcode_libdir_flag_spec=
9813  hardcode_libdir_separator=
9814  hardcode_minus_L=no
9815  hardcode_shlibpath_var=unsupported
9816  inherit_rpath=no
9817  link_all_deplibs=unknown
9818  module_cmds=
9819  module_expsym_cmds=
9820  old_archive_from_new_cmds=
9821  old_archive_from_expsyms_cmds=
9822  thread_safe_flag_spec=
9823  whole_archive_flag_spec=
9824  # include_expsyms should be a list of space-separated symbols to be *always*
9825  # included in the symbol list
9826  include_expsyms=
9827  # exclude_expsyms can be an extended regexp of symbols to exclude
9828  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9829  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9830  # as well as any symbol that contains 'd'.
9831  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833  # platforms (ab)use it in PIC code, but their linkers get confused if
9834  # the symbol is explicitly referenced.  Since portable code cannot
9835  # rely on this symbol name, it's probably fine to never include it in
9836  # preloaded symbol tables.
9837  # Exclude shared library initialization/finalization symbols.
9838  extract_expsyms_cmds=
9839
9840  case $host_os in
9841  cygwin* | mingw* | pw32* | cegcc*)
9842    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9843    # When not using gcc, we currently assume that we are using
9844    # Microsoft Visual C++ or Intel C++ Compiler.
9845    if test yes != "$GCC"; then
9846      with_gnu_ld=no
9847    fi
9848    ;;
9849  interix*)
9850    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9851    with_gnu_ld=yes
9852    ;;
9853  openbsd* | bitrig*)
9854    with_gnu_ld=no
9855    ;;
9856  esac
9857
9858  ld_shlibs=yes
9859
9860  # On some targets, GNU ld is compatible enough with the native linker
9861  # that we're better off using the native interface for both.
9862  lt_use_gnu_ld_interface=no
9863  if test yes = "$with_gnu_ld"; then
9864    case $host_os in
9865      aix*)
9866	# The AIX port of GNU ld has always aspired to compatibility
9867	# with the native linker.  However, as the warning in the GNU ld
9868	# block says, versions before 2.19.5* couldn't really create working
9869	# shared libraries, regardless of the interface used.
9870	case `$LD -v 2>&1` in
9871	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9872	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9873	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9874	  *)
9875	    lt_use_gnu_ld_interface=yes
9876	    ;;
9877	esac
9878	;;
9879      *)
9880	lt_use_gnu_ld_interface=yes
9881	;;
9882    esac
9883  fi
9884
9885  if test yes = "$lt_use_gnu_ld_interface"; then
9886    # If archive_cmds runs LD, not CC, wlarc should be empty
9887    wlarc='$wl'
9888
9889    # Set some defaults for GNU ld with shared library support. These
9890    # are reset later if shared libraries are not supported. Putting them
9891    # here allows them to be overridden if necessary.
9892    runpath_var=LD_RUN_PATH
9893    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894    export_dynamic_flag_spec='$wl--export-dynamic'
9895    # ancient GNU ld didn't support --whole-archive et. al.
9896    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9897      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9898    else
9899      whole_archive_flag_spec=
9900    fi
9901    supports_anon_versioning=no
9902    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9903      *GNU\ gold*) supports_anon_versioning=yes ;;
9904      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9905      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9906      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9907      *\ 2.11.*) ;; # other 2.11 versions
9908      *) supports_anon_versioning=yes ;;
9909    esac
9910
9911    # See if GNU ld supports shared libraries.
9912    case $host_os in
9913    aix[3-9]*)
9914      # On AIX/PPC, the GNU linker is very broken
9915      if test ia64 != "$host_cpu"; then
9916	ld_shlibs=no
9917	cat <<_LT_EOF 1>&2
9918
9919*** Warning: the GNU linker, at least up to release 2.19, is reported
9920*** to be unable to reliably create shared libraries on AIX.
9921*** Therefore, libtool is disabling shared libraries support.  If you
9922*** really care for shared libraries, you may want to install binutils
9923*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9924*** You will then need to restart the configuration process.
9925
9926_LT_EOF
9927      fi
9928      ;;
9929
9930    amigaos*)
9931      case $host_cpu in
9932      powerpc)
9933            # see comment about AmigaOS4 .so support
9934            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935            archive_expsym_cmds=''
9936        ;;
9937      m68k)
9938            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)'
9939            hardcode_libdir_flag_spec='-L$libdir'
9940            hardcode_minus_L=yes
9941        ;;
9942      esac
9943      ;;
9944
9945    beos*)
9946      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947	allow_undefined_flag=unsupported
9948	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9949	# support --undefined.  This deserves some investigation.  FIXME
9950	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951      else
9952	ld_shlibs=no
9953      fi
9954      ;;
9955
9956    cygwin* | mingw* | pw32* | cegcc*)
9957      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9958      # as there is no search path for DLLs.
9959      hardcode_libdir_flag_spec='-L$libdir'
9960      export_dynamic_flag_spec='$wl--export-all-symbols'
9961      allow_undefined_flag=unsupported
9962      always_export_symbols=no
9963      enable_shared_with_static_runtimes=yes
9964      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'
9965      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9966
9967      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9968        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9969	# If the export-symbols file already is a .def file, use it as
9970	# is; otherwise, prepend EXPORTS...
9971	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9972          cp $export_symbols $output_objdir/$soname.def;
9973        else
9974          echo EXPORTS > $output_objdir/$soname.def;
9975          cat $export_symbols >> $output_objdir/$soname.def;
9976        fi~
9977        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9978      else
9979	ld_shlibs=no
9980      fi
9981      ;;
9982
9983    haiku*)
9984      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985      link_all_deplibs=yes
9986      ;;
9987
9988    os2*)
9989      hardcode_libdir_flag_spec='-L$libdir'
9990      hardcode_minus_L=yes
9991      allow_undefined_flag=unsupported
9992      shrext_cmds=.dll
9993      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996	$ECHO EXPORTS >> $output_objdir/$libname.def~
9997	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9998	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9999	emximp -o $lib $output_objdir/$libname.def'
10000      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003	$ECHO EXPORTS >> $output_objdir/$libname.def~
10004	prefix_cmds="$SED"~
10005	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10006	  prefix_cmds="$prefix_cmds -e 1d";
10007	fi~
10008	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10009	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10010	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011	emximp -o $lib $output_objdir/$libname.def'
10012      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10013      enable_shared_with_static_runtimes=yes
10014      file_list_spec='@'
10015      ;;
10016
10017    interix[3-9]*)
10018      hardcode_direct=no
10019      hardcode_shlibpath_var=no
10020      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021      export_dynamic_flag_spec='$wl-E'
10022      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10023      # Instead, shared libraries are loaded at an image base (0x10000000 by
10024      # default) and relocated if they conflict, which is a slow very memory
10025      # consuming and fragmenting process.  To avoid this, we pick a random,
10026      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10027      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10028      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10029      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'
10030      ;;
10031
10032    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10033      tmp_diet=no
10034      if test linux-dietlibc = "$host_os"; then
10035	case $cc_basename in
10036	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10037	esac
10038      fi
10039      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10040	 && test no = "$tmp_diet"
10041      then
10042	tmp_addflag=' $pic_flag'
10043	tmp_sharedflag='-shared'
10044	case $cc_basename,$host_cpu in
10045        pgcc*)				# Portland Group C compiler
10046	  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'
10047	  tmp_addflag=' $pic_flag'
10048	  ;;
10049	pgf77* | pgf90* | pgf95* | pgfortran*)
10050					# Portland Group f77 and f90 compilers
10051	  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'
10052	  tmp_addflag=' $pic_flag -Mnomain' ;;
10053	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10054	  tmp_addflag=' -i_dynamic' ;;
10055	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10056	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10057	ifc* | ifort*)			# Intel Fortran compiler
10058	  tmp_addflag=' -nofor_main' ;;
10059	lf95*)				# Lahey Fortran 8.1
10060	  whole_archive_flag_spec=
10061	  tmp_sharedflag='--shared' ;;
10062        nagfor*)                        # NAGFOR 5.3
10063          tmp_sharedflag='-Wl,-shared' ;;
10064	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10065	  tmp_sharedflag='-qmkshrobj'
10066	  tmp_addflag= ;;
10067	nvcc*)	# Cuda Compiler Driver 2.2
10068	  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'
10069	  compiler_needs_object=yes
10070	  ;;
10071	esac
10072	case `$CC -V 2>&1 | $SED 5q` in
10073	*Sun\ C*)			# Sun C 5.9
10074	  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'
10075	  compiler_needs_object=yes
10076	  tmp_sharedflag='-G' ;;
10077	*Sun\ F*)			# Sun Fortran 8.3
10078	  tmp_sharedflag='-G' ;;
10079	esac
10080	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10081
10082        if test yes = "$supports_anon_versioning"; then
10083          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085            echo "local: *; };" >> $output_objdir/$libname.ver~
10086            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10087        fi
10088
10089	case $cc_basename in
10090	tcc*)
10091	  export_dynamic_flag_spec='-rdynamic'
10092	  ;;
10093	xlf* | bgf* | bgxlf* | mpixlf*)
10094	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10095	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10096	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10098	  if test yes = "$supports_anon_versioning"; then
10099	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101              echo "local: *; };" >> $output_objdir/$libname.ver~
10102              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10103	  fi
10104	  ;;
10105	esac
10106      else
10107        ld_shlibs=no
10108      fi
10109      ;;
10110
10111    netbsd*)
10112      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10114	wlarc=
10115      else
10116	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118      fi
10119      ;;
10120
10121    solaris*)
10122      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10123	ld_shlibs=no
10124	cat <<_LT_EOF 1>&2
10125
10126*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10127*** create shared libraries on Solaris systems.  Therefore, libtool
10128*** is disabling shared libraries support.  We urge you to upgrade GNU
10129*** binutils to release 2.9.1 or newer.  Another option is to modify
10130*** your PATH or compiler configuration so that the native linker is
10131*** used, and then restart.
10132
10133_LT_EOF
10134      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10135	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10136	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10137      else
10138	ld_shlibs=no
10139      fi
10140      ;;
10141
10142    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10143      case `$LD -v 2>&1` in
10144        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10145	ld_shlibs=no
10146	cat <<_LT_EOF 1>&2
10147
10148*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10149*** reliably create shared libraries on SCO systems.  Therefore, libtool
10150*** is disabling shared libraries support.  We urge you to upgrade GNU
10151*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10152*** your PATH or compiler configuration so that the native linker is
10153*** used, and then restart.
10154
10155_LT_EOF
10156	;;
10157	*)
10158	  # For security reasons, it is highly recommended that you always
10159	  # use absolute paths for naming shared libraries, and exclude the
10160	  # DT_RUNPATH tag from executables and libraries.  But doing so
10161	  # requires that you compile everything twice, which is a pain.
10162	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10164	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166	  else
10167	    ld_shlibs=no
10168	  fi
10169	;;
10170      esac
10171      ;;
10172
10173    sunos4*)
10174      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175      wlarc=
10176      hardcode_direct=yes
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    *)
10181      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10182	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10184      else
10185	ld_shlibs=no
10186      fi
10187      ;;
10188    esac
10189
10190    if test no = "$ld_shlibs"; then
10191      runpath_var=
10192      hardcode_libdir_flag_spec=
10193      export_dynamic_flag_spec=
10194      whole_archive_flag_spec=
10195    fi
10196  else
10197    # PORTME fill in a description of your system's linker (not GNU ld)
10198    case $host_os in
10199    aix3*)
10200      allow_undefined_flag=unsupported
10201      always_export_symbols=yes
10202      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'
10203      # Note: this linker hardcodes the directories in LIBPATH if there
10204      # are no directories specified by -L.
10205      hardcode_minus_L=yes
10206      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10207	# Neither direct hardcoding nor static linking is supported with a
10208	# broken collect2.
10209	hardcode_direct=unsupported
10210      fi
10211      ;;
10212
10213    aix[4-9]*)
10214      if test ia64 = "$host_cpu"; then
10215	# On IA64, the linker does run time linking by default, so we don't
10216	# have to do anything special.
10217	aix_use_runtimelinking=no
10218	exp_sym_flag='-Bexport'
10219	no_entry_flag=
10220      else
10221	# If we're using GNU nm, then we don't want the "-C" option.
10222	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10223	# Without the "-l" option, or with the "-B" option, AIX nm treats
10224	# weak defined symbols like other global defined symbols, whereas
10225	# GNU nm marks them as "W".
10226	# While the 'weak' keyword is ignored in the Export File, we need
10227	# it in the Import File for the 'aix-soname' feature, so we have
10228	# to replace the "-B" option with "-P" for AIX nm.
10229	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10231	else
10232	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10233	fi
10234	aix_use_runtimelinking=no
10235
10236	# Test if we are trying to use run time linking or normal
10237	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238	# have runtime linking enabled, and use it for executables.
10239	# For shared libraries, we enable/disable runtime linking
10240	# depending on the kind of the shared library created -
10241	# when "with_aix_soname,aix_use_runtimelinking" is:
10242	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10243	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10244	#            lib.a           static archive
10245	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10246	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10247	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10248	#            lib.a(lib.so.V) shared, rtl:no
10249	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10250	#            lib.a           static archive
10251	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10252	  for ld_flag in $LDFLAGS; do
10253	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10254	    aix_use_runtimelinking=yes
10255	    break
10256	  fi
10257	  done
10258	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10259	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10260	    # so we don't have lib.a shared libs to link our executables.
10261	    # We have to force runtime linking in this case.
10262	    aix_use_runtimelinking=yes
10263	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10264	  fi
10265	  ;;
10266	esac
10267
10268	exp_sym_flag='-bexport'
10269	no_entry_flag='-bnoentry'
10270      fi
10271
10272      # When large executables or shared objects are built, AIX ld can
10273      # have problems creating the table of contents.  If linking a library
10274      # or program results in "error TOC overflow" add -mminimal-toc to
10275      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10276      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278      archive_cmds=''
10279      hardcode_direct=yes
10280      hardcode_direct_absolute=yes
10281      hardcode_libdir_separator=':'
10282      link_all_deplibs=yes
10283      file_list_spec='$wl-f,'
10284      case $with_aix_soname,$aix_use_runtimelinking in
10285      aix,*) ;; # traditional, no import file
10286      svr4,* | *,yes) # use import file
10287	# The Import File defines what to hardcode.
10288	hardcode_direct=no
10289	hardcode_direct_absolute=no
10290	;;
10291      esac
10292
10293      if test yes = "$GCC"; then
10294	case $host_os in aix4.[012]|aix4.[012].*)
10295	# We only want to do this on AIX 4.2 and lower, the check
10296	# below for broken collect2 doesn't work under 4.3+
10297	  collect2name=`$CC -print-prog-name=collect2`
10298	  if test -f "$collect2name" &&
10299	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10300	  then
10301	  # We have reworked collect2
10302	  :
10303	  else
10304	  # We have old collect2
10305	  hardcode_direct=unsupported
10306	  # It fails to find uninstalled libraries when the uninstalled
10307	  # path is not listed in the libpath.  Setting hardcode_minus_L
10308	  # to unsupported forces relinking
10309	  hardcode_minus_L=yes
10310	  hardcode_libdir_flag_spec='-L$libdir'
10311	  hardcode_libdir_separator=
10312	  fi
10313	  ;;
10314	esac
10315	shared_flag='-shared'
10316	if test yes = "$aix_use_runtimelinking"; then
10317	  shared_flag="$shared_flag "'$wl-G'
10318	fi
10319	# Need to ensure runtime linking is disabled for the traditional
10320	# shared library, or the linker may eventually find shared libraries
10321	# /with/ Import File - we do not want to mix them.
10322	shared_flag_aix='-shared'
10323	shared_flag_svr4='-shared $wl-G'
10324      else
10325	# not using gcc
10326	if test ia64 = "$host_cpu"; then
10327	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10328	# chokes on -Wl,-G. The following line is correct:
10329	  shared_flag='-G'
10330	else
10331	  if test yes = "$aix_use_runtimelinking"; then
10332	    shared_flag='$wl-G'
10333	  else
10334	    shared_flag='$wl-bM:SRE'
10335	  fi
10336	  shared_flag_aix='$wl-bM:SRE'
10337	  shared_flag_svr4='$wl-G'
10338	fi
10339      fi
10340
10341      export_dynamic_flag_spec='$wl-bexpall'
10342      # It seems that -bexpall does not export symbols beginning with
10343      # underscore (_), so it is better to generate a list of symbols to export.
10344      always_export_symbols=yes
10345      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10346	# Warning - without using the other runtime loading flags (-brtl),
10347	# -berok will link without error, but may produce a broken library.
10348	allow_undefined_flag='-berok'
10349        # Determine the default libpath from the value encoded in an
10350        # empty executable.
10351        if test set = "${lt_cv_aix_libpath+set}"; then
10352  aix_libpath=$lt_cv_aix_libpath
10353else
10354  if test ${lt_cv_aix_libpath_+y}
10355then :
10356  printf %s "(cached) " >&6
10357else $as_nop
10358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360
10361int
10362main (void)
10363{
10364
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"
10370then :
10371
10372  lt_aix_libpath_sed='
10373      /Import File Strings/,/^$/ {
10374	  /^0/ {
10375	      s/^0  *\([^ ]*\) *$/\1/
10376	      p
10377	  }
10378      }'
10379  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380  # Check for a 64-bit object if we didn't find anything.
10381  if test -z "$lt_cv_aix_libpath_"; then
10382    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383  fi
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.beam \
10386    conftest$ac_exeext conftest.$ac_ext
10387  if test -z "$lt_cv_aix_libpath_"; then
10388    lt_cv_aix_libpath_=/usr/lib:/lib
10389  fi
10390
10391fi
10392
10393  aix_libpath=$lt_cv_aix_libpath_
10394fi
10395
10396        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10397        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10398      else
10399	if test ia64 = "$host_cpu"; then
10400	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10401	  allow_undefined_flag="-z nodefs"
10402	  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"
10403	else
10404	 # Determine the default libpath from the value encoded in an
10405	 # empty executable.
10406	 if test set = "${lt_cv_aix_libpath+set}"; then
10407  aix_libpath=$lt_cv_aix_libpath
10408else
10409  if test ${lt_cv_aix_libpath_+y}
10410then :
10411  printf %s "(cached) " >&6
10412else $as_nop
10413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415
10416int
10417main (void)
10418{
10419
10420  ;
10421  return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"
10425then :
10426
10427  lt_aix_libpath_sed='
10428      /Import File Strings/,/^$/ {
10429	  /^0/ {
10430	      s/^0  *\([^ ]*\) *$/\1/
10431	      p
10432	  }
10433      }'
10434  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10435  # Check for a 64-bit object if we didn't find anything.
10436  if test -z "$lt_cv_aix_libpath_"; then
10437    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438  fi
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.beam \
10441    conftest$ac_exeext conftest.$ac_ext
10442  if test -z "$lt_cv_aix_libpath_"; then
10443    lt_cv_aix_libpath_=/usr/lib:/lib
10444  fi
10445
10446fi
10447
10448  aix_libpath=$lt_cv_aix_libpath_
10449fi
10450
10451	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10452	  # Warning - without using the other run time loading flags,
10453	  # -berok will link without error, but may produce a broken library.
10454	  no_undefined_flag=' $wl-bernotok'
10455	  allow_undefined_flag=' $wl-berok'
10456	  if test yes = "$with_gnu_ld"; then
10457	    # We only use this code for GNU lds that support --whole-archive.
10458	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10459	  else
10460	    # Exported symbols can be pulled into shared objects from archives
10461	    whole_archive_flag_spec='$convenience'
10462	  fi
10463	  archive_cmds_need_lc=yes
10464	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10465	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10466	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10467	  if test svr4 != "$with_aix_soname"; then
10468	    # This is similar to how AIX traditionally builds its shared libraries.
10469	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10470	  fi
10471	  if test aix != "$with_aix_soname"; then
10472	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10473	  else
10474	    # used by -dlpreopen to get the symbols
10475	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10476	  fi
10477	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10478	fi
10479      fi
10480      ;;
10481
10482    amigaos*)
10483      case $host_cpu in
10484      powerpc)
10485            # see comment about AmigaOS4 .so support
10486            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10487            archive_expsym_cmds=''
10488        ;;
10489      m68k)
10490            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)'
10491            hardcode_libdir_flag_spec='-L$libdir'
10492            hardcode_minus_L=yes
10493        ;;
10494      esac
10495      ;;
10496
10497    bsdi[45]*)
10498      export_dynamic_flag_spec=-rdynamic
10499      ;;
10500
10501    cygwin* | mingw* | pw32* | cegcc*)
10502      # When not using gcc, we currently assume that we are using
10503      # Microsoft Visual C++ or Intel C++ Compiler.
10504      # hardcode_libdir_flag_spec is actually meaningless, as there is
10505      # no search path for DLLs.
10506      case $cc_basename in
10507      cl* | icl*)
10508	# Native MSVC or ICC
10509	hardcode_libdir_flag_spec=' '
10510	allow_undefined_flag=unsupported
10511	always_export_symbols=yes
10512	file_list_spec='@'
10513	# Tell ltmain to make .lib files, not .a files.
10514	libext=lib
10515	# Tell ltmain to make .dll files, not .so files.
10516	shrext_cmds=.dll
10517	# FIXME: Setting linknames here is a bad hack.
10518	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10519	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10520            cp "$export_symbols" "$output_objdir/$soname.def";
10521            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10522          else
10523            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10524          fi~
10525          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10526          linknames='
10527	# The linker will not automatically build a static lib if we build a DLL.
10528	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10529	enable_shared_with_static_runtimes=yes
10530	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10531	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10532	# Don't use ranlib
10533	old_postinstall_cmds='chmod 644 $oldlib'
10534	postlink_cmds='lt_outputfile="@OUTPUT@"~
10535          lt_tool_outputfile="@TOOL_OUTPUT@"~
10536          case $lt_outputfile in
10537            *.exe|*.EXE) ;;
10538            *)
10539              lt_outputfile=$lt_outputfile.exe
10540              lt_tool_outputfile=$lt_tool_outputfile.exe
10541              ;;
10542          esac~
10543          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10544            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10545            $RM "$lt_outputfile.manifest";
10546          fi'
10547	;;
10548      *)
10549	# Assume MSVC and ICC wrapper
10550	hardcode_libdir_flag_spec=' '
10551	allow_undefined_flag=unsupported
10552	# Tell ltmain to make .lib files, not .a files.
10553	libext=lib
10554	# Tell ltmain to make .dll files, not .so files.
10555	shrext_cmds=.dll
10556	# FIXME: Setting linknames here is a bad hack.
10557	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10558	# The linker will automatically build a .lib file if we build a DLL.
10559	old_archive_from_new_cmds='true'
10560	# FIXME: Should let the user specify the lib program.
10561	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10562	enable_shared_with_static_runtimes=yes
10563	;;
10564      esac
10565      ;;
10566
10567    darwin* | rhapsody*)
10568
10569
10570  archive_cmds_need_lc=no
10571  hardcode_direct=no
10572  hardcode_automatic=yes
10573  hardcode_shlibpath_var=unsupported
10574  if test yes = "$lt_cv_ld_force_load"; then
10575    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\"`'
10576
10577  else
10578    whole_archive_flag_spec=''
10579  fi
10580  link_all_deplibs=yes
10581  allow_undefined_flag=$_lt_dar_allow_undefined
10582  case $cc_basename in
10583     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10584     *) _lt_dar_can_shared=$GCC ;;
10585  esac
10586  if test yes = "$_lt_dar_can_shared"; then
10587    output_verbose_link_cmd=func_echo_all
10588    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10589    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10590    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"
10591    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"
10592
10593  else
10594  ld_shlibs=no
10595  fi
10596
10597      ;;
10598
10599    dgux*)
10600      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601      hardcode_libdir_flag_spec='-L$libdir'
10602      hardcode_shlibpath_var=no
10603      ;;
10604
10605    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10606    # support.  Future versions do this automatically, but an explicit c++rt0.o
10607    # does not break anything, and helps significantly (at the cost of a little
10608    # extra space).
10609    freebsd2.2*)
10610      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10611      hardcode_libdir_flag_spec='-R$libdir'
10612      hardcode_direct=yes
10613      hardcode_shlibpath_var=no
10614      ;;
10615
10616    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10617    freebsd2.*)
10618      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619      hardcode_direct=yes
10620      hardcode_minus_L=yes
10621      hardcode_shlibpath_var=no
10622      ;;
10623
10624    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10625    freebsd* | dragonfly* | midnightbsd*)
10626      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627      hardcode_libdir_flag_spec='-R$libdir'
10628      hardcode_direct=yes
10629      hardcode_shlibpath_var=no
10630      ;;
10631
10632    hpux9*)
10633      if test yes = "$GCC"; then
10634	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10635      else
10636	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10637      fi
10638      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10639      hardcode_libdir_separator=:
10640      hardcode_direct=yes
10641
10642      # hardcode_minus_L: Not really in the search PATH,
10643      # but as the default location of the library.
10644      hardcode_minus_L=yes
10645      export_dynamic_flag_spec='$wl-E'
10646      ;;
10647
10648    hpux10*)
10649      if test yes,no = "$GCC,$with_gnu_ld"; then
10650	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10651      else
10652	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10653      fi
10654      if test no = "$with_gnu_ld"; then
10655	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10656	hardcode_libdir_separator=:
10657	hardcode_direct=yes
10658	hardcode_direct_absolute=yes
10659	export_dynamic_flag_spec='$wl-E'
10660	# hardcode_minus_L: Not really in the search PATH,
10661	# but as the default location of the library.
10662	hardcode_minus_L=yes
10663      fi
10664      ;;
10665
10666    hpux11*)
10667      if test yes,no = "$GCC,$with_gnu_ld"; then
10668	case $host_cpu in
10669	hppa*64*)
10670	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10671	  ;;
10672	ia64*)
10673	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10674	  ;;
10675	*)
10676	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677	  ;;
10678	esac
10679      else
10680	case $host_cpu in
10681	hppa*64*)
10682	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10683	  ;;
10684	ia64*)
10685	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10686	  ;;
10687	*)
10688
10689	  # Older versions of the 11.00 compiler do not understand -b yet
10690	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10691	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10692printf %s "checking if $CC understands -b... " >&6; }
10693if test ${lt_cv_prog_compiler__b+y}
10694then :
10695  printf %s "(cached) " >&6
10696else $as_nop
10697  lt_cv_prog_compiler__b=no
10698   save_LDFLAGS=$LDFLAGS
10699   LDFLAGS="$LDFLAGS -b"
10700   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10701   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10702     # The linker can only warn and ignore the option if not recognized
10703     # So say no if there are warnings
10704     if test -s conftest.err; then
10705       # Append any errors to the config.log.
10706       cat conftest.err 1>&5
10707       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10708       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10709       if diff conftest.exp conftest.er2 >/dev/null; then
10710         lt_cv_prog_compiler__b=yes
10711       fi
10712     else
10713       lt_cv_prog_compiler__b=yes
10714     fi
10715   fi
10716   $RM -r conftest*
10717   LDFLAGS=$save_LDFLAGS
10718
10719fi
10720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10721printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10722
10723if test yes = "$lt_cv_prog_compiler__b"; then
10724    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725else
10726    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10727fi
10728
10729	  ;;
10730	esac
10731      fi
10732      if test no = "$with_gnu_ld"; then
10733	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10734	hardcode_libdir_separator=:
10735
10736	case $host_cpu in
10737	hppa*64*|ia64*)
10738	  hardcode_direct=no
10739	  hardcode_shlibpath_var=no
10740	  ;;
10741	*)
10742	  hardcode_direct=yes
10743	  hardcode_direct_absolute=yes
10744	  export_dynamic_flag_spec='$wl-E'
10745
10746	  # hardcode_minus_L: Not really in the search PATH,
10747	  # but as the default location of the library.
10748	  hardcode_minus_L=yes
10749	  ;;
10750	esac
10751      fi
10752      ;;
10753
10754    irix5* | irix6* | nonstopux*)
10755      if test yes = "$GCC"; then
10756	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'
10757	# Try to use the -exported_symbol ld option, if it does not
10758	# work, assume that -exports_file does not work either and
10759	# implicitly export all symbols.
10760	# This should be the same for all languages, so no per-tag cache variable.
10761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10762printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10763if test ${lt_cv_irix_exported_symbol+y}
10764then :
10765  printf %s "(cached) " >&6
10766else $as_nop
10767  save_LDFLAGS=$LDFLAGS
10768	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10769	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h.  */
10771int foo (void) { return 0; }
10772_ACEOF
10773if ac_fn_c_try_link "$LINENO"
10774then :
10775  lt_cv_irix_exported_symbol=yes
10776else $as_nop
10777  lt_cv_irix_exported_symbol=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext conftest.beam \
10780    conftest$ac_exeext conftest.$ac_ext
10781           LDFLAGS=$save_LDFLAGS
10782fi
10783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10784printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10785	if test yes = "$lt_cv_irix_exported_symbol"; then
10786          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'
10787	fi
10788      else
10789	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'
10790	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'
10791      fi
10792      archive_cmds_need_lc='no'
10793      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794      hardcode_libdir_separator=:
10795      inherit_rpath=yes
10796      link_all_deplibs=yes
10797      ;;
10798
10799    linux*)
10800      case $cc_basename in
10801      tcc*)
10802	# Fabrice Bellard et al's Tiny C Compiler
10803	ld_shlibs=yes
10804	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805	;;
10806      esac
10807      ;;
10808
10809    netbsd*)
10810      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10812      else
10813	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10814      fi
10815      hardcode_libdir_flag_spec='-R$libdir'
10816      hardcode_direct=yes
10817      hardcode_shlibpath_var=no
10818      ;;
10819
10820    newsos6)
10821      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822      hardcode_direct=yes
10823      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10824      hardcode_libdir_separator=:
10825      hardcode_shlibpath_var=no
10826      ;;
10827
10828    *nto* | *qnx*)
10829      ;;
10830
10831    openbsd* | bitrig*)
10832      if test -f /usr/libexec/ld.so; then
10833	hardcode_direct=yes
10834	hardcode_shlibpath_var=no
10835	hardcode_direct_absolute=yes
10836	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10837	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10838	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10839	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10840	  export_dynamic_flag_spec='$wl-E'
10841	else
10842	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10844	fi
10845      else
10846	ld_shlibs=no
10847      fi
10848      ;;
10849
10850    os2*)
10851      hardcode_libdir_flag_spec='-L$libdir'
10852      hardcode_minus_L=yes
10853      allow_undefined_flag=unsupported
10854      shrext_cmds=.dll
10855      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858	$ECHO EXPORTS >> $output_objdir/$libname.def~
10859	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10860	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10861	emximp -o $lib $output_objdir/$libname.def'
10862      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10863	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10864	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10865	$ECHO EXPORTS >> $output_objdir/$libname.def~
10866	prefix_cmds="$SED"~
10867	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10868	  prefix_cmds="$prefix_cmds -e 1d";
10869	fi~
10870	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10871	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10872	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873	emximp -o $lib $output_objdir/$libname.def'
10874      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10875      enable_shared_with_static_runtimes=yes
10876      file_list_spec='@'
10877      ;;
10878
10879    osf3*)
10880      if test yes = "$GCC"; then
10881	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10882	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'
10883      else
10884	allow_undefined_flag=' -expect_unresolved \*'
10885	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'
10886      fi
10887      archive_cmds_need_lc='no'
10888      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10889      hardcode_libdir_separator=:
10890      ;;
10891
10892    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10893      if test yes = "$GCC"; then
10894	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10895	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'
10896	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10897      else
10898	allow_undefined_flag=' -expect_unresolved \*'
10899	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'
10900	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~
10901          $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'
10902
10903	# Both c and cxx compiler support -rpath directly
10904	hardcode_libdir_flag_spec='-rpath $libdir'
10905      fi
10906      archive_cmds_need_lc='no'
10907      hardcode_libdir_separator=:
10908      ;;
10909
10910    solaris*)
10911      no_undefined_flag=' -z defs'
10912      if test yes = "$GCC"; then
10913	wlarc='$wl'
10914	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10915	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916          $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'
10917      else
10918	case `$CC -V 2>&1` in
10919	*"Compilers 5.0"*)
10920	  wlarc=''
10921	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10924	  ;;
10925	*)
10926	  wlarc='$wl'
10927	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10928	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10929            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10930	  ;;
10931	esac
10932      fi
10933      hardcode_libdir_flag_spec='-R$libdir'
10934      hardcode_shlibpath_var=no
10935      case $host_os in
10936      solaris2.[0-5] | solaris2.[0-5].*) ;;
10937      *)
10938	# The compiler driver will combine and reorder linker options,
10939	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10940	# but is careful enough not to reorder.
10941	# Supported since Solaris 2.6 (maybe 2.5.1?)
10942	if test yes = "$GCC"; then
10943	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10944	else
10945	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10946	fi
10947	;;
10948      esac
10949      link_all_deplibs=yes
10950      ;;
10951
10952    sunos4*)
10953      if test sequent = "$host_vendor"; then
10954	# Use $CC to link under sequent, because it throws in some extra .o
10955	# files that make .init and .fini sections work.
10956	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10957      else
10958	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10959      fi
10960      hardcode_libdir_flag_spec='-L$libdir'
10961      hardcode_direct=yes
10962      hardcode_minus_L=yes
10963      hardcode_shlibpath_var=no
10964      ;;
10965
10966    sysv4)
10967      case $host_vendor in
10968	sni)
10969	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970	  hardcode_direct=yes # is this really true???
10971	;;
10972	siemens)
10973	  ## LD is ld it makes a PLAMLIB
10974	  ## CC just makes a GrossModule.
10975	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10976	  reload_cmds='$CC -r -o $output$reload_objs'
10977	  hardcode_direct=no
10978        ;;
10979	motorola)
10980	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10982	;;
10983      esac
10984      runpath_var='LD_RUN_PATH'
10985      hardcode_shlibpath_var=no
10986      ;;
10987
10988    sysv4.3*)
10989      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990      hardcode_shlibpath_var=no
10991      export_dynamic_flag_spec='-Bexport'
10992      ;;
10993
10994    sysv4*MP*)
10995      if test -d /usr/nec; then
10996	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997	hardcode_shlibpath_var=no
10998	runpath_var=LD_RUN_PATH
10999	hardcode_runpath_var=yes
11000	ld_shlibs=yes
11001      fi
11002      ;;
11003
11004    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005      no_undefined_flag='$wl-z,text'
11006      archive_cmds_need_lc=no
11007      hardcode_shlibpath_var=no
11008      runpath_var='LD_RUN_PATH'
11009
11010      if test yes = "$GCC"; then
11011	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013      else
11014	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016      fi
11017      ;;
11018
11019    sysv5* | sco3.2v5* | sco5v6*)
11020      # Note: We CANNOT use -z defs as we might desire, because we do not
11021      # link with -lc, and that would cause any symbols used from libc to
11022      # always be unresolved, which means just about no library would
11023      # ever link correctly.  If we're not using GNU ld we use -z text
11024      # though, which does catch some bad symbols but isn't as heavy-handed
11025      # as -z defs.
11026      no_undefined_flag='$wl-z,text'
11027      allow_undefined_flag='$wl-z,nodefs'
11028      archive_cmds_need_lc=no
11029      hardcode_shlibpath_var=no
11030      hardcode_libdir_flag_spec='$wl-R,$libdir'
11031      hardcode_libdir_separator=':'
11032      link_all_deplibs=yes
11033      export_dynamic_flag_spec='$wl-Bexport'
11034      runpath_var='LD_RUN_PATH'
11035
11036      if test yes = "$GCC"; then
11037	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039      else
11040	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042      fi
11043      ;;
11044
11045    uts4*)
11046      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047      hardcode_libdir_flag_spec='-L$libdir'
11048      hardcode_shlibpath_var=no
11049      ;;
11050
11051    *)
11052      ld_shlibs=no
11053      ;;
11054    esac
11055
11056    if test sni = "$host_vendor"; then
11057      case $host in
11058      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11059	export_dynamic_flag_spec='$wl-Blargedynsym'
11060	;;
11061      esac
11062    fi
11063  fi
11064
11065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11066printf "%s\n" "$ld_shlibs" >&6; }
11067test no = "$ld_shlibs" && can_build_shared=no
11068
11069with_gnu_ld=$with_gnu_ld
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085#
11086# Do we need to explicitly link libc?
11087#
11088case "x$archive_cmds_need_lc" in
11089x|xyes)
11090  # Assume -lc should be added
11091  archive_cmds_need_lc=yes
11092
11093  if test yes,yes = "$GCC,$enable_shared"; then
11094    case $archive_cmds in
11095    *'~'*)
11096      # FIXME: we may have to deal with multi-command sequences.
11097      ;;
11098    '$CC '*)
11099      # Test whether the compiler implicitly links with -lc since on some
11100      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11101      # to ld, don't add -lc before -lgcc.
11102      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11103printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11104if test ${lt_cv_archive_cmds_need_lc+y}
11105then :
11106  printf %s "(cached) " >&6
11107else $as_nop
11108  $RM conftest*
11109	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11110
11111	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11112  (eval $ac_compile) 2>&5
11113  ac_status=$?
11114  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115  test $ac_status = 0; } 2>conftest.err; then
11116	  soname=conftest
11117	  lib=conftest
11118	  libobjs=conftest.$ac_objext
11119	  deplibs=
11120	  wl=$lt_prog_compiler_wl
11121	  pic_flag=$lt_prog_compiler_pic
11122	  compiler_flags=-v
11123	  linker_flags=-v
11124	  verstring=
11125	  output_objdir=.
11126	  libname=conftest
11127	  lt_save_allow_undefined_flag=$allow_undefined_flag
11128	  allow_undefined_flag=
11129	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11130  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11131  ac_status=$?
11132  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133  test $ac_status = 0; }
11134	  then
11135	    lt_cv_archive_cmds_need_lc=no
11136	  else
11137	    lt_cv_archive_cmds_need_lc=yes
11138	  fi
11139	  allow_undefined_flag=$lt_save_allow_undefined_flag
11140	else
11141	  cat conftest.err 1>&5
11142	fi
11143	$RM conftest*
11144
11145fi
11146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11147printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11148      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11149      ;;
11150    esac
11151  fi
11152  ;;
11153esac
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11307printf %s "checking dynamic linker characteristics... " >&6; }
11308
11309if test yes = "$GCC"; then
11310  case $host_os in
11311    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11312    *) lt_awk_arg='/^libraries:/' ;;
11313  esac
11314  case $host_os in
11315    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11316    *) lt_sed_strip_eq='s|=/|/|g' ;;
11317  esac
11318  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11319  case $lt_search_path_spec in
11320  *\;*)
11321    # if the path contains ";" then we assume it to be the separator
11322    # otherwise default to the standard path separator (i.e. ":") - it is
11323    # assumed that no part of a normal pathname contains ";" but that should
11324    # okay in the real world where ";" in dirpaths is itself problematic.
11325    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11326    ;;
11327  *)
11328    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11329    ;;
11330  esac
11331  # Ok, now we have the path, separated by spaces, we can step through it
11332  # and add multilib dir if necessary...
11333  lt_tmp_lt_search_path_spec=
11334  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335  # ...but if some path component already ends with the multilib dir we assume
11336  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11337  case "$lt_multi_os_dir; $lt_search_path_spec " in
11338  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11339    lt_multi_os_dir=
11340    ;;
11341  esac
11342  for lt_sys_path in $lt_search_path_spec; do
11343    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11344      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11345    elif test -n "$lt_multi_os_dir"; then
11346      test -d "$lt_sys_path" && \
11347	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11348    fi
11349  done
11350  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11351BEGIN {RS = " "; FS = "/|\n";} {
11352  lt_foo = "";
11353  lt_count = 0;
11354  for (lt_i = NF; lt_i > 0; lt_i--) {
11355    if ($lt_i != "" && $lt_i != ".") {
11356      if ($lt_i == "..") {
11357        lt_count++;
11358      } else {
11359        if (lt_count == 0) {
11360          lt_foo = "/" $lt_i lt_foo;
11361        } else {
11362          lt_count--;
11363        }
11364      }
11365    }
11366  }
11367  if (lt_foo != "") { lt_freq[lt_foo]++; }
11368  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11369}'`
11370  # AWK program above erroneously prepends '/' to C:/dos/paths
11371  # for these hosts.
11372  case $host_os in
11373    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11374      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11375  esac
11376  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11377else
11378  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11379fi
11380library_names_spec=
11381libname_spec='lib$name'
11382soname_spec=
11383shrext_cmds=.so
11384postinstall_cmds=
11385postuninstall_cmds=
11386finish_cmds=
11387finish_eval=
11388shlibpath_var=
11389shlibpath_overrides_runpath=unknown
11390version_type=none
11391dynamic_linker="$host_os ld.so"
11392sys_lib_dlsearch_path_spec="/lib /usr/lib"
11393need_lib_prefix=unknown
11394hardcode_into_libs=no
11395
11396# when you set need_version to no, make sure it does not cause -set_version
11397# flags to be left without arguments
11398need_version=unknown
11399
11400
11401
11402case $host_os in
11403aix3*)
11404  version_type=linux # correct to gnu/linux during the next big refactor
11405  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11406  shlibpath_var=LIBPATH
11407
11408  # AIX 3 has no versioning support, so we append a major version to the name.
11409  soname_spec='$libname$release$shared_ext$major'
11410  ;;
11411
11412aix[4-9]*)
11413  version_type=linux # correct to gnu/linux during the next big refactor
11414  need_lib_prefix=no
11415  need_version=no
11416  hardcode_into_libs=yes
11417  if test ia64 = "$host_cpu"; then
11418    # AIX 5 supports IA64
11419    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11420    shlibpath_var=LD_LIBRARY_PATH
11421  else
11422    # With GCC up to 2.95.x, collect2 would create an import file
11423    # for dependence libraries.  The import file would start with
11424    # the line '#! .'.  This would cause the generated library to
11425    # depend on '.', always an invalid library.  This was fixed in
11426    # development snapshots of GCC prior to 3.0.
11427    case $host_os in
11428      aix4 | aix4.[01] | aix4.[01].*)
11429      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11430	   echo ' yes '
11431	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11432	:
11433      else
11434	can_build_shared=no
11435      fi
11436      ;;
11437    esac
11438    # Using Import Files as archive members, it is possible to support
11439    # filename-based versioning of shared library archives on AIX. While
11440    # this would work for both with and without runtime linking, it will
11441    # prevent static linking of such archives. So we do filename-based
11442    # shared library versioning with .so extension only, which is used
11443    # when both runtime linking and shared linking is enabled.
11444    # Unfortunately, runtime linking may impact performance, so we do
11445    # not want this to be the default eventually. Also, we use the
11446    # versioned .so libs for executables only if there is the -brtl
11447    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11448    # To allow for filename-based versioning support, we need to create
11449    # libNAME.so.V as an archive file, containing:
11450    # *) an Import File, referring to the versioned filename of the
11451    #    archive as well as the shared archive member, telling the
11452    #    bitwidth (32 or 64) of that shared object, and providing the
11453    #    list of exported symbols of that shared object, eventually
11454    #    decorated with the 'weak' keyword
11455    # *) the shared object with the F_LOADONLY flag set, to really avoid
11456    #    it being seen by the linker.
11457    # At run time we better use the real file rather than another symlink,
11458    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11459
11460    case $with_aix_soname,$aix_use_runtimelinking in
11461    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11462    # soname into executable. Probably we can add versioning support to
11463    # collect2, so additional links can be useful in future.
11464    aix,yes) # traditional libtool
11465      dynamic_linker='AIX unversionable lib.so'
11466      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11467      # instead of lib<name>.a to let people know that these are not
11468      # typical AIX shared libraries.
11469      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470      ;;
11471    aix,no) # traditional AIX only
11472      dynamic_linker='AIX lib.a(lib.so.V)'
11473      # We preserve .a as extension for shared libraries through AIX4.2
11474      # and later when we are not doing run time linking.
11475      library_names_spec='$libname$release.a $libname.a'
11476      soname_spec='$libname$release$shared_ext$major'
11477      ;;
11478    svr4,*) # full svr4 only
11479      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11480      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11481      # We do not specify a path in Import Files, so LIBPATH fires.
11482      shlibpath_overrides_runpath=yes
11483      ;;
11484    *,yes) # both, prefer svr4
11485      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11486      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11487      # unpreferred sharedlib libNAME.a needs extra handling
11488      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11489      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11490      # We do not specify a path in Import Files, so LIBPATH fires.
11491      shlibpath_overrides_runpath=yes
11492      ;;
11493    *,no) # both, prefer aix
11494      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11495      library_names_spec='$libname$release.a $libname.a'
11496      soname_spec='$libname$release$shared_ext$major'
11497      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11498      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11499      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11500      ;;
11501    esac
11502    shlibpath_var=LIBPATH
11503  fi
11504  ;;
11505
11506amigaos*)
11507  case $host_cpu in
11508  powerpc)
11509    # Since July 2007 AmigaOS4 officially supports .so libraries.
11510    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11511    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512    ;;
11513  m68k)
11514    library_names_spec='$libname.ixlibrary $libname.a'
11515    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11516    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11517    ;;
11518  esac
11519  ;;
11520
11521beos*)
11522  library_names_spec='$libname$shared_ext'
11523  dynamic_linker="$host_os ld.so"
11524  shlibpath_var=LIBRARY_PATH
11525  ;;
11526
11527bsdi[45]*)
11528  version_type=linux # correct to gnu/linux during the next big refactor
11529  need_version=no
11530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531  soname_spec='$libname$release$shared_ext$major'
11532  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11533  shlibpath_var=LD_LIBRARY_PATH
11534  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11535  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11536  # the default ld.so.conf also contains /usr/contrib/lib and
11537  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11538  # libtool to hard-code these into programs
11539  ;;
11540
11541cygwin* | mingw* | pw32* | cegcc*)
11542  version_type=windows
11543  shrext_cmds=.dll
11544  need_version=no
11545  need_lib_prefix=no
11546
11547  case $GCC,$cc_basename in
11548  yes,*)
11549    # gcc
11550    library_names_spec='$libname.dll.a'
11551    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11552    postinstall_cmds='base_file=`basename \$file`~
11553      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11554      dldir=$destdir/`dirname \$dlpath`~
11555      test -d \$dldir || mkdir -p \$dldir~
11556      $install_prog $dir/$dlname \$dldir/$dlname~
11557      chmod a+x \$dldir/$dlname~
11558      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11559        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11560      fi'
11561    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11562      dlpath=$dir/\$dldll~
11563       $RM \$dlpath'
11564    shlibpath_overrides_runpath=yes
11565
11566    case $host_os in
11567    cygwin*)
11568      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11569      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11570
11571      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11572      ;;
11573    mingw* | cegcc*)
11574      # MinGW DLLs use traditional 'lib' prefix
11575      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576      ;;
11577    pw32*)
11578      # pw32 DLLs use 'pw' prefix rather than 'lib'
11579      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11580      ;;
11581    esac
11582    dynamic_linker='Win32 ld.exe'
11583    ;;
11584
11585  *,cl* | *,icl*)
11586    # Native MSVC or ICC
11587    libname_spec='$name'
11588    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589    library_names_spec='$libname.dll.lib'
11590
11591    case $build_os in
11592    mingw*)
11593      sys_lib_search_path_spec=
11594      lt_save_ifs=$IFS
11595      IFS=';'
11596      for lt_path in $LIB
11597      do
11598        IFS=$lt_save_ifs
11599        # Let DOS variable expansion print the short 8.3 style file name.
11600        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11601        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11602      done
11603      IFS=$lt_save_ifs
11604      # Convert to MSYS style.
11605      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11606      ;;
11607    cygwin*)
11608      # Convert to unix form, then to dos form, then back to unix form
11609      # but this time dos style (no spaces!) so that the unix form looks
11610      # like /cygdrive/c/PROGRA~1:/cygdr...
11611      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11612      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11613      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11614      ;;
11615    *)
11616      sys_lib_search_path_spec=$LIB
11617      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11618        # It is most probably a Windows format PATH.
11619        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11620      else
11621        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11622      fi
11623      # FIXME: find the short name or the path components, as spaces are
11624      # common. (e.g. "Program Files" -> "PROGRA~1")
11625      ;;
11626    esac
11627
11628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11629    postinstall_cmds='base_file=`basename \$file`~
11630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11631      dldir=$destdir/`dirname \$dlpath`~
11632      test -d \$dldir || mkdir -p \$dldir~
11633      $install_prog $dir/$dlname \$dldir/$dlname'
11634    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11635      dlpath=$dir/\$dldll~
11636       $RM \$dlpath'
11637    shlibpath_overrides_runpath=yes
11638    dynamic_linker='Win32 link.exe'
11639    ;;
11640
11641  *)
11642    # Assume MSVC and ICC wrapper
11643    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11644    dynamic_linker='Win32 ld.exe'
11645    ;;
11646  esac
11647  # FIXME: first we should search . and the directory the executable is in
11648  shlibpath_var=PATH
11649  ;;
11650
11651darwin* | rhapsody*)
11652  dynamic_linker="$host_os dyld"
11653  version_type=darwin
11654  need_lib_prefix=no
11655  need_version=no
11656  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11657  soname_spec='$libname$release$major$shared_ext'
11658  shlibpath_overrides_runpath=yes
11659  shlibpath_var=DYLD_LIBRARY_PATH
11660  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11661
11662  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11663  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11664  ;;
11665
11666dgux*)
11667  version_type=linux # correct to gnu/linux during the next big refactor
11668  need_lib_prefix=no
11669  need_version=no
11670  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671  soname_spec='$libname$release$shared_ext$major'
11672  shlibpath_var=LD_LIBRARY_PATH
11673  ;;
11674
11675freebsd* | dragonfly* | midnightbsd*)
11676  # DragonFly does not have aout.  When/if they implement a new
11677  # versioning mechanism, adjust this.
11678  if test -x /usr/bin/objformat; then
11679    objformat=`/usr/bin/objformat`
11680  else
11681    case $host_os in
11682    freebsd[23].*) objformat=aout ;;
11683    *) objformat=elf ;;
11684    esac
11685  fi
11686  version_type=freebsd-$objformat
11687  case $version_type in
11688    freebsd-elf*)
11689      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690      soname_spec='$libname$release$shared_ext$major'
11691      need_version=no
11692      need_lib_prefix=no
11693      ;;
11694    freebsd-*)
11695      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11696      need_version=yes
11697      ;;
11698  esac
11699  shlibpath_var=LD_LIBRARY_PATH
11700  case $host_os in
11701  freebsd2.*)
11702    shlibpath_overrides_runpath=yes
11703    ;;
11704  freebsd3.[01]* | freebsdelf3.[01]*)
11705    shlibpath_overrides_runpath=yes
11706    hardcode_into_libs=yes
11707    ;;
11708  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11709  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11710    shlibpath_overrides_runpath=no
11711    hardcode_into_libs=yes
11712    ;;
11713  *) # from 4.6 on, and DragonFly
11714    shlibpath_overrides_runpath=yes
11715    hardcode_into_libs=yes
11716    ;;
11717  esac
11718  ;;
11719
11720haiku*)
11721  version_type=linux # correct to gnu/linux during the next big refactor
11722  need_lib_prefix=no
11723  need_version=no
11724  dynamic_linker="$host_os runtime_loader"
11725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726  soname_spec='$libname$release$shared_ext$major'
11727  shlibpath_var=LIBRARY_PATH
11728  shlibpath_overrides_runpath=no
11729  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11730  hardcode_into_libs=yes
11731  ;;
11732
11733hpux9* | hpux10* | hpux11*)
11734  # Give a soname corresponding to the major version so that dld.sl refuses to
11735  # link against other versions.
11736  version_type=sunos
11737  need_lib_prefix=no
11738  need_version=no
11739  case $host_cpu in
11740  ia64*)
11741    shrext_cmds='.so'
11742    hardcode_into_libs=yes
11743    dynamic_linker="$host_os dld.so"
11744    shlibpath_var=LD_LIBRARY_PATH
11745    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11746    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747    soname_spec='$libname$release$shared_ext$major'
11748    if test 32 = "$HPUX_IA64_MODE"; then
11749      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11750      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11751    else
11752      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11753      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11754    fi
11755    ;;
11756  hppa*64*)
11757    shrext_cmds='.sl'
11758    hardcode_into_libs=yes
11759    dynamic_linker="$host_os dld.sl"
11760    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763    soname_spec='$libname$release$shared_ext$major'
11764    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11765    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766    ;;
11767  *)
11768    shrext_cmds='.sl'
11769    dynamic_linker="$host_os dld.sl"
11770    shlibpath_var=SHLIB_PATH
11771    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11772    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773    soname_spec='$libname$release$shared_ext$major'
11774    ;;
11775  esac
11776  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11777  postinstall_cmds='chmod 555 $lib'
11778  # or fails outright, so override atomically:
11779  install_override_mode=555
11780  ;;
11781
11782interix[3-9]*)
11783  version_type=linux # correct to gnu/linux during the next big refactor
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787  soname_spec='$libname$release$shared_ext$major'
11788  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  shlibpath_overrides_runpath=no
11791  hardcode_into_libs=yes
11792  ;;
11793
11794irix5* | irix6* | nonstopux*)
11795  case $host_os in
11796    nonstopux*) version_type=nonstopux ;;
11797    *)
11798	if test yes = "$lt_cv_prog_gnu_ld"; then
11799		version_type=linux # correct to gnu/linux during the next big refactor
11800	else
11801		version_type=irix
11802	fi ;;
11803  esac
11804  need_lib_prefix=no
11805  need_version=no
11806  soname_spec='$libname$release$shared_ext$major'
11807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11808  case $host_os in
11809  irix5* | nonstopux*)
11810    libsuff= shlibsuff=
11811    ;;
11812  *)
11813    case $LD in # libtool.m4 will add one of these switches to LD
11814    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11815      libsuff= shlibsuff= libmagic=32-bit;;
11816    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11817      libsuff=32 shlibsuff=N32 libmagic=N32;;
11818    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11819      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11820    *) libsuff= shlibsuff= libmagic=never-match;;
11821    esac
11822    ;;
11823  esac
11824  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11825  shlibpath_overrides_runpath=no
11826  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11827  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11828  hardcode_into_libs=yes
11829  ;;
11830
11831# No shared lib support for Linux oldld, aout, or coff.
11832linux*oldld* | linux*aout* | linux*coff*)
11833  dynamic_linker=no
11834  ;;
11835
11836linux*android*)
11837  version_type=none # Android doesn't support versioned libraries.
11838  need_lib_prefix=no
11839  need_version=no
11840  library_names_spec='$libname$release$shared_ext'
11841  soname_spec='$libname$release$shared_ext'
11842  finish_cmds=
11843  shlibpath_var=LD_LIBRARY_PATH
11844  shlibpath_overrides_runpath=yes
11845
11846  # This implies no fast_install, which is unacceptable.
11847  # Some rework will be needed to allow for fast_install
11848  # before this can be enabled.
11849  hardcode_into_libs=yes
11850
11851  dynamic_linker='Android linker'
11852  # Don't embed -rpath directories since the linker doesn't support them.
11853  hardcode_libdir_flag_spec='-L$libdir'
11854  ;;
11855
11856# This must be glibc/ELF.
11857linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11858  version_type=linux # correct to gnu/linux during the next big refactor
11859  need_lib_prefix=no
11860  need_version=no
11861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862  soname_spec='$libname$release$shared_ext$major'
11863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11864  shlibpath_var=LD_LIBRARY_PATH
11865  shlibpath_overrides_runpath=no
11866
11867  # Some binutils ld are patched to set DT_RUNPATH
11868  if test ${lt_cv_shlibpath_overrides_runpath+y}
11869then :
11870  printf %s "(cached) " >&6
11871else $as_nop
11872  lt_cv_shlibpath_overrides_runpath=no
11873    save_LDFLAGS=$LDFLAGS
11874    save_libdir=$libdir
11875    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11876	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h.  */
11879
11880int
11881main (void)
11882{
11883
11884  ;
11885  return 0;
11886}
11887_ACEOF
11888if ac_fn_c_try_link "$LINENO"
11889then :
11890  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11891then :
11892  lt_cv_shlibpath_overrides_runpath=yes
11893fi
11894fi
11895rm -f core conftest.err conftest.$ac_objext conftest.beam \
11896    conftest$ac_exeext conftest.$ac_ext
11897    LDFLAGS=$save_LDFLAGS
11898    libdir=$save_libdir
11899
11900fi
11901
11902  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11903
11904  # This implies no fast_install, which is unacceptable.
11905  # Some rework will be needed to allow for fast_install
11906  # before this can be enabled.
11907  hardcode_into_libs=yes
11908
11909  # Ideally, we could use ldconfig to report *all* directores which are
11910  # searched for libraries, however this is still not possible.  Aside from not
11911  # being certain /sbin/ldconfig is available, command
11912  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11913  # even though it is searched at run-time.  Try to do the best guess by
11914  # appending ld.so.conf contents (and includes) to the search path.
11915  if test -f /etc/ld.so.conf; then
11916    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' ' '`
11917    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11918  fi
11919
11920  # We used to test for /lib/ld.so.1 and disable shared libraries on
11921  # powerpc, because MkLinux only supported shared libraries with the
11922  # GNU dynamic linker.  Since this was broken with cross compilers,
11923  # most powerpc-linux boxes support dynamic linking these days and
11924  # people can always --disable-shared, the test was removed, and we
11925  # assume the GNU/Linux dynamic linker is in use.
11926  dynamic_linker='GNU/Linux ld.so'
11927  ;;
11928
11929netbsd*)
11930  version_type=sunos
11931  need_lib_prefix=no
11932  need_version=no
11933  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11934    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11935    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11936    dynamic_linker='NetBSD (a.out) ld.so'
11937  else
11938    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939    soname_spec='$libname$release$shared_ext$major'
11940    dynamic_linker='NetBSD ld.elf_so'
11941  fi
11942  shlibpath_var=LD_LIBRARY_PATH
11943  shlibpath_overrides_runpath=yes
11944  hardcode_into_libs=yes
11945  ;;
11946
11947newsos6)
11948  version_type=linux # correct to gnu/linux during the next big refactor
11949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950  shlibpath_var=LD_LIBRARY_PATH
11951  shlibpath_overrides_runpath=yes
11952  ;;
11953
11954*nto* | *qnx*)
11955  version_type=qnx
11956  need_lib_prefix=no
11957  need_version=no
11958  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11959  soname_spec='$libname$release$shared_ext$major'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  shlibpath_overrides_runpath=no
11962  hardcode_into_libs=yes
11963  dynamic_linker='ldqnx.so'
11964  ;;
11965
11966openbsd* | bitrig*)
11967  version_type=sunos
11968  sys_lib_dlsearch_path_spec=/usr/lib
11969  need_lib_prefix=no
11970  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11971    need_version=no
11972  else
11973    need_version=yes
11974  fi
11975  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11976  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977  shlibpath_var=LD_LIBRARY_PATH
11978  shlibpath_overrides_runpath=yes
11979  ;;
11980
11981os2*)
11982  libname_spec='$name'
11983  version_type=windows
11984  shrext_cmds=.dll
11985  need_version=no
11986  need_lib_prefix=no
11987  # OS/2 can only load a DLL with a base name of 8 characters or less.
11988  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11989    v=$($ECHO $release$versuffix | tr -d .-);
11990    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11991    $ECHO $n$v`$shared_ext'
11992  library_names_spec='${libname}_dll.$libext'
11993  dynamic_linker='OS/2 ld.exe'
11994  shlibpath_var=BEGINLIBPATH
11995  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11996  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997  postinstall_cmds='base_file=`basename \$file`~
11998    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11999    dldir=$destdir/`dirname \$dlpath`~
12000    test -d \$dldir || mkdir -p \$dldir~
12001    $install_prog $dir/$dlname \$dldir/$dlname~
12002    chmod a+x \$dldir/$dlname~
12003    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12004      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12005    fi'
12006  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12007    dlpath=$dir/\$dldll~
12008    $RM \$dlpath'
12009  ;;
12010
12011osf3* | osf4* | osf5*)
12012  version_type=osf
12013  need_lib_prefix=no
12014  need_version=no
12015  soname_spec='$libname$release$shared_ext$major'
12016  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017  shlibpath_var=LD_LIBRARY_PATH
12018  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12019  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12020  ;;
12021
12022rdos*)
12023  dynamic_linker=no
12024  ;;
12025
12026solaris*)
12027  version_type=linux # correct to gnu/linux during the next big refactor
12028  need_lib_prefix=no
12029  need_version=no
12030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031  soname_spec='$libname$release$shared_ext$major'
12032  shlibpath_var=LD_LIBRARY_PATH
12033  shlibpath_overrides_runpath=yes
12034  hardcode_into_libs=yes
12035  # ldd complains unless libraries are executable
12036  postinstall_cmds='chmod +x $lib'
12037  ;;
12038
12039sunos4*)
12040  version_type=sunos
12041  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12042  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12043  shlibpath_var=LD_LIBRARY_PATH
12044  shlibpath_overrides_runpath=yes
12045  if test yes = "$with_gnu_ld"; then
12046    need_lib_prefix=no
12047  fi
12048  need_version=yes
12049  ;;
12050
12051sysv4 | sysv4.3*)
12052  version_type=linux # correct to gnu/linux during the next big refactor
12053  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054  soname_spec='$libname$release$shared_ext$major'
12055  shlibpath_var=LD_LIBRARY_PATH
12056  case $host_vendor in
12057    sni)
12058      shlibpath_overrides_runpath=no
12059      need_lib_prefix=no
12060      runpath_var=LD_RUN_PATH
12061      ;;
12062    siemens)
12063      need_lib_prefix=no
12064      ;;
12065    motorola)
12066      need_lib_prefix=no
12067      need_version=no
12068      shlibpath_overrides_runpath=no
12069      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12070      ;;
12071  esac
12072  ;;
12073
12074sysv4*MP*)
12075  if test -d /usr/nec; then
12076    version_type=linux # correct to gnu/linux during the next big refactor
12077    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12078    soname_spec='$libname$shared_ext.$major'
12079    shlibpath_var=LD_LIBRARY_PATH
12080  fi
12081  ;;
12082
12083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12084  version_type=sco
12085  need_lib_prefix=no
12086  need_version=no
12087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12088  soname_spec='$libname$release$shared_ext$major'
12089  shlibpath_var=LD_LIBRARY_PATH
12090  shlibpath_overrides_runpath=yes
12091  hardcode_into_libs=yes
12092  if test yes = "$with_gnu_ld"; then
12093    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12094  else
12095    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12096    case $host_os in
12097      sco3.2v5*)
12098        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12099	;;
12100    esac
12101  fi
12102  sys_lib_dlsearch_path_spec='/usr/lib'
12103  ;;
12104
12105tpf*)
12106  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12107  version_type=linux # correct to gnu/linux during the next big refactor
12108  need_lib_prefix=no
12109  need_version=no
12110  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12111  shlibpath_var=LD_LIBRARY_PATH
12112  shlibpath_overrides_runpath=no
12113  hardcode_into_libs=yes
12114  ;;
12115
12116uts4*)
12117  version_type=linux # correct to gnu/linux during the next big refactor
12118  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119  soname_spec='$libname$release$shared_ext$major'
12120  shlibpath_var=LD_LIBRARY_PATH
12121  ;;
12122
12123*)
12124  dynamic_linker=no
12125  ;;
12126esac
12127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12128printf "%s\n" "$dynamic_linker" >&6; }
12129test no = "$dynamic_linker" && can_build_shared=no
12130
12131variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12132if test yes = "$GCC"; then
12133  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12134fi
12135
12136if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12137  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12138fi
12139
12140if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12141  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12142fi
12143
12144# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12145configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12146
12147# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12148func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12149
12150# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12151configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12250printf %s "checking how to hardcode library paths into programs... " >&6; }
12251hardcode_action=
12252if test -n "$hardcode_libdir_flag_spec" ||
12253   test -n "$runpath_var" ||
12254   test yes = "$hardcode_automatic"; then
12255
12256  # We can hardcode non-existent directories.
12257  if test no != "$hardcode_direct" &&
12258     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12259     # have to relink, otherwise we might link with an installed library
12260     # when we should be linking with a yet-to-be-installed one
12261     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12262     test no != "$hardcode_minus_L"; then
12263    # Linking always hardcodes the temporary library directory.
12264    hardcode_action=relink
12265  else
12266    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12267    hardcode_action=immediate
12268  fi
12269else
12270  # We cannot hardcode anything, or else we can only hardcode existing
12271  # directories.
12272  hardcode_action=unsupported
12273fi
12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12275printf "%s\n" "$hardcode_action" >&6; }
12276
12277if test relink = "$hardcode_action" ||
12278   test yes = "$inherit_rpath"; then
12279  # Fast installation is not supported
12280  enable_fast_install=no
12281elif test yes = "$shlibpath_overrides_runpath" ||
12282     test no = "$enable_shared"; then
12283  # Fast installation is not necessary
12284  enable_fast_install=needless
12285fi
12286
12287
12288
12289
12290
12291
12292  if test yes != "$enable_dlopen"; then
12293  enable_dlopen=unknown
12294  enable_dlopen_self=unknown
12295  enable_dlopen_self_static=unknown
12296else
12297  lt_cv_dlopen=no
12298  lt_cv_dlopen_libs=
12299
12300  case $host_os in
12301  beos*)
12302    lt_cv_dlopen=load_add_on
12303    lt_cv_dlopen_libs=
12304    lt_cv_dlopen_self=yes
12305    ;;
12306
12307  mingw* | pw32* | cegcc*)
12308    lt_cv_dlopen=LoadLibrary
12309    lt_cv_dlopen_libs=
12310    ;;
12311
12312  cygwin*)
12313    lt_cv_dlopen=dlopen
12314    lt_cv_dlopen_libs=
12315    ;;
12316
12317  darwin*)
12318    # if libdl is installed we need to link against it
12319    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12320printf %s "checking for dlopen in -ldl... " >&6; }
12321if test ${ac_cv_lib_dl_dlopen+y}
12322then :
12323  printf %s "(cached) " >&6
12324else $as_nop
12325  ac_check_lib_save_LIBS=$LIBS
12326LIBS="-ldl  $LIBS"
12327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328/* end confdefs.h.  */
12329
12330/* Override any GCC internal prototype to avoid an error.
12331   Use char because int might match the return type of a GCC
12332   builtin and then its argument prototype would still apply.  */
12333char dlopen ();
12334int
12335main (void)
12336{
12337return dlopen ();
12338  ;
12339  return 0;
12340}
12341_ACEOF
12342if ac_fn_c_try_link "$LINENO"
12343then :
12344  ac_cv_lib_dl_dlopen=yes
12345else $as_nop
12346  ac_cv_lib_dl_dlopen=no
12347fi
12348rm -f core conftest.err conftest.$ac_objext conftest.beam \
12349    conftest$ac_exeext conftest.$ac_ext
12350LIBS=$ac_check_lib_save_LIBS
12351fi
12352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12353printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12354if test "x$ac_cv_lib_dl_dlopen" = xyes
12355then :
12356  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12357else $as_nop
12358
12359    lt_cv_dlopen=dyld
12360    lt_cv_dlopen_libs=
12361    lt_cv_dlopen_self=yes
12362
12363fi
12364
12365    ;;
12366
12367  tpf*)
12368    # Don't try to run any link tests for TPF.  We know it's impossible
12369    # because TPF is a cross-compiler, and we know how we open DSOs.
12370    lt_cv_dlopen=dlopen
12371    lt_cv_dlopen_libs=
12372    lt_cv_dlopen_self=no
12373    ;;
12374
12375  *)
12376    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12377if test "x$ac_cv_func_shl_load" = xyes
12378then :
12379  lt_cv_dlopen=shl_load
12380else $as_nop
12381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12382printf %s "checking for shl_load in -ldld... " >&6; }
12383if test ${ac_cv_lib_dld_shl_load+y}
12384then :
12385  printf %s "(cached) " >&6
12386else $as_nop
12387  ac_check_lib_save_LIBS=$LIBS
12388LIBS="-ldld  $LIBS"
12389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h.  */
12391
12392/* Override any GCC internal prototype to avoid an error.
12393   Use char because int might match the return type of a GCC
12394   builtin and then its argument prototype would still apply.  */
12395char shl_load ();
12396int
12397main (void)
12398{
12399return shl_load ();
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404if ac_fn_c_try_link "$LINENO"
12405then :
12406  ac_cv_lib_dld_shl_load=yes
12407else $as_nop
12408  ac_cv_lib_dld_shl_load=no
12409fi
12410rm -f core conftest.err conftest.$ac_objext conftest.beam \
12411    conftest$ac_exeext conftest.$ac_ext
12412LIBS=$ac_check_lib_save_LIBS
12413fi
12414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12415printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12416if test "x$ac_cv_lib_dld_shl_load" = xyes
12417then :
12418  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12419else $as_nop
12420  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12421if test "x$ac_cv_func_dlopen" = xyes
12422then :
12423  lt_cv_dlopen=dlopen
12424else $as_nop
12425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12426printf %s "checking for dlopen in -ldl... " >&6; }
12427if test ${ac_cv_lib_dl_dlopen+y}
12428then :
12429  printf %s "(cached) " >&6
12430else $as_nop
12431  ac_check_lib_save_LIBS=$LIBS
12432LIBS="-ldl  $LIBS"
12433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434/* end confdefs.h.  */
12435
12436/* Override any GCC internal prototype to avoid an error.
12437   Use char because int might match the return type of a GCC
12438   builtin and then its argument prototype would still apply.  */
12439char dlopen ();
12440int
12441main (void)
12442{
12443return dlopen ();
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"
12449then :
12450  ac_cv_lib_dl_dlopen=yes
12451else $as_nop
12452  ac_cv_lib_dl_dlopen=no
12453fi
12454rm -f core conftest.err conftest.$ac_objext conftest.beam \
12455    conftest$ac_exeext conftest.$ac_ext
12456LIBS=$ac_check_lib_save_LIBS
12457fi
12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12459printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12460if test "x$ac_cv_lib_dl_dlopen" = xyes
12461then :
12462  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12463else $as_nop
12464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12465printf %s "checking for dlopen in -lsvld... " >&6; }
12466if test ${ac_cv_lib_svld_dlopen+y}
12467then :
12468  printf %s "(cached) " >&6
12469else $as_nop
12470  ac_check_lib_save_LIBS=$LIBS
12471LIBS="-lsvld  $LIBS"
12472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h.  */
12474
12475/* Override any GCC internal prototype to avoid an error.
12476   Use char because int might match the return type of a GCC
12477   builtin and then its argument prototype would still apply.  */
12478char dlopen ();
12479int
12480main (void)
12481{
12482return dlopen ();
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487if ac_fn_c_try_link "$LINENO"
12488then :
12489  ac_cv_lib_svld_dlopen=yes
12490else $as_nop
12491  ac_cv_lib_svld_dlopen=no
12492fi
12493rm -f core conftest.err conftest.$ac_objext conftest.beam \
12494    conftest$ac_exeext conftest.$ac_ext
12495LIBS=$ac_check_lib_save_LIBS
12496fi
12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12498printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12499if test "x$ac_cv_lib_svld_dlopen" = xyes
12500then :
12501  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12502else $as_nop
12503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12504printf %s "checking for dld_link in -ldld... " >&6; }
12505if test ${ac_cv_lib_dld_dld_link+y}
12506then :
12507  printf %s "(cached) " >&6
12508else $as_nop
12509  ac_check_lib_save_LIBS=$LIBS
12510LIBS="-ldld  $LIBS"
12511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513
12514/* Override any GCC internal prototype to avoid an error.
12515   Use char because int might match the return type of a GCC
12516   builtin and then its argument prototype would still apply.  */
12517char dld_link ();
12518int
12519main (void)
12520{
12521return dld_link ();
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_link "$LINENO"
12527then :
12528  ac_cv_lib_dld_dld_link=yes
12529else $as_nop
12530  ac_cv_lib_dld_dld_link=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533    conftest$ac_exeext conftest.$ac_ext
12534LIBS=$ac_check_lib_save_LIBS
12535fi
12536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12537printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12538if test "x$ac_cv_lib_dld_dld_link" = xyes
12539then :
12540  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12541fi
12542
12543
12544fi
12545
12546
12547fi
12548
12549
12550fi
12551
12552
12553fi
12554
12555
12556fi
12557
12558    ;;
12559  esac
12560
12561  if test no = "$lt_cv_dlopen"; then
12562    enable_dlopen=no
12563  else
12564    enable_dlopen=yes
12565  fi
12566
12567  case $lt_cv_dlopen in
12568  dlopen)
12569    save_CPPFLAGS=$CPPFLAGS
12570    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12571
12572    save_LDFLAGS=$LDFLAGS
12573    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12574
12575    save_LIBS=$LIBS
12576    LIBS="$lt_cv_dlopen_libs $LIBS"
12577
12578    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12579printf %s "checking whether a program can dlopen itself... " >&6; }
12580if test ${lt_cv_dlopen_self+y}
12581then :
12582  printf %s "(cached) " >&6
12583else $as_nop
12584  	  if test yes = "$cross_compiling"; then :
12585  lt_cv_dlopen_self=cross
12586else
12587  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12588  lt_status=$lt_dlunknown
12589  cat > conftest.$ac_ext <<_LT_EOF
12590#line $LINENO "configure"
12591#include "confdefs.h"
12592
12593#if HAVE_DLFCN_H
12594#include <dlfcn.h>
12595#endif
12596
12597#include <stdio.h>
12598
12599#ifdef RTLD_GLOBAL
12600#  define LT_DLGLOBAL		RTLD_GLOBAL
12601#else
12602#  ifdef DL_GLOBAL
12603#    define LT_DLGLOBAL		DL_GLOBAL
12604#  else
12605#    define LT_DLGLOBAL		0
12606#  endif
12607#endif
12608
12609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12610   find out it does not work in some platform. */
12611#ifndef LT_DLLAZY_OR_NOW
12612#  ifdef RTLD_LAZY
12613#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12614#  else
12615#    ifdef DL_LAZY
12616#      define LT_DLLAZY_OR_NOW		DL_LAZY
12617#    else
12618#      ifdef RTLD_NOW
12619#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12620#      else
12621#        ifdef DL_NOW
12622#          define LT_DLLAZY_OR_NOW	DL_NOW
12623#        else
12624#          define LT_DLLAZY_OR_NOW	0
12625#        endif
12626#      endif
12627#    endif
12628#  endif
12629#endif
12630
12631/* When -fvisibility=hidden is used, assume the code has been annotated
12632   correspondingly for the symbols needed.  */
12633#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12634int fnord () __attribute__((visibility("default")));
12635#endif
12636
12637int fnord () { return 42; }
12638int main ()
12639{
12640  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12641  int status = $lt_dlunknown;
12642
12643  if (self)
12644    {
12645      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12646      else
12647        {
12648	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12649          else puts (dlerror ());
12650	}
12651      /* dlclose (self); */
12652    }
12653  else
12654    puts (dlerror ());
12655
12656  return status;
12657}
12658_LT_EOF
12659  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12660  (eval $ac_link) 2>&5
12661  ac_status=$?
12662  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12664    (./conftest; exit; ) >&5 2>/dev/null
12665    lt_status=$?
12666    case x$lt_status in
12667      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12668      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12669      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12670    esac
12671  else :
12672    # compilation failed
12673    lt_cv_dlopen_self=no
12674  fi
12675fi
12676rm -fr conftest*
12677
12678
12679fi
12680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12681printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12682
12683    if test yes = "$lt_cv_dlopen_self"; then
12684      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12685      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12686printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12687if test ${lt_cv_dlopen_self_static+y}
12688then :
12689  printf %s "(cached) " >&6
12690else $as_nop
12691  	  if test yes = "$cross_compiling"; then :
12692  lt_cv_dlopen_self_static=cross
12693else
12694  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12695  lt_status=$lt_dlunknown
12696  cat > conftest.$ac_ext <<_LT_EOF
12697#line $LINENO "configure"
12698#include "confdefs.h"
12699
12700#if HAVE_DLFCN_H
12701#include <dlfcn.h>
12702#endif
12703
12704#include <stdio.h>
12705
12706#ifdef RTLD_GLOBAL
12707#  define LT_DLGLOBAL		RTLD_GLOBAL
12708#else
12709#  ifdef DL_GLOBAL
12710#    define LT_DLGLOBAL		DL_GLOBAL
12711#  else
12712#    define LT_DLGLOBAL		0
12713#  endif
12714#endif
12715
12716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12717   find out it does not work in some platform. */
12718#ifndef LT_DLLAZY_OR_NOW
12719#  ifdef RTLD_LAZY
12720#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12721#  else
12722#    ifdef DL_LAZY
12723#      define LT_DLLAZY_OR_NOW		DL_LAZY
12724#    else
12725#      ifdef RTLD_NOW
12726#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12727#      else
12728#        ifdef DL_NOW
12729#          define LT_DLLAZY_OR_NOW	DL_NOW
12730#        else
12731#          define LT_DLLAZY_OR_NOW	0
12732#        endif
12733#      endif
12734#    endif
12735#  endif
12736#endif
12737
12738/* When -fvisibility=hidden is used, assume the code has been annotated
12739   correspondingly for the symbols needed.  */
12740#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12741int fnord () __attribute__((visibility("default")));
12742#endif
12743
12744int fnord () { return 42; }
12745int main ()
12746{
12747  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12748  int status = $lt_dlunknown;
12749
12750  if (self)
12751    {
12752      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12753      else
12754        {
12755	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12756          else puts (dlerror ());
12757	}
12758      /* dlclose (self); */
12759    }
12760  else
12761    puts (dlerror ());
12762
12763  return status;
12764}
12765_LT_EOF
12766  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12767  (eval $ac_link) 2>&5
12768  ac_status=$?
12769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12771    (./conftest; exit; ) >&5 2>/dev/null
12772    lt_status=$?
12773    case x$lt_status in
12774      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12775      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12776      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12777    esac
12778  else :
12779    # compilation failed
12780    lt_cv_dlopen_self_static=no
12781  fi
12782fi
12783rm -fr conftest*
12784
12785
12786fi
12787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12788printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12789    fi
12790
12791    CPPFLAGS=$save_CPPFLAGS
12792    LDFLAGS=$save_LDFLAGS
12793    LIBS=$save_LIBS
12794    ;;
12795  esac
12796
12797  case $lt_cv_dlopen_self in
12798  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12799  *) enable_dlopen_self=unknown ;;
12800  esac
12801
12802  case $lt_cv_dlopen_self_static in
12803  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12804  *) enable_dlopen_self_static=unknown ;;
12805  esac
12806fi
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824striplib=
12825old_striplib=
12826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12827printf %s "checking whether stripping libraries is possible... " >&6; }
12828if test -z "$STRIP"; then
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830printf "%s\n" "no" >&6; }
12831else
12832  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12833    old_striplib="$STRIP --strip-debug"
12834    striplib="$STRIP --strip-unneeded"
12835    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836printf "%s\n" "yes" >&6; }
12837  else
12838    case $host_os in
12839    darwin*)
12840      # FIXME - insert some real tests, host_os isn't really good enough
12841      striplib="$STRIP -x"
12842      old_striplib="$STRIP -S"
12843      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844printf "%s\n" "yes" >&6; }
12845      ;;
12846    freebsd*)
12847      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12848        old_striplib="$STRIP --strip-debug"
12849        striplib="$STRIP --strip-unneeded"
12850        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12851printf "%s\n" "yes" >&6; }
12852      else
12853        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854printf "%s\n" "no" >&6; }
12855      fi
12856      ;;
12857    *)
12858      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859printf "%s\n" "no" >&6; }
12860      ;;
12861    esac
12862  fi
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876  # Report what library types will actually be built
12877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12878printf %s "checking if libtool supports shared libraries... " >&6; }
12879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12880printf "%s\n" "$can_build_shared" >&6; }
12881
12882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12883printf %s "checking whether to build shared libraries... " >&6; }
12884  test no = "$can_build_shared" && enable_shared=no
12885
12886  # On AIX, shared libraries and static libraries use the same namespace, and
12887  # are all built from PIC.
12888  case $host_os in
12889  aix3*)
12890    test yes = "$enable_shared" && enable_static=no
12891    if test -n "$RANLIB"; then
12892      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893      postinstall_cmds='$RANLIB $lib'
12894    fi
12895    ;;
12896
12897  aix[4-9]*)
12898    if test ia64 != "$host_cpu"; then
12899      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12900      yes,aix,yes) ;;			# shared object as lib.so file only
12901      yes,svr4,*) ;;			# shared object as lib.so archive member only
12902      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12903      esac
12904    fi
12905    ;;
12906  esac
12907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12908printf "%s\n" "$enable_shared" >&6; }
12909
12910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12911printf %s "checking whether to build static libraries... " >&6; }
12912  # Make sure either enable_shared or enable_static is yes.
12913  test yes = "$enable_shared" || enable_static=yes
12914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12915printf "%s\n" "$enable_static" >&6; }
12916
12917
12918
12919
12920fi
12921ac_ext=c
12922ac_cpp='$CPP $CPPFLAGS'
12923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_c_compiler_gnu
12926
12927CC=$lt_save_CC
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943        ac_config_commands="$ac_config_commands libtool"
12944
12945
12946
12947
12948# Only expand once:
12949
12950
12951
12952# Require xorg-macros minimum of 1.12 for DocBook external references
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12966printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12967if test ${ac_cv_c_undeclared_builtin_options+y}
12968then :
12969  printf %s "(cached) " >&6
12970else $as_nop
12971  ac_save_CFLAGS=$CFLAGS
12972   ac_cv_c_undeclared_builtin_options='cannot detect'
12973   for ac_arg in '' -fno-builtin; do
12974     CFLAGS="$ac_save_CFLAGS $ac_arg"
12975     # This test program should *not* compile successfully.
12976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978
12979int
12980main (void)
12981{
12982(void) strchr;
12983  ;
12984  return 0;
12985}
12986_ACEOF
12987if ac_fn_c_try_compile "$LINENO"
12988then :
12989
12990else $as_nop
12991  # This test program should compile successfully.
12992        # No library function is consistently available on
12993        # freestanding implementations, so test against a dummy
12994        # declaration.  Include always-available headers on the
12995        # off chance that they somehow elicit warnings.
12996        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998#include <float.h>
12999#include <limits.h>
13000#include <stdarg.h>
13001#include <stddef.h>
13002extern void ac_decl (int, char *);
13003
13004int
13005main (void)
13006{
13007(void) ac_decl (0, (char *) 0);
13008  (void) ac_decl;
13009
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_compile "$LINENO"
13015then :
13016  if test x"$ac_arg" = x
13017then :
13018  ac_cv_c_undeclared_builtin_options='none needed'
13019else $as_nop
13020  ac_cv_c_undeclared_builtin_options=$ac_arg
13021fi
13022          break
13023fi
13024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13025fi
13026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13027    done
13028    CFLAGS=$ac_save_CFLAGS
13029
13030fi
13031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13032printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13033  case $ac_cv_c_undeclared_builtin_options in #(
13034  'cannot detect') :
13035    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13036printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13037as_fn_error $? "cannot make $CC report undeclared builtins
13038See \`config.log' for more details" "$LINENO" 5; } ;; #(
13039  'none needed') :
13040    ac_c_undeclared_builtin_options='' ;; #(
13041  *) :
13042    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13043esac
13044
13045
13046
13047
13048
13049ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13050if test "x$ac_cv_have_decl___clang__" = xyes
13051then :
13052  CLANGCC="yes"
13053else $as_nop
13054  CLANGCC="no"
13055fi
13056ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13057if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13058then :
13059  INTELCC="yes"
13060else $as_nop
13061  INTELCC="no"
13062fi
13063ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13064if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13065then :
13066  SUNCC="yes"
13067else $as_nop
13068  SUNCC="no"
13069fi
13070
13071
13072
13073
13074
13075
13076
13077
13078if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13079	if test -n "$ac_tool_prefix"; then
13080  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13081set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083printf %s "checking for $ac_word... " >&6; }
13084if test ${ac_cv_path_PKG_CONFIG+y}
13085then :
13086  printf %s "(cached) " >&6
13087else $as_nop
13088  case $PKG_CONFIG in
13089  [\\/]* | ?:[\\/]*)
13090  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13091  ;;
13092  *)
13093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094for as_dir in $PATH
13095do
13096  IFS=$as_save_IFS
13097  case $as_dir in #(((
13098    '') as_dir=./ ;;
13099    */) ;;
13100    *) as_dir=$as_dir/ ;;
13101  esac
13102    for ac_exec_ext in '' $ac_executable_extensions; do
13103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13104    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13106    break 2
13107  fi
13108done
13109  done
13110IFS=$as_save_IFS
13111
13112  ;;
13113esac
13114fi
13115PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13116if test -n "$PKG_CONFIG"; then
13117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13118printf "%s\n" "$PKG_CONFIG" >&6; }
13119else
13120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121printf "%s\n" "no" >&6; }
13122fi
13123
13124
13125fi
13126if test -z "$ac_cv_path_PKG_CONFIG"; then
13127  ac_pt_PKG_CONFIG=$PKG_CONFIG
13128  # Extract the first word of "pkg-config", so it can be a program name with args.
13129set dummy pkg-config; ac_word=$2
13130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131printf %s "checking for $ac_word... " >&6; }
13132if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13133then :
13134  printf %s "(cached) " >&6
13135else $as_nop
13136  case $ac_pt_PKG_CONFIG in
13137  [\\/]* | ?:[\\/]*)
13138  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13139  ;;
13140  *)
13141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144  IFS=$as_save_IFS
13145  case $as_dir in #(((
13146    '') as_dir=./ ;;
13147    */) ;;
13148    *) as_dir=$as_dir/ ;;
13149  esac
13150    for ac_exec_ext in '' $ac_executable_extensions; do
13151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13152    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13154    break 2
13155  fi
13156done
13157  done
13158IFS=$as_save_IFS
13159
13160  ;;
13161esac
13162fi
13163ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13164if test -n "$ac_pt_PKG_CONFIG"; then
13165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13166printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13167else
13168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169printf "%s\n" "no" >&6; }
13170fi
13171
13172  if test "x$ac_pt_PKG_CONFIG" = x; then
13173    PKG_CONFIG=""
13174  else
13175    case $cross_compiling:$ac_tool_warned in
13176yes:)
13177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13178printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13179ac_tool_warned=yes ;;
13180esac
13181    PKG_CONFIG=$ac_pt_PKG_CONFIG
13182  fi
13183else
13184  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13185fi
13186
13187fi
13188if test -n "$PKG_CONFIG"; then
13189	_pkg_min_version=0.9.0
13190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13191printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13192	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194printf "%s\n" "yes" >&6; }
13195	else
13196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197printf "%s\n" "no" >&6; }
13198		PKG_CONFIG=""
13199	fi
13200fi
13201
13202
13203
13204
13205
13206# Check whether --enable-selective-werror was given.
13207if test ${enable_selective_werror+y}
13208then :
13209  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13210else $as_nop
13211  SELECTIVE_WERROR=yes
13212fi
13213
13214
13215
13216
13217
13218# -v is too short to test reliably with XORG_TESTSET_CFLAG
13219if test "x$SUNCC" = "xyes"; then
13220    BASE_CFLAGS="-v"
13221else
13222    BASE_CFLAGS=""
13223fi
13224
13225# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239xorg_testset_save_CFLAGS="$CFLAGS"
13240
13241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13245if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13246then :
13247  printf %s "(cached) " >&6
13248else $as_nop
13249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h.  */
13251int i;
13252_ACEOF
13253if ac_fn_c_try_compile "$LINENO"
13254then :
13255  xorg_cv_cc_flag_unknown_warning_option=yes
13256else $as_nop
13257  xorg_cv_cc_flag_unknown_warning_option=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13260fi
13261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13262printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13264	CFLAGS="$xorg_testset_save_CFLAGS"
13265fi
13266
13267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13270	fi
13271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13273printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13274if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13275then :
13276  printf %s "(cached) " >&6
13277else $as_nop
13278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280int i;
13281_ACEOF
13282if ac_fn_c_try_compile "$LINENO"
13283then :
13284  xorg_cv_cc_flag_unused_command_line_argument=yes
13285else $as_nop
13286  xorg_cv_cc_flag_unused_command_line_argument=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13289fi
13290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13293	CFLAGS="$xorg_testset_save_CFLAGS"
13294fi
13295
13296found="no"
13297
13298	if test $found = "no" ; then
13299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301		fi
13302
13303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305		fi
13306
13307		CFLAGS="$CFLAGS -Wall"
13308
13309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13310printf %s "checking if $CC supports -Wall... " >&6; }
13311		cacheid=xorg_cv_cc_flag__Wall
13312		if eval test \${$cacheid+y}
13313then :
13314  printf %s "(cached) " >&6
13315else $as_nop
13316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318int i;
13319int
13320main (void)
13321{
13322
13323  ;
13324  return 0;
13325}
13326_ACEOF
13327if ac_fn_c_try_link "$LINENO"
13328then :
13329  eval $cacheid=yes
13330else $as_nop
13331  eval $cacheid=no
13332fi
13333rm -f core conftest.err conftest.$ac_objext conftest.beam \
13334    conftest$ac_exeext conftest.$ac_ext
13335fi
13336
13337
13338		CFLAGS="$xorg_testset_save_CFLAGS"
13339
13340		eval supported=\$$cacheid
13341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13342printf "%s\n" "$supported" >&6; }
13343		if test "$supported" = "yes" ; then
13344			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13345			found="yes"
13346		fi
13347	fi
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363xorg_testset_save_CFLAGS="$CFLAGS"
13364
13365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13369if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13370then :
13371  printf %s "(cached) " >&6
13372else $as_nop
13373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374/* end confdefs.h.  */
13375int i;
13376_ACEOF
13377if ac_fn_c_try_compile "$LINENO"
13378then :
13379  xorg_cv_cc_flag_unknown_warning_option=yes
13380else $as_nop
13381  xorg_cv_cc_flag_unknown_warning_option=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13384fi
13385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13388	CFLAGS="$xorg_testset_save_CFLAGS"
13389fi
13390
13391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394	fi
13395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13398if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13399then :
13400  printf %s "(cached) " >&6
13401else $as_nop
13402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h.  */
13404int i;
13405_ACEOF
13406if ac_fn_c_try_compile "$LINENO"
13407then :
13408  xorg_cv_cc_flag_unused_command_line_argument=yes
13409else $as_nop
13410  xorg_cv_cc_flag_unused_command_line_argument=no
13411fi
13412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13413fi
13414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13417	CFLAGS="$xorg_testset_save_CFLAGS"
13418fi
13419
13420found="no"
13421
13422	if test $found = "no" ; then
13423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13425		fi
13426
13427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13429		fi
13430
13431		CFLAGS="$CFLAGS -Wpointer-arith"
13432
13433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13434printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13435		cacheid=xorg_cv_cc_flag__Wpointer_arith
13436		if eval test \${$cacheid+y}
13437then :
13438  printf %s "(cached) " >&6
13439else $as_nop
13440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441/* end confdefs.h.  */
13442int i;
13443int
13444main (void)
13445{
13446
13447  ;
13448  return 0;
13449}
13450_ACEOF
13451if ac_fn_c_try_link "$LINENO"
13452then :
13453  eval $cacheid=yes
13454else $as_nop
13455  eval $cacheid=no
13456fi
13457rm -f core conftest.err conftest.$ac_objext conftest.beam \
13458    conftest$ac_exeext conftest.$ac_ext
13459fi
13460
13461
13462		CFLAGS="$xorg_testset_save_CFLAGS"
13463
13464		eval supported=\$$cacheid
13465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13466printf "%s\n" "$supported" >&6; }
13467		if test "$supported" = "yes" ; then
13468			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13469			found="yes"
13470		fi
13471	fi
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487xorg_testset_save_CFLAGS="$CFLAGS"
13488
13489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13493if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13494then :
13495  printf %s "(cached) " >&6
13496else $as_nop
13497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499int i;
13500_ACEOF
13501if ac_fn_c_try_compile "$LINENO"
13502then :
13503  xorg_cv_cc_flag_unknown_warning_option=yes
13504else $as_nop
13505  xorg_cv_cc_flag_unknown_warning_option=no
13506fi
13507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13508fi
13509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13512	CFLAGS="$xorg_testset_save_CFLAGS"
13513fi
13514
13515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518	fi
13519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13523then :
13524  printf %s "(cached) " >&6
13525else $as_nop
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528int i;
13529_ACEOF
13530if ac_fn_c_try_compile "$LINENO"
13531then :
13532  xorg_cv_cc_flag_unused_command_line_argument=yes
13533else $as_nop
13534  xorg_cv_cc_flag_unused_command_line_argument=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13537fi
13538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13541	CFLAGS="$xorg_testset_save_CFLAGS"
13542fi
13543
13544found="no"
13545
13546	if test $found = "no" ; then
13547		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13549		fi
13550
13551		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13553		fi
13554
13555		CFLAGS="$CFLAGS -Wmissing-declarations"
13556
13557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13558printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13559		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13560		if eval test \${$cacheid+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566int i;
13567int
13568main (void)
13569{
13570
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575if ac_fn_c_try_link "$LINENO"
13576then :
13577  eval $cacheid=yes
13578else $as_nop
13579  eval $cacheid=no
13580fi
13581rm -f core conftest.err conftest.$ac_objext conftest.beam \
13582    conftest$ac_exeext conftest.$ac_ext
13583fi
13584
13585
13586		CFLAGS="$xorg_testset_save_CFLAGS"
13587
13588		eval supported=\$$cacheid
13589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13590printf "%s\n" "$supported" >&6; }
13591		if test "$supported" = "yes" ; then
13592			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13593			found="yes"
13594		fi
13595	fi
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611xorg_testset_save_CFLAGS="$CFLAGS"
13612
13613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13618then :
13619  printf %s "(cached) " >&6
13620else $as_nop
13621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623int i;
13624_ACEOF
13625if ac_fn_c_try_compile "$LINENO"
13626then :
13627  xorg_cv_cc_flag_unknown_warning_option=yes
13628else $as_nop
13629  xorg_cv_cc_flag_unknown_warning_option=no
13630fi
13631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13632fi
13633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13636	CFLAGS="$xorg_testset_save_CFLAGS"
13637fi
13638
13639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13642	fi
13643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13646if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13647then :
13648  printf %s "(cached) " >&6
13649else $as_nop
13650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652int i;
13653_ACEOF
13654if ac_fn_c_try_compile "$LINENO"
13655then :
13656  xorg_cv_cc_flag_unused_command_line_argument=yes
13657else $as_nop
13658  xorg_cv_cc_flag_unused_command_line_argument=no
13659fi
13660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13661fi
13662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13665	CFLAGS="$xorg_testset_save_CFLAGS"
13666fi
13667
13668found="no"
13669
13670	if test $found = "no" ; then
13671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13673		fi
13674
13675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13677		fi
13678
13679		CFLAGS="$CFLAGS -Wformat=2"
13680
13681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13682printf %s "checking if $CC supports -Wformat=2... " >&6; }
13683		cacheid=xorg_cv_cc_flag__Wformat_2
13684		if eval test \${$cacheid+y}
13685then :
13686  printf %s "(cached) " >&6
13687else $as_nop
13688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690int i;
13691int
13692main (void)
13693{
13694
13695  ;
13696  return 0;
13697}
13698_ACEOF
13699if ac_fn_c_try_link "$LINENO"
13700then :
13701  eval $cacheid=yes
13702else $as_nop
13703  eval $cacheid=no
13704fi
13705rm -f core conftest.err conftest.$ac_objext conftest.beam \
13706    conftest$ac_exeext conftest.$ac_ext
13707fi
13708
13709
13710		CFLAGS="$xorg_testset_save_CFLAGS"
13711
13712		eval supported=\$$cacheid
13713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13714printf "%s\n" "$supported" >&6; }
13715		if test "$supported" = "yes" ; then
13716			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13717			found="yes"
13718		fi
13719	fi
13720
13721	if test $found = "no" ; then
13722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724		fi
13725
13726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728		fi
13729
13730		CFLAGS="$CFLAGS -Wformat"
13731
13732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13733printf %s "checking if $CC supports -Wformat... " >&6; }
13734		cacheid=xorg_cv_cc_flag__Wformat
13735		if eval test \${$cacheid+y}
13736then :
13737  printf %s "(cached) " >&6
13738else $as_nop
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742int
13743main (void)
13744{
13745
13746  ;
13747  return 0;
13748}
13749_ACEOF
13750if ac_fn_c_try_link "$LINENO"
13751then :
13752  eval $cacheid=yes
13753else $as_nop
13754  eval $cacheid=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757    conftest$ac_exeext conftest.$ac_ext
13758fi
13759
13760
13761		CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763		eval supported=\$$cacheid
13764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765printf "%s\n" "$supported" >&6; }
13766		if test "$supported" = "yes" ; then
13767			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13768			found="yes"
13769		fi
13770	fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788xorg_testset_save_CFLAGS="$CFLAGS"
13789
13790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13795then :
13796  printf %s "(cached) " >&6
13797else $as_nop
13798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799/* end confdefs.h.  */
13800int i;
13801_ACEOF
13802if ac_fn_c_try_compile "$LINENO"
13803then :
13804  xorg_cv_cc_flag_unknown_warning_option=yes
13805else $as_nop
13806  xorg_cv_cc_flag_unknown_warning_option=no
13807fi
13808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13809fi
13810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13813	CFLAGS="$xorg_testset_save_CFLAGS"
13814fi
13815
13816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819	fi
13820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13823if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13824then :
13825  printf %s "(cached) " >&6
13826else $as_nop
13827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828/* end confdefs.h.  */
13829int i;
13830_ACEOF
13831if ac_fn_c_try_compile "$LINENO"
13832then :
13833  xorg_cv_cc_flag_unused_command_line_argument=yes
13834else $as_nop
13835  xorg_cv_cc_flag_unused_command_line_argument=no
13836fi
13837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13838fi
13839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13842	CFLAGS="$xorg_testset_save_CFLAGS"
13843fi
13844
13845found="no"
13846
13847	if test $found = "no" ; then
13848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850		fi
13851
13852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13854		fi
13855
13856		CFLAGS="$CFLAGS -Wstrict-prototypes"
13857
13858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13859printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13860		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13861		if eval test \${$cacheid+y}
13862then :
13863  printf %s "(cached) " >&6
13864else $as_nop
13865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866/* end confdefs.h.  */
13867int i;
13868int
13869main (void)
13870{
13871
13872  ;
13873  return 0;
13874}
13875_ACEOF
13876if ac_fn_c_try_link "$LINENO"
13877then :
13878  eval $cacheid=yes
13879else $as_nop
13880  eval $cacheid=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext conftest.beam \
13883    conftest$ac_exeext conftest.$ac_ext
13884fi
13885
13886
13887		CFLAGS="$xorg_testset_save_CFLAGS"
13888
13889		eval supported=\$$cacheid
13890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13891printf "%s\n" "$supported" >&6; }
13892		if test "$supported" = "yes" ; then
13893			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13894			found="yes"
13895		fi
13896	fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912xorg_testset_save_CFLAGS="$CFLAGS"
13913
13914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13919then :
13920  printf %s "(cached) " >&6
13921else $as_nop
13922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923/* end confdefs.h.  */
13924int i;
13925_ACEOF
13926if ac_fn_c_try_compile "$LINENO"
13927then :
13928  xorg_cv_cc_flag_unknown_warning_option=yes
13929else $as_nop
13930  xorg_cv_cc_flag_unknown_warning_option=no
13931fi
13932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13933fi
13934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13937	CFLAGS="$xorg_testset_save_CFLAGS"
13938fi
13939
13940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943	fi
13944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13948then :
13949  printf %s "(cached) " >&6
13950else $as_nop
13951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953int i;
13954_ACEOF
13955if ac_fn_c_try_compile "$LINENO"
13956then :
13957  xorg_cv_cc_flag_unused_command_line_argument=yes
13958else $as_nop
13959  xorg_cv_cc_flag_unused_command_line_argument=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13962fi
13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13966	CFLAGS="$xorg_testset_save_CFLAGS"
13967fi
13968
13969found="no"
13970
13971	if test $found = "no" ; then
13972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13974		fi
13975
13976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13978		fi
13979
13980		CFLAGS="$CFLAGS -Wmissing-prototypes"
13981
13982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13983printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13984		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13985		if eval test \${$cacheid+y}
13986then :
13987  printf %s "(cached) " >&6
13988else $as_nop
13989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h.  */
13991int i;
13992int
13993main (void)
13994{
13995
13996  ;
13997  return 0;
13998}
13999_ACEOF
14000if ac_fn_c_try_link "$LINENO"
14001then :
14002  eval $cacheid=yes
14003else $as_nop
14004  eval $cacheid=no
14005fi
14006rm -f core conftest.err conftest.$ac_objext conftest.beam \
14007    conftest$ac_exeext conftest.$ac_ext
14008fi
14009
14010
14011		CFLAGS="$xorg_testset_save_CFLAGS"
14012
14013		eval supported=\$$cacheid
14014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14015printf "%s\n" "$supported" >&6; }
14016		if test "$supported" = "yes" ; then
14017			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14018			found="yes"
14019		fi
14020	fi
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036xorg_testset_save_CFLAGS="$CFLAGS"
14037
14038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14042if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14043then :
14044  printf %s "(cached) " >&6
14045else $as_nop
14046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047/* end confdefs.h.  */
14048int i;
14049_ACEOF
14050if ac_fn_c_try_compile "$LINENO"
14051then :
14052  xorg_cv_cc_flag_unknown_warning_option=yes
14053else $as_nop
14054  xorg_cv_cc_flag_unknown_warning_option=no
14055fi
14056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14057fi
14058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14061	CFLAGS="$xorg_testset_save_CFLAGS"
14062fi
14063
14064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14067	fi
14068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14071if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14072then :
14073  printf %s "(cached) " >&6
14074else $as_nop
14075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076/* end confdefs.h.  */
14077int i;
14078_ACEOF
14079if ac_fn_c_try_compile "$LINENO"
14080then :
14081  xorg_cv_cc_flag_unused_command_line_argument=yes
14082else $as_nop
14083  xorg_cv_cc_flag_unused_command_line_argument=no
14084fi
14085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14086fi
14087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14090	CFLAGS="$xorg_testset_save_CFLAGS"
14091fi
14092
14093found="no"
14094
14095	if test $found = "no" ; then
14096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098		fi
14099
14100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102		fi
14103
14104		CFLAGS="$CFLAGS -Wnested-externs"
14105
14106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14107printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14108		cacheid=xorg_cv_cc_flag__Wnested_externs
14109		if eval test \${$cacheid+y}
14110then :
14111  printf %s "(cached) " >&6
14112else $as_nop
14113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114/* end confdefs.h.  */
14115int i;
14116int
14117main (void)
14118{
14119
14120  ;
14121  return 0;
14122}
14123_ACEOF
14124if ac_fn_c_try_link "$LINENO"
14125then :
14126  eval $cacheid=yes
14127else $as_nop
14128  eval $cacheid=no
14129fi
14130rm -f core conftest.err conftest.$ac_objext conftest.beam \
14131    conftest$ac_exeext conftest.$ac_ext
14132fi
14133
14134
14135		CFLAGS="$xorg_testset_save_CFLAGS"
14136
14137		eval supported=\$$cacheid
14138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14139printf "%s\n" "$supported" >&6; }
14140		if test "$supported" = "yes" ; then
14141			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14142			found="yes"
14143		fi
14144	fi
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160xorg_testset_save_CFLAGS="$CFLAGS"
14161
14162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14166if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14167then :
14168  printf %s "(cached) " >&6
14169else $as_nop
14170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171/* end confdefs.h.  */
14172int i;
14173_ACEOF
14174if ac_fn_c_try_compile "$LINENO"
14175then :
14176  xorg_cv_cc_flag_unknown_warning_option=yes
14177else $as_nop
14178  xorg_cv_cc_flag_unknown_warning_option=no
14179fi
14180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14181fi
14182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14185	CFLAGS="$xorg_testset_save_CFLAGS"
14186fi
14187
14188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191	fi
14192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14195if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14196then :
14197  printf %s "(cached) " >&6
14198else $as_nop
14199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200/* end confdefs.h.  */
14201int i;
14202_ACEOF
14203if ac_fn_c_try_compile "$LINENO"
14204then :
14205  xorg_cv_cc_flag_unused_command_line_argument=yes
14206else $as_nop
14207  xorg_cv_cc_flag_unused_command_line_argument=no
14208fi
14209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14210fi
14211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14214	CFLAGS="$xorg_testset_save_CFLAGS"
14215fi
14216
14217found="no"
14218
14219	if test $found = "no" ; then
14220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222		fi
14223
14224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14226		fi
14227
14228		CFLAGS="$CFLAGS -Wbad-function-cast"
14229
14230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14231printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14232		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14233		if eval test \${$cacheid+y}
14234then :
14235  printf %s "(cached) " >&6
14236else $as_nop
14237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h.  */
14239int i;
14240int
14241main (void)
14242{
14243
14244  ;
14245  return 0;
14246}
14247_ACEOF
14248if ac_fn_c_try_link "$LINENO"
14249then :
14250  eval $cacheid=yes
14251else $as_nop
14252  eval $cacheid=no
14253fi
14254rm -f core conftest.err conftest.$ac_objext conftest.beam \
14255    conftest$ac_exeext conftest.$ac_ext
14256fi
14257
14258
14259		CFLAGS="$xorg_testset_save_CFLAGS"
14260
14261		eval supported=\$$cacheid
14262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14263printf "%s\n" "$supported" >&6; }
14264		if test "$supported" = "yes" ; then
14265			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14266			found="yes"
14267		fi
14268	fi
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284xorg_testset_save_CFLAGS="$CFLAGS"
14285
14286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14288	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14290if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14291then :
14292  printf %s "(cached) " >&6
14293else $as_nop
14294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h.  */
14296int i;
14297_ACEOF
14298if ac_fn_c_try_compile "$LINENO"
14299then :
14300  xorg_cv_cc_flag_unknown_warning_option=yes
14301else $as_nop
14302  xorg_cv_cc_flag_unknown_warning_option=no
14303fi
14304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14305fi
14306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309	CFLAGS="$xorg_testset_save_CFLAGS"
14310fi
14311
14312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315	fi
14316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14320then :
14321  printf %s "(cached) " >&6
14322else $as_nop
14323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325int i;
14326_ACEOF
14327if ac_fn_c_try_compile "$LINENO"
14328then :
14329  xorg_cv_cc_flag_unused_command_line_argument=yes
14330else $as_nop
14331  xorg_cv_cc_flag_unused_command_line_argument=no
14332fi
14333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14334fi
14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14338	CFLAGS="$xorg_testset_save_CFLAGS"
14339fi
14340
14341found="no"
14342
14343	if test $found = "no" ; then
14344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346		fi
14347
14348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350		fi
14351
14352		CFLAGS="$CFLAGS -Wold-style-definition"
14353
14354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14355printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14356		cacheid=xorg_cv_cc_flag__Wold_style_definition
14357		if eval test \${$cacheid+y}
14358then :
14359  printf %s "(cached) " >&6
14360else $as_nop
14361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h.  */
14363int i;
14364int
14365main (void)
14366{
14367
14368  ;
14369  return 0;
14370}
14371_ACEOF
14372if ac_fn_c_try_link "$LINENO"
14373then :
14374  eval $cacheid=yes
14375else $as_nop
14376  eval $cacheid=no
14377fi
14378rm -f core conftest.err conftest.$ac_objext conftest.beam \
14379    conftest$ac_exeext conftest.$ac_ext
14380fi
14381
14382
14383		CFLAGS="$xorg_testset_save_CFLAGS"
14384
14385		eval supported=\$$cacheid
14386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14387printf "%s\n" "$supported" >&6; }
14388		if test "$supported" = "yes" ; then
14389			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14390			found="yes"
14391		fi
14392	fi
14393
14394	if test $found = "no" ; then
14395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397		fi
14398
14399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401		fi
14402
14403		CFLAGS="$CFLAGS -fd"
14404
14405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14406printf %s "checking if $CC supports -fd... " >&6; }
14407		cacheid=xorg_cv_cc_flag__fd
14408		if eval test \${$cacheid+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414int i;
14415int
14416main (void)
14417{
14418
14419  ;
14420  return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_link "$LINENO"
14424then :
14425  eval $cacheid=yes
14426else $as_nop
14427  eval $cacheid=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430    conftest$ac_exeext conftest.$ac_ext
14431fi
14432
14433
14434		CFLAGS="$xorg_testset_save_CFLAGS"
14435
14436		eval supported=\$$cacheid
14437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14438printf "%s\n" "$supported" >&6; }
14439		if test "$supported" = "yes" ; then
14440			BASE_CFLAGS="$BASE_CFLAGS -fd"
14441			found="yes"
14442		fi
14443	fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459xorg_testset_save_CFLAGS="$CFLAGS"
14460
14461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14466then :
14467  printf %s "(cached) " >&6
14468else $as_nop
14469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470/* end confdefs.h.  */
14471int i;
14472_ACEOF
14473if ac_fn_c_try_compile "$LINENO"
14474then :
14475  xorg_cv_cc_flag_unknown_warning_option=yes
14476else $as_nop
14477  xorg_cv_cc_flag_unknown_warning_option=no
14478fi
14479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14480fi
14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14484	CFLAGS="$xorg_testset_save_CFLAGS"
14485fi
14486
14487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	fi
14491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14495then :
14496  printf %s "(cached) " >&6
14497else $as_nop
14498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499/* end confdefs.h.  */
14500int i;
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"
14503then :
14504  xorg_cv_cc_flag_unused_command_line_argument=yes
14505else $as_nop
14506  xorg_cv_cc_flag_unused_command_line_argument=no
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14509fi
14510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14513	CFLAGS="$xorg_testset_save_CFLAGS"
14514fi
14515
14516found="no"
14517
14518	if test $found = "no" ; then
14519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521		fi
14522
14523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14525		fi
14526
14527		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14528
14529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14530printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14531		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14532		if eval test \${$cacheid+y}
14533then :
14534  printf %s "(cached) " >&6
14535else $as_nop
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539int
14540main (void)
14541{
14542
14543  ;
14544  return 0;
14545}
14546_ACEOF
14547if ac_fn_c_try_link "$LINENO"
14548then :
14549  eval $cacheid=yes
14550else $as_nop
14551  eval $cacheid=no
14552fi
14553rm -f core conftest.err conftest.$ac_objext conftest.beam \
14554    conftest$ac_exeext conftest.$ac_ext
14555fi
14556
14557
14558		CFLAGS="$xorg_testset_save_CFLAGS"
14559
14560		eval supported=\$$cacheid
14561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14562printf "%s\n" "$supported" >&6; }
14563		if test "$supported" = "yes" ; then
14564			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14565			found="yes"
14566		fi
14567	fi
14568
14569
14570
14571
14572
14573# This chunk adds additional warnings that could catch undesired effects.
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587xorg_testset_save_CFLAGS="$CFLAGS"
14588
14589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14593if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14594then :
14595  printf %s "(cached) " >&6
14596else $as_nop
14597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598/* end confdefs.h.  */
14599int i;
14600_ACEOF
14601if ac_fn_c_try_compile "$LINENO"
14602then :
14603  xorg_cv_cc_flag_unknown_warning_option=yes
14604else $as_nop
14605  xorg_cv_cc_flag_unknown_warning_option=no
14606fi
14607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14608fi
14609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14611	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14612	CFLAGS="$xorg_testset_save_CFLAGS"
14613fi
14614
14615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14616	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14617		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14618	fi
14619	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14622if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14623then :
14624  printf %s "(cached) " >&6
14625else $as_nop
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628int i;
14629_ACEOF
14630if ac_fn_c_try_compile "$LINENO"
14631then :
14632  xorg_cv_cc_flag_unused_command_line_argument=yes
14633else $as_nop
14634  xorg_cv_cc_flag_unused_command_line_argument=no
14635fi
14636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14637fi
14638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14641	CFLAGS="$xorg_testset_save_CFLAGS"
14642fi
14643
14644found="no"
14645
14646	if test $found = "no" ; then
14647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14649		fi
14650
14651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14653		fi
14654
14655		CFLAGS="$CFLAGS -Wunused"
14656
14657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14658printf %s "checking if $CC supports -Wunused... " >&6; }
14659		cacheid=xorg_cv_cc_flag__Wunused
14660		if eval test \${$cacheid+y}
14661then :
14662  printf %s "(cached) " >&6
14663else $as_nop
14664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666int i;
14667int
14668main (void)
14669{
14670
14671  ;
14672  return 0;
14673}
14674_ACEOF
14675if ac_fn_c_try_link "$LINENO"
14676then :
14677  eval $cacheid=yes
14678else $as_nop
14679  eval $cacheid=no
14680fi
14681rm -f core conftest.err conftest.$ac_objext conftest.beam \
14682    conftest$ac_exeext conftest.$ac_ext
14683fi
14684
14685
14686		CFLAGS="$xorg_testset_save_CFLAGS"
14687
14688		eval supported=\$$cacheid
14689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14690printf "%s\n" "$supported" >&6; }
14691		if test "$supported" = "yes" ; then
14692			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14693			found="yes"
14694		fi
14695	fi
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711xorg_testset_save_CFLAGS="$CFLAGS"
14712
14713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14717if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14718then :
14719  printf %s "(cached) " >&6
14720else $as_nop
14721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722/* end confdefs.h.  */
14723int i;
14724_ACEOF
14725if ac_fn_c_try_compile "$LINENO"
14726then :
14727  xorg_cv_cc_flag_unknown_warning_option=yes
14728else $as_nop
14729  xorg_cv_cc_flag_unknown_warning_option=no
14730fi
14731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14732fi
14733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14736	CFLAGS="$xorg_testset_save_CFLAGS"
14737fi
14738
14739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14742	fi
14743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14746if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14747then :
14748  printf %s "(cached) " >&6
14749else $as_nop
14750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751/* end confdefs.h.  */
14752int i;
14753_ACEOF
14754if ac_fn_c_try_compile "$LINENO"
14755then :
14756  xorg_cv_cc_flag_unused_command_line_argument=yes
14757else $as_nop
14758  xorg_cv_cc_flag_unused_command_line_argument=no
14759fi
14760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14761fi
14762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14765	CFLAGS="$xorg_testset_save_CFLAGS"
14766fi
14767
14768found="no"
14769
14770	if test $found = "no" ; then
14771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14773		fi
14774
14775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14777		fi
14778
14779		CFLAGS="$CFLAGS -Wuninitialized"
14780
14781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14782printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14783		cacheid=xorg_cv_cc_flag__Wuninitialized
14784		if eval test \${$cacheid+y}
14785then :
14786  printf %s "(cached) " >&6
14787else $as_nop
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791int
14792main (void)
14793{
14794
14795  ;
14796  return 0;
14797}
14798_ACEOF
14799if ac_fn_c_try_link "$LINENO"
14800then :
14801  eval $cacheid=yes
14802else $as_nop
14803  eval $cacheid=no
14804fi
14805rm -f core conftest.err conftest.$ac_objext conftest.beam \
14806    conftest$ac_exeext conftest.$ac_ext
14807fi
14808
14809
14810		CFLAGS="$xorg_testset_save_CFLAGS"
14811
14812		eval supported=\$$cacheid
14813		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14814printf "%s\n" "$supported" >&6; }
14815		if test "$supported" = "yes" ; then
14816			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14817			found="yes"
14818		fi
14819	fi
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835xorg_testset_save_CFLAGS="$CFLAGS"
14836
14837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14841if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14842then :
14843  printf %s "(cached) " >&6
14844else $as_nop
14845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h.  */
14847int i;
14848_ACEOF
14849if ac_fn_c_try_compile "$LINENO"
14850then :
14851  xorg_cv_cc_flag_unknown_warning_option=yes
14852else $as_nop
14853  xorg_cv_cc_flag_unknown_warning_option=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14856fi
14857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14860	CFLAGS="$xorg_testset_save_CFLAGS"
14861fi
14862
14863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866	fi
14867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14871then :
14872  printf %s "(cached) " >&6
14873else $as_nop
14874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876int i;
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"
14879then :
14880  xorg_cv_cc_flag_unused_command_line_argument=yes
14881else $as_nop
14882  xorg_cv_cc_flag_unused_command_line_argument=no
14883fi
14884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14885fi
14886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14889	CFLAGS="$xorg_testset_save_CFLAGS"
14890fi
14891
14892found="no"
14893
14894	if test $found = "no" ; then
14895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897		fi
14898
14899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14901		fi
14902
14903		CFLAGS="$CFLAGS -Wshadow"
14904
14905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14906printf %s "checking if $CC supports -Wshadow... " >&6; }
14907		cacheid=xorg_cv_cc_flag__Wshadow
14908		if eval test \${$cacheid+y}
14909then :
14910  printf %s "(cached) " >&6
14911else $as_nop
14912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913/* end confdefs.h.  */
14914int i;
14915int
14916main (void)
14917{
14918
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923if ac_fn_c_try_link "$LINENO"
14924then :
14925  eval $cacheid=yes
14926else $as_nop
14927  eval $cacheid=no
14928fi
14929rm -f core conftest.err conftest.$ac_objext conftest.beam \
14930    conftest$ac_exeext conftest.$ac_ext
14931fi
14932
14933
14934		CFLAGS="$xorg_testset_save_CFLAGS"
14935
14936		eval supported=\$$cacheid
14937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14938printf "%s\n" "$supported" >&6; }
14939		if test "$supported" = "yes" ; then
14940			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14941			found="yes"
14942		fi
14943	fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959xorg_testset_save_CFLAGS="$CFLAGS"
14960
14961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14965if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14966then :
14967  printf %s "(cached) " >&6
14968else $as_nop
14969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970/* end confdefs.h.  */
14971int i;
14972_ACEOF
14973if ac_fn_c_try_compile "$LINENO"
14974then :
14975  xorg_cv_cc_flag_unknown_warning_option=yes
14976else $as_nop
14977  xorg_cv_cc_flag_unknown_warning_option=no
14978fi
14979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14980fi
14981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14984	CFLAGS="$xorg_testset_save_CFLAGS"
14985fi
14986
14987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14990	fi
14991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14995then :
14996  printf %s "(cached) " >&6
14997else $as_nop
14998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999/* end confdefs.h.  */
15000int i;
15001_ACEOF
15002if ac_fn_c_try_compile "$LINENO"
15003then :
15004  xorg_cv_cc_flag_unused_command_line_argument=yes
15005else $as_nop
15006  xorg_cv_cc_flag_unused_command_line_argument=no
15007fi
15008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15009fi
15010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15013	CFLAGS="$xorg_testset_save_CFLAGS"
15014fi
15015
15016found="no"
15017
15018	if test $found = "no" ; then
15019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15021		fi
15022
15023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15025		fi
15026
15027		CFLAGS="$CFLAGS -Wmissing-noreturn"
15028
15029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15030printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15031		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15032		if eval test \${$cacheid+y}
15033then :
15034  printf %s "(cached) " >&6
15035else $as_nop
15036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h.  */
15038int i;
15039int
15040main (void)
15041{
15042
15043  ;
15044  return 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_link "$LINENO"
15048then :
15049  eval $cacheid=yes
15050else $as_nop
15051  eval $cacheid=no
15052fi
15053rm -f core conftest.err conftest.$ac_objext conftest.beam \
15054    conftest$ac_exeext conftest.$ac_ext
15055fi
15056
15057
15058		CFLAGS="$xorg_testset_save_CFLAGS"
15059
15060		eval supported=\$$cacheid
15061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15062printf "%s\n" "$supported" >&6; }
15063		if test "$supported" = "yes" ; then
15064			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15065			found="yes"
15066		fi
15067	fi
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083xorg_testset_save_CFLAGS="$CFLAGS"
15084
15085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15090then :
15091  printf %s "(cached) " >&6
15092else $as_nop
15093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094/* end confdefs.h.  */
15095int i;
15096_ACEOF
15097if ac_fn_c_try_compile "$LINENO"
15098then :
15099  xorg_cv_cc_flag_unknown_warning_option=yes
15100else $as_nop
15101  xorg_cv_cc_flag_unknown_warning_option=no
15102fi
15103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15104fi
15105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15108	CFLAGS="$xorg_testset_save_CFLAGS"
15109fi
15110
15111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114	fi
15115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15119then :
15120  printf %s "(cached) " >&6
15121else $as_nop
15122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123/* end confdefs.h.  */
15124int i;
15125_ACEOF
15126if ac_fn_c_try_compile "$LINENO"
15127then :
15128  xorg_cv_cc_flag_unused_command_line_argument=yes
15129else $as_nop
15130  xorg_cv_cc_flag_unused_command_line_argument=no
15131fi
15132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15133fi
15134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15137	CFLAGS="$xorg_testset_save_CFLAGS"
15138fi
15139
15140found="no"
15141
15142	if test $found = "no" ; then
15143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145		fi
15146
15147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15149		fi
15150
15151		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15152
15153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15154printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15155		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15156		if eval test \${$cacheid+y}
15157then :
15158  printf %s "(cached) " >&6
15159else $as_nop
15160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163int
15164main (void)
15165{
15166
15167  ;
15168  return 0;
15169}
15170_ACEOF
15171if ac_fn_c_try_link "$LINENO"
15172then :
15173  eval $cacheid=yes
15174else $as_nop
15175  eval $cacheid=no
15176fi
15177rm -f core conftest.err conftest.$ac_objext conftest.beam \
15178    conftest$ac_exeext conftest.$ac_ext
15179fi
15180
15181
15182		CFLAGS="$xorg_testset_save_CFLAGS"
15183
15184		eval supported=\$$cacheid
15185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15186printf "%s\n" "$supported" >&6; }
15187		if test "$supported" = "yes" ; then
15188			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15189			found="yes"
15190		fi
15191	fi
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207xorg_testset_save_CFLAGS="$CFLAGS"
15208
15209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15213if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15214then :
15215  printf %s "(cached) " >&6
15216else $as_nop
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219int i;
15220_ACEOF
15221if ac_fn_c_try_compile "$LINENO"
15222then :
15223  xorg_cv_cc_flag_unknown_warning_option=yes
15224else $as_nop
15225  xorg_cv_cc_flag_unknown_warning_option=no
15226fi
15227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15228fi
15229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15232	CFLAGS="$xorg_testset_save_CFLAGS"
15233fi
15234
15235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238	fi
15239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15242if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15243then :
15244  printf %s "(cached) " >&6
15245else $as_nop
15246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247/* end confdefs.h.  */
15248int i;
15249_ACEOF
15250if ac_fn_c_try_compile "$LINENO"
15251then :
15252  xorg_cv_cc_flag_unused_command_line_argument=yes
15253else $as_nop
15254  xorg_cv_cc_flag_unused_command_line_argument=no
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15257fi
15258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15261	CFLAGS="$xorg_testset_save_CFLAGS"
15262fi
15263
15264found="no"
15265
15266	if test $found = "no" ; then
15267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15269		fi
15270
15271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273		fi
15274
15275		CFLAGS="$CFLAGS -Wredundant-decls"
15276
15277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15278printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15279		cacheid=xorg_cv_cc_flag__Wredundant_decls
15280		if eval test \${$cacheid+y}
15281then :
15282  printf %s "(cached) " >&6
15283else $as_nop
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286int i;
15287int
15288main (void)
15289{
15290
15291  ;
15292  return 0;
15293}
15294_ACEOF
15295if ac_fn_c_try_link "$LINENO"
15296then :
15297  eval $cacheid=yes
15298else $as_nop
15299  eval $cacheid=no
15300fi
15301rm -f core conftest.err conftest.$ac_objext conftest.beam \
15302    conftest$ac_exeext conftest.$ac_ext
15303fi
15304
15305
15306		CFLAGS="$xorg_testset_save_CFLAGS"
15307
15308		eval supported=\$$cacheid
15309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15310printf "%s\n" "$supported" >&6; }
15311		if test "$supported" = "yes" ; then
15312			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15313			found="yes"
15314		fi
15315	fi
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331xorg_testset_save_CFLAGS="$CFLAGS"
15332
15333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15337if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15338then :
15339  printf %s "(cached) " >&6
15340else $as_nop
15341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h.  */
15343int i;
15344_ACEOF
15345if ac_fn_c_try_compile "$LINENO"
15346then :
15347  xorg_cv_cc_flag_unknown_warning_option=yes
15348else $as_nop
15349  xorg_cv_cc_flag_unknown_warning_option=no
15350fi
15351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15352fi
15353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15356	CFLAGS="$xorg_testset_save_CFLAGS"
15357fi
15358
15359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15362	fi
15363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15366if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15367then :
15368  printf %s "(cached) " >&6
15369else $as_nop
15370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371/* end confdefs.h.  */
15372int i;
15373_ACEOF
15374if ac_fn_c_try_compile "$LINENO"
15375then :
15376  xorg_cv_cc_flag_unused_command_line_argument=yes
15377else $as_nop
15378  xorg_cv_cc_flag_unused_command_line_argument=no
15379fi
15380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15381fi
15382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15385	CFLAGS="$xorg_testset_save_CFLAGS"
15386fi
15387
15388found="no"
15389
15390	if test $found = "no" ; then
15391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15393		fi
15394
15395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15397		fi
15398
15399		CFLAGS="$CFLAGS -Wlogical-op"
15400
15401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15402printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15403		cacheid=xorg_cv_cc_flag__Wlogical_op
15404		if eval test \${$cacheid+y}
15405then :
15406  printf %s "(cached) " >&6
15407else $as_nop
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410int i;
15411int
15412main (void)
15413{
15414
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419if ac_fn_c_try_link "$LINENO"
15420then :
15421  eval $cacheid=yes
15422else $as_nop
15423  eval $cacheid=no
15424fi
15425rm -f core conftest.err conftest.$ac_objext conftest.beam \
15426    conftest$ac_exeext conftest.$ac_ext
15427fi
15428
15429
15430		CFLAGS="$xorg_testset_save_CFLAGS"
15431
15432		eval supported=\$$cacheid
15433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15434printf "%s\n" "$supported" >&6; }
15435		if test "$supported" = "yes" ; then
15436			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15437			found="yes"
15438		fi
15439	fi
15440
15441
15442
15443# These are currently disabled because they are noisy.  They will be enabled
15444# in the future once the codebase is sufficiently modernized to silence
15445# them.  For now, I don't want them to drown out the other warnings.
15446# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15447# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15448# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15449
15450# Turn some warnings into errors, so we don't accidently get successful builds
15451# when there are problems that should be fixed.
15452
15453if test "x$SELECTIVE_WERROR" = "xyes" ; then
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467xorg_testset_save_CFLAGS="$CFLAGS"
15468
15469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15473if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15474then :
15475  printf %s "(cached) " >&6
15476else $as_nop
15477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478/* end confdefs.h.  */
15479int i;
15480_ACEOF
15481if ac_fn_c_try_compile "$LINENO"
15482then :
15483  xorg_cv_cc_flag_unknown_warning_option=yes
15484else $as_nop
15485  xorg_cv_cc_flag_unknown_warning_option=no
15486fi
15487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15488fi
15489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15492	CFLAGS="$xorg_testset_save_CFLAGS"
15493fi
15494
15495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498	fi
15499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15503then :
15504  printf %s "(cached) " >&6
15505else $as_nop
15506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508int i;
15509_ACEOF
15510if ac_fn_c_try_compile "$LINENO"
15511then :
15512  xorg_cv_cc_flag_unused_command_line_argument=yes
15513else $as_nop
15514  xorg_cv_cc_flag_unused_command_line_argument=no
15515fi
15516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15517fi
15518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15521	CFLAGS="$xorg_testset_save_CFLAGS"
15522fi
15523
15524found="no"
15525
15526	if test $found = "no" ; then
15527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15529		fi
15530
15531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15533		fi
15534
15535		CFLAGS="$CFLAGS -Werror=implicit"
15536
15537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15538printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15539		cacheid=xorg_cv_cc_flag__Werror_implicit
15540		if eval test \${$cacheid+y}
15541then :
15542  printf %s "(cached) " >&6
15543else $as_nop
15544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h.  */
15546int i;
15547int
15548main (void)
15549{
15550
15551  ;
15552  return 0;
15553}
15554_ACEOF
15555if ac_fn_c_try_link "$LINENO"
15556then :
15557  eval $cacheid=yes
15558else $as_nop
15559  eval $cacheid=no
15560fi
15561rm -f core conftest.err conftest.$ac_objext conftest.beam \
15562    conftest$ac_exeext conftest.$ac_ext
15563fi
15564
15565
15566		CFLAGS="$xorg_testset_save_CFLAGS"
15567
15568		eval supported=\$$cacheid
15569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15570printf "%s\n" "$supported" >&6; }
15571		if test "$supported" = "yes" ; then
15572			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15573			found="yes"
15574		fi
15575	fi
15576
15577	if test $found = "no" ; then
15578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580		fi
15581
15582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15584		fi
15585
15586		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15587
15588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15589printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15590		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15591		if eval test \${$cacheid+y}
15592then :
15593  printf %s "(cached) " >&6
15594else $as_nop
15595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596/* end confdefs.h.  */
15597int i;
15598int
15599main (void)
15600{
15601
15602  ;
15603  return 0;
15604}
15605_ACEOF
15606if ac_fn_c_try_link "$LINENO"
15607then :
15608  eval $cacheid=yes
15609else $as_nop
15610  eval $cacheid=no
15611fi
15612rm -f core conftest.err conftest.$ac_objext conftest.beam \
15613    conftest$ac_exeext conftest.$ac_ext
15614fi
15615
15616
15617		CFLAGS="$xorg_testset_save_CFLAGS"
15618
15619		eval supported=\$$cacheid
15620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621printf "%s\n" "$supported" >&6; }
15622		if test "$supported" = "yes" ; then
15623			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15624			found="yes"
15625		fi
15626	fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15649then :
15650  printf %s "(cached) " >&6
15651else $as_nop
15652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h.  */
15654int i;
15655_ACEOF
15656if ac_fn_c_try_compile "$LINENO"
15657then :
15658  xorg_cv_cc_flag_unknown_warning_option=yes
15659else $as_nop
15660  xorg_cv_cc_flag_unknown_warning_option=no
15661fi
15662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15663fi
15664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15667	CFLAGS="$xorg_testset_save_CFLAGS"
15668fi
15669
15670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673	fi
15674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15678then :
15679  printf %s "(cached) " >&6
15680else $as_nop
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683int i;
15684_ACEOF
15685if ac_fn_c_try_compile "$LINENO"
15686then :
15687  xorg_cv_cc_flag_unused_command_line_argument=yes
15688else $as_nop
15689  xorg_cv_cc_flag_unused_command_line_argument=no
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15692fi
15693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15696	CFLAGS="$xorg_testset_save_CFLAGS"
15697fi
15698
15699found="no"
15700
15701	if test $found = "no" ; then
15702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15704		fi
15705
15706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15708		fi
15709
15710		CFLAGS="$CFLAGS -Werror=nonnull"
15711
15712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15713printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15714		cacheid=xorg_cv_cc_flag__Werror_nonnull
15715		if eval test \${$cacheid+y}
15716then :
15717  printf %s "(cached) " >&6
15718else $as_nop
15719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int i;
15722int
15723main (void)
15724{
15725
15726  ;
15727  return 0;
15728}
15729_ACEOF
15730if ac_fn_c_try_link "$LINENO"
15731then :
15732  eval $cacheid=yes
15733else $as_nop
15734  eval $cacheid=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext conftest.beam \
15737    conftest$ac_exeext conftest.$ac_ext
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745printf "%s\n" "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15748			found="yes"
15749		fi
15750	fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15773then :
15774  printf %s "(cached) " >&6
15775else $as_nop
15776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777/* end confdefs.h.  */
15778int i;
15779_ACEOF
15780if ac_fn_c_try_compile "$LINENO"
15781then :
15782  xorg_cv_cc_flag_unknown_warning_option=yes
15783else $as_nop
15784  xorg_cv_cc_flag_unknown_warning_option=no
15785fi
15786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15787fi
15788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15791	CFLAGS="$xorg_testset_save_CFLAGS"
15792fi
15793
15794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797	fi
15798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15802then :
15803  printf %s "(cached) " >&6
15804else $as_nop
15805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807int i;
15808_ACEOF
15809if ac_fn_c_try_compile "$LINENO"
15810then :
15811  xorg_cv_cc_flag_unused_command_line_argument=yes
15812else $as_nop
15813  xorg_cv_cc_flag_unused_command_line_argument=no
15814fi
15815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15816fi
15817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15820	CFLAGS="$xorg_testset_save_CFLAGS"
15821fi
15822
15823found="no"
15824
15825	if test $found = "no" ; then
15826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828		fi
15829
15830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15832		fi
15833
15834		CFLAGS="$CFLAGS -Werror=init-self"
15835
15836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15837printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15838		cacheid=xorg_cv_cc_flag__Werror_init_self
15839		if eval test \${$cacheid+y}
15840then :
15841  printf %s "(cached) " >&6
15842else $as_nop
15843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h.  */
15845int i;
15846int
15847main (void)
15848{
15849
15850  ;
15851  return 0;
15852}
15853_ACEOF
15854if ac_fn_c_try_link "$LINENO"
15855then :
15856  eval $cacheid=yes
15857else $as_nop
15858  eval $cacheid=no
15859fi
15860rm -f core conftest.err conftest.$ac_objext conftest.beam \
15861    conftest$ac_exeext conftest.$ac_ext
15862fi
15863
15864
15865		CFLAGS="$xorg_testset_save_CFLAGS"
15866
15867		eval supported=\$$cacheid
15868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869printf "%s\n" "$supported" >&6; }
15870		if test "$supported" = "yes" ; then
15871			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15872			found="yes"
15873		fi
15874	fi
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890xorg_testset_save_CFLAGS="$CFLAGS"
15891
15892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15897then :
15898  printf %s "(cached) " >&6
15899else $as_nop
15900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h.  */
15902int i;
15903_ACEOF
15904if ac_fn_c_try_compile "$LINENO"
15905then :
15906  xorg_cv_cc_flag_unknown_warning_option=yes
15907else $as_nop
15908  xorg_cv_cc_flag_unknown_warning_option=no
15909fi
15910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15911fi
15912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15915	CFLAGS="$xorg_testset_save_CFLAGS"
15916fi
15917
15918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921	fi
15922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15926then :
15927  printf %s "(cached) " >&6
15928else $as_nop
15929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930/* end confdefs.h.  */
15931int i;
15932_ACEOF
15933if ac_fn_c_try_compile "$LINENO"
15934then :
15935  xorg_cv_cc_flag_unused_command_line_argument=yes
15936else $as_nop
15937  xorg_cv_cc_flag_unused_command_line_argument=no
15938fi
15939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15940fi
15941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15944	CFLAGS="$xorg_testset_save_CFLAGS"
15945fi
15946
15947found="no"
15948
15949	if test $found = "no" ; then
15950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952		fi
15953
15954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15956		fi
15957
15958		CFLAGS="$CFLAGS -Werror=main"
15959
15960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15961printf %s "checking if $CC supports -Werror=main... " >&6; }
15962		cacheid=xorg_cv_cc_flag__Werror_main
15963		if eval test \${$cacheid+y}
15964then :
15965  printf %s "(cached) " >&6
15966else $as_nop
15967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969int i;
15970int
15971main (void)
15972{
15973
15974  ;
15975  return 0;
15976}
15977_ACEOF
15978if ac_fn_c_try_link "$LINENO"
15979then :
15980  eval $cacheid=yes
15981else $as_nop
15982  eval $cacheid=no
15983fi
15984rm -f core conftest.err conftest.$ac_objext conftest.beam \
15985    conftest$ac_exeext conftest.$ac_ext
15986fi
15987
15988
15989		CFLAGS="$xorg_testset_save_CFLAGS"
15990
15991		eval supported=\$$cacheid
15992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15993printf "%s\n" "$supported" >&6; }
15994		if test "$supported" = "yes" ; then
15995			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15996			found="yes"
15997		fi
15998	fi
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014xorg_testset_save_CFLAGS="$CFLAGS"
16015
16016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16020if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16021then :
16022  printf %s "(cached) " >&6
16023else $as_nop
16024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025/* end confdefs.h.  */
16026int i;
16027_ACEOF
16028if ac_fn_c_try_compile "$LINENO"
16029then :
16030  xorg_cv_cc_flag_unknown_warning_option=yes
16031else $as_nop
16032  xorg_cv_cc_flag_unknown_warning_option=no
16033fi
16034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16035fi
16036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16039	CFLAGS="$xorg_testset_save_CFLAGS"
16040fi
16041
16042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045	fi
16046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16050then :
16051  printf %s "(cached) " >&6
16052else $as_nop
16053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054/* end confdefs.h.  */
16055int i;
16056_ACEOF
16057if ac_fn_c_try_compile "$LINENO"
16058then :
16059  xorg_cv_cc_flag_unused_command_line_argument=yes
16060else $as_nop
16061  xorg_cv_cc_flag_unused_command_line_argument=no
16062fi
16063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16064fi
16065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16068	CFLAGS="$xorg_testset_save_CFLAGS"
16069fi
16070
16071found="no"
16072
16073	if test $found = "no" ; then
16074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076		fi
16077
16078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16080		fi
16081
16082		CFLAGS="$CFLAGS -Werror=missing-braces"
16083
16084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16085printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16086		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16087		if eval test \${$cacheid+y}
16088then :
16089  printf %s "(cached) " >&6
16090else $as_nop
16091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093int i;
16094int
16095main (void)
16096{
16097
16098  ;
16099  return 0;
16100}
16101_ACEOF
16102if ac_fn_c_try_link "$LINENO"
16103then :
16104  eval $cacheid=yes
16105else $as_nop
16106  eval $cacheid=no
16107fi
16108rm -f core conftest.err conftest.$ac_objext conftest.beam \
16109    conftest$ac_exeext conftest.$ac_ext
16110fi
16111
16112
16113		CFLAGS="$xorg_testset_save_CFLAGS"
16114
16115		eval supported=\$$cacheid
16116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16117printf "%s\n" "$supported" >&6; }
16118		if test "$supported" = "yes" ; then
16119			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16120			found="yes"
16121		fi
16122	fi
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138xorg_testset_save_CFLAGS="$CFLAGS"
16139
16140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16145then :
16146  printf %s "(cached) " >&6
16147else $as_nop
16148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150int i;
16151_ACEOF
16152if ac_fn_c_try_compile "$LINENO"
16153then :
16154  xorg_cv_cc_flag_unknown_warning_option=yes
16155else $as_nop
16156  xorg_cv_cc_flag_unknown_warning_option=no
16157fi
16158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16159fi
16160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16163	CFLAGS="$xorg_testset_save_CFLAGS"
16164fi
16165
16166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16169	fi
16170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16174then :
16175  printf %s "(cached) " >&6
16176else $as_nop
16177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179int i;
16180_ACEOF
16181if ac_fn_c_try_compile "$LINENO"
16182then :
16183  xorg_cv_cc_flag_unused_command_line_argument=yes
16184else $as_nop
16185  xorg_cv_cc_flag_unused_command_line_argument=no
16186fi
16187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16188fi
16189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16192	CFLAGS="$xorg_testset_save_CFLAGS"
16193fi
16194
16195found="no"
16196
16197	if test $found = "no" ; then
16198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200		fi
16201
16202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16204		fi
16205
16206		CFLAGS="$CFLAGS -Werror=sequence-point"
16207
16208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16209printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16210		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16211		if eval test \${$cacheid+y}
16212then :
16213  printf %s "(cached) " >&6
16214else $as_nop
16215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h.  */
16217int i;
16218int
16219main (void)
16220{
16221
16222  ;
16223  return 0;
16224}
16225_ACEOF
16226if ac_fn_c_try_link "$LINENO"
16227then :
16228  eval $cacheid=yes
16229else $as_nop
16230  eval $cacheid=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext conftest.beam \
16233    conftest$ac_exeext conftest.$ac_ext
16234fi
16235
16236
16237		CFLAGS="$xorg_testset_save_CFLAGS"
16238
16239		eval supported=\$$cacheid
16240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16241printf "%s\n" "$supported" >&6; }
16242		if test "$supported" = "yes" ; then
16243			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16244			found="yes"
16245		fi
16246	fi
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262xorg_testset_save_CFLAGS="$CFLAGS"
16263
16264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16268if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16269then :
16270  printf %s "(cached) " >&6
16271else $as_nop
16272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273/* end confdefs.h.  */
16274int i;
16275_ACEOF
16276if ac_fn_c_try_compile "$LINENO"
16277then :
16278  xorg_cv_cc_flag_unknown_warning_option=yes
16279else $as_nop
16280  xorg_cv_cc_flag_unknown_warning_option=no
16281fi
16282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16283fi
16284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16287	CFLAGS="$xorg_testset_save_CFLAGS"
16288fi
16289
16290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293	fi
16294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16298then :
16299  printf %s "(cached) " >&6
16300else $as_nop
16301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302/* end confdefs.h.  */
16303int i;
16304_ACEOF
16305if ac_fn_c_try_compile "$LINENO"
16306then :
16307  xorg_cv_cc_flag_unused_command_line_argument=yes
16308else $as_nop
16309  xorg_cv_cc_flag_unused_command_line_argument=no
16310fi
16311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16312fi
16313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16316	CFLAGS="$xorg_testset_save_CFLAGS"
16317fi
16318
16319found="no"
16320
16321	if test $found = "no" ; then
16322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16324		fi
16325
16326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16328		fi
16329
16330		CFLAGS="$CFLAGS -Werror=return-type"
16331
16332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16333printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16334		cacheid=xorg_cv_cc_flag__Werror_return_type
16335		if eval test \${$cacheid+y}
16336then :
16337  printf %s "(cached) " >&6
16338else $as_nop
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341int i;
16342int
16343main (void)
16344{
16345
16346  ;
16347  return 0;
16348}
16349_ACEOF
16350if ac_fn_c_try_link "$LINENO"
16351then :
16352  eval $cacheid=yes
16353else $as_nop
16354  eval $cacheid=no
16355fi
16356rm -f core conftest.err conftest.$ac_objext conftest.beam \
16357    conftest$ac_exeext conftest.$ac_ext
16358fi
16359
16360
16361		CFLAGS="$xorg_testset_save_CFLAGS"
16362
16363		eval supported=\$$cacheid
16364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16365printf "%s\n" "$supported" >&6; }
16366		if test "$supported" = "yes" ; then
16367			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16368			found="yes"
16369		fi
16370	fi
16371
16372	if test $found = "no" ; then
16373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375		fi
16376
16377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379		fi
16380
16381		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16382
16383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16384printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16385		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16386		if eval test \${$cacheid+y}
16387then :
16388  printf %s "(cached) " >&6
16389else $as_nop
16390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392int i;
16393int
16394main (void)
16395{
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401if ac_fn_c_try_link "$LINENO"
16402then :
16403  eval $cacheid=yes
16404else $as_nop
16405  eval $cacheid=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext conftest.beam \
16408    conftest$ac_exeext conftest.$ac_ext
16409fi
16410
16411
16412		CFLAGS="$xorg_testset_save_CFLAGS"
16413
16414		eval supported=\$$cacheid
16415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16416printf "%s\n" "$supported" >&6; }
16417		if test "$supported" = "yes" ; then
16418			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16419			found="yes"
16420		fi
16421	fi
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437xorg_testset_save_CFLAGS="$CFLAGS"
16438
16439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16444then :
16445  printf %s "(cached) " >&6
16446else $as_nop
16447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448/* end confdefs.h.  */
16449int i;
16450_ACEOF
16451if ac_fn_c_try_compile "$LINENO"
16452then :
16453  xorg_cv_cc_flag_unknown_warning_option=yes
16454else $as_nop
16455  xorg_cv_cc_flag_unknown_warning_option=no
16456fi
16457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16458fi
16459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16462	CFLAGS="$xorg_testset_save_CFLAGS"
16463fi
16464
16465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468	fi
16469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16473then :
16474  printf %s "(cached) " >&6
16475else $as_nop
16476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h.  */
16478int i;
16479_ACEOF
16480if ac_fn_c_try_compile "$LINENO"
16481then :
16482  xorg_cv_cc_flag_unused_command_line_argument=yes
16483else $as_nop
16484  xorg_cv_cc_flag_unused_command_line_argument=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16487fi
16488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16491	CFLAGS="$xorg_testset_save_CFLAGS"
16492fi
16493
16494found="no"
16495
16496	if test $found = "no" ; then
16497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499		fi
16500
16501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503		fi
16504
16505		CFLAGS="$CFLAGS -Werror=trigraphs"
16506
16507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16508printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16509		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16510		if eval test \${$cacheid+y}
16511then :
16512  printf %s "(cached) " >&6
16513else $as_nop
16514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516int i;
16517int
16518main (void)
16519{
16520
16521  ;
16522  return 0;
16523}
16524_ACEOF
16525if ac_fn_c_try_link "$LINENO"
16526then :
16527  eval $cacheid=yes
16528else $as_nop
16529  eval $cacheid=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.beam \
16532    conftest$ac_exeext conftest.$ac_ext
16533fi
16534
16535
16536		CFLAGS="$xorg_testset_save_CFLAGS"
16537
16538		eval supported=\$$cacheid
16539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16540printf "%s\n" "$supported" >&6; }
16541		if test "$supported" = "yes" ; then
16542			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16543			found="yes"
16544		fi
16545	fi
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561xorg_testset_save_CFLAGS="$CFLAGS"
16562
16563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16568then :
16569  printf %s "(cached) " >&6
16570else $as_nop
16571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572/* end confdefs.h.  */
16573int i;
16574_ACEOF
16575if ac_fn_c_try_compile "$LINENO"
16576then :
16577  xorg_cv_cc_flag_unknown_warning_option=yes
16578else $as_nop
16579  xorg_cv_cc_flag_unknown_warning_option=no
16580fi
16581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16582fi
16583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16586	CFLAGS="$xorg_testset_save_CFLAGS"
16587fi
16588
16589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16592	fi
16593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16596if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16597then :
16598  printf %s "(cached) " >&6
16599else $as_nop
16600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h.  */
16602int i;
16603_ACEOF
16604if ac_fn_c_try_compile "$LINENO"
16605then :
16606  xorg_cv_cc_flag_unused_command_line_argument=yes
16607else $as_nop
16608  xorg_cv_cc_flag_unused_command_line_argument=no
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16611fi
16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16615	CFLAGS="$xorg_testset_save_CFLAGS"
16616fi
16617
16618found="no"
16619
16620	if test $found = "no" ; then
16621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623		fi
16624
16625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627		fi
16628
16629		CFLAGS="$CFLAGS -Werror=array-bounds"
16630
16631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16632printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16633		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16634		if eval test \${$cacheid+y}
16635then :
16636  printf %s "(cached) " >&6
16637else $as_nop
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641int
16642main (void)
16643{
16644
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649if ac_fn_c_try_link "$LINENO"
16650then :
16651  eval $cacheid=yes
16652else $as_nop
16653  eval $cacheid=no
16654fi
16655rm -f core conftest.err conftest.$ac_objext conftest.beam \
16656    conftest$ac_exeext conftest.$ac_ext
16657fi
16658
16659
16660		CFLAGS="$xorg_testset_save_CFLAGS"
16661
16662		eval supported=\$$cacheid
16663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16664printf "%s\n" "$supported" >&6; }
16665		if test "$supported" = "yes" ; then
16666			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16667			found="yes"
16668		fi
16669	fi
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685xorg_testset_save_CFLAGS="$CFLAGS"
16686
16687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16691if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16692then :
16693  printf %s "(cached) " >&6
16694else $as_nop
16695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696/* end confdefs.h.  */
16697int i;
16698_ACEOF
16699if ac_fn_c_try_compile "$LINENO"
16700then :
16701  xorg_cv_cc_flag_unknown_warning_option=yes
16702else $as_nop
16703  xorg_cv_cc_flag_unknown_warning_option=no
16704fi
16705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16706fi
16707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16710	CFLAGS="$xorg_testset_save_CFLAGS"
16711fi
16712
16713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16716	fi
16717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16720if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16721then :
16722  printf %s "(cached) " >&6
16723else $as_nop
16724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725/* end confdefs.h.  */
16726int i;
16727_ACEOF
16728if ac_fn_c_try_compile "$LINENO"
16729then :
16730  xorg_cv_cc_flag_unused_command_line_argument=yes
16731else $as_nop
16732  xorg_cv_cc_flag_unused_command_line_argument=no
16733fi
16734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16735fi
16736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16739	CFLAGS="$xorg_testset_save_CFLAGS"
16740fi
16741
16742found="no"
16743
16744	if test $found = "no" ; then
16745		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16747		fi
16748
16749		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751		fi
16752
16753		CFLAGS="$CFLAGS -Werror=write-strings"
16754
16755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16756printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16757		cacheid=xorg_cv_cc_flag__Werror_write_strings
16758		if eval test \${$cacheid+y}
16759then :
16760  printf %s "(cached) " >&6
16761else $as_nop
16762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h.  */
16764int i;
16765int
16766main (void)
16767{
16768
16769  ;
16770  return 0;
16771}
16772_ACEOF
16773if ac_fn_c_try_link "$LINENO"
16774then :
16775  eval $cacheid=yes
16776else $as_nop
16777  eval $cacheid=no
16778fi
16779rm -f core conftest.err conftest.$ac_objext conftest.beam \
16780    conftest$ac_exeext conftest.$ac_ext
16781fi
16782
16783
16784		CFLAGS="$xorg_testset_save_CFLAGS"
16785
16786		eval supported=\$$cacheid
16787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16788printf "%s\n" "$supported" >&6; }
16789		if test "$supported" = "yes" ; then
16790			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16791			found="yes"
16792		fi
16793	fi
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809xorg_testset_save_CFLAGS="$CFLAGS"
16810
16811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16816then :
16817  printf %s "(cached) " >&6
16818else $as_nop
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821int i;
16822_ACEOF
16823if ac_fn_c_try_compile "$LINENO"
16824then :
16825  xorg_cv_cc_flag_unknown_warning_option=yes
16826else $as_nop
16827  xorg_cv_cc_flag_unknown_warning_option=no
16828fi
16829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16830fi
16831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16834	CFLAGS="$xorg_testset_save_CFLAGS"
16835fi
16836
16837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840	fi
16841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16844if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16845then :
16846  printf %s "(cached) " >&6
16847else $as_nop
16848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849/* end confdefs.h.  */
16850int i;
16851_ACEOF
16852if ac_fn_c_try_compile "$LINENO"
16853then :
16854  xorg_cv_cc_flag_unused_command_line_argument=yes
16855else $as_nop
16856  xorg_cv_cc_flag_unused_command_line_argument=no
16857fi
16858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16859fi
16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16863	CFLAGS="$xorg_testset_save_CFLAGS"
16864fi
16865
16866found="no"
16867
16868	if test $found = "no" ; then
16869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871		fi
16872
16873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875		fi
16876
16877		CFLAGS="$CFLAGS -Werror=address"
16878
16879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16880printf %s "checking if $CC supports -Werror=address... " >&6; }
16881		cacheid=xorg_cv_cc_flag__Werror_address
16882		if eval test \${$cacheid+y}
16883then :
16884  printf %s "(cached) " >&6
16885else $as_nop
16886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h.  */
16888int i;
16889int
16890main (void)
16891{
16892
16893  ;
16894  return 0;
16895}
16896_ACEOF
16897if ac_fn_c_try_link "$LINENO"
16898then :
16899  eval $cacheid=yes
16900else $as_nop
16901  eval $cacheid=no
16902fi
16903rm -f core conftest.err conftest.$ac_objext conftest.beam \
16904    conftest$ac_exeext conftest.$ac_ext
16905fi
16906
16907
16908		CFLAGS="$xorg_testset_save_CFLAGS"
16909
16910		eval supported=\$$cacheid
16911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16912printf "%s\n" "$supported" >&6; }
16913		if test "$supported" = "yes" ; then
16914			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16915			found="yes"
16916		fi
16917	fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933xorg_testset_save_CFLAGS="$CFLAGS"
16934
16935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16940then :
16941  printf %s "(cached) " >&6
16942else $as_nop
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945int i;
16946_ACEOF
16947if ac_fn_c_try_compile "$LINENO"
16948then :
16949  xorg_cv_cc_flag_unknown_warning_option=yes
16950else $as_nop
16951  xorg_cv_cc_flag_unknown_warning_option=no
16952fi
16953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16954fi
16955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958	CFLAGS="$xorg_testset_save_CFLAGS"
16959fi
16960
16961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964	fi
16965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16969then :
16970  printf %s "(cached) " >&6
16971else $as_nop
16972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974int i;
16975_ACEOF
16976if ac_fn_c_try_compile "$LINENO"
16977then :
16978  xorg_cv_cc_flag_unused_command_line_argument=yes
16979else $as_nop
16980  xorg_cv_cc_flag_unused_command_line_argument=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16983fi
16984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990found="no"
16991
16992	if test $found = "no" ; then
16993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995		fi
16996
16997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999		fi
17000
17001		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17002
17003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17004printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17005		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17006		if eval test \${$cacheid+y}
17007then :
17008  printf %s "(cached) " >&6
17009else $as_nop
17010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012int i;
17013int
17014main (void)
17015{
17016
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"
17022then :
17023  eval $cacheid=yes
17024else $as_nop
17025  eval $cacheid=no
17026fi
17027rm -f core conftest.err conftest.$ac_objext conftest.beam \
17028    conftest$ac_exeext conftest.$ac_ext
17029fi
17030
17031
17032		CFLAGS="$xorg_testset_save_CFLAGS"
17033
17034		eval supported=\$$cacheid
17035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17036printf "%s\n" "$supported" >&6; }
17037		if test "$supported" = "yes" ; then
17038			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17039			found="yes"
17040		fi
17041	fi
17042
17043	if test $found = "no" ; then
17044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046		fi
17047
17048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050		fi
17051
17052		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17053
17054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17055printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17056		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17057		if eval test \${$cacheid+y}
17058then :
17059  printf %s "(cached) " >&6
17060else $as_nop
17061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h.  */
17063int i;
17064int
17065main (void)
17066{
17067
17068  ;
17069  return 0;
17070}
17071_ACEOF
17072if ac_fn_c_try_link "$LINENO"
17073then :
17074  eval $cacheid=yes
17075else $as_nop
17076  eval $cacheid=no
17077fi
17078rm -f core conftest.err conftest.$ac_objext conftest.beam \
17079    conftest$ac_exeext conftest.$ac_ext
17080fi
17081
17082
17083		CFLAGS="$xorg_testset_save_CFLAGS"
17084
17085		eval supported=\$$cacheid
17086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17087printf "%s\n" "$supported" >&6; }
17088		if test "$supported" = "yes" ; then
17089			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17090			found="yes"
17091		fi
17092	fi
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108xorg_testset_save_CFLAGS="$CFLAGS"
17109
17110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17115then :
17116  printf %s "(cached) " >&6
17117else $as_nop
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120int i;
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"
17123then :
17124  xorg_cv_cc_flag_unknown_warning_option=yes
17125else $as_nop
17126  xorg_cv_cc_flag_unknown_warning_option=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17129fi
17130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17133	CFLAGS="$xorg_testset_save_CFLAGS"
17134fi
17135
17136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17139	fi
17140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17144then :
17145  printf %s "(cached) " >&6
17146else $as_nop
17147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h.  */
17149int i;
17150_ACEOF
17151if ac_fn_c_try_compile "$LINENO"
17152then :
17153  xorg_cv_cc_flag_unused_command_line_argument=yes
17154else $as_nop
17155  xorg_cv_cc_flag_unused_command_line_argument=no
17156fi
17157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17158fi
17159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17162	CFLAGS="$xorg_testset_save_CFLAGS"
17163fi
17164
17165found="no"
17166
17167	if test $found = "no" ; then
17168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170		fi
17171
17172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17174		fi
17175
17176		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17177
17178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17179printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17180		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17181		if eval test \${$cacheid+y}
17182then :
17183  printf %s "(cached) " >&6
17184else $as_nop
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188int
17189main (void)
17190{
17191
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_link "$LINENO"
17197then :
17198  eval $cacheid=yes
17199else $as_nop
17200  eval $cacheid=no
17201fi
17202rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203    conftest$ac_exeext conftest.$ac_ext
17204fi
17205
17206
17207		CFLAGS="$xorg_testset_save_CFLAGS"
17208
17209		eval supported=\$$cacheid
17210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17211printf "%s\n" "$supported" >&6; }
17212		if test "$supported" = "yes" ; then
17213			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17214			found="yes"
17215		fi
17216	fi
17217
17218 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17219else
17220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
17221printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235xorg_testset_save_CFLAGS="$CFLAGS"
17236
17237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17241if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17242then :
17243  printf %s "(cached) " >&6
17244else $as_nop
17245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247int i;
17248_ACEOF
17249if ac_fn_c_try_compile "$LINENO"
17250then :
17251  xorg_cv_cc_flag_unknown_warning_option=yes
17252else $as_nop
17253  xorg_cv_cc_flag_unknown_warning_option=no
17254fi
17255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17256fi
17257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17260	CFLAGS="$xorg_testset_save_CFLAGS"
17261fi
17262
17263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17266	fi
17267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17271then :
17272  printf %s "(cached) " >&6
17273else $as_nop
17274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275/* end confdefs.h.  */
17276int i;
17277_ACEOF
17278if ac_fn_c_try_compile "$LINENO"
17279then :
17280  xorg_cv_cc_flag_unused_command_line_argument=yes
17281else $as_nop
17282  xorg_cv_cc_flag_unused_command_line_argument=no
17283fi
17284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17285fi
17286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17289	CFLAGS="$xorg_testset_save_CFLAGS"
17290fi
17291
17292found="no"
17293
17294	if test $found = "no" ; then
17295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17297		fi
17298
17299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17301		fi
17302
17303		CFLAGS="$CFLAGS -Wimplicit"
17304
17305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17306printf %s "checking if $CC supports -Wimplicit... " >&6; }
17307		cacheid=xorg_cv_cc_flag__Wimplicit
17308		if eval test \${$cacheid+y}
17309then :
17310  printf %s "(cached) " >&6
17311else $as_nop
17312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313/* end confdefs.h.  */
17314int i;
17315int
17316main (void)
17317{
17318
17319  ;
17320  return 0;
17321}
17322_ACEOF
17323if ac_fn_c_try_link "$LINENO"
17324then :
17325  eval $cacheid=yes
17326else $as_nop
17327  eval $cacheid=no
17328fi
17329rm -f core conftest.err conftest.$ac_objext conftest.beam \
17330    conftest$ac_exeext conftest.$ac_ext
17331fi
17332
17333
17334		CFLAGS="$xorg_testset_save_CFLAGS"
17335
17336		eval supported=\$$cacheid
17337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17338printf "%s\n" "$supported" >&6; }
17339		if test "$supported" = "yes" ; then
17340			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17341			found="yes"
17342		fi
17343	fi
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359xorg_testset_save_CFLAGS="$CFLAGS"
17360
17361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17365if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17366then :
17367  printf %s "(cached) " >&6
17368else $as_nop
17369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370/* end confdefs.h.  */
17371int i;
17372_ACEOF
17373if ac_fn_c_try_compile "$LINENO"
17374then :
17375  xorg_cv_cc_flag_unknown_warning_option=yes
17376else $as_nop
17377  xorg_cv_cc_flag_unknown_warning_option=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17380fi
17381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17384	CFLAGS="$xorg_testset_save_CFLAGS"
17385fi
17386
17387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17390	fi
17391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17394if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17395then :
17396  printf %s "(cached) " >&6
17397else $as_nop
17398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399/* end confdefs.h.  */
17400int i;
17401_ACEOF
17402if ac_fn_c_try_compile "$LINENO"
17403then :
17404  xorg_cv_cc_flag_unused_command_line_argument=yes
17405else $as_nop
17406  xorg_cv_cc_flag_unused_command_line_argument=no
17407fi
17408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17409fi
17410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17413	CFLAGS="$xorg_testset_save_CFLAGS"
17414fi
17415
17416found="no"
17417
17418	if test $found = "no" ; then
17419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421		fi
17422
17423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17425		fi
17426
17427		CFLAGS="$CFLAGS -Wnonnull"
17428
17429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17430printf %s "checking if $CC supports -Wnonnull... " >&6; }
17431		cacheid=xorg_cv_cc_flag__Wnonnull
17432		if eval test \${$cacheid+y}
17433then :
17434  printf %s "(cached) " >&6
17435else $as_nop
17436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438int i;
17439int
17440main (void)
17441{
17442
17443  ;
17444  return 0;
17445}
17446_ACEOF
17447if ac_fn_c_try_link "$LINENO"
17448then :
17449  eval $cacheid=yes
17450else $as_nop
17451  eval $cacheid=no
17452fi
17453rm -f core conftest.err conftest.$ac_objext conftest.beam \
17454    conftest$ac_exeext conftest.$ac_ext
17455fi
17456
17457
17458		CFLAGS="$xorg_testset_save_CFLAGS"
17459
17460		eval supported=\$$cacheid
17461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17462printf "%s\n" "$supported" >&6; }
17463		if test "$supported" = "yes" ; then
17464			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17465			found="yes"
17466		fi
17467	fi
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483xorg_testset_save_CFLAGS="$CFLAGS"
17484
17485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17490then :
17491  printf %s "(cached) " >&6
17492else $as_nop
17493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494/* end confdefs.h.  */
17495int i;
17496_ACEOF
17497if ac_fn_c_try_compile "$LINENO"
17498then :
17499  xorg_cv_cc_flag_unknown_warning_option=yes
17500else $as_nop
17501  xorg_cv_cc_flag_unknown_warning_option=no
17502fi
17503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17504fi
17505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17508	CFLAGS="$xorg_testset_save_CFLAGS"
17509fi
17510
17511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17514	fi
17515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17519then :
17520  printf %s "(cached) " >&6
17521else $as_nop
17522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523/* end confdefs.h.  */
17524int i;
17525_ACEOF
17526if ac_fn_c_try_compile "$LINENO"
17527then :
17528  xorg_cv_cc_flag_unused_command_line_argument=yes
17529else $as_nop
17530  xorg_cv_cc_flag_unused_command_line_argument=no
17531fi
17532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17533fi
17534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17537	CFLAGS="$xorg_testset_save_CFLAGS"
17538fi
17539
17540found="no"
17541
17542	if test $found = "no" ; then
17543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17545		fi
17546
17547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17549		fi
17550
17551		CFLAGS="$CFLAGS -Winit-self"
17552
17553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17554printf %s "checking if $CC supports -Winit-self... " >&6; }
17555		cacheid=xorg_cv_cc_flag__Winit_self
17556		if eval test \${$cacheid+y}
17557then :
17558  printf %s "(cached) " >&6
17559else $as_nop
17560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561/* end confdefs.h.  */
17562int i;
17563int
17564main (void)
17565{
17566
17567  ;
17568  return 0;
17569}
17570_ACEOF
17571if ac_fn_c_try_link "$LINENO"
17572then :
17573  eval $cacheid=yes
17574else $as_nop
17575  eval $cacheid=no
17576fi
17577rm -f core conftest.err conftest.$ac_objext conftest.beam \
17578    conftest$ac_exeext conftest.$ac_ext
17579fi
17580
17581
17582		CFLAGS="$xorg_testset_save_CFLAGS"
17583
17584		eval supported=\$$cacheid
17585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17586printf "%s\n" "$supported" >&6; }
17587		if test "$supported" = "yes" ; then
17588			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17589			found="yes"
17590		fi
17591	fi
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607xorg_testset_save_CFLAGS="$CFLAGS"
17608
17609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17614then :
17615  printf %s "(cached) " >&6
17616else $as_nop
17617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619int i;
17620_ACEOF
17621if ac_fn_c_try_compile "$LINENO"
17622then :
17623  xorg_cv_cc_flag_unknown_warning_option=yes
17624else $as_nop
17625  xorg_cv_cc_flag_unknown_warning_option=no
17626fi
17627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17628fi
17629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17632	CFLAGS="$xorg_testset_save_CFLAGS"
17633fi
17634
17635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17638	fi
17639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17643then :
17644  printf %s "(cached) " >&6
17645else $as_nop
17646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648int i;
17649_ACEOF
17650if ac_fn_c_try_compile "$LINENO"
17651then :
17652  xorg_cv_cc_flag_unused_command_line_argument=yes
17653else $as_nop
17654  xorg_cv_cc_flag_unused_command_line_argument=no
17655fi
17656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17657fi
17658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17661	CFLAGS="$xorg_testset_save_CFLAGS"
17662fi
17663
17664found="no"
17665
17666	if test $found = "no" ; then
17667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17669		fi
17670
17671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17673		fi
17674
17675		CFLAGS="$CFLAGS -Wmain"
17676
17677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17678printf %s "checking if $CC supports -Wmain... " >&6; }
17679		cacheid=xorg_cv_cc_flag__Wmain
17680		if eval test \${$cacheid+y}
17681then :
17682  printf %s "(cached) " >&6
17683else $as_nop
17684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h.  */
17686int i;
17687int
17688main (void)
17689{
17690
17691  ;
17692  return 0;
17693}
17694_ACEOF
17695if ac_fn_c_try_link "$LINENO"
17696then :
17697  eval $cacheid=yes
17698else $as_nop
17699  eval $cacheid=no
17700fi
17701rm -f core conftest.err conftest.$ac_objext conftest.beam \
17702    conftest$ac_exeext conftest.$ac_ext
17703fi
17704
17705
17706		CFLAGS="$xorg_testset_save_CFLAGS"
17707
17708		eval supported=\$$cacheid
17709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17710printf "%s\n" "$supported" >&6; }
17711		if test "$supported" = "yes" ; then
17712			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17713			found="yes"
17714		fi
17715	fi
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731xorg_testset_save_CFLAGS="$CFLAGS"
17732
17733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17738then :
17739  printf %s "(cached) " >&6
17740else $as_nop
17741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743int i;
17744_ACEOF
17745if ac_fn_c_try_compile "$LINENO"
17746then :
17747  xorg_cv_cc_flag_unknown_warning_option=yes
17748else $as_nop
17749  xorg_cv_cc_flag_unknown_warning_option=no
17750fi
17751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17752fi
17753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17756	CFLAGS="$xorg_testset_save_CFLAGS"
17757fi
17758
17759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17762	fi
17763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17767then :
17768  printf %s "(cached) " >&6
17769else $as_nop
17770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771/* end confdefs.h.  */
17772int i;
17773_ACEOF
17774if ac_fn_c_try_compile "$LINENO"
17775then :
17776  xorg_cv_cc_flag_unused_command_line_argument=yes
17777else $as_nop
17778  xorg_cv_cc_flag_unused_command_line_argument=no
17779fi
17780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17781fi
17782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17785	CFLAGS="$xorg_testset_save_CFLAGS"
17786fi
17787
17788found="no"
17789
17790	if test $found = "no" ; then
17791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17793		fi
17794
17795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17797		fi
17798
17799		CFLAGS="$CFLAGS -Wmissing-braces"
17800
17801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17802printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17803		cacheid=xorg_cv_cc_flag__Wmissing_braces
17804		if eval test \${$cacheid+y}
17805then :
17806  printf %s "(cached) " >&6
17807else $as_nop
17808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809/* end confdefs.h.  */
17810int i;
17811int
17812main (void)
17813{
17814
17815  ;
17816  return 0;
17817}
17818_ACEOF
17819if ac_fn_c_try_link "$LINENO"
17820then :
17821  eval $cacheid=yes
17822else $as_nop
17823  eval $cacheid=no
17824fi
17825rm -f core conftest.err conftest.$ac_objext conftest.beam \
17826    conftest$ac_exeext conftest.$ac_ext
17827fi
17828
17829
17830		CFLAGS="$xorg_testset_save_CFLAGS"
17831
17832		eval supported=\$$cacheid
17833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17834printf "%s\n" "$supported" >&6; }
17835		if test "$supported" = "yes" ; then
17836			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17837			found="yes"
17838		fi
17839	fi
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855xorg_testset_save_CFLAGS="$CFLAGS"
17856
17857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17862then :
17863  printf %s "(cached) " >&6
17864else $as_nop
17865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866/* end confdefs.h.  */
17867int i;
17868_ACEOF
17869if ac_fn_c_try_compile "$LINENO"
17870then :
17871  xorg_cv_cc_flag_unknown_warning_option=yes
17872else $as_nop
17873  xorg_cv_cc_flag_unknown_warning_option=no
17874fi
17875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17876fi
17877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17878printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17880	CFLAGS="$xorg_testset_save_CFLAGS"
17881fi
17882
17883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886	fi
17887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17890if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17891then :
17892  printf %s "(cached) " >&6
17893else $as_nop
17894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* end confdefs.h.  */
17896int i;
17897_ACEOF
17898if ac_fn_c_try_compile "$LINENO"
17899then :
17900  xorg_cv_cc_flag_unused_command_line_argument=yes
17901else $as_nop
17902  xorg_cv_cc_flag_unused_command_line_argument=no
17903fi
17904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17905fi
17906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17909	CFLAGS="$xorg_testset_save_CFLAGS"
17910fi
17911
17912found="no"
17913
17914	if test $found = "no" ; then
17915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17917		fi
17918
17919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17921		fi
17922
17923		CFLAGS="$CFLAGS -Wsequence-point"
17924
17925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17926printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17927		cacheid=xorg_cv_cc_flag__Wsequence_point
17928		if eval test \${$cacheid+y}
17929then :
17930  printf %s "(cached) " >&6
17931else $as_nop
17932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933/* end confdefs.h.  */
17934int i;
17935int
17936main (void)
17937{
17938
17939  ;
17940  return 0;
17941}
17942_ACEOF
17943if ac_fn_c_try_link "$LINENO"
17944then :
17945  eval $cacheid=yes
17946else $as_nop
17947  eval $cacheid=no
17948fi
17949rm -f core conftest.err conftest.$ac_objext conftest.beam \
17950    conftest$ac_exeext conftest.$ac_ext
17951fi
17952
17953
17954		CFLAGS="$xorg_testset_save_CFLAGS"
17955
17956		eval supported=\$$cacheid
17957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17958printf "%s\n" "$supported" >&6; }
17959		if test "$supported" = "yes" ; then
17960			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17961			found="yes"
17962		fi
17963	fi
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979xorg_testset_save_CFLAGS="$CFLAGS"
17980
17981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17985if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17986then :
17987  printf %s "(cached) " >&6
17988else $as_nop
17989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990/* end confdefs.h.  */
17991int i;
17992_ACEOF
17993if ac_fn_c_try_compile "$LINENO"
17994then :
17995  xorg_cv_cc_flag_unknown_warning_option=yes
17996else $as_nop
17997  xorg_cv_cc_flag_unknown_warning_option=no
17998fi
17999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18000fi
18001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18004	CFLAGS="$xorg_testset_save_CFLAGS"
18005fi
18006
18007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010	fi
18011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18014if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18015then :
18016  printf %s "(cached) " >&6
18017else $as_nop
18018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020int i;
18021_ACEOF
18022if ac_fn_c_try_compile "$LINENO"
18023then :
18024  xorg_cv_cc_flag_unused_command_line_argument=yes
18025else $as_nop
18026  xorg_cv_cc_flag_unused_command_line_argument=no
18027fi
18028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18029fi
18030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18033	CFLAGS="$xorg_testset_save_CFLAGS"
18034fi
18035
18036found="no"
18037
18038	if test $found = "no" ; then
18039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18041		fi
18042
18043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18045		fi
18046
18047		CFLAGS="$CFLAGS -Wreturn-type"
18048
18049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18050printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18051		cacheid=xorg_cv_cc_flag__Wreturn_type
18052		if eval test \${$cacheid+y}
18053then :
18054  printf %s "(cached) " >&6
18055else $as_nop
18056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058int i;
18059int
18060main (void)
18061{
18062
18063  ;
18064  return 0;
18065}
18066_ACEOF
18067if ac_fn_c_try_link "$LINENO"
18068then :
18069  eval $cacheid=yes
18070else $as_nop
18071  eval $cacheid=no
18072fi
18073rm -f core conftest.err conftest.$ac_objext conftest.beam \
18074    conftest$ac_exeext conftest.$ac_ext
18075fi
18076
18077
18078		CFLAGS="$xorg_testset_save_CFLAGS"
18079
18080		eval supported=\$$cacheid
18081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18082printf "%s\n" "$supported" >&6; }
18083		if test "$supported" = "yes" ; then
18084			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18085			found="yes"
18086		fi
18087	fi
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103xorg_testset_save_CFLAGS="$CFLAGS"
18104
18105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18110then :
18111  printf %s "(cached) " >&6
18112else $as_nop
18113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114/* end confdefs.h.  */
18115int i;
18116_ACEOF
18117if ac_fn_c_try_compile "$LINENO"
18118then :
18119  xorg_cv_cc_flag_unknown_warning_option=yes
18120else $as_nop
18121  xorg_cv_cc_flag_unknown_warning_option=no
18122fi
18123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18124fi
18125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18128	CFLAGS="$xorg_testset_save_CFLAGS"
18129fi
18130
18131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18134	fi
18135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18139then :
18140  printf %s "(cached) " >&6
18141else $as_nop
18142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143/* end confdefs.h.  */
18144int i;
18145_ACEOF
18146if ac_fn_c_try_compile "$LINENO"
18147then :
18148  xorg_cv_cc_flag_unused_command_line_argument=yes
18149else $as_nop
18150  xorg_cv_cc_flag_unused_command_line_argument=no
18151fi
18152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18153fi
18154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18157	CFLAGS="$xorg_testset_save_CFLAGS"
18158fi
18159
18160found="no"
18161
18162	if test $found = "no" ; then
18163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18165		fi
18166
18167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18169		fi
18170
18171		CFLAGS="$CFLAGS -Wtrigraphs"
18172
18173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18174printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18175		cacheid=xorg_cv_cc_flag__Wtrigraphs
18176		if eval test \${$cacheid+y}
18177then :
18178  printf %s "(cached) " >&6
18179else $as_nop
18180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183int
18184main (void)
18185{
18186
18187  ;
18188  return 0;
18189}
18190_ACEOF
18191if ac_fn_c_try_link "$LINENO"
18192then :
18193  eval $cacheid=yes
18194else $as_nop
18195  eval $cacheid=no
18196fi
18197rm -f core conftest.err conftest.$ac_objext conftest.beam \
18198    conftest$ac_exeext conftest.$ac_ext
18199fi
18200
18201
18202		CFLAGS="$xorg_testset_save_CFLAGS"
18203
18204		eval supported=\$$cacheid
18205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18206printf "%s\n" "$supported" >&6; }
18207		if test "$supported" = "yes" ; then
18208			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18209			found="yes"
18210		fi
18211	fi
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227xorg_testset_save_CFLAGS="$CFLAGS"
18228
18229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18234then :
18235  printf %s "(cached) " >&6
18236else $as_nop
18237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238/* end confdefs.h.  */
18239int i;
18240_ACEOF
18241if ac_fn_c_try_compile "$LINENO"
18242then :
18243  xorg_cv_cc_flag_unknown_warning_option=yes
18244else $as_nop
18245  xorg_cv_cc_flag_unknown_warning_option=no
18246fi
18247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18248fi
18249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18252	CFLAGS="$xorg_testset_save_CFLAGS"
18253fi
18254
18255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18258	fi
18259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18262if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18263then :
18264  printf %s "(cached) " >&6
18265else $as_nop
18266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267/* end confdefs.h.  */
18268int i;
18269_ACEOF
18270if ac_fn_c_try_compile "$LINENO"
18271then :
18272  xorg_cv_cc_flag_unused_command_line_argument=yes
18273else $as_nop
18274  xorg_cv_cc_flag_unused_command_line_argument=no
18275fi
18276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18277fi
18278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18281	CFLAGS="$xorg_testset_save_CFLAGS"
18282fi
18283
18284found="no"
18285
18286	if test $found = "no" ; then
18287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18289		fi
18290
18291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18293		fi
18294
18295		CFLAGS="$CFLAGS -Warray-bounds"
18296
18297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18298printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18299		cacheid=xorg_cv_cc_flag__Warray_bounds
18300		if eval test \${$cacheid+y}
18301then :
18302  printf %s "(cached) " >&6
18303else $as_nop
18304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305/* end confdefs.h.  */
18306int i;
18307int
18308main (void)
18309{
18310
18311  ;
18312  return 0;
18313}
18314_ACEOF
18315if ac_fn_c_try_link "$LINENO"
18316then :
18317  eval $cacheid=yes
18318else $as_nop
18319  eval $cacheid=no
18320fi
18321rm -f core conftest.err conftest.$ac_objext conftest.beam \
18322    conftest$ac_exeext conftest.$ac_ext
18323fi
18324
18325
18326		CFLAGS="$xorg_testset_save_CFLAGS"
18327
18328		eval supported=\$$cacheid
18329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18330printf "%s\n" "$supported" >&6; }
18331		if test "$supported" = "yes" ; then
18332			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18333			found="yes"
18334		fi
18335	fi
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351xorg_testset_save_CFLAGS="$CFLAGS"
18352
18353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18357if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18358then :
18359  printf %s "(cached) " >&6
18360else $as_nop
18361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362/* end confdefs.h.  */
18363int i;
18364_ACEOF
18365if ac_fn_c_try_compile "$LINENO"
18366then :
18367  xorg_cv_cc_flag_unknown_warning_option=yes
18368else $as_nop
18369  xorg_cv_cc_flag_unknown_warning_option=no
18370fi
18371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18372fi
18373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18376	CFLAGS="$xorg_testset_save_CFLAGS"
18377fi
18378
18379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18382	fi
18383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18386if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18387then :
18388  printf %s "(cached) " >&6
18389else $as_nop
18390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391/* end confdefs.h.  */
18392int i;
18393_ACEOF
18394if ac_fn_c_try_compile "$LINENO"
18395then :
18396  xorg_cv_cc_flag_unused_command_line_argument=yes
18397else $as_nop
18398  xorg_cv_cc_flag_unused_command_line_argument=no
18399fi
18400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18401fi
18402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18405	CFLAGS="$xorg_testset_save_CFLAGS"
18406fi
18407
18408found="no"
18409
18410	if test $found = "no" ; then
18411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18413		fi
18414
18415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18417		fi
18418
18419		CFLAGS="$CFLAGS -Wwrite-strings"
18420
18421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18422printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18423		cacheid=xorg_cv_cc_flag__Wwrite_strings
18424		if eval test \${$cacheid+y}
18425then :
18426  printf %s "(cached) " >&6
18427else $as_nop
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430int i;
18431int
18432main (void)
18433{
18434
18435  ;
18436  return 0;
18437}
18438_ACEOF
18439if ac_fn_c_try_link "$LINENO"
18440then :
18441  eval $cacheid=yes
18442else $as_nop
18443  eval $cacheid=no
18444fi
18445rm -f core conftest.err conftest.$ac_objext conftest.beam \
18446    conftest$ac_exeext conftest.$ac_ext
18447fi
18448
18449
18450		CFLAGS="$xorg_testset_save_CFLAGS"
18451
18452		eval supported=\$$cacheid
18453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18454printf "%s\n" "$supported" >&6; }
18455		if test "$supported" = "yes" ; then
18456			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18457			found="yes"
18458		fi
18459	fi
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475xorg_testset_save_CFLAGS="$CFLAGS"
18476
18477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18481if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18482then :
18483  printf %s "(cached) " >&6
18484else $as_nop
18485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486/* end confdefs.h.  */
18487int i;
18488_ACEOF
18489if ac_fn_c_try_compile "$LINENO"
18490then :
18491  xorg_cv_cc_flag_unknown_warning_option=yes
18492else $as_nop
18493  xorg_cv_cc_flag_unknown_warning_option=no
18494fi
18495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18496fi
18497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18500	CFLAGS="$xorg_testset_save_CFLAGS"
18501fi
18502
18503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506	fi
18507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18511then :
18512  printf %s "(cached) " >&6
18513else $as_nop
18514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515/* end confdefs.h.  */
18516int i;
18517_ACEOF
18518if ac_fn_c_try_compile "$LINENO"
18519then :
18520  xorg_cv_cc_flag_unused_command_line_argument=yes
18521else $as_nop
18522  xorg_cv_cc_flag_unused_command_line_argument=no
18523fi
18524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18525fi
18526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18529	CFLAGS="$xorg_testset_save_CFLAGS"
18530fi
18531
18532found="no"
18533
18534	if test $found = "no" ; then
18535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18537		fi
18538
18539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18541		fi
18542
18543		CFLAGS="$CFLAGS -Waddress"
18544
18545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18546printf %s "checking if $CC supports -Waddress... " >&6; }
18547		cacheid=xorg_cv_cc_flag__Waddress
18548		if eval test \${$cacheid+y}
18549then :
18550  printf %s "(cached) " >&6
18551else $as_nop
18552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553/* end confdefs.h.  */
18554int i;
18555int
18556main (void)
18557{
18558
18559  ;
18560  return 0;
18561}
18562_ACEOF
18563if ac_fn_c_try_link "$LINENO"
18564then :
18565  eval $cacheid=yes
18566else $as_nop
18567  eval $cacheid=no
18568fi
18569rm -f core conftest.err conftest.$ac_objext conftest.beam \
18570    conftest$ac_exeext conftest.$ac_ext
18571fi
18572
18573
18574		CFLAGS="$xorg_testset_save_CFLAGS"
18575
18576		eval supported=\$$cacheid
18577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18578printf "%s\n" "$supported" >&6; }
18579		if test "$supported" = "yes" ; then
18580			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18581			found="yes"
18582		fi
18583	fi
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599xorg_testset_save_CFLAGS="$CFLAGS"
18600
18601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18605if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18606then :
18607  printf %s "(cached) " >&6
18608else $as_nop
18609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611int i;
18612_ACEOF
18613if ac_fn_c_try_compile "$LINENO"
18614then :
18615  xorg_cv_cc_flag_unknown_warning_option=yes
18616else $as_nop
18617  xorg_cv_cc_flag_unknown_warning_option=no
18618fi
18619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18620fi
18621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18624	CFLAGS="$xorg_testset_save_CFLAGS"
18625fi
18626
18627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18630	fi
18631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18634if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18635then :
18636  printf %s "(cached) " >&6
18637else $as_nop
18638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639/* end confdefs.h.  */
18640int i;
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"
18643then :
18644  xorg_cv_cc_flag_unused_command_line_argument=yes
18645else $as_nop
18646  xorg_cv_cc_flag_unused_command_line_argument=no
18647fi
18648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18649fi
18650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18653	CFLAGS="$xorg_testset_save_CFLAGS"
18654fi
18655
18656found="no"
18657
18658	if test $found = "no" ; then
18659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18661		fi
18662
18663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18665		fi
18666
18667		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18668
18669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18670printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18671		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18672		if eval test \${$cacheid+y}
18673then :
18674  printf %s "(cached) " >&6
18675else $as_nop
18676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677/* end confdefs.h.  */
18678int i;
18679int
18680main (void)
18681{
18682
18683  ;
18684  return 0;
18685}
18686_ACEOF
18687if ac_fn_c_try_link "$LINENO"
18688then :
18689  eval $cacheid=yes
18690else $as_nop
18691  eval $cacheid=no
18692fi
18693rm -f core conftest.err conftest.$ac_objext conftest.beam \
18694    conftest$ac_exeext conftest.$ac_ext
18695fi
18696
18697
18698		CFLAGS="$xorg_testset_save_CFLAGS"
18699
18700		eval supported=\$$cacheid
18701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18702printf "%s\n" "$supported" >&6; }
18703		if test "$supported" = "yes" ; then
18704			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18705			found="yes"
18706		fi
18707	fi
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723xorg_testset_save_CFLAGS="$CFLAGS"
18724
18725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18729if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18730then :
18731  printf %s "(cached) " >&6
18732else $as_nop
18733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734/* end confdefs.h.  */
18735int i;
18736_ACEOF
18737if ac_fn_c_try_compile "$LINENO"
18738then :
18739  xorg_cv_cc_flag_unknown_warning_option=yes
18740else $as_nop
18741  xorg_cv_cc_flag_unknown_warning_option=no
18742fi
18743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18744fi
18745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18748	CFLAGS="$xorg_testset_save_CFLAGS"
18749fi
18750
18751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18754	fi
18755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18758if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18759then :
18760  printf %s "(cached) " >&6
18761else $as_nop
18762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763/* end confdefs.h.  */
18764int i;
18765_ACEOF
18766if ac_fn_c_try_compile "$LINENO"
18767then :
18768  xorg_cv_cc_flag_unused_command_line_argument=yes
18769else $as_nop
18770  xorg_cv_cc_flag_unused_command_line_argument=no
18771fi
18772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18773fi
18774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18777	CFLAGS="$xorg_testset_save_CFLAGS"
18778fi
18779
18780found="no"
18781
18782	if test $found = "no" ; then
18783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18785		fi
18786
18787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18789		fi
18790
18791		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18792
18793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18794printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18795		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18796		if eval test \${$cacheid+y}
18797then :
18798  printf %s "(cached) " >&6
18799else $as_nop
18800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801/* end confdefs.h.  */
18802int i;
18803int
18804main (void)
18805{
18806
18807  ;
18808  return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_link "$LINENO"
18812then :
18813  eval $cacheid=yes
18814else $as_nop
18815  eval $cacheid=no
18816fi
18817rm -f core conftest.err conftest.$ac_objext conftest.beam \
18818    conftest$ac_exeext conftest.$ac_ext
18819fi
18820
18821
18822		CFLAGS="$xorg_testset_save_CFLAGS"
18823
18824		eval supported=\$$cacheid
18825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18826printf "%s\n" "$supported" >&6; }
18827		if test "$supported" = "yes" ; then
18828			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18829			found="yes"
18830		fi
18831	fi
18832
18833
18834fi
18835
18836
18837
18838
18839
18840
18841
18842		CWARNFLAGS="$BASE_CFLAGS"
18843		if  test "x$GCC" = xyes ; then
18844		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18845		fi
18846
18847
18848
18849
18850
18851
18852
18853
18854# Check whether --enable-strict-compilation was given.
18855if test ${enable_strict_compilation+y}
18856then :
18857  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18858else $as_nop
18859  STRICT_COMPILE=no
18860fi
18861
18862
18863
18864
18865
18866
18867STRICT_CFLAGS=""
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881xorg_testset_save_CFLAGS="$CFLAGS"
18882
18883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18888then :
18889  printf %s "(cached) " >&6
18890else $as_nop
18891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892/* end confdefs.h.  */
18893int i;
18894_ACEOF
18895if ac_fn_c_try_compile "$LINENO"
18896then :
18897  xorg_cv_cc_flag_unknown_warning_option=yes
18898else $as_nop
18899  xorg_cv_cc_flag_unknown_warning_option=no
18900fi
18901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18902fi
18903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18906	CFLAGS="$xorg_testset_save_CFLAGS"
18907fi
18908
18909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912	fi
18913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18916if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18917then :
18918  printf %s "(cached) " >&6
18919else $as_nop
18920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921/* end confdefs.h.  */
18922int i;
18923_ACEOF
18924if ac_fn_c_try_compile "$LINENO"
18925then :
18926  xorg_cv_cc_flag_unused_command_line_argument=yes
18927else $as_nop
18928  xorg_cv_cc_flag_unused_command_line_argument=no
18929fi
18930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18931fi
18932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18935	CFLAGS="$xorg_testset_save_CFLAGS"
18936fi
18937
18938found="no"
18939
18940	if test $found = "no" ; then
18941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18943		fi
18944
18945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18947		fi
18948
18949		CFLAGS="$CFLAGS -pedantic"
18950
18951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18952printf %s "checking if $CC supports -pedantic... " >&6; }
18953		cacheid=xorg_cv_cc_flag__pedantic
18954		if eval test \${$cacheid+y}
18955then :
18956  printf %s "(cached) " >&6
18957else $as_nop
18958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959/* end confdefs.h.  */
18960int i;
18961int
18962main (void)
18963{
18964
18965  ;
18966  return 0;
18967}
18968_ACEOF
18969if ac_fn_c_try_link "$LINENO"
18970then :
18971  eval $cacheid=yes
18972else $as_nop
18973  eval $cacheid=no
18974fi
18975rm -f core conftest.err conftest.$ac_objext conftest.beam \
18976    conftest$ac_exeext conftest.$ac_ext
18977fi
18978
18979
18980		CFLAGS="$xorg_testset_save_CFLAGS"
18981
18982		eval supported=\$$cacheid
18983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18984printf "%s\n" "$supported" >&6; }
18985		if test "$supported" = "yes" ; then
18986			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18987			found="yes"
18988		fi
18989	fi
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005xorg_testset_save_CFLAGS="$CFLAGS"
19006
19007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19012then :
19013  printf %s "(cached) " >&6
19014else $as_nop
19015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016/* end confdefs.h.  */
19017int i;
19018_ACEOF
19019if ac_fn_c_try_compile "$LINENO"
19020then :
19021  xorg_cv_cc_flag_unknown_warning_option=yes
19022else $as_nop
19023  xorg_cv_cc_flag_unknown_warning_option=no
19024fi
19025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19026fi
19027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19030	CFLAGS="$xorg_testset_save_CFLAGS"
19031fi
19032
19033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19036	fi
19037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19040if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19041then :
19042  printf %s "(cached) " >&6
19043else $as_nop
19044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045/* end confdefs.h.  */
19046int i;
19047_ACEOF
19048if ac_fn_c_try_compile "$LINENO"
19049then :
19050  xorg_cv_cc_flag_unused_command_line_argument=yes
19051else $as_nop
19052  xorg_cv_cc_flag_unused_command_line_argument=no
19053fi
19054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19055fi
19056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19059	CFLAGS="$xorg_testset_save_CFLAGS"
19060fi
19061
19062found="no"
19063
19064	if test $found = "no" ; then
19065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19067		fi
19068
19069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19071		fi
19072
19073		CFLAGS="$CFLAGS -Werror"
19074
19075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19076printf %s "checking if $CC supports -Werror... " >&6; }
19077		cacheid=xorg_cv_cc_flag__Werror
19078		if eval test \${$cacheid+y}
19079then :
19080  printf %s "(cached) " >&6
19081else $as_nop
19082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083/* end confdefs.h.  */
19084int i;
19085int
19086main (void)
19087{
19088
19089  ;
19090  return 0;
19091}
19092_ACEOF
19093if ac_fn_c_try_link "$LINENO"
19094then :
19095  eval $cacheid=yes
19096else $as_nop
19097  eval $cacheid=no
19098fi
19099rm -f core conftest.err conftest.$ac_objext conftest.beam \
19100    conftest$ac_exeext conftest.$ac_ext
19101fi
19102
19103
19104		CFLAGS="$xorg_testset_save_CFLAGS"
19105
19106		eval supported=\$$cacheid
19107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19108printf "%s\n" "$supported" >&6; }
19109		if test "$supported" = "yes" ; then
19110			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19111			found="yes"
19112		fi
19113	fi
19114
19115	if test $found = "no" ; then
19116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19118		fi
19119
19120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19122		fi
19123
19124		CFLAGS="$CFLAGS -errwarn"
19125
19126		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19127printf %s "checking if $CC supports -errwarn... " >&6; }
19128		cacheid=xorg_cv_cc_flag__errwarn
19129		if eval test \${$cacheid+y}
19130then :
19131  printf %s "(cached) " >&6
19132else $as_nop
19133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h.  */
19135int i;
19136int
19137main (void)
19138{
19139
19140  ;
19141  return 0;
19142}
19143_ACEOF
19144if ac_fn_c_try_link "$LINENO"
19145then :
19146  eval $cacheid=yes
19147else $as_nop
19148  eval $cacheid=no
19149fi
19150rm -f core conftest.err conftest.$ac_objext conftest.beam \
19151    conftest$ac_exeext conftest.$ac_ext
19152fi
19153
19154
19155		CFLAGS="$xorg_testset_save_CFLAGS"
19156
19157		eval supported=\$$cacheid
19158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19159printf "%s\n" "$supported" >&6; }
19160		if test "$supported" = "yes" ; then
19161			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19162			found="yes"
19163		fi
19164	fi
19165
19166
19167
19168# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19169# activate it with -Werror, so we add it here explicitly.
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183xorg_testset_save_CFLAGS="$CFLAGS"
19184
19185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19189if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19190then :
19191  printf %s "(cached) " >&6
19192else $as_nop
19193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194/* end confdefs.h.  */
19195int i;
19196_ACEOF
19197if ac_fn_c_try_compile "$LINENO"
19198then :
19199  xorg_cv_cc_flag_unknown_warning_option=yes
19200else $as_nop
19201  xorg_cv_cc_flag_unknown_warning_option=no
19202fi
19203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19204fi
19205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19208	CFLAGS="$xorg_testset_save_CFLAGS"
19209fi
19210
19211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19214	fi
19215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19218if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19219then :
19220  printf %s "(cached) " >&6
19221else $as_nop
19222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223/* end confdefs.h.  */
19224int i;
19225_ACEOF
19226if ac_fn_c_try_compile "$LINENO"
19227then :
19228  xorg_cv_cc_flag_unused_command_line_argument=yes
19229else $as_nop
19230  xorg_cv_cc_flag_unused_command_line_argument=no
19231fi
19232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19233fi
19234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19237	CFLAGS="$xorg_testset_save_CFLAGS"
19238fi
19239
19240found="no"
19241
19242	if test $found = "no" ; then
19243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19245		fi
19246
19247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19249		fi
19250
19251		CFLAGS="$CFLAGS -Werror=attributes"
19252
19253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19254printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19255		cacheid=xorg_cv_cc_flag__Werror_attributes
19256		if eval test \${$cacheid+y}
19257then :
19258  printf %s "(cached) " >&6
19259else $as_nop
19260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261/* end confdefs.h.  */
19262int i;
19263int
19264main (void)
19265{
19266
19267  ;
19268  return 0;
19269}
19270_ACEOF
19271if ac_fn_c_try_link "$LINENO"
19272then :
19273  eval $cacheid=yes
19274else $as_nop
19275  eval $cacheid=no
19276fi
19277rm -f core conftest.err conftest.$ac_objext conftest.beam \
19278    conftest$ac_exeext conftest.$ac_ext
19279fi
19280
19281
19282		CFLAGS="$xorg_testset_save_CFLAGS"
19283
19284		eval supported=\$$cacheid
19285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19286printf "%s\n" "$supported" >&6; }
19287		if test "$supported" = "yes" ; then
19288			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19289			found="yes"
19290		fi
19291	fi
19292
19293
19294
19295if test "x$STRICT_COMPILE" = "xyes"; then
19296    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19297    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19298fi
19299
19300
19301
19302
19303
19304
19305cat >>confdefs.h <<_ACEOF
19306#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19307_ACEOF
19308
19309	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19310	if test "x$PVM" = "x"; then
19311		PVM="0"
19312	fi
19313
19314printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19315
19316	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19317	if test "x$PVP" = "x"; then
19318		PVP="0"
19319	fi
19320
19321printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19322
19323
19324
19325CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19326mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19327|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19328touch \$(top_srcdir)/ChangeLog; \
19329echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19330
19331
19332
19333
19334macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19335INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19336mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19337|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19338touch \$(top_srcdir)/INSTALL; \
19339echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19340
19341
19342
19343
19344
19345
19346case $host_os in
19347    solaris*)
19348        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19349        # check for a man page file found in later versions that use
19350        # traditional section numbers instead
19351        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19352printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19353if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19354then :
19355  printf %s "(cached) " >&6
19356else $as_nop
19357  test "$cross_compiling" = yes &&
19358  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19359if test -r "/usr/share/man/man7/attributes.7"; then
19360  ac_cv_file__usr_share_man_man7_attributes_7=yes
19361else
19362  ac_cv_file__usr_share_man_man7_attributes_7=no
19363fi
19364fi
19365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19366printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19367if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19368then :
19369  SYSV_MAN_SECTIONS=false
19370else $as_nop
19371  SYSV_MAN_SECTIONS=true
19372fi
19373
19374        ;;
19375    *) SYSV_MAN_SECTIONS=false ;;
19376esac
19377
19378if test x$APP_MAN_SUFFIX = x    ; then
19379    APP_MAN_SUFFIX=1
19380fi
19381if test x$APP_MAN_DIR = x    ; then
19382    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19383fi
19384
19385if test x$LIB_MAN_SUFFIX = x    ; then
19386    LIB_MAN_SUFFIX=3
19387fi
19388if test x$LIB_MAN_DIR = x    ; then
19389    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19390fi
19391
19392if test x$FILE_MAN_SUFFIX = x    ; then
19393    case $SYSV_MAN_SECTIONS in
19394	true)				FILE_MAN_SUFFIX=4  ;;
19395	*)				FILE_MAN_SUFFIX=5  ;;
19396    esac
19397fi
19398if test x$FILE_MAN_DIR = x    ; then
19399    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19400fi
19401
19402if test x$MISC_MAN_SUFFIX = x    ; then
19403    case $SYSV_MAN_SECTIONS in
19404	true)				MISC_MAN_SUFFIX=5  ;;
19405	*)				MISC_MAN_SUFFIX=7  ;;
19406    esac
19407fi
19408if test x$MISC_MAN_DIR = x    ; then
19409    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19410fi
19411
19412if test x$DRIVER_MAN_SUFFIX = x    ; then
19413    case $SYSV_MAN_SECTIONS in
19414	true)				DRIVER_MAN_SUFFIX=7  ;;
19415	*)				DRIVER_MAN_SUFFIX=4  ;;
19416    esac
19417fi
19418if test x$DRIVER_MAN_DIR = x    ; then
19419    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19420fi
19421
19422if test x$ADMIN_MAN_SUFFIX = x    ; then
19423    case $SYSV_MAN_SECTIONS in
19424	true)				ADMIN_MAN_SUFFIX=1m ;;
19425	*)				ADMIN_MAN_SUFFIX=8  ;;
19426    esac
19427fi
19428if test x$ADMIN_MAN_DIR = x    ; then
19429    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19430fi
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446XORG_MAN_PAGE="X Version 11"
19447
19448MAN_SUBSTS="\
19449	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19450	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19451	-e 's|__xservername__|Xorg|g' \
19452	-e 's|__xconfigfile__|xorg.conf|g' \
19453	-e 's|__projectroot__|\$(prefix)|g' \
19454	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19455	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19456	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19457	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19458	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19459	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19460	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19461
19462
19463
19464# Check whether --enable-silent-rules was given.
19465if test ${enable_silent_rules+y}
19466then :
19467  enableval=$enable_silent_rules;
19468fi
19469
19470case $enable_silent_rules in # (((
19471  yes) AM_DEFAULT_VERBOSITY=0;;
19472   no) AM_DEFAULT_VERBOSITY=1;;
19473    *) AM_DEFAULT_VERBOSITY=0;;
19474esac
19475am_make=${MAKE-make}
19476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19477printf %s "checking whether $am_make supports nested variables... " >&6; }
19478if test ${am_cv_make_support_nested_variables+y}
19479then :
19480  printf %s "(cached) " >&6
19481else $as_nop
19482  if printf "%s\n" 'TRUE=$(BAR$(V))
19483BAR0=false
19484BAR1=true
19485V=1
19486am__doit:
19487	@$(TRUE)
19488.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19489  am_cv_make_support_nested_variables=yes
19490else
19491  am_cv_make_support_nested_variables=no
19492fi
19493fi
19494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19495printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19496if test $am_cv_make_support_nested_variables = yes; then
19497    AM_V='$(V)'
19498  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19499else
19500  AM_V=$AM_DEFAULT_VERBOSITY
19501  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19502fi
19503AM_BACKSLASH='\'
19504
19505
19506
19507
19508# Check whether --enable-specs was given.
19509if test ${enable_specs+y}
19510then :
19511  enableval=$enable_specs; build_specs=$enableval
19512else $as_nop
19513  build_specs=yes
19514fi
19515
19516
19517 if test x$build_specs = xyes; then
19518  ENABLE_SPECS_TRUE=
19519  ENABLE_SPECS_FALSE='#'
19520else
19521  ENABLE_SPECS_TRUE='#'
19522  ENABLE_SPECS_FALSE=
19523fi
19524
19525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19526printf %s "checking whether to build functional specifications... " >&6; }
19527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19528printf "%s\n" "$build_specs" >&6; }
19529
19530
19531
19532
19533
19534# Check whether --with-xmlto was given.
19535if test ${with_xmlto+y}
19536then :
19537  withval=$with_xmlto; use_xmlto=$withval
19538else $as_nop
19539  use_xmlto=auto
19540fi
19541
19542
19543
19544if test "x$use_xmlto" = x"auto"; then
19545   # Extract the first word of "xmlto", so it can be a program name with args.
19546set dummy xmlto; ac_word=$2
19547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19548printf %s "checking for $ac_word... " >&6; }
19549if test ${ac_cv_path_XMLTO+y}
19550then :
19551  printf %s "(cached) " >&6
19552else $as_nop
19553  case $XMLTO in
19554  [\\/]* | ?:[\\/]*)
19555  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19556  ;;
19557  *)
19558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559for as_dir in $PATH
19560do
19561  IFS=$as_save_IFS
19562  case $as_dir in #(((
19563    '') as_dir=./ ;;
19564    */) ;;
19565    *) as_dir=$as_dir/ ;;
19566  esac
19567    for ac_exec_ext in '' $ac_executable_extensions; do
19568  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19569    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19571    break 2
19572  fi
19573done
19574  done
19575IFS=$as_save_IFS
19576
19577  ;;
19578esac
19579fi
19580XMLTO=$ac_cv_path_XMLTO
19581if test -n "$XMLTO"; then
19582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19583printf "%s\n" "$XMLTO" >&6; }
19584else
19585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586printf "%s\n" "no" >&6; }
19587fi
19588
19589
19590   if test "x$XMLTO" = "x"; then
19591        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19592printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19593	have_xmlto=no
19594   else
19595        have_xmlto=yes
19596   fi
19597elif test "x$use_xmlto" = x"yes" ; then
19598   # Extract the first word of "xmlto", so it can be a program name with args.
19599set dummy xmlto; ac_word=$2
19600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19601printf %s "checking for $ac_word... " >&6; }
19602if test ${ac_cv_path_XMLTO+y}
19603then :
19604  printf %s "(cached) " >&6
19605else $as_nop
19606  case $XMLTO in
19607  [\\/]* | ?:[\\/]*)
19608  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19609  ;;
19610  *)
19611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19612for as_dir in $PATH
19613do
19614  IFS=$as_save_IFS
19615  case $as_dir in #(((
19616    '') as_dir=./ ;;
19617    */) ;;
19618    *) as_dir=$as_dir/ ;;
19619  esac
19620    for ac_exec_ext in '' $ac_executable_extensions; do
19621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19622    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19624    break 2
19625  fi
19626done
19627  done
19628IFS=$as_save_IFS
19629
19630  ;;
19631esac
19632fi
19633XMLTO=$ac_cv_path_XMLTO
19634if test -n "$XMLTO"; then
19635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19636printf "%s\n" "$XMLTO" >&6; }
19637else
19638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19639printf "%s\n" "no" >&6; }
19640fi
19641
19642
19643   if test "x$XMLTO" = "x"; then
19644        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19645   fi
19646   have_xmlto=yes
19647elif test "x$use_xmlto" = x"no" ; then
19648   if test "x$XMLTO" != "x"; then
19649      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19650printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19651   fi
19652   have_xmlto=no
19653else
19654   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19655fi
19656
19657# Test for a minimum version of xmlto, if provided.
19658if test "$have_xmlto" = yes; then
19659    # scrape the xmlto version
19660    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19661printf %s "checking the xmlto version... " >&6; }
19662    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19663    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19664printf "%s\n" "$xmlto_version" >&6; }
19665    as_arg_v1=$xmlto_version
19666as_arg_v2=0.0.22
19667awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19668case $? in #(
19669  1) :
19670    if test "x$use_xmlto" = xauto; then
19671            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19672printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19673            have_xmlto=no
19674        else
19675            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19676        fi ;; #(
19677  0) :
19678     ;; #(
19679  2) :
19680     ;; #(
19681  *) :
19682     ;;
19683esac
19684fi
19685
19686# Test for the ability of xmlto to generate a text target
19687#
19688# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19689# following test for empty XML docbook files.
19690# For compatibility reasons use the following empty XML docbook file and if
19691# it fails try it again with a non-empty XML file.
19692have_xmlto_text=no
19693cat > conftest.xml << "EOF"
19694EOF
19695if test "$have_xmlto" = yes
19696then :
19697  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19698then :
19699  have_xmlto_text=yes
19700else $as_nop
19701  # Try it again with a non-empty XML file.
19702              cat > conftest.xml << "EOF"
19703<x></x>
19704EOF
19705              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19706then :
19707  have_xmlto_text=yes
19708else $as_nop
19709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19710printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19711fi
19712fi
19713fi
19714rm -f conftest.xml
19715 if test $have_xmlto_text = yes; then
19716  HAVE_XMLTO_TEXT_TRUE=
19717  HAVE_XMLTO_TEXT_FALSE='#'
19718else
19719  HAVE_XMLTO_TEXT_TRUE='#'
19720  HAVE_XMLTO_TEXT_FALSE=
19721fi
19722
19723 if test "$have_xmlto" = yes; then
19724  HAVE_XMLTO_TRUE=
19725  HAVE_XMLTO_FALSE='#'
19726else
19727  HAVE_XMLTO_TRUE='#'
19728  HAVE_XMLTO_FALSE=
19729fi
19730
19731
19732
19733
19734
19735
19736# Check whether --with-fop was given.
19737if test ${with_fop+y}
19738then :
19739  withval=$with_fop; use_fop=$withval
19740else $as_nop
19741  use_fop=auto
19742fi
19743
19744
19745
19746if test "x$use_fop" = x"auto"; then
19747   # Extract the first word of "fop", so it can be a program name with args.
19748set dummy fop; ac_word=$2
19749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19750printf %s "checking for $ac_word... " >&6; }
19751if test ${ac_cv_path_FOP+y}
19752then :
19753  printf %s "(cached) " >&6
19754else $as_nop
19755  case $FOP in
19756  [\\/]* | ?:[\\/]*)
19757  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19758  ;;
19759  *)
19760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761for as_dir in $PATH
19762do
19763  IFS=$as_save_IFS
19764  case $as_dir in #(((
19765    '') as_dir=./ ;;
19766    */) ;;
19767    *) as_dir=$as_dir/ ;;
19768  esac
19769    for ac_exec_ext in '' $ac_executable_extensions; do
19770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19771    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19773    break 2
19774  fi
19775done
19776  done
19777IFS=$as_save_IFS
19778
19779  ;;
19780esac
19781fi
19782FOP=$ac_cv_path_FOP
19783if test -n "$FOP"; then
19784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19785printf "%s\n" "$FOP" >&6; }
19786else
19787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788printf "%s\n" "no" >&6; }
19789fi
19790
19791
19792   if test "x$FOP" = "x"; then
19793        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19794printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19795	have_fop=no
19796   else
19797        have_fop=yes
19798   fi
19799elif test "x$use_fop" = x"yes" ; then
19800   # Extract the first word of "fop", so it can be a program name with args.
19801set dummy fop; ac_word=$2
19802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19803printf %s "checking for $ac_word... " >&6; }
19804if test ${ac_cv_path_FOP+y}
19805then :
19806  printf %s "(cached) " >&6
19807else $as_nop
19808  case $FOP in
19809  [\\/]* | ?:[\\/]*)
19810  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19811  ;;
19812  *)
19813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19814for as_dir in $PATH
19815do
19816  IFS=$as_save_IFS
19817  case $as_dir in #(((
19818    '') as_dir=./ ;;
19819    */) ;;
19820    *) as_dir=$as_dir/ ;;
19821  esac
19822    for ac_exec_ext in '' $ac_executable_extensions; do
19823  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19824    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19826    break 2
19827  fi
19828done
19829  done
19830IFS=$as_save_IFS
19831
19832  ;;
19833esac
19834fi
19835FOP=$ac_cv_path_FOP
19836if test -n "$FOP"; then
19837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19838printf "%s\n" "$FOP" >&6; }
19839else
19840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841printf "%s\n" "no" >&6; }
19842fi
19843
19844
19845   if test "x$FOP" = "x"; then
19846        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19847   fi
19848   have_fop=yes
19849elif test "x$use_fop" = x"no" ; then
19850   if test "x$FOP" != "x"; then
19851      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19852printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19853   fi
19854   have_fop=no
19855else
19856   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19857fi
19858
19859# Test for a minimum version of fop, if provided.
19860
19861 if test "$have_fop" = yes; then
19862  HAVE_FOP_TRUE=
19863  HAVE_FOP_FALSE='#'
19864else
19865  HAVE_FOP_TRUE='#'
19866  HAVE_FOP_FALSE=
19867fi
19868
19869
19870
19871
19872# Preserves the interface, should it be implemented later
19873
19874
19875
19876# Check whether --with-xsltproc was given.
19877if test ${with_xsltproc+y}
19878then :
19879  withval=$with_xsltproc; use_xsltproc=$withval
19880else $as_nop
19881  use_xsltproc=auto
19882fi
19883
19884
19885
19886if test "x$use_xsltproc" = x"auto"; then
19887   # Extract the first word of "xsltproc", so it can be a program name with args.
19888set dummy xsltproc; ac_word=$2
19889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19890printf %s "checking for $ac_word... " >&6; }
19891if test ${ac_cv_path_XSLTPROC+y}
19892then :
19893  printf %s "(cached) " >&6
19894else $as_nop
19895  case $XSLTPROC in
19896  [\\/]* | ?:[\\/]*)
19897  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19898  ;;
19899  *)
19900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19901for as_dir in $PATH
19902do
19903  IFS=$as_save_IFS
19904  case $as_dir in #(((
19905    '') as_dir=./ ;;
19906    */) ;;
19907    *) as_dir=$as_dir/ ;;
19908  esac
19909    for ac_exec_ext in '' $ac_executable_extensions; do
19910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19911    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19913    break 2
19914  fi
19915done
19916  done
19917IFS=$as_save_IFS
19918
19919  ;;
19920esac
19921fi
19922XSLTPROC=$ac_cv_path_XSLTPROC
19923if test -n "$XSLTPROC"; then
19924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19925printf "%s\n" "$XSLTPROC" >&6; }
19926else
19927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928printf "%s\n" "no" >&6; }
19929fi
19930
19931
19932   if test "x$XSLTPROC" = "x"; then
19933        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19934printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19935	have_xsltproc=no
19936   else
19937        have_xsltproc=yes
19938   fi
19939elif test "x$use_xsltproc" = x"yes" ; then
19940   # Extract the first word of "xsltproc", so it can be a program name with args.
19941set dummy xsltproc; ac_word=$2
19942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19943printf %s "checking for $ac_word... " >&6; }
19944if test ${ac_cv_path_XSLTPROC+y}
19945then :
19946  printf %s "(cached) " >&6
19947else $as_nop
19948  case $XSLTPROC in
19949  [\\/]* | ?:[\\/]*)
19950  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19951  ;;
19952  *)
19953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954for as_dir in $PATH
19955do
19956  IFS=$as_save_IFS
19957  case $as_dir in #(((
19958    '') as_dir=./ ;;
19959    */) ;;
19960    *) as_dir=$as_dir/ ;;
19961  esac
19962    for ac_exec_ext in '' $ac_executable_extensions; do
19963  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19964    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19965    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19966    break 2
19967  fi
19968done
19969  done
19970IFS=$as_save_IFS
19971
19972  ;;
19973esac
19974fi
19975XSLTPROC=$ac_cv_path_XSLTPROC
19976if test -n "$XSLTPROC"; then
19977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19978printf "%s\n" "$XSLTPROC" >&6; }
19979else
19980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19981printf "%s\n" "no" >&6; }
19982fi
19983
19984
19985   if test "x$XSLTPROC" = "x"; then
19986        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19987   fi
19988   have_xsltproc=yes
19989elif test "x$use_xsltproc" = x"no" ; then
19990   if test "x$XSLTPROC" != "x"; then
19991      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19992printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19993   fi
19994   have_xsltproc=no
19995else
19996   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19997fi
19998
19999 if test "$have_xsltproc" = yes; then
20000  HAVE_XSLTPROC_TRUE=
20001  HAVE_XSLTPROC_FALSE='#'
20002else
20003  HAVE_XSLTPROC_TRUE='#'
20004  HAVE_XSLTPROC_FALSE=
20005fi
20006
20007
20008
20009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20010printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20011XORG_SGML_PATH=
20012if test -n "$PKG_CONFIG" && \
20013    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20014  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20015  ac_status=$?
20016  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20017  test $ac_status = 0; }; then
20018  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20019else
20020  :
20021
20022fi
20023
20024# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20025# the path and the name of the doc stylesheet
20026if test "x$XORG_SGML_PATH" != "x" ; then
20027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20028printf "%s\n" "$XORG_SGML_PATH" >&6; }
20029   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20030   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20031else
20032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20033printf "%s\n" "no" >&6; }
20034fi
20035
20036
20037
20038
20039 if test "x$XSL_STYLESHEET" != "x"; then
20040  HAVE_STYLESHEETS_TRUE=
20041  HAVE_STYLESHEETS_FALSE='#'
20042else
20043  HAVE_STYLESHEETS_TRUE='#'
20044  HAVE_STYLESHEETS_FALSE=
20045fi
20046
20047
20048
20049# Check whether --enable-malloc0returnsnull was given.
20050if test ${enable_malloc0returnsnull+y}
20051then :
20052  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20053else $as_nop
20054  MALLOC_ZERO_RETURNS_NULL=auto
20055fi
20056
20057
20058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
20059printf %s "checking whether malloc(0) returns NULL... " >&6; }
20060if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20061if test ${xorg_cv_malloc0_returns_null+y}
20062then :
20063  printf %s "(cached) " >&6
20064else $as_nop
20065  if test "$cross_compiling" = yes
20066then :
20067  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20069as_fn_error $? "cannot run test program while cross compiling
20070See \`config.log' for more details" "$LINENO" 5; }
20071else $as_nop
20072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073/* end confdefs.h.  */
20074
20075#include <stdlib.h>
20076
20077int
20078main (void)
20079{
20080
20081    char *m0, *r0, *c0, *p;
20082    m0 = malloc(0);
20083    p = malloc(10);
20084    r0 = realloc(p,0);
20085    c0 = calloc(0,10);
20086    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
20087
20088  ;
20089  return 0;
20090}
20091_ACEOF
20092if ac_fn_c_try_run "$LINENO"
20093then :
20094  xorg_cv_malloc0_returns_null=yes
20095else $as_nop
20096  xorg_cv_malloc0_returns_null=no
20097fi
20098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20099  conftest.$ac_objext conftest.beam conftest.$ac_ext
20100fi
20101
20102fi
20103
20104MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
20105fi
20106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20107printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20108
20109if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20110	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20111	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20112	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20113else
20114	MALLOC_ZERO_CFLAGS=""
20115	XMALLOC_ZERO_CFLAGS=""
20116	XTMALLOC_ZERO_CFLAGS=""
20117fi
20118
20119
20120
20121
20122
20123
20124# Determine .so library version per platform
20125# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
20126if test "x$XEXT_SOREV" = "x" ; then
20127    case $host_os in
20128	openbsd*)	XEXT_SOREV=8:0 		;;
20129	solaris*)       XEXT_SOREV=0 		;;
20130	*)              XEXT_SOREV=6:4:0 	;;
20131    esac
20132fi
20133
20134
20135# Obtain compiler/linker options for dependencies
20136
20137pkg_failed=no
20138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20139printf %s "checking for XEXT... " >&6; }
20140
20141if test -n "$XEXT_CFLAGS"; then
20142    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20143 elif test -n "$PKG_CONFIG"; then
20144    if test -n "$PKG_CONFIG" && \
20145    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5
20146  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5
20147  ac_status=$?
20148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149  test $ac_status = 0; }; then
20150  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null`
20151		      test "x$?" != "x0" && pkg_failed=yes
20152else
20153  pkg_failed=yes
20154fi
20155 else
20156    pkg_failed=untried
20157fi
20158if test -n "$XEXT_LIBS"; then
20159    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20160 elif test -n "$PKG_CONFIG"; then
20161    if test -n "$PKG_CONFIG" && \
20162    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5
20163  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5
20164  ac_status=$?
20165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20166  test $ac_status = 0; }; then
20167  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null`
20168		      test "x$?" != "x0" && pkg_failed=yes
20169else
20170  pkg_failed=yes
20171fi
20172 else
20173    pkg_failed=untried
20174fi
20175
20176
20177
20178if test $pkg_failed = yes; then
20179   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180printf "%s\n" "no" >&6; }
20181
20182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20183        _pkg_short_errors_supported=yes
20184else
20185        _pkg_short_errors_supported=no
20186fi
20187        if test $_pkg_short_errors_supported = yes; then
20188	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1`
20189        else
20190	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1`
20191        fi
20192	# Put the nasty error message in config.log where it belongs
20193	echo "$XEXT_PKG_ERRORS" >&5
20194
20195	as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99) were not met:
20196
20197$XEXT_PKG_ERRORS
20198
20199Consider adjusting the PKG_CONFIG_PATH environment variable if you
20200installed software in a non-standard prefix.
20201
20202Alternatively, you may set the environment variables XEXT_CFLAGS
20203and XEXT_LIBS to avoid the need to call pkg-config.
20204See the pkg-config man page for more details." "$LINENO" 5
20205elif test $pkg_failed = untried; then
20206     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207printf "%s\n" "no" >&6; }
20208	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20209printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20210as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20211is in your PATH or set the PKG_CONFIG environment variable to the full
20212path to pkg-config.
20213
20214Alternatively, you may set the environment variables XEXT_CFLAGS
20215and XEXT_LIBS to avoid the need to call pkg-config.
20216See the pkg-config man page for more details.
20217
20218To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20219See \`config.log' for more details" "$LINENO" 5; }
20220else
20221	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20222	XEXT_LIBS=$pkg_cv_XEXT_LIBS
20223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224printf "%s\n" "yes" >&6; }
20225
20226fi
20227
20228
20229
20230
20231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
20232printf %s "checking for __builtin_popcountl... " >&6; }
20233if test ${ax_cv_have___builtin_popcountl+y}
20234then :
20235  printf %s "(cached) " >&6
20236else $as_nop
20237
20238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239/* end confdefs.h.  */
20240
20241int
20242main (void)
20243{
20244
20245            __builtin_popcountl(0)
20246
20247  ;
20248  return 0;
20249}
20250_ACEOF
20251if ac_fn_c_try_link "$LINENO"
20252then :
20253  ax_cv_have___builtin_popcountl=yes
20254else $as_nop
20255  ax_cv_have___builtin_popcountl=no
20256fi
20257rm -f core conftest.err conftest.$ac_objext conftest.beam \
20258    conftest$ac_exeext conftest.$ac_ext
20259
20260fi
20261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
20262printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
20263
20264    if test yes = $ax_cv_have___builtin_popcountl
20265then :
20266
20267printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
20268
20269fi
20270
20271
20272
20273ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20274if test "x$ac_cv_func_reallocarray" = xyes
20275then :
20276  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20277
20278else $as_nop
20279  case " $LIBOBJS " in
20280  *" reallocarray.$ac_objext "* ) ;;
20281  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20282 ;;
20283esac
20284
20285fi
20286
20287
20288# Allow checking code with lint, sparse, etc.
20289
20290
20291
20292
20293
20294# Check whether --with-lint was given.
20295if test ${with_lint+y}
20296then :
20297  withval=$with_lint; use_lint=$withval
20298else $as_nop
20299  use_lint=no
20300fi
20301
20302
20303# Obtain platform specific info like program name and options
20304# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20305case $host_os in
20306  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20307	lint_name=splint
20308	lint_options="-badflag"
20309	;;
20310  *freebsd* | *netbsd*)
20311	lint_name=lint
20312	lint_options="-u -b"
20313	;;
20314  *solaris*)
20315	lint_name=lint
20316	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20317	;;
20318esac
20319
20320# Test for the presence of the program (either guessed by the code or spelled out by the user)
20321if test "x$use_lint" = x"yes" ; then
20322   # Extract the first word of "$lint_name", so it can be a program name with args.
20323set dummy $lint_name; ac_word=$2
20324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20325printf %s "checking for $ac_word... " >&6; }
20326if test ${ac_cv_path_LINT+y}
20327then :
20328  printf %s "(cached) " >&6
20329else $as_nop
20330  case $LINT in
20331  [\\/]* | ?:[\\/]*)
20332  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20333  ;;
20334  *)
20335  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20336for as_dir in $PATH
20337do
20338  IFS=$as_save_IFS
20339  case $as_dir in #(((
20340    '') as_dir=./ ;;
20341    */) ;;
20342    *) as_dir=$as_dir/ ;;
20343  esac
20344    for ac_exec_ext in '' $ac_executable_extensions; do
20345  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20346    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20347    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20348    break 2
20349  fi
20350done
20351  done
20352IFS=$as_save_IFS
20353
20354  ;;
20355esac
20356fi
20357LINT=$ac_cv_path_LINT
20358if test -n "$LINT"; then
20359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20360printf "%s\n" "$LINT" >&6; }
20361else
20362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20363printf "%s\n" "no" >&6; }
20364fi
20365
20366
20367   if test "x$LINT" = "x"; then
20368        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20369   fi
20370elif test "x$use_lint" = x"no" ; then
20371   if test "x$LINT" != "x"; then
20372      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20373printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20374   fi
20375else
20376   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20377fi
20378
20379# User supplied flags override default flags
20380if test "x$LINT_FLAGS" != "x"; then
20381   lint_options=$LINT_FLAGS
20382fi
20383
20384LINT_FLAGS=$lint_options
20385
20386 if test "x$LINT" != x; then
20387  LINT_TRUE=
20388  LINT_FALSE='#'
20389else
20390  LINT_TRUE='#'
20391  LINT_FALSE=
20392fi
20393
20394
20395
20396
20397
20398# Check whether --enable-lint-library was given.
20399if test ${enable_lint_library+y}
20400then :
20401  enableval=$enable_lint_library; make_lint_lib=$enableval
20402else $as_nop
20403  make_lint_lib=no
20404fi
20405
20406
20407if test "x$make_lint_lib" = x"yes" ; then
20408   LINTLIB=llib-lXext.ln
20409   if test "x$LINT" = "x"; then
20410        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20411   fi
20412elif test "x$make_lint_lib" != x"no" ; then
20413   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20414fi
20415
20416
20417 if test x$make_lint_lib != xno; then
20418  MAKE_LINT_LIB_TRUE=
20419  MAKE_LINT_LIB_FALSE='#'
20420else
20421  MAKE_LINT_LIB_TRUE='#'
20422  MAKE_LINT_LIB_FALSE=
20423fi
20424
20425
20426
20427
20428ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc"
20429
20430cat >confcache <<\_ACEOF
20431# This file is a shell script that caches the results of configure
20432# tests run on this system so they can be shared between configure
20433# scripts and configure runs, see configure's option --config-cache.
20434# It is not useful on other systems.  If it contains results you don't
20435# want to keep, you may remove or edit it.
20436#
20437# config.status only pays attention to the cache file if you give it
20438# the --recheck option to rerun configure.
20439#
20440# `ac_cv_env_foo' variables (set or unset) will be overridden when
20441# loading this file, other *unset* `ac_cv_foo' will be assigned the
20442# following values.
20443
20444_ACEOF
20445
20446# The following way of writing the cache mishandles newlines in values,
20447# but we know of no workaround that is simple, portable, and efficient.
20448# So, we kill variables containing newlines.
20449# Ultrix sh set writes to stderr and can't be redirected directly,
20450# and sets the high bit in the cache file unless we assign to the vars.
20451(
20452  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20453    eval ac_val=\$$ac_var
20454    case $ac_val in #(
20455    *${as_nl}*)
20456      case $ac_var in #(
20457      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20458printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20459      esac
20460      case $ac_var in #(
20461      _ | IFS | as_nl) ;; #(
20462      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20463      *) { eval $ac_var=; unset $ac_var;} ;;
20464      esac ;;
20465    esac
20466  done
20467
20468  (set) 2>&1 |
20469    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20470    *${as_nl}ac_space=\ *)
20471      # `set' does not quote correctly, so add quotes: double-quote
20472      # substitution turns \\\\ into \\, and sed turns \\ into \.
20473      sed -n \
20474	"s/'/'\\\\''/g;
20475	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20476      ;; #(
20477    *)
20478      # `set' quotes correctly as required by POSIX, so do not add quotes.
20479      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20480      ;;
20481    esac |
20482    sort
20483) |
20484  sed '
20485     /^ac_cv_env_/b end
20486     t clear
20487     :clear
20488     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20489     t end
20490     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20491     :end' >>confcache
20492if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20493  if test -w "$cache_file"; then
20494    if test "x$cache_file" != "x/dev/null"; then
20495      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20496printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20497      if test ! -f "$cache_file" || test -h "$cache_file"; then
20498	cat confcache >"$cache_file"
20499      else
20500        case $cache_file in #(
20501        */* | ?:*)
20502	  mv -f confcache "$cache_file"$$ &&
20503	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20504        *)
20505	  mv -f confcache "$cache_file" ;;
20506	esac
20507      fi
20508    fi
20509  else
20510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20511printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20512  fi
20513fi
20514rm -f confcache
20515
20516test "x$prefix" = xNONE && prefix=$ac_default_prefix
20517# Let make expand exec_prefix.
20518test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20519
20520DEFS=-DHAVE_CONFIG_H
20521
20522ac_libobjs=
20523ac_ltlibobjs=
20524U=
20525for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20526  # 1. Remove the extension, and $U if already installed.
20527  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20528  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20529  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20530  #    will be set to the directory where LIBOBJS objects are built.
20531  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20532  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20533done
20534LIBOBJS=$ac_libobjs
20535
20536LTLIBOBJS=$ac_ltlibobjs
20537
20538
20539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20540printf %s "checking that generated files are newer than configure... " >&6; }
20541   if test -n "$am_sleep_pid"; then
20542     # Hide warnings about reused PIDs.
20543     wait $am_sleep_pid 2>/dev/null
20544   fi
20545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20546printf "%s\n" "done" >&6; }
20547if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20548  as_fn_error $? "conditional \"AMDEP\" was never defined.
20549Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550fi
20551if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20552  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20553Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554fi
20555 if test -n "$EXEEXT"; then
20556  am__EXEEXT_TRUE=
20557  am__EXEEXT_FALSE='#'
20558else
20559  am__EXEEXT_TRUE='#'
20560  am__EXEEXT_FALSE=
20561fi
20562
20563if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20564  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20565Usually this means the macro was only invoked conditionally." "$LINENO" 5
20566fi
20567if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20568  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20569Usually this means the macro was only invoked conditionally." "$LINENO" 5
20570fi
20571if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20572  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20573Usually this means the macro was only invoked conditionally." "$LINENO" 5
20574fi
20575if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20576  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20577Usually this means the macro was only invoked conditionally." "$LINENO" 5
20578fi
20579if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20580  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20581Usually this means the macro was only invoked conditionally." "$LINENO" 5
20582fi
20583if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20584  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20585Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586fi
20587if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20588  as_fn_error $? "conditional \"LINT\" was never defined.
20589Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590fi
20591if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20592  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20593Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594fi
20595
20596: "${CONFIG_STATUS=./config.status}"
20597ac_write_fail=0
20598ac_clean_files_save=$ac_clean_files
20599ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20601printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20602as_write_fail=0
20603cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20604#! $SHELL
20605# Generated by $as_me.
20606# Run this file to recreate the current configuration.
20607# Compiler output produced by configure, useful for debugging
20608# configure, is in config.log if it exists.
20609
20610debug=false
20611ac_cs_recheck=false
20612ac_cs_silent=false
20613
20614SHELL=\${CONFIG_SHELL-$SHELL}
20615export SHELL
20616_ASEOF
20617cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20618## -------------------- ##
20619## M4sh Initialization. ##
20620## -------------------- ##
20621
20622# Be more Bourne compatible
20623DUALCASE=1; export DUALCASE # for MKS sh
20624as_nop=:
20625if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20626then :
20627  emulate sh
20628  NULLCMD=:
20629  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20630  # is contrary to our usage.  Disable this feature.
20631  alias -g '${1+"$@"}'='"$@"'
20632  setopt NO_GLOB_SUBST
20633else $as_nop
20634  case `(set -o) 2>/dev/null` in #(
20635  *posix*) :
20636    set -o posix ;; #(
20637  *) :
20638     ;;
20639esac
20640fi
20641
20642
20643
20644# Reset variables that may have inherited troublesome values from
20645# the environment.
20646
20647# IFS needs to be set, to space, tab, and newline, in precisely that order.
20648# (If _AS_PATH_WALK were called with IFS unset, it would have the
20649# side effect of setting IFS to empty, thus disabling word splitting.)
20650# Quoting is to prevent editors from complaining about space-tab.
20651as_nl='
20652'
20653export as_nl
20654IFS=" ""	$as_nl"
20655
20656PS1='$ '
20657PS2='> '
20658PS4='+ '
20659
20660# Ensure predictable behavior from utilities with locale-dependent output.
20661LC_ALL=C
20662export LC_ALL
20663LANGUAGE=C
20664export LANGUAGE
20665
20666# We cannot yet rely on "unset" to work, but we need these variables
20667# to be unset--not just set to an empty or harmless value--now, to
20668# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20669# also avoids known problems related to "unset" and subshell syntax
20670# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20671for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20672do eval test \${$as_var+y} \
20673  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20674done
20675
20676# Ensure that fds 0, 1, and 2 are open.
20677if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20678if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20679if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20680
20681# The user is always right.
20682if ${PATH_SEPARATOR+false} :; then
20683  PATH_SEPARATOR=:
20684  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20685    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20686      PATH_SEPARATOR=';'
20687  }
20688fi
20689
20690
20691# Find who we are.  Look in the path if we contain no directory separator.
20692as_myself=
20693case $0 in #((
20694  *[\\/]* ) as_myself=$0 ;;
20695  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20696for as_dir in $PATH
20697do
20698  IFS=$as_save_IFS
20699  case $as_dir in #(((
20700    '') as_dir=./ ;;
20701    */) ;;
20702    *) as_dir=$as_dir/ ;;
20703  esac
20704    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20705  done
20706IFS=$as_save_IFS
20707
20708     ;;
20709esac
20710# We did not find ourselves, most probably we were run as `sh COMMAND'
20711# in which case we are not to be found in the path.
20712if test "x$as_myself" = x; then
20713  as_myself=$0
20714fi
20715if test ! -f "$as_myself"; then
20716  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20717  exit 1
20718fi
20719
20720
20721
20722# as_fn_error STATUS ERROR [LINENO LOG_FD]
20723# ----------------------------------------
20724# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20725# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20726# script with STATUS, using 1 if that was 0.
20727as_fn_error ()
20728{
20729  as_status=$1; test $as_status -eq 0 && as_status=1
20730  if test "$4"; then
20731    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20733  fi
20734  printf "%s\n" "$as_me: error: $2" >&2
20735  as_fn_exit $as_status
20736} # as_fn_error
20737
20738
20739
20740# as_fn_set_status STATUS
20741# -----------------------
20742# Set $? to STATUS, without forking.
20743as_fn_set_status ()
20744{
20745  return $1
20746} # as_fn_set_status
20747
20748# as_fn_exit STATUS
20749# -----------------
20750# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20751as_fn_exit ()
20752{
20753  set +e
20754  as_fn_set_status $1
20755  exit $1
20756} # as_fn_exit
20757
20758# as_fn_unset VAR
20759# ---------------
20760# Portably unset VAR.
20761as_fn_unset ()
20762{
20763  { eval $1=; unset $1;}
20764}
20765as_unset=as_fn_unset
20766
20767# as_fn_append VAR VALUE
20768# ----------------------
20769# Append the text in VALUE to the end of the definition contained in VAR. Take
20770# advantage of any shell optimizations that allow amortized linear growth over
20771# repeated appends, instead of the typical quadratic growth present in naive
20772# implementations.
20773if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20774then :
20775  eval 'as_fn_append ()
20776  {
20777    eval $1+=\$2
20778  }'
20779else $as_nop
20780  as_fn_append ()
20781  {
20782    eval $1=\$$1\$2
20783  }
20784fi # as_fn_append
20785
20786# as_fn_arith ARG...
20787# ------------------
20788# Perform arithmetic evaluation on the ARGs, and store the result in the
20789# global $as_val. Take advantage of shells that can avoid forks. The arguments
20790# must be portable across $(()) and expr.
20791if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20792then :
20793  eval 'as_fn_arith ()
20794  {
20795    as_val=$(( $* ))
20796  }'
20797else $as_nop
20798  as_fn_arith ()
20799  {
20800    as_val=`expr "$@" || test $? -eq 1`
20801  }
20802fi # as_fn_arith
20803
20804
20805if expr a : '\(a\)' >/dev/null 2>&1 &&
20806   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20807  as_expr=expr
20808else
20809  as_expr=false
20810fi
20811
20812if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20813  as_basename=basename
20814else
20815  as_basename=false
20816fi
20817
20818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20819  as_dirname=dirname
20820else
20821  as_dirname=false
20822fi
20823
20824as_me=`$as_basename -- "$0" ||
20825$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20826	 X"$0" : 'X\(//\)$' \| \
20827	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20828printf "%s\n" X/"$0" |
20829    sed '/^.*\/\([^/][^/]*\)\/*$/{
20830	    s//\1/
20831	    q
20832	  }
20833	  /^X\/\(\/\/\)$/{
20834	    s//\1/
20835	    q
20836	  }
20837	  /^X\/\(\/\).*/{
20838	    s//\1/
20839	    q
20840	  }
20841	  s/.*/./; q'`
20842
20843# Avoid depending upon Character Ranges.
20844as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20845as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20846as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20847as_cr_digits='0123456789'
20848as_cr_alnum=$as_cr_Letters$as_cr_digits
20849
20850
20851# Determine whether it's possible to make 'echo' print without a newline.
20852# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20853# for compatibility with existing Makefiles.
20854ECHO_C= ECHO_N= ECHO_T=
20855case `echo -n x` in #(((((
20856-n*)
20857  case `echo 'xy\c'` in
20858  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20859  xy)  ECHO_C='\c';;
20860  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20861       ECHO_T='	';;
20862  esac;;
20863*)
20864  ECHO_N='-n';;
20865esac
20866
20867# For backward compatibility with old third-party macros, we provide
20868# the shell variables $as_echo and $as_echo_n.  New code should use
20869# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20870as_echo='printf %s\n'
20871as_echo_n='printf %s'
20872
20873rm -f conf$$ conf$$.exe conf$$.file
20874if test -d conf$$.dir; then
20875  rm -f conf$$.dir/conf$$.file
20876else
20877  rm -f conf$$.dir
20878  mkdir conf$$.dir 2>/dev/null
20879fi
20880if (echo >conf$$.file) 2>/dev/null; then
20881  if ln -s conf$$.file conf$$ 2>/dev/null; then
20882    as_ln_s='ln -s'
20883    # ... but there are two gotchas:
20884    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20885    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20886    # In both cases, we have to default to `cp -pR'.
20887    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20888      as_ln_s='cp -pR'
20889  elif ln conf$$.file conf$$ 2>/dev/null; then
20890    as_ln_s=ln
20891  else
20892    as_ln_s='cp -pR'
20893  fi
20894else
20895  as_ln_s='cp -pR'
20896fi
20897rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20898rmdir conf$$.dir 2>/dev/null
20899
20900
20901# as_fn_mkdir_p
20902# -------------
20903# Create "$as_dir" as a directory, including parents if necessary.
20904as_fn_mkdir_p ()
20905{
20906
20907  case $as_dir in #(
20908  -*) as_dir=./$as_dir;;
20909  esac
20910  test -d "$as_dir" || eval $as_mkdir_p || {
20911    as_dirs=
20912    while :; do
20913      case $as_dir in #(
20914      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20915      *) as_qdir=$as_dir;;
20916      esac
20917      as_dirs="'$as_qdir' $as_dirs"
20918      as_dir=`$as_dirname -- "$as_dir" ||
20919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920	 X"$as_dir" : 'X\(//\)[^/]' \| \
20921	 X"$as_dir" : 'X\(//\)$' \| \
20922	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20923printf "%s\n" X"$as_dir" |
20924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20925	    s//\1/
20926	    q
20927	  }
20928	  /^X\(\/\/\)[^/].*/{
20929	    s//\1/
20930	    q
20931	  }
20932	  /^X\(\/\/\)$/{
20933	    s//\1/
20934	    q
20935	  }
20936	  /^X\(\/\).*/{
20937	    s//\1/
20938	    q
20939	  }
20940	  s/.*/./; q'`
20941      test -d "$as_dir" && break
20942    done
20943    test -z "$as_dirs" || eval "mkdir $as_dirs"
20944  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20945
20946
20947} # as_fn_mkdir_p
20948if mkdir -p . 2>/dev/null; then
20949  as_mkdir_p='mkdir -p "$as_dir"'
20950else
20951  test -d ./-p && rmdir ./-p
20952  as_mkdir_p=false
20953fi
20954
20955
20956# as_fn_executable_p FILE
20957# -----------------------
20958# Test if FILE is an executable regular file.
20959as_fn_executable_p ()
20960{
20961  test -f "$1" && test -x "$1"
20962} # as_fn_executable_p
20963as_test_x='test -x'
20964as_executable_p=as_fn_executable_p
20965
20966# Sed expression to map a string onto a valid CPP name.
20967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20968
20969# Sed expression to map a string onto a valid variable name.
20970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20971
20972
20973exec 6>&1
20974## ----------------------------------- ##
20975## Main body of $CONFIG_STATUS script. ##
20976## ----------------------------------- ##
20977_ASEOF
20978test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20979
20980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20981# Save the log message, to keep $0 and so on meaningful, and to
20982# report actual input values of CONFIG_FILES etc. instead of their
20983# values after options handling.
20984ac_log="
20985This file was extended by libXext $as_me 1.3.5, which was
20986generated by GNU Autoconf 2.71.  Invocation command line was
20987
20988  CONFIG_FILES    = $CONFIG_FILES
20989  CONFIG_HEADERS  = $CONFIG_HEADERS
20990  CONFIG_LINKS    = $CONFIG_LINKS
20991  CONFIG_COMMANDS = $CONFIG_COMMANDS
20992  $ $0 $@
20993
20994on `(hostname || uname -n) 2>/dev/null | sed 1q`
20995"
20996
20997_ACEOF
20998
20999case $ac_config_files in *"
21000"*) set x $ac_config_files; shift; ac_config_files=$*;;
21001esac
21002
21003case $ac_config_headers in *"
21004"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21005esac
21006
21007
21008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21009# Files that config.status was made for.
21010config_files="$ac_config_files"
21011config_headers="$ac_config_headers"
21012config_commands="$ac_config_commands"
21013
21014_ACEOF
21015
21016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21017ac_cs_usage="\
21018\`$as_me' instantiates files and other configuration actions
21019from templates according to the current configuration.  Unless the files
21020and actions are specified as TAGs, all are instantiated by default.
21021
21022Usage: $0 [OPTION]... [TAG]...
21023
21024  -h, --help       print this help, then exit
21025  -V, --version    print version number and configuration settings, then exit
21026      --config     print configuration, then exit
21027  -q, --quiet, --silent
21028                   do not print progress messages
21029  -d, --debug      don't remove temporary files
21030      --recheck    update $as_me by reconfiguring in the same conditions
21031      --file=FILE[:TEMPLATE]
21032                   instantiate the configuration file FILE
21033      --header=FILE[:TEMPLATE]
21034                   instantiate the configuration header FILE
21035
21036Configuration files:
21037$config_files
21038
21039Configuration headers:
21040$config_headers
21041
21042Configuration commands:
21043$config_commands
21044
21045Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>."
21046
21047_ACEOF
21048ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21049ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051ac_cs_config='$ac_cs_config_escaped'
21052ac_cs_version="\\
21053libXext config.status 1.3.5
21054configured by $0, generated by GNU Autoconf 2.71,
21055  with options \\"\$ac_cs_config\\"
21056
21057Copyright (C) 2021 Free Software Foundation, Inc.
21058This config.status script is free software; the Free Software Foundation
21059gives unlimited permission to copy, distribute and modify it."
21060
21061ac_pwd='$ac_pwd'
21062srcdir='$srcdir'
21063INSTALL='$INSTALL'
21064MKDIR_P='$MKDIR_P'
21065AWK='$AWK'
21066test -n "\$AWK" || AWK=awk
21067_ACEOF
21068
21069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21070# The default lists apply if the user does not specify any file.
21071ac_need_defaults=:
21072while test $# != 0
21073do
21074  case $1 in
21075  --*=?*)
21076    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21077    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21078    ac_shift=:
21079    ;;
21080  --*=)
21081    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21082    ac_optarg=
21083    ac_shift=:
21084    ;;
21085  *)
21086    ac_option=$1
21087    ac_optarg=$2
21088    ac_shift=shift
21089    ;;
21090  esac
21091
21092  case $ac_option in
21093  # Handling of the options.
21094  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21095    ac_cs_recheck=: ;;
21096  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21097    printf "%s\n" "$ac_cs_version"; exit ;;
21098  --config | --confi | --conf | --con | --co | --c )
21099    printf "%s\n" "$ac_cs_config"; exit ;;
21100  --debug | --debu | --deb | --de | --d | -d )
21101    debug=: ;;
21102  --file | --fil | --fi | --f )
21103    $ac_shift
21104    case $ac_optarg in
21105    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21106    '') as_fn_error $? "missing file argument" ;;
21107    esac
21108    as_fn_append CONFIG_FILES " '$ac_optarg'"
21109    ac_need_defaults=false;;
21110  --header | --heade | --head | --hea )
21111    $ac_shift
21112    case $ac_optarg in
21113    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21114    esac
21115    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21116    ac_need_defaults=false;;
21117  --he | --h)
21118    # Conflict between --help and --header
21119    as_fn_error $? "ambiguous option: \`$1'
21120Try \`$0 --help' for more information.";;
21121  --help | --hel | -h )
21122    printf "%s\n" "$ac_cs_usage"; exit ;;
21123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21124  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21125    ac_cs_silent=: ;;
21126
21127  # This is an error.
21128  -*) as_fn_error $? "unrecognized option: \`$1'
21129Try \`$0 --help' for more information." ;;
21130
21131  *) as_fn_append ac_config_targets " $1"
21132     ac_need_defaults=false ;;
21133
21134  esac
21135  shift
21136done
21137
21138ac_configure_extra_args=
21139
21140if $ac_cs_silent; then
21141  exec 6>/dev/null
21142  ac_configure_extra_args="$ac_configure_extra_args --silent"
21143fi
21144
21145_ACEOF
21146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147if \$ac_cs_recheck; then
21148  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21149  shift
21150  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21151  CONFIG_SHELL='$SHELL'
21152  export CONFIG_SHELL
21153  exec "\$@"
21154fi
21155
21156_ACEOF
21157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21158exec 5>>config.log
21159{
21160  echo
21161  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21162## Running $as_me. ##
21163_ASBOX
21164  printf "%s\n" "$ac_log"
21165} >&5
21166
21167_ACEOF
21168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21169#
21170# INIT-COMMANDS
21171#
21172AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21173
21174
21175# The HP-UX ksh and POSIX shell print the target directory to stdout
21176# if CDPATH is set.
21177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21178
21179sed_quote_subst='$sed_quote_subst'
21180double_quote_subst='$double_quote_subst'
21181delay_variable_subst='$delay_variable_subst'
21182macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21183macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21184enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21185enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21186pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21187enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21188shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21189SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21190ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21191PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21192host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21193host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21194host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21195build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21196build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21197build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21198SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21199Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21200GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21201EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21202FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21203LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21204NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21205LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21206max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21207ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21208exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21209lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21210lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21211lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21212lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21213lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21214reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21215reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21216FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21217OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21218deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21219file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21220file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21221want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21222DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21223sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21224AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21225lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21226AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21227archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21228STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21229RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21230old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21231old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21232old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21233lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21234CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21235CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21236compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21237GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21238lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21239lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21240lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21241lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21242lt_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"`'
21243lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21244nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21245lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21246lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21247objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21248MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21249lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21250lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21251lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21252lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21253lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21254need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21255MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21256DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21257NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21258LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21259OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21260OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21261libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21262shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21263extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21264archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21265enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21266export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21267whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21268compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21269old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21270old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21271archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21272archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21273module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21274module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21275with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21276allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21277no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21278hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21279hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21280hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21281hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21282hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21283hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21284hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21285inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21286link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21287always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21288export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21289exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21290include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21291prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21292postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21293file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21294variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21295need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21296need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21297version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21298runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21299shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21300shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21301libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21302library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21303soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21304install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21305postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21306postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21307finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21308finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21309hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21310sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21311configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21312configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21313hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21314enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21315enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21316enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21317old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21318striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21319
21320LTCC='$LTCC'
21321LTCFLAGS='$LTCFLAGS'
21322compiler='$compiler_DEFAULT'
21323
21324# A function that is used when there is no print builtin or printf.
21325func_fallback_echo ()
21326{
21327  eval 'cat <<_LTECHO_EOF
21328\$1
21329_LTECHO_EOF'
21330}
21331
21332# Quote evaled strings.
21333for var in SHELL \
21334ECHO \
21335PATH_SEPARATOR \
21336SED \
21337GREP \
21338EGREP \
21339FGREP \
21340LD \
21341NM \
21342LN_S \
21343lt_SP2NL \
21344lt_NL2SP \
21345reload_flag \
21346FILECMD \
21347OBJDUMP \
21348deplibs_check_method \
21349file_magic_cmd \
21350file_magic_glob \
21351want_nocaseglob \
21352DLLTOOL \
21353sharedlib_from_linklib_cmd \
21354AR \
21355archiver_list_spec \
21356STRIP \
21357RANLIB \
21358CC \
21359CFLAGS \
21360compiler \
21361lt_cv_sys_global_symbol_pipe \
21362lt_cv_sys_global_symbol_to_cdecl \
21363lt_cv_sys_global_symbol_to_import \
21364lt_cv_sys_global_symbol_to_c_name_address \
21365lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21366lt_cv_nm_interface \
21367nm_file_list_spec \
21368lt_cv_truncate_bin \
21369lt_prog_compiler_no_builtin_flag \
21370lt_prog_compiler_pic \
21371lt_prog_compiler_wl \
21372lt_prog_compiler_static \
21373lt_cv_prog_compiler_c_o \
21374need_locks \
21375MANIFEST_TOOL \
21376DSYMUTIL \
21377NMEDIT \
21378LIPO \
21379OTOOL \
21380OTOOL64 \
21381shrext_cmds \
21382export_dynamic_flag_spec \
21383whole_archive_flag_spec \
21384compiler_needs_object \
21385with_gnu_ld \
21386allow_undefined_flag \
21387no_undefined_flag \
21388hardcode_libdir_flag_spec \
21389hardcode_libdir_separator \
21390exclude_expsyms \
21391include_expsyms \
21392file_list_spec \
21393variables_saved_for_relink \
21394libname_spec \
21395library_names_spec \
21396soname_spec \
21397install_override_mode \
21398finish_eval \
21399old_striplib \
21400striplib; do
21401    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21402    *[\\\\\\\`\\"\\\$]*)
21403      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21404      ;;
21405    *)
21406      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21407      ;;
21408    esac
21409done
21410
21411# Double-quote double-evaled strings.
21412for var in reload_cmds \
21413old_postinstall_cmds \
21414old_postuninstall_cmds \
21415old_archive_cmds \
21416extract_expsyms_cmds \
21417old_archive_from_new_cmds \
21418old_archive_from_expsyms_cmds \
21419archive_cmds \
21420archive_expsym_cmds \
21421module_cmds \
21422module_expsym_cmds \
21423export_symbols_cmds \
21424prelink_cmds \
21425postlink_cmds \
21426postinstall_cmds \
21427postuninstall_cmds \
21428finish_cmds \
21429sys_lib_search_path_spec \
21430configure_time_dlsearch_path \
21431configure_time_lt_sys_library_path; do
21432    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21433    *[\\\\\\\`\\"\\\$]*)
21434      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21435      ;;
21436    *)
21437      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21438      ;;
21439    esac
21440done
21441
21442ac_aux_dir='$ac_aux_dir'
21443
21444# See if we are running on zsh, and set the options that allow our
21445# commands through without removal of \ escapes INIT.
21446if test -n "\${ZSH_VERSION+set}"; then
21447   setopt NO_GLOB_SUBST
21448fi
21449
21450
21451    PACKAGE='$PACKAGE'
21452    VERSION='$VERSION'
21453    RM='$RM'
21454    ofile='$ofile'
21455
21456
21457
21458
21459_ACEOF
21460
21461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21462
21463# Handling of arguments.
21464for ac_config_target in $ac_config_targets
21465do
21466  case $ac_config_target in
21467    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21468    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21469    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21470    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21471    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21472    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21473    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21474    "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;;
21475
21476  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21477  esac
21478done
21479
21480
21481# If the user did not use the arguments to specify the items to instantiate,
21482# then the envvar interface is used.  Set only those that are not.
21483# We use the long form for the default assignment because of an extremely
21484# bizarre bug on SunOS 4.1.3.
21485if $ac_need_defaults; then
21486  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21487  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21488  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21489fi
21490
21491# Have a temporary directory for convenience.  Make it in the build tree
21492# simply because there is no reason against having it here, and in addition,
21493# creating and moving files from /tmp can sometimes cause problems.
21494# Hook for its removal unless debugging.
21495# Note that there is a small window in which the directory will not be cleaned:
21496# after its creation but before its name has been assigned to `$tmp'.
21497$debug ||
21498{
21499  tmp= ac_tmp=
21500  trap 'exit_status=$?
21501  : "${ac_tmp:=$tmp}"
21502  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21503' 0
21504  trap 'as_fn_exit 1' 1 2 13 15
21505}
21506# Create a (secure) tmp directory for tmp files.
21507
21508{
21509  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21510  test -d "$tmp"
21511}  ||
21512{
21513  tmp=./conf$$-$RANDOM
21514  (umask 077 && mkdir "$tmp")
21515} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21516ac_tmp=$tmp
21517
21518# Set up the scripts for CONFIG_FILES section.
21519# No need to generate them if there are no CONFIG_FILES.
21520# This happens for instance with `./config.status config.h'.
21521if test -n "$CONFIG_FILES"; then
21522
21523
21524ac_cr=`echo X | tr X '\015'`
21525# On cygwin, bash can eat \r inside `` if the user requested igncr.
21526# But we know of no other shell where ac_cr would be empty at this
21527# point, so we can use a bashism as a fallback.
21528if test "x$ac_cr" = x; then
21529  eval ac_cr=\$\'\\r\'
21530fi
21531ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21532if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21533  ac_cs_awk_cr='\\r'
21534else
21535  ac_cs_awk_cr=$ac_cr
21536fi
21537
21538echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21539_ACEOF
21540
21541
21542{
21543  echo "cat >conf$$subs.awk <<_ACEOF" &&
21544  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21545  echo "_ACEOF"
21546} >conf$$subs.sh ||
21547  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21548ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21549ac_delim='%!_!# '
21550for ac_last_try in false false false false false :; do
21551  . ./conf$$subs.sh ||
21552    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21553
21554  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21555  if test $ac_delim_n = $ac_delim_num; then
21556    break
21557  elif $ac_last_try; then
21558    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21559  else
21560    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21561  fi
21562done
21563rm -f conf$$subs.sh
21564
21565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21566cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21567_ACEOF
21568sed -n '
21569h
21570s/^/S["/; s/!.*/"]=/
21571p
21572g
21573s/^[^!]*!//
21574:repl
21575t repl
21576s/'"$ac_delim"'$//
21577t delim
21578:nl
21579h
21580s/\(.\{148\}\)..*/\1/
21581t more1
21582s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21583p
21584n
21585b repl
21586:more1
21587s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21588p
21589g
21590s/.\{148\}//
21591t nl
21592:delim
21593h
21594s/\(.\{148\}\)..*/\1/
21595t more2
21596s/["\\]/\\&/g; s/^/"/; s/$/"/
21597p
21598b
21599:more2
21600s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21601p
21602g
21603s/.\{148\}//
21604t delim
21605' <conf$$subs.awk | sed '
21606/^[^""]/{
21607  N
21608  s/\n//
21609}
21610' >>$CONFIG_STATUS || ac_write_fail=1
21611rm -f conf$$subs.awk
21612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21613_ACAWK
21614cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21615  for (key in S) S_is_set[key] = 1
21616  FS = ""
21617
21618}
21619{
21620  line = $ 0
21621  nfields = split(line, field, "@")
21622  substed = 0
21623  len = length(field[1])
21624  for (i = 2; i < nfields; i++) {
21625    key = field[i]
21626    keylen = length(key)
21627    if (S_is_set[key]) {
21628      value = S[key]
21629      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21630      len += length(value) + length(field[++i])
21631      substed = 1
21632    } else
21633      len += 1 + keylen
21634  }
21635
21636  print line
21637}
21638
21639_ACAWK
21640_ACEOF
21641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21642if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21643  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21644else
21645  cat
21646fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21647  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21648_ACEOF
21649
21650# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21651# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21652# trailing colons and then remove the whole line if VPATH becomes empty
21653# (actually we leave an empty line to preserve line numbers).
21654if test "x$srcdir" = x.; then
21655  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21656h
21657s///
21658s/^/:/
21659s/[	 ]*$/:/
21660s/:\$(srcdir):/:/g
21661s/:\${srcdir}:/:/g
21662s/:@srcdir@:/:/g
21663s/^:*//
21664s/:*$//
21665x
21666s/\(=[	 ]*\).*/\1/
21667G
21668s/\n//
21669s/^[^=]*=[	 ]*$//
21670}'
21671fi
21672
21673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21674fi # test -n "$CONFIG_FILES"
21675
21676# Set up the scripts for CONFIG_HEADERS section.
21677# No need to generate them if there are no CONFIG_HEADERS.
21678# This happens for instance with `./config.status Makefile'.
21679if test -n "$CONFIG_HEADERS"; then
21680cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21681BEGIN {
21682_ACEOF
21683
21684# Transform confdefs.h into an awk script `defines.awk', embedded as
21685# here-document in config.status, that substitutes the proper values into
21686# config.h.in to produce config.h.
21687
21688# Create a delimiter string that does not exist in confdefs.h, to ease
21689# handling of long lines.
21690ac_delim='%!_!# '
21691for ac_last_try in false false :; do
21692  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21693  if test -z "$ac_tt"; then
21694    break
21695  elif $ac_last_try; then
21696    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21697  else
21698    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21699  fi
21700done
21701
21702# For the awk script, D is an array of macro values keyed by name,
21703# likewise P contains macro parameters if any.  Preserve backslash
21704# newline sequences.
21705
21706ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21707sed -n '
21708s/.\{148\}/&'"$ac_delim"'/g
21709t rset
21710:rset
21711s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21712t def
21713d
21714:def
21715s/\\$//
21716t bsnl
21717s/["\\]/\\&/g
21718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21719D["\1"]=" \3"/p
21720s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21721d
21722:bsnl
21723s/["\\]/\\&/g
21724s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21725D["\1"]=" \3\\\\\\n"\\/p
21726t cont
21727s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21728t cont
21729d
21730:cont
21731n
21732s/.\{148\}/&'"$ac_delim"'/g
21733t clear
21734:clear
21735s/\\$//
21736t bsnlc
21737s/["\\]/\\&/g; s/^/"/; s/$/"/p
21738d
21739:bsnlc
21740s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21741b cont
21742' <confdefs.h | sed '
21743s/'"$ac_delim"'/"\\\
21744"/g' >>$CONFIG_STATUS || ac_write_fail=1
21745
21746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21747  for (key in D) D_is_set[key] = 1
21748  FS = ""
21749}
21750/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21751  line = \$ 0
21752  split(line, arg, " ")
21753  if (arg[1] == "#") {
21754    defundef = arg[2]
21755    mac1 = arg[3]
21756  } else {
21757    defundef = substr(arg[1], 2)
21758    mac1 = arg[2]
21759  }
21760  split(mac1, mac2, "(") #)
21761  macro = mac2[1]
21762  prefix = substr(line, 1, index(line, defundef) - 1)
21763  if (D_is_set[macro]) {
21764    # Preserve the white space surrounding the "#".
21765    print prefix "define", macro P[macro] D[macro]
21766    next
21767  } else {
21768    # Replace #undef with comments.  This is necessary, for example,
21769    # in the case of _POSIX_SOURCE, which is predefined and required
21770    # on some systems where configure will not decide to define it.
21771    if (defundef == "undef") {
21772      print "/*", prefix defundef, macro, "*/"
21773      next
21774    }
21775  }
21776}
21777{ print }
21778_ACAWK
21779_ACEOF
21780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21781  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21782fi # test -n "$CONFIG_HEADERS"
21783
21784
21785eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21786shift
21787for ac_tag
21788do
21789  case $ac_tag in
21790  :[FHLC]) ac_mode=$ac_tag; continue;;
21791  esac
21792  case $ac_mode$ac_tag in
21793  :[FHL]*:*);;
21794  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21795  :[FH]-) ac_tag=-:-;;
21796  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21797  esac
21798  ac_save_IFS=$IFS
21799  IFS=:
21800  set x $ac_tag
21801  IFS=$ac_save_IFS
21802  shift
21803  ac_file=$1
21804  shift
21805
21806  case $ac_mode in
21807  :L) ac_source=$1;;
21808  :[FH])
21809    ac_file_inputs=
21810    for ac_f
21811    do
21812      case $ac_f in
21813      -) ac_f="$ac_tmp/stdin";;
21814      *) # Look for the file first in the build tree, then in the source tree
21815	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21816	 # because $ac_f cannot contain `:'.
21817	 test -f "$ac_f" ||
21818	   case $ac_f in
21819	   [\\/$]*) false;;
21820	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21821	   esac ||
21822	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21823      esac
21824      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21825      as_fn_append ac_file_inputs " '$ac_f'"
21826    done
21827
21828    # Let's still pretend it is `configure' which instantiates (i.e., don't
21829    # use $as_me), people would be surprised to read:
21830    #    /* config.h.  Generated by config.status.  */
21831    configure_input='Generated from '`
21832	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21833	`' by configure.'
21834    if test x"$ac_file" != x-; then
21835      configure_input="$ac_file.  $configure_input"
21836      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21837printf "%s\n" "$as_me: creating $ac_file" >&6;}
21838    fi
21839    # Neutralize special characters interpreted by sed in replacement strings.
21840    case $configure_input in #(
21841    *\&* | *\|* | *\\* )
21842       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21843       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21844    *) ac_sed_conf_input=$configure_input;;
21845    esac
21846
21847    case $ac_tag in
21848    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21849      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21850    esac
21851    ;;
21852  esac
21853
21854  ac_dir=`$as_dirname -- "$ac_file" ||
21855$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856	 X"$ac_file" : 'X\(//\)[^/]' \| \
21857	 X"$ac_file" : 'X\(//\)$' \| \
21858	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21859printf "%s\n" X"$ac_file" |
21860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21861	    s//\1/
21862	    q
21863	  }
21864	  /^X\(\/\/\)[^/].*/{
21865	    s//\1/
21866	    q
21867	  }
21868	  /^X\(\/\/\)$/{
21869	    s//\1/
21870	    q
21871	  }
21872	  /^X\(\/\).*/{
21873	    s//\1/
21874	    q
21875	  }
21876	  s/.*/./; q'`
21877  as_dir="$ac_dir"; as_fn_mkdir_p
21878  ac_builddir=.
21879
21880case "$ac_dir" in
21881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21882*)
21883  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21884  # A ".." for each directory in $ac_dir_suffix.
21885  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21886  case $ac_top_builddir_sub in
21887  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21888  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21889  esac ;;
21890esac
21891ac_abs_top_builddir=$ac_pwd
21892ac_abs_builddir=$ac_pwd$ac_dir_suffix
21893# for backward compatibility:
21894ac_top_builddir=$ac_top_build_prefix
21895
21896case $srcdir in
21897  .)  # We are building in place.
21898    ac_srcdir=.
21899    ac_top_srcdir=$ac_top_builddir_sub
21900    ac_abs_top_srcdir=$ac_pwd ;;
21901  [\\/]* | ?:[\\/]* )  # Absolute name.
21902    ac_srcdir=$srcdir$ac_dir_suffix;
21903    ac_top_srcdir=$srcdir
21904    ac_abs_top_srcdir=$srcdir ;;
21905  *) # Relative name.
21906    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21907    ac_top_srcdir=$ac_top_build_prefix$srcdir
21908    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21909esac
21910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21911
21912
21913  case $ac_mode in
21914  :F)
21915  #
21916  # CONFIG_FILE
21917  #
21918
21919  case $INSTALL in
21920  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21921  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21922  esac
21923  ac_MKDIR_P=$MKDIR_P
21924  case $MKDIR_P in
21925  [\\/$]* | ?:[\\/]* ) ;;
21926  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21927  esac
21928_ACEOF
21929
21930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21931# If the template does not know about datarootdir, expand it.
21932# FIXME: This hack should be removed a few years after 2.60.
21933ac_datarootdir_hack=; ac_datarootdir_seen=
21934ac_sed_dataroot='
21935/datarootdir/ {
21936  p
21937  q
21938}
21939/@datadir@/p
21940/@docdir@/p
21941/@infodir@/p
21942/@localedir@/p
21943/@mandir@/p'
21944case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21945*datarootdir*) ac_datarootdir_seen=yes;;
21946*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21948printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21949_ACEOF
21950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21951  ac_datarootdir_hack='
21952  s&@datadir@&$datadir&g
21953  s&@docdir@&$docdir&g
21954  s&@infodir@&$infodir&g
21955  s&@localedir@&$localedir&g
21956  s&@mandir@&$mandir&g
21957  s&\\\${datarootdir}&$datarootdir&g' ;;
21958esac
21959_ACEOF
21960
21961# Neutralize VPATH when `$srcdir' = `.'.
21962# Shell code in configure.ac might set extrasub.
21963# FIXME: do we really want to maintain this feature?
21964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21965ac_sed_extra="$ac_vpsub
21966$extrasub
21967_ACEOF
21968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21969:t
21970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21971s|@configure_input@|$ac_sed_conf_input|;t t
21972s&@top_builddir@&$ac_top_builddir_sub&;t t
21973s&@top_build_prefix@&$ac_top_build_prefix&;t t
21974s&@srcdir@&$ac_srcdir&;t t
21975s&@abs_srcdir@&$ac_abs_srcdir&;t t
21976s&@top_srcdir@&$ac_top_srcdir&;t t
21977s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21978s&@builddir@&$ac_builddir&;t t
21979s&@abs_builddir@&$ac_abs_builddir&;t t
21980s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21981s&@INSTALL@&$ac_INSTALL&;t t
21982s&@MKDIR_P@&$ac_MKDIR_P&;t t
21983$ac_datarootdir_hack
21984"
21985eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21986  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21987
21988test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21989  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21990  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21991      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21993which seems to be undefined.  Please make sure it is defined" >&5
21994printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21995which seems to be undefined.  Please make sure it is defined" >&2;}
21996
21997  rm -f "$ac_tmp/stdin"
21998  case $ac_file in
21999  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22000  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22001  esac \
22002  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22003 ;;
22004  :H)
22005  #
22006  # CONFIG_HEADER
22007  #
22008  if test x"$ac_file" != x-; then
22009    {
22010      printf "%s\n" "/* $configure_input  */" >&1 \
22011      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22012    } >"$ac_tmp/config.h" \
22013      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22014    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22015      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22016printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22017    else
22018      rm -f "$ac_file"
22019      mv "$ac_tmp/config.h" "$ac_file" \
22020	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22021    fi
22022  else
22023    printf "%s\n" "/* $configure_input  */" >&1 \
22024      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22025      || as_fn_error $? "could not create -" "$LINENO" 5
22026  fi
22027# Compute "$ac_file"'s index in $config_headers.
22028_am_arg="$ac_file"
22029_am_stamp_count=1
22030for _am_header in $config_headers :; do
22031  case $_am_header in
22032    $_am_arg | $_am_arg:* )
22033      break ;;
22034    * )
22035      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22036  esac
22037done
22038echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22039$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22040	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22041	 X"$_am_arg" : 'X\(//\)$' \| \
22042	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22043printf "%s\n" X"$_am_arg" |
22044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22045	    s//\1/
22046	    q
22047	  }
22048	  /^X\(\/\/\)[^/].*/{
22049	    s//\1/
22050	    q
22051	  }
22052	  /^X\(\/\/\)$/{
22053	    s//\1/
22054	    q
22055	  }
22056	  /^X\(\/\).*/{
22057	    s//\1/
22058	    q
22059	  }
22060	  s/.*/./; q'`/stamp-h$_am_stamp_count
22061 ;;
22062
22063  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22064printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22065 ;;
22066  esac
22067
22068
22069  case $ac_file$ac_mode in
22070    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22071  # Older Autoconf quotes --file arguments for eval, but not when files
22072  # are listed without --file.  Let's play safe and only enable the eval
22073  # if we detect the quoting.
22074  # TODO: see whether this extra hack can be removed once we start
22075  # requiring Autoconf 2.70 or later.
22076  case $CONFIG_FILES in #(
22077  *\'*) :
22078    eval set x "$CONFIG_FILES" ;; #(
22079  *) :
22080    set x $CONFIG_FILES ;; #(
22081  *) :
22082     ;;
22083esac
22084  shift
22085  # Used to flag and report bootstrapping failures.
22086  am_rc=0
22087  for am_mf
22088  do
22089    # Strip MF so we end up with the name of the file.
22090    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22091    # Check whether this is an Automake generated Makefile which includes
22092    # dependency-tracking related rules and includes.
22093    # Grep'ing the whole file directly is not great: AIX grep has a line
22094    # limit of 2048, but all sed's we know have understand at least 4000.
22095    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22096      || continue
22097    am_dirpart=`$as_dirname -- "$am_mf" ||
22098$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22099	 X"$am_mf" : 'X\(//\)[^/]' \| \
22100	 X"$am_mf" : 'X\(//\)$' \| \
22101	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22102printf "%s\n" X"$am_mf" |
22103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22104	    s//\1/
22105	    q
22106	  }
22107	  /^X\(\/\/\)[^/].*/{
22108	    s//\1/
22109	    q
22110	  }
22111	  /^X\(\/\/\)$/{
22112	    s//\1/
22113	    q
22114	  }
22115	  /^X\(\/\).*/{
22116	    s//\1/
22117	    q
22118	  }
22119	  s/.*/./; q'`
22120    am_filepart=`$as_basename -- "$am_mf" ||
22121$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22122	 X"$am_mf" : 'X\(//\)$' \| \
22123	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22124printf "%s\n" X/"$am_mf" |
22125    sed '/^.*\/\([^/][^/]*\)\/*$/{
22126	    s//\1/
22127	    q
22128	  }
22129	  /^X\/\(\/\/\)$/{
22130	    s//\1/
22131	    q
22132	  }
22133	  /^X\/\(\/\).*/{
22134	    s//\1/
22135	    q
22136	  }
22137	  s/.*/./; q'`
22138    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22139      && sed -e '/# am--include-marker/d' "$am_filepart" \
22140        | $MAKE -f - am--depfiles" >&5
22141   (cd "$am_dirpart" \
22142      && sed -e '/# am--include-marker/d' "$am_filepart" \
22143        | $MAKE -f - am--depfiles) >&5 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } || am_rc=$?
22147  done
22148  if test $am_rc -ne 0; then
22149    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22150printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22151as_fn_error $? "Something went wrong bootstrapping makefile fragments
22152    for automatic dependency tracking.  If GNU make was not used, consider
22153    re-running the configure script with MAKE=\"gmake\" (or whatever is
22154    necessary).  You can also try re-running configure with the
22155    '--disable-dependency-tracking' option to at least be able to build
22156    the package (albeit without support for automatic dependency tracking).
22157See \`config.log' for more details" "$LINENO" 5; }
22158  fi
22159  { am_dirpart=; unset am_dirpart;}
22160  { am_filepart=; unset am_filepart;}
22161  { am_mf=; unset am_mf;}
22162  { am_rc=; unset am_rc;}
22163  rm -f conftest-deps.mk
22164}
22165 ;;
22166    "libtool":C)
22167
22168    # See if we are running on zsh, and set the options that allow our
22169    # commands through without removal of \ escapes.
22170    if test -n "${ZSH_VERSION+set}"; then
22171      setopt NO_GLOB_SUBST
22172    fi
22173
22174    cfgfile=${ofile}T
22175    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22176    $RM "$cfgfile"
22177
22178    cat <<_LT_EOF >> "$cfgfile"
22179#! $SHELL
22180# Generated automatically by $as_me ($PACKAGE) $VERSION
22181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22182# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22183
22184# Provide generalized library-building support services.
22185# Written by Gordon Matzigkeit, 1996
22186
22187# Copyright (C) 2014 Free Software Foundation, Inc.
22188# This is free software; see the source for copying conditions.  There is NO
22189# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22190
22191# GNU Libtool is free software; you can redistribute it and/or modify
22192# it under the terms of the GNU General Public License as published by
22193# the Free Software Foundation; either version 2 of of the License, or
22194# (at your option) any later version.
22195#
22196# As a special exception to the GNU General Public License, if you
22197# distribute this file as part of a program or library that is built
22198# using GNU Libtool, you may include this file under the  same
22199# distribution terms that you use for the rest of that program.
22200#
22201# GNU Libtool is distributed in the hope that it will be useful, but
22202# WITHOUT ANY WARRANTY; without even the implied warranty of
22203# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22204# GNU General Public License for more details.
22205#
22206# You should have received a copy of the GNU General Public License
22207# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22208
22209
22210# The names of the tagged configurations supported by this script.
22211available_tags=''
22212
22213# Configured defaults for sys_lib_dlsearch_path munging.
22214: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22215
22216# ### BEGIN LIBTOOL CONFIG
22217
22218# Which release of libtool.m4 was used?
22219macro_version=$macro_version
22220macro_revision=$macro_revision
22221
22222# Whether or not to build shared libraries.
22223build_libtool_libs=$enable_shared
22224
22225# Whether or not to build static libraries.
22226build_old_libs=$enable_static
22227
22228# What type of objects to build.
22229pic_mode=$pic_mode
22230
22231# Whether or not to optimize for fast installation.
22232fast_install=$enable_fast_install
22233
22234# Shared archive member basename,for filename based shared library versioning on AIX.
22235shared_archive_member_spec=$shared_archive_member_spec
22236
22237# Shell to use when invoking shell scripts.
22238SHELL=$lt_SHELL
22239
22240# An echo program that protects backslashes.
22241ECHO=$lt_ECHO
22242
22243# The PATH separator for the build system.
22244PATH_SEPARATOR=$lt_PATH_SEPARATOR
22245
22246# The host system.
22247host_alias=$host_alias
22248host=$host
22249host_os=$host_os
22250
22251# The build system.
22252build_alias=$build_alias
22253build=$build
22254build_os=$build_os
22255
22256# A sed program that does not truncate output.
22257SED=$lt_SED
22258
22259# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22260Xsed="\$SED -e 1s/^X//"
22261
22262# A grep program that handles long lines.
22263GREP=$lt_GREP
22264
22265# An ERE matcher.
22266EGREP=$lt_EGREP
22267
22268# A literal string matcher.
22269FGREP=$lt_FGREP
22270
22271# A BSD- or MS-compatible name lister.
22272NM=$lt_NM
22273
22274# Whether we need soft or hard links.
22275LN_S=$lt_LN_S
22276
22277# What is the maximum length of a command?
22278max_cmd_len=$max_cmd_len
22279
22280# Object file suffix (normally "o").
22281objext=$ac_objext
22282
22283# Executable file suffix (normally "").
22284exeext=$exeext
22285
22286# whether the shell understands "unset".
22287lt_unset=$lt_unset
22288
22289# turn spaces into newlines.
22290SP2NL=$lt_lt_SP2NL
22291
22292# turn newlines into spaces.
22293NL2SP=$lt_lt_NL2SP
22294
22295# convert \$build file names to \$host format.
22296to_host_file_cmd=$lt_cv_to_host_file_cmd
22297
22298# convert \$build files to toolchain format.
22299to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22300
22301# A file(cmd) program that detects file types.
22302FILECMD=$lt_FILECMD
22303
22304# An object symbol dumper.
22305OBJDUMP=$lt_OBJDUMP
22306
22307# Method to check whether dependent libraries are shared objects.
22308deplibs_check_method=$lt_deplibs_check_method
22309
22310# Command to use when deplibs_check_method = "file_magic".
22311file_magic_cmd=$lt_file_magic_cmd
22312
22313# How to find potential files when deplibs_check_method = "file_magic".
22314file_magic_glob=$lt_file_magic_glob
22315
22316# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22317want_nocaseglob=$lt_want_nocaseglob
22318
22319# DLL creation program.
22320DLLTOOL=$lt_DLLTOOL
22321
22322# Command to associate shared and link libraries.
22323sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22324
22325# The archiver.
22326AR=$lt_AR
22327
22328# Flags to create an archive (by configure).
22329lt_ar_flags=$lt_ar_flags
22330
22331# Flags to create an archive.
22332AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22333
22334# How to feed a file listing to the archiver.
22335archiver_list_spec=$lt_archiver_list_spec
22336
22337# A symbol stripping program.
22338STRIP=$lt_STRIP
22339
22340# Commands used to install an old-style archive.
22341RANLIB=$lt_RANLIB
22342old_postinstall_cmds=$lt_old_postinstall_cmds
22343old_postuninstall_cmds=$lt_old_postuninstall_cmds
22344
22345# Whether to use a lock for old archive extraction.
22346lock_old_archive_extraction=$lock_old_archive_extraction
22347
22348# A C compiler.
22349LTCC=$lt_CC
22350
22351# LTCC compiler flags.
22352LTCFLAGS=$lt_CFLAGS
22353
22354# Take the output of nm and produce a listing of raw symbols and C names.
22355global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22356
22357# Transform the output of nm in a proper C declaration.
22358global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22359
22360# Transform the output of nm into a list of symbols to manually relocate.
22361global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22362
22363# Transform the output of nm in a C name address pair.
22364global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22365
22366# Transform the output of nm in a C name address pair when lib prefix is needed.
22367global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22368
22369# The name lister interface.
22370nm_interface=$lt_lt_cv_nm_interface
22371
22372# Specify filename containing input files for \$NM.
22373nm_file_list_spec=$lt_nm_file_list_spec
22374
22375# The root where to search for dependent libraries,and where our libraries should be installed.
22376lt_sysroot=$lt_sysroot
22377
22378# Command to truncate a binary pipe.
22379lt_truncate_bin=$lt_lt_cv_truncate_bin
22380
22381# The name of the directory that contains temporary libtool files.
22382objdir=$objdir
22383
22384# Used to examine libraries when file_magic_cmd begins with "file".
22385MAGIC_CMD=$MAGIC_CMD
22386
22387# Must we lock files when doing compilation?
22388need_locks=$lt_need_locks
22389
22390# Manifest tool.
22391MANIFEST_TOOL=$lt_MANIFEST_TOOL
22392
22393# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22394DSYMUTIL=$lt_DSYMUTIL
22395
22396# Tool to change global to local symbols on Mac OS X.
22397NMEDIT=$lt_NMEDIT
22398
22399# Tool to manipulate fat objects and archives on Mac OS X.
22400LIPO=$lt_LIPO
22401
22402# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22403OTOOL=$lt_OTOOL
22404
22405# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22406OTOOL64=$lt_OTOOL64
22407
22408# Old archive suffix (normally "a").
22409libext=$libext
22410
22411# Shared library suffix (normally ".so").
22412shrext_cmds=$lt_shrext_cmds
22413
22414# The commands to extract the exported symbol list from a shared archive.
22415extract_expsyms_cmds=$lt_extract_expsyms_cmds
22416
22417# Variables whose values should be saved in libtool wrapper scripts and
22418# restored at link time.
22419variables_saved_for_relink=$lt_variables_saved_for_relink
22420
22421# Do we need the "lib" prefix for modules?
22422need_lib_prefix=$need_lib_prefix
22423
22424# Do we need a version for libraries?
22425need_version=$need_version
22426
22427# Library versioning type.
22428version_type=$version_type
22429
22430# Shared library runtime path variable.
22431runpath_var=$runpath_var
22432
22433# Shared library path variable.
22434shlibpath_var=$shlibpath_var
22435
22436# Is shlibpath searched before the hard-coded library search path?
22437shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22438
22439# Format of library name prefix.
22440libname_spec=$lt_libname_spec
22441
22442# List of archive names.  First name is the real one, the rest are links.
22443# The last name is the one that the linker finds with -lNAME
22444library_names_spec=$lt_library_names_spec
22445
22446# The coded name of the library, if different from the real name.
22447soname_spec=$lt_soname_spec
22448
22449# Permission mode override for installation of shared libraries.
22450install_override_mode=$lt_install_override_mode
22451
22452# Command to use after installation of a shared archive.
22453postinstall_cmds=$lt_postinstall_cmds
22454
22455# Command to use after uninstallation of a shared archive.
22456postuninstall_cmds=$lt_postuninstall_cmds
22457
22458# Commands used to finish a libtool library installation in a directory.
22459finish_cmds=$lt_finish_cmds
22460
22461# As "finish_cmds", except a single script fragment to be evaled but
22462# not shown.
22463finish_eval=$lt_finish_eval
22464
22465# Whether we should hardcode library paths into libraries.
22466hardcode_into_libs=$hardcode_into_libs
22467
22468# Compile-time system search path for libraries.
22469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22470
22471# Detected run-time system search path for libraries.
22472sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22473
22474# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22475configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22476
22477# Whether dlopen is supported.
22478dlopen_support=$enable_dlopen
22479
22480# Whether dlopen of programs is supported.
22481dlopen_self=$enable_dlopen_self
22482
22483# Whether dlopen of statically linked programs is supported.
22484dlopen_self_static=$enable_dlopen_self_static
22485
22486# Commands to strip libraries.
22487old_striplib=$lt_old_striplib
22488striplib=$lt_striplib
22489
22490
22491# The linker used to build libraries.
22492LD=$lt_LD
22493
22494# How to create reloadable object files.
22495reload_flag=$lt_reload_flag
22496reload_cmds=$lt_reload_cmds
22497
22498# Commands used to build an old-style archive.
22499old_archive_cmds=$lt_old_archive_cmds
22500
22501# A language specific compiler.
22502CC=$lt_compiler
22503
22504# Is the compiler the GNU compiler?
22505with_gcc=$GCC
22506
22507# Compiler flag to turn off builtin functions.
22508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22509
22510# Additional compiler flags for building library objects.
22511pic_flag=$lt_lt_prog_compiler_pic
22512
22513# How to pass a linker flag through the compiler.
22514wl=$lt_lt_prog_compiler_wl
22515
22516# Compiler flag to prevent dynamic linking.
22517link_static_flag=$lt_lt_prog_compiler_static
22518
22519# Does compiler simultaneously support -c and -o options?
22520compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22521
22522# Whether or not to add -lc for building shared libraries.
22523build_libtool_need_lc=$archive_cmds_need_lc
22524
22525# Whether or not to disallow shared libs when runtime libs are static.
22526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22527
22528# Compiler flag to allow reflexive dlopens.
22529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22530
22531# Compiler flag to generate shared objects directly from archives.
22532whole_archive_flag_spec=$lt_whole_archive_flag_spec
22533
22534# Whether the compiler copes with passing no objects directly.
22535compiler_needs_object=$lt_compiler_needs_object
22536
22537# Create an old-style archive from a shared archive.
22538old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22539
22540# Create a temporary old-style archive to link instead of a shared archive.
22541old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22542
22543# Commands used to build a shared archive.
22544archive_cmds=$lt_archive_cmds
22545archive_expsym_cmds=$lt_archive_expsym_cmds
22546
22547# Commands used to build a loadable module if different from building
22548# a shared archive.
22549module_cmds=$lt_module_cmds
22550module_expsym_cmds=$lt_module_expsym_cmds
22551
22552# Whether we are building with GNU ld or not.
22553with_gnu_ld=$lt_with_gnu_ld
22554
22555# Flag that allows shared libraries with undefined symbols to be built.
22556allow_undefined_flag=$lt_allow_undefined_flag
22557
22558# Flag that enforces no undefined symbols.
22559no_undefined_flag=$lt_no_undefined_flag
22560
22561# Flag to hardcode \$libdir into a binary during linking.
22562# This must work even if \$libdir does not exist
22563hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22564
22565# Whether we need a single "-rpath" flag with a separated argument.
22566hardcode_libdir_separator=$lt_hardcode_libdir_separator
22567
22568# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22569# DIR into the resulting binary.
22570hardcode_direct=$hardcode_direct
22571
22572# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22573# DIR into the resulting binary and the resulting library dependency is
22574# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22575# library is relocated.
22576hardcode_direct_absolute=$hardcode_direct_absolute
22577
22578# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22579# into the resulting binary.
22580hardcode_minus_L=$hardcode_minus_L
22581
22582# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22583# into the resulting binary.
22584hardcode_shlibpath_var=$hardcode_shlibpath_var
22585
22586# Set to "yes" if building a shared library automatically hardcodes DIR
22587# into the library and all subsequent libraries and executables linked
22588# against it.
22589hardcode_automatic=$hardcode_automatic
22590
22591# Set to yes if linker adds runtime paths of dependent libraries
22592# to runtime path list.
22593inherit_rpath=$inherit_rpath
22594
22595# Whether libtool must link a program against all its dependency libraries.
22596link_all_deplibs=$link_all_deplibs
22597
22598# Set to "yes" if exported symbols are required.
22599always_export_symbols=$always_export_symbols
22600
22601# The commands to list exported symbols.
22602export_symbols_cmds=$lt_export_symbols_cmds
22603
22604# Symbols that should not be listed in the preloaded symbols.
22605exclude_expsyms=$lt_exclude_expsyms
22606
22607# Symbols that must always be exported.
22608include_expsyms=$lt_include_expsyms
22609
22610# Commands necessary for linking programs (against libraries) with templates.
22611prelink_cmds=$lt_prelink_cmds
22612
22613# Commands necessary for finishing linking programs.
22614postlink_cmds=$lt_postlink_cmds
22615
22616# Specify filename containing input files.
22617file_list_spec=$lt_file_list_spec
22618
22619# How to hardcode a shared library path into an executable.
22620hardcode_action=$hardcode_action
22621
22622# ### END LIBTOOL CONFIG
22623
22624_LT_EOF
22625
22626    cat <<'_LT_EOF' >> "$cfgfile"
22627
22628# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22629
22630# func_munge_path_list VARIABLE PATH
22631# -----------------------------------
22632# VARIABLE is name of variable containing _space_ separated list of
22633# directories to be munged by the contents of PATH, which is string
22634# having a format:
22635# "DIR[:DIR]:"
22636#       string "DIR[ DIR]" will be prepended to VARIABLE
22637# ":DIR[:DIR]"
22638#       string "DIR[ DIR]" will be appended to VARIABLE
22639# "DIRP[:DIRP]::[DIRA:]DIRA"
22640#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22641#       "DIRA[ DIRA]" will be appended to VARIABLE
22642# "DIR[:DIR]"
22643#       VARIABLE will be replaced by "DIR[ DIR]"
22644func_munge_path_list ()
22645{
22646    case x$2 in
22647    x)
22648        ;;
22649    *:)
22650        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22651        ;;
22652    x:*)
22653        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22654        ;;
22655    *::*)
22656        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22657        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22658        ;;
22659    *)
22660        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22661        ;;
22662    esac
22663}
22664
22665
22666# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22667func_cc_basename ()
22668{
22669    for cc_temp in $*""; do
22670      case $cc_temp in
22671        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22672        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22673        \-*) ;;
22674        *) break;;
22675      esac
22676    done
22677    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22678}
22679
22680
22681# ### END FUNCTIONS SHARED WITH CONFIGURE
22682
22683_LT_EOF
22684
22685  case $host_os in
22686  aix3*)
22687    cat <<\_LT_EOF >> "$cfgfile"
22688# AIX sometimes has problems with the GCC collect2 program.  For some
22689# reason, if we set the COLLECT_NAMES environment variable, the problems
22690# vanish in a puff of smoke.
22691if test set != "${COLLECT_NAMES+set}"; then
22692  COLLECT_NAMES=
22693  export COLLECT_NAMES
22694fi
22695_LT_EOF
22696    ;;
22697  esac
22698
22699
22700
22701ltmain=$ac_aux_dir/ltmain.sh
22702
22703
22704  # We use sed instead of cat because bash on DJGPP gets confused if
22705  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22706  # text mode, it properly converts lines to CR/LF.  This bash problem
22707  # is reportedly fixed, but why not run on old versions too?
22708  $SED '$q' "$ltmain" >> "$cfgfile" \
22709     || (rm -f "$cfgfile"; exit 1)
22710
22711   mv -f "$cfgfile" "$ofile" ||
22712    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22713  chmod +x "$ofile"
22714
22715 ;;
22716
22717  esac
22718done # for ac_tag
22719
22720
22721as_fn_exit 0
22722_ACEOF
22723ac_clean_files=$ac_clean_files_save
22724
22725test $ac_write_fail = 0 ||
22726  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22727
22728
22729# configure is writing to config.log, and then calls config.status.
22730# config.status does its own redirection, appending to config.log.
22731# Unfortunately, on DOS this fails, as config.log is still kept open
22732# by configure, so config.status won't be able to write to it; its
22733# output is simply discarded.  So we exec the FD to /dev/null,
22734# effectively closing config.log, so it can be properly (re)opened and
22735# appended to by config.status.  When coming back to configure, we
22736# need to make the FD available again.
22737if test "$no_create" != yes; then
22738  ac_cs_success=:
22739  ac_config_status_args=
22740  test "$silent" = yes &&
22741    ac_config_status_args="$ac_config_status_args --quiet"
22742  exec 5>/dev/null
22743  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22744  exec 5>>config.log
22745  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22746  # would make configure fail if this is the last instruction.
22747  $ac_cs_success || as_fn_exit 1
22748fi
22749if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22751printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22752fi
22753
22754
22755