configure revision d4a3aaf4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libX11 1.7.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/lib/libx11/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libX11'
653PACKAGE_TARNAME='libX11'
654PACKAGE_VERSION='1.7.0'
655PACKAGE_STRING='libX11 1.7.0'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/issues'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_header_list=
697ac_subst_vars='am__EXEEXT_FALSE
698am__EXEEXT_TRUE
699LTLIBOBJS
700XTMALLOC_ZERO_CFLAGS
701XMALLOC_ZERO_CFLAGS
702MALLOC_ZERO_CFLAGS
703XERRORDB
704XKEYSYMDB
705locales
706X11_LOCALEDIR
707XLOCALEDIR
708X11_LOCALELIBDIR
709XLOCALELIBDIR
710X11_LOCALEDATADIR
711XLOCALEDATADIR
712X11_LIBS
713X11_CFLAGS
714X11_LIBDIR
715X11_DATADIR
716MAKE_LINT_LIB_FALSE
717MAKE_LINT_LIB_TRUE
718LINTLIB
719LINT_FALSE
720LINT_TRUE
721LINT_FLAGS
722LINT
723XKBPROTO_REQUIRES
724XKB_FALSE
725XKB_TRUE
726BIGFONT_LIBS
727BIGFONT_CFLAGS
728XLOCALE_FALSE
729XLOCALE_TRUE
730XCMS_FALSE
731XCMS_TRUE
732KEYSYMDEFS
733XTHREAD_CFLAGS
734XTHREADLIB
735THRSTUBS_FALSE
736THRSTUBS_TRUE
737LAUNCHD
738OS2_FALSE
739OS2_TRUE
740WCHAR32
741LIBOBJS
742XLIB_LOADABLE_I18N_FALSE
743XLIB_LOADABLE_I18N_TRUE
744I18N_MODULE_LIBS
745X11_EXTRA_DEPS
746EXEEXT_FOR_BUILD
747LDFLAGS_FOR_BUILD
748CFLAGS_FOR_BUILD
749CPPFLAGS_FOR_BUILD
750CC_FOR_BUILD
751HAVE_PERL_FALSE
752HAVE_PERL_TRUE
753PERL
754TRADITIONALCPPFLAGS
755RAWCPPFLAGS
756RAWCPP
757HAVE_STYLESHEETS_FALSE
758HAVE_STYLESHEETS_TRUE
759XSL_STYLESHEET
760STYLESHEET_SRCDIR
761XORG_SGML_PATH
762HAVE_XSLTPROC_FALSE
763HAVE_XSLTPROC_TRUE
764XSLTPROC
765HAVE_FOP_FALSE
766HAVE_FOP_TRUE
767FOP
768HAVE_XMLTO_FALSE
769HAVE_XMLTO_TRUE
770HAVE_XMLTO_TEXT_FALSE
771HAVE_XMLTO_TEXT_TRUE
772XMLTO
773ENABLE_SPECS_FALSE
774ENABLE_SPECS_TRUE
775MAN_SUBSTS
776XORG_MAN_PAGE
777ADMIN_MAN_DIR
778DRIVER_MAN_DIR
779MISC_MAN_DIR
780FILE_MAN_DIR
781LIB_MAN_DIR
782APP_MAN_DIR
783ADMIN_MAN_SUFFIX
784DRIVER_MAN_SUFFIX
785MISC_MAN_SUFFIX
786FILE_MAN_SUFFIX
787LIB_MAN_SUFFIX
788APP_MAN_SUFFIX
789INSTALL_CMD
790PKG_CONFIG_LIBDIR
791PKG_CONFIG_PATH
792PKG_CONFIG
793CHANGELOG_CMD
794STRICT_CFLAGS
795CWARNFLAGS
796BASE_CFLAGS
797LT_SYS_LIBRARY_PATH
798OTOOL64
799OTOOL
800LIPO
801NMEDIT
802DSYMUTIL
803MANIFEST_TOOL
804RANLIB
805ac_ct_AR
806AR
807DLLTOOL
808OBJDUMP
809LN_S
810NM
811ac_ct_DUMPBIN
812DUMPBIN
813LD
814FGREP
815SED
816LIBTOOL
817AM_BACKSLASH
818AM_DEFAULT_VERBOSITY
819AM_DEFAULT_V
820AM_V
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824am__nodep
825AMDEPBACKSLASH
826AMDEP_FALSE
827AMDEP_TRUE
828am__include
829DEPDIR
830am__untar
831am__tar
832AMTAR
833am__leading_dot
834SET_MAKE
835AWK
836mkdir_p
837MKDIR_P
838INSTALL_STRIP_PROGRAM
839STRIP
840install_sh
841MAKEINFO
842AUTOHEADER
843AUTOMAKE
844AUTOCONF
845ACLOCAL
846VERSION
847PACKAGE
848CYGPATH_W
849am__isrc
850INSTALL_DATA
851INSTALL_SCRIPT
852INSTALL_PROGRAM
853EGREP
854GREP
855CPP
856OBJEXT
857EXEEXT
858ac_ct_CC
859CPPFLAGS
860LDFLAGS
861CFLAGS
862CC
863host_os
864host_vendor
865host_cpu
866host
867build_os
868build_vendor
869build_cpu
870build
871target_alias
872host_alias
873build_alias
874LIBS
875ECHO_T
876ECHO_N
877ECHO_C
878DEFS
879mandir
880localedir
881libdir
882psdir
883pdfdir
884dvidir
885htmldir
886infodir
887docdir
888oldincludedir
889includedir
890runstatedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_URL
903PACKAGE_BUGREPORT
904PACKAGE_STRING
905PACKAGE_VERSION
906PACKAGE_TARNAME
907PACKAGE_NAME
908PATH_SEPARATOR
909SHELL
910am__quote'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_dependency_tracking
915enable_silent_rules
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920with_aix_soname
921with_gnu_ld
922with_sysroot
923enable_libtool_lock
924enable_largefile
925enable_selective_werror
926enable_strict_compilation
927enable_specs
928with_xmlto
929with_fop
930with_xsltproc
931with_perl
932enable_unix_transport
933enable_tcp_transport
934enable_ipv6
935enable_local_transport
936enable_loadable_i18n
937enable_loadable_xcursor
938with_launchd
939enable_xthreads
940with_keysymdefdir
941enable_xcms
942enable_xlocale
943enable_xlocaledir
944enable_xf86bigfont
945enable_xkb
946enable_composecache
947with_lint
948enable_lint_library
949with_locale_lib_dir
950enable_malloc0returnsnull
951'
952      ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958LIBS
959CPPFLAGS
960CPP
961LT_SYS_LIBRARY_PATH
962PKG_CONFIG
963PKG_CONFIG_PATH
964PKG_CONFIG_LIBDIR
965XMLTO
966FOP
967XSLTPROC
968PERL
969BIGFONT_CFLAGS
970BIGFONT_LIBS
971LINT
972LINT_FLAGS
973X11_CFLAGS
974X11_LIBS'
975
976
977# Initialize some variables set by options.
978ac_init_help=
979ac_init_version=false
980ac_unrecognized_opts=
981ac_unrecognized_sep=
982# The variables have the same names as the options, with
983# dashes changed to underlines.
984cache_file=/dev/null
985exec_prefix=NONE
986no_create=
987no_recursion=
988prefix=NONE
989program_prefix=NONE
990program_suffix=NONE
991program_transform_name=s,x,x,
992silent=
993site=
994srcdir=
995verbose=
996x_includes=NONE
997x_libraries=NONE
998
999# Installation directory options.
1000# These are left unexpanded so users can "make install exec_prefix=/foo"
1001# and all the variables that are supposed to be based on exec_prefix
1002# by default will actually change.
1003# Use braces instead of parens because sh, perl, etc. also accept them.
1004# (The list follows the same order as the GNU Coding Standards.)
1005bindir='${exec_prefix}/bin'
1006sbindir='${exec_prefix}/sbin'
1007libexecdir='${exec_prefix}/libexec'
1008datarootdir='${prefix}/share'
1009datadir='${datarootdir}'
1010sysconfdir='${prefix}/etc'
1011sharedstatedir='${prefix}/com'
1012localstatedir='${prefix}/var'
1013runstatedir='${localstatedir}/run'
1014includedir='${prefix}/include'
1015oldincludedir='/usr/include'
1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017infodir='${datarootdir}/info'
1018htmldir='${docdir}'
1019dvidir='${docdir}'
1020pdfdir='${docdir}'
1021psdir='${docdir}'
1022libdir='${exec_prefix}/lib'
1023localedir='${datarootdir}/locale'
1024mandir='${datarootdir}/man'
1025
1026ac_prev=
1027ac_dashdash=
1028for ac_option
1029do
1030  # If the previous option needs an argument, assign it.
1031  if test -n "$ac_prev"; then
1032    eval $ac_prev=\$ac_option
1033    ac_prev=
1034    continue
1035  fi
1036
1037  case $ac_option in
1038  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039  *=)   ac_optarg= ;;
1040  *)    ac_optarg=yes ;;
1041  esac
1042
1043  # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045  case $ac_dashdash$ac_option in
1046  --)
1047    ac_dashdash=yes ;;
1048
1049  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050    ac_prev=bindir ;;
1051  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052    bindir=$ac_optarg ;;
1053
1054  -build | --build | --buil | --bui | --bu)
1055    ac_prev=build_alias ;;
1056  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057    build_alias=$ac_optarg ;;
1058
1059  -cache-file | --cache-file | --cache-fil | --cache-fi \
1060  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061    ac_prev=cache_file ;;
1062  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064    cache_file=$ac_optarg ;;
1065
1066  --config-cache | -C)
1067    cache_file=config.cache ;;
1068
1069  -datadir | --datadir | --datadi | --datad)
1070    ac_prev=datadir ;;
1071  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072    datadir=$ac_optarg ;;
1073
1074  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075  | --dataroo | --dataro | --datar)
1076    ac_prev=datarootdir ;;
1077  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079    datarootdir=$ac_optarg ;;
1080
1081  -disable-* | --disable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      as_fn_error $? "invalid feature name: $ac_useropt"
1086    ac_useropt_orig=$ac_useropt
1087    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088    case $ac_user_opts in
1089      *"
1090"enable_$ac_useropt"
1091"*) ;;
1092      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093	 ac_unrecognized_sep=', ';;
1094    esac
1095    eval enable_$ac_useropt=no ;;
1096
1097  -docdir | --docdir | --docdi | --doc | --do)
1098    ac_prev=docdir ;;
1099  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100    docdir=$ac_optarg ;;
1101
1102  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103    ac_prev=dvidir ;;
1104  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105    dvidir=$ac_optarg ;;
1106
1107  -enable-* | --enable-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid feature name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"enable_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval enable_$ac_useropt=\$ac_optarg ;;
1122
1123  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125  | --exec | --exe | --ex)
1126    ac_prev=exec_prefix ;;
1127  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129  | --exec=* | --exe=* | --ex=*)
1130    exec_prefix=$ac_optarg ;;
1131
1132  -gas | --gas | --ga | --g)
1133    # Obsolete; use --with-gas.
1134    with_gas=yes ;;
1135
1136  -help | --help | --hel | --he | -h)
1137    ac_init_help=long ;;
1138  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139    ac_init_help=recursive ;;
1140  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141    ac_init_help=short ;;
1142
1143  -host | --host | --hos | --ho)
1144    ac_prev=host_alias ;;
1145  -host=* | --host=* | --hos=* | --ho=*)
1146    host_alias=$ac_optarg ;;
1147
1148  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149    ac_prev=htmldir ;;
1150  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151  | --ht=*)
1152    htmldir=$ac_optarg ;;
1153
1154  -includedir | --includedir | --includedi | --included | --include \
1155  | --includ | --inclu | --incl | --inc)
1156    ac_prev=includedir ;;
1157  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158  | --includ=* | --inclu=* | --incl=* | --inc=*)
1159    includedir=$ac_optarg ;;
1160
1161  -infodir | --infodir | --infodi | --infod | --info | --inf)
1162    ac_prev=infodir ;;
1163  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164    infodir=$ac_optarg ;;
1165
1166  -libdir | --libdir | --libdi | --libd)
1167    ac_prev=libdir ;;
1168  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169    libdir=$ac_optarg ;;
1170
1171  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172  | --libexe | --libex | --libe)
1173    ac_prev=libexecdir ;;
1174  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175  | --libexe=* | --libex=* | --libe=*)
1176    libexecdir=$ac_optarg ;;
1177
1178  -localedir | --localedir | --localedi | --localed | --locale)
1179    ac_prev=localedir ;;
1180  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181    localedir=$ac_optarg ;;
1182
1183  -localstatedir | --localstatedir | --localstatedi | --localstated \
1184  | --localstate | --localstat | --localsta | --localst | --locals)
1185    ac_prev=localstatedir ;;
1186  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188    localstatedir=$ac_optarg ;;
1189
1190  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191    ac_prev=mandir ;;
1192  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193    mandir=$ac_optarg ;;
1194
1195  -nfp | --nfp | --nf)
1196    # Obsolete; use --without-fp.
1197    with_fp=no ;;
1198
1199  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200  | --no-cr | --no-c | -n)
1201    no_create=yes ;;
1202
1203  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205    no_recursion=yes ;;
1206
1207  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209  | --oldin | --oldi | --old | --ol | --o)
1210    ac_prev=oldincludedir ;;
1211  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214    oldincludedir=$ac_optarg ;;
1215
1216  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217    ac_prev=prefix ;;
1218  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219    prefix=$ac_optarg ;;
1220
1221  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222  | --program-pre | --program-pr | --program-p)
1223    ac_prev=program_prefix ;;
1224  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226    program_prefix=$ac_optarg ;;
1227
1228  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229  | --program-suf | --program-su | --program-s)
1230    ac_prev=program_suffix ;;
1231  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233    program_suffix=$ac_optarg ;;
1234
1235  -program-transform-name | --program-transform-name \
1236  | --program-transform-nam | --program-transform-na \
1237  | --program-transform-n | --program-transform- \
1238  | --program-transform | --program-transfor \
1239  | --program-transfo | --program-transf \
1240  | --program-trans | --program-tran \
1241  | --progr-tra | --program-tr | --program-t)
1242    ac_prev=program_transform_name ;;
1243  -program-transform-name=* | --program-transform-name=* \
1244  | --program-transform-nam=* | --program-transform-na=* \
1245  | --program-transform-n=* | --program-transform-=* \
1246  | --program-transform=* | --program-transfor=* \
1247  | --program-transfo=* | --program-transf=* \
1248  | --program-trans=* | --program-tran=* \
1249  | --progr-tra=* | --program-tr=* | --program-t=*)
1250    program_transform_name=$ac_optarg ;;
1251
1252  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253    ac_prev=pdfdir ;;
1254  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255    pdfdir=$ac_optarg ;;
1256
1257  -psdir | --psdir | --psdi | --psd | --ps)
1258    ac_prev=psdir ;;
1259  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260    psdir=$ac_optarg ;;
1261
1262  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263  | -silent | --silent | --silen | --sile | --sil)
1264    silent=yes ;;
1265
1266  -runstatedir | --runstatedir | --runstatedi | --runstated \
1267  | --runstate | --runstat | --runsta | --runst | --runs \
1268  | --run | --ru | --r)
1269    ac_prev=runstatedir ;;
1270  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1271  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1272  | --run=* | --ru=* | --r=*)
1273    runstatedir=$ac_optarg ;;
1274
1275  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276    ac_prev=sbindir ;;
1277  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278  | --sbi=* | --sb=*)
1279    sbindir=$ac_optarg ;;
1280
1281  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283  | --sharedst | --shareds | --shared | --share | --shar \
1284  | --sha | --sh)
1285    ac_prev=sharedstatedir ;;
1286  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289  | --sha=* | --sh=*)
1290    sharedstatedir=$ac_optarg ;;
1291
1292  -site | --site | --sit)
1293    ac_prev=site ;;
1294  -site=* | --site=* | --sit=*)
1295    site=$ac_optarg ;;
1296
1297  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298    ac_prev=srcdir ;;
1299  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300    srcdir=$ac_optarg ;;
1301
1302  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303  | --syscon | --sysco | --sysc | --sys | --sy)
1304    ac_prev=sysconfdir ;;
1305  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307    sysconfdir=$ac_optarg ;;
1308
1309  -target | --target | --targe | --targ | --tar | --ta | --t)
1310    ac_prev=target_alias ;;
1311  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312    target_alias=$ac_optarg ;;
1313
1314  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315    verbose=yes ;;
1316
1317  -version | --version | --versio | --versi | --vers | -V)
1318    ac_init_version=: ;;
1319
1320  -with-* | --with-*)
1321    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324      as_fn_error $? "invalid package name: $ac_useropt"
1325    ac_useropt_orig=$ac_useropt
1326    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327    case $ac_user_opts in
1328      *"
1329"with_$ac_useropt"
1330"*) ;;
1331      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1332	 ac_unrecognized_sep=', ';;
1333    esac
1334    eval with_$ac_useropt=\$ac_optarg ;;
1335
1336  -without-* | --without-*)
1337    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1338    # Reject names that are not valid shell variable names.
1339    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340      as_fn_error $? "invalid package name: $ac_useropt"
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=no ;;
1351
1352  --x)
1353    # Obsolete; use --with-x.
1354    with_x=yes ;;
1355
1356  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357  | --x-incl | --x-inc | --x-in | --x-i)
1358    ac_prev=x_includes ;;
1359  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361    x_includes=$ac_optarg ;;
1362
1363  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365    ac_prev=x_libraries ;;
1366  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368    x_libraries=$ac_optarg ;;
1369
1370  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1371Try \`$0 --help' for more information"
1372    ;;
1373
1374  *=*)
1375    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376    # Reject names that are not valid shell variable names.
1377    case $ac_envvar in #(
1378      '' | [0-9]* | *[!_$as_cr_alnum]* )
1379      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1380    esac
1381    eval $ac_envvar=\$ac_optarg
1382    export $ac_envvar ;;
1383
1384  *)
1385    # FIXME: should be removed in autoconf 3.0.
1386    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1390    ;;
1391
1392  esac
1393done
1394
1395if test -n "$ac_prev"; then
1396  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397  as_fn_error $? "missing argument to $ac_option"
1398fi
1399
1400if test -n "$ac_unrecognized_opts"; then
1401  case $enable_option_checking in
1402    no) ;;
1403    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1404    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405  esac
1406fi
1407
1408# Check all directory arguments for consistency.
1409for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410		datadir sysconfdir sharedstatedir localstatedir includedir \
1411		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412		libdir localedir mandir runstatedir
1413do
1414  eval ac_val=\$$ac_var
1415  # Remove trailing slashes.
1416  case $ac_val in
1417    */ )
1418      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419      eval $ac_var=\$ac_val;;
1420  esac
1421  # Be sure to have absolute directory names.
1422  case $ac_val in
1423    [\\/$]* | ?:[\\/]* )  continue;;
1424    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425  esac
1426  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1427done
1428
1429# There might be people who depend on the old broken behavior: `$host'
1430# used to hold the argument of --host etc.
1431# FIXME: To remove some day.
1432build=$build_alias
1433host=$host_alias
1434target=$target_alias
1435
1436# FIXME: To remove some day.
1437if test "x$host_alias" != x; then
1438  if test "x$build_alias" = x; then
1439    cross_compiling=maybe
1440  elif test "x$build_alias" != "x$host_alias"; then
1441    cross_compiling=yes
1442  fi
1443fi
1444
1445ac_tool_prefix=
1446test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448test "$silent" = yes && exec 6>/dev/null
1449
1450
1451ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452ac_ls_di=`ls -di .` &&
1453ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454  as_fn_error $? "working directory cannot be determined"
1455test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456  as_fn_error $? "pwd does not report name of working directory"
1457
1458
1459# Find the source files, if location was not specified.
1460if test -z "$srcdir"; then
1461  ac_srcdir_defaulted=yes
1462  # Try the directory containing this script, then the parent directory.
1463  ac_confdir=`$as_dirname -- "$as_myself" ||
1464$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465	 X"$as_myself" : 'X\(//\)[^/]' \| \
1466	 X"$as_myself" : 'X\(//\)$' \| \
1467	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1468$as_echo X"$as_myself" |
1469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470	    s//\1/
1471	    q
1472	  }
1473	  /^X\(\/\/\)[^/].*/{
1474	    s//\1/
1475	    q
1476	  }
1477	  /^X\(\/\/\)$/{
1478	    s//\1/
1479	    q
1480	  }
1481	  /^X\(\/\).*/{
1482	    s//\1/
1483	    q
1484	  }
1485	  s/.*/./; q'`
1486  srcdir=$ac_confdir
1487  if test ! -r "$srcdir/$ac_unique_file"; then
1488    srcdir=..
1489  fi
1490else
1491  ac_srcdir_defaulted=no
1492fi
1493if test ! -r "$srcdir/$ac_unique_file"; then
1494  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1496fi
1497ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498ac_abs_confdir=`(
1499	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1500	pwd)`
1501# When building in place, set srcdir=.
1502if test "$ac_abs_confdir" = "$ac_pwd"; then
1503  srcdir=.
1504fi
1505# Remove unnecessary trailing slashes from srcdir.
1506# Double slashes in file names in object file debugging info
1507# mess up M-x gdb in Emacs.
1508case $srcdir in
1509*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510esac
1511for ac_var in $ac_precious_vars; do
1512  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1513  eval ac_env_${ac_var}_value=\$${ac_var}
1514  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1515  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1516done
1517
1518#
1519# Report the --help message.
1520#
1521if test "$ac_init_help" = "long"; then
1522  # Omit some internal or obsolete options to make the list less imposing.
1523  # This message is too long to be a string in the A/UX 3.1 sh.
1524  cat <<_ACEOF
1525\`configure' configures libX11 1.7.0 to adapt to many kinds of systems.
1526
1527Usage: $0 [OPTION]... [VAR=VALUE]...
1528
1529To assign environment variables (e.g., CC, CFLAGS...), specify them as
1530VAR=VALUE.  See below for descriptions of some of the useful variables.
1531
1532Defaults for the options are specified in brackets.
1533
1534Configuration:
1535  -h, --help              display this help and exit
1536      --help=short        display options specific to this package
1537      --help=recursive    display the short help of all the included packages
1538  -V, --version           display version information and exit
1539  -q, --quiet, --silent   do not print \`checking ...' messages
1540      --cache-file=FILE   cache test results in FILE [disabled]
1541  -C, --config-cache      alias for \`--cache-file=config.cache'
1542  -n, --no-create         do not create output files
1543      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1544
1545Installation directories:
1546  --prefix=PREFIX         install architecture-independent files in PREFIX
1547                          [$ac_default_prefix]
1548  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1549                          [PREFIX]
1550
1551By default, \`make install' will install all the files in
1552\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1553an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1554for instance \`--prefix=\$HOME'.
1555
1556For better control, use the options below.
1557
1558Fine tuning of the installation directories:
1559  --bindir=DIR            user executables [EPREFIX/bin]
1560  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1561  --libexecdir=DIR        program executables [EPREFIX/libexec]
1562  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1563  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1564  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1565  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1566  --libdir=DIR            object code libraries [EPREFIX/lib]
1567  --includedir=DIR        C header files [PREFIX/include]
1568  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1569  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1570  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1571  --infodir=DIR           info documentation [DATAROOTDIR/info]
1572  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1573  --mandir=DIR            man documentation [DATAROOTDIR/man]
1574  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1575  --htmldir=DIR           html documentation [DOCDIR]
1576  --dvidir=DIR            dvi documentation [DOCDIR]
1577  --pdfdir=DIR            pdf documentation [DOCDIR]
1578  --psdir=DIR             ps documentation [DOCDIR]
1579_ACEOF
1580
1581  cat <<\_ACEOF
1582
1583Program names:
1584  --program-prefix=PREFIX            prepend PREFIX to installed program names
1585  --program-suffix=SUFFIX            append SUFFIX to installed program names
1586  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1587
1588System types:
1589  --build=BUILD     configure for building on BUILD [guessed]
1590  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1591_ACEOF
1592fi
1593
1594if test -n "$ac_init_help"; then
1595  case $ac_init_help in
1596     short | recursive ) echo "Configuration of libX11 1.7.0:";;
1597   esac
1598  cat <<\_ACEOF
1599
1600Optional Features:
1601  --disable-option-checking  ignore unrecognized --enable/--with options
1602  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1603  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1604  --enable-dependency-tracking
1605                          do not reject slow dependency extractors
1606  --disable-dependency-tracking
1607                          speeds up one-time build
1608  --enable-silent-rules   less verbose build output (undo: "make V=1")
1609  --disable-silent-rules  verbose build output (undo: "make V=0")
1610  --enable-shared[=PKGS]  build shared libraries [default=yes]
1611  --enable-static[=PKGS]  build static libraries [default=yes]
1612  --enable-fast-install[=PKGS]
1613                          optimize for fast installation [default=yes]
1614  --disable-libtool-lock  avoid locking (might break parallel builds)
1615  --disable-largefile     omit support for large files
1616  --disable-selective-werror
1617                          Turn off selective compiler errors. (default:
1618                          enabled)
1619  --enable-strict-compilation
1620                          Enable all warnings from compiler and make them
1621                          errors (default: disabled)
1622  --enable-specs          Enable building the specs (default: yes)
1623  --enable-unix-transport Enable UNIX domain socket transport
1624  --enable-tcp-transport  Enable TCP socket transport
1625  --enable-ipv6           Enable IPv6 support
1626  --enable-local-transport
1627                          Enable os-specific local transport
1628  --enable-loadable-i18n  Controls loadable i18n module support
1629  --disable-loadable-xcursor
1630                          Controls loadable xcursor library support
1631  --disable-xthreads      Disable Xlib support for Multithreading
1632  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1633  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1634  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1635  --disable-xf86bigfont   Disable XF86BigFont extension support
1636  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1637  --disable-composecache  Disable compose table cache support
1638  --enable-lint-library   Create lint library (default: disabled)
1639  --enable-malloc0returnsnull
1640                          malloc(0) returns NULL (default: auto)
1641
1642Optional Packages:
1643  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1644  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1645  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1646                          both]
1647  --with-aix-soname=aix|svr4|both
1648                          shared library versioning (aka "SONAME") variant to
1649                          provide on AIX, [default=aix].
1650  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1651  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1652                          compiler's sysroot if not specified).
1653  --with-xmlto            Use xmlto to regenerate documentation (default:
1654                          auto)
1655  --with-fop              Use fop to regenerate documentation (default: no)
1656  --with-xsltproc         Use xsltproc for the transformation of XML documents
1657                          (default: auto)
1658  --with-perl             Use perl for extracting information from files
1659                          (default: auto)
1660  --with-launchd          Build with support for Apple's launchd (default:
1661                          auto)
1662  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1663                          include dir)
1664  --with-lint             Use a lint-style source code checker (default:
1665                          disabled)
1666  --with-locale-lib-dir=DIR
1667                          Directory where locale libraries files are installed
1668                          (default: $libdir/X11/locale)
1669
1670Some influential environment variables:
1671  CC          C compiler command
1672  CFLAGS      C compiler flags
1673  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1674              nonstandard directory <lib dir>
1675  LIBS        libraries to pass to the linker, e.g. -l<library>
1676  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1677              you have headers in a nonstandard directory <include dir>
1678  CPP         C preprocessor
1679  LT_SYS_LIBRARY_PATH
1680              User-defined run-time library search path.
1681  PKG_CONFIG  path to pkg-config utility
1682  PKG_CONFIG_PATH
1683              directories to add to pkg-config's search path
1684  PKG_CONFIG_LIBDIR
1685              path overriding pkg-config's built-in search path
1686  XMLTO       Path to xmlto command
1687  FOP         Path to fop command
1688  XSLTPROC    Path to xsltproc command
1689  PERL        Path to perl command
1690  BIGFONT_CFLAGS
1691              C compiler flags for BIGFONT, overriding pkg-config
1692  BIGFONT_LIBS
1693              linker flags for BIGFONT, overriding pkg-config
1694  LINT        Path to a lint-style command
1695  LINT_FLAGS  Flags for the lint-style command
1696  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1697  X11_LIBS    linker flags for X11, overriding pkg-config
1698
1699Use these variables to override the choices made by `configure' or to help
1700it to find libraries and programs with nonstandard names/locations.
1701
1702Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1703_ACEOF
1704ac_status=$?
1705fi
1706
1707if test "$ac_init_help" = "recursive"; then
1708  # If there are subdirs, report their specific --help.
1709  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710    test -d "$ac_dir" ||
1711      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712      continue
1713    ac_builddir=.
1714
1715case "$ac_dir" in
1716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717*)
1718  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719  # A ".." for each directory in $ac_dir_suffix.
1720  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721  case $ac_top_builddir_sub in
1722  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724  esac ;;
1725esac
1726ac_abs_top_builddir=$ac_pwd
1727ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728# for backward compatibility:
1729ac_top_builddir=$ac_top_build_prefix
1730
1731case $srcdir in
1732  .)  # We are building in place.
1733    ac_srcdir=.
1734    ac_top_srcdir=$ac_top_builddir_sub
1735    ac_abs_top_srcdir=$ac_pwd ;;
1736  [\\/]* | ?:[\\/]* )  # Absolute name.
1737    ac_srcdir=$srcdir$ac_dir_suffix;
1738    ac_top_srcdir=$srcdir
1739    ac_abs_top_srcdir=$srcdir ;;
1740  *) # Relative name.
1741    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742    ac_top_srcdir=$ac_top_build_prefix$srcdir
1743    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744esac
1745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747    cd "$ac_dir" || { ac_status=$?; continue; }
1748    # Check for guested configure.
1749    if test -f "$ac_srcdir/configure.gnu"; then
1750      echo &&
1751      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752    elif test -f "$ac_srcdir/configure"; then
1753      echo &&
1754      $SHELL "$ac_srcdir/configure" --help=recursive
1755    else
1756      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757    fi || ac_status=$?
1758    cd "$ac_pwd" || { ac_status=$?; break; }
1759  done
1760fi
1761
1762test -n "$ac_init_help" && exit $ac_status
1763if $ac_init_version; then
1764  cat <<\_ACEOF
1765libX11 configure 1.7.0
1766generated by GNU Autoconf 2.69
1767
1768Copyright (C) 2012 Free Software Foundation, Inc.
1769This configure script is free software; the Free Software Foundation
1770gives unlimited permission to copy, distribute and modify it.
1771_ACEOF
1772  exit
1773fi
1774
1775## ------------------------ ##
1776## Autoconf initialization. ##
1777## ------------------------ ##
1778
1779# ac_fn_c_try_compile LINENO
1780# --------------------------
1781# Try to compile conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_compile ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  rm -f conftest.$ac_objext
1786  if { { ac_try="$ac_compile"
1787case "(($ac_try" in
1788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789  *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793  (eval "$ac_compile") 2>conftest.err
1794  ac_status=$?
1795  if test -s conftest.err; then
1796    grep -v '^ *+' conftest.err >conftest.er1
1797    cat conftest.er1 >&5
1798    mv -f conftest.er1 conftest.err
1799  fi
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && {
1802	 test -z "$ac_c_werror_flag" ||
1803	 test ! -s conftest.err
1804       } && test -s conftest.$ac_objext; then :
1805  ac_retval=0
1806else
1807  $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810	ac_retval=1
1811fi
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_compile
1816
1817# ac_fn_c_try_cpp LINENO
1818# ----------------------
1819# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820ac_fn_c_try_cpp ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  if { { ac_try="$ac_cpp conftest.$ac_ext"
1824case "(($ac_try" in
1825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826  *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831  ac_status=$?
1832  if test -s conftest.err; then
1833    grep -v '^ *+' conftest.err >conftest.er1
1834    cat conftest.er1 >&5
1835    mv -f conftest.er1 conftest.err
1836  fi
1837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838  test $ac_status = 0; } > conftest.i && {
1839	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840	 test ! -s conftest.err
1841       }; then :
1842  ac_retval=0
1843else
1844  $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847    ac_retval=1
1848fi
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_cpp
1853
1854# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1857# the include files in INCLUDES and setting the cache variable VAR
1858# accordingly.
1859ac_fn_c_check_header_mongrel ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  if eval \${$3+:} false; then :
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867fi
1868eval ac_res=\$$3
1869	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871else
1872  # Is the header compilable?
1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1874$as_echo_n "checking $2 usability... " >&6; }
1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  ac_header_compiler=yes
1882else
1883  ac_header_compiler=no
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1887$as_echo "$ac_header_compiler" >&6; }
1888
1889# Is the header present?
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1891$as_echo_n "checking $2 presence... " >&6; }
1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894#include <$2>
1895_ACEOF
1896if ac_fn_c_try_cpp "$LINENO"; then :
1897  ac_header_preproc=yes
1898else
1899  ac_header_preproc=no
1900fi
1901rm -f conftest.err conftest.i conftest.$ac_ext
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1903$as_echo "$ac_header_preproc" >&6; }
1904
1905# So?  What about this header?
1906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1907  yes:no: )
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1909$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912    ;;
1913  no:yes:* )
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1915$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1917$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1919$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1921$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924( $as_echo "## -------------------------------------------------------------------- ##
1925## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/issues ##
1926## -------------------------------------------------------------------- ##"
1927     ) | sed "s/^/$as_me: WARNING:     /" >&2
1928    ;;
1929esac
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933  $as_echo_n "(cached) " >&6
1934else
1935  eval "$3=\$ac_header_compiler"
1936fi
1937eval ac_res=\$$3
1938	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940fi
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_header_mongrel
1944
1945# ac_fn_c_try_run LINENO
1946# ----------------------
1947# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1948# that executables *can* be run.
1949ac_fn_c_try_run ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  if { { ac_try="$ac_link"
1953case "(($ac_try" in
1954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955  *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959  (eval "$ac_link") 2>&5
1960  ac_status=$?
1961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1963  { { case "(($ac_try" in
1964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965  *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969  (eval "$ac_try") 2>&5
1970  ac_status=$?
1971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972  test $ac_status = 0; }; }; then :
1973  ac_retval=0
1974else
1975  $as_echo "$as_me: program exited with status $ac_status" >&5
1976       $as_echo "$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
1986
1987# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988# -------------------------------------------------------
1989# Tests whether HEADER exists and can be compiled using the include files in
1990# INCLUDES, setting the cache variable VAR accordingly.
1991ac_fn_c_check_header_compile ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if eval \${$3+:} false; then :
1997  $as_echo_n "(cached) " >&6
1998else
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005  eval "$3=yes"
2006else
2007  eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_header_compile
2017
2018# ac_fn_c_try_link LINENO
2019# -----------------------
2020# Try to link conftest.$ac_ext, and return whether this succeeded.
2021ac_fn_c_try_link ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  rm -f conftest.$ac_objext conftest$ac_exeext
2025  if { { ac_try="$ac_link"
2026case "(($ac_try" in
2027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028  *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032  (eval "$ac_link") 2>conftest.err
2033  ac_status=$?
2034  if test -s conftest.err; then
2035    grep -v '^ *+' conftest.err >conftest.er1
2036    cat conftest.er1 >&5
2037    mv -f conftest.er1 conftest.err
2038  fi
2039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040  test $ac_status = 0; } && {
2041	 test -z "$ac_c_werror_flag" ||
2042	 test ! -s conftest.err
2043       } && test -s conftest$ac_exeext && {
2044	 test "$cross_compiling" = yes ||
2045	 test -x conftest$ac_exeext
2046       }; then :
2047  ac_retval=0
2048else
2049  $as_echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052	ac_retval=1
2053fi
2054  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2055  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2056  # interfere with the next link command; also delete a directory that is
2057  # left behind by Apple's compiler.  We do this before executing the actions.
2058  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2059  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060  as_fn_set_status $ac_retval
2061
2062} # ac_fn_c_try_link
2063
2064# ac_fn_c_check_func LINENO FUNC VAR
2065# ----------------------------------
2066# Tests whether FUNC exists, setting the cache variable VAR accordingly
2067ac_fn_c_check_func ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
2072if eval \${$3+:} false; then :
2073  $as_echo_n "(cached) " >&6
2074else
2075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2079#define $2 innocuous_$2
2080
2081/* System header to define __stub macros and hopefully few prototypes,
2082    which can conflict with char $2 (); below.
2083    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084    <limits.h> exists even on freestanding compilers.  */
2085
2086#ifdef __STDC__
2087# include <limits.h>
2088#else
2089# include <assert.h>
2090#endif
2091
2092#undef $2
2093
2094/* Override any GCC internal prototype to avoid an error.
2095   Use char because int might match the return type of a GCC
2096   builtin and then its argument prototype would still apply.  */
2097#ifdef __cplusplus
2098extern "C"
2099#endif
2100char $2 ();
2101/* The GNU C library defines this for functions which it implements
2102    to always fail with ENOSYS.  Some functions are actually named
2103    something starting with __ and the normal name is an alias.  */
2104#if defined __stub_$2 || defined __stub___$2
2105choke me
2106#endif
2107
2108int
2109main ()
2110{
2111return $2 ();
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_link "$LINENO"; then :
2117  eval "$3=yes"
2118else
2119  eval "$3=no"
2120fi
2121rm -f core conftest.err conftest.$ac_objext \
2122    conftest$ac_exeext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_func
2130
2131# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2132# ---------------------------------------------
2133# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2134# accordingly.
2135ac_fn_c_check_decl ()
2136{
2137  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138  as_decl_name=`echo $2|sed 's/ *(.*//'`
2139  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2141$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2142if eval \${$3+:} false; then :
2143  $as_echo_n "(cached) " >&6
2144else
2145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h.  */
2147$4
2148int
2149main ()
2150{
2151#ifndef $as_decl_name
2152#ifdef __cplusplus
2153  (void) $as_decl_use;
2154#else
2155  (void) $as_decl_name;
2156#endif
2157#endif
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164  eval "$3=yes"
2165else
2166  eval "$3=no"
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169fi
2170eval ac_res=\$$3
2171	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174
2175} # ac_fn_c_check_decl
2176
2177# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2178# ----------------------------------------------------
2179# Tries to find if the field MEMBER exists in type AGGR, after including
2180# INCLUDES, setting cache variable VAR accordingly.
2181ac_fn_c_check_member ()
2182{
2183  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2185$as_echo_n "checking for $2.$3... " >&6; }
2186if eval \${$4+:} false; then :
2187  $as_echo_n "(cached) " >&6
2188else
2189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$5
2192int
2193main ()
2194{
2195static $2 ac_aggr;
2196if (ac_aggr.$3)
2197return 0;
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203  eval "$4=yes"
2204else
2205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h.  */
2207$5
2208int
2209main ()
2210{
2211static $2 ac_aggr;
2212if (sizeof ac_aggr.$3)
2213return 0;
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219  eval "$4=yes"
2220else
2221  eval "$4=no"
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226fi
2227eval ac_res=\$$4
2228	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229$as_echo "$ac_res" >&6; }
2230  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231
2232} # ac_fn_c_check_member
2233
2234# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235# -------------------------------------------
2236# Tests whether TYPE exists after having included INCLUDES, setting cache
2237# variable VAR accordingly.
2238ac_fn_c_check_type ()
2239{
2240  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
2243if eval \${$3+:} false; then :
2244  $as_echo_n "(cached) " >&6
2245else
2246  eval "$3=no"
2247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h.  */
2249$4
2250int
2251main ()
2252{
2253if (sizeof ($2))
2254	 return 0;
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259if ac_fn_c_try_compile "$LINENO"; then :
2260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h.  */
2262$4
2263int
2264main ()
2265{
2266if (sizeof (($2)))
2267	    return 0;
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273
2274else
2275  eval "$3=yes"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280fi
2281eval ac_res=\$$3
2282	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283$as_echo "$ac_res" >&6; }
2284  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285
2286} # ac_fn_c_check_type
2287cat >config.log <<_ACEOF
2288This file contains any messages produced by compilers while
2289running configure, to aid debugging if configure makes a mistake.
2290
2291It was created by libX11 $as_me 1.7.0, which was
2292generated by GNU Autoconf 2.69.  Invocation command line was
2293
2294  $ $0 $@
2295
2296_ACEOF
2297exec 5>>config.log
2298{
2299cat <<_ASUNAME
2300## --------- ##
2301## Platform. ##
2302## --------- ##
2303
2304hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308uname -v = `(uname -v) 2>/dev/null || echo unknown`
2309
2310/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2312
2313/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2314/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2315/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2317/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2318/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2319/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2320
2321_ASUNAME
2322
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328    $as_echo "PATH: $as_dir"
2329  done
2330IFS=$as_save_IFS
2331
2332} >&5
2333
2334cat >&5 <<_ACEOF
2335
2336
2337## ----------- ##
2338## Core tests. ##
2339## ----------- ##
2340
2341_ACEOF
2342
2343
2344# Keep a trace of the command line.
2345# Strip out --no-create and --no-recursion so they do not pile up.
2346# Strip out --silent because we don't want to record it for future runs.
2347# Also quote any args containing shell meta-characters.
2348# Make two passes to allow for proper duplicate-argument suppression.
2349ac_configure_args=
2350ac_configure_args0=
2351ac_configure_args1=
2352ac_must_keep_next=false
2353for ac_pass in 1 2
2354do
2355  for ac_arg
2356  do
2357    case $ac_arg in
2358    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360    | -silent | --silent | --silen | --sile | --sil)
2361      continue ;;
2362    *\'*)
2363      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364    esac
2365    case $ac_pass in
2366    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367    2)
2368      as_fn_append ac_configure_args1 " '$ac_arg'"
2369      if test $ac_must_keep_next = true; then
2370	ac_must_keep_next=false # Got value, back to normal.
2371      else
2372	case $ac_arg in
2373	  *=* | --config-cache | -C | -disable-* | --disable-* \
2374	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376	  | -with-* | --with-* | -without-* | --without-* | --x)
2377	    case "$ac_configure_args0 " in
2378	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379	    esac
2380	    ;;
2381	  -* ) ac_must_keep_next=true ;;
2382	esac
2383      fi
2384      as_fn_append ac_configure_args " '$ac_arg'"
2385      ;;
2386    esac
2387  done
2388done
2389{ ac_configure_args0=; unset ac_configure_args0;}
2390{ ac_configure_args1=; unset ac_configure_args1;}
2391
2392# When interrupted or exit'd, cleanup temporary files, and complete
2393# config.log.  We remove comments because anyway the quotes in there
2394# would cause problems or look ugly.
2395# WARNING: Use '\'' to represent an apostrophe within the trap.
2396# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397trap 'exit_status=$?
2398  # Save into config.log some information that might help in debugging.
2399  {
2400    echo
2401
2402    $as_echo "## ---------------- ##
2403## Cache variables. ##
2404## ---------------- ##"
2405    echo
2406    # The following way of writing the cache mishandles newlines in values,
2407(
2408  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409    eval ac_val=\$$ac_var
2410    case $ac_val in #(
2411    *${as_nl}*)
2412      case $ac_var in #(
2413      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415      esac
2416      case $ac_var in #(
2417      _ | IFS | as_nl) ;; #(
2418      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419      *) { eval $ac_var=; unset $ac_var;} ;;
2420      esac ;;
2421    esac
2422  done
2423  (set) 2>&1 |
2424    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425    *${as_nl}ac_space=\ *)
2426      sed -n \
2427	"s/'\''/'\''\\\\'\'''\''/g;
2428	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429      ;; #(
2430    *)
2431      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2432      ;;
2433    esac |
2434    sort
2435)
2436    echo
2437
2438    $as_echo "## ----------------- ##
2439## Output variables. ##
2440## ----------------- ##"
2441    echo
2442    for ac_var in $ac_subst_vars
2443    do
2444      eval ac_val=\$$ac_var
2445      case $ac_val in
2446      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447      esac
2448      $as_echo "$ac_var='\''$ac_val'\''"
2449    done | sort
2450    echo
2451
2452    if test -n "$ac_subst_files"; then
2453      $as_echo "## ------------------- ##
2454## File substitutions. ##
2455## ------------------- ##"
2456      echo
2457      for ac_var in $ac_subst_files
2458      do
2459	eval ac_val=\$$ac_var
2460	case $ac_val in
2461	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462	esac
2463	$as_echo "$ac_var='\''$ac_val'\''"
2464      done | sort
2465      echo
2466    fi
2467
2468    if test -s confdefs.h; then
2469      $as_echo "## ----------- ##
2470## confdefs.h. ##
2471## ----------- ##"
2472      echo
2473      cat confdefs.h
2474      echo
2475    fi
2476    test "$ac_signal" != 0 &&
2477      $as_echo "$as_me: caught signal $ac_signal"
2478    $as_echo "$as_me: exit $exit_status"
2479  } >&5
2480  rm -f core *.core core.conftest.* &&
2481    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482    exit $exit_status
2483' 0
2484for ac_signal in 1 2 13 15; do
2485  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2486done
2487ac_signal=0
2488
2489# confdefs.h avoids OS command line length limits that DEFS can exceed.
2490rm -f -r conftest* confdefs.h
2491
2492$as_echo "/* confdefs.h */" > confdefs.h
2493
2494# Predefined preprocessor variables.
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_NAME "$PACKAGE_NAME"
2498_ACEOF
2499
2500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2502_ACEOF
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_VERSION "$PACKAGE_VERSION"
2506_ACEOF
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_STRING "$PACKAGE_STRING"
2510_ACEOF
2511
2512cat >>confdefs.h <<_ACEOF
2513#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2514_ACEOF
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_URL "$PACKAGE_URL"
2518_ACEOF
2519
2520
2521# Let the site file select an alternate cache file if it wants to.
2522# Prefer an explicitly selected file to automatically selected ones.
2523ac_site_file1=NONE
2524ac_site_file2=NONE
2525if test -n "$CONFIG_SITE"; then
2526  # We do not want a PATH search for config.site.
2527  case $CONFIG_SITE in #((
2528    -*)  ac_site_file1=./$CONFIG_SITE;;
2529    */*) ac_site_file1=$CONFIG_SITE;;
2530    *)   ac_site_file1=./$CONFIG_SITE;;
2531  esac
2532elif test "x$prefix" != xNONE; then
2533  ac_site_file1=$prefix/share/config.site
2534  ac_site_file2=$prefix/etc/config.site
2535else
2536  ac_site_file1=$ac_default_prefix/share/config.site
2537  ac_site_file2=$ac_default_prefix/etc/config.site
2538fi
2539for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540do
2541  test "x$ac_site_file" = xNONE && continue
2542  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2543    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545    sed 's/^/| /' "$ac_site_file" >&5
2546    . "$ac_site_file" \
2547      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549as_fn_error $? "failed to load site script $ac_site_file
2550See \`config.log' for more details" "$LINENO" 5; }
2551  fi
2552done
2553
2554if test -r "$cache_file"; then
2555  # Some versions of bash will fail to source /dev/null (special files
2556  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2557  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2558    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2559$as_echo "$as_me: loading cache $cache_file" >&6;}
2560    case $cache_file in
2561      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562      *)                      . "./$cache_file";;
2563    esac
2564  fi
2565else
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2567$as_echo "$as_me: creating cache $cache_file" >&6;}
2568  >$cache_file
2569fi
2570
2571as_fn_append ac_header_list " stdlib.h"
2572as_fn_append ac_header_list " unistd.h"
2573as_fn_append ac_header_list " sys/param.h"
2574# Check that the precious variables saved in the cache have kept the same
2575# value.
2576ac_cache_corrupted=false
2577for ac_var in $ac_precious_vars; do
2578  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579  eval ac_new_set=\$ac_env_${ac_var}_set
2580  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581  eval ac_new_val=\$ac_env_${ac_var}_value
2582  case $ac_old_set,$ac_new_set in
2583    set,)
2584      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586      ac_cache_corrupted=: ;;
2587    ,set)
2588      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,);;
2592    *)
2593      if test "x$ac_old_val" != "x$ac_new_val"; then
2594	# differences in whitespace do not lead to failure.
2595	ac_old_val_w=`echo x $ac_old_val`
2596	ac_new_val_w=`echo x $ac_new_val`
2597	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600	  ac_cache_corrupted=:
2601	else
2602	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604	  eval $ac_var=\$ac_old_val
2605	fi
2606	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2607$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2608	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2609$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2610      fi;;
2611  esac
2612  # Pass precious variables to config.status.
2613  if test "$ac_new_set" = set; then
2614    case $ac_new_val in
2615    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616    *) ac_arg=$ac_var=$ac_new_val ;;
2617    esac
2618    case " $ac_configure_args " in
2619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2620      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621    esac
2622  fi
2623done
2624if $ac_cache_corrupted; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2630fi
2631## -------------------- ##
2632## Main body of script. ##
2633## -------------------- ##
2634
2635ac_ext=c
2636ac_cpp='$CPP $CPPFLAGS'
2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640
2641
2642
2643ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2644
2645
2646ac_aux_dir=
2647for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2648  if test -f "$ac_dir/install-sh"; then
2649    ac_aux_dir=$ac_dir
2650    ac_install_sh="$ac_aux_dir/install-sh -c"
2651    break
2652  elif test -f "$ac_dir/install.sh"; then
2653    ac_aux_dir=$ac_dir
2654    ac_install_sh="$ac_aux_dir/install.sh -c"
2655    break
2656  elif test -f "$ac_dir/shtool"; then
2657    ac_aux_dir=$ac_dir
2658    ac_install_sh="$ac_aux_dir/shtool install -c"
2659    break
2660  fi
2661done
2662if test -z "$ac_aux_dir"; then
2663  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2664fi
2665
2666# These three variables are undocumented and unsupported,
2667# and are intended to be withdrawn in a future Autoconf release.
2668# They can cause serious problems if a builder's source tree is in a directory
2669# whose full name contains unusual characters.
2670ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2671ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2672ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2673
2674
2675# Make sure we can run config.sub.
2676$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2677  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2678
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2680$as_echo_n "checking build system type... " >&6; }
2681if ${ac_cv_build+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  ac_build_alias=$build_alias
2685test "x$ac_build_alias" = x &&
2686  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2687test "x$ac_build_alias" = x &&
2688  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2689ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2690  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2694$as_echo "$ac_cv_build" >&6; }
2695case $ac_cv_build in
2696*-*-*) ;;
2697*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2698esac
2699build=$ac_cv_build
2700ac_save_IFS=$IFS; IFS='-'
2701set x $ac_cv_build
2702shift
2703build_cpu=$1
2704build_vendor=$2
2705shift; shift
2706# Remember, the first character of IFS is used to create $*,
2707# except with old shells:
2708build_os=$*
2709IFS=$ac_save_IFS
2710case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2711
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2714$as_echo_n "checking host system type... " >&6; }
2715if ${ac_cv_host+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test "x$host_alias" = x; then
2719  ac_cv_host=$ac_cv_build
2720else
2721  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2722    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2723fi
2724
2725fi
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2727$as_echo "$ac_cv_host" >&6; }
2728case $ac_cv_host in
2729*-*-*) ;;
2730*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2731esac
2732host=$ac_cv_host
2733ac_save_IFS=$IFS; IFS='-'
2734set x $ac_cv_host
2735shift
2736host_cpu=$1
2737host_vendor=$2
2738shift; shift
2739# Remember, the first character of IFS is used to create $*,
2740# except with old shells:
2741host_os=$*
2742IFS=$ac_save_IFS
2743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2744
2745
2746# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2747# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2748# to avoid autoconf errors.
2749# Expand $ac_aux_dir to an absolute path.
2750am_aux_dir=`cd "$ac_aux_dir" && pwd`
2751
2752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757if test -n "$ac_tool_prefix"; then
2758  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2759set dummy ${ac_tool_prefix}gcc; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if ${ac_cv_prog_CC+:} false; then :
2763  $as_echo_n "(cached) " >&6
2764else
2765  if test -n "$CC"; then
2766  ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771  IFS=$as_save_IFS
2772  test -z "$as_dir" && as_dir=.
2773    for ac_exec_ext in '' $ac_executable_extensions; do
2774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777    break 2
2778  fi
2779done
2780  done
2781IFS=$as_save_IFS
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788$as_echo "$CC" >&6; }
2789else
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794
2795fi
2796if test -z "$ac_cv_prog_CC"; then
2797  ac_ct_CC=$CC
2798  # Extract the first word of "gcc", so it can be a program name with args.
2799set dummy gcc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$ac_ct_CC"; then
2806  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815    ac_cv_prog_ac_ct_CC="gcc"
2816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826if test -n "$ac_ct_CC"; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828$as_echo "$ac_ct_CC" >&6; }
2829else
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834  if test "x$ac_ct_CC" = x; then
2835    CC=""
2836  else
2837    case $cross_compiling:$ac_tool_warned in
2838yes:)
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841ac_tool_warned=yes ;;
2842esac
2843    CC=$ac_ct_CC
2844  fi
2845else
2846  CC="$ac_cv_prog_CC"
2847fi
2848
2849if test -z "$CC"; then
2850          if test -n "$ac_tool_prefix"; then
2851    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852set dummy ${ac_tool_prefix}cc; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_CC+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$CC"; then
2859  ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866    for ac_exec_ext in '' $ac_executable_extensions; do
2867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868    ac_cv_prog_CC="${ac_tool_prefix}cc"
2869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881$as_echo "$CC" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888  fi
2889fi
2890if test -z "$CC"; then
2891  # Extract the first word of "cc", so it can be a program name with args.
2892set dummy cc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901  ac_prog_rejected=no
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910       ac_prog_rejected=yes
2911       continue
2912     fi
2913    ac_cv_prog_CC="cc"
2914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918  done
2919IFS=$as_save_IFS
2920
2921if test $ac_prog_rejected = yes; then
2922  # We found a bogon in the path, so make sure we never use it.
2923  set dummy $ac_cv_prog_CC
2924  shift
2925  if test $# != 0; then
2926    # We chose a different compiler from the bogus one.
2927    # However, it has the same basename, so the bogon will be chosen
2928    # first if we set CC to just the basename; use the full file name.
2929    shift
2930    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2931  fi
2932fi
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938$as_echo "$CC" >&6; }
2939else
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945fi
2946if test -z "$CC"; then
2947  if test -n "$ac_tool_prefix"; then
2948  for ac_prog in cl.exe
2949  do
2950    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953$as_echo_n "checking for $ac_word... " >&6; }
2954if ${ac_cv_prog_CC+:} false; then :
2955  $as_echo_n "(cached) " >&6
2956else
2957  if test -n "$CC"; then
2958  ac_cv_prog_CC="$CC" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963  IFS=$as_save_IFS
2964  test -z "$as_dir" && as_dir=.
2965    for ac_exec_ext in '' $ac_executable_extensions; do
2966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969    break 2
2970  fi
2971done
2972  done
2973IFS=$as_save_IFS
2974
2975fi
2976fi
2977CC=$ac_cv_prog_CC
2978if test -n "$CC"; then
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980$as_echo "$CC" >&6; }
2981else
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983$as_echo "no" >&6; }
2984fi
2985
2986
2987    test -n "$CC" && break
2988  done
2989fi
2990if test -z "$CC"; then
2991  ac_ct_CC=$CC
2992  for ac_prog in cl.exe
2993do
2994  # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
2998if ${ac_cv_prog_ac_ct_CC+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  if test -n "$ac_ct_CC"; then
3002  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009    for ac_exec_ext in '' $ac_executable_extensions; do
3010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011    ac_cv_prog_ac_ct_CC="$ac_prog"
3012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013    break 2
3014  fi
3015done
3016  done
3017IFS=$as_save_IFS
3018
3019fi
3020fi
3021ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022if test -n "$ac_ct_CC"; then
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024$as_echo "$ac_ct_CC" >&6; }
3025else
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031  test -n "$ac_ct_CC" && break
3032done
3033
3034  if test "x$ac_ct_CC" = x; then
3035    CC=""
3036  else
3037    case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043    CC=$ac_ct_CC
3044  fi
3045fi
3046
3047fi
3048
3049
3050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error $? "no acceptable C compiler found in \$PATH
3053See \`config.log' for more details" "$LINENO" 5; }
3054
3055# Provide some information about the compiler.
3056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057set X $ac_compile
3058ac_compiler=$2
3059for ac_option in --version -v -V -qversion; do
3060  { { ac_try="$ac_compiler $ac_option >&5"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3068  ac_status=$?
3069  if test -s conftest.err; then
3070    sed '10a\
3071... rest of stderr output deleted ...
3072         10q' conftest.err >conftest.er1
3073    cat conftest.er1 >&5
3074  fi
3075  rm -f conftest.er1 conftest.err
3076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077  test $ac_status = 0; }
3078done
3079
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091ac_clean_files_save=$ac_clean_files
3092ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3093# Try to create an executable without -o first, disregard a.out.
3094# It will help us diagnose broken compilers, and finding out an intuition
3095# of exeext.
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097$as_echo_n "checking whether the C compiler works... " >&6; }
3098ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099
3100# The possible output files:
3101ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3102
3103ac_rmfiles=
3104for ac_file in $ac_files
3105do
3106  case $ac_file in
3107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109  esac
3110done
3111rm -f $ac_rmfiles
3112
3113if { { ac_try="$ac_link_default"
3114case "(($ac_try" in
3115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116  *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
3120  (eval "$ac_link_default") 2>&5
3121  ac_status=$?
3122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123  test $ac_status = 0; }; then :
3124  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3127# so that the user can short-circuit this test for compilers unknown to
3128# Autoconf.
3129for ac_file in $ac_files ''
3130do
3131  test -f "$ac_file" || continue
3132  case $ac_file in
3133    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3134	;;
3135    [ab].out )
3136	# We found the default executable, but exeext='' is most
3137	# certainly right.
3138	break;;
3139    *.* )
3140	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141	then :; else
3142	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143	fi
3144	# We set ac_cv_exeext here because the later test for it is not
3145	# safe: cross compilers may not add the suffix if given an `-o'
3146	# argument, so we may need to know it at that point already.
3147	# Even if this section looks crufty: it has the advantage of
3148	# actually working.
3149	break;;
3150    * )
3151	break;;
3152  esac
3153done
3154test "$ac_cv_exeext" = no && ac_cv_exeext=
3155
3156else
3157  ac_file=''
3158fi
3159if test -z "$ac_file"; then :
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162$as_echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167as_fn_error 77 "C compiler cannot create executables
3168See \`config.log' for more details" "$LINENO" 5; }
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171$as_echo "yes" >&6; }
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174$as_echo_n "checking for C compiler default output file name... " >&6; }
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176$as_echo "$ac_file" >&6; }
3177ac_exeext=$ac_cv_exeext
3178
3179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3180ac_clean_files=$ac_clean_files_save
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182$as_echo_n "checking for suffix of executables... " >&6; }
3183if { { ac_try="$ac_link"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
3190  (eval "$ac_link") 2>&5
3191  ac_status=$?
3192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193  test $ac_status = 0; }; then :
3194  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3196# work properly (i.e., refer to `conftest.exe'), while it won't with
3197# `rm'.
3198for ac_file in conftest.exe conftest conftest.*; do
3199  test -f "$ac_file" || continue
3200  case $ac_file in
3201    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203	  break;;
3204    * ) break;;
3205  esac
3206done
3207else
3208  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3211See \`config.log' for more details" "$LINENO" 5; }
3212fi
3213rm -f conftest conftest$ac_cv_exeext
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215$as_echo "$ac_cv_exeext" >&6; }
3216
3217rm -f conftest.$ac_ext
3218EXEEXT=$ac_cv_exeext
3219ac_exeext=$EXEEXT
3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222#include <stdio.h>
3223int
3224main ()
3225{
3226FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233ac_clean_files="$ac_clean_files conftest.out"
3234# Check that the compiler produces executables we can run.  If not, either
3235# the compiler is broken, or we cross compile.
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237$as_echo_n "checking whether we are cross compiling... " >&6; }
3238if test "$cross_compiling" != yes; then
3239  { { ac_try="$ac_link"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246  (eval "$ac_link") 2>&5
3247  ac_status=$?
3248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249  test $ac_status = 0; }
3250  if { ac_try='./conftest$ac_cv_exeext'
3251  { { case "(($ac_try" in
3252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253  *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
3257  (eval "$ac_try") 2>&5
3258  ac_status=$?
3259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260  test $ac_status = 0; }; }; then
3261    cross_compiling=no
3262  else
3263    if test "$cross_compiling" = maybe; then
3264	cross_compiling=yes
3265    else
3266	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details" "$LINENO" 5; }
3271    fi
3272  fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275$as_echo "$cross_compiling" >&6; }
3276
3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278ac_clean_files=$ac_clean_files_save
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280$as_echo_n "checking for suffix of object files... " >&6; }
3281if ${ac_cv_objext+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295rm -f conftest.o conftest.obj
3296if { { ac_try="$ac_compile"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_compile") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; then :
3307  for ac_file in conftest.o conftest.obj conftest.*; do
3308  test -f "$ac_file" || continue;
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3311    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312       break;;
3313  esac
3314done
3315else
3316  $as_echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of object files: cannot compile
3322See \`config.log' for more details" "$LINENO" 5; }
3323fi
3324rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327$as_echo "$ac_cv_objext" >&6; }
3328OBJEXT=$ac_cv_objext
3329ac_objext=$OBJEXT
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332if ${ac_cv_c_compiler_gnu+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337
3338int
3339main ()
3340{
3341#ifndef __GNUC__
3342       choke me
3343#endif
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"; then :
3350  ac_compiler_gnu=yes
3351else
3352  ac_compiler_gnu=no
3353fi
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360if test $ac_compiler_gnu = yes; then
3361  GCC=yes
3362else
3363  GCC=
3364fi
3365ac_test_CFLAGS=${CFLAGS+set}
3366ac_save_CFLAGS=$CFLAGS
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368$as_echo_n "checking whether $CC accepts -g... " >&6; }
3369if ${ac_cv_prog_cc_g+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  ac_save_c_werror_flag=$ac_c_werror_flag
3373   ac_c_werror_flag=yes
3374   ac_cv_prog_cc_g=no
3375   CFLAGS="-g"
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387if ac_fn_c_try_compile "$LINENO"; then :
3388  ac_cv_prog_cc_g=yes
3389else
3390  CFLAGS=""
3391      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393
3394int
3395main ()
3396{
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402if ac_fn_c_try_compile "$LINENO"; then :
3403
3404else
3405  ac_c_werror_flag=$ac_save_c_werror_flag
3406	 CFLAGS="-g"
3407	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418if ac_fn_c_try_compile "$LINENO"; then :
3419  ac_cv_prog_cc_g=yes
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426   ac_c_werror_flag=$ac_save_c_werror_flag
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429$as_echo "$ac_cv_prog_cc_g" >&6; }
3430if test "$ac_test_CFLAGS" = set; then
3431  CFLAGS=$ac_save_CFLAGS
3432elif test $ac_cv_prog_cc_g = yes; then
3433  if test "$GCC" = yes; then
3434    CFLAGS="-g -O2"
3435  else
3436    CFLAGS="-g"
3437  fi
3438else
3439  if test "$GCC" = yes; then
3440    CFLAGS="-O2"
3441  else
3442    CFLAGS=
3443  fi
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447if ${ac_cv_prog_cc_c89+:} false; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450  ac_cv_prog_cc_c89=no
3451ac_save_CC=$CC
3452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#include <stdarg.h>
3455#include <stdio.h>
3456struct stat;
3457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3458struct buf { int x; };
3459FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460static char *e (p, i)
3461     char **p;
3462     int i;
3463{
3464  return p[i];
3465}
3466static char *f (char * (*g) (char **, int), char **p, ...)
3467{
3468  char *s;
3469  va_list v;
3470  va_start (v,p);
3471  s = g (p, va_arg (v,int));
3472  va_end (v);
3473  return s;
3474}
3475
3476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3477   function prototypes and stuff, but not '\xHH' hex character constants.
3478   These don't provoke an error unfortunately, instead are silently treated
3479   as 'x'.  The following induces an error, until -std is added to get
3480   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3481   array size at least.  It's necessary to write '\x00'==0 to get something
3482   that's true only with -std.  */
3483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484
3485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3486   inside strings and character constants.  */
3487#define FOO(x) 'x'
3488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3489
3490int test (int i, double x);
3491struct s1 {int (*f) (int a);};
3492struct s2 {int (*f) (double a);};
3493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3494int argc;
3495char **argv;
3496int
3497main ()
3498{
3499return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3500  ;
3501  return 0;
3502}
3503_ACEOF
3504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3505	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506do
3507  CC="$ac_save_CC $ac_arg"
3508  if ac_fn_c_try_compile "$LINENO"; then :
3509  ac_cv_prog_cc_c89=$ac_arg
3510fi
3511rm -f core conftest.err conftest.$ac_objext
3512  test "x$ac_cv_prog_cc_c89" != "xno" && break
3513done
3514rm -f conftest.$ac_ext
3515CC=$ac_save_CC
3516
3517fi
3518# AC_CACHE_VAL
3519case "x$ac_cv_prog_cc_c89" in
3520  x)
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522$as_echo "none needed" >&6; } ;;
3523  xno)
3524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525$as_echo "unsupported" >&6; } ;;
3526  *)
3527    CC="$CC $ac_cv_prog_cc_c89"
3528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3530esac
3531if test "x$ac_cv_prog_cc_c89" != xno; then :
3532
3533fi
3534
3535ac_ext=c
3536ac_cpp='$CPP $CPPFLAGS'
3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3547$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3548if ${am_cv_prog_cc_c_o+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562  # Make sure it works both with $CC and with simple cc.
3563  # Following AC_PROG_CC_C_O, we do the test twice because some
3564  # compilers refuse to overwrite an existing .o file with -o,
3565  # though they will create one.
3566  am_cv_prog_cc_c_o=yes
3567  for am_i in 1 2; do
3568    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3569   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } \
3573         && test -f conftest2.$ac_objext; then
3574      : OK
3575    else
3576      am_cv_prog_cc_c_o=no
3577      break
3578    fi
3579  done
3580  rm -f core conftest*
3581  unset am_i
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3584$as_echo "$am_cv_prog_cc_c_o" >&6; }
3585if test "$am_cv_prog_cc_c_o" != yes; then
3586   # Losing compiler, so override with the script.
3587   # FIXME: It is wrong to rewrite CC.
3588   # But if we don't then we get into trouble of one sort or another.
3589   # A longer-term fix would be to have automake use am__CC in this case,
3590   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3591   CC="$am_aux_dir/compile $CC"
3592fi
3593ac_ext=c
3594ac_cpp='$CPP $CPPFLAGS'
3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599
3600
3601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3607$as_echo_n "checking how to run the C preprocessor... " >&6; }
3608# On Suns, sometimes $CPP names a directory.
3609if test -n "$CPP" && test -d "$CPP"; then
3610  CPP=
3611fi
3612if test -z "$CPP"; then
3613  if ${ac_cv_prog_CPP+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616      # Double quotes because CPP needs to be expanded
3617    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3618    do
3619      ac_preproc_ok=false
3620for ac_c_preproc_warn_flag in '' yes
3621do
3622  # Use a header file that comes with gcc, so configuring glibc
3623  # with a fresh cross-compiler works.
3624  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625  # <limits.h> exists even on freestanding compilers.
3626  # On the NeXT, cc -E runs the code through the compiler's parser,
3627  # not just through cpp. "Syntax error" is here to catch this case.
3628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630#ifdef __STDC__
3631# include <limits.h>
3632#else
3633# include <assert.h>
3634#endif
3635		     Syntax error
3636_ACEOF
3637if ac_fn_c_try_cpp "$LINENO"; then :
3638
3639else
3640  # Broken: fails on valid input.
3641continue
3642fi
3643rm -f conftest.err conftest.i conftest.$ac_ext
3644
3645  # OK, works on sane cases.  Now check whether nonexistent headers
3646  # can be detected and how.
3647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649#include <ac_nonexistent.h>
3650_ACEOF
3651if ac_fn_c_try_cpp "$LINENO"; then :
3652  # Broken: success on invalid input.
3653continue
3654else
3655  # Passes both tests.
3656ac_preproc_ok=:
3657break
3658fi
3659rm -f conftest.err conftest.i conftest.$ac_ext
3660
3661done
3662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663rm -f conftest.i conftest.err conftest.$ac_ext
3664if $ac_preproc_ok; then :
3665  break
3666fi
3667
3668    done
3669    ac_cv_prog_CPP=$CPP
3670
3671fi
3672  CPP=$ac_cv_prog_CPP
3673else
3674  ac_cv_prog_CPP=$CPP
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3677$as_echo "$CPP" >&6; }
3678ac_preproc_ok=false
3679for ac_c_preproc_warn_flag in '' yes
3680do
3681  # Use a header file that comes with gcc, so configuring glibc
3682  # with a fresh cross-compiler works.
3683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684  # <limits.h> exists even on freestanding compilers.
3685  # On the NeXT, cc -E runs the code through the compiler's parser,
3686  # not just through cpp. "Syntax error" is here to catch this case.
3687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689#ifdef __STDC__
3690# include <limits.h>
3691#else
3692# include <assert.h>
3693#endif
3694		     Syntax error
3695_ACEOF
3696if ac_fn_c_try_cpp "$LINENO"; then :
3697
3698else
3699  # Broken: fails on valid input.
3700continue
3701fi
3702rm -f conftest.err conftest.i conftest.$ac_ext
3703
3704  # OK, works on sane cases.  Now check whether nonexistent headers
3705  # can be detected and how.
3706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708#include <ac_nonexistent.h>
3709_ACEOF
3710if ac_fn_c_try_cpp "$LINENO"; then :
3711  # Broken: success on invalid input.
3712continue
3713else
3714  # Passes both tests.
3715ac_preproc_ok=:
3716break
3717fi
3718rm -f conftest.err conftest.i conftest.$ac_ext
3719
3720done
3721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3722rm -f conftest.i conftest.err conftest.$ac_ext
3723if $ac_preproc_ok; then :
3724
3725else
3726  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3729See \`config.log' for more details" "$LINENO" 5; }
3730fi
3731
3732ac_ext=c
3733ac_cpp='$CPP $CPPFLAGS'
3734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737
3738
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3740$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3741if ${ac_cv_path_GREP+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  if test -z "$GREP"; then
3745  ac_path_GREP_found=false
3746  # Loop through the user's path and test for each of PROGNAME-LIST
3747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749do
3750  IFS=$as_save_IFS
3751  test -z "$as_dir" && as_dir=.
3752    for ac_prog in grep ggrep; do
3753    for ac_exec_ext in '' $ac_executable_extensions; do
3754      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755      as_fn_executable_p "$ac_path_GREP" || continue
3756# Check for GNU ac_path_GREP and select it if it is found.
3757  # Check for GNU $ac_path_GREP
3758case `"$ac_path_GREP" --version 2>&1` in
3759*GNU*)
3760  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3761*)
3762  ac_count=0
3763  $as_echo_n 0123456789 >"conftest.in"
3764  while :
3765  do
3766    cat "conftest.in" "conftest.in" >"conftest.tmp"
3767    mv "conftest.tmp" "conftest.in"
3768    cp "conftest.in" "conftest.nl"
3769    $as_echo 'GREP' >> "conftest.nl"
3770    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772    as_fn_arith $ac_count + 1 && ac_count=$as_val
3773    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774      # Best one so far, save it but keep looking for a better one
3775      ac_cv_path_GREP="$ac_path_GREP"
3776      ac_path_GREP_max=$ac_count
3777    fi
3778    # 10*(2^10) chars as input seems more than enough
3779    test $ac_count -gt 10 && break
3780  done
3781  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782esac
3783
3784      $ac_path_GREP_found && break 3
3785    done
3786  done
3787  done
3788IFS=$as_save_IFS
3789  if test -z "$ac_cv_path_GREP"; then
3790    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3791  fi
3792else
3793  ac_cv_path_GREP=$GREP
3794fi
3795
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3798$as_echo "$ac_cv_path_GREP" >&6; }
3799 GREP="$ac_cv_path_GREP"
3800
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3803$as_echo_n "checking for egrep... " >&6; }
3804if ${ac_cv_path_EGREP+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3808   then ac_cv_path_EGREP="$GREP -E"
3809   else
3810     if test -z "$EGREP"; then
3811  ac_path_EGREP_found=false
3812  # Loop through the user's path and test for each of PROGNAME-LIST
3813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3815do
3816  IFS=$as_save_IFS
3817  test -z "$as_dir" && as_dir=.
3818    for ac_prog in egrep; do
3819    for ac_exec_ext in '' $ac_executable_extensions; do
3820      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3821      as_fn_executable_p "$ac_path_EGREP" || continue
3822# Check for GNU ac_path_EGREP and select it if it is found.
3823  # Check for GNU $ac_path_EGREP
3824case `"$ac_path_EGREP" --version 2>&1` in
3825*GNU*)
3826  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3827*)
3828  ac_count=0
3829  $as_echo_n 0123456789 >"conftest.in"
3830  while :
3831  do
3832    cat "conftest.in" "conftest.in" >"conftest.tmp"
3833    mv "conftest.tmp" "conftest.in"
3834    cp "conftest.in" "conftest.nl"
3835    $as_echo 'EGREP' >> "conftest.nl"
3836    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838    as_fn_arith $ac_count + 1 && ac_count=$as_val
3839    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840      # Best one so far, save it but keep looking for a better one
3841      ac_cv_path_EGREP="$ac_path_EGREP"
3842      ac_path_EGREP_max=$ac_count
3843    fi
3844    # 10*(2^10) chars as input seems more than enough
3845    test $ac_count -gt 10 && break
3846  done
3847  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848esac
3849
3850      $ac_path_EGREP_found && break 3
3851    done
3852  done
3853  done
3854IFS=$as_save_IFS
3855  if test -z "$ac_cv_path_EGREP"; then
3856    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3857  fi
3858else
3859  ac_cv_path_EGREP=$EGREP
3860fi
3861
3862   fi
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3865$as_echo "$ac_cv_path_EGREP" >&6; }
3866 EGREP="$ac_cv_path_EGREP"
3867
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3870$as_echo_n "checking for ANSI C header files... " >&6; }
3871if ${ac_cv_header_stdc+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876#include <stdlib.h>
3877#include <stdarg.h>
3878#include <string.h>
3879#include <float.h>
3880
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890  ac_cv_header_stdc=yes
3891else
3892  ac_cv_header_stdc=no
3893fi
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896if test $ac_cv_header_stdc = yes; then
3897  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900#include <string.h>
3901
3902_ACEOF
3903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904  $EGREP "memchr" >/dev/null 2>&1; then :
3905
3906else
3907  ac_cv_header_stdc=no
3908fi
3909rm -f conftest*
3910
3911fi
3912
3913if test $ac_cv_header_stdc = yes; then
3914  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917#include <stdlib.h>
3918
3919_ACEOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921  $EGREP "free" >/dev/null 2>&1; then :
3922
3923else
3924  ac_cv_header_stdc=no
3925fi
3926rm -f conftest*
3927
3928fi
3929
3930if test $ac_cv_header_stdc = yes; then
3931  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932  if test "$cross_compiling" = yes; then :
3933  :
3934else
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#include <ctype.h>
3938#include <stdlib.h>
3939#if ((' ' & 0x0FF) == 0x020)
3940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3942#else
3943# define ISLOWER(c) \
3944		   (('a' <= (c) && (c) <= 'i') \
3945		     || ('j' <= (c) && (c) <= 'r') \
3946		     || ('s' <= (c) && (c) <= 'z'))
3947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3948#endif
3949
3950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3951int
3952main ()
3953{
3954  int i;
3955  for (i = 0; i < 256; i++)
3956    if (XOR (islower (i), ISLOWER (i))
3957	|| toupper (i) != TOUPPER (i))
3958      return 2;
3959  return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_run "$LINENO"; then :
3963
3964else
3965  ac_cv_header_stdc=no
3966fi
3967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3968  conftest.$ac_objext conftest.beam conftest.$ac_ext
3969fi
3970
3971fi
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3974$as_echo "$ac_cv_header_stdc" >&6; }
3975if test $ac_cv_header_stdc = yes; then
3976
3977$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3978
3979fi
3980
3981# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983		  inttypes.h stdint.h unistd.h
3984do :
3985  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3987"
3988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3989  cat >>confdefs.h <<_ACEOF
3990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991_ACEOF
3992
3993fi
3994
3995done
3996
3997
3998
3999  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4000if test "x$ac_cv_header_minix_config_h" = xyes; then :
4001  MINIX=yes
4002else
4003  MINIX=
4004fi
4005
4006
4007  if test "$MINIX" = yes; then
4008
4009$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4010
4011
4012$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4013
4014
4015$as_echo "#define _MINIX 1" >>confdefs.h
4016
4017  fi
4018
4019
4020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4021$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4022if ${ac_cv_safe_to_define___extensions__+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027
4028#         define __EXTENSIONS__ 1
4029          $ac_includes_default
4030int
4031main ()
4032{
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038if ac_fn_c_try_compile "$LINENO"; then :
4039  ac_cv_safe_to_define___extensions__=yes
4040else
4041  ac_cv_safe_to_define___extensions__=no
4042fi
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4046$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4047  test $ac_cv_safe_to_define___extensions__ = yes &&
4048    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4049
4050  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4051
4052  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4053
4054  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4055
4056  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4057
4058
4059
4060# Initialize Automake
4061am__api_version='1.16'
4062
4063# Find a good install program.  We prefer a C program (faster),
4064# so one script is as good as another.  But avoid the broken or
4065# incompatible versions:
4066# SysV /etc/install, /usr/sbin/install
4067# SunOS /usr/etc/install
4068# IRIX /sbin/install
4069# AIX /bin/install
4070# AmigaOS /C/install, which installs bootblocks on floppy discs
4071# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4072# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4073# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4074# OS/2's system install, which has a completely different semantic
4075# ./install, which can be erroneously created by make from ./install.sh.
4076# Reject install programs that cannot install multiple files.
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4078$as_echo_n "checking for a BSD-compatible install... " >&6; }
4079if test -z "$INSTALL"; then
4080if ${ac_cv_path_install+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086  IFS=$as_save_IFS
4087  test -z "$as_dir" && as_dir=.
4088    # Account for people who put trailing slashes in PATH elements.
4089case $as_dir/ in #((
4090  ./ | .// | /[cC]/* | \
4091  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4092  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4093  /usr/ucb/* ) ;;
4094  *)
4095    # OSF1 and SCO ODT 3.0 have their own names for install.
4096    # Don't use installbsd from OSF since it installs stuff as root
4097    # by default.
4098    for ac_prog in ginstall scoinst install; do
4099      for ac_exec_ext in '' $ac_executable_extensions; do
4100	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4101	  if test $ac_prog = install &&
4102	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4103	    # AIX install.  It has an incompatible calling convention.
4104	    :
4105	  elif test $ac_prog = install &&
4106	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4107	    # program-specific install script used by HP pwplus--don't use.
4108	    :
4109	  else
4110	    rm -rf conftest.one conftest.two conftest.dir
4111	    echo one > conftest.one
4112	    echo two > conftest.two
4113	    mkdir conftest.dir
4114	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4115	      test -s conftest.one && test -s conftest.two &&
4116	      test -s conftest.dir/conftest.one &&
4117	      test -s conftest.dir/conftest.two
4118	    then
4119	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4120	      break 3
4121	    fi
4122	  fi
4123	fi
4124      done
4125    done
4126    ;;
4127esac
4128
4129  done
4130IFS=$as_save_IFS
4131
4132rm -rf conftest.one conftest.two conftest.dir
4133
4134fi
4135  if test "${ac_cv_path_install+set}" = set; then
4136    INSTALL=$ac_cv_path_install
4137  else
4138    # As a last resort, use the slow shell script.  Don't cache a
4139    # value for INSTALL within a source directory, because that will
4140    # break other packages using the cache if that directory is
4141    # removed, or if the value is a relative name.
4142    INSTALL=$ac_install_sh
4143  fi
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4146$as_echo "$INSTALL" >&6; }
4147
4148# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4149# It thinks the first close brace ends the variable substitution.
4150test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4151
4152test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4153
4154test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4157$as_echo_n "checking whether build environment is sane... " >&6; }
4158# Reject unsafe characters in $srcdir or the absolute working directory
4159# name.  Accept space and tab only in the latter.
4160am_lf='
4161'
4162case `pwd` in
4163  *[\\\"\#\$\&\'\`$am_lf]*)
4164    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4165esac
4166case $srcdir in
4167  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4168    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4169esac
4170
4171# Do 'set' in a subshell so we don't clobber the current shell's
4172# arguments.  Must try -L first in case configure is actually a
4173# symlink; some systems play weird games with the mod time of symlinks
4174# (eg FreeBSD returns the mod time of the symlink's containing
4175# directory).
4176if (
4177   am_has_slept=no
4178   for am_try in 1 2; do
4179     echo "timestamp, slept: $am_has_slept" > conftest.file
4180     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4181     if test "$*" = "X"; then
4182	# -L didn't work.
4183	set X `ls -t "$srcdir/configure" conftest.file`
4184     fi
4185     if test "$*" != "X $srcdir/configure conftest.file" \
4186	&& test "$*" != "X conftest.file $srcdir/configure"; then
4187
4188	# If neither matched, then we have a broken ls.  This can happen
4189	# if, for instance, CONFIG_SHELL is bash and it inherits a
4190	# broken ls alias from the environment.  This has actually
4191	# happened.  Such a system could not be considered "sane".
4192	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4193  alias in your environment" "$LINENO" 5
4194     fi
4195     if test "$2" = conftest.file || test $am_try -eq 2; then
4196       break
4197     fi
4198     # Just in case.
4199     sleep 1
4200     am_has_slept=yes
4201   done
4202   test "$2" = conftest.file
4203   )
4204then
4205   # Ok.
4206   :
4207else
4208   as_fn_error $? "newly created file is older than distributed files!
4209Check your system clock" "$LINENO" 5
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212$as_echo "yes" >&6; }
4213# If we didn't sleep, we still need to ensure time stamps of config.status and
4214# generated files are strictly newer.
4215am_sleep_pid=
4216if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4217  ( sleep 1 ) &
4218  am_sleep_pid=$!
4219fi
4220
4221rm -f conftest.file
4222
4223test "$program_prefix" != NONE &&
4224  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4225# Use a double $ so make ignores it.
4226test "$program_suffix" != NONE &&
4227  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4228# Double any \ or $.
4229# By default was `s,x,x', remove it if useless.
4230ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4231program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4232
4233if test x"${MISSING+set}" != xset; then
4234  case $am_aux_dir in
4235  *\ * | *\	*)
4236    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4237  *)
4238    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4239  esac
4240fi
4241# Use eval to expand $SHELL
4242if eval "$MISSING --is-lightweight"; then
4243  am_missing_run="$MISSING "
4244else
4245  am_missing_run=
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4247$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4248fi
4249
4250if test x"${install_sh+set}" != xset; then
4251  case $am_aux_dir in
4252  *\ * | *\	*)
4253    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4254  *)
4255    install_sh="\${SHELL} $am_aux_dir/install-sh"
4256  esac
4257fi
4258
4259# Installed binaries are usually stripped using 'strip' when the user
4260# run "make install-strip".  However 'strip' might not be the right
4261# tool to use in cross-compilation environments, therefore Automake
4262# will honor the 'STRIP' environment variable to overrule this program.
4263if test "$cross_compiling" != no; then
4264  if test -n "$ac_tool_prefix"; then
4265  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4266set dummy ${ac_tool_prefix}strip; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if ${ac_cv_prog_STRIP+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  if test -n "$STRIP"; then
4273  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278  IFS=$as_save_IFS
4279  test -z "$as_dir" && as_dir=.
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_STRIP="${ac_tool_prefix}strip"
4283    $as_echo "$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
4292STRIP=$ac_cv_prog_STRIP
4293if test -n "$STRIP"; then
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4295$as_echo "$STRIP" >&6; }
4296else
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
4299fi
4300
4301
4302fi
4303if test -z "$ac_cv_prog_STRIP"; then
4304  ac_ct_STRIP=$STRIP
4305  # Extract the first word of "strip", so it can be a program name with args.
4306set dummy strip; ac_word=$2
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308$as_echo_n "checking for $ac_word... " >&6; }
4309if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4310  $as_echo_n "(cached) " >&6
4311else
4312  if test -n "$ac_ct_STRIP"; then
4313  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4314else
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318  IFS=$as_save_IFS
4319  test -z "$as_dir" && as_dir=.
4320    for ac_exec_ext in '' $ac_executable_extensions; do
4321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322    ac_cv_prog_ac_ct_STRIP="strip"
4323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324    break 2
4325  fi
4326done
4327  done
4328IFS=$as_save_IFS
4329
4330fi
4331fi
4332ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4333if test -n "$ac_ct_STRIP"; then
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4335$as_echo "$ac_ct_STRIP" >&6; }
4336else
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338$as_echo "no" >&6; }
4339fi
4340
4341  if test "x$ac_ct_STRIP" = x; then
4342    STRIP=":"
4343  else
4344    case $cross_compiling:$ac_tool_warned in
4345yes:)
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348ac_tool_warned=yes ;;
4349esac
4350    STRIP=$ac_ct_STRIP
4351  fi
4352else
4353  STRIP="$ac_cv_prog_STRIP"
4354fi
4355
4356fi
4357INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4360$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4361if test -z "$MKDIR_P"; then
4362  if ${ac_cv_path_mkdir+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370    for ac_prog in mkdir gmkdir; do
4371	 for ac_exec_ext in '' $ac_executable_extensions; do
4372	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4373	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4374	     'mkdir (GNU coreutils) '* | \
4375	     'mkdir (coreutils) '* | \
4376	     'mkdir (fileutils) '4.1*)
4377	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4378	       break 3;;
4379	   esac
4380	 done
4381       done
4382  done
4383IFS=$as_save_IFS
4384
4385fi
4386
4387  test -d ./--version && rmdir ./--version
4388  if test "${ac_cv_path_mkdir+set}" = set; then
4389    MKDIR_P="$ac_cv_path_mkdir -p"
4390  else
4391    # As a last resort, use the slow shell script.  Don't cache a
4392    # value for MKDIR_P within a source directory, because that will
4393    # break other packages using the cache if that directory is
4394    # removed, or if the value is a relative name.
4395    MKDIR_P="$ac_install_sh -d"
4396  fi
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4399$as_echo "$MKDIR_P" >&6; }
4400
4401for ac_prog in gawk mawk nawk awk
4402do
4403  # Extract the first word of "$ac_prog", so it can be a program name with args.
4404set dummy $ac_prog; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if ${ac_cv_prog_AWK+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -n "$AWK"; then
4411  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420    ac_cv_prog_AWK="$ac_prog"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430AWK=$ac_cv_prog_AWK
4431if test -n "$AWK"; then
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4433$as_echo "$AWK" >&6; }
4434else
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440  test -n "$AWK" && break
4441done
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4444$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4445set x ${MAKE-make}
4446ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4447if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  cat >conftest.make <<\_ACEOF
4451SHELL = /bin/sh
4452all:
4453	@echo '@@@%%%=$(MAKE)=@@@%%%'
4454_ACEOF
4455# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4456case `${MAKE-make} -f conftest.make 2>/dev/null` in
4457  *@@@%%%=?*=@@@%%%*)
4458    eval ac_cv_prog_make_${ac_make}_set=yes;;
4459  *)
4460    eval ac_cv_prog_make_${ac_make}_set=no;;
4461esac
4462rm -f conftest.make
4463fi
4464if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466$as_echo "yes" >&6; }
4467  SET_MAKE=
4468else
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470$as_echo "no" >&6; }
4471  SET_MAKE="MAKE=${MAKE-make}"
4472fi
4473
4474rm -rf .tst 2>/dev/null
4475mkdir .tst 2>/dev/null
4476if test -d .tst; then
4477  am__leading_dot=.
4478else
4479  am__leading_dot=_
4480fi
4481rmdir .tst 2>/dev/null
4482
4483DEPDIR="${am__leading_dot}deps"
4484
4485ac_config_commands="$ac_config_commands depfiles"
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4488$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4489cat > confinc.mk << 'END'
4490am__doit:
4491	@echo this is the am__doit target >confinc.out
4492.PHONY: am__doit
4493END
4494am__include="#"
4495am__quote=
4496# BSD make does it like this.
4497echo '.include "confinc.mk" # ignored' > confmf.BSD
4498# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4499echo 'include confinc.mk # ignored' > confmf.GNU
4500_am_result=no
4501for s in GNU BSD; do
4502  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4503   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); }
4507  case $?:`cat confinc.out 2>/dev/null` in #(
4508  '0:this is the am__doit target') :
4509    case $s in #(
4510  BSD) :
4511    am__include='.include' am__quote='"' ;; #(
4512  *) :
4513    am__include='include' am__quote='' ;;
4514esac ;; #(
4515  *) :
4516     ;;
4517esac
4518  if test "$am__include" != "#"; then
4519    _am_result="yes ($s style)"
4520    break
4521  fi
4522done
4523rm -f confinc.* confmf.*
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4525$as_echo "${_am_result}" >&6; }
4526
4527# Check whether --enable-dependency-tracking was given.
4528if test "${enable_dependency_tracking+set}" = set; then :
4529  enableval=$enable_dependency_tracking;
4530fi
4531
4532if test "x$enable_dependency_tracking" != xno; then
4533  am_depcomp="$ac_aux_dir/depcomp"
4534  AMDEPBACKSLASH='\'
4535  am__nodep='_no'
4536fi
4537 if test "x$enable_dependency_tracking" != xno; then
4538  AMDEP_TRUE=
4539  AMDEP_FALSE='#'
4540else
4541  AMDEP_TRUE='#'
4542  AMDEP_FALSE=
4543fi
4544
4545
4546# Check whether --enable-silent-rules was given.
4547if test "${enable_silent_rules+set}" = set; then :
4548  enableval=$enable_silent_rules;
4549fi
4550
4551case $enable_silent_rules in # (((
4552  yes) AM_DEFAULT_VERBOSITY=0;;
4553   no) AM_DEFAULT_VERBOSITY=1;;
4554    *) AM_DEFAULT_VERBOSITY=1;;
4555esac
4556am_make=${MAKE-make}
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4558$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4559if ${am_cv_make_support_nested_variables+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  if $as_echo 'TRUE=$(BAR$(V))
4563BAR0=false
4564BAR1=true
4565V=1
4566am__doit:
4567	@$(TRUE)
4568.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4569  am_cv_make_support_nested_variables=yes
4570else
4571  am_cv_make_support_nested_variables=no
4572fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4575$as_echo "$am_cv_make_support_nested_variables" >&6; }
4576if test $am_cv_make_support_nested_variables = yes; then
4577    AM_V='$(V)'
4578  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4579else
4580  AM_V=$AM_DEFAULT_VERBOSITY
4581  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4582fi
4583AM_BACKSLASH='\'
4584
4585if test "`cd $srcdir && pwd`" != "`pwd`"; then
4586  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4587  # is not polluted with repeated "-I."
4588  am__isrc=' -I$(srcdir)'
4589  # test to see if srcdir already configured
4590  if test -f $srcdir/config.status; then
4591    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4592  fi
4593fi
4594
4595# test whether we have cygpath
4596if test -z "$CYGPATH_W"; then
4597  if (cygpath --version) >/dev/null 2>/dev/null; then
4598    CYGPATH_W='cygpath -w'
4599  else
4600    CYGPATH_W=echo
4601  fi
4602fi
4603
4604
4605# Define the identity of the package.
4606 PACKAGE='libX11'
4607 VERSION='1.7.0'
4608
4609
4610cat >>confdefs.h <<_ACEOF
4611#define PACKAGE "$PACKAGE"
4612_ACEOF
4613
4614
4615cat >>confdefs.h <<_ACEOF
4616#define VERSION "$VERSION"
4617_ACEOF
4618
4619# Some tools Automake needs.
4620
4621ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4622
4623
4624AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4625
4626
4627AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4628
4629
4630AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4631
4632
4633MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4634
4635# For better backward compatibility.  To be removed once Automake 1.9.x
4636# dies out for good.  For more background, see:
4637# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4638# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4639mkdir_p='$(MKDIR_P)'
4640
4641# We need awk for the "check" target (and possibly the TAP driver).  The
4642# system "awk" is bad on some platforms.
4643# Always define AMTAR for backward compatibility.  Yes, it's still used
4644# in the wild :-(  We should find a proper way to deprecate it ...
4645AMTAR='$${TAR-tar}'
4646
4647
4648# We'll loop over all known methods to create a tar archive until one works.
4649_am_tools='gnutar  pax cpio none'
4650
4651am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4652
4653
4654
4655
4656
4657depcc="$CC"   am_compiler_list=
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4660$as_echo_n "checking dependency style of $depcc... " >&6; }
4661if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4665  # We make a subdir and do the tests there.  Otherwise we can end up
4666  # making bogus files that we don't know about and never remove.  For
4667  # instance it was reported that on HP-UX the gcc test will end up
4668  # making a dummy file named 'D' -- because '-MD' means "put the output
4669  # in D".
4670  rm -rf conftest.dir
4671  mkdir conftest.dir
4672  # Copy depcomp to subdir because otherwise we won't find it if we're
4673  # using a relative directory.
4674  cp "$am_depcomp" conftest.dir
4675  cd conftest.dir
4676  # We will build objects and dependencies in a subdirectory because
4677  # it helps to detect inapplicable dependency modes.  For instance
4678  # both Tru64's cc and ICC support -MD to output dependencies as a
4679  # side effect of compilation, but ICC will put the dependencies in
4680  # the current directory while Tru64 will put them in the object
4681  # directory.
4682  mkdir sub
4683
4684  am_cv_CC_dependencies_compiler_type=none
4685  if test "$am_compiler_list" = ""; then
4686     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4687  fi
4688  am__universal=false
4689  case " $depcc " in #(
4690     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4691     esac
4692
4693  for depmode in $am_compiler_list; do
4694    # Setup a source with many dependencies, because some compilers
4695    # like to wrap large dependency lists on column 80 (with \), and
4696    # we should not choose a depcomp mode which is confused by this.
4697    #
4698    # We need to recreate these files for each test, as the compiler may
4699    # overwrite some of them when testing with obscure command lines.
4700    # This happens at least with the AIX C compiler.
4701    : > sub/conftest.c
4702    for i in 1 2 3 4 5 6; do
4703      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4704      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4705      # Solaris 10 /bin/sh.
4706      echo '/* dummy */' > sub/conftst$i.h
4707    done
4708    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4709
4710    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4711    # mode.  It turns out that the SunPro C++ compiler does not properly
4712    # handle '-M -o', and we need to detect this.  Also, some Intel
4713    # versions had trouble with output in subdirs.
4714    am__obj=sub/conftest.${OBJEXT-o}
4715    am__minus_obj="-o $am__obj"
4716    case $depmode in
4717    gcc)
4718      # This depmode causes a compiler race in universal mode.
4719      test "$am__universal" = false || continue
4720      ;;
4721    nosideeffect)
4722      # After this tag, mechanisms are not by side-effect, so they'll
4723      # only be used when explicitly requested.
4724      if test "x$enable_dependency_tracking" = xyes; then
4725	continue
4726      else
4727	break
4728      fi
4729      ;;
4730    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4731      # This compiler won't grok '-c -o', but also, the minuso test has
4732      # not run yet.  These depmodes are late enough in the game, and
4733      # so weak that their functioning should not be impacted.
4734      am__obj=conftest.${OBJEXT-o}
4735      am__minus_obj=
4736      ;;
4737    none) break ;;
4738    esac
4739    if depmode=$depmode \
4740       source=sub/conftest.c object=$am__obj \
4741       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4742       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4743         >/dev/null 2>conftest.err &&
4744       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4745       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4746       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4747       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4748      # icc doesn't choke on unknown options, it will just issue warnings
4749      # or remarks (even with -Werror).  So we grep stderr for any message
4750      # that says an option was ignored or not supported.
4751      # When given -MP, icc 7.0 and 7.1 complain thusly:
4752      #   icc: Command line warning: ignoring option '-M'; no argument required
4753      # The diagnosis changed in icc 8.0:
4754      #   icc: Command line remark: option '-MP' not supported
4755      if (grep 'ignoring option' conftest.err ||
4756          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4757        am_cv_CC_dependencies_compiler_type=$depmode
4758        break
4759      fi
4760    fi
4761  done
4762
4763  cd ..
4764  rm -rf conftest.dir
4765else
4766  am_cv_CC_dependencies_compiler_type=none
4767fi
4768
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4771$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4772CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4773
4774 if
4775  test "x$enable_dependency_tracking" != xno \
4776  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4777  am__fastdepCC_TRUE=
4778  am__fastdepCC_FALSE='#'
4779else
4780  am__fastdepCC_TRUE='#'
4781  am__fastdepCC_FALSE=
4782fi
4783
4784
4785
4786# POSIX will say in a future version that running "rm -f" with no argument
4787# is OK; and we want to be able to make that assumption in our Makefile
4788# recipes.  So use an aggressive probe to check that the usage we want is
4789# actually supported "in the wild" to an acceptable degree.
4790# See automake bug#10828.
4791# To make any issue more visible, cause the running configure to be aborted
4792# by default if the 'rm' program in use doesn't match our expectations; the
4793# user can still override this though.
4794if rm -f && rm -fr && rm -rf; then : OK; else
4795  cat >&2 <<'END'
4796Oops!
4797
4798Your 'rm' program seems unable to run without file operands specified
4799on the command line, even when the '-f' option is present.  This is contrary
4800to the behaviour of most rm programs out there, and not conforming with
4801the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4802
4803Please tell bug-automake@gnu.org about your system, including the value
4804of your $PATH and any error possibly output before this message.  This
4805can help us improve future automake versions.
4806
4807END
4808  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4809    echo 'Configuration will proceed anyway, since you have set the' >&2
4810    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4811    echo >&2
4812  else
4813    cat >&2 <<'END'
4814Aborting the configuration process, to ensure you take notice of the issue.
4815
4816You can download and install GNU coreutils to get an 'rm' implementation
4817that behaves properly: <https://www.gnu.org/software/coreutils/>.
4818
4819If you want to complete the configuration process using your problematic
4820'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4821to "yes", and re-run configure.
4822
4823END
4824    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4825  fi
4826fi
4827
4828
4829# Initialize libtool
4830case `pwd` in
4831  *\ * | *\	*)
4832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4833$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4834esac
4835
4836
4837
4838macro_version='2.4.6'
4839macro_revision='2.4.6'
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853ltmain=$ac_aux_dir/ltmain.sh
4854
4855# Backslashify metacharacters that are still active within
4856# double-quoted strings.
4857sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4858
4859# Same as above, but do not quote variable references.
4860double_quote_subst='s/\(["`\\]\)/\\\1/g'
4861
4862# Sed substitution to delay expansion of an escaped shell variable in a
4863# double_quote_subst'ed string.
4864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4865
4866# Sed substitution to delay expansion of an escaped single quote.
4867delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4868
4869# Sed substitution to avoid accidental globbing in evaled expressions
4870no_glob_subst='s/\*/\\\*/g'
4871
4872ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4873ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4874ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4877$as_echo_n "checking how to print strings... " >&6; }
4878# Test print first, because it will be a builtin if present.
4879if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4880   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4881  ECHO='print -r --'
4882elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4883  ECHO='printf %s\n'
4884else
4885  # Use this function as a fallback that always works.
4886  func_fallback_echo ()
4887  {
4888    eval 'cat <<_LTECHO_EOF
4889$1
4890_LTECHO_EOF'
4891  }
4892  ECHO='func_fallback_echo'
4893fi
4894
4895# func_echo_all arg...
4896# Invoke $ECHO with all args, space-separated.
4897func_echo_all ()
4898{
4899    $ECHO ""
4900}
4901
4902case $ECHO in
4903  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4904$as_echo "printf" >&6; } ;;
4905  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4906$as_echo "print -r" >&6; } ;;
4907  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4908$as_echo "cat" >&6; } ;;
4909esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4925$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4926if ${ac_cv_path_SED+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4930     for ac_i in 1 2 3 4 5 6 7; do
4931       ac_script="$ac_script$as_nl$ac_script"
4932     done
4933     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4934     { ac_script=; unset ac_script;}
4935     if test -z "$SED"; then
4936  ac_path_SED_found=false
4937  # Loop through the user's path and test for each of PROGNAME-LIST
4938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943    for ac_prog in sed gsed; do
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4946      as_fn_executable_p "$ac_path_SED" || continue
4947# Check for GNU ac_path_SED and select it if it is found.
4948  # Check for GNU $ac_path_SED
4949case `"$ac_path_SED" --version 2>&1` in
4950*GNU*)
4951  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4952*)
4953  ac_count=0
4954  $as_echo_n 0123456789 >"conftest.in"
4955  while :
4956  do
4957    cat "conftest.in" "conftest.in" >"conftest.tmp"
4958    mv "conftest.tmp" "conftest.in"
4959    cp "conftest.in" "conftest.nl"
4960    $as_echo '' >> "conftest.nl"
4961    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963    as_fn_arith $ac_count + 1 && ac_count=$as_val
4964    if test $ac_count -gt ${ac_path_SED_max-0}; then
4965      # Best one so far, save it but keep looking for a better one
4966      ac_cv_path_SED="$ac_path_SED"
4967      ac_path_SED_max=$ac_count
4968    fi
4969    # 10*(2^10) chars as input seems more than enough
4970    test $ac_count -gt 10 && break
4971  done
4972  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973esac
4974
4975      $ac_path_SED_found && break 3
4976    done
4977  done
4978  done
4979IFS=$as_save_IFS
4980  if test -z "$ac_cv_path_SED"; then
4981    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4982  fi
4983else
4984  ac_cv_path_SED=$SED
4985fi
4986
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4989$as_echo "$ac_cv_path_SED" >&6; }
4990 SED="$ac_cv_path_SED"
4991  rm -f conftest.sed
4992
4993test -z "$SED" && SED=sed
4994Xsed="$SED -e 1s/^X//"
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5007$as_echo_n "checking for fgrep... " >&6; }
5008if ${ac_cv_path_FGREP+:} false; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5012   then ac_cv_path_FGREP="$GREP -F"
5013   else
5014     if test -z "$FGREP"; then
5015  ac_path_FGREP_found=false
5016  # Loop through the user's path and test for each of PROGNAME-LIST
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_prog in fgrep; do
5023    for ac_exec_ext in '' $ac_executable_extensions; do
5024      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5025      as_fn_executable_p "$ac_path_FGREP" || continue
5026# Check for GNU ac_path_FGREP and select it if it is found.
5027  # Check for GNU $ac_path_FGREP
5028case `"$ac_path_FGREP" --version 2>&1` in
5029*GNU*)
5030  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5031*)
5032  ac_count=0
5033  $as_echo_n 0123456789 >"conftest.in"
5034  while :
5035  do
5036    cat "conftest.in" "conftest.in" >"conftest.tmp"
5037    mv "conftest.tmp" "conftest.in"
5038    cp "conftest.in" "conftest.nl"
5039    $as_echo 'FGREP' >> "conftest.nl"
5040    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042    as_fn_arith $ac_count + 1 && ac_count=$as_val
5043    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5044      # Best one so far, save it but keep looking for a better one
5045      ac_cv_path_FGREP="$ac_path_FGREP"
5046      ac_path_FGREP_max=$ac_count
5047    fi
5048    # 10*(2^10) chars as input seems more than enough
5049    test $ac_count -gt 10 && break
5050  done
5051  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052esac
5053
5054      $ac_path_FGREP_found && break 3
5055    done
5056  done
5057  done
5058IFS=$as_save_IFS
5059  if test -z "$ac_cv_path_FGREP"; then
5060    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061  fi
5062else
5063  ac_cv_path_FGREP=$FGREP
5064fi
5065
5066   fi
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5069$as_echo "$ac_cv_path_FGREP" >&6; }
5070 FGREP="$ac_cv_path_FGREP"
5071
5072
5073test -z "$GREP" && GREP=grep
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093# Check whether --with-gnu-ld was given.
5094if test "${with_gnu_ld+set}" = set; then :
5095  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5096else
5097  with_gnu_ld=no
5098fi
5099
5100ac_prog=ld
5101if test yes = "$GCC"; then
5102  # Check if gcc -print-prog-name=ld gives a path.
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5104$as_echo_n "checking for ld used by $CC... " >&6; }
5105  case $host in
5106  *-*-mingw*)
5107    # gcc leaves a trailing carriage return, which upsets mingw
5108    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5109  *)
5110    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5111  esac
5112  case $ac_prog in
5113    # Accept absolute paths.
5114    [\\/]* | ?:[\\/]*)
5115      re_direlt='/[^/][^/]*/\.\./'
5116      # Canonicalize the pathname of ld
5117      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5118      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5119	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5120      done
5121      test -z "$LD" && LD=$ac_prog
5122      ;;
5123  "")
5124    # If it fails, then pretend we aren't using GCC.
5125    ac_prog=ld
5126    ;;
5127  *)
5128    # If it is relative, then search for the first ld in PATH.
5129    with_gnu_ld=unknown
5130    ;;
5131  esac
5132elif test yes = "$with_gnu_ld"; then
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5134$as_echo_n "checking for GNU ld... " >&6; }
5135else
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5137$as_echo_n "checking for non-GNU ld... " >&6; }
5138fi
5139if ${lt_cv_path_LD+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -z "$LD"; then
5143  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5144  for ac_dir in $PATH; do
5145    IFS=$lt_save_ifs
5146    test -z "$ac_dir" && ac_dir=.
5147    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5148      lt_cv_path_LD=$ac_dir/$ac_prog
5149      # Check to see if the program is GNU ld.  I'd rather use --version,
5150      # but apparently some variants of GNU ld only accept -v.
5151      # Break only if it was the GNU/non-GNU ld that we prefer.
5152      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5153      *GNU* | *'with BFD'*)
5154	test no != "$with_gnu_ld" && break
5155	;;
5156      *)
5157	test yes != "$with_gnu_ld" && break
5158	;;
5159      esac
5160    fi
5161  done
5162  IFS=$lt_save_ifs
5163else
5164  lt_cv_path_LD=$LD # Let the user override the test with a path.
5165fi
5166fi
5167
5168LD=$lt_cv_path_LD
5169if test -n "$LD"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5171$as_echo "$LD" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5179if ${lt_cv_prog_gnu_ld+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5183case `$LD -v 2>&1 </dev/null` in
5184*GNU* | *'with BFD'*)
5185  lt_cv_prog_gnu_ld=yes
5186  ;;
5187*)
5188  lt_cv_prog_gnu_ld=no
5189  ;;
5190esac
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5193$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5194with_gnu_ld=$lt_cv_prog_gnu_ld
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5206if ${lt_cv_path_NM+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if test -n "$NM"; then
5210  # Let the user override the test.
5211  lt_cv_path_NM=$NM
5212else
5213  lt_nm_to_check=${ac_tool_prefix}nm
5214  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5215    lt_nm_to_check="$lt_nm_to_check nm"
5216  fi
5217  for lt_tmp_nm in $lt_nm_to_check; do
5218    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5219    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5220      IFS=$lt_save_ifs
5221      test -z "$ac_dir" && ac_dir=.
5222      tmp_nm=$ac_dir/$lt_tmp_nm
5223      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5224	# Check to see if the nm accepts a BSD-compat flag.
5225	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5226	#   nm: unknown option "B" ignored
5227	# Tru64's nm complains that /dev/null is an invalid object file
5228	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5229	case $build_os in
5230	mingw*) lt_bad_file=conftest.nm/nofile ;;
5231	*) lt_bad_file=/dev/null ;;
5232	esac
5233	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5234	*$lt_bad_file* | *'Invalid file or object type'*)
5235	  lt_cv_path_NM="$tmp_nm -B"
5236	  break 2
5237	  ;;
5238	*)
5239	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5240	  */dev/null*)
5241	    lt_cv_path_NM="$tmp_nm -p"
5242	    break 2
5243	    ;;
5244	  *)
5245	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5246	    continue # so that we can try to find one that supports BSD flags
5247	    ;;
5248	  esac
5249	  ;;
5250	esac
5251      fi
5252    done
5253    IFS=$lt_save_ifs
5254  done
5255  : ${lt_cv_path_NM=no}
5256fi
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5259$as_echo "$lt_cv_path_NM" >&6; }
5260if test no != "$lt_cv_path_NM"; then
5261  NM=$lt_cv_path_NM
5262else
5263  # Didn't find any BSD compatible name lister, look for dumpbin.
5264  if test -n "$DUMPBIN"; then :
5265    # Let the user override the test.
5266  else
5267    if test -n "$ac_tool_prefix"; then
5268  for ac_prog in dumpbin "link -dump"
5269  do
5270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_DUMPBIN+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  if test -n "$DUMPBIN"; then
5278  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  test -z "$as_dir" && as_dir=.
5285    for ac_exec_ext in '' $ac_executable_extensions; do
5286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289    break 2
5290  fi
5291done
5292  done
5293IFS=$as_save_IFS
5294
5295fi
5296fi
5297DUMPBIN=$ac_cv_prog_DUMPBIN
5298if test -n "$DUMPBIN"; then
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5300$as_echo "$DUMPBIN" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306
5307    test -n "$DUMPBIN" && break
5308  done
5309fi
5310if test -z "$DUMPBIN"; then
5311  ac_ct_DUMPBIN=$DUMPBIN
5312  for ac_prog in dumpbin "link -dump"
5313do
5314  # Extract the first word of "$ac_prog", so it can be a program name with args.
5315set dummy $ac_prog; ac_word=$2
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317$as_echo_n "checking for $ac_word... " >&6; }
5318if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  if test -n "$ac_ct_DUMPBIN"; then
5322  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327  IFS=$as_save_IFS
5328  test -z "$as_dir" && as_dir=.
5329    for ac_exec_ext in '' $ac_executable_extensions; do
5330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333    break 2
5334  fi
5335done
5336  done
5337IFS=$as_save_IFS
5338
5339fi
5340fi
5341ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5342if test -n "$ac_ct_DUMPBIN"; then
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5344$as_echo "$ac_ct_DUMPBIN" >&6; }
5345else
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348fi
5349
5350
5351  test -n "$ac_ct_DUMPBIN" && break
5352done
5353
5354  if test "x$ac_ct_DUMPBIN" = x; then
5355    DUMPBIN=":"
5356  else
5357    case $cross_compiling:$ac_tool_warned in
5358yes:)
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361ac_tool_warned=yes ;;
5362esac
5363    DUMPBIN=$ac_ct_DUMPBIN
5364  fi
5365fi
5366
5367    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5368    *COFF*)
5369      DUMPBIN="$DUMPBIN -symbols -headers"
5370      ;;
5371    *)
5372      DUMPBIN=:
5373      ;;
5374    esac
5375  fi
5376
5377  if test : != "$DUMPBIN"; then
5378    NM=$DUMPBIN
5379  fi
5380fi
5381test -z "$NM" && NM=nm
5382
5383
5384
5385
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5389$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5390if ${lt_cv_nm_interface+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  lt_cv_nm_interface="BSD nm"
5394  echo "int some_variable = 0;" > conftest.$ac_ext
5395  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5396  (eval "$ac_compile" 2>conftest.err)
5397  cat conftest.err >&5
5398  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5399  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5400  cat conftest.err >&5
5401  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5402  cat conftest.out >&5
5403  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5404    lt_cv_nm_interface="MS dumpbin"
5405  fi
5406  rm -f conftest*
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5409$as_echo "$lt_cv_nm_interface" >&6; }
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5412$as_echo_n "checking whether ln -s works... " >&6; }
5413LN_S=$as_ln_s
5414if test "$LN_S" = "ln -s"; then
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416$as_echo "yes" >&6; }
5417else
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5419$as_echo "no, using $LN_S" >&6; }
5420fi
5421
5422# find the maximum length of command line arguments
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5424$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5425if ${lt_cv_sys_max_cmd_len+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428    i=0
5429  teststring=ABCD
5430
5431  case $build_os in
5432  msdosdjgpp*)
5433    # On DJGPP, this test can blow up pretty badly due to problems in libc
5434    # (any single argument exceeding 2000 bytes causes a buffer overrun
5435    # during glob expansion).  Even if it were fixed, the result of this
5436    # check would be larger than it should be.
5437    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5438    ;;
5439
5440  gnu*)
5441    # Under GNU Hurd, this test is not required because there is
5442    # no limit to the length of command line arguments.
5443    # Libtool will interpret -1 as no limit whatsoever
5444    lt_cv_sys_max_cmd_len=-1;
5445    ;;
5446
5447  cygwin* | mingw* | cegcc*)
5448    # On Win9x/ME, this test blows up -- it succeeds, but takes
5449    # about 5 minutes as the teststring grows exponentially.
5450    # Worse, since 9x/ME are not pre-emptively multitasking,
5451    # you end up with a "frozen" computer, even though with patience
5452    # the test eventually succeeds (with a max line length of 256k).
5453    # Instead, let's just punt: use the minimum linelength reported by
5454    # all of the supported platforms: 8192 (on NT/2K/XP).
5455    lt_cv_sys_max_cmd_len=8192;
5456    ;;
5457
5458  mint*)
5459    # On MiNT this can take a long time and run out of memory.
5460    lt_cv_sys_max_cmd_len=8192;
5461    ;;
5462
5463  amigaos*)
5464    # On AmigaOS with pdksh, this test takes hours, literally.
5465    # So we just punt and use a minimum line length of 8192.
5466    lt_cv_sys_max_cmd_len=8192;
5467    ;;
5468
5469  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5470    # This has been around since 386BSD, at least.  Likely further.
5471    if test -x /sbin/sysctl; then
5472      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5473    elif test -x /usr/sbin/sysctl; then
5474      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5475    else
5476      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5477    fi
5478    # And add a safety zone
5479    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5480    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5481    ;;
5482
5483  interix*)
5484    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5485    lt_cv_sys_max_cmd_len=196608
5486    ;;
5487
5488  os2*)
5489    # The test takes a long time on OS/2.
5490    lt_cv_sys_max_cmd_len=8192
5491    ;;
5492
5493  osf*)
5494    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5495    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5496    # nice to cause kernel panics so lets avoid the loop below.
5497    # First set a reasonable default.
5498    lt_cv_sys_max_cmd_len=16384
5499    #
5500    if test -x /sbin/sysconfig; then
5501      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5502        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5503      esac
5504    fi
5505    ;;
5506  sco3.2v5*)
5507    lt_cv_sys_max_cmd_len=102400
5508    ;;
5509  sysv5* | sco5v6* | sysv4.2uw2*)
5510    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5511    if test -n "$kargmax"; then
5512      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5513    else
5514      lt_cv_sys_max_cmd_len=32768
5515    fi
5516    ;;
5517  *)
5518    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5519    if test -n "$lt_cv_sys_max_cmd_len" && \
5520       test undefined != "$lt_cv_sys_max_cmd_len"; then
5521      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5522      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5523    else
5524      # Make teststring a little bigger before we do anything with it.
5525      # a 1K string should be a reasonable start.
5526      for i in 1 2 3 4 5 6 7 8; do
5527        teststring=$teststring$teststring
5528      done
5529      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530      # If test is not a shell built-in, we'll probably end up computing a
5531      # maximum length that is only half of the actual maximum length, but
5532      # we can't tell.
5533      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5534	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5535	      test 17 != "$i" # 1/2 MB should be enough
5536      do
5537        i=`expr $i + 1`
5538        teststring=$teststring$teststring
5539      done
5540      # Only check the string length outside the loop.
5541      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5542      teststring=
5543      # Add a significant safety factor because C++ compilers can tack on
5544      # massive amounts of additional arguments before passing them to the
5545      # linker.  It appears as though 1/2 is a usable value.
5546      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5547    fi
5548    ;;
5549  esac
5550
5551fi
5552
5553if test -n "$lt_cv_sys_max_cmd_len"; then
5554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5555$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5556else
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5558$as_echo "none" >&6; }
5559fi
5560max_cmd_len=$lt_cv_sys_max_cmd_len
5561
5562
5563
5564
5565
5566
5567: ${CP="cp -f"}
5568: ${MV="mv -f"}
5569: ${RM="rm -f"}
5570
5571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5572  lt_unset=unset
5573else
5574  lt_unset=false
5575fi
5576
5577
5578
5579
5580
5581# test EBCDIC or ASCII
5582case `echo X|tr X '\101'` in
5583 A) # ASCII based system
5584    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5585  lt_SP2NL='tr \040 \012'
5586  lt_NL2SP='tr \015\012 \040\040'
5587  ;;
5588 *) # EBCDIC based system
5589  lt_SP2NL='tr \100 \n'
5590  lt_NL2SP='tr \r\n \100\100'
5591  ;;
5592esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5603$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5604if ${lt_cv_to_host_file_cmd+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  case $host in
5608  *-*-mingw* )
5609    case $build in
5610      *-*-mingw* ) # actually msys
5611        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5612        ;;
5613      *-*-cygwin* )
5614        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5615        ;;
5616      * ) # otherwise, assume *nix
5617        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5618        ;;
5619    esac
5620    ;;
5621  *-*-cygwin* )
5622    case $build in
5623      *-*-mingw* ) # actually msys
5624        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5625        ;;
5626      *-*-cygwin* )
5627        lt_cv_to_host_file_cmd=func_convert_file_noop
5628        ;;
5629      * ) # otherwise, assume *nix
5630        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5631        ;;
5632    esac
5633    ;;
5634  * ) # unhandled hosts (and "normal" native builds)
5635    lt_cv_to_host_file_cmd=func_convert_file_noop
5636    ;;
5637esac
5638
5639fi
5640
5641to_host_file_cmd=$lt_cv_to_host_file_cmd
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5643$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5644
5645
5646
5647
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5650$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5651if ${lt_cv_to_tool_file_cmd+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  #assume ordinary cross tools, or native build.
5655lt_cv_to_tool_file_cmd=func_convert_file_noop
5656case $host in
5657  *-*-mingw* )
5658    case $build in
5659      *-*-mingw* ) # actually msys
5660        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5661        ;;
5662    esac
5663    ;;
5664esac
5665
5666fi
5667
5668to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5670$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5671
5672
5673
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5677$as_echo_n "checking for $LD option to reload object files... " >&6; }
5678if ${lt_cv_ld_reload_flag+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  lt_cv_ld_reload_flag='-r'
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5684$as_echo "$lt_cv_ld_reload_flag" >&6; }
5685reload_flag=$lt_cv_ld_reload_flag
5686case $reload_flag in
5687"" | " "*) ;;
5688*) reload_flag=" $reload_flag" ;;
5689esac
5690reload_cmds='$LD$reload_flag -o $output$reload_objs'
5691case $host_os in
5692  cygwin* | mingw* | pw32* | cegcc*)
5693    if test yes != "$GCC"; then
5694      reload_cmds=false
5695    fi
5696    ;;
5697  darwin*)
5698    if test yes = "$GCC"; then
5699      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5700    else
5701      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5702    fi
5703    ;;
5704esac
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714if test -n "$ac_tool_prefix"; then
5715  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}objdump; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_OBJDUMP+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$OBJDUMP"; then
5723  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742OBJDUMP=$ac_cv_prog_OBJDUMP
5743if test -n "$OBJDUMP"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5745$as_echo "$OBJDUMP" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752fi
5753if test -z "$ac_cv_prog_OBJDUMP"; then
5754  ac_ct_OBJDUMP=$OBJDUMP
5755  # Extract the first word of "objdump", so it can be a program name with args.
5756set dummy objdump; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  if test -n "$ac_ct_OBJDUMP"; then
5763  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770    for ac_exec_ext in '' $ac_executable_extensions; do
5771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777  done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5783if test -n "$ac_ct_OBJDUMP"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5785$as_echo "$ac_ct_OBJDUMP" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791  if test "x$ac_ct_OBJDUMP" = x; then
5792    OBJDUMP="false"
5793  else
5794    case $cross_compiling:$ac_tool_warned in
5795yes:)
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798ac_tool_warned=yes ;;
5799esac
5800    OBJDUMP=$ac_ct_OBJDUMP
5801  fi
5802else
5803  OBJDUMP="$ac_cv_prog_OBJDUMP"
5804fi
5805
5806test -z "$OBJDUMP" && OBJDUMP=objdump
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5817$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5818if ${lt_cv_deplibs_check_method+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  lt_cv_file_magic_cmd='$MAGIC_CMD'
5822lt_cv_file_magic_test_file=
5823lt_cv_deplibs_check_method='unknown'
5824# Need to set the preceding variable on all platforms that support
5825# interlibrary dependencies.
5826# 'none' -- dependencies not supported.
5827# 'unknown' -- same as none, but documents that we really don't know.
5828# 'pass_all' -- all dependencies passed with no checks.
5829# 'test_compile' -- check by making test program.
5830# 'file_magic [[regex]]' -- check by looking for files in library path
5831# that responds to the $file_magic_cmd with a given extended regex.
5832# If you have 'file' or equivalent on your system and you're not sure
5833# whether 'pass_all' will *always* work, you probably want this one.
5834
5835case $host_os in
5836aix[4-9]*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840beos*)
5841  lt_cv_deplibs_check_method=pass_all
5842  ;;
5843
5844bsdi[45]*)
5845  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5846  lt_cv_file_magic_cmd='/usr/bin/file -L'
5847  lt_cv_file_magic_test_file=/shlib/libc.so
5848  ;;
5849
5850cygwin*)
5851  # func_win32_libid is a shell function defined in ltmain.sh
5852  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5853  lt_cv_file_magic_cmd='func_win32_libid'
5854  ;;
5855
5856mingw* | pw32*)
5857  # Base MSYS/MinGW do not provide the 'file' command needed by
5858  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5859  # unless we find 'file', for example because we are cross-compiling.
5860  if ( file / ) >/dev/null 2>&1; then
5861    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5862    lt_cv_file_magic_cmd='func_win32_libid'
5863  else
5864    # Keep this pattern in sync with the one in func_win32_libid.
5865    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5866    lt_cv_file_magic_cmd='$OBJDUMP -f'
5867  fi
5868  ;;
5869
5870cegcc*)
5871  # use the weaker test based on 'objdump'. See mingw*.
5872  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5873  lt_cv_file_magic_cmd='$OBJDUMP -f'
5874  ;;
5875
5876darwin* | rhapsody*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880freebsd* | dragonfly*)
5881  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5882    case $host_cpu in
5883    i*86 )
5884      # Not sure whether the presence of OpenBSD here was a mistake.
5885      # Let's accept both of them until this is cleared up.
5886      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5887      lt_cv_file_magic_cmd=/usr/bin/file
5888      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5889      ;;
5890    esac
5891  else
5892    lt_cv_deplibs_check_method=pass_all
5893  fi
5894  ;;
5895
5896haiku*)
5897  lt_cv_deplibs_check_method=pass_all
5898  ;;
5899
5900hpux10.20* | hpux11*)
5901  lt_cv_file_magic_cmd=/usr/bin/file
5902  case $host_cpu in
5903  ia64*)
5904    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5905    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5906    ;;
5907  hppa*64*)
5908    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]'
5909    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5910    ;;
5911  *)
5912    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5913    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5914    ;;
5915  esac
5916  ;;
5917
5918interix[3-9]*)
5919  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5920  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5921  ;;
5922
5923irix5* | irix6* | nonstopux*)
5924  case $LD in
5925  *-32|*"-32 ") libmagic=32-bit;;
5926  *-n32|*"-n32 ") libmagic=N32;;
5927  *-64|*"-64 ") libmagic=64-bit;;
5928  *) libmagic=never-match;;
5929  esac
5930  lt_cv_deplibs_check_method=pass_all
5931  ;;
5932
5933# This must be glibc/ELF.
5934linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938netbsd* | netbsdelf*-gnu)
5939  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5940    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5941  else
5942    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5943  fi
5944  ;;
5945
5946newos6*)
5947  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5948  lt_cv_file_magic_cmd=/usr/bin/file
5949  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5950  ;;
5951
5952*nto* | *qnx*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956openbsd* | bitrig*)
5957  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5958    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5959  else
5960    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5961  fi
5962  ;;
5963
5964osf3* | osf4* | osf5*)
5965  lt_cv_deplibs_check_method=pass_all
5966  ;;
5967
5968rdos*)
5969  lt_cv_deplibs_check_method=pass_all
5970  ;;
5971
5972solaris*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980sysv4 | sysv4.3*)
5981  case $host_vendor in
5982  motorola)
5983    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]'
5984    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5985    ;;
5986  ncr)
5987    lt_cv_deplibs_check_method=pass_all
5988    ;;
5989  sequent)
5990    lt_cv_file_magic_cmd='/bin/file'
5991    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5992    ;;
5993  sni)
5994    lt_cv_file_magic_cmd='/bin/file'
5995    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5996    lt_cv_file_magic_test_file=/lib/libc.so
5997    ;;
5998  siemens)
5999    lt_cv_deplibs_check_method=pass_all
6000    ;;
6001  pc)
6002    lt_cv_deplibs_check_method=pass_all
6003    ;;
6004  esac
6005  ;;
6006
6007tpf*)
6008  lt_cv_deplibs_check_method=pass_all
6009  ;;
6010os2*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013esac
6014
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6017$as_echo "$lt_cv_deplibs_check_method" >&6; }
6018
6019file_magic_glob=
6020want_nocaseglob=no
6021if test "$build" = "$host"; then
6022  case $host_os in
6023  mingw* | pw32*)
6024    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6025      want_nocaseglob=yes
6026    else
6027      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6028    fi
6029    ;;
6030  esac
6031fi
6032
6033file_magic_cmd=$lt_cv_file_magic_cmd
6034deplibs_check_method=$lt_cv_deplibs_check_method
6035test -z "$deplibs_check_method" && deplibs_check_method=unknown
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058if test -n "$ac_tool_prefix"; then
6059  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6060set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062$as_echo_n "checking for $ac_word... " >&6; }
6063if ${ac_cv_prog_DLLTOOL+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  if test -n "$DLLTOOL"; then
6067  ac_cv_prog_DLLTOOL="$DLLTOOL" # 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  test -z "$as_dir" && as_dir=.
6074    for ac_exec_ext in '' $ac_executable_extensions; do
6075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078    break 2
6079  fi
6080done
6081  done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086DLLTOOL=$ac_cv_prog_DLLTOOL
6087if test -n "$DLLTOOL"; then
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6089$as_echo "$DLLTOOL" >&6; }
6090else
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096fi
6097if test -z "$ac_cv_prog_DLLTOOL"; then
6098  ac_ct_DLLTOOL=$DLLTOOL
6099  # Extract the first word of "dlltool", so it can be a program name with args.
6100set dummy dlltool; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  if test -n "$ac_ct_DLLTOOL"; then
6107  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112  IFS=$as_save_IFS
6113  test -z "$as_dir" && as_dir=.
6114    for ac_exec_ext in '' $ac_executable_extensions; do
6115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121  done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6127if test -n "$ac_ct_DLLTOOL"; then
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6129$as_echo "$ac_ct_DLLTOOL" >&6; }
6130else
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135  if test "x$ac_ct_DLLTOOL" = x; then
6136    DLLTOOL="false"
6137  else
6138    case $cross_compiling:$ac_tool_warned in
6139yes:)
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142ac_tool_warned=yes ;;
6143esac
6144    DLLTOOL=$ac_ct_DLLTOOL
6145  fi
6146else
6147  DLLTOOL="$ac_cv_prog_DLLTOOL"
6148fi
6149
6150test -z "$DLLTOOL" && DLLTOOL=dlltool
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6162$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6163if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  lt_cv_sharedlib_from_linklib_cmd='unknown'
6167
6168case $host_os in
6169cygwin* | mingw* | pw32* | cegcc*)
6170  # two different shell functions defined in ltmain.sh;
6171  # decide which one to use based on capabilities of $DLLTOOL
6172  case `$DLLTOOL --help 2>&1` in
6173  *--identify-strict*)
6174    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6175    ;;
6176  *)
6177    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6178    ;;
6179  esac
6180  ;;
6181*)
6182  # fallback: assume linklib IS sharedlib
6183  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6184  ;;
6185esac
6186
6187fi
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6189$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6190sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6191test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6192
6193
6194
6195
6196
6197
6198
6199if test -n "$ac_tool_prefix"; then
6200  for ac_prog in ar
6201  do
6202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
6206if ${ac_cv_prog_AR+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  if test -n "$AR"; then
6210  ac_cv_prog_AR="$AR" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215  IFS=$as_save_IFS
6216  test -z "$as_dir" && as_dir=.
6217    for ac_exec_ext in '' $ac_executable_extensions; do
6218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221    break 2
6222  fi
6223done
6224  done
6225IFS=$as_save_IFS
6226
6227fi
6228fi
6229AR=$ac_cv_prog_AR
6230if test -n "$AR"; then
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6232$as_echo "$AR" >&6; }
6233else
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236fi
6237
6238
6239    test -n "$AR" && break
6240  done
6241fi
6242if test -z "$AR"; then
6243  ac_ct_AR=$AR
6244  for ac_prog in ar
6245do
6246  # Extract the first word of "$ac_prog", so it can be a program name with args.
6247set dummy $ac_prog; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
6250if ${ac_cv_prog_ac_ct_AR+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  if test -n "$ac_ct_AR"; then
6254  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  test -z "$as_dir" && as_dir=.
6261    for ac_exec_ext in '' $ac_executable_extensions; do
6262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263    ac_cv_prog_ac_ct_AR="$ac_prog"
6264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265    break 2
6266  fi
6267done
6268  done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274if test -n "$ac_ct_AR"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6276$as_echo "$ac_ct_AR" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283  test -n "$ac_ct_AR" && break
6284done
6285
6286  if test "x$ac_ct_AR" = x; then
6287    AR="false"
6288  else
6289    case $cross_compiling:$ac_tool_warned in
6290yes:)
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293ac_tool_warned=yes ;;
6294esac
6295    AR=$ac_ct_AR
6296  fi
6297fi
6298
6299: ${AR=ar}
6300: ${AR_FLAGS=cr}
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6313$as_echo_n "checking for archiver @FILE support... " >&6; }
6314if ${lt_cv_ar_at_file+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  lt_cv_ar_at_file=no
6318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321int
6322main ()
6323{
6324
6325  ;
6326  return 0;
6327}
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330  echo conftest.$ac_objext > conftest.lst
6331      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6332      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6333  (eval $lt_ar_try) 2>&5
6334  ac_status=$?
6335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336  test $ac_status = 0; }
6337      if test 0 -eq "$ac_status"; then
6338	# Ensure the archiver fails upon bogus file names.
6339	rm -f conftest.$ac_objext libconftest.a
6340	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341  (eval $lt_ar_try) 2>&5
6342  ac_status=$?
6343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344  test $ac_status = 0; }
6345	if test 0 -ne "$ac_status"; then
6346          lt_cv_ar_at_file=@
6347        fi
6348      fi
6349      rm -f conftest.* libconftest.a
6350
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6356$as_echo "$lt_cv_ar_at_file" >&6; }
6357
6358if test no = "$lt_cv_ar_at_file"; then
6359  archiver_list_spec=
6360else
6361  archiver_list_spec=$lt_cv_ar_at_file
6362fi
6363
6364
6365
6366
6367
6368
6369
6370if test -n "$ac_tool_prefix"; then
6371  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6372set dummy ${ac_tool_prefix}strip; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_prog_STRIP+:} false; then :
6376  $as_echo_n "(cached) " >&6
6377else
6378  if test -n "$STRIP"; then
6379  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384  IFS=$as_save_IFS
6385  test -z "$as_dir" && as_dir=.
6386    for ac_exec_ext in '' $ac_executable_extensions; do
6387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390    break 2
6391  fi
6392done
6393  done
6394IFS=$as_save_IFS
6395
6396fi
6397fi
6398STRIP=$ac_cv_prog_STRIP
6399if test -n "$STRIP"; then
6400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6401$as_echo "$STRIP" >&6; }
6402else
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404$as_echo "no" >&6; }
6405fi
6406
6407
6408fi
6409if test -z "$ac_cv_prog_STRIP"; then
6410  ac_ct_STRIP=$STRIP
6411  # Extract the first word of "strip", so it can be a program name with args.
6412set dummy strip; ac_word=$2
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414$as_echo_n "checking for $ac_word... " >&6; }
6415if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  if test -n "$ac_ct_STRIP"; then
6419  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424  IFS=$as_save_IFS
6425  test -z "$as_dir" && as_dir=.
6426    for ac_exec_ext in '' $ac_executable_extensions; do
6427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428    ac_cv_prog_ac_ct_STRIP="strip"
6429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430    break 2
6431  fi
6432done
6433  done
6434IFS=$as_save_IFS
6435
6436fi
6437fi
6438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439if test -n "$ac_ct_STRIP"; then
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6441$as_echo "$ac_ct_STRIP" >&6; }
6442else
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444$as_echo "no" >&6; }
6445fi
6446
6447  if test "x$ac_ct_STRIP" = x; then
6448    STRIP=":"
6449  else
6450    case $cross_compiling:$ac_tool_warned in
6451yes:)
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454ac_tool_warned=yes ;;
6455esac
6456    STRIP=$ac_ct_STRIP
6457  fi
6458else
6459  STRIP="$ac_cv_prog_STRIP"
6460fi
6461
6462test -z "$STRIP" && STRIP=:
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_RANLIB+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$RANLIB"; then
6478  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497RANLIB=$ac_cv_prog_RANLIB
6498if test -n "$RANLIB"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6500$as_echo "$RANLIB" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_RANLIB"; then
6509  ac_ct_RANLIB=$RANLIB
6510  # Extract the first word of "ranlib", so it can be a program name with args.
6511set dummy ranlib; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_RANLIB"; then
6518  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527    ac_cv_prog_ac_ct_RANLIB="ranlib"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6538if test -n "$ac_ct_RANLIB"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6540$as_echo "$ac_ct_RANLIB" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_RANLIB" = x; then
6547    RANLIB=":"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    RANLIB=$ac_ct_RANLIB
6556  fi
6557else
6558  RANLIB="$ac_cv_prog_RANLIB"
6559fi
6560
6561test -z "$RANLIB" && RANLIB=:
6562
6563
6564
6565
6566
6567
6568# Determine commands to create old-style static archives.
6569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6570old_postinstall_cmds='chmod 644 $oldlib'
6571old_postuninstall_cmds=
6572
6573if test -n "$RANLIB"; then
6574  case $host_os in
6575  bitrig* | openbsd*)
6576    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6577    ;;
6578  *)
6579    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6580    ;;
6581  esac
6582  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6583fi
6584
6585case $host_os in
6586  darwin*)
6587    lock_old_archive_extraction=yes ;;
6588  *)
6589    lock_old_archive_extraction=no ;;
6590esac
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630# If no C compiler was specified, use CC.
6631LTCC=${LTCC-"$CC"}
6632
6633# If no C compiler flags were specified, use CFLAGS.
6634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6635
6636# Allow CC to be a program name with arguments.
6637compiler=$CC
6638
6639
6640# Check for command to grab the raw symbol name followed by C symbol from nm.
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6642$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6643if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646
6647# These are sane defaults that work on at least a few old systems.
6648# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6649
6650# Character class describing NM global symbol codes.
6651symcode='[BCDEGRST]'
6652
6653# Regexp to match symbols that can be accessed directly from C.
6654sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6655
6656# Define system-specific variables.
6657case $host_os in
6658aix*)
6659  symcode='[BCDT]'
6660  ;;
6661cygwin* | mingw* | pw32* | cegcc*)
6662  symcode='[ABCDGISTW]'
6663  ;;
6664hpux*)
6665  if test ia64 = "$host_cpu"; then
6666    symcode='[ABCDEGRST]'
6667  fi
6668  ;;
6669irix* | nonstopux*)
6670  symcode='[BCDEGRST]'
6671  ;;
6672osf*)
6673  symcode='[BCDEGQRST]'
6674  ;;
6675solaris*)
6676  symcode='[BDRT]'
6677  ;;
6678sco3.2v5*)
6679  symcode='[DT]'
6680  ;;
6681sysv4.2uw2*)
6682  symcode='[DT]'
6683  ;;
6684sysv5* | sco5v6* | unixware* | OpenUNIX*)
6685  symcode='[ABDT]'
6686  ;;
6687sysv4)
6688  symcode='[DFNSTU]'
6689  ;;
6690esac
6691
6692# If we're using GNU nm, then use its standard symbol codes.
6693case `$NM -V 2>&1` in
6694*GNU* | *'with BFD'*)
6695  symcode='[ABCDGIRSTW]' ;;
6696esac
6697
6698if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699  # Gets list of data symbols to import.
6700  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6701  # Adjust the below global symbol transforms to fixup imported variables.
6702  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6703  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6704  lt_c_name_lib_hook="\
6705  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6706  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6707else
6708  # Disable hooks by default.
6709  lt_cv_sys_global_symbol_to_import=
6710  lt_cdecl_hook=
6711  lt_c_name_hook=
6712  lt_c_name_lib_hook=
6713fi
6714
6715# Transform an extracted symbol line into a proper C declaration.
6716# Some systems (esp. on ia64) link data and code symbols differently,
6717# so use this general approach.
6718lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6719$lt_cdecl_hook\
6720" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6721" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6722
6723# Transform an extracted symbol line into symbol name and symbol address
6724lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6725$lt_c_name_hook\
6726" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6727" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6728
6729# Transform an extracted symbol line into symbol name with lib prefix and
6730# symbol address.
6731lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6732$lt_c_name_lib_hook\
6733" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6734" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6735" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6736
6737# Handle CRLF in mingw tool chain
6738opt_cr=
6739case $build_os in
6740mingw*)
6741  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6742  ;;
6743esac
6744
6745# Try without a prefix underscore, then with it.
6746for ac_symprfx in "" "_"; do
6747
6748  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6749  symxfrm="\\1 $ac_symprfx\\2 \\2"
6750
6751  # Write the raw and C identifiers.
6752  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6753    # Fake it for dumpbin and say T for any non-static function,
6754    # D for any global variable and I for any imported variable.
6755    # Also find C++ and __fastcall symbols from MSVC++,
6756    # which start with @ or ?.
6757    lt_cv_sys_global_symbol_pipe="$AWK '"\
6758"     {last_section=section; section=\$ 3};"\
6759"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6760"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6761"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6762"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6763"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6764"     \$ 0!~/External *\|/{next};"\
6765"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6766"     {if(hide[section]) next};"\
6767"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6768"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6769"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6770"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6771"     ' prfx=^$ac_symprfx"
6772  else
6773    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6774  fi
6775  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6776
6777  # Check to see that the pipe works correctly.
6778  pipe_works=no
6779
6780  rm -f conftest*
6781  cat > conftest.$ac_ext <<_LT_EOF
6782#ifdef __cplusplus
6783extern "C" {
6784#endif
6785char nm_test_var;
6786void nm_test_func(void);
6787void nm_test_func(void){}
6788#ifdef __cplusplus
6789}
6790#endif
6791int main(){nm_test_var='a';nm_test_func();return(0);}
6792_LT_EOF
6793
6794  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795  (eval $ac_compile) 2>&5
6796  ac_status=$?
6797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798  test $ac_status = 0; }; then
6799    # Now try to grab the symbols.
6800    nlist=conftest.nm
6801    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6802    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6803      # Try sorting and uniquifying the output.
6804      if sort "$nlist" | uniq > "$nlist"T; then
6805	mv -f "$nlist"T "$nlist"
6806      else
6807	rm -f "$nlist"T
6808      fi
6809
6810      # Make sure that we snagged all the symbols we need.
6811      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813	  cat <<_LT_EOF > conftest.$ac_ext
6814/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6815#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6816/* DATA imports from DLLs on WIN32 can't be const, because runtime
6817   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6818# define LT_DLSYM_CONST
6819#elif defined __osf__
6820/* This system does not cope well with relocations in const data.  */
6821# define LT_DLSYM_CONST
6822#else
6823# define LT_DLSYM_CONST const
6824#endif
6825
6826#ifdef __cplusplus
6827extern "C" {
6828#endif
6829
6830_LT_EOF
6831	  # Now generate the symbol file.
6832	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6833
6834	  cat <<_LT_EOF >> conftest.$ac_ext
6835
6836/* The mapping between symbol names and symbols.  */
6837LT_DLSYM_CONST struct {
6838  const char *name;
6839  void       *address;
6840}
6841lt__PROGRAM__LTX_preloaded_symbols[] =
6842{
6843  { "@PROGRAM@", (void *) 0 },
6844_LT_EOF
6845	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6846	  cat <<\_LT_EOF >> conftest.$ac_ext
6847  {0, (void *) 0}
6848};
6849
6850/* This works around a problem in FreeBSD linker */
6851#ifdef FREEBSD_WORKAROUND
6852static const void *lt_preloaded_setup() {
6853  return lt__PROGRAM__LTX_preloaded_symbols;
6854}
6855#endif
6856
6857#ifdef __cplusplus
6858}
6859#endif
6860_LT_EOF
6861	  # Now try linking the two files.
6862	  mv conftest.$ac_objext conftstm.$ac_objext
6863	  lt_globsym_save_LIBS=$LIBS
6864	  lt_globsym_save_CFLAGS=$CFLAGS
6865	  LIBS=conftstm.$ac_objext
6866	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868  (eval $ac_link) 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6872	    pipe_works=yes
6873	  fi
6874	  LIBS=$lt_globsym_save_LIBS
6875	  CFLAGS=$lt_globsym_save_CFLAGS
6876	else
6877	  echo "cannot find nm_test_func in $nlist" >&5
6878	fi
6879      else
6880	echo "cannot find nm_test_var in $nlist" >&5
6881      fi
6882    else
6883      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884    fi
6885  else
6886    echo "$progname: failed program was:" >&5
6887    cat conftest.$ac_ext >&5
6888  fi
6889  rm -rf conftest* conftst*
6890
6891  # Do not use the global_symbol_pipe unless it works.
6892  if test yes = "$pipe_works"; then
6893    break
6894  else
6895    lt_cv_sys_global_symbol_pipe=
6896  fi
6897done
6898
6899fi
6900
6901if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902  lt_cv_sys_global_symbol_to_cdecl=
6903fi
6904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906$as_echo "failed" >&6; }
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909$as_echo "ok" >&6; }
6910fi
6911
6912# Response file support.
6913if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914  nm_file_list_spec='@'
6915elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6916  nm_file_list_spec='@'
6917fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956$as_echo_n "checking for sysroot... " >&6; }
6957
6958# Check whether --with-sysroot was given.
6959if test "${with_sysroot+set}" = set; then :
6960  withval=$with_sysroot;
6961else
6962  with_sysroot=no
6963fi
6964
6965
6966lt_sysroot=
6967case $with_sysroot in #(
6968 yes)
6969   if test yes = "$GCC"; then
6970     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6971   fi
6972   ;; #(
6973 /*)
6974   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6975   ;; #(
6976 no|'')
6977   ;; #(
6978 *)
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6980$as_echo "$with_sysroot" >&6; }
6981   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6982   ;;
6983esac
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986$as_echo "${lt_sysroot:-no}" >&6; }
6987
6988
6989
6990
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6993$as_echo_n "checking for a working dd... " >&6; }
6994if ${ac_cv_path_lt_DD+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  printf 0123456789abcdef0123456789abcdef >conftest.i
6998cat conftest.i conftest.i >conftest2.i
6999: ${lt_DD:=$DD}
7000if test -z "$lt_DD"; then
7001  ac_path_lt_DD_found=false
7002  # Loop through the user's path and test for each of PROGNAME-LIST
7003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008    for ac_prog in dd; do
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7011      as_fn_executable_p "$ac_path_lt_DD" || continue
7012if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7013  cmp -s conftest.i conftest.out \
7014  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7015fi
7016      $ac_path_lt_DD_found && break 3
7017    done
7018  done
7019  done
7020IFS=$as_save_IFS
7021  if test -z "$ac_cv_path_lt_DD"; then
7022    :
7023  fi
7024else
7025  ac_cv_path_lt_DD=$lt_DD
7026fi
7027
7028rm -f conftest.i conftest2.i conftest.out
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7031$as_echo "$ac_cv_path_lt_DD" >&6; }
7032
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7035$as_echo_n "checking how to truncate binary pipes... " >&6; }
7036if ${lt_cv_truncate_bin+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  printf 0123456789abcdef0123456789abcdef >conftest.i
7040cat conftest.i conftest.i >conftest2.i
7041lt_cv_truncate_bin=
7042if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7043  cmp -s conftest.i conftest.out \
7044  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7045fi
7046rm -f conftest.i conftest2.i conftest.out
7047test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7050$as_echo "$lt_cv_truncate_bin" >&6; }
7051
7052
7053
7054
7055
7056
7057
7058# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7059func_cc_basename ()
7060{
7061    for cc_temp in $*""; do
7062      case $cc_temp in
7063        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7065        \-*) ;;
7066        *) break;;
7067      esac
7068    done
7069    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7070}
7071
7072# Check whether --enable-libtool-lock was given.
7073if test "${enable_libtool_lock+set}" = set; then :
7074  enableval=$enable_libtool_lock;
7075fi
7076
7077test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7078
7079# Some flags need to be propagated to the compiler or linker for good
7080# libtool support.
7081case $host in
7082ia64-*-hpux*)
7083  # Find out what ABI is being produced by ac_compile, and set mode
7084  # options accordingly.
7085  echo 'int i;' > conftest.$ac_ext
7086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087  (eval $ac_compile) 2>&5
7088  ac_status=$?
7089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090  test $ac_status = 0; }; then
7091    case `/usr/bin/file conftest.$ac_objext` in
7092      *ELF-32*)
7093	HPUX_IA64_MODE=32
7094	;;
7095      *ELF-64*)
7096	HPUX_IA64_MODE=64
7097	;;
7098    esac
7099  fi
7100  rm -rf conftest*
7101  ;;
7102*-*-irix6*)
7103  # Find out what ABI is being produced by ac_compile, and set linker
7104  # options accordingly.
7105  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7106  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107  (eval $ac_compile) 2>&5
7108  ac_status=$?
7109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110  test $ac_status = 0; }; then
7111    if test yes = "$lt_cv_prog_gnu_ld"; then
7112      case `/usr/bin/file conftest.$ac_objext` in
7113	*32-bit*)
7114	  LD="${LD-ld} -melf32bsmip"
7115	  ;;
7116	*N32*)
7117	  LD="${LD-ld} -melf32bmipn32"
7118	  ;;
7119	*64-bit*)
7120	  LD="${LD-ld} -melf64bmip"
7121	;;
7122      esac
7123    else
7124      case `/usr/bin/file conftest.$ac_objext` in
7125	*32-bit*)
7126	  LD="${LD-ld} -32"
7127	  ;;
7128	*N32*)
7129	  LD="${LD-ld} -n32"
7130	  ;;
7131	*64-bit*)
7132	  LD="${LD-ld} -64"
7133	  ;;
7134      esac
7135    fi
7136  fi
7137  rm -rf conftest*
7138  ;;
7139
7140mips64*-*linux*)
7141  # Find out what ABI is being produced by ac_compile, and set linker
7142  # options accordingly.
7143  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145  (eval $ac_compile) 2>&5
7146  ac_status=$?
7147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148  test $ac_status = 0; }; then
7149    emul=elf
7150    case `/usr/bin/file conftest.$ac_objext` in
7151      *32-bit*)
7152	emul="${emul}32"
7153	;;
7154      *64-bit*)
7155	emul="${emul}64"
7156	;;
7157    esac
7158    case `/usr/bin/file conftest.$ac_objext` in
7159      *MSB*)
7160	emul="${emul}btsmip"
7161	;;
7162      *LSB*)
7163	emul="${emul}ltsmip"
7164	;;
7165    esac
7166    case `/usr/bin/file conftest.$ac_objext` in
7167      *N32*)
7168	emul="${emul}n32"
7169	;;
7170    esac
7171    LD="${LD-ld} -m $emul"
7172  fi
7173  rm -rf conftest*
7174  ;;
7175
7176x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7177s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7178  # Find out what ABI is being produced by ac_compile, and set linker
7179  # options accordingly.  Note that the listed cases only cover the
7180  # situations where additional linker options are needed (such as when
7181  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7182  # vice versa); the common cases where no linker options are needed do
7183  # not appear in the list.
7184  echo 'int i;' > conftest.$ac_ext
7185  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186  (eval $ac_compile) 2>&5
7187  ac_status=$?
7188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189  test $ac_status = 0; }; then
7190    case `/usr/bin/file conftest.o` in
7191      *32-bit*)
7192	case $host in
7193	  x86_64-*kfreebsd*-gnu)
7194	    LD="${LD-ld} -m elf_i386_fbsd"
7195	    ;;
7196	  x86_64-*linux*)
7197	    case `/usr/bin/file conftest.o` in
7198	      *x86-64*)
7199		LD="${LD-ld} -m elf32_x86_64"
7200		;;
7201	      *)
7202		LD="${LD-ld} -m elf_i386"
7203		;;
7204	    esac
7205	    ;;
7206	  powerpc64le-*linux*)
7207	    LD="${LD-ld} -m elf32lppclinux"
7208	    ;;
7209	  powerpc64-*linux*)
7210	    LD="${LD-ld} -m elf32ppclinux"
7211	    ;;
7212	  s390x-*linux*)
7213	    LD="${LD-ld} -m elf_s390"
7214	    ;;
7215	  sparc64-*linux*)
7216	    LD="${LD-ld} -m elf32_sparc"
7217	    ;;
7218	esac
7219	;;
7220      *64-bit*)
7221	case $host in
7222	  x86_64-*kfreebsd*-gnu)
7223	    LD="${LD-ld} -m elf_x86_64_fbsd"
7224	    ;;
7225	  x86_64-*linux*)
7226	    LD="${LD-ld} -m elf_x86_64"
7227	    ;;
7228	  powerpcle-*linux*)
7229	    LD="${LD-ld} -m elf64lppc"
7230	    ;;
7231	  powerpc-*linux*)
7232	    LD="${LD-ld} -m elf64ppc"
7233	    ;;
7234	  s390*-*linux*|s390*-*tpf*)
7235	    LD="${LD-ld} -m elf64_s390"
7236	    ;;
7237	  sparc*-*linux*)
7238	    LD="${LD-ld} -m elf64_sparc"
7239	    ;;
7240	esac
7241	;;
7242    esac
7243  fi
7244  rm -rf conftest*
7245  ;;
7246
7247*-*-sco3.2v5*)
7248  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249  SAVE_CFLAGS=$CFLAGS
7250  CFLAGS="$CFLAGS -belf"
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253if ${lt_cv_cc_needs_belf+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  ac_ext=c
7257ac_cpp='$CPP $CPPFLAGS'
7258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264
7265int
7266main ()
7267{
7268
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"; then :
7274  lt_cv_cc_needs_belf=yes
7275else
7276  lt_cv_cc_needs_belf=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext \
7279    conftest$ac_exeext conftest.$ac_ext
7280     ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288$as_echo "$lt_cv_cc_needs_belf" >&6; }
7289  if test yes != "$lt_cv_cc_needs_belf"; then
7290    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7291    CFLAGS=$SAVE_CFLAGS
7292  fi
7293  ;;
7294*-*solaris*)
7295  # Find out what ABI is being produced by ac_compile, and set linker
7296  # options accordingly.
7297  echo 'int i;' > conftest.$ac_ext
7298  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299  (eval $ac_compile) 2>&5
7300  ac_status=$?
7301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302  test $ac_status = 0; }; then
7303    case `/usr/bin/file conftest.o` in
7304    *64-bit*)
7305      case $lt_cv_prog_gnu_ld in
7306      yes*)
7307        case $host in
7308        i?86-*-solaris*|x86_64-*-solaris*)
7309          LD="${LD-ld} -m elf_x86_64"
7310          ;;
7311        sparc*-*-solaris*)
7312          LD="${LD-ld} -m elf64_sparc"
7313          ;;
7314        esac
7315        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7316        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7317          LD=${LD-ld}_sol2
7318        fi
7319        ;;
7320      *)
7321	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7322	  LD="${LD-ld} -64"
7323	fi
7324	;;
7325      esac
7326      ;;
7327    esac
7328  fi
7329  rm -rf conftest*
7330  ;;
7331esac
7332
7333need_locks=$enable_libtool_lock
7334
7335if test -n "$ac_tool_prefix"; then
7336  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7337set dummy ${ac_tool_prefix}mt; ac_word=$2
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  if test -n "$MANIFEST_TOOL"; then
7344  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351    for ac_exec_ext in '' $ac_executable_extensions; do
7352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355    break 2
7356  fi
7357done
7358  done
7359IFS=$as_save_IFS
7360
7361fi
7362fi
7363MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7364if test -n "$MANIFEST_TOOL"; then
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7366$as_echo "$MANIFEST_TOOL" >&6; }
7367else
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372
7373fi
7374if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7375  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7376  # Extract the first word of "mt", so it can be a program name with args.
7377set dummy mt; ac_word=$2
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
7380if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383  if test -n "$ac_ct_MANIFEST_TOOL"; then
7384  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389  IFS=$as_save_IFS
7390  test -z "$as_dir" && as_dir=.
7391    for ac_exec_ext in '' $ac_executable_extensions; do
7392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395    break 2
7396  fi
7397done
7398  done
7399IFS=$as_save_IFS
7400
7401fi
7402fi
7403ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7404if test -n "$ac_ct_MANIFEST_TOOL"; then
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7406$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7407else
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
7410fi
7411
7412  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7413    MANIFEST_TOOL=":"
7414  else
7415    case $cross_compiling:$ac_tool_warned in
7416yes:)
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419ac_tool_warned=yes ;;
7420esac
7421    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7422  fi
7423else
7424  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7425fi
7426
7427test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7429$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7430if ${lt_cv_path_mainfest_tool+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  lt_cv_path_mainfest_tool=no
7434  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7435  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7436  cat conftest.err >&5
7437  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7438    lt_cv_path_mainfest_tool=yes
7439  fi
7440  rm -f conftest*
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7443$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7444if test yes != "$lt_cv_path_mainfest_tool"; then
7445  MANIFEST_TOOL=:
7446fi
7447
7448
7449
7450
7451
7452
7453  case $host_os in
7454    rhapsody* | darwin*)
7455    if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if ${ac_cv_prog_DSYMUTIL+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -n "$DSYMUTIL"; then
7464  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483DSYMUTIL=$ac_cv_prog_DSYMUTIL
7484if test -n "$DSYMUTIL"; then
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7486$as_echo "$DSYMUTIL" >&6; }
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_DSYMUTIL"; then
7495  ac_ct_DSYMUTIL=$DSYMUTIL
7496  # Extract the first word of "dsymutil", so it can be a program name with args.
7497set dummy dsymutil; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$ac_ct_DSYMUTIL"; then
7504  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7524if test -n "$ac_ct_DSYMUTIL"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7526$as_echo "$ac_ct_DSYMUTIL" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532  if test "x$ac_ct_DSYMUTIL" = x; then
7533    DSYMUTIL=":"
7534  else
7535    case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541    DSYMUTIL=$ac_ct_DSYMUTIL
7542  fi
7543else
7544  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7545fi
7546
7547    if test -n "$ac_tool_prefix"; then
7548  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551$as_echo_n "checking for $ac_word... " >&6; }
7552if ${ac_cv_prog_NMEDIT+:} false; then :
7553  $as_echo_n "(cached) " >&6
7554else
7555  if test -n "$NMEDIT"; then
7556  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561  IFS=$as_save_IFS
7562  test -z "$as_dir" && as_dir=.
7563    for ac_exec_ext in '' $ac_executable_extensions; do
7564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567    break 2
7568  fi
7569done
7570  done
7571IFS=$as_save_IFS
7572
7573fi
7574fi
7575NMEDIT=$ac_cv_prog_NMEDIT
7576if test -n "$NMEDIT"; then
7577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7578$as_echo "$NMEDIT" >&6; }
7579else
7580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
7582fi
7583
7584
7585fi
7586if test -z "$ac_cv_prog_NMEDIT"; then
7587  ac_ct_NMEDIT=$NMEDIT
7588  # Extract the first word of "nmedit", so it can be a program name with args.
7589set dummy nmedit; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$ac_ct_NMEDIT"; then
7596  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7616if test -n "$ac_ct_NMEDIT"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7618$as_echo "$ac_ct_NMEDIT" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624  if test "x$ac_ct_NMEDIT" = x; then
7625    NMEDIT=":"
7626  else
7627    case $cross_compiling:$ac_tool_warned in
7628yes:)
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631ac_tool_warned=yes ;;
7632esac
7633    NMEDIT=$ac_ct_NMEDIT
7634  fi
7635else
7636  NMEDIT="$ac_cv_prog_NMEDIT"
7637fi
7638
7639    if test -n "$ac_tool_prefix"; then
7640  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}lipo; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_LIPO+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  if test -n "$LIPO"; then
7648  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667LIPO=$ac_cv_prog_LIPO
7668if test -n "$LIPO"; then
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670$as_echo "$LIPO" >&6; }
7671else
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_LIPO"; then
7679  ac_ct_LIPO=$LIPO
7680  # Extract the first word of "lipo", so it can be a program name with args.
7681set dummy lipo; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  if test -n "$ac_ct_LIPO"; then
7688  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695    for ac_exec_ext in '' $ac_executable_extensions; do
7696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_ac_ct_LIPO="lipo"
7698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702  done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7708if test -n "$ac_ct_LIPO"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7710$as_echo "$ac_ct_LIPO" >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716  if test "x$ac_ct_LIPO" = x; then
7717    LIPO=":"
7718  else
7719    case $cross_compiling:$ac_tool_warned in
7720yes:)
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723ac_tool_warned=yes ;;
7724esac
7725    LIPO=$ac_ct_LIPO
7726  fi
7727else
7728  LIPO="$ac_cv_prog_LIPO"
7729fi
7730
7731    if test -n "$ac_tool_prefix"; then
7732  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}otool; ac_word=$2
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if ${ac_cv_prog_OTOOL+:} false; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  if test -n "$OTOOL"; then
7740  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745  IFS=$as_save_IFS
7746  test -z "$as_dir" && as_dir=.
7747    for ac_exec_ext in '' $ac_executable_extensions; do
7748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751    break 2
7752  fi
7753done
7754  done
7755IFS=$as_save_IFS
7756
7757fi
7758fi
7759OTOOL=$ac_cv_prog_OTOOL
7760if test -n "$OTOOL"; then
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7762$as_echo "$OTOOL" >&6; }
7763else
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
7766fi
7767
7768
7769fi
7770if test -z "$ac_cv_prog_OTOOL"; then
7771  ac_ct_OTOOL=$OTOOL
7772  # Extract the first word of "otool", so it can be a program name with args.
7773set dummy otool; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  if test -n "$ac_ct_OTOOL"; then
7780  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_ac_ct_OTOOL="otool"
7790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7800if test -n "$ac_ct_OTOOL"; then
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7802$as_echo "$ac_ct_OTOOL" >&6; }
7803else
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808  if test "x$ac_ct_OTOOL" = x; then
7809    OTOOL=":"
7810  else
7811    case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817    OTOOL=$ac_ct_OTOOL
7818  fi
7819else
7820  OTOOL="$ac_cv_prog_OTOOL"
7821fi
7822
7823    if test -n "$ac_tool_prefix"; then
7824  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}otool64; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if ${ac_cv_prog_OTOOL64+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  if test -n "$OTOOL64"; then
7832  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837  IFS=$as_save_IFS
7838  test -z "$as_dir" && as_dir=.
7839    for ac_exec_ext in '' $ac_executable_extensions; do
7840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843    break 2
7844  fi
7845done
7846  done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851OTOOL64=$ac_cv_prog_OTOOL64
7852if test -n "$OTOOL64"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7854$as_echo "$OTOOL64" >&6; }
7855else
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861fi
7862if test -z "$ac_cv_prog_OTOOL64"; then
7863  ac_ct_OTOOL64=$OTOOL64
7864  # Extract the first word of "otool64", so it can be a program name with args.
7865set dummy otool64; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  if test -n "$ac_ct_OTOOL64"; then
7872  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877  IFS=$as_save_IFS
7878  test -z "$as_dir" && as_dir=.
7879    for ac_exec_ext in '' $ac_executable_extensions; do
7880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881    ac_cv_prog_ac_ct_OTOOL64="otool64"
7882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883    break 2
7884  fi
7885done
7886  done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7892if test -n "$ac_ct_OTOOL64"; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7894$as_echo "$ac_ct_OTOOL64" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900  if test "x$ac_ct_OTOOL64" = x; then
7901    OTOOL64=":"
7902  else
7903    case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909    OTOOL64=$ac_ct_OTOOL64
7910  fi
7911else
7912  OTOOL64="$ac_cv_prog_OTOOL64"
7913fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7942$as_echo_n "checking for -single_module linker flag... " >&6; }
7943if ${lt_cv_apple_cc_single_mod+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  lt_cv_apple_cc_single_mod=no
7947      if test -z "$LT_MULTI_MODULE"; then
7948	# By default we will add the -single_module flag. You can override
7949	# by either setting the environment variable LT_MULTI_MODULE
7950	# non-empty at configure time, or by adding -multi_module to the
7951	# link flags.
7952	rm -rf libconftest.dylib*
7953	echo "int foo(void){return 1;}" > conftest.c
7954	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7955-dynamiclib -Wl,-single_module conftest.c" >&5
7956	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7957	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7958        _lt_result=$?
7959	# If there is a non-empty error log, and "single_module"
7960	# appears in it, assume the flag caused a linker warning
7961        if test -s conftest.err && $GREP single_module conftest.err; then
7962	  cat conftest.err >&5
7963	# Otherwise, if the output was created with a 0 exit code from
7964	# the compiler, it worked.
7965	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7966	  lt_cv_apple_cc_single_mod=yes
7967	else
7968	  cat conftest.err >&5
7969	fi
7970	rm -rf libconftest.dylib*
7971	rm -f conftest.*
7972      fi
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7976
7977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7978$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7979if ${lt_cv_ld_exported_symbols_list+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  lt_cv_ld_exported_symbols_list=no
7983      save_LDFLAGS=$LDFLAGS
7984      echo "_main" > conftest.sym
7985      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7986      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988
7989int
7990main ()
7991{
7992
7993  ;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"; then :
7998  lt_cv_ld_exported_symbols_list=yes
7999else
8000  lt_cv_ld_exported_symbols_list=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext \
8003    conftest$ac_exeext conftest.$ac_ext
8004	LDFLAGS=$save_LDFLAGS
8005
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8008$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8009
8010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011$as_echo_n "checking for -force_load linker flag... " >&6; }
8012if ${lt_cv_ld_force_load+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  lt_cv_ld_force_load=no
8016      cat > conftest.c << _LT_EOF
8017int forced_loaded() { return 2;}
8018_LT_EOF
8019      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021      echo "$AR cr libconftest.a conftest.o" >&5
8022      $AR cr libconftest.a conftest.o 2>&5
8023      echo "$RANLIB libconftest.a" >&5
8024      $RANLIB libconftest.a 2>&5
8025      cat > conftest.c << _LT_EOF
8026int main() { return 0;}
8027_LT_EOF
8028      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8029      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8030      _lt_result=$?
8031      if test -s conftest.err && $GREP force_load conftest.err; then
8032	cat conftest.err >&5
8033      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8034	lt_cv_ld_force_load=yes
8035      else
8036	cat conftest.err >&5
8037      fi
8038        rm -f conftest.err libconftest.a conftest conftest.c
8039        rm -rf conftest.dSYM
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8043$as_echo "$lt_cv_ld_force_load" >&6; }
8044    case $host_os in
8045    rhapsody* | darwin1.[012])
8046      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8047    darwin1.*)
8048      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049    darwin*) # darwin 5.x on
8050      # if running on 10.5 or later, the deployment target defaults
8051      # to the OS version, if on x86, and 10.4, the deployment
8052      # target defaults to 10.4. Don't you love it?
8053      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8054	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8055	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8056	10.[012][,.]*)
8057	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8058	10.*)
8059	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8060      esac
8061    ;;
8062  esac
8063    if test yes = "$lt_cv_apple_cc_single_mod"; then
8064      _lt_dar_single_mod='$single_module'
8065    fi
8066    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8067      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8068    else
8069      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8070    fi
8071    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8072      _lt_dsymutil='~$DSYMUTIL $lib || :'
8073    else
8074      _lt_dsymutil=
8075    fi
8076    ;;
8077  esac
8078
8079# func_munge_path_list VARIABLE PATH
8080# -----------------------------------
8081# VARIABLE is name of variable containing _space_ separated list of
8082# directories to be munged by the contents of PATH, which is string
8083# having a format:
8084# "DIR[:DIR]:"
8085#       string "DIR[ DIR]" will be prepended to VARIABLE
8086# ":DIR[:DIR]"
8087#       string "DIR[ DIR]" will be appended to VARIABLE
8088# "DIRP[:DIRP]::[DIRA:]DIRA"
8089#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8090#       "DIRA[ DIRA]" will be appended to VARIABLE
8091# "DIR[:DIR]"
8092#       VARIABLE will be replaced by "DIR[ DIR]"
8093func_munge_path_list ()
8094{
8095    case x$2 in
8096    x)
8097        ;;
8098    *:)
8099        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8100        ;;
8101    x:*)
8102        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8103        ;;
8104    *::*)
8105        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8106        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8107        ;;
8108    *)
8109        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8110        ;;
8111    esac
8112}
8113
8114for ac_header in dlfcn.h
8115do :
8116  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8117"
8118if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8119  cat >>confdefs.h <<_ACEOF
8120#define HAVE_DLFCN_H 1
8121_ACEOF
8122
8123fi
8124
8125done
8126
8127
8128
8129
8130
8131# Set options
8132
8133
8134
8135        enable_dlopen=no
8136
8137
8138  enable_win32_dll=no
8139
8140
8141            # Check whether --enable-shared was given.
8142if test "${enable_shared+set}" = set; then :
8143  enableval=$enable_shared; p=${PACKAGE-default}
8144    case $enableval in
8145    yes) enable_shared=yes ;;
8146    no) enable_shared=no ;;
8147    *)
8148      enable_shared=no
8149      # Look at the argument we got.  We use all the common list separators.
8150      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8151      for pkg in $enableval; do
8152	IFS=$lt_save_ifs
8153	if test "X$pkg" = "X$p"; then
8154	  enable_shared=yes
8155	fi
8156      done
8157      IFS=$lt_save_ifs
8158      ;;
8159    esac
8160else
8161  enable_shared=yes
8162fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172  # Check whether --enable-static was given.
8173if test "${enable_static+set}" = set; then :
8174  enableval=$enable_static; p=${PACKAGE-default}
8175    case $enableval in
8176    yes) enable_static=yes ;;
8177    no) enable_static=no ;;
8178    *)
8179     enable_static=no
8180      # Look at the argument we got.  We use all the common list separators.
8181      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8182      for pkg in $enableval; do
8183	IFS=$lt_save_ifs
8184	if test "X$pkg" = "X$p"; then
8185	  enable_static=yes
8186	fi
8187      done
8188      IFS=$lt_save_ifs
8189      ;;
8190    esac
8191else
8192  enable_static=yes
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204# Check whether --with-pic was given.
8205if test "${with_pic+set}" = set; then :
8206  withval=$with_pic; lt_p=${PACKAGE-default}
8207    case $withval in
8208    yes|no) pic_mode=$withval ;;
8209    *)
8210      pic_mode=default
8211      # Look at the argument we got.  We use all the common list separators.
8212      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8213      for lt_pkg in $withval; do
8214	IFS=$lt_save_ifs
8215	if test "X$lt_pkg" = "X$lt_p"; then
8216	  pic_mode=yes
8217	fi
8218      done
8219      IFS=$lt_save_ifs
8220      ;;
8221    esac
8222else
8223  pic_mode=default
8224fi
8225
8226
8227
8228
8229
8230
8231
8232
8233  # Check whether --enable-fast-install was given.
8234if test "${enable_fast_install+set}" = set; then :
8235  enableval=$enable_fast_install; p=${PACKAGE-default}
8236    case $enableval in
8237    yes) enable_fast_install=yes ;;
8238    no) enable_fast_install=no ;;
8239    *)
8240      enable_fast_install=no
8241      # Look at the argument we got.  We use all the common list separators.
8242      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8243      for pkg in $enableval; do
8244	IFS=$lt_save_ifs
8245	if test "X$pkg" = "X$p"; then
8246	  enable_fast_install=yes
8247	fi
8248      done
8249      IFS=$lt_save_ifs
8250      ;;
8251    esac
8252else
8253  enable_fast_install=yes
8254fi
8255
8256
8257
8258
8259
8260
8261
8262
8263  shared_archive_member_spec=
8264case $host,$enable_shared in
8265power*-*-aix[5-9]*,yes)
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8267$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8268
8269# Check whether --with-aix-soname was given.
8270if test "${with_aix_soname+set}" = set; then :
8271  withval=$with_aix_soname; case $withval in
8272    aix|svr4|both)
8273      ;;
8274    *)
8275      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8276      ;;
8277    esac
8278    lt_cv_with_aix_soname=$with_aix_soname
8279else
8280  if ${lt_cv_with_aix_soname+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  lt_cv_with_aix_soname=aix
8284fi
8285
8286    with_aix_soname=$lt_cv_with_aix_soname
8287fi
8288
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8290$as_echo "$with_aix_soname" >&6; }
8291  if test aix != "$with_aix_soname"; then
8292    # For the AIX way of multilib, we name the shared archive member
8293    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8294    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8295    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8296    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8297    if test 64 = "${OBJECT_MODE-32}"; then
8298      shared_archive_member_spec=shr_64
8299    else
8300      shared_archive_member_spec=shr
8301    fi
8302  fi
8303  ;;
8304*)
8305  with_aix_soname=aix
8306  ;;
8307esac
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318# This can be used to rebuild libtool when needed
8319LIBTOOL_DEPS=$ltmain
8320
8321# Always use our own libtool.
8322LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353test -z "$LN_S" && LN_S="ln -s"
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368if test -n "${ZSH_VERSION+set}"; then
8369   setopt NO_GLOB_SUBST
8370fi
8371
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8373$as_echo_n "checking for objdir... " >&6; }
8374if ${lt_cv_objdir+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  rm -f .libs 2>/dev/null
8378mkdir .libs 2>/dev/null
8379if test -d .libs; then
8380  lt_cv_objdir=.libs
8381else
8382  # MS-DOS does not allow filenames that begin with a dot.
8383  lt_cv_objdir=_libs
8384fi
8385rmdir .libs 2>/dev/null
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8388$as_echo "$lt_cv_objdir" >&6; }
8389objdir=$lt_cv_objdir
8390
8391
8392
8393
8394
8395cat >>confdefs.h <<_ACEOF
8396#define LT_OBJDIR "$lt_cv_objdir/"
8397_ACEOF
8398
8399
8400
8401
8402case $host_os in
8403aix3*)
8404  # AIX sometimes has problems with the GCC collect2 program.  For some
8405  # reason, if we set the COLLECT_NAMES environment variable, the problems
8406  # vanish in a puff of smoke.
8407  if test set != "${COLLECT_NAMES+set}"; then
8408    COLLECT_NAMES=
8409    export COLLECT_NAMES
8410  fi
8411  ;;
8412esac
8413
8414# Global variables:
8415ofile=libtool
8416can_build_shared=yes
8417
8418# All known linkers require a '.a' archive for static linking (except MSVC,
8419# which needs '.lib').
8420libext=a
8421
8422with_gnu_ld=$lt_cv_prog_gnu_ld
8423
8424old_CC=$CC
8425old_CFLAGS=$CFLAGS
8426
8427# Set sane defaults for various variables
8428test -z "$CC" && CC=cc
8429test -z "$LTCC" && LTCC=$CC
8430test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8431test -z "$LD" && LD=ld
8432test -z "$ac_objext" && ac_objext=o
8433
8434func_cc_basename $compiler
8435cc_basename=$func_cc_basename_result
8436
8437
8438# Only perform the check for file, if the check method requires it
8439test -z "$MAGIC_CMD" && MAGIC_CMD=file
8440case $deplibs_check_method in
8441file_magic*)
8442  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8444$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8445if ${lt_cv_path_MAGIC_CMD+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  case $MAGIC_CMD in
8449[\\/*] |  ?:[\\/]*)
8450  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8451  ;;
8452*)
8453  lt_save_MAGIC_CMD=$MAGIC_CMD
8454  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8455  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8456  for ac_dir in $ac_dummy; do
8457    IFS=$lt_save_ifs
8458    test -z "$ac_dir" && ac_dir=.
8459    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8460      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8461      if test -n "$file_magic_test_file"; then
8462	case $deplibs_check_method in
8463	"file_magic "*)
8464	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8465	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8466	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8467	    $EGREP "$file_magic_regex" > /dev/null; then
8468	    :
8469	  else
8470	    cat <<_LT_EOF 1>&2
8471
8472*** Warning: the command libtool uses to detect shared libraries,
8473*** $file_magic_cmd, produces output that libtool cannot recognize.
8474*** The result is that libtool may fail to recognize shared libraries
8475*** as such.  This will affect the creation of libtool libraries that
8476*** depend on shared libraries, but programs linked with such libtool
8477*** libraries will work regardless of this problem.  Nevertheless, you
8478*** may want to report the problem to your system manager and/or to
8479*** bug-libtool@gnu.org
8480
8481_LT_EOF
8482	  fi ;;
8483	esac
8484      fi
8485      break
8486    fi
8487  done
8488  IFS=$lt_save_ifs
8489  MAGIC_CMD=$lt_save_MAGIC_CMD
8490  ;;
8491esac
8492fi
8493
8494MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8495if test -n "$MAGIC_CMD"; then
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8497$as_echo "$MAGIC_CMD" >&6; }
8498else
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501fi
8502
8503
8504
8505
8506
8507if test -z "$lt_cv_path_MAGIC_CMD"; then
8508  if test -n "$ac_tool_prefix"; then
8509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8510$as_echo_n "checking for file... " >&6; }
8511if ${lt_cv_path_MAGIC_CMD+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  case $MAGIC_CMD in
8515[\\/*] |  ?:[\\/]*)
8516  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8517  ;;
8518*)
8519  lt_save_MAGIC_CMD=$MAGIC_CMD
8520  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522  for ac_dir in $ac_dummy; do
8523    IFS=$lt_save_ifs
8524    test -z "$ac_dir" && ac_dir=.
8525    if test -f "$ac_dir/file"; then
8526      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8527      if test -n "$file_magic_test_file"; then
8528	case $deplibs_check_method in
8529	"file_magic "*)
8530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533	    $EGREP "$file_magic_regex" > /dev/null; then
8534	    :
8535	  else
8536	    cat <<_LT_EOF 1>&2
8537
8538*** Warning: the command libtool uses to detect shared libraries,
8539*** $file_magic_cmd, produces output that libtool cannot recognize.
8540*** The result is that libtool may fail to recognize shared libraries
8541*** as such.  This will affect the creation of libtool libraries that
8542*** depend on shared libraries, but programs linked with such libtool
8543*** libraries will work regardless of this problem.  Nevertheless, you
8544*** may want to report the problem to your system manager and/or to
8545*** bug-libtool@gnu.org
8546
8547_LT_EOF
8548	  fi ;;
8549	esac
8550      fi
8551      break
8552    fi
8553  done
8554  IFS=$lt_save_ifs
8555  MAGIC_CMD=$lt_save_MAGIC_CMD
8556  ;;
8557esac
8558fi
8559
8560MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8561if test -n "$MAGIC_CMD"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563$as_echo "$MAGIC_CMD" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570  else
8571    MAGIC_CMD=:
8572  fi
8573fi
8574
8575  fi
8576  ;;
8577esac
8578
8579# Use C for the default configuration in the libtool script
8580
8581lt_save_CC=$CC
8582ac_ext=c
8583ac_cpp='$CPP $CPPFLAGS'
8584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588
8589# Source file extension for C test sources.
8590ac_ext=c
8591
8592# Object file extension for compiled C test sources.
8593objext=o
8594objext=$objext
8595
8596# Code to be used in simple compile tests
8597lt_simple_compile_test_code="int some_variable = 0;"
8598
8599# Code to be used in simple link tests
8600lt_simple_link_test_code='int main(){return(0);}'
8601
8602
8603
8604
8605
8606
8607
8608# If no C compiler was specified, use CC.
8609LTCC=${LTCC-"$CC"}
8610
8611# If no C compiler flags were specified, use CFLAGS.
8612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8613
8614# Allow CC to be a program name with arguments.
8615compiler=$CC
8616
8617# Save the default compiler, since it gets overwritten when the other
8618# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8619compiler_DEFAULT=$CC
8620
8621# save warnings/boilerplate of simple test code
8622ac_outfile=conftest.$ac_objext
8623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625_lt_compiler_boilerplate=`cat conftest.err`
8626$RM conftest*
8627
8628ac_outfile=conftest.$ac_objext
8629echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631_lt_linker_boilerplate=`cat conftest.err`
8632$RM -r conftest*
8633
8634
8635## CAVEAT EMPTOR:
8636## There is no encapsulation within the following macros, do not change
8637## the running order or otherwise move them around unless you know exactly
8638## what you are doing...
8639if test -n "$compiler"; then
8640
8641lt_prog_compiler_no_builtin_flag=
8642
8643if test yes = "$GCC"; then
8644  case $cc_basename in
8645  nvcc*)
8646    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8647  *)
8648    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8649  esac
8650
8651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8652$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8653if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  lt_cv_prog_compiler_rtti_exceptions=no
8657   ac_outfile=conftest.$ac_objext
8658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8659   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8660   # Insert the option either (1) after the last *FLAGS variable, or
8661   # (2) before a word containing "conftest.", or (3) at the end.
8662   # Note that $ac_compile itself does not contain backslashes and begins
8663   # with a dollar sign (not a hyphen), so the echo should work correctly.
8664   # The option is referenced via a variable to avoid confusing sed.
8665   lt_compile=`echo "$ac_compile" | $SED \
8666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668   -e 's:$: $lt_compiler_flag:'`
8669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670   (eval "$lt_compile" 2>conftest.err)
8671   ac_status=$?
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   if (exit $ac_status) && test -s "$ac_outfile"; then
8675     # The compiler can only warn and ignore the option if not recognized
8676     # So say no if there are warnings other than the usual output.
8677     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8678     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8679     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8680       lt_cv_prog_compiler_rtti_exceptions=yes
8681     fi
8682   fi
8683   $RM conftest*
8684
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8687$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8688
8689if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8690    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8691else
8692    :
8693fi
8694
8695fi
8696
8697
8698
8699
8700
8701
8702  lt_prog_compiler_wl=
8703lt_prog_compiler_pic=
8704lt_prog_compiler_static=
8705
8706
8707  if test yes = "$GCC"; then
8708    lt_prog_compiler_wl='-Wl,'
8709    lt_prog_compiler_static='-static'
8710
8711    case $host_os in
8712      aix*)
8713      # All AIX code is PIC.
8714      if test ia64 = "$host_cpu"; then
8715	# AIX 5 now supports IA64 processor
8716	lt_prog_compiler_static='-Bstatic'
8717      fi
8718      lt_prog_compiler_pic='-fPIC'
8719      ;;
8720
8721    amigaos*)
8722      case $host_cpu in
8723      powerpc)
8724            # see comment about AmigaOS4 .so support
8725            lt_prog_compiler_pic='-fPIC'
8726        ;;
8727      m68k)
8728            # FIXME: we need at least 68020 code to build shared libraries, but
8729            # adding the '-m68020' flag to GCC prevents building anything better,
8730            # like '-m68040'.
8731            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8732        ;;
8733      esac
8734      ;;
8735
8736    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8737      # PIC is the default for these OSes.
8738      ;;
8739
8740    mingw* | cygwin* | pw32* | os2* | cegcc*)
8741      # This hack is so that the source file can tell whether it is being
8742      # built for inclusion in a dll (and should export symbols for example).
8743      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8744      # (--disable-auto-import) libraries
8745      lt_prog_compiler_pic='-DDLL_EXPORT'
8746      case $host_os in
8747      os2*)
8748	lt_prog_compiler_static='$wl-static'
8749	;;
8750      esac
8751      ;;
8752
8753    darwin* | rhapsody*)
8754      # PIC is the default on this platform
8755      # Common symbols not allowed in MH_DYLIB files
8756      lt_prog_compiler_pic='-fno-common'
8757      ;;
8758
8759    haiku*)
8760      # PIC is the default for Haiku.
8761      # The "-static" flag exists, but is broken.
8762      lt_prog_compiler_static=
8763      ;;
8764
8765    hpux*)
8766      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8768      # sets the default TLS model and affects inlining.
8769      case $host_cpu in
8770      hppa*64*)
8771	# +Z the default
8772	;;
8773      *)
8774	lt_prog_compiler_pic='-fPIC'
8775	;;
8776      esac
8777      ;;
8778
8779    interix[3-9]*)
8780      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781      # Instead, we relocate shared libraries at runtime.
8782      ;;
8783
8784    msdosdjgpp*)
8785      # Just because we use GCC doesn't mean we suddenly get shared libraries
8786      # on systems that don't support them.
8787      lt_prog_compiler_can_build_shared=no
8788      enable_shared=no
8789      ;;
8790
8791    *nto* | *qnx*)
8792      # QNX uses GNU C++, but need to define -shared option too, otherwise
8793      # it will coredump.
8794      lt_prog_compiler_pic='-fPIC -shared'
8795      ;;
8796
8797    sysv4*MP*)
8798      if test -d /usr/nec; then
8799	lt_prog_compiler_pic=-Kconform_pic
8800      fi
8801      ;;
8802
8803    *)
8804      lt_prog_compiler_pic='-fPIC'
8805      ;;
8806    esac
8807
8808    case $cc_basename in
8809    nvcc*) # Cuda Compiler Driver 2.2
8810      lt_prog_compiler_wl='-Xlinker '
8811      if test -n "$lt_prog_compiler_pic"; then
8812        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8813      fi
8814      ;;
8815    esac
8816  else
8817    # PORTME Check for flag to pass linker flags through the system compiler.
8818    case $host_os in
8819    aix*)
8820      lt_prog_compiler_wl='-Wl,'
8821      if test ia64 = "$host_cpu"; then
8822	# AIX 5 now supports IA64 processor
8823	lt_prog_compiler_static='-Bstatic'
8824      else
8825	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8826      fi
8827      ;;
8828
8829    darwin* | rhapsody*)
8830      # PIC is the default on this platform
8831      # Common symbols not allowed in MH_DYLIB files
8832      lt_prog_compiler_pic='-fno-common'
8833      case $cc_basename in
8834      nagfor*)
8835        # NAG Fortran compiler
8836        lt_prog_compiler_wl='-Wl,-Wl,,'
8837        lt_prog_compiler_pic='-PIC'
8838        lt_prog_compiler_static='-Bstatic'
8839        ;;
8840      esac
8841      ;;
8842
8843    mingw* | cygwin* | pw32* | os2* | cegcc*)
8844      # This hack is so that the source file can tell whether it is being
8845      # built for inclusion in a dll (and should export symbols for example).
8846      lt_prog_compiler_pic='-DDLL_EXPORT'
8847      case $host_os in
8848      os2*)
8849	lt_prog_compiler_static='$wl-static'
8850	;;
8851      esac
8852      ;;
8853
8854    hpux9* | hpux10* | hpux11*)
8855      lt_prog_compiler_wl='-Wl,'
8856      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857      # not for PA HP-UX.
8858      case $host_cpu in
8859      hppa*64*|ia64*)
8860	# +Z the default
8861	;;
8862      *)
8863	lt_prog_compiler_pic='+Z'
8864	;;
8865      esac
8866      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8867      lt_prog_compiler_static='$wl-a ${wl}archive'
8868      ;;
8869
8870    irix5* | irix6* | nonstopux*)
8871      lt_prog_compiler_wl='-Wl,'
8872      # PIC (with -KPIC) is the default.
8873      lt_prog_compiler_static='-non_shared'
8874      ;;
8875
8876    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8877      case $cc_basename in
8878      # old Intel for x86_64, which still supported -KPIC.
8879      ecc*)
8880	lt_prog_compiler_wl='-Wl,'
8881	lt_prog_compiler_pic='-KPIC'
8882	lt_prog_compiler_static='-static'
8883        ;;
8884      # flang / f18. f95 an alias for gfortran or flang on Debian
8885      flang* | f18* | f95*)
8886	lt_prog_compiler_wl='-Wl,'
8887	lt_prog_compiler_pic='-fPIC'
8888	lt_prog_compiler_static='-static'
8889        ;;
8890      # icc used to be incompatible with GCC.
8891      # ICC 10 doesn't accept -KPIC any more.
8892      icc* | ifort*)
8893	lt_prog_compiler_wl='-Wl,'
8894	lt_prog_compiler_pic='-fPIC'
8895	lt_prog_compiler_static='-static'
8896        ;;
8897      # Lahey Fortran 8.1.
8898      lf95*)
8899	lt_prog_compiler_wl='-Wl,'
8900	lt_prog_compiler_pic='--shared'
8901	lt_prog_compiler_static='--static'
8902	;;
8903      nagfor*)
8904	# NAG Fortran compiler
8905	lt_prog_compiler_wl='-Wl,-Wl,,'
8906	lt_prog_compiler_pic='-PIC'
8907	lt_prog_compiler_static='-Bstatic'
8908	;;
8909      tcc*)
8910	# Fabrice Bellard et al's Tiny C Compiler
8911	lt_prog_compiler_wl='-Wl,'
8912	lt_prog_compiler_pic='-fPIC'
8913	lt_prog_compiler_static='-static'
8914	;;
8915      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8916        # Portland Group compilers (*not* the Pentium gcc compiler,
8917	# which looks to be a dead project)
8918	lt_prog_compiler_wl='-Wl,'
8919	lt_prog_compiler_pic='-fpic'
8920	lt_prog_compiler_static='-Bstatic'
8921        ;;
8922      ccc*)
8923        lt_prog_compiler_wl='-Wl,'
8924        # All Alpha code is PIC.
8925        lt_prog_compiler_static='-non_shared'
8926        ;;
8927      xl* | bgxl* | bgf* | mpixl*)
8928	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8929	lt_prog_compiler_wl='-Wl,'
8930	lt_prog_compiler_pic='-qpic'
8931	lt_prog_compiler_static='-qstaticlink'
8932	;;
8933      *)
8934	case `$CC -V 2>&1 | sed 5q` in
8935	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8936	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8937	  lt_prog_compiler_pic='-KPIC'
8938	  lt_prog_compiler_static='-Bstatic'
8939	  lt_prog_compiler_wl=''
8940	  ;;
8941	*Sun\ F* | *Sun*Fortran*)
8942	  lt_prog_compiler_pic='-KPIC'
8943	  lt_prog_compiler_static='-Bstatic'
8944	  lt_prog_compiler_wl='-Qoption ld '
8945	  ;;
8946	*Sun\ C*)
8947	  # Sun C 5.9
8948	  lt_prog_compiler_pic='-KPIC'
8949	  lt_prog_compiler_static='-Bstatic'
8950	  lt_prog_compiler_wl='-Wl,'
8951	  ;;
8952        *Intel*\ [CF]*Compiler*)
8953	  lt_prog_compiler_wl='-Wl,'
8954	  lt_prog_compiler_pic='-fPIC'
8955	  lt_prog_compiler_static='-static'
8956	  ;;
8957	*Portland\ Group*)
8958	  lt_prog_compiler_wl='-Wl,'
8959	  lt_prog_compiler_pic='-fpic'
8960	  lt_prog_compiler_static='-Bstatic'
8961	  ;;
8962	esac
8963	;;
8964      esac
8965      ;;
8966
8967    newsos6)
8968      lt_prog_compiler_pic='-KPIC'
8969      lt_prog_compiler_static='-Bstatic'
8970      ;;
8971
8972    *nto* | *qnx*)
8973      # QNX uses GNU C++, but need to define -shared option too, otherwise
8974      # it will coredump.
8975      lt_prog_compiler_pic='-fPIC -shared'
8976      ;;
8977
8978    osf3* | osf4* | osf5*)
8979      lt_prog_compiler_wl='-Wl,'
8980      # All OSF/1 code is PIC.
8981      lt_prog_compiler_static='-non_shared'
8982      ;;
8983
8984    rdos*)
8985      lt_prog_compiler_static='-non_shared'
8986      ;;
8987
8988    solaris*)
8989      lt_prog_compiler_pic='-KPIC'
8990      lt_prog_compiler_static='-Bstatic'
8991      case $cc_basename in
8992      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8993	lt_prog_compiler_wl='-Qoption ld ';;
8994      *)
8995	lt_prog_compiler_wl='-Wl,';;
8996      esac
8997      ;;
8998
8999    sunos4*)
9000      lt_prog_compiler_wl='-Qoption ld '
9001      lt_prog_compiler_pic='-PIC'
9002      lt_prog_compiler_static='-Bstatic'
9003      ;;
9004
9005    sysv4 | sysv4.2uw2* | sysv4.3*)
9006      lt_prog_compiler_wl='-Wl,'
9007      lt_prog_compiler_pic='-KPIC'
9008      lt_prog_compiler_static='-Bstatic'
9009      ;;
9010
9011    sysv4*MP*)
9012      if test -d /usr/nec; then
9013	lt_prog_compiler_pic='-Kconform_pic'
9014	lt_prog_compiler_static='-Bstatic'
9015      fi
9016      ;;
9017
9018    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9019      lt_prog_compiler_wl='-Wl,'
9020      lt_prog_compiler_pic='-KPIC'
9021      lt_prog_compiler_static='-Bstatic'
9022      ;;
9023
9024    unicos*)
9025      lt_prog_compiler_wl='-Wl,'
9026      lt_prog_compiler_can_build_shared=no
9027      ;;
9028
9029    uts4*)
9030      lt_prog_compiler_pic='-pic'
9031      lt_prog_compiler_static='-Bstatic'
9032      ;;
9033
9034    *)
9035      lt_prog_compiler_can_build_shared=no
9036      ;;
9037    esac
9038  fi
9039
9040case $host_os in
9041  # For platforms that do not support PIC, -DPIC is meaningless:
9042  *djgpp*)
9043    lt_prog_compiler_pic=
9044    ;;
9045  *)
9046    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9047    ;;
9048esac
9049
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9051$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9052if ${lt_cv_prog_compiler_pic+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9058$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9059lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9060
9061#
9062# Check to make sure the PIC flag actually works.
9063#
9064if test -n "$lt_prog_compiler_pic"; then
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9066$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9067if ${lt_cv_prog_compiler_pic_works+:} false; then :
9068  $as_echo_n "(cached) " >&6
9069else
9070  lt_cv_prog_compiler_pic_works=no
9071   ac_outfile=conftest.$ac_objext
9072   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9074   # Insert the option either (1) after the last *FLAGS variable, or
9075   # (2) before a word containing "conftest.", or (3) at the end.
9076   # Note that $ac_compile itself does not contain backslashes and begins
9077   # with a dollar sign (not a hyphen), so the echo should work correctly.
9078   # The option is referenced via a variable to avoid confusing sed.
9079   lt_compile=`echo "$ac_compile" | $SED \
9080   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9081   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9082   -e 's:$: $lt_compiler_flag:'`
9083   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9084   (eval "$lt_compile" 2>conftest.err)
9085   ac_status=$?
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   if (exit $ac_status) && test -s "$ac_outfile"; then
9089     # The compiler can only warn and ignore the option if not recognized
9090     # So say no if there are warnings other than the usual output.
9091     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9092     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9093     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9094       lt_cv_prog_compiler_pic_works=yes
9095     fi
9096   fi
9097   $RM conftest*
9098
9099fi
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9101$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9102
9103if test yes = "$lt_cv_prog_compiler_pic_works"; then
9104    case $lt_prog_compiler_pic in
9105     "" | " "*) ;;
9106     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9107     esac
9108else
9109    lt_prog_compiler_pic=
9110     lt_prog_compiler_can_build_shared=no
9111fi
9112
9113fi
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125#
9126# Check to make sure the static flag actually works.
9127#
9128wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9130$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9131if ${lt_cv_prog_compiler_static_works+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  lt_cv_prog_compiler_static_works=no
9135   save_LDFLAGS=$LDFLAGS
9136   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9137   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139     # The linker can only warn and ignore the option if not recognized
9140     # So say no if there are warnings
9141     if test -s conftest.err; then
9142       # Append any errors to the config.log.
9143       cat conftest.err 1>&5
9144       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146       if diff conftest.exp conftest.er2 >/dev/null; then
9147         lt_cv_prog_compiler_static_works=yes
9148       fi
9149     else
9150       lt_cv_prog_compiler_static_works=yes
9151     fi
9152   fi
9153   $RM -r conftest*
9154   LDFLAGS=$save_LDFLAGS
9155
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9158$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9159
9160if test yes = "$lt_cv_prog_compiler_static_works"; then
9161    :
9162else
9163    lt_prog_compiler_static=
9164fi
9165
9166
9167
9168
9169
9170
9171
9172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9173$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9174if ${lt_cv_prog_compiler_c_o+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  lt_cv_prog_compiler_c_o=no
9178   $RM -r conftest 2>/dev/null
9179   mkdir conftest
9180   cd conftest
9181   mkdir out
9182   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184   lt_compiler_flag="-o out/conftest2.$ac_objext"
9185   # Insert the option either (1) after the last *FLAGS variable, or
9186   # (2) before a word containing "conftest.", or (3) at the end.
9187   # Note that $ac_compile itself does not contain backslashes and begins
9188   # with a dollar sign (not a hyphen), so the echo should work correctly.
9189   lt_compile=`echo "$ac_compile" | $SED \
9190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192   -e 's:$: $lt_compiler_flag:'`
9193   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194   (eval "$lt_compile" 2>out/conftest.err)
9195   ac_status=$?
9196   cat out/conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9199   then
9200     # The compiler can only warn and ignore the option if not recognized
9201     # So say no if there are warnings
9202     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9203     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9204     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9205       lt_cv_prog_compiler_c_o=yes
9206     fi
9207   fi
9208   chmod u+w . 2>&5
9209   $RM conftest*
9210   # SGI C++ compiler will create directory out/ii_files/ for
9211   # template instantiation
9212   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9213   $RM out/* && rmdir out
9214   cd ..
9215   $RM -r conftest
9216   $RM conftest*
9217
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9220$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9221
9222
9223
9224
9225
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229if ${lt_cv_prog_compiler_c_o+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  lt_cv_prog_compiler_c_o=no
9233   $RM -r conftest 2>/dev/null
9234   mkdir conftest
9235   cd conftest
9236   mkdir out
9237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238
9239   lt_compiler_flag="-o out/conftest2.$ac_objext"
9240   # Insert the option either (1) after the last *FLAGS variable, or
9241   # (2) before a word containing "conftest.", or (3) at the end.
9242   # Note that $ac_compile itself does not contain backslashes and begins
9243   # with a dollar sign (not a hyphen), so the echo should work correctly.
9244   lt_compile=`echo "$ac_compile" | $SED \
9245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247   -e 's:$: $lt_compiler_flag:'`
9248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249   (eval "$lt_compile" 2>out/conftest.err)
9250   ac_status=$?
9251   cat out/conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254   then
9255     # The compiler can only warn and ignore the option if not recognized
9256     # So say no if there are warnings
9257     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9258     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260       lt_cv_prog_compiler_c_o=yes
9261     fi
9262   fi
9263   chmod u+w . 2>&5
9264   $RM conftest*
9265   # SGI C++ compiler will create directory out/ii_files/ for
9266   # template instantiation
9267   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268   $RM out/* && rmdir out
9269   cd ..
9270   $RM -r conftest
9271   $RM conftest*
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9276
9277
9278
9279
9280hard_links=nottested
9281if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9282  # do not overwrite the value of need_locks provided by the user
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9284$as_echo_n "checking if we can lock with hard links... " >&6; }
9285  hard_links=yes
9286  $RM conftest*
9287  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9288  touch conftest.a
9289  ln conftest.a conftest.b 2>&5 || hard_links=no
9290  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9292$as_echo "$hard_links" >&6; }
9293  if test no = "$hard_links"; then
9294    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9295$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9296    need_locks=warn
9297  fi
9298else
9299  need_locks=no
9300fi
9301
9302
9303
9304
9305
9306
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9308$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9309
9310  runpath_var=
9311  allow_undefined_flag=
9312  always_export_symbols=no
9313  archive_cmds=
9314  archive_expsym_cmds=
9315  compiler_needs_object=no
9316  enable_shared_with_static_runtimes=no
9317  export_dynamic_flag_spec=
9318  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9319  hardcode_automatic=no
9320  hardcode_direct=no
9321  hardcode_direct_absolute=no
9322  hardcode_libdir_flag_spec=
9323  hardcode_libdir_separator=
9324  hardcode_minus_L=no
9325  hardcode_shlibpath_var=unsupported
9326  inherit_rpath=no
9327  link_all_deplibs=unknown
9328  module_cmds=
9329  module_expsym_cmds=
9330  old_archive_from_new_cmds=
9331  old_archive_from_expsyms_cmds=
9332  thread_safe_flag_spec=
9333  whole_archive_flag_spec=
9334  # include_expsyms should be a list of space-separated symbols to be *always*
9335  # included in the symbol list
9336  include_expsyms=
9337  # exclude_expsyms can be an extended regexp of symbols to exclude
9338  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9339  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9340  # as well as any symbol that contains 'd'.
9341  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9342  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9343  # platforms (ab)use it in PIC code, but their linkers get confused if
9344  # the symbol is explicitly referenced.  Since portable code cannot
9345  # rely on this symbol name, it's probably fine to never include it in
9346  # preloaded symbol tables.
9347  # Exclude shared library initialization/finalization symbols.
9348  extract_expsyms_cmds=
9349
9350  case $host_os in
9351  cygwin* | mingw* | pw32* | cegcc*)
9352    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9353    # When not using gcc, we currently assume that we are using
9354    # Microsoft Visual C++.
9355    if test yes != "$GCC"; then
9356      with_gnu_ld=no
9357    fi
9358    ;;
9359  interix*)
9360    # we just hope/assume this is gcc and not c89 (= MSVC++)
9361    with_gnu_ld=yes
9362    ;;
9363  openbsd* | bitrig*)
9364    with_gnu_ld=no
9365    ;;
9366  linux* | k*bsd*-gnu | gnu*)
9367    link_all_deplibs=no
9368    ;;
9369  esac
9370
9371  ld_shlibs=yes
9372
9373  # On some targets, GNU ld is compatible enough with the native linker
9374  # that we're better off using the native interface for both.
9375  lt_use_gnu_ld_interface=no
9376  if test yes = "$with_gnu_ld"; then
9377    case $host_os in
9378      aix*)
9379	# The AIX port of GNU ld has always aspired to compatibility
9380	# with the native linker.  However, as the warning in the GNU ld
9381	# block says, versions before 2.19.5* couldn't really create working
9382	# shared libraries, regardless of the interface used.
9383	case `$LD -v 2>&1` in
9384	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9385	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9386	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9387	  *)
9388	    lt_use_gnu_ld_interface=yes
9389	    ;;
9390	esac
9391	;;
9392      *)
9393	lt_use_gnu_ld_interface=yes
9394	;;
9395    esac
9396  fi
9397
9398  if test yes = "$lt_use_gnu_ld_interface"; then
9399    # If archive_cmds runs LD, not CC, wlarc should be empty
9400    wlarc='$wl'
9401
9402    # Set some defaults for GNU ld with shared library support. These
9403    # are reset later if shared libraries are not supported. Putting them
9404    # here allows them to be overridden if necessary.
9405    runpath_var=LD_RUN_PATH
9406    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9407    export_dynamic_flag_spec='$wl--export-dynamic'
9408    # ancient GNU ld didn't support --whole-archive et. al.
9409    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9410      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9411    else
9412      whole_archive_flag_spec=
9413    fi
9414    supports_anon_versioning=no
9415    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9416      *GNU\ gold*) supports_anon_versioning=yes ;;
9417      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9418      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9419      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9420      *\ 2.11.*) ;; # other 2.11 versions
9421      *) supports_anon_versioning=yes ;;
9422    esac
9423
9424    # See if GNU ld supports shared libraries.
9425    case $host_os in
9426    aix[3-9]*)
9427      # On AIX/PPC, the GNU linker is very broken
9428      if test ia64 != "$host_cpu"; then
9429	ld_shlibs=no
9430	cat <<_LT_EOF 1>&2
9431
9432*** Warning: the GNU linker, at least up to release 2.19, is reported
9433*** to be unable to reliably create shared libraries on AIX.
9434*** Therefore, libtool is disabling shared libraries support.  If you
9435*** really care for shared libraries, you may want to install binutils
9436*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9437*** You will then need to restart the configuration process.
9438
9439_LT_EOF
9440      fi
9441      ;;
9442
9443    amigaos*)
9444      case $host_cpu in
9445      powerpc)
9446            # see comment about AmigaOS4 .so support
9447            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9448            archive_expsym_cmds=''
9449        ;;
9450      m68k)
9451            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)'
9452            hardcode_libdir_flag_spec='-L$libdir'
9453            hardcode_minus_L=yes
9454        ;;
9455      esac
9456      ;;
9457
9458    beos*)
9459      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9460	allow_undefined_flag=unsupported
9461	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9462	# support --undefined.  This deserves some investigation.  FIXME
9463	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9464      else
9465	ld_shlibs=no
9466      fi
9467      ;;
9468
9469    cygwin* | mingw* | pw32* | cegcc*)
9470      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9471      # as there is no search path for DLLs.
9472      hardcode_libdir_flag_spec='-L$libdir'
9473      export_dynamic_flag_spec='$wl--export-all-symbols'
9474      allow_undefined_flag=unsupported
9475      always_export_symbols=no
9476      enable_shared_with_static_runtimes=yes
9477      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'
9478      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9479
9480      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9481        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9482	# If the export-symbols file already is a .def file, use it as
9483	# is; otherwise, prepend EXPORTS...
9484	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9485          cp $export_symbols $output_objdir/$soname.def;
9486        else
9487          echo EXPORTS > $output_objdir/$soname.def;
9488          cat $export_symbols >> $output_objdir/$soname.def;
9489        fi~
9490        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9491      else
9492	ld_shlibs=no
9493      fi
9494      ;;
9495
9496    haiku*)
9497      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9498      link_all_deplibs=yes
9499      ;;
9500
9501    os2*)
9502      hardcode_libdir_flag_spec='-L$libdir'
9503      hardcode_minus_L=yes
9504      allow_undefined_flag=unsupported
9505      shrext_cmds=.dll
9506      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9507	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9508	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9509	$ECHO EXPORTS >> $output_objdir/$libname.def~
9510	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9511	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9512	emximp -o $lib $output_objdir/$libname.def'
9513      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9514	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9515	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9516	$ECHO EXPORTS >> $output_objdir/$libname.def~
9517	prefix_cmds="$SED"~
9518	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9519	  prefix_cmds="$prefix_cmds -e 1d";
9520	fi~
9521	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9522	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9523	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9524	emximp -o $lib $output_objdir/$libname.def'
9525      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9526      enable_shared_with_static_runtimes=yes
9527      ;;
9528
9529    interix[3-9]*)
9530      hardcode_direct=no
9531      hardcode_shlibpath_var=no
9532      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9533      export_dynamic_flag_spec='$wl-E'
9534      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9535      # Instead, shared libraries are loaded at an image base (0x10000000 by
9536      # default) and relocated if they conflict, which is a slow very memory
9537      # consuming and fragmenting process.  To avoid this, we pick a random,
9538      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9539      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9540      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9541      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'
9542      ;;
9543
9544    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9545      tmp_diet=no
9546      if test linux-dietlibc = "$host_os"; then
9547	case $cc_basename in
9548	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9549	esac
9550      fi
9551      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9552	 && test no = "$tmp_diet"
9553      then
9554	tmp_addflag=' $pic_flag'
9555	tmp_sharedflag='-shared'
9556	case $cc_basename,$host_cpu in
9557        pgcc*)				# Portland Group C compiler
9558	  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'
9559	  tmp_addflag=' $pic_flag'
9560	  ;;
9561	pgf77* | pgf90* | pgf95* | pgfortran*)
9562					# Portland Group f77 and f90 compilers
9563	  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'
9564	  tmp_addflag=' $pic_flag -Mnomain' ;;
9565	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9566	  tmp_addflag=' -i_dynamic' ;;
9567	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9568	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9569	ifc* | ifort*)			# Intel Fortran compiler
9570	  tmp_addflag=' -nofor_main' ;;
9571	lf95*)				# Lahey Fortran 8.1
9572	  whole_archive_flag_spec=
9573	  tmp_sharedflag='--shared' ;;
9574        nagfor*)                        # NAGFOR 5.3
9575          tmp_sharedflag='-Wl,-shared' ;;
9576	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9577	  tmp_sharedflag='-qmkshrobj'
9578	  tmp_addflag= ;;
9579	nvcc*)	# Cuda Compiler Driver 2.2
9580	  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'
9581	  compiler_needs_object=yes
9582	  ;;
9583	esac
9584	case `$CC -V 2>&1 | sed 5q` in
9585	*Sun\ C*)			# Sun C 5.9
9586	  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'
9587	  compiler_needs_object=yes
9588	  tmp_sharedflag='-G' ;;
9589	*Sun\ F*)			# Sun Fortran 8.3
9590	  tmp_sharedflag='-G' ;;
9591	esac
9592	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9593
9594        if test yes = "$supports_anon_versioning"; then
9595          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9596            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9597            echo "local: *; };" >> $output_objdir/$libname.ver~
9598            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9599        fi
9600
9601	case $cc_basename in
9602	tcc*)
9603	  export_dynamic_flag_spec='-rdynamic'
9604	  ;;
9605	xlf* | bgf* | bgxlf* | mpixlf*)
9606	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9608	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9609	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9610	  if test yes = "$supports_anon_versioning"; then
9611	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9612              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9613              echo "local: *; };" >> $output_objdir/$libname.ver~
9614              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9615	  fi
9616	  ;;
9617	esac
9618      else
9619        ld_shlibs=no
9620      fi
9621      ;;
9622
9623    netbsd* | netbsdelf*-gnu)
9624      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9625	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9626	wlarc=
9627      else
9628	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9629	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9630      fi
9631      ;;
9632
9633    solaris*)
9634      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9635	ld_shlibs=no
9636	cat <<_LT_EOF 1>&2
9637
9638*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9639*** create shared libraries on Solaris systems.  Therefore, libtool
9640*** is disabling shared libraries support.  We urge you to upgrade GNU
9641*** binutils to release 2.9.1 or newer.  Another option is to modify
9642*** your PATH or compiler configuration so that the native linker is
9643*** used, and then restart.
9644
9645_LT_EOF
9646      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9647	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9648	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9649      else
9650	ld_shlibs=no
9651      fi
9652      ;;
9653
9654    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9655      case `$LD -v 2>&1` in
9656        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9657	ld_shlibs=no
9658	cat <<_LT_EOF 1>&2
9659
9660*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9661*** reliably create shared libraries on SCO systems.  Therefore, libtool
9662*** is disabling shared libraries support.  We urge you to upgrade GNU
9663*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9664*** your PATH or compiler configuration so that the native linker is
9665*** used, and then restart.
9666
9667_LT_EOF
9668	;;
9669	*)
9670	  # For security reasons, it is highly recommended that you always
9671	  # use absolute paths for naming shared libraries, and exclude the
9672	  # DT_RUNPATH tag from executables and libraries.  But doing so
9673	  # requires that you compile everything twice, which is a pain.
9674	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9676	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9677	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9678	  else
9679	    ld_shlibs=no
9680	  fi
9681	;;
9682      esac
9683      ;;
9684
9685    sunos4*)
9686      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9687      wlarc=
9688      hardcode_direct=yes
9689      hardcode_shlibpath_var=no
9690      ;;
9691
9692    *)
9693      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9694	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9696      else
9697	ld_shlibs=no
9698      fi
9699      ;;
9700    esac
9701
9702    if test no = "$ld_shlibs"; then
9703      runpath_var=
9704      hardcode_libdir_flag_spec=
9705      export_dynamic_flag_spec=
9706      whole_archive_flag_spec=
9707    fi
9708  else
9709    # PORTME fill in a description of your system's linker (not GNU ld)
9710    case $host_os in
9711    aix3*)
9712      allow_undefined_flag=unsupported
9713      always_export_symbols=yes
9714      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'
9715      # Note: this linker hardcodes the directories in LIBPATH if there
9716      # are no directories specified by -L.
9717      hardcode_minus_L=yes
9718      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9719	# Neither direct hardcoding nor static linking is supported with a
9720	# broken collect2.
9721	hardcode_direct=unsupported
9722      fi
9723      ;;
9724
9725    aix[4-9]*)
9726      if test ia64 = "$host_cpu"; then
9727	# On IA64, the linker does run time linking by default, so we don't
9728	# have to do anything special.
9729	aix_use_runtimelinking=no
9730	exp_sym_flag='-Bexport'
9731	no_entry_flag=
9732      else
9733	# If we're using GNU nm, then we don't want the "-C" option.
9734	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9735	# Without the "-l" option, or with the "-B" option, AIX nm treats
9736	# weak defined symbols like other global defined symbols, whereas
9737	# GNU nm marks them as "W".
9738	# While the 'weak' keyword is ignored in the Export File, we need
9739	# it in the Import File for the 'aix-soname' feature, so we have
9740	# to replace the "-B" option with "-P" for AIX nm.
9741	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9742	  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'
9743	else
9744	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9745	fi
9746	aix_use_runtimelinking=no
9747
9748	# Test if we are trying to use run time linking or normal
9749	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9750	# have runtime linking enabled, and use it for executables.
9751	# For shared libraries, we enable/disable runtime linking
9752	# depending on the kind of the shared library created -
9753	# when "with_aix_soname,aix_use_runtimelinking" is:
9754	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9755	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9756	#            lib.a           static archive
9757	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9758	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9759	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9760	#            lib.a(lib.so.V) shared, rtl:no
9761	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9762	#            lib.a           static archive
9763	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9764	  for ld_flag in $LDFLAGS; do
9765	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9766	    aix_use_runtimelinking=yes
9767	    break
9768	  fi
9769	  done
9770	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9771	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9772	    # so we don't have lib.a shared libs to link our executables.
9773	    # We have to force runtime linking in this case.
9774	    aix_use_runtimelinking=yes
9775	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9776	  fi
9777	  ;;
9778	esac
9779
9780	exp_sym_flag='-bexport'
9781	no_entry_flag='-bnoentry'
9782      fi
9783
9784      # When large executables or shared objects are built, AIX ld can
9785      # have problems creating the table of contents.  If linking a library
9786      # or program results in "error TOC overflow" add -mminimal-toc to
9787      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9788      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9789
9790      archive_cmds=''
9791      hardcode_direct=yes
9792      hardcode_direct_absolute=yes
9793      hardcode_libdir_separator=':'
9794      link_all_deplibs=yes
9795      file_list_spec='$wl-f,'
9796      case $with_aix_soname,$aix_use_runtimelinking in
9797      aix,*) ;; # traditional, no import file
9798      svr4,* | *,yes) # use import file
9799	# The Import File defines what to hardcode.
9800	hardcode_direct=no
9801	hardcode_direct_absolute=no
9802	;;
9803      esac
9804
9805      if test yes = "$GCC"; then
9806	case $host_os in aix4.[012]|aix4.[012].*)
9807	# We only want to do this on AIX 4.2 and lower, the check
9808	# below for broken collect2 doesn't work under 4.3+
9809	  collect2name=`$CC -print-prog-name=collect2`
9810	  if test -f "$collect2name" &&
9811	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9812	  then
9813	  # We have reworked collect2
9814	  :
9815	  else
9816	  # We have old collect2
9817	  hardcode_direct=unsupported
9818	  # It fails to find uninstalled libraries when the uninstalled
9819	  # path is not listed in the libpath.  Setting hardcode_minus_L
9820	  # to unsupported forces relinking
9821	  hardcode_minus_L=yes
9822	  hardcode_libdir_flag_spec='-L$libdir'
9823	  hardcode_libdir_separator=
9824	  fi
9825	  ;;
9826	esac
9827	shared_flag='-shared'
9828	if test yes = "$aix_use_runtimelinking"; then
9829	  shared_flag="$shared_flag "'$wl-G'
9830	fi
9831	# Need to ensure runtime linking is disabled for the traditional
9832	# shared library, or the linker may eventually find shared libraries
9833	# /with/ Import File - we do not want to mix them.
9834	shared_flag_aix='-shared'
9835	shared_flag_svr4='-shared $wl-G'
9836      else
9837	# not using gcc
9838	if test ia64 = "$host_cpu"; then
9839	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9840	# chokes on -Wl,-G. The following line is correct:
9841	  shared_flag='-G'
9842	else
9843	  if test yes = "$aix_use_runtimelinking"; then
9844	    shared_flag='$wl-G'
9845	  else
9846	    shared_flag='$wl-bM:SRE'
9847	  fi
9848	  shared_flag_aix='$wl-bM:SRE'
9849	  shared_flag_svr4='$wl-G'
9850	fi
9851      fi
9852
9853      export_dynamic_flag_spec='$wl-bexpall'
9854      # It seems that -bexpall does not export symbols beginning with
9855      # underscore (_), so it is better to generate a list of symbols to export.
9856      always_export_symbols=yes
9857      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9858	# Warning - without using the other runtime loading flags (-brtl),
9859	# -berok will link without error, but may produce a broken library.
9860	allow_undefined_flag='-berok'
9861        # Determine the default libpath from the value encoded in an
9862        # empty executable.
9863        if test set = "${lt_cv_aix_libpath+set}"; then
9864  aix_libpath=$lt_cv_aix_libpath
9865else
9866  if ${lt_cv_aix_libpath_+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871
9872int
9873main ()
9874{
9875
9876  ;
9877  return 0;
9878}
9879_ACEOF
9880if ac_fn_c_try_link "$LINENO"; then :
9881
9882  lt_aix_libpath_sed='
9883      /Import File Strings/,/^$/ {
9884	  /^0/ {
9885	      s/^0  *\([^ ]*\) *$/\1/
9886	      p
9887	  }
9888      }'
9889  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9890  # Check for a 64-bit object if we didn't find anything.
9891  if test -z "$lt_cv_aix_libpath_"; then
9892    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9893  fi
9894fi
9895rm -f core conftest.err conftest.$ac_objext \
9896    conftest$ac_exeext conftest.$ac_ext
9897  if test -z "$lt_cv_aix_libpath_"; then
9898    lt_cv_aix_libpath_=/usr/lib:/lib
9899  fi
9900
9901fi
9902
9903  aix_libpath=$lt_cv_aix_libpath_
9904fi
9905
9906        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9907        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
9908      else
9909	if test ia64 = "$host_cpu"; then
9910	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9911	  allow_undefined_flag="-z nodefs"
9912	  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"
9913	else
9914	 # Determine the default libpath from the value encoded in an
9915	 # empty executable.
9916	 if test set = "${lt_cv_aix_libpath+set}"; then
9917  aix_libpath=$lt_cv_aix_libpath
9918else
9919  if ${lt_cv_aix_libpath_+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924
9925int
9926main ()
9927{
9928
9929  ;
9930  return 0;
9931}
9932_ACEOF
9933if ac_fn_c_try_link "$LINENO"; then :
9934
9935  lt_aix_libpath_sed='
9936      /Import File Strings/,/^$/ {
9937	  /^0/ {
9938	      s/^0  *\([^ ]*\) *$/\1/
9939	      p
9940	  }
9941      }'
9942  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9943  # Check for a 64-bit object if we didn't find anything.
9944  if test -z "$lt_cv_aix_libpath_"; then
9945    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9946  fi
9947fi
9948rm -f core conftest.err conftest.$ac_objext \
9949    conftest$ac_exeext conftest.$ac_ext
9950  if test -z "$lt_cv_aix_libpath_"; then
9951    lt_cv_aix_libpath_=/usr/lib:/lib
9952  fi
9953
9954fi
9955
9956  aix_libpath=$lt_cv_aix_libpath_
9957fi
9958
9959	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9960	  # Warning - without using the other run time loading flags,
9961	  # -berok will link without error, but may produce a broken library.
9962	  no_undefined_flag=' $wl-bernotok'
9963	  allow_undefined_flag=' $wl-berok'
9964	  if test yes = "$with_gnu_ld"; then
9965	    # We only use this code for GNU lds that support --whole-archive.
9966	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9967	  else
9968	    # Exported symbols can be pulled into shared objects from archives
9969	    whole_archive_flag_spec='$convenience'
9970	  fi
9971	  archive_cmds_need_lc=yes
9972	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9973	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9974	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9975	  if test svr4 != "$with_aix_soname"; then
9976	    # This is similar to how AIX traditionally builds its shared libraries.
9977	    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'
9978	  fi
9979	  if test aix != "$with_aix_soname"; then
9980	    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'
9981	  else
9982	    # used by -dlpreopen to get the symbols
9983	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9984	  fi
9985	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9986	fi
9987      fi
9988      ;;
9989
9990    amigaos*)
9991      case $host_cpu in
9992      powerpc)
9993            # see comment about AmigaOS4 .so support
9994            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9995            archive_expsym_cmds=''
9996        ;;
9997      m68k)
9998            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)'
9999            hardcode_libdir_flag_spec='-L$libdir'
10000            hardcode_minus_L=yes
10001        ;;
10002      esac
10003      ;;
10004
10005    bsdi[45]*)
10006      export_dynamic_flag_spec=-rdynamic
10007      ;;
10008
10009    cygwin* | mingw* | pw32* | cegcc*)
10010      # When not using gcc, we currently assume that we are using
10011      # Microsoft Visual C++.
10012      # hardcode_libdir_flag_spec is actually meaningless, as there is
10013      # no search path for DLLs.
10014      case $cc_basename in
10015      cl*)
10016	# Native MSVC
10017	hardcode_libdir_flag_spec=' '
10018	allow_undefined_flag=unsupported
10019	always_export_symbols=yes
10020	file_list_spec='@'
10021	# Tell ltmain to make .lib files, not .a files.
10022	libext=lib
10023	# Tell ltmain to make .dll files, not .so files.
10024	shrext_cmds=.dll
10025	# FIXME: Setting linknames here is a bad hack.
10026	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10027	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10028            cp "$export_symbols" "$output_objdir/$soname.def";
10029            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10030          else
10031            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10032          fi~
10033          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10034          linknames='
10035	# The linker will not automatically build a static lib if we build a DLL.
10036	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10037	enable_shared_with_static_runtimes=yes
10038	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10039	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10040	# Don't use ranlib
10041	old_postinstall_cmds='chmod 644 $oldlib'
10042	postlink_cmds='lt_outputfile="@OUTPUT@"~
10043          lt_tool_outputfile="@TOOL_OUTPUT@"~
10044          case $lt_outputfile in
10045            *.exe|*.EXE) ;;
10046            *)
10047              lt_outputfile=$lt_outputfile.exe
10048              lt_tool_outputfile=$lt_tool_outputfile.exe
10049              ;;
10050          esac~
10051          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10052            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10053            $RM "$lt_outputfile.manifest";
10054          fi'
10055	;;
10056      *)
10057	# Assume MSVC wrapper
10058	hardcode_libdir_flag_spec=' '
10059	allow_undefined_flag=unsupported
10060	# Tell ltmain to make .lib files, not .a files.
10061	libext=lib
10062	# Tell ltmain to make .dll files, not .so files.
10063	shrext_cmds=.dll
10064	# FIXME: Setting linknames here is a bad hack.
10065	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10066	# The linker will automatically build a .lib file if we build a DLL.
10067	old_archive_from_new_cmds='true'
10068	# FIXME: Should let the user specify the lib program.
10069	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10070	enable_shared_with_static_runtimes=yes
10071	;;
10072      esac
10073      ;;
10074
10075    darwin* | rhapsody*)
10076
10077
10078  archive_cmds_need_lc=no
10079  hardcode_direct=no
10080  hardcode_automatic=yes
10081  hardcode_shlibpath_var=unsupported
10082  if test yes = "$lt_cv_ld_force_load"; then
10083    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\"`'
10084
10085  else
10086    whole_archive_flag_spec=''
10087  fi
10088  link_all_deplibs=yes
10089  allow_undefined_flag=$_lt_dar_allow_undefined
10090  case $cc_basename in
10091     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10092     *) _lt_dar_can_shared=$GCC ;;
10093  esac
10094  if test yes = "$_lt_dar_can_shared"; then
10095    output_verbose_link_cmd=func_echo_all
10096    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10097    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10098    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"
10099    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"
10100
10101  else
10102  ld_shlibs=no
10103  fi
10104
10105      ;;
10106
10107    dgux*)
10108      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109      hardcode_libdir_flag_spec='-L$libdir'
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10114    # support.  Future versions do this automatically, but an explicit c++rt0.o
10115    # does not break anything, and helps significantly (at the cost of a little
10116    # extra space).
10117    freebsd2.2*)
10118      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10119      hardcode_libdir_flag_spec='-R$libdir'
10120      hardcode_direct=yes
10121      hardcode_shlibpath_var=no
10122      ;;
10123
10124    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10125    freebsd2.*)
10126      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10127      hardcode_direct=yes
10128      hardcode_minus_L=yes
10129      hardcode_shlibpath_var=no
10130      ;;
10131
10132    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10133    freebsd* | dragonfly*)
10134      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135      hardcode_libdir_flag_spec='-R$libdir'
10136      hardcode_direct=yes
10137      hardcode_shlibpath_var=no
10138      ;;
10139
10140    hpux9*)
10141      if test yes = "$GCC"; then
10142	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'
10143      else
10144	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'
10145      fi
10146      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10147      hardcode_libdir_separator=:
10148      hardcode_direct=yes
10149
10150      # hardcode_minus_L: Not really in the search PATH,
10151      # but as the default location of the library.
10152      hardcode_minus_L=yes
10153      export_dynamic_flag_spec='$wl-E'
10154      ;;
10155
10156    hpux10*)
10157      if test yes,no = "$GCC,$with_gnu_ld"; then
10158	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10159      else
10160	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10161      fi
10162      if test no = "$with_gnu_ld"; then
10163	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10164	hardcode_libdir_separator=:
10165	hardcode_direct=yes
10166	hardcode_direct_absolute=yes
10167	export_dynamic_flag_spec='$wl-E'
10168	# hardcode_minus_L: Not really in the search PATH,
10169	# but as the default location of the library.
10170	hardcode_minus_L=yes
10171      fi
10172      ;;
10173
10174    hpux11*)
10175      if test yes,no = "$GCC,$with_gnu_ld"; then
10176	case $host_cpu in
10177	hppa*64*)
10178	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10179	  ;;
10180	ia64*)
10181	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10182	  ;;
10183	*)
10184	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10185	  ;;
10186	esac
10187      else
10188	case $host_cpu in
10189	hppa*64*)
10190	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10191	  ;;
10192	ia64*)
10193	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10194	  ;;
10195	*)
10196
10197	  # Older versions of the 11.00 compiler do not understand -b yet
10198	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10199	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10200$as_echo_n "checking if $CC understands -b... " >&6; }
10201if ${lt_cv_prog_compiler__b+:} false; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  lt_cv_prog_compiler__b=no
10205   save_LDFLAGS=$LDFLAGS
10206   LDFLAGS="$LDFLAGS -b"
10207   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10208   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10209     # The linker can only warn and ignore the option if not recognized
10210     # So say no if there are warnings
10211     if test -s conftest.err; then
10212       # Append any errors to the config.log.
10213       cat conftest.err 1>&5
10214       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10215       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10216       if diff conftest.exp conftest.er2 >/dev/null; then
10217         lt_cv_prog_compiler__b=yes
10218       fi
10219     else
10220       lt_cv_prog_compiler__b=yes
10221     fi
10222   fi
10223   $RM -r conftest*
10224   LDFLAGS=$save_LDFLAGS
10225
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10228$as_echo "$lt_cv_prog_compiler__b" >&6; }
10229
10230if test yes = "$lt_cv_prog_compiler__b"; then
10231    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232else
10233    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10234fi
10235
10236	  ;;
10237	esac
10238      fi
10239      if test no = "$with_gnu_ld"; then
10240	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10241	hardcode_libdir_separator=:
10242
10243	case $host_cpu in
10244	hppa*64*|ia64*)
10245	  hardcode_direct=no
10246	  hardcode_shlibpath_var=no
10247	  ;;
10248	*)
10249	  hardcode_direct=yes
10250	  hardcode_direct_absolute=yes
10251	  export_dynamic_flag_spec='$wl-E'
10252
10253	  # hardcode_minus_L: Not really in the search PATH,
10254	  # but as the default location of the library.
10255	  hardcode_minus_L=yes
10256	  ;;
10257	esac
10258      fi
10259      ;;
10260
10261    irix5* | irix6* | nonstopux*)
10262      if test yes = "$GCC"; then
10263	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'
10264	# Try to use the -exported_symbol ld option, if it does not
10265	# work, assume that -exports_file does not work either and
10266	# implicitly export all symbols.
10267	# This should be the same for all languages, so no per-tag cache variable.
10268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10269$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10270if ${lt_cv_irix_exported_symbol+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  save_LDFLAGS=$LDFLAGS
10274	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10275	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int foo (void) { return 0; }
10278_ACEOF
10279if ac_fn_c_try_link "$LINENO"; then :
10280  lt_cv_irix_exported_symbol=yes
10281else
10282  lt_cv_irix_exported_symbol=no
10283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285    conftest$ac_exeext conftest.$ac_ext
10286           LDFLAGS=$save_LDFLAGS
10287fi
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10289$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10290	if test yes = "$lt_cv_irix_exported_symbol"; then
10291          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'
10292	fi
10293	link_all_deplibs=no
10294      else
10295	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'
10296	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'
10297      fi
10298      archive_cmds_need_lc='no'
10299      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10300      hardcode_libdir_separator=:
10301      inherit_rpath=yes
10302      link_all_deplibs=yes
10303      ;;
10304
10305    linux*)
10306      case $cc_basename in
10307      tcc*)
10308	# Fabrice Bellard et al's Tiny C Compiler
10309	ld_shlibs=yes
10310	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10311	;;
10312      esac
10313      ;;
10314
10315    netbsd* | netbsdelf*-gnu)
10316      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10317	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10318      else
10319	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10320      fi
10321      hardcode_libdir_flag_spec='-R$libdir'
10322      hardcode_direct=yes
10323      hardcode_shlibpath_var=no
10324      ;;
10325
10326    newsos6)
10327      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328      hardcode_direct=yes
10329      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330      hardcode_libdir_separator=:
10331      hardcode_shlibpath_var=no
10332      ;;
10333
10334    *nto* | *qnx*)
10335      ;;
10336
10337    openbsd* | bitrig*)
10338      if test -f /usr/libexec/ld.so; then
10339	hardcode_direct=yes
10340	hardcode_shlibpath_var=no
10341	hardcode_direct_absolute=yes
10342	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10343	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10344	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10345	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10346	  export_dynamic_flag_spec='$wl-E'
10347	else
10348	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10349	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10350	fi
10351      else
10352	ld_shlibs=no
10353      fi
10354      ;;
10355
10356    os2*)
10357      hardcode_libdir_flag_spec='-L$libdir'
10358      hardcode_minus_L=yes
10359      allow_undefined_flag=unsupported
10360      shrext_cmds=.dll
10361      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10362	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10363	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10364	$ECHO EXPORTS >> $output_objdir/$libname.def~
10365	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10366	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10367	emximp -o $lib $output_objdir/$libname.def'
10368      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10369	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10370	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10371	$ECHO EXPORTS >> $output_objdir/$libname.def~
10372	prefix_cmds="$SED"~
10373	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10374	  prefix_cmds="$prefix_cmds -e 1d";
10375	fi~
10376	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10377	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10378	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10379	emximp -o $lib $output_objdir/$libname.def'
10380      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10381      enable_shared_with_static_runtimes=yes
10382      ;;
10383
10384    osf3*)
10385      if test yes = "$GCC"; then
10386	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10387	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'
10388      else
10389	allow_undefined_flag=' -expect_unresolved \*'
10390	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'
10391      fi
10392      archive_cmds_need_lc='no'
10393      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10394      hardcode_libdir_separator=:
10395      ;;
10396
10397    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10398      if test yes = "$GCC"; then
10399	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10400	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'
10401	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10402      else
10403	allow_undefined_flag=' -expect_unresolved \*'
10404	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'
10405	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~
10406          $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'
10407
10408	# Both c and cxx compiler support -rpath directly
10409	hardcode_libdir_flag_spec='-rpath $libdir'
10410      fi
10411      archive_cmds_need_lc='no'
10412      hardcode_libdir_separator=:
10413      ;;
10414
10415    solaris*)
10416      no_undefined_flag=' -z defs'
10417      if test yes = "$GCC"; then
10418	wlarc='$wl'
10419	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10420	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10421          $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'
10422      else
10423	case `$CC -V 2>&1` in
10424	*"Compilers 5.0"*)
10425	  wlarc=''
10426	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10428            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10429	  ;;
10430	*)
10431	  wlarc='$wl'
10432	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10433	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10434            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10435	  ;;
10436	esac
10437      fi
10438      hardcode_libdir_flag_spec='-R$libdir'
10439      hardcode_shlibpath_var=no
10440      case $host_os in
10441      solaris2.[0-5] | solaris2.[0-5].*) ;;
10442      *)
10443	# The compiler driver will combine and reorder linker options,
10444	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10445	# but is careful enough not to reorder.
10446	# Supported since Solaris 2.6 (maybe 2.5.1?)
10447	if test yes = "$GCC"; then
10448	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10449	else
10450	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10451	fi
10452	;;
10453      esac
10454      link_all_deplibs=yes
10455      ;;
10456
10457    sunos4*)
10458      if test sequent = "$host_vendor"; then
10459	# Use $CC to link under sequent, because it throws in some extra .o
10460	# files that make .init and .fini sections work.
10461	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10462      else
10463	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10464      fi
10465      hardcode_libdir_flag_spec='-L$libdir'
10466      hardcode_direct=yes
10467      hardcode_minus_L=yes
10468      hardcode_shlibpath_var=no
10469      ;;
10470
10471    sysv4)
10472      case $host_vendor in
10473	sni)
10474	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475	  hardcode_direct=yes # is this really true???
10476	;;
10477	siemens)
10478	  ## LD is ld it makes a PLAMLIB
10479	  ## CC just makes a GrossModule.
10480	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10481	  reload_cmds='$CC -r -o $output$reload_objs'
10482	  hardcode_direct=no
10483        ;;
10484	motorola)
10485	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10487	;;
10488      esac
10489      runpath_var='LD_RUN_PATH'
10490      hardcode_shlibpath_var=no
10491      ;;
10492
10493    sysv4.3*)
10494      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495      hardcode_shlibpath_var=no
10496      export_dynamic_flag_spec='-Bexport'
10497      ;;
10498
10499    sysv4*MP*)
10500      if test -d /usr/nec; then
10501	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10502	hardcode_shlibpath_var=no
10503	runpath_var=LD_RUN_PATH
10504	hardcode_runpath_var=yes
10505	ld_shlibs=yes
10506      fi
10507      ;;
10508
10509    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10510      no_undefined_flag='$wl-z,text'
10511      archive_cmds_need_lc=no
10512      hardcode_shlibpath_var=no
10513      runpath_var='LD_RUN_PATH'
10514
10515      if test yes = "$GCC"; then
10516	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518      else
10519	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521      fi
10522      ;;
10523
10524    sysv5* | sco3.2v5* | sco5v6*)
10525      # Note: We CANNOT use -z defs as we might desire, because we do not
10526      # link with -lc, and that would cause any symbols used from libc to
10527      # always be unresolved, which means just about no library would
10528      # ever link correctly.  If we're not using GNU ld we use -z text
10529      # though, which does catch some bad symbols but isn't as heavy-handed
10530      # as -z defs.
10531      no_undefined_flag='$wl-z,text'
10532      allow_undefined_flag='$wl-z,nodefs'
10533      archive_cmds_need_lc=no
10534      hardcode_shlibpath_var=no
10535      hardcode_libdir_flag_spec='$wl-R,$libdir'
10536      hardcode_libdir_separator=':'
10537      link_all_deplibs=yes
10538      export_dynamic_flag_spec='$wl-Bexport'
10539      runpath_var='LD_RUN_PATH'
10540
10541      if test yes = "$GCC"; then
10542	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544      else
10545	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547      fi
10548      ;;
10549
10550    uts4*)
10551      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552      hardcode_libdir_flag_spec='-L$libdir'
10553      hardcode_shlibpath_var=no
10554      ;;
10555
10556    *)
10557      ld_shlibs=no
10558      ;;
10559    esac
10560
10561    if test sni = "$host_vendor"; then
10562      case $host in
10563      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10564	export_dynamic_flag_spec='$wl-Blargedynsym'
10565	;;
10566      esac
10567    fi
10568  fi
10569
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10571$as_echo "$ld_shlibs" >&6; }
10572test no = "$ld_shlibs" && can_build_shared=no
10573
10574with_gnu_ld=$with_gnu_ld
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590#
10591# Do we need to explicitly link libc?
10592#
10593case "x$archive_cmds_need_lc" in
10594x|xyes)
10595  # Assume -lc should be added
10596  archive_cmds_need_lc=yes
10597
10598  if test yes,yes = "$GCC,$enable_shared"; then
10599    case $archive_cmds in
10600    *'~'*)
10601      # FIXME: we may have to deal with multi-command sequences.
10602      ;;
10603    '$CC '*)
10604      # Test whether the compiler implicitly links with -lc since on some
10605      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606      # to ld, don't add -lc before -lgcc.
10607      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10608$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10609if ${lt_cv_archive_cmds_need_lc+:} false; then :
10610  $as_echo_n "(cached) " >&6
10611else
10612  $RM conftest*
10613	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10614
10615	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10616  (eval $ac_compile) 2>&5
10617  ac_status=$?
10618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619  test $ac_status = 0; } 2>conftest.err; then
10620	  soname=conftest
10621	  lib=conftest
10622	  libobjs=conftest.$ac_objext
10623	  deplibs=
10624	  wl=$lt_prog_compiler_wl
10625	  pic_flag=$lt_prog_compiler_pic
10626	  compiler_flags=-v
10627	  linker_flags=-v
10628	  verstring=
10629	  output_objdir=.
10630	  libname=conftest
10631	  lt_save_allow_undefined_flag=$allow_undefined_flag
10632	  allow_undefined_flag=
10633	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10634  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10635  ac_status=$?
10636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10637  test $ac_status = 0; }
10638	  then
10639	    lt_cv_archive_cmds_need_lc=no
10640	  else
10641	    lt_cv_archive_cmds_need_lc=yes
10642	  fi
10643	  allow_undefined_flag=$lt_save_allow_undefined_flag
10644	else
10645	  cat conftest.err 1>&5
10646	fi
10647	$RM conftest*
10648
10649fi
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10651$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10652      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10653      ;;
10654    esac
10655  fi
10656  ;;
10657esac
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10811$as_echo_n "checking dynamic linker characteristics... " >&6; }
10812
10813if test yes = "$GCC"; then
10814  case $host_os in
10815    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10816    *) lt_awk_arg='/^libraries:/' ;;
10817  esac
10818  case $host_os in
10819    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10820    *) lt_sed_strip_eq='s|=/|/|g' ;;
10821  esac
10822  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10823  case $lt_search_path_spec in
10824  *\;*)
10825    # if the path contains ";" then we assume it to be the separator
10826    # otherwise default to the standard path separator (i.e. ":") - it is
10827    # assumed that no part of a normal pathname contains ";" but that should
10828    # okay in the real world where ";" in dirpaths is itself problematic.
10829    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10830    ;;
10831  *)
10832    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10833    ;;
10834  esac
10835  # Ok, now we have the path, separated by spaces, we can step through it
10836  # and add multilib dir if necessary...
10837  lt_tmp_lt_search_path_spec=
10838  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10839  # ...but if some path component already ends with the multilib dir we assume
10840  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10841  case "$lt_multi_os_dir; $lt_search_path_spec " in
10842  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10843    lt_multi_os_dir=
10844    ;;
10845  esac
10846  for lt_sys_path in $lt_search_path_spec; do
10847    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10848      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10849    elif test -n "$lt_multi_os_dir"; then
10850      test -d "$lt_sys_path" && \
10851	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10852    fi
10853  done
10854  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10855BEGIN {RS = " "; FS = "/|\n";} {
10856  lt_foo = "";
10857  lt_count = 0;
10858  for (lt_i = NF; lt_i > 0; lt_i--) {
10859    if ($lt_i != "" && $lt_i != ".") {
10860      if ($lt_i == "..") {
10861        lt_count++;
10862      } else {
10863        if (lt_count == 0) {
10864          lt_foo = "/" $lt_i lt_foo;
10865        } else {
10866          lt_count--;
10867        }
10868      }
10869    }
10870  }
10871  if (lt_foo != "") { lt_freq[lt_foo]++; }
10872  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10873}'`
10874  # AWK program above erroneously prepends '/' to C:/dos/paths
10875  # for these hosts.
10876  case $host_os in
10877    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10878      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10879  esac
10880  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10881else
10882  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10883fi
10884library_names_spec=
10885libname_spec='lib$name'
10886soname_spec=
10887shrext_cmds=.so
10888postinstall_cmds=
10889postuninstall_cmds=
10890finish_cmds=
10891finish_eval=
10892shlibpath_var=
10893shlibpath_overrides_runpath=unknown
10894version_type=none
10895dynamic_linker="$host_os ld.so"
10896sys_lib_dlsearch_path_spec="/lib /usr/lib"
10897need_lib_prefix=unknown
10898hardcode_into_libs=no
10899
10900# when you set need_version to no, make sure it does not cause -set_version
10901# flags to be left without arguments
10902need_version=unknown
10903
10904
10905
10906case $host_os in
10907aix3*)
10908  version_type=linux # correct to gnu/linux during the next big refactor
10909  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10910  shlibpath_var=LIBPATH
10911
10912  # AIX 3 has no versioning support, so we append a major version to the name.
10913  soname_spec='$libname$release$shared_ext$major'
10914  ;;
10915
10916aix[4-9]*)
10917  version_type=linux # correct to gnu/linux during the next big refactor
10918  need_lib_prefix=no
10919  need_version=no
10920  hardcode_into_libs=yes
10921  if test ia64 = "$host_cpu"; then
10922    # AIX 5 supports IA64
10923    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10924    shlibpath_var=LD_LIBRARY_PATH
10925  else
10926    # With GCC up to 2.95.x, collect2 would create an import file
10927    # for dependence libraries.  The import file would start with
10928    # the line '#! .'.  This would cause the generated library to
10929    # depend on '.', always an invalid library.  This was fixed in
10930    # development snapshots of GCC prior to 3.0.
10931    case $host_os in
10932      aix4 | aix4.[01] | aix4.[01].*)
10933      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10934	   echo ' yes '
10935	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10936	:
10937      else
10938	can_build_shared=no
10939      fi
10940      ;;
10941    esac
10942    # Using Import Files as archive members, it is possible to support
10943    # filename-based versioning of shared library archives on AIX. While
10944    # this would work for both with and without runtime linking, it will
10945    # prevent static linking of such archives. So we do filename-based
10946    # shared library versioning with .so extension only, which is used
10947    # when both runtime linking and shared linking is enabled.
10948    # Unfortunately, runtime linking may impact performance, so we do
10949    # not want this to be the default eventually. Also, we use the
10950    # versioned .so libs for executables only if there is the -brtl
10951    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10952    # To allow for filename-based versioning support, we need to create
10953    # libNAME.so.V as an archive file, containing:
10954    # *) an Import File, referring to the versioned filename of the
10955    #    archive as well as the shared archive member, telling the
10956    #    bitwidth (32 or 64) of that shared object, and providing the
10957    #    list of exported symbols of that shared object, eventually
10958    #    decorated with the 'weak' keyword
10959    # *) the shared object with the F_LOADONLY flag set, to really avoid
10960    #    it being seen by the linker.
10961    # At run time we better use the real file rather than another symlink,
10962    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10963
10964    case $with_aix_soname,$aix_use_runtimelinking in
10965    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10966    # soname into executable. Probably we can add versioning support to
10967    # collect2, so additional links can be useful in future.
10968    aix,yes) # traditional libtool
10969      dynamic_linker='AIX unversionable lib.so'
10970      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10971      # instead of lib<name>.a to let people know that these are not
10972      # typical AIX shared libraries.
10973      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10974      ;;
10975    aix,no) # traditional AIX only
10976      dynamic_linker='AIX lib.a(lib.so.V)'
10977      # We preserve .a as extension for shared libraries through AIX4.2
10978      # and later when we are not doing run time linking.
10979      library_names_spec='$libname$release.a $libname.a'
10980      soname_spec='$libname$release$shared_ext$major'
10981      ;;
10982    svr4,*) # full svr4 only
10983      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10984      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10985      # We do not specify a path in Import Files, so LIBPATH fires.
10986      shlibpath_overrides_runpath=yes
10987      ;;
10988    *,yes) # both, prefer svr4
10989      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10990      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10991      # unpreferred sharedlib libNAME.a needs extra handling
10992      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"'
10993      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"'
10994      # We do not specify a path in Import Files, so LIBPATH fires.
10995      shlibpath_overrides_runpath=yes
10996      ;;
10997    *,no) # both, prefer aix
10998      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10999      library_names_spec='$libname$release.a $libname.a'
11000      soname_spec='$libname$release$shared_ext$major'
11001      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11002      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)'
11003      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"'
11004      ;;
11005    esac
11006    shlibpath_var=LIBPATH
11007  fi
11008  ;;
11009
11010amigaos*)
11011  case $host_cpu in
11012  powerpc)
11013    # Since July 2007 AmigaOS4 officially supports .so libraries.
11014    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11015    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11016    ;;
11017  m68k)
11018    library_names_spec='$libname.ixlibrary $libname.a'
11019    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11020    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'
11021    ;;
11022  esac
11023  ;;
11024
11025beos*)
11026  library_names_spec='$libname$shared_ext'
11027  dynamic_linker="$host_os ld.so"
11028  shlibpath_var=LIBRARY_PATH
11029  ;;
11030
11031bsdi[45]*)
11032  version_type=linux # correct to gnu/linux during the next big refactor
11033  need_version=no
11034  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035  soname_spec='$libname$release$shared_ext$major'
11036  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11037  shlibpath_var=LD_LIBRARY_PATH
11038  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11039  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11040  # the default ld.so.conf also contains /usr/contrib/lib and
11041  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11042  # libtool to hard-code these into programs
11043  ;;
11044
11045cygwin* | mingw* | pw32* | cegcc*)
11046  version_type=windows
11047  shrext_cmds=.dll
11048  need_version=no
11049  need_lib_prefix=no
11050
11051  case $GCC,$cc_basename in
11052  yes,*)
11053    # gcc
11054    library_names_spec='$libname.dll.a'
11055    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11056    postinstall_cmds='base_file=`basename \$file`~
11057      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11058      dldir=$destdir/`dirname \$dlpath`~
11059      test -d \$dldir || mkdir -p \$dldir~
11060      $install_prog $dir/$dlname \$dldir/$dlname~
11061      chmod a+x \$dldir/$dlname~
11062      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11063        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11064      fi'
11065    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11066      dlpath=$dir/\$dldll~
11067       $RM \$dlpath'
11068    shlibpath_overrides_runpath=yes
11069
11070    case $host_os in
11071    cygwin*)
11072      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11073      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11074
11075      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11076      ;;
11077    mingw* | cegcc*)
11078      # MinGW DLLs use traditional 'lib' prefix
11079      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11080      ;;
11081    pw32*)
11082      # pw32 DLLs use 'pw' prefix rather than 'lib'
11083      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11084      ;;
11085    esac
11086    dynamic_linker='Win32 ld.exe'
11087    ;;
11088
11089  *,cl*)
11090    # Native MSVC
11091    libname_spec='$name'
11092    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11093    library_names_spec='$libname.dll.lib'
11094
11095    case $build_os in
11096    mingw*)
11097      sys_lib_search_path_spec=
11098      lt_save_ifs=$IFS
11099      IFS=';'
11100      for lt_path in $LIB
11101      do
11102        IFS=$lt_save_ifs
11103        # Let DOS variable expansion print the short 8.3 style file name.
11104        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11105        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11106      done
11107      IFS=$lt_save_ifs
11108      # Convert to MSYS style.
11109      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11110      ;;
11111    cygwin*)
11112      # Convert to unix form, then to dos form, then back to unix form
11113      # but this time dos style (no spaces!) so that the unix form looks
11114      # like /cygdrive/c/PROGRA~1:/cygdr...
11115      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11116      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11117      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11118      ;;
11119    *)
11120      sys_lib_search_path_spec=$LIB
11121      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11122        # It is most probably a Windows format PATH.
11123        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11124      else
11125        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11126      fi
11127      # FIXME: find the short name or the path components, as spaces are
11128      # common. (e.g. "Program Files" -> "PROGRA~1")
11129      ;;
11130    esac
11131
11132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11133    postinstall_cmds='base_file=`basename \$file`~
11134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11135      dldir=$destdir/`dirname \$dlpath`~
11136      test -d \$dldir || mkdir -p \$dldir~
11137      $install_prog $dir/$dlname \$dldir/$dlname'
11138    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11139      dlpath=$dir/\$dldll~
11140       $RM \$dlpath'
11141    shlibpath_overrides_runpath=yes
11142    dynamic_linker='Win32 link.exe'
11143    ;;
11144
11145  *)
11146    # Assume MSVC wrapper
11147    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11148    dynamic_linker='Win32 ld.exe'
11149    ;;
11150  esac
11151  # FIXME: first we should search . and the directory the executable is in
11152  shlibpath_var=PATH
11153  ;;
11154
11155darwin* | rhapsody*)
11156  dynamic_linker="$host_os dyld"
11157  version_type=darwin
11158  need_lib_prefix=no
11159  need_version=no
11160  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11161  soname_spec='$libname$release$major$shared_ext'
11162  shlibpath_overrides_runpath=yes
11163  shlibpath_var=DYLD_LIBRARY_PATH
11164  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11165
11166  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11167  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11168  ;;
11169
11170dgux*)
11171  version_type=linux # correct to gnu/linux during the next big refactor
11172  need_lib_prefix=no
11173  need_version=no
11174  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11175  soname_spec='$libname$release$shared_ext$major'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  ;;
11178
11179freebsd* | dragonfly*)
11180  # DragonFly does not have aout.  When/if they implement a new
11181  # versioning mechanism, adjust this.
11182  if test -x /usr/bin/objformat; then
11183    objformat=`/usr/bin/objformat`
11184  else
11185    case $host_os in
11186    freebsd[23].*) objformat=aout ;;
11187    *) objformat=elf ;;
11188    esac
11189  fi
11190  version_type=freebsd-$objformat
11191  case $version_type in
11192    freebsd-elf*)
11193      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11194      soname_spec='$libname$release$shared_ext$major'
11195      need_version=no
11196      need_lib_prefix=no
11197      ;;
11198    freebsd-*)
11199      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11200      need_version=yes
11201      ;;
11202  esac
11203  shlibpath_var=LD_LIBRARY_PATH
11204  case $host_os in
11205  freebsd2.*)
11206    shlibpath_overrides_runpath=yes
11207    ;;
11208  freebsd3.[01]* | freebsdelf3.[01]*)
11209    shlibpath_overrides_runpath=yes
11210    hardcode_into_libs=yes
11211    ;;
11212  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11213  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11214    shlibpath_overrides_runpath=no
11215    hardcode_into_libs=yes
11216    ;;
11217  *) # from 4.6 on, and DragonFly
11218    shlibpath_overrides_runpath=yes
11219    hardcode_into_libs=yes
11220    ;;
11221  esac
11222  ;;
11223
11224haiku*)
11225  version_type=linux # correct to gnu/linux during the next big refactor
11226  need_lib_prefix=no
11227  need_version=no
11228  dynamic_linker="$host_os runtime_loader"
11229  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11230  soname_spec='$libname$release$shared_ext$major'
11231  shlibpath_var=LIBRARY_PATH
11232  shlibpath_overrides_runpath=no
11233  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11234  hardcode_into_libs=yes
11235  ;;
11236
11237hpux9* | hpux10* | hpux11*)
11238  # Give a soname corresponding to the major version so that dld.sl refuses to
11239  # link against other versions.
11240  version_type=sunos
11241  need_lib_prefix=no
11242  need_version=no
11243  case $host_cpu in
11244  ia64*)
11245    shrext_cmds='.so'
11246    hardcode_into_libs=yes
11247    dynamic_linker="$host_os dld.so"
11248    shlibpath_var=LD_LIBRARY_PATH
11249    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11250    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251    soname_spec='$libname$release$shared_ext$major'
11252    if test 32 = "$HPUX_IA64_MODE"; then
11253      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11254      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11255    else
11256      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11257      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11258    fi
11259    ;;
11260  hppa*64*)
11261    shrext_cmds='.sl'
11262    hardcode_into_libs=yes
11263    dynamic_linker="$host_os dld.sl"
11264    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11265    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11266    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267    soname_spec='$libname$release$shared_ext$major'
11268    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11269    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11270    ;;
11271  *)
11272    shrext_cmds='.sl'
11273    dynamic_linker="$host_os dld.sl"
11274    shlibpath_var=SHLIB_PATH
11275    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11276    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277    soname_spec='$libname$release$shared_ext$major'
11278    ;;
11279  esac
11280  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11281  postinstall_cmds='chmod 555 $lib'
11282  # or fails outright, so override atomically:
11283  install_override_mode=555
11284  ;;
11285
11286interix[3-9]*)
11287  version_type=linux # correct to gnu/linux during the next big refactor
11288  need_lib_prefix=no
11289  need_version=no
11290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291  soname_spec='$libname$release$shared_ext$major'
11292  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11293  shlibpath_var=LD_LIBRARY_PATH
11294  shlibpath_overrides_runpath=no
11295  hardcode_into_libs=yes
11296  ;;
11297
11298irix5* | irix6* | nonstopux*)
11299  case $host_os in
11300    nonstopux*) version_type=nonstopux ;;
11301    *)
11302	if test yes = "$lt_cv_prog_gnu_ld"; then
11303		version_type=linux # correct to gnu/linux during the next big refactor
11304	else
11305		version_type=irix
11306	fi ;;
11307  esac
11308  need_lib_prefix=no
11309  need_version=no
11310  soname_spec='$libname$release$shared_ext$major'
11311  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11312  case $host_os in
11313  irix5* | nonstopux*)
11314    libsuff= shlibsuff=
11315    ;;
11316  *)
11317    case $LD in # libtool.m4 will add one of these switches to LD
11318    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11319      libsuff= shlibsuff= libmagic=32-bit;;
11320    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11321      libsuff=32 shlibsuff=N32 libmagic=N32;;
11322    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11323      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11324    *) libsuff= shlibsuff= libmagic=never-match;;
11325    esac
11326    ;;
11327  esac
11328  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11329  shlibpath_overrides_runpath=no
11330  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11331  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11332  hardcode_into_libs=yes
11333  ;;
11334
11335# No shared lib support for Linux oldld, aout, or coff.
11336linux*oldld* | linux*aout* | linux*coff*)
11337  dynamic_linker=no
11338  ;;
11339
11340linux*android*)
11341  version_type=none # Android doesn't support versioned libraries.
11342  need_lib_prefix=no
11343  need_version=no
11344  library_names_spec='$libname$release$shared_ext'
11345  soname_spec='$libname$release$shared_ext'
11346  finish_cmds=
11347  shlibpath_var=LD_LIBRARY_PATH
11348  shlibpath_overrides_runpath=yes
11349
11350  # This implies no fast_install, which is unacceptable.
11351  # Some rework will be needed to allow for fast_install
11352  # before this can be enabled.
11353  hardcode_into_libs=yes
11354
11355  dynamic_linker='Android linker'
11356  # Don't embed -rpath directories since the linker doesn't support them.
11357  hardcode_libdir_flag_spec='-L$libdir'
11358  ;;
11359
11360# This must be glibc/ELF.
11361linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11362  version_type=linux # correct to gnu/linux during the next big refactor
11363  need_lib_prefix=no
11364  need_version=no
11365  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366  soname_spec='$libname$release$shared_ext$major'
11367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11368  shlibpath_var=LD_LIBRARY_PATH
11369  shlibpath_overrides_runpath=no
11370
11371  # Some binutils ld are patched to set DT_RUNPATH
11372  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11373  $as_echo_n "(cached) " >&6
11374else
11375  lt_cv_shlibpath_overrides_runpath=no
11376    save_LDFLAGS=$LDFLAGS
11377    save_libdir=$libdir
11378    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11379	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382
11383int
11384main ()
11385{
11386
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then :
11392  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11393  lt_cv_shlibpath_overrides_runpath=yes
11394fi
11395fi
11396rm -f core conftest.err conftest.$ac_objext \
11397    conftest$ac_exeext conftest.$ac_ext
11398    LDFLAGS=$save_LDFLAGS
11399    libdir=$save_libdir
11400
11401fi
11402
11403  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11404
11405  # This implies no fast_install, which is unacceptable.
11406  # Some rework will be needed to allow for fast_install
11407  # before this can be enabled.
11408  hardcode_into_libs=yes
11409
11410  # Ideally, we could use ldconfig to report *all* directores which are
11411  # searched for libraries, however this is still not possible.  Aside from not
11412  # being certain /sbin/ldconfig is available, command
11413  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11414  # even though it is searched at run-time.  Try to do the best guess by
11415  # appending ld.so.conf contents (and includes) to the search path.
11416  if test -f /etc/ld.so.conf; then
11417    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' ' '`
11418    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11419  fi
11420
11421  # We used to test for /lib/ld.so.1 and disable shared libraries on
11422  # powerpc, because MkLinux only supported shared libraries with the
11423  # GNU dynamic linker.  Since this was broken with cross compilers,
11424  # most powerpc-linux boxes support dynamic linking these days and
11425  # people can always --disable-shared, the test was removed, and we
11426  # assume the GNU/Linux dynamic linker is in use.
11427  dynamic_linker='GNU/Linux ld.so'
11428  ;;
11429
11430netbsdelf*-gnu)
11431  version_type=linux
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11435  soname_spec='${libname}${release}${shared_ext}$major'
11436  shlibpath_var=LD_LIBRARY_PATH
11437  shlibpath_overrides_runpath=no
11438  hardcode_into_libs=yes
11439  dynamic_linker='NetBSD ld.elf_so'
11440  ;;
11441
11442netbsd*)
11443  version_type=sunos
11444  need_lib_prefix=no
11445  need_version=no
11446  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11448    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11449    dynamic_linker='NetBSD (a.out) ld.so'
11450  else
11451    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452    soname_spec='$libname$release$shared_ext$major'
11453    dynamic_linker='NetBSD ld.elf_so'
11454  fi
11455  shlibpath_var=LD_LIBRARY_PATH
11456  shlibpath_overrides_runpath=yes
11457  hardcode_into_libs=yes
11458  ;;
11459
11460newsos6)
11461  version_type=linux # correct to gnu/linux during the next big refactor
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463  shlibpath_var=LD_LIBRARY_PATH
11464  shlibpath_overrides_runpath=yes
11465  ;;
11466
11467*nto* | *qnx*)
11468  version_type=qnx
11469  need_lib_prefix=no
11470  need_version=no
11471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472  soname_spec='$libname$release$shared_ext$major'
11473  shlibpath_var=LD_LIBRARY_PATH
11474  shlibpath_overrides_runpath=no
11475  hardcode_into_libs=yes
11476  dynamic_linker='ldqnx.so'
11477  ;;
11478
11479openbsd* | bitrig*)
11480  version_type=sunos
11481  sys_lib_dlsearch_path_spec=/usr/lib
11482  need_lib_prefix=no
11483  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11484    need_version=no
11485  else
11486    need_version=yes
11487  fi
11488  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490  shlibpath_var=LD_LIBRARY_PATH
11491  shlibpath_overrides_runpath=yes
11492  ;;
11493
11494os2*)
11495  libname_spec='$name'
11496  version_type=windows
11497  shrext_cmds=.dll
11498  need_version=no
11499  need_lib_prefix=no
11500  # OS/2 can only load a DLL with a base name of 8 characters or less.
11501  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11502    v=$($ECHO $release$versuffix | tr -d .-);
11503    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11504    $ECHO $n$v`$shared_ext'
11505  library_names_spec='${libname}_dll.$libext'
11506  dynamic_linker='OS/2 ld.exe'
11507  shlibpath_var=BEGINLIBPATH
11508  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11509  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11510  postinstall_cmds='base_file=`basename \$file`~
11511    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11512    dldir=$destdir/`dirname \$dlpath`~
11513    test -d \$dldir || mkdir -p \$dldir~
11514    $install_prog $dir/$dlname \$dldir/$dlname~
11515    chmod a+x \$dldir/$dlname~
11516    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11517      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11518    fi'
11519  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11520    dlpath=$dir/\$dldll~
11521    $RM \$dlpath'
11522  ;;
11523
11524osf3* | osf4* | osf5*)
11525  version_type=osf
11526  need_lib_prefix=no
11527  need_version=no
11528  soname_spec='$libname$release$shared_ext$major'
11529  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530  shlibpath_var=LD_LIBRARY_PATH
11531  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11532  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533  ;;
11534
11535rdos*)
11536  dynamic_linker=no
11537  ;;
11538
11539solaris*)
11540  version_type=linux # correct to gnu/linux during the next big refactor
11541  need_lib_prefix=no
11542  need_version=no
11543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544  soname_spec='$libname$release$shared_ext$major'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  shlibpath_overrides_runpath=yes
11547  hardcode_into_libs=yes
11548  # ldd complains unless libraries are executable
11549  postinstall_cmds='chmod +x $lib'
11550  ;;
11551
11552sunos4*)
11553  version_type=sunos
11554  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11555  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11556  shlibpath_var=LD_LIBRARY_PATH
11557  shlibpath_overrides_runpath=yes
11558  if test yes = "$with_gnu_ld"; then
11559    need_lib_prefix=no
11560  fi
11561  need_version=yes
11562  ;;
11563
11564sysv4 | sysv4.3*)
11565  version_type=linux # correct to gnu/linux during the next big refactor
11566  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11567  soname_spec='$libname$release$shared_ext$major'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  case $host_vendor in
11570    sni)
11571      shlibpath_overrides_runpath=no
11572      need_lib_prefix=no
11573      runpath_var=LD_RUN_PATH
11574      ;;
11575    siemens)
11576      need_lib_prefix=no
11577      ;;
11578    motorola)
11579      need_lib_prefix=no
11580      need_version=no
11581      shlibpath_overrides_runpath=no
11582      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11583      ;;
11584  esac
11585  ;;
11586
11587sysv4*MP*)
11588  if test -d /usr/nec; then
11589    version_type=linux # correct to gnu/linux during the next big refactor
11590    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11591    soname_spec='$libname$shared_ext.$major'
11592    shlibpath_var=LD_LIBRARY_PATH
11593  fi
11594  ;;
11595
11596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11597  version_type=sco
11598  need_lib_prefix=no
11599  need_version=no
11600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11601  soname_spec='$libname$release$shared_ext$major'
11602  shlibpath_var=LD_LIBRARY_PATH
11603  shlibpath_overrides_runpath=yes
11604  hardcode_into_libs=yes
11605  if test yes = "$with_gnu_ld"; then
11606    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11607  else
11608    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11609    case $host_os in
11610      sco3.2v5*)
11611        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11612	;;
11613    esac
11614  fi
11615  sys_lib_dlsearch_path_spec='/usr/lib'
11616  ;;
11617
11618tpf*)
11619  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11620  version_type=linux # correct to gnu/linux during the next big refactor
11621  need_lib_prefix=no
11622  need_version=no
11623  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  shlibpath_overrides_runpath=no
11626  hardcode_into_libs=yes
11627  ;;
11628
11629uts4*)
11630  version_type=linux # correct to gnu/linux during the next big refactor
11631  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632  soname_spec='$libname$release$shared_ext$major'
11633  shlibpath_var=LD_LIBRARY_PATH
11634  ;;
11635
11636*)
11637  dynamic_linker=no
11638  ;;
11639esac
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11641$as_echo "$dynamic_linker" >&6; }
11642test no = "$dynamic_linker" && can_build_shared=no
11643
11644variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11645if test yes = "$GCC"; then
11646  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11647fi
11648
11649if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11650  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11651fi
11652
11653if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11654  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11655fi
11656
11657# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11658configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11659
11660# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11661func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11662
11663# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11664configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11763$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11764hardcode_action=
11765if test -n "$hardcode_libdir_flag_spec" ||
11766   test -n "$runpath_var" ||
11767   test yes = "$hardcode_automatic"; then
11768
11769  # We can hardcode non-existent directories.
11770  if test no != "$hardcode_direct" &&
11771     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772     # have to relink, otherwise we might link with an installed library
11773     # when we should be linking with a yet-to-be-installed one
11774     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11775     test no != "$hardcode_minus_L"; then
11776    # Linking always hardcodes the temporary library directory.
11777    hardcode_action=relink
11778  else
11779    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780    hardcode_action=immediate
11781  fi
11782else
11783  # We cannot hardcode anything, or else we can only hardcode existing
11784  # directories.
11785  hardcode_action=unsupported
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11788$as_echo "$hardcode_action" >&6; }
11789
11790if test relink = "$hardcode_action" ||
11791   test yes = "$inherit_rpath"; then
11792  # Fast installation is not supported
11793  enable_fast_install=no
11794elif test yes = "$shlibpath_overrides_runpath" ||
11795     test no = "$enable_shared"; then
11796  # Fast installation is not necessary
11797  enable_fast_install=needless
11798fi
11799
11800
11801
11802
11803
11804
11805  if test yes != "$enable_dlopen"; then
11806  enable_dlopen=unknown
11807  enable_dlopen_self=unknown
11808  enable_dlopen_self_static=unknown
11809else
11810  lt_cv_dlopen=no
11811  lt_cv_dlopen_libs=
11812
11813  case $host_os in
11814  beos*)
11815    lt_cv_dlopen=load_add_on
11816    lt_cv_dlopen_libs=
11817    lt_cv_dlopen_self=yes
11818    ;;
11819
11820  mingw* | pw32* | cegcc*)
11821    lt_cv_dlopen=LoadLibrary
11822    lt_cv_dlopen_libs=
11823    ;;
11824
11825  cygwin*)
11826    lt_cv_dlopen=dlopen
11827    lt_cv_dlopen_libs=
11828    ;;
11829
11830  darwin*)
11831    # if libdl is installed we need to link against it
11832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11833$as_echo_n "checking for dlopen in -ldl... " >&6; }
11834if ${ac_cv_lib_dl_dlopen+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  ac_check_lib_save_LIBS=$LIBS
11838LIBS="-ldl  $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842/* Override any GCC internal prototype to avoid an error.
11843   Use char because int might match the return type of a GCC
11844   builtin and then its argument prototype would still apply.  */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848char dlopen ();
11849int
11850main ()
11851{
11852return dlopen ();
11853  ;
11854  return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
11858  ac_cv_lib_dl_dlopen=yes
11859else
11860  ac_cv_lib_dl_dlopen=no
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863    conftest$ac_exeext conftest.$ac_ext
11864LIBS=$ac_check_lib_save_LIBS
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11867$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11868if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11869  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11870else
11871
11872    lt_cv_dlopen=dyld
11873    lt_cv_dlopen_libs=
11874    lt_cv_dlopen_self=yes
11875
11876fi
11877
11878    ;;
11879
11880  tpf*)
11881    # Don't try to run any link tests for TPF.  We know it's impossible
11882    # because TPF is a cross-compiler, and we know how we open DSOs.
11883    lt_cv_dlopen=dlopen
11884    lt_cv_dlopen_libs=
11885    lt_cv_dlopen_self=no
11886    ;;
11887
11888  *)
11889    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11890if test "x$ac_cv_func_shl_load" = xyes; then :
11891  lt_cv_dlopen=shl_load
11892else
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11894$as_echo_n "checking for shl_load in -ldld... " >&6; }
11895if ${ac_cv_lib_dld_shl_load+:} false; then :
11896  $as_echo_n "(cached) " >&6
11897else
11898  ac_check_lib_save_LIBS=$LIBS
11899LIBS="-ldld  $LIBS"
11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901/* end confdefs.h.  */
11902
11903/* Override any GCC internal prototype to avoid an error.
11904   Use char because int might match the return type of a GCC
11905   builtin and then its argument prototype would still apply.  */
11906#ifdef __cplusplus
11907extern "C"
11908#endif
11909char shl_load ();
11910int
11911main ()
11912{
11913return shl_load ();
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919  ac_cv_lib_dld_shl_load=yes
11920else
11921  ac_cv_lib_dld_shl_load=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924    conftest$ac_exeext conftest.$ac_ext
11925LIBS=$ac_check_lib_save_LIBS
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11928$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11929if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11930  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11931else
11932  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11933if test "x$ac_cv_func_dlopen" = xyes; then :
11934  lt_cv_dlopen=dlopen
11935else
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11937$as_echo_n "checking for dlopen in -ldl... " >&6; }
11938if ${ac_cv_lib_dl_dlopen+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  ac_check_lib_save_LIBS=$LIBS
11942LIBS="-ldl  $LIBS"
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946/* Override any GCC internal prototype to avoid an error.
11947   Use char because int might match the return type of a GCC
11948   builtin and then its argument prototype would still apply.  */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952char dlopen ();
11953int
11954main ()
11955{
11956return dlopen ();
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then :
11962  ac_cv_lib_dl_dlopen=yes
11963else
11964  ac_cv_lib_dl_dlopen=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext \
11967    conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11971$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11972if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11973  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11974else
11975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11976$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11977if ${ac_cv_lib_svld_dlopen+:} false; then :
11978  $as_echo_n "(cached) " >&6
11979else
11980  ac_check_lib_save_LIBS=$LIBS
11981LIBS="-lsvld  $LIBS"
11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h.  */
11984
11985/* Override any GCC internal prototype to avoid an error.
11986   Use char because int might match the return type of a GCC
11987   builtin and then its argument prototype would still apply.  */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char dlopen ();
11992int
11993main ()
11994{
11995return dlopen ();
11996  ;
11997  return 0;
11998}
11999_ACEOF
12000if ac_fn_c_try_link "$LINENO"; then :
12001  ac_cv_lib_svld_dlopen=yes
12002else
12003  ac_cv_lib_svld_dlopen=no
12004fi
12005rm -f core conftest.err conftest.$ac_objext \
12006    conftest$ac_exeext conftest.$ac_ext
12007LIBS=$ac_check_lib_save_LIBS
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12010$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12011if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12012  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12013else
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12015$as_echo_n "checking for dld_link in -ldld... " >&6; }
12016if ${ac_cv_lib_dld_dld_link+:} false; then :
12017  $as_echo_n "(cached) " >&6
12018else
12019  ac_check_lib_save_LIBS=$LIBS
12020LIBS="-ldld  $LIBS"
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025   Use char because int might match the return type of a GCC
12026   builtin and then its argument prototype would still apply.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char dld_link ();
12031int
12032main ()
12033{
12034return dld_link ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_link "$LINENO"; then :
12040  ac_cv_lib_dld_dld_link=yes
12041else
12042  ac_cv_lib_dld_dld_link=no
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045    conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12049$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12050if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12051  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060
12061fi
12062
12063
12064fi
12065
12066
12067fi
12068
12069    ;;
12070  esac
12071
12072  if test no = "$lt_cv_dlopen"; then
12073    enable_dlopen=no
12074  else
12075    enable_dlopen=yes
12076  fi
12077
12078  case $lt_cv_dlopen in
12079  dlopen)
12080    save_CPPFLAGS=$CPPFLAGS
12081    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12082
12083    save_LDFLAGS=$LDFLAGS
12084    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12085
12086    save_LIBS=$LIBS
12087    LIBS="$lt_cv_dlopen_libs $LIBS"
12088
12089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12090$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12091if ${lt_cv_dlopen_self+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  	  if test yes = "$cross_compiling"; then :
12095  lt_cv_dlopen_self=cross
12096else
12097  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098  lt_status=$lt_dlunknown
12099  cat > conftest.$ac_ext <<_LT_EOF
12100#line $LINENO "configure"
12101#include "confdefs.h"
12102
12103#if HAVE_DLFCN_H
12104#include <dlfcn.h>
12105#endif
12106
12107#include <stdio.h>
12108
12109#ifdef RTLD_GLOBAL
12110#  define LT_DLGLOBAL		RTLD_GLOBAL
12111#else
12112#  ifdef DL_GLOBAL
12113#    define LT_DLGLOBAL		DL_GLOBAL
12114#  else
12115#    define LT_DLGLOBAL		0
12116#  endif
12117#endif
12118
12119/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120   find out it does not work in some platform. */
12121#ifndef LT_DLLAZY_OR_NOW
12122#  ifdef RTLD_LAZY
12123#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12124#  else
12125#    ifdef DL_LAZY
12126#      define LT_DLLAZY_OR_NOW		DL_LAZY
12127#    else
12128#      ifdef RTLD_NOW
12129#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12130#      else
12131#        ifdef DL_NOW
12132#          define LT_DLLAZY_OR_NOW	DL_NOW
12133#        else
12134#          define LT_DLLAZY_OR_NOW	0
12135#        endif
12136#      endif
12137#    endif
12138#  endif
12139#endif
12140
12141/* When -fvisibility=hidden is used, assume the code has been annotated
12142   correspondingly for the symbols needed.  */
12143#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144int fnord () __attribute__((visibility("default")));
12145#endif
12146
12147int fnord () { return 42; }
12148int main ()
12149{
12150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151  int status = $lt_dlunknown;
12152
12153  if (self)
12154    {
12155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12156      else
12157        {
12158	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12159          else puts (dlerror ());
12160	}
12161      /* dlclose (self); */
12162    }
12163  else
12164    puts (dlerror ());
12165
12166  return status;
12167}
12168_LT_EOF
12169  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170  (eval $ac_link) 2>&5
12171  ac_status=$?
12172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12174    (./conftest; exit; ) >&5 2>/dev/null
12175    lt_status=$?
12176    case x$lt_status in
12177      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12178      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12179      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12180    esac
12181  else :
12182    # compilation failed
12183    lt_cv_dlopen_self=no
12184  fi
12185fi
12186rm -fr conftest*
12187
12188
12189fi
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12191$as_echo "$lt_cv_dlopen_self" >&6; }
12192
12193    if test yes = "$lt_cv_dlopen_self"; then
12194      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12195      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12196$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12197if ${lt_cv_dlopen_self_static+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  	  if test yes = "$cross_compiling"; then :
12201  lt_cv_dlopen_self_static=cross
12202else
12203  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12204  lt_status=$lt_dlunknown
12205  cat > conftest.$ac_ext <<_LT_EOF
12206#line $LINENO "configure"
12207#include "confdefs.h"
12208
12209#if HAVE_DLFCN_H
12210#include <dlfcn.h>
12211#endif
12212
12213#include <stdio.h>
12214
12215#ifdef RTLD_GLOBAL
12216#  define LT_DLGLOBAL		RTLD_GLOBAL
12217#else
12218#  ifdef DL_GLOBAL
12219#    define LT_DLGLOBAL		DL_GLOBAL
12220#  else
12221#    define LT_DLGLOBAL		0
12222#  endif
12223#endif
12224
12225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12226   find out it does not work in some platform. */
12227#ifndef LT_DLLAZY_OR_NOW
12228#  ifdef RTLD_LAZY
12229#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12230#  else
12231#    ifdef DL_LAZY
12232#      define LT_DLLAZY_OR_NOW		DL_LAZY
12233#    else
12234#      ifdef RTLD_NOW
12235#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12236#      else
12237#        ifdef DL_NOW
12238#          define LT_DLLAZY_OR_NOW	DL_NOW
12239#        else
12240#          define LT_DLLAZY_OR_NOW	0
12241#        endif
12242#      endif
12243#    endif
12244#  endif
12245#endif
12246
12247/* When -fvisibility=hidden is used, assume the code has been annotated
12248   correspondingly for the symbols needed.  */
12249#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12250int fnord () __attribute__((visibility("default")));
12251#endif
12252
12253int fnord () { return 42; }
12254int main ()
12255{
12256  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12257  int status = $lt_dlunknown;
12258
12259  if (self)
12260    {
12261      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12262      else
12263        {
12264	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12265          else puts (dlerror ());
12266	}
12267      /* dlclose (self); */
12268    }
12269  else
12270    puts (dlerror ());
12271
12272  return status;
12273}
12274_LT_EOF
12275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12276  (eval $ac_link) 2>&5
12277  ac_status=$?
12278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12280    (./conftest; exit; ) >&5 2>/dev/null
12281    lt_status=$?
12282    case x$lt_status in
12283      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12286    esac
12287  else :
12288    # compilation failed
12289    lt_cv_dlopen_self_static=no
12290  fi
12291fi
12292rm -fr conftest*
12293
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12297$as_echo "$lt_cv_dlopen_self_static" >&6; }
12298    fi
12299
12300    CPPFLAGS=$save_CPPFLAGS
12301    LDFLAGS=$save_LDFLAGS
12302    LIBS=$save_LIBS
12303    ;;
12304  esac
12305
12306  case $lt_cv_dlopen_self in
12307  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308  *) enable_dlopen_self=unknown ;;
12309  esac
12310
12311  case $lt_cv_dlopen_self_static in
12312  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313  *) enable_dlopen_self_static=unknown ;;
12314  esac
12315fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333striplib=
12334old_striplib=
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12336$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12338  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12339  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
12342else
12343# FIXME - insert some real tests, host_os isn't really good enough
12344  case $host_os in
12345  darwin*)
12346    if test -n "$STRIP"; then
12347      striplib="$STRIP -x"
12348      old_striplib="$STRIP -S"
12349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350$as_echo "yes" >&6; }
12351    else
12352      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354    fi
12355    ;;
12356  *)
12357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359    ;;
12360  esac
12361fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374  # Report what library types will actually be built
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12376$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12378$as_echo "$can_build_shared" >&6; }
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12381$as_echo_n "checking whether to build shared libraries... " >&6; }
12382  test no = "$can_build_shared" && enable_shared=no
12383
12384  # On AIX, shared libraries and static libraries use the same namespace, and
12385  # are all built from PIC.
12386  case $host_os in
12387  aix3*)
12388    test yes = "$enable_shared" && enable_static=no
12389    if test -n "$RANLIB"; then
12390      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12391      postinstall_cmds='$RANLIB $lib'
12392    fi
12393    ;;
12394
12395  aix[4-9]*)
12396    if test ia64 != "$host_cpu"; then
12397      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12398      yes,aix,yes) ;;			# shared object as lib.so file only
12399      yes,svr4,*) ;;			# shared object as lib.so archive member only
12400      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12401      esac
12402    fi
12403    ;;
12404  esac
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12406$as_echo "$enable_shared" >&6; }
12407
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12409$as_echo_n "checking whether to build static libraries... " >&6; }
12410  # Make sure either enable_shared or enable_static is yes.
12411  test yes = "$enable_shared" || enable_static=yes
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12413$as_echo "$enable_static" >&6; }
12414
12415
12416
12417
12418fi
12419ac_ext=c
12420ac_cpp='$CPP $CPPFLAGS'
12421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
12425CC=$lt_save_CC
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441        ac_config_commands="$ac_config_commands libtool"
12442
12443
12444
12445
12446# Only expand once:
12447
12448
12449
12450# Check whether --enable-largefile was given.
12451if test "${enable_largefile+set}" = set; then :
12452  enableval=$enable_largefile;
12453fi
12454
12455if test "$enable_largefile" != no; then
12456
12457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12458$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12459if ${ac_cv_sys_largefile_CC+:} false; then :
12460  $as_echo_n "(cached) " >&6
12461else
12462  ac_cv_sys_largefile_CC=no
12463     if test "$GCC" != yes; then
12464       ac_save_CC=$CC
12465       while :; do
12466	 # IRIX 6.2 and later do not support large files by default,
12467	 # so use the C compiler's -n32 option if that helps.
12468	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h.  */
12470#include <sys/types.h>
12471 /* Check that off_t can represent 2**63 - 1 correctly.
12472    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12473    since some C++ compilers masquerading as C compilers
12474    incorrectly reject 9223372036854775807.  */
12475#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12476  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12477		       && LARGE_OFF_T % 2147483647 == 1)
12478		      ? 1 : -1];
12479int
12480main ()
12481{
12482
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487	 if ac_fn_c_try_compile "$LINENO"; then :
12488  break
12489fi
12490rm -f core conftest.err conftest.$ac_objext
12491	 CC="$CC -n32"
12492	 if ac_fn_c_try_compile "$LINENO"; then :
12493  ac_cv_sys_largefile_CC=' -n32'; break
12494fi
12495rm -f core conftest.err conftest.$ac_objext
12496	 break
12497       done
12498       CC=$ac_save_CC
12499       rm -f conftest.$ac_ext
12500    fi
12501fi
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12503$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12504  if test "$ac_cv_sys_largefile_CC" != no; then
12505    CC=$CC$ac_cv_sys_largefile_CC
12506  fi
12507
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12509$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12510if ${ac_cv_sys_file_offset_bits+:} false; then :
12511  $as_echo_n "(cached) " >&6
12512else
12513  while :; do
12514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h.  */
12516#include <sys/types.h>
12517 /* Check that off_t can represent 2**63 - 1 correctly.
12518    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12519    since some C++ compilers masquerading as C compilers
12520    incorrectly reject 9223372036854775807.  */
12521#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12522  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12523		       && LARGE_OFF_T % 2147483647 == 1)
12524		      ? 1 : -1];
12525int
12526main ()
12527{
12528
12529  ;
12530  return 0;
12531}
12532_ACEOF
12533if ac_fn_c_try_compile "$LINENO"; then :
12534  ac_cv_sys_file_offset_bits=no; break
12535fi
12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539#define _FILE_OFFSET_BITS 64
12540#include <sys/types.h>
12541 /* Check that off_t can represent 2**63 - 1 correctly.
12542    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12543    since some C++ compilers masquerading as C compilers
12544    incorrectly reject 9223372036854775807.  */
12545#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12546  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12547		       && LARGE_OFF_T % 2147483647 == 1)
12548		      ? 1 : -1];
12549int
12550main ()
12551{
12552
12553  ;
12554  return 0;
12555}
12556_ACEOF
12557if ac_fn_c_try_compile "$LINENO"; then :
12558  ac_cv_sys_file_offset_bits=64; break
12559fi
12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561  ac_cv_sys_file_offset_bits=unknown
12562  break
12563done
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12566$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12567case $ac_cv_sys_file_offset_bits in #(
12568  no | unknown) ;;
12569  *)
12570cat >>confdefs.h <<_ACEOF
12571#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12572_ACEOF
12573;;
12574esac
12575rm -rf conftest*
12576  if test $ac_cv_sys_file_offset_bits = unknown; then
12577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12578$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12579if ${ac_cv_sys_large_files+:} false; then :
12580  $as_echo_n "(cached) " >&6
12581else
12582  while :; do
12583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h.  */
12585#include <sys/types.h>
12586 /* Check that off_t can represent 2**63 - 1 correctly.
12587    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12588    since some C++ compilers masquerading as C compilers
12589    incorrectly reject 9223372036854775807.  */
12590#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12591  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12592		       && LARGE_OFF_T % 2147483647 == 1)
12593		      ? 1 : -1];
12594int
12595main ()
12596{
12597
12598  ;
12599  return 0;
12600}
12601_ACEOF
12602if ac_fn_c_try_compile "$LINENO"; then :
12603  ac_cv_sys_large_files=no; break
12604fi
12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608#define _LARGE_FILES 1
12609#include <sys/types.h>
12610 /* Check that off_t can represent 2**63 - 1 correctly.
12611    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12612    since some C++ compilers masquerading as C compilers
12613    incorrectly reject 9223372036854775807.  */
12614#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12615  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12616		       && LARGE_OFF_T % 2147483647 == 1)
12617		      ? 1 : -1];
12618int
12619main ()
12620{
12621
12622  ;
12623  return 0;
12624}
12625_ACEOF
12626if ac_fn_c_try_compile "$LINENO"; then :
12627  ac_cv_sys_large_files=1; break
12628fi
12629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630  ac_cv_sys_large_files=unknown
12631  break
12632done
12633fi
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12635$as_echo "$ac_cv_sys_large_files" >&6; }
12636case $ac_cv_sys_large_files in #(
12637  no | unknown) ;;
12638  *)
12639cat >>confdefs.h <<_ACEOF
12640#define _LARGE_FILES $ac_cv_sys_large_files
12641_ACEOF
12642;;
12643esac
12644rm -rf conftest*
12645  fi
12646
12647
12648fi
12649
12650
12651# Require xorg-macros minimum of 1.15 for fop minimum version
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12664$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12665if ${ac_cv_prog_cc_c99+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  ac_cv_prog_cc_c99=no
12669ac_save_CC=$CC
12670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h.  */
12672#include <stdarg.h>
12673#include <stdbool.h>
12674#include <stdlib.h>
12675#include <wchar.h>
12676#include <stdio.h>
12677
12678// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12679#define debug(...) fprintf (stderr, __VA_ARGS__)
12680#define showlist(...) puts (#__VA_ARGS__)
12681#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12682static void
12683test_varargs_macros (void)
12684{
12685  int x = 1234;
12686  int y = 5678;
12687  debug ("Flag");
12688  debug ("X = %d\n", x);
12689  showlist (The first, second, and third items.);
12690  report (x>y, "x is %d but y is %d", x, y);
12691}
12692
12693// Check long long types.
12694#define BIG64 18446744073709551615ull
12695#define BIG32 4294967295ul
12696#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12697#if !BIG_OK
12698  your preprocessor is broken;
12699#endif
12700#if BIG_OK
12701#else
12702  your preprocessor is broken;
12703#endif
12704static long long int bignum = -9223372036854775807LL;
12705static unsigned long long int ubignum = BIG64;
12706
12707struct incomplete_array
12708{
12709  int datasize;
12710  double data[];
12711};
12712
12713struct named_init {
12714  int number;
12715  const wchar_t *name;
12716  double average;
12717};
12718
12719typedef const char *ccp;
12720
12721static inline int
12722test_restrict (ccp restrict text)
12723{
12724  // See if C++-style comments work.
12725  // Iterate through items via the restricted pointer.
12726  // Also check for declarations in for loops.
12727  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12728    continue;
12729  return 0;
12730}
12731
12732// Check varargs and va_copy.
12733static void
12734test_varargs (const char *format, ...)
12735{
12736  va_list args;
12737  va_start (args, format);
12738  va_list args_copy;
12739  va_copy (args_copy, args);
12740
12741  const char *str;
12742  int number;
12743  float fnumber;
12744
12745  while (*format)
12746    {
12747      switch (*format++)
12748	{
12749	case 's': // string
12750	  str = va_arg (args_copy, const char *);
12751	  break;
12752	case 'd': // int
12753	  number = va_arg (args_copy, int);
12754	  break;
12755	case 'f': // float
12756	  fnumber = va_arg (args_copy, double);
12757	  break;
12758	default:
12759	  break;
12760	}
12761    }
12762  va_end (args_copy);
12763  va_end (args);
12764}
12765
12766int
12767main ()
12768{
12769
12770  // Check bool.
12771  _Bool success = false;
12772
12773  // Check restrict.
12774  if (test_restrict ("String literal") == 0)
12775    success = true;
12776  char *restrict newvar = "Another string";
12777
12778  // Check varargs.
12779  test_varargs ("s, d' f .", "string", 65, 34.234);
12780  test_varargs_macros ();
12781
12782  // Check flexible array members.
12783  struct incomplete_array *ia =
12784    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12785  ia->datasize = 10;
12786  for (int i = 0; i < ia->datasize; ++i)
12787    ia->data[i] = i * 1.234;
12788
12789  // Check named initializers.
12790  struct named_init ni = {
12791    .number = 34,
12792    .name = L"Test wide string",
12793    .average = 543.34343,
12794  };
12795
12796  ni.number = 58;
12797
12798  int dynamic_array[ni.number];
12799  dynamic_array[ni.number - 1] = 543;
12800
12801  // work around unused variable warnings
12802  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12803	  || dynamic_array[ni.number - 1] != 543);
12804
12805  ;
12806  return 0;
12807}
12808_ACEOF
12809for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12810do
12811  CC="$ac_save_CC $ac_arg"
12812  if ac_fn_c_try_compile "$LINENO"; then :
12813  ac_cv_prog_cc_c99=$ac_arg
12814fi
12815rm -f core conftest.err conftest.$ac_objext
12816  test "x$ac_cv_prog_cc_c99" != "xno" && break
12817done
12818rm -f conftest.$ac_ext
12819CC=$ac_save_CC
12820
12821fi
12822# AC_CACHE_VAL
12823case "x$ac_cv_prog_cc_c99" in
12824  x)
12825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12826$as_echo "none needed" >&6; } ;;
12827  xno)
12828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12829$as_echo "unsupported" >&6; } ;;
12830  *)
12831    CC="$CC $ac_cv_prog_cc_c99"
12832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12833$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12834esac
12835if test "x$ac_cv_prog_cc_c99" != xno; then :
12836
12837fi
12838
12839
12840
12841
12842
12843
12844ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12845if test "x$ac_cv_have_decl___clang__" = xyes; then :
12846  CLANGCC="yes"
12847else
12848  CLANGCC="no"
12849fi
12850
12851ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12852if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12853  INTELCC="yes"
12854else
12855  INTELCC="no"
12856fi
12857
12858ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12859if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12860  SUNCC="yes"
12861else
12862  SUNCC="no"
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12874	if test -n "$ac_tool_prefix"; then
12875  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12876set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
12879if ${ac_cv_path_PKG_CONFIG+:} false; then :
12880  $as_echo_n "(cached) " >&6
12881else
12882  case $PKG_CONFIG in
12883  [\\/]* | ?:[\\/]*)
12884  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12885  ;;
12886  *)
12887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890  IFS=$as_save_IFS
12891  test -z "$as_dir" && as_dir=.
12892    for ac_exec_ext in '' $ac_executable_extensions; do
12893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12894    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896    break 2
12897  fi
12898done
12899  done
12900IFS=$as_save_IFS
12901
12902  ;;
12903esac
12904fi
12905PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12906if test -n "$PKG_CONFIG"; then
12907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12908$as_echo "$PKG_CONFIG" >&6; }
12909else
12910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12913
12914
12915fi
12916if test -z "$ac_cv_path_PKG_CONFIG"; then
12917  ac_pt_PKG_CONFIG=$PKG_CONFIG
12918  # Extract the first word of "pkg-config", so it can be a program name with args.
12919set dummy pkg-config; ac_word=$2
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
12922if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  case $ac_pt_PKG_CONFIG in
12926  [\\/]* | ?:[\\/]*)
12927  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12928  ;;
12929  *)
12930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933  IFS=$as_save_IFS
12934  test -z "$as_dir" && as_dir=.
12935    for ac_exec_ext in '' $ac_executable_extensions; do
12936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12937    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939    break 2
12940  fi
12941done
12942  done
12943IFS=$as_save_IFS
12944
12945  ;;
12946esac
12947fi
12948ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12949if test -n "$ac_pt_PKG_CONFIG"; then
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12951$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12952else
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957  if test "x$ac_pt_PKG_CONFIG" = x; then
12958    PKG_CONFIG=""
12959  else
12960    case $cross_compiling:$ac_tool_warned in
12961yes:)
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12964ac_tool_warned=yes ;;
12965esac
12966    PKG_CONFIG=$ac_pt_PKG_CONFIG
12967  fi
12968else
12969  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12970fi
12971
12972fi
12973if test -n "$PKG_CONFIG"; then
12974	_pkg_min_version=0.9.0
12975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12976$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12977	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979$as_echo "yes" >&6; }
12980	else
12981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983		PKG_CONFIG=""
12984	fi
12985fi
12986
12987
12988
12989
12990
12991# Check whether --enable-selective-werror was given.
12992if test "${enable_selective_werror+set}" = set; then :
12993  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12994else
12995  SELECTIVE_WERROR=yes
12996fi
12997
12998
12999
13000
13001
13002# -v is too short to test reliably with XORG_TESTSET_CFLAG
13003if test "x$SUNCC" = "xyes"; then
13004    BASE_CFLAGS="-v"
13005else
13006    BASE_CFLAGS=""
13007fi
13008
13009# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023xorg_testset_save_CFLAGS="$CFLAGS"
13024
13025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13030  $as_echo_n "(cached) " >&6
13031else
13032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034int i;
13035_ACEOF
13036if ac_fn_c_try_compile "$LINENO"; then :
13037  xorg_cv_cc_flag_unknown_warning_option=yes
13038else
13039  xorg_cv_cc_flag_unknown_warning_option=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13046	CFLAGS="$xorg_testset_save_CFLAGS"
13047fi
13048
13049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052	fi
13053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061int i;
13062_ACEOF
13063if ac_fn_c_try_compile "$LINENO"; then :
13064  xorg_cv_cc_flag_unused_command_line_argument=yes
13065else
13066  xorg_cv_cc_flag_unused_command_line_argument=no
13067fi
13068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13073	CFLAGS="$xorg_testset_save_CFLAGS"
13074fi
13075
13076found="no"
13077
13078	if test $found = "no" ; then
13079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081		fi
13082
13083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13085		fi
13086
13087		CFLAGS="$CFLAGS -Wall"
13088
13089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13090$as_echo_n "checking if $CC supports -Wall... " >&6; }
13091		cacheid=xorg_cv_cc_flag__Wall
13092		if eval \${$cacheid+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097int i;
13098int
13099main ()
13100{
13101
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106if ac_fn_c_try_link "$LINENO"; then :
13107  eval $cacheid=yes
13108else
13109  eval $cacheid=no
13110fi
13111rm -f core conftest.err conftest.$ac_objext \
13112    conftest$ac_exeext conftest.$ac_ext
13113fi
13114
13115
13116		CFLAGS="$xorg_testset_save_CFLAGS"
13117
13118		eval supported=\$$cacheid
13119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13120$as_echo "$supported" >&6; }
13121		if test "$supported" = "yes" ; then
13122			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13123			found="yes"
13124		fi
13125	fi
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141xorg_testset_save_CFLAGS="$CFLAGS"
13142
13143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13148  $as_echo_n "(cached) " >&6
13149else
13150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151/* end confdefs.h.  */
13152int i;
13153_ACEOF
13154if ac_fn_c_try_compile "$LINENO"; then :
13155  xorg_cv_cc_flag_unknown_warning_option=yes
13156else
13157  xorg_cv_cc_flag_unknown_warning_option=no
13158fi
13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13164	CFLAGS="$xorg_testset_save_CFLAGS"
13165fi
13166
13167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13170	fi
13171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13175  $as_echo_n "(cached) " >&6
13176else
13177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179int i;
13180_ACEOF
13181if ac_fn_c_try_compile "$LINENO"; then :
13182  xorg_cv_cc_flag_unused_command_line_argument=yes
13183else
13184  xorg_cv_cc_flag_unused_command_line_argument=no
13185fi
13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187fi
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13191	CFLAGS="$xorg_testset_save_CFLAGS"
13192fi
13193
13194found="no"
13195
13196	if test $found = "no" ; then
13197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13199		fi
13200
13201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203		fi
13204
13205		CFLAGS="$CFLAGS -Wpointer-arith"
13206
13207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13208$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13209		cacheid=xorg_cv_cc_flag__Wpointer_arith
13210		if eval \${$cacheid+:} false; then :
13211  $as_echo_n "(cached) " >&6
13212else
13213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h.  */
13215int i;
13216int
13217main ()
13218{
13219
13220  ;
13221  return 0;
13222}
13223_ACEOF
13224if ac_fn_c_try_link "$LINENO"; then :
13225  eval $cacheid=yes
13226else
13227  eval $cacheid=no
13228fi
13229rm -f core conftest.err conftest.$ac_objext \
13230    conftest$ac_exeext conftest.$ac_ext
13231fi
13232
13233
13234		CFLAGS="$xorg_testset_save_CFLAGS"
13235
13236		eval supported=\$$cacheid
13237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13238$as_echo "$supported" >&6; }
13239		if test "$supported" = "yes" ; then
13240			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13241			found="yes"
13242		fi
13243	fi
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259xorg_testset_save_CFLAGS="$CFLAGS"
13260
13261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13266  $as_echo_n "(cached) " >&6
13267else
13268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269/* end confdefs.h.  */
13270int i;
13271_ACEOF
13272if ac_fn_c_try_compile "$LINENO"; then :
13273  xorg_cv_cc_flag_unknown_warning_option=yes
13274else
13275  xorg_cv_cc_flag_unknown_warning_option=no
13276fi
13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278fi
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13282	CFLAGS="$xorg_testset_save_CFLAGS"
13283fi
13284
13285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288	fi
13289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13293  $as_echo_n "(cached) " >&6
13294else
13295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h.  */
13297int i;
13298_ACEOF
13299if ac_fn_c_try_compile "$LINENO"; then :
13300  xorg_cv_cc_flag_unused_command_line_argument=yes
13301else
13302  xorg_cv_cc_flag_unused_command_line_argument=no
13303fi
13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13309	CFLAGS="$xorg_testset_save_CFLAGS"
13310fi
13311
13312found="no"
13313
13314	if test $found = "no" ; then
13315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13317		fi
13318
13319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13321		fi
13322
13323		CFLAGS="$CFLAGS -Wmissing-declarations"
13324
13325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13326$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13327		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13328		if eval \${$cacheid+:} false; then :
13329  $as_echo_n "(cached) " >&6
13330else
13331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h.  */
13333int i;
13334int
13335main ()
13336{
13337
13338  ;
13339  return 0;
13340}
13341_ACEOF
13342if ac_fn_c_try_link "$LINENO"; then :
13343  eval $cacheid=yes
13344else
13345  eval $cacheid=no
13346fi
13347rm -f core conftest.err conftest.$ac_objext \
13348    conftest$ac_exeext conftest.$ac_ext
13349fi
13350
13351
13352		CFLAGS="$xorg_testset_save_CFLAGS"
13353
13354		eval supported=\$$cacheid
13355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13356$as_echo "$supported" >&6; }
13357		if test "$supported" = "yes" ; then
13358			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13359			found="yes"
13360		fi
13361	fi
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377xorg_testset_save_CFLAGS="$CFLAGS"
13378
13379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388int i;
13389_ACEOF
13390if ac_fn_c_try_compile "$LINENO"; then :
13391  xorg_cv_cc_flag_unknown_warning_option=yes
13392else
13393  xorg_cv_cc_flag_unknown_warning_option=no
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396fi
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13400	CFLAGS="$xorg_testset_save_CFLAGS"
13401fi
13402
13403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13406	fi
13407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13411  $as_echo_n "(cached) " >&6
13412else
13413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414/* end confdefs.h.  */
13415int i;
13416_ACEOF
13417if ac_fn_c_try_compile "$LINENO"; then :
13418  xorg_cv_cc_flag_unused_command_line_argument=yes
13419else
13420  xorg_cv_cc_flag_unused_command_line_argument=no
13421fi
13422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423fi
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13427	CFLAGS="$xorg_testset_save_CFLAGS"
13428fi
13429
13430found="no"
13431
13432	if test $found = "no" ; then
13433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13435		fi
13436
13437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13439		fi
13440
13441		CFLAGS="$CFLAGS -Wformat=2"
13442
13443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13444$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13445		cacheid=xorg_cv_cc_flag__Wformat_2
13446		if eval \${$cacheid+:} false; then :
13447  $as_echo_n "(cached) " >&6
13448else
13449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450/* end confdefs.h.  */
13451int i;
13452int
13453main ()
13454{
13455
13456  ;
13457  return 0;
13458}
13459_ACEOF
13460if ac_fn_c_try_link "$LINENO"; then :
13461  eval $cacheid=yes
13462else
13463  eval $cacheid=no
13464fi
13465rm -f core conftest.err conftest.$ac_objext \
13466    conftest$ac_exeext conftest.$ac_ext
13467fi
13468
13469
13470		CFLAGS="$xorg_testset_save_CFLAGS"
13471
13472		eval supported=\$$cacheid
13473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13474$as_echo "$supported" >&6; }
13475		if test "$supported" = "yes" ; then
13476			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13477			found="yes"
13478		fi
13479	fi
13480
13481	if test $found = "no" ; then
13482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484		fi
13485
13486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13488		fi
13489
13490		CFLAGS="$CFLAGS -Wformat"
13491
13492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13493$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13494		cacheid=xorg_cv_cc_flag__Wformat
13495		if eval \${$cacheid+:} false; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h.  */
13500int i;
13501int
13502main ()
13503{
13504
13505  ;
13506  return 0;
13507}
13508_ACEOF
13509if ac_fn_c_try_link "$LINENO"; then :
13510  eval $cacheid=yes
13511else
13512  eval $cacheid=no
13513fi
13514rm -f core conftest.err conftest.$ac_objext \
13515    conftest$ac_exeext conftest.$ac_ext
13516fi
13517
13518
13519		CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521		eval supported=\$$cacheid
13522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13523$as_echo "$supported" >&6; }
13524		if test "$supported" = "yes" ; then
13525			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13526			found="yes"
13527		fi
13528	fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546xorg_testset_save_CFLAGS="$CFLAGS"
13547
13548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13553  $as_echo_n "(cached) " >&6
13554else
13555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557int i;
13558_ACEOF
13559if ac_fn_c_try_compile "$LINENO"; then :
13560  xorg_cv_cc_flag_unknown_warning_option=yes
13561else
13562  xorg_cv_cc_flag_unknown_warning_option=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565fi
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13569	CFLAGS="$xorg_testset_save_CFLAGS"
13570fi
13571
13572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575	fi
13576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583/* end confdefs.h.  */
13584int i;
13585_ACEOF
13586if ac_fn_c_try_compile "$LINENO"; then :
13587  xorg_cv_cc_flag_unused_command_line_argument=yes
13588else
13589  xorg_cv_cc_flag_unused_command_line_argument=no
13590fi
13591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592fi
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13596	CFLAGS="$xorg_testset_save_CFLAGS"
13597fi
13598
13599found="no"
13600
13601	if test $found = "no" ; then
13602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13604		fi
13605
13606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13608		fi
13609
13610		CFLAGS="$CFLAGS -Wstrict-prototypes"
13611
13612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13613$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13614		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13615		if eval \${$cacheid+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h.  */
13620int i;
13621int
13622main ()
13623{
13624
13625  ;
13626  return 0;
13627}
13628_ACEOF
13629if ac_fn_c_try_link "$LINENO"; then :
13630  eval $cacheid=yes
13631else
13632  eval $cacheid=no
13633fi
13634rm -f core conftest.err conftest.$ac_objext \
13635    conftest$ac_exeext conftest.$ac_ext
13636fi
13637
13638
13639		CFLAGS="$xorg_testset_save_CFLAGS"
13640
13641		eval supported=\$$cacheid
13642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13643$as_echo "$supported" >&6; }
13644		if test "$supported" = "yes" ; then
13645			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13646			found="yes"
13647		fi
13648	fi
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664xorg_testset_save_CFLAGS="$CFLAGS"
13665
13666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675int i;
13676_ACEOF
13677if ac_fn_c_try_compile "$LINENO"; then :
13678  xorg_cv_cc_flag_unknown_warning_option=yes
13679else
13680  xorg_cv_cc_flag_unknown_warning_option=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687	CFLAGS="$xorg_testset_save_CFLAGS"
13688fi
13689
13690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693	fi
13694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13698  $as_echo_n "(cached) " >&6
13699else
13700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701/* end confdefs.h.  */
13702int i;
13703_ACEOF
13704if ac_fn_c_try_compile "$LINENO"; then :
13705  xorg_cv_cc_flag_unused_command_line_argument=yes
13706else
13707  xorg_cv_cc_flag_unused_command_line_argument=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13714	CFLAGS="$xorg_testset_save_CFLAGS"
13715fi
13716
13717found="no"
13718
13719	if test $found = "no" ; then
13720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13722		fi
13723
13724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13726		fi
13727
13728		CFLAGS="$CFLAGS -Wmissing-prototypes"
13729
13730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13731$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13732		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13733		if eval \${$cacheid+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738int i;
13739int
13740main ()
13741{
13742
13743  ;
13744  return 0;
13745}
13746_ACEOF
13747if ac_fn_c_try_link "$LINENO"; then :
13748  eval $cacheid=yes
13749else
13750  eval $cacheid=no
13751fi
13752rm -f core conftest.err conftest.$ac_objext \
13753    conftest$ac_exeext conftest.$ac_ext
13754fi
13755
13756
13757		CFLAGS="$xorg_testset_save_CFLAGS"
13758
13759		eval supported=\$$cacheid
13760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13761$as_echo "$supported" >&6; }
13762		if test "$supported" = "yes" ; then
13763			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13764			found="yes"
13765		fi
13766	fi
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782xorg_testset_save_CFLAGS="$CFLAGS"
13783
13784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13789  $as_echo_n "(cached) " >&6
13790else
13791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793int i;
13794_ACEOF
13795if ac_fn_c_try_compile "$LINENO"; then :
13796  xorg_cv_cc_flag_unknown_warning_option=yes
13797else
13798  xorg_cv_cc_flag_unknown_warning_option=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13805	CFLAGS="$xorg_testset_save_CFLAGS"
13806fi
13807
13808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811	fi
13812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820int i;
13821_ACEOF
13822if ac_fn_c_try_compile "$LINENO"; then :
13823  xorg_cv_cc_flag_unused_command_line_argument=yes
13824else
13825  xorg_cv_cc_flag_unused_command_line_argument=no
13826fi
13827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828fi
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13832	CFLAGS="$xorg_testset_save_CFLAGS"
13833fi
13834
13835found="no"
13836
13837	if test $found = "no" ; then
13838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840		fi
13841
13842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844		fi
13845
13846		CFLAGS="$CFLAGS -Wnested-externs"
13847
13848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13849$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13850		cacheid=xorg_cv_cc_flag__Wnested_externs
13851		if eval \${$cacheid+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856int i;
13857int
13858main ()
13859{
13860
13861  ;
13862  return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_link "$LINENO"; then :
13866  eval $cacheid=yes
13867else
13868  eval $cacheid=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext \
13871    conftest$ac_exeext conftest.$ac_ext
13872fi
13873
13874
13875		CFLAGS="$xorg_testset_save_CFLAGS"
13876
13877		eval supported=\$$cacheid
13878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13879$as_echo "$supported" >&6; }
13880		if test "$supported" = "yes" ; then
13881			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13882			found="yes"
13883		fi
13884	fi
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900xorg_testset_save_CFLAGS="$CFLAGS"
13901
13902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13907  $as_echo_n "(cached) " >&6
13908else
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911int i;
13912_ACEOF
13913if ac_fn_c_try_compile "$LINENO"; then :
13914  xorg_cv_cc_flag_unknown_warning_option=yes
13915else
13916  xorg_cv_cc_flag_unknown_warning_option=no
13917fi
13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919fi
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13923	CFLAGS="$xorg_testset_save_CFLAGS"
13924fi
13925
13926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929	fi
13930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13934  $as_echo_n "(cached) " >&6
13935else
13936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938int i;
13939_ACEOF
13940if ac_fn_c_try_compile "$LINENO"; then :
13941  xorg_cv_cc_flag_unused_command_line_argument=yes
13942else
13943  xorg_cv_cc_flag_unused_command_line_argument=no
13944fi
13945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946fi
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13950	CFLAGS="$xorg_testset_save_CFLAGS"
13951fi
13952
13953found="no"
13954
13955	if test $found = "no" ; then
13956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13958		fi
13959
13960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13962		fi
13963
13964		CFLAGS="$CFLAGS -Wbad-function-cast"
13965
13966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13967$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13968		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13969		if eval \${$cacheid+:} false; then :
13970  $as_echo_n "(cached) " >&6
13971else
13972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973/* end confdefs.h.  */
13974int i;
13975int
13976main ()
13977{
13978
13979  ;
13980  return 0;
13981}
13982_ACEOF
13983if ac_fn_c_try_link "$LINENO"; then :
13984  eval $cacheid=yes
13985else
13986  eval $cacheid=no
13987fi
13988rm -f core conftest.err conftest.$ac_objext \
13989    conftest$ac_exeext conftest.$ac_ext
13990fi
13991
13992
13993		CFLAGS="$xorg_testset_save_CFLAGS"
13994
13995		eval supported=\$$cacheid
13996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13997$as_echo "$supported" >&6; }
13998		if test "$supported" = "yes" ; then
13999			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14000			found="yes"
14001		fi
14002	fi
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018xorg_testset_save_CFLAGS="$CFLAGS"
14019
14020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14025  $as_echo_n "(cached) " >&6
14026else
14027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029int i;
14030_ACEOF
14031if ac_fn_c_try_compile "$LINENO"; then :
14032  xorg_cv_cc_flag_unknown_warning_option=yes
14033else
14034  xorg_cv_cc_flag_unknown_warning_option=no
14035fi
14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14041	CFLAGS="$xorg_testset_save_CFLAGS"
14042fi
14043
14044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14047	fi
14048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14052  $as_echo_n "(cached) " >&6
14053else
14054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055/* end confdefs.h.  */
14056int i;
14057_ACEOF
14058if ac_fn_c_try_compile "$LINENO"; then :
14059  xorg_cv_cc_flag_unused_command_line_argument=yes
14060else
14061  xorg_cv_cc_flag_unused_command_line_argument=no
14062fi
14063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14068	CFLAGS="$xorg_testset_save_CFLAGS"
14069fi
14070
14071found="no"
14072
14073	if test $found = "no" ; then
14074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076		fi
14077
14078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14080		fi
14081
14082		CFLAGS="$CFLAGS -Wold-style-definition"
14083
14084		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14085$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14086		cacheid=xorg_cv_cc_flag__Wold_style_definition
14087		if eval \${$cacheid+:} false; then :
14088  $as_echo_n "(cached) " >&6
14089else
14090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h.  */
14092int i;
14093int
14094main ()
14095{
14096
14097  ;
14098  return 0;
14099}
14100_ACEOF
14101if ac_fn_c_try_link "$LINENO"; then :
14102  eval $cacheid=yes
14103else
14104  eval $cacheid=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext \
14107    conftest$ac_exeext conftest.$ac_ext
14108fi
14109
14110
14111		CFLAGS="$xorg_testset_save_CFLAGS"
14112
14113		eval supported=\$$cacheid
14114		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14115$as_echo "$supported" >&6; }
14116		if test "$supported" = "yes" ; then
14117			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14118			found="yes"
14119		fi
14120	fi
14121
14122	if test $found = "no" ; then
14123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14125		fi
14126
14127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14129		fi
14130
14131		CFLAGS="$CFLAGS -fd"
14132
14133		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14134$as_echo_n "checking if $CC supports -fd... " >&6; }
14135		cacheid=xorg_cv_cc_flag__fd
14136		if eval \${$cacheid+:} false; then :
14137  $as_echo_n "(cached) " >&6
14138else
14139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140/* end confdefs.h.  */
14141int i;
14142int
14143main ()
14144{
14145
14146  ;
14147  return 0;
14148}
14149_ACEOF
14150if ac_fn_c_try_link "$LINENO"; then :
14151  eval $cacheid=yes
14152else
14153  eval $cacheid=no
14154fi
14155rm -f core conftest.err conftest.$ac_objext \
14156    conftest$ac_exeext conftest.$ac_ext
14157fi
14158
14159
14160		CFLAGS="$xorg_testset_save_CFLAGS"
14161
14162		eval supported=\$$cacheid
14163		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14164$as_echo "$supported" >&6; }
14165		if test "$supported" = "yes" ; then
14166			BASE_CFLAGS="$BASE_CFLAGS -fd"
14167			found="yes"
14168		fi
14169	fi
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185xorg_testset_save_CFLAGS="$CFLAGS"
14186
14187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14192  $as_echo_n "(cached) " >&6
14193else
14194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195/* end confdefs.h.  */
14196int i;
14197_ACEOF
14198if ac_fn_c_try_compile "$LINENO"; then :
14199  xorg_cv_cc_flag_unknown_warning_option=yes
14200else
14201  xorg_cv_cc_flag_unknown_warning_option=no
14202fi
14203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204fi
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14208	CFLAGS="$xorg_testset_save_CFLAGS"
14209fi
14210
14211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14214	fi
14215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14219  $as_echo_n "(cached) " >&6
14220else
14221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223int i;
14224_ACEOF
14225if ac_fn_c_try_compile "$LINENO"; then :
14226  xorg_cv_cc_flag_unused_command_line_argument=yes
14227else
14228  xorg_cv_cc_flag_unused_command_line_argument=no
14229fi
14230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231fi
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14235	CFLAGS="$xorg_testset_save_CFLAGS"
14236fi
14237
14238found="no"
14239
14240	if test $found = "no" ; then
14241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14243		fi
14244
14245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14247		fi
14248
14249		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14250
14251		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14252$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14253		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14254		if eval \${$cacheid+:} false; then :
14255  $as_echo_n "(cached) " >&6
14256else
14257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258/* end confdefs.h.  */
14259int i;
14260int
14261main ()
14262{
14263
14264  ;
14265  return 0;
14266}
14267_ACEOF
14268if ac_fn_c_try_link "$LINENO"; then :
14269  eval $cacheid=yes
14270else
14271  eval $cacheid=no
14272fi
14273rm -f core conftest.err conftest.$ac_objext \
14274    conftest$ac_exeext conftest.$ac_ext
14275fi
14276
14277
14278		CFLAGS="$xorg_testset_save_CFLAGS"
14279
14280		eval supported=\$$cacheid
14281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14282$as_echo "$supported" >&6; }
14283		if test "$supported" = "yes" ; then
14284			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14285			found="yes"
14286		fi
14287	fi
14288
14289
14290
14291
14292
14293# This chunk adds additional warnings that could catch undesired effects.
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307xorg_testset_save_CFLAGS="$CFLAGS"
14308
14309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14314  $as_echo_n "(cached) " >&6
14315else
14316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317/* end confdefs.h.  */
14318int i;
14319_ACEOF
14320if ac_fn_c_try_compile "$LINENO"; then :
14321  xorg_cv_cc_flag_unknown_warning_option=yes
14322else
14323  xorg_cv_cc_flag_unknown_warning_option=no
14324fi
14325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326fi
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14330	CFLAGS="$xorg_testset_save_CFLAGS"
14331fi
14332
14333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336	fi
14337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14341  $as_echo_n "(cached) " >&6
14342else
14343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h.  */
14345int i;
14346_ACEOF
14347if ac_fn_c_try_compile "$LINENO"; then :
14348  xorg_cv_cc_flag_unused_command_line_argument=yes
14349else
14350  xorg_cv_cc_flag_unused_command_line_argument=no
14351fi
14352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353fi
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14357	CFLAGS="$xorg_testset_save_CFLAGS"
14358fi
14359
14360found="no"
14361
14362	if test $found = "no" ; then
14363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365		fi
14366
14367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14369		fi
14370
14371		CFLAGS="$CFLAGS -Wunused"
14372
14373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14374$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14375		cacheid=xorg_cv_cc_flag__Wunused
14376		if eval \${$cacheid+:} false; then :
14377  $as_echo_n "(cached) " >&6
14378else
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382int
14383main ()
14384{
14385
14386  ;
14387  return 0;
14388}
14389_ACEOF
14390if ac_fn_c_try_link "$LINENO"; then :
14391  eval $cacheid=yes
14392else
14393  eval $cacheid=no
14394fi
14395rm -f core conftest.err conftest.$ac_objext \
14396    conftest$ac_exeext conftest.$ac_ext
14397fi
14398
14399
14400		CFLAGS="$xorg_testset_save_CFLAGS"
14401
14402		eval supported=\$$cacheid
14403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14404$as_echo "$supported" >&6; }
14405		if test "$supported" = "yes" ; then
14406			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14407			found="yes"
14408		fi
14409	fi
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425xorg_testset_save_CFLAGS="$CFLAGS"
14426
14427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14432  $as_echo_n "(cached) " >&6
14433else
14434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437_ACEOF
14438if ac_fn_c_try_compile "$LINENO"; then :
14439  xorg_cv_cc_flag_unknown_warning_option=yes
14440else
14441  xorg_cv_cc_flag_unknown_warning_option=no
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14448	CFLAGS="$xorg_testset_save_CFLAGS"
14449fi
14450
14451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454	fi
14455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14459  $as_echo_n "(cached) " >&6
14460else
14461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462/* end confdefs.h.  */
14463int i;
14464_ACEOF
14465if ac_fn_c_try_compile "$LINENO"; then :
14466  xorg_cv_cc_flag_unused_command_line_argument=yes
14467else
14468  xorg_cv_cc_flag_unused_command_line_argument=no
14469fi
14470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14475	CFLAGS="$xorg_testset_save_CFLAGS"
14476fi
14477
14478found="no"
14479
14480	if test $found = "no" ; then
14481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483		fi
14484
14485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487		fi
14488
14489		CFLAGS="$CFLAGS -Wuninitialized"
14490
14491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14492$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14493		cacheid=xorg_cv_cc_flag__Wuninitialized
14494		if eval \${$cacheid+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499int i;
14500int
14501main ()
14502{
14503
14504  ;
14505  return 0;
14506}
14507_ACEOF
14508if ac_fn_c_try_link "$LINENO"; then :
14509  eval $cacheid=yes
14510else
14511  eval $cacheid=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext \
14514    conftest$ac_exeext conftest.$ac_ext
14515fi
14516
14517
14518		CFLAGS="$xorg_testset_save_CFLAGS"
14519
14520		eval supported=\$$cacheid
14521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14522$as_echo "$supported" >&6; }
14523		if test "$supported" = "yes" ; then
14524			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14525			found="yes"
14526		fi
14527	fi
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543xorg_testset_save_CFLAGS="$CFLAGS"
14544
14545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14550  $as_echo_n "(cached) " >&6
14551else
14552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553/* end confdefs.h.  */
14554int i;
14555_ACEOF
14556if ac_fn_c_try_compile "$LINENO"; then :
14557  xorg_cv_cc_flag_unknown_warning_option=yes
14558else
14559  xorg_cv_cc_flag_unknown_warning_option=no
14560fi
14561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14566	CFLAGS="$xorg_testset_save_CFLAGS"
14567fi
14568
14569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572	fi
14573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14577  $as_echo_n "(cached) " >&6
14578else
14579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581int i;
14582_ACEOF
14583if ac_fn_c_try_compile "$LINENO"; then :
14584  xorg_cv_cc_flag_unused_command_line_argument=yes
14585else
14586  xorg_cv_cc_flag_unused_command_line_argument=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593	CFLAGS="$xorg_testset_save_CFLAGS"
14594fi
14595
14596found="no"
14597
14598	if test $found = "no" ; then
14599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601		fi
14602
14603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605		fi
14606
14607		CFLAGS="$CFLAGS -Wshadow"
14608
14609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14610$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14611		cacheid=xorg_cv_cc_flag__Wshadow
14612		if eval \${$cacheid+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617int i;
14618int
14619main ()
14620{
14621
14622  ;
14623  return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"; then :
14627  eval $cacheid=yes
14628else
14629  eval $cacheid=no
14630fi
14631rm -f core conftest.err conftest.$ac_objext \
14632    conftest$ac_exeext conftest.$ac_ext
14633fi
14634
14635
14636		CFLAGS="$xorg_testset_save_CFLAGS"
14637
14638		eval supported=\$$cacheid
14639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14640$as_echo "$supported" >&6; }
14641		if test "$supported" = "yes" ; then
14642			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14643			found="yes"
14644		fi
14645	fi
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661xorg_testset_save_CFLAGS="$CFLAGS"
14662
14663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673_ACEOF
14674if ac_fn_c_try_compile "$LINENO"; then :
14675  xorg_cv_cc_flag_unknown_warning_option=yes
14676else
14677  xorg_cv_cc_flag_unknown_warning_option=no
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14684	CFLAGS="$xorg_testset_save_CFLAGS"
14685fi
14686
14687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690	fi
14691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14695  $as_echo_n "(cached) " >&6
14696else
14697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698/* end confdefs.h.  */
14699int i;
14700_ACEOF
14701if ac_fn_c_try_compile "$LINENO"; then :
14702  xorg_cv_cc_flag_unused_command_line_argument=yes
14703else
14704  xorg_cv_cc_flag_unused_command_line_argument=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707fi
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14711	CFLAGS="$xorg_testset_save_CFLAGS"
14712fi
14713
14714found="no"
14715
14716	if test $found = "no" ; then
14717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719		fi
14720
14721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14723		fi
14724
14725		CFLAGS="$CFLAGS -Wmissing-noreturn"
14726
14727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14728$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14729		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14730		if eval \${$cacheid+:} false; then :
14731  $as_echo_n "(cached) " >&6
14732else
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736int
14737main ()
14738{
14739
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744if ac_fn_c_try_link "$LINENO"; then :
14745  eval $cacheid=yes
14746else
14747  eval $cacheid=no
14748fi
14749rm -f core conftest.err conftest.$ac_objext \
14750    conftest$ac_exeext conftest.$ac_ext
14751fi
14752
14753
14754		CFLAGS="$xorg_testset_save_CFLAGS"
14755
14756		eval supported=\$$cacheid
14757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14758$as_echo "$supported" >&6; }
14759		if test "$supported" = "yes" ; then
14760			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14761			found="yes"
14762		fi
14763	fi
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779xorg_testset_save_CFLAGS="$CFLAGS"
14780
14781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"; then :
14793  xorg_cv_cc_flag_unknown_warning_option=yes
14794else
14795  xorg_cv_cc_flag_unknown_warning_option=no
14796fi
14797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798fi
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14802	CFLAGS="$xorg_testset_save_CFLAGS"
14803fi
14804
14805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808	fi
14809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14813  $as_echo_n "(cached) " >&6
14814else
14815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h.  */
14817int i;
14818_ACEOF
14819if ac_fn_c_try_compile "$LINENO"; then :
14820  xorg_cv_cc_flag_unused_command_line_argument=yes
14821else
14822  xorg_cv_cc_flag_unused_command_line_argument=no
14823fi
14824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825fi
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14829	CFLAGS="$xorg_testset_save_CFLAGS"
14830fi
14831
14832found="no"
14833
14834	if test $found = "no" ; then
14835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837		fi
14838
14839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14841		fi
14842
14843		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14844
14845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14846$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14847		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14848		if eval \${$cacheid+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854int
14855main ()
14856{
14857
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862if ac_fn_c_try_link "$LINENO"; then :
14863  eval $cacheid=yes
14864else
14865  eval $cacheid=no
14866fi
14867rm -f core conftest.err conftest.$ac_objext \
14868    conftest$ac_exeext conftest.$ac_ext
14869fi
14870
14871
14872		CFLAGS="$xorg_testset_save_CFLAGS"
14873
14874		eval supported=\$$cacheid
14875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14876$as_echo "$supported" >&6; }
14877		if test "$supported" = "yes" ; then
14878			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14879			found="yes"
14880		fi
14881	fi
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897xorg_testset_save_CFLAGS="$CFLAGS"
14898
14899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14904  $as_echo_n "(cached) " >&6
14905else
14906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907/* end confdefs.h.  */
14908int i;
14909_ACEOF
14910if ac_fn_c_try_compile "$LINENO"; then :
14911  xorg_cv_cc_flag_unknown_warning_option=yes
14912else
14913  xorg_cv_cc_flag_unknown_warning_option=no
14914fi
14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916fi
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14920	CFLAGS="$xorg_testset_save_CFLAGS"
14921fi
14922
14923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14926	fi
14927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14931  $as_echo_n "(cached) " >&6
14932else
14933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934/* end confdefs.h.  */
14935int i;
14936_ACEOF
14937if ac_fn_c_try_compile "$LINENO"; then :
14938  xorg_cv_cc_flag_unused_command_line_argument=yes
14939else
14940  xorg_cv_cc_flag_unused_command_line_argument=no
14941fi
14942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943fi
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14947	CFLAGS="$xorg_testset_save_CFLAGS"
14948fi
14949
14950found="no"
14951
14952	if test $found = "no" ; then
14953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14955		fi
14956
14957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14959		fi
14960
14961		CFLAGS="$CFLAGS -Wredundant-decls"
14962
14963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14964$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14965		cacheid=xorg_cv_cc_flag__Wredundant_decls
14966		if eval \${$cacheid+:} false; then :
14967  $as_echo_n "(cached) " >&6
14968else
14969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970/* end confdefs.h.  */
14971int i;
14972int
14973main ()
14974{
14975
14976  ;
14977  return 0;
14978}
14979_ACEOF
14980if ac_fn_c_try_link "$LINENO"; then :
14981  eval $cacheid=yes
14982else
14983  eval $cacheid=no
14984fi
14985rm -f core conftest.err conftest.$ac_objext \
14986    conftest$ac_exeext conftest.$ac_ext
14987fi
14988
14989
14990		CFLAGS="$xorg_testset_save_CFLAGS"
14991
14992		eval supported=\$$cacheid
14993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14994$as_echo "$supported" >&6; }
14995		if test "$supported" = "yes" ; then
14996			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14997			found="yes"
14998		fi
14999	fi
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015xorg_testset_save_CFLAGS="$CFLAGS"
15016
15017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15022  $as_echo_n "(cached) " >&6
15023else
15024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025/* end confdefs.h.  */
15026int i;
15027_ACEOF
15028if ac_fn_c_try_compile "$LINENO"; then :
15029  xorg_cv_cc_flag_unknown_warning_option=yes
15030else
15031  xorg_cv_cc_flag_unknown_warning_option=no
15032fi
15033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034fi
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15038	CFLAGS="$xorg_testset_save_CFLAGS"
15039fi
15040
15041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15044	fi
15045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15049  $as_echo_n "(cached) " >&6
15050else
15051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h.  */
15053int i;
15054_ACEOF
15055if ac_fn_c_try_compile "$LINENO"; then :
15056  xorg_cv_cc_flag_unused_command_line_argument=yes
15057else
15058  xorg_cv_cc_flag_unused_command_line_argument=no
15059fi
15060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061fi
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15065	CFLAGS="$xorg_testset_save_CFLAGS"
15066fi
15067
15068found="no"
15069
15070	if test $found = "no" ; then
15071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15073		fi
15074
15075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15077		fi
15078
15079		CFLAGS="$CFLAGS -Wlogical-op"
15080
15081		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15082$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15083		cacheid=xorg_cv_cc_flag__Wlogical_op
15084		if eval \${$cacheid+:} false; then :
15085  $as_echo_n "(cached) " >&6
15086else
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089int i;
15090int
15091main ()
15092{
15093
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098if ac_fn_c_try_link "$LINENO"; then :
15099  eval $cacheid=yes
15100else
15101  eval $cacheid=no
15102fi
15103rm -f core conftest.err conftest.$ac_objext \
15104    conftest$ac_exeext conftest.$ac_ext
15105fi
15106
15107
15108		CFLAGS="$xorg_testset_save_CFLAGS"
15109
15110		eval supported=\$$cacheid
15111		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15112$as_echo "$supported" >&6; }
15113		if test "$supported" = "yes" ; then
15114			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15115			found="yes"
15116		fi
15117	fi
15118
15119
15120
15121# These are currently disabled because they are noisy.  They will be enabled
15122# in the future once the codebase is sufficiently modernized to silence
15123# them.  For now, I don't want them to drown out the other warnings.
15124# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15125# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15126# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15127
15128# Turn some warnings into errors, so we don't accidently get successful builds
15129# when there are problems that should be fixed.
15130
15131if test "x$SELECTIVE_WERROR" = "xyes" ; then
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145xorg_testset_save_CFLAGS="$CFLAGS"
15146
15147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15152  $as_echo_n "(cached) " >&6
15153else
15154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155/* end confdefs.h.  */
15156int i;
15157_ACEOF
15158if ac_fn_c_try_compile "$LINENO"; then :
15159  xorg_cv_cc_flag_unknown_warning_option=yes
15160else
15161  xorg_cv_cc_flag_unknown_warning_option=no
15162fi
15163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164fi
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15168	CFLAGS="$xorg_testset_save_CFLAGS"
15169fi
15170
15171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15174	fi
15175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h.  */
15183int i;
15184_ACEOF
15185if ac_fn_c_try_compile "$LINENO"; then :
15186  xorg_cv_cc_flag_unused_command_line_argument=yes
15187else
15188  xorg_cv_cc_flag_unused_command_line_argument=no
15189fi
15190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15191fi
15192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15195	CFLAGS="$xorg_testset_save_CFLAGS"
15196fi
15197
15198found="no"
15199
15200	if test $found = "no" ; then
15201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15203		fi
15204
15205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15207		fi
15208
15209		CFLAGS="$CFLAGS -Werror=implicit"
15210
15211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15212$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15213		cacheid=xorg_cv_cc_flag__Werror_implicit
15214		if eval \${$cacheid+:} false; then :
15215  $as_echo_n "(cached) " >&6
15216else
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219int i;
15220int
15221main ()
15222{
15223
15224  ;
15225  return 0;
15226}
15227_ACEOF
15228if ac_fn_c_try_link "$LINENO"; then :
15229  eval $cacheid=yes
15230else
15231  eval $cacheid=no
15232fi
15233rm -f core conftest.err conftest.$ac_objext \
15234    conftest$ac_exeext conftest.$ac_ext
15235fi
15236
15237
15238		CFLAGS="$xorg_testset_save_CFLAGS"
15239
15240		eval supported=\$$cacheid
15241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15242$as_echo "$supported" >&6; }
15243		if test "$supported" = "yes" ; then
15244			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15245			found="yes"
15246		fi
15247	fi
15248
15249	if test $found = "no" ; then
15250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252		fi
15253
15254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15256		fi
15257
15258		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15259
15260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15261$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15262		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15263		if eval \${$cacheid+:} false; then :
15264  $as_echo_n "(cached) " >&6
15265else
15266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267/* end confdefs.h.  */
15268int i;
15269int
15270main ()
15271{
15272
15273  ;
15274  return 0;
15275}
15276_ACEOF
15277if ac_fn_c_try_link "$LINENO"; then :
15278  eval $cacheid=yes
15279else
15280  eval $cacheid=no
15281fi
15282rm -f core conftest.err conftest.$ac_objext \
15283    conftest$ac_exeext conftest.$ac_ext
15284fi
15285
15286
15287		CFLAGS="$xorg_testset_save_CFLAGS"
15288
15289		eval supported=\$$cacheid
15290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15291$as_echo "$supported" >&6; }
15292		if test "$supported" = "yes" ; then
15293			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15294			found="yes"
15295		fi
15296	fi
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312xorg_testset_save_CFLAGS="$CFLAGS"
15313
15314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15319  $as_echo_n "(cached) " >&6
15320else
15321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322/* end confdefs.h.  */
15323int i;
15324_ACEOF
15325if ac_fn_c_try_compile "$LINENO"; then :
15326  xorg_cv_cc_flag_unknown_warning_option=yes
15327else
15328  xorg_cv_cc_flag_unknown_warning_option=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15335	CFLAGS="$xorg_testset_save_CFLAGS"
15336fi
15337
15338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341	fi
15342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15346  $as_echo_n "(cached) " >&6
15347else
15348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349/* end confdefs.h.  */
15350int i;
15351_ACEOF
15352if ac_fn_c_try_compile "$LINENO"; then :
15353  xorg_cv_cc_flag_unused_command_line_argument=yes
15354else
15355  xorg_cv_cc_flag_unused_command_line_argument=no
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358fi
15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15362	CFLAGS="$xorg_testset_save_CFLAGS"
15363fi
15364
15365found="no"
15366
15367	if test $found = "no" ; then
15368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370		fi
15371
15372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15374		fi
15375
15376		CFLAGS="$CFLAGS -Werror=nonnull"
15377
15378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15379$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15380		cacheid=xorg_cv_cc_flag__Werror_nonnull
15381		if eval \${$cacheid+:} false; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385/* end confdefs.h.  */
15386int i;
15387int
15388main ()
15389{
15390
15391  ;
15392  return 0;
15393}
15394_ACEOF
15395if ac_fn_c_try_link "$LINENO"; then :
15396  eval $cacheid=yes
15397else
15398  eval $cacheid=no
15399fi
15400rm -f core conftest.err conftest.$ac_objext \
15401    conftest$ac_exeext conftest.$ac_ext
15402fi
15403
15404
15405		CFLAGS="$xorg_testset_save_CFLAGS"
15406
15407		eval supported=\$$cacheid
15408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15409$as_echo "$supported" >&6; }
15410		if test "$supported" = "yes" ; then
15411			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15412			found="yes"
15413		fi
15414	fi
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430xorg_testset_save_CFLAGS="$CFLAGS"
15431
15432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15437  $as_echo_n "(cached) " >&6
15438else
15439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h.  */
15441int i;
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"; then :
15444  xorg_cv_cc_flag_unknown_warning_option=yes
15445else
15446  xorg_cv_cc_flag_unknown_warning_option=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449fi
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15453	CFLAGS="$xorg_testset_save_CFLAGS"
15454fi
15455
15456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459	fi
15460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15464  $as_echo_n "(cached) " >&6
15465else
15466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467/* end confdefs.h.  */
15468int i;
15469_ACEOF
15470if ac_fn_c_try_compile "$LINENO"; then :
15471  xorg_cv_cc_flag_unused_command_line_argument=yes
15472else
15473  xorg_cv_cc_flag_unused_command_line_argument=no
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476fi
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15480	CFLAGS="$xorg_testset_save_CFLAGS"
15481fi
15482
15483found="no"
15484
15485	if test $found = "no" ; then
15486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488		fi
15489
15490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15492		fi
15493
15494		CFLAGS="$CFLAGS -Werror=init-self"
15495
15496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15497$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15498		cacheid=xorg_cv_cc_flag__Werror_init_self
15499		if eval \${$cacheid+:} false; then :
15500  $as_echo_n "(cached) " >&6
15501else
15502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503/* end confdefs.h.  */
15504int i;
15505int
15506main ()
15507{
15508
15509  ;
15510  return 0;
15511}
15512_ACEOF
15513if ac_fn_c_try_link "$LINENO"; then :
15514  eval $cacheid=yes
15515else
15516  eval $cacheid=no
15517fi
15518rm -f core conftest.err conftest.$ac_objext \
15519    conftest$ac_exeext conftest.$ac_ext
15520fi
15521
15522
15523		CFLAGS="$xorg_testset_save_CFLAGS"
15524
15525		eval supported=\$$cacheid
15526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15527$as_echo "$supported" >&6; }
15528		if test "$supported" = "yes" ; then
15529			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15530			found="yes"
15531		fi
15532	fi
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548xorg_testset_save_CFLAGS="$CFLAGS"
15549
15550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15555  $as_echo_n "(cached) " >&6
15556else
15557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558/* end confdefs.h.  */
15559int i;
15560_ACEOF
15561if ac_fn_c_try_compile "$LINENO"; then :
15562  xorg_cv_cc_flag_unknown_warning_option=yes
15563else
15564  xorg_cv_cc_flag_unknown_warning_option=no
15565fi
15566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567fi
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15571	CFLAGS="$xorg_testset_save_CFLAGS"
15572fi
15573
15574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15577	fi
15578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15582  $as_echo_n "(cached) " >&6
15583else
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586int i;
15587_ACEOF
15588if ac_fn_c_try_compile "$LINENO"; then :
15589  xorg_cv_cc_flag_unused_command_line_argument=yes
15590else
15591  xorg_cv_cc_flag_unused_command_line_argument=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598	CFLAGS="$xorg_testset_save_CFLAGS"
15599fi
15600
15601found="no"
15602
15603	if test $found = "no" ; then
15604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606		fi
15607
15608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610		fi
15611
15612		CFLAGS="$CFLAGS -Werror=main"
15613
15614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15615$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15616		cacheid=xorg_cv_cc_flag__Werror_main
15617		if eval \${$cacheid+:} false; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h.  */
15622int i;
15623int
15624main ()
15625{
15626
15627  ;
15628  return 0;
15629}
15630_ACEOF
15631if ac_fn_c_try_link "$LINENO"; then :
15632  eval $cacheid=yes
15633else
15634  eval $cacheid=no
15635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637    conftest$ac_exeext conftest.$ac_ext
15638fi
15639
15640
15641		CFLAGS="$xorg_testset_save_CFLAGS"
15642
15643		eval supported=\$$cacheid
15644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15645$as_echo "$supported" >&6; }
15646		if test "$supported" = "yes" ; then
15647			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15648			found="yes"
15649		fi
15650	fi
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666xorg_testset_save_CFLAGS="$CFLAGS"
15667
15668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15673  $as_echo_n "(cached) " >&6
15674else
15675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h.  */
15677int i;
15678_ACEOF
15679if ac_fn_c_try_compile "$LINENO"; then :
15680  xorg_cv_cc_flag_unknown_warning_option=yes
15681else
15682  xorg_cv_cc_flag_unknown_warning_option=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15689	CFLAGS="$xorg_testset_save_CFLAGS"
15690fi
15691
15692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695	fi
15696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703/* end confdefs.h.  */
15704int i;
15705_ACEOF
15706if ac_fn_c_try_compile "$LINENO"; then :
15707  xorg_cv_cc_flag_unused_command_line_argument=yes
15708else
15709  xorg_cv_cc_flag_unused_command_line_argument=no
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712fi
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15716	CFLAGS="$xorg_testset_save_CFLAGS"
15717fi
15718
15719found="no"
15720
15721	if test $found = "no" ; then
15722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724		fi
15725
15726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728		fi
15729
15730		CFLAGS="$CFLAGS -Werror=missing-braces"
15731
15732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15733$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15734		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15735		if eval \${$cacheid+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739/* end confdefs.h.  */
15740int i;
15741int
15742main ()
15743{
15744
15745  ;
15746  return 0;
15747}
15748_ACEOF
15749if ac_fn_c_try_link "$LINENO"; then :
15750  eval $cacheid=yes
15751else
15752  eval $cacheid=no
15753fi
15754rm -f core conftest.err conftest.$ac_objext \
15755    conftest$ac_exeext conftest.$ac_ext
15756fi
15757
15758
15759		CFLAGS="$xorg_testset_save_CFLAGS"
15760
15761		eval supported=\$$cacheid
15762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15763$as_echo "$supported" >&6; }
15764		if test "$supported" = "yes" ; then
15765			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15766			found="yes"
15767		fi
15768	fi
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784xorg_testset_save_CFLAGS="$CFLAGS"
15785
15786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15791  $as_echo_n "(cached) " >&6
15792else
15793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794/* end confdefs.h.  */
15795int i;
15796_ACEOF
15797if ac_fn_c_try_compile "$LINENO"; then :
15798  xorg_cv_cc_flag_unknown_warning_option=yes
15799else
15800  xorg_cv_cc_flag_unknown_warning_option=no
15801fi
15802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15807	CFLAGS="$xorg_testset_save_CFLAGS"
15808fi
15809
15810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813	fi
15814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15818  $as_echo_n "(cached) " >&6
15819else
15820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821/* end confdefs.h.  */
15822int i;
15823_ACEOF
15824if ac_fn_c_try_compile "$LINENO"; then :
15825  xorg_cv_cc_flag_unused_command_line_argument=yes
15826else
15827  xorg_cv_cc_flag_unused_command_line_argument=no
15828fi
15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830fi
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15834	CFLAGS="$xorg_testset_save_CFLAGS"
15835fi
15836
15837found="no"
15838
15839	if test $found = "no" ; then
15840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15842		fi
15843
15844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15846		fi
15847
15848		CFLAGS="$CFLAGS -Werror=sequence-point"
15849
15850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15851$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15852		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15853		if eval \${$cacheid+:} false; then :
15854  $as_echo_n "(cached) " >&6
15855else
15856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858int i;
15859int
15860main ()
15861{
15862
15863  ;
15864  return 0;
15865}
15866_ACEOF
15867if ac_fn_c_try_link "$LINENO"; then :
15868  eval $cacheid=yes
15869else
15870  eval $cacheid=no
15871fi
15872rm -f core conftest.err conftest.$ac_objext \
15873    conftest$ac_exeext conftest.$ac_ext
15874fi
15875
15876
15877		CFLAGS="$xorg_testset_save_CFLAGS"
15878
15879		eval supported=\$$cacheid
15880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15881$as_echo "$supported" >&6; }
15882		if test "$supported" = "yes" ; then
15883			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15884			found="yes"
15885		fi
15886	fi
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902xorg_testset_save_CFLAGS="$CFLAGS"
15903
15904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15909  $as_echo_n "(cached) " >&6
15910else
15911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912/* end confdefs.h.  */
15913int i;
15914_ACEOF
15915if ac_fn_c_try_compile "$LINENO"; then :
15916  xorg_cv_cc_flag_unknown_warning_option=yes
15917else
15918  xorg_cv_cc_flag_unknown_warning_option=no
15919fi
15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921fi
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15925	CFLAGS="$xorg_testset_save_CFLAGS"
15926fi
15927
15928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931	fi
15932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15936  $as_echo_n "(cached) " >&6
15937else
15938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939/* end confdefs.h.  */
15940int i;
15941_ACEOF
15942if ac_fn_c_try_compile "$LINENO"; then :
15943  xorg_cv_cc_flag_unused_command_line_argument=yes
15944else
15945  xorg_cv_cc_flag_unused_command_line_argument=no
15946fi
15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948fi
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15952	CFLAGS="$xorg_testset_save_CFLAGS"
15953fi
15954
15955found="no"
15956
15957	if test $found = "no" ; then
15958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960		fi
15961
15962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15964		fi
15965
15966		CFLAGS="$CFLAGS -Werror=return-type"
15967
15968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15969$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15970		cacheid=xorg_cv_cc_flag__Werror_return_type
15971		if eval \${$cacheid+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976int i;
15977int
15978main ()
15979{
15980
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_link "$LINENO"; then :
15986  eval $cacheid=yes
15987else
15988  eval $cacheid=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext \
15991    conftest$ac_exeext conftest.$ac_ext
15992fi
15993
15994
15995		CFLAGS="$xorg_testset_save_CFLAGS"
15996
15997		eval supported=\$$cacheid
15998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15999$as_echo "$supported" >&6; }
16000		if test "$supported" = "yes" ; then
16001			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16002			found="yes"
16003		fi
16004	fi
16005
16006	if test $found = "no" ; then
16007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009		fi
16010
16011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16013		fi
16014
16015		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16016
16017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16018$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16019		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16020		if eval \${$cacheid+:} false; then :
16021  $as_echo_n "(cached) " >&6
16022else
16023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025int i;
16026int
16027main ()
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_link "$LINENO"; then :
16035  eval $cacheid=yes
16036else
16037  eval $cacheid=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext \
16040    conftest$ac_exeext conftest.$ac_ext
16041fi
16042
16043
16044		CFLAGS="$xorg_testset_save_CFLAGS"
16045
16046		eval supported=\$$cacheid
16047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16048$as_echo "$supported" >&6; }
16049		if test "$supported" = "yes" ; then
16050			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16051			found="yes"
16052		fi
16053	fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069xorg_testset_save_CFLAGS="$CFLAGS"
16070
16071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16076  $as_echo_n "(cached) " >&6
16077else
16078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h.  */
16080int i;
16081_ACEOF
16082if ac_fn_c_try_compile "$LINENO"; then :
16083  xorg_cv_cc_flag_unknown_warning_option=yes
16084else
16085  xorg_cv_cc_flag_unknown_warning_option=no
16086fi
16087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088fi
16089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16092	CFLAGS="$xorg_testset_save_CFLAGS"
16093fi
16094
16095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16098	fi
16099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16103  $as_echo_n "(cached) " >&6
16104else
16105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h.  */
16107int i;
16108_ACEOF
16109if ac_fn_c_try_compile "$LINENO"; then :
16110  xorg_cv_cc_flag_unused_command_line_argument=yes
16111else
16112  xorg_cv_cc_flag_unused_command_line_argument=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115fi
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16119	CFLAGS="$xorg_testset_save_CFLAGS"
16120fi
16121
16122found="no"
16123
16124	if test $found = "no" ; then
16125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127		fi
16128
16129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131		fi
16132
16133		CFLAGS="$CFLAGS -Werror=trigraphs"
16134
16135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16136$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16137		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16138		if eval \${$cacheid+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h.  */
16143int i;
16144int
16145main ()
16146{
16147
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152if ac_fn_c_try_link "$LINENO"; then :
16153  eval $cacheid=yes
16154else
16155  eval $cacheid=no
16156fi
16157rm -f core conftest.err conftest.$ac_objext \
16158    conftest$ac_exeext conftest.$ac_ext
16159fi
16160
16161
16162		CFLAGS="$xorg_testset_save_CFLAGS"
16163
16164		eval supported=\$$cacheid
16165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16166$as_echo "$supported" >&6; }
16167		if test "$supported" = "yes" ; then
16168			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16169			found="yes"
16170		fi
16171	fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187xorg_testset_save_CFLAGS="$CFLAGS"
16188
16189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16194  $as_echo_n "(cached) " >&6
16195else
16196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197/* end confdefs.h.  */
16198int i;
16199_ACEOF
16200if ac_fn_c_try_compile "$LINENO"; then :
16201  xorg_cv_cc_flag_unknown_warning_option=yes
16202else
16203  xorg_cv_cc_flag_unknown_warning_option=no
16204fi
16205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206fi
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16210	CFLAGS="$xorg_testset_save_CFLAGS"
16211fi
16212
16213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16216	fi
16217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16221  $as_echo_n "(cached) " >&6
16222else
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225int i;
16226_ACEOF
16227if ac_fn_c_try_compile "$LINENO"; then :
16228  xorg_cv_cc_flag_unused_command_line_argument=yes
16229else
16230  xorg_cv_cc_flag_unused_command_line_argument=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16237	CFLAGS="$xorg_testset_save_CFLAGS"
16238fi
16239
16240found="no"
16241
16242	if test $found = "no" ; then
16243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245		fi
16246
16247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16249		fi
16250
16251		CFLAGS="$CFLAGS -Werror=array-bounds"
16252
16253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16254$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16255		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16256		if eval \${$cacheid+:} false; then :
16257  $as_echo_n "(cached) " >&6
16258else
16259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h.  */
16261int i;
16262int
16263main ()
16264{
16265
16266  ;
16267  return 0;
16268}
16269_ACEOF
16270if ac_fn_c_try_link "$LINENO"; then :
16271  eval $cacheid=yes
16272else
16273  eval $cacheid=no
16274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276    conftest$ac_exeext conftest.$ac_ext
16277fi
16278
16279
16280		CFLAGS="$xorg_testset_save_CFLAGS"
16281
16282		eval supported=\$$cacheid
16283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16284$as_echo "$supported" >&6; }
16285		if test "$supported" = "yes" ; then
16286			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16287			found="yes"
16288		fi
16289	fi
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305xorg_testset_save_CFLAGS="$CFLAGS"
16306
16307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16312  $as_echo_n "(cached) " >&6
16313else
16314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h.  */
16316int i;
16317_ACEOF
16318if ac_fn_c_try_compile "$LINENO"; then :
16319  xorg_cv_cc_flag_unknown_warning_option=yes
16320else
16321  xorg_cv_cc_flag_unknown_warning_option=no
16322fi
16323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324fi
16325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16328	CFLAGS="$xorg_testset_save_CFLAGS"
16329fi
16330
16331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16334	fi
16335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16339  $as_echo_n "(cached) " >&6
16340else
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343int i;
16344_ACEOF
16345if ac_fn_c_try_compile "$LINENO"; then :
16346  xorg_cv_cc_flag_unused_command_line_argument=yes
16347else
16348  xorg_cv_cc_flag_unused_command_line_argument=no
16349fi
16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16355	CFLAGS="$xorg_testset_save_CFLAGS"
16356fi
16357
16358found="no"
16359
16360	if test $found = "no" ; then
16361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363		fi
16364
16365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367		fi
16368
16369		CFLAGS="$CFLAGS -Werror=write-strings"
16370
16371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16372$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16373		cacheid=xorg_cv_cc_flag__Werror_write_strings
16374		if eval \${$cacheid+:} false; then :
16375  $as_echo_n "(cached) " >&6
16376else
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379int i;
16380int
16381main ()
16382{
16383
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388if ac_fn_c_try_link "$LINENO"; then :
16389  eval $cacheid=yes
16390else
16391  eval $cacheid=no
16392fi
16393rm -f core conftest.err conftest.$ac_objext \
16394    conftest$ac_exeext conftest.$ac_ext
16395fi
16396
16397
16398		CFLAGS="$xorg_testset_save_CFLAGS"
16399
16400		eval supported=\$$cacheid
16401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16402$as_echo "$supported" >&6; }
16403		if test "$supported" = "yes" ; then
16404			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16405			found="yes"
16406		fi
16407	fi
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423xorg_testset_save_CFLAGS="$CFLAGS"
16424
16425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16430  $as_echo_n "(cached) " >&6
16431else
16432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433/* end confdefs.h.  */
16434int i;
16435_ACEOF
16436if ac_fn_c_try_compile "$LINENO"; then :
16437  xorg_cv_cc_flag_unknown_warning_option=yes
16438else
16439  xorg_cv_cc_flag_unknown_warning_option=no
16440fi
16441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442fi
16443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16446	CFLAGS="$xorg_testset_save_CFLAGS"
16447fi
16448
16449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16452	fi
16453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16457  $as_echo_n "(cached) " >&6
16458else
16459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h.  */
16461int i;
16462_ACEOF
16463if ac_fn_c_try_compile "$LINENO"; then :
16464  xorg_cv_cc_flag_unused_command_line_argument=yes
16465else
16466  xorg_cv_cc_flag_unused_command_line_argument=no
16467fi
16468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16473	CFLAGS="$xorg_testset_save_CFLAGS"
16474fi
16475
16476found="no"
16477
16478	if test $found = "no" ; then
16479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16481		fi
16482
16483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16485		fi
16486
16487		CFLAGS="$CFLAGS -Werror=address"
16488
16489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16490$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16491		cacheid=xorg_cv_cc_flag__Werror_address
16492		if eval \${$cacheid+:} false; then :
16493  $as_echo_n "(cached) " >&6
16494else
16495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h.  */
16497int i;
16498int
16499main ()
16500{
16501
16502  ;
16503  return 0;
16504}
16505_ACEOF
16506if ac_fn_c_try_link "$LINENO"; then :
16507  eval $cacheid=yes
16508else
16509  eval $cacheid=no
16510fi
16511rm -f core conftest.err conftest.$ac_objext \
16512    conftest$ac_exeext conftest.$ac_ext
16513fi
16514
16515
16516		CFLAGS="$xorg_testset_save_CFLAGS"
16517
16518		eval supported=\$$cacheid
16519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16520$as_echo "$supported" >&6; }
16521		if test "$supported" = "yes" ; then
16522			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16523			found="yes"
16524		fi
16525	fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541xorg_testset_save_CFLAGS="$CFLAGS"
16542
16543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16548  $as_echo_n "(cached) " >&6
16549else
16550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h.  */
16552int i;
16553_ACEOF
16554if ac_fn_c_try_compile "$LINENO"; then :
16555  xorg_cv_cc_flag_unknown_warning_option=yes
16556else
16557  xorg_cv_cc_flag_unknown_warning_option=no
16558fi
16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560fi
16561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16564	CFLAGS="$xorg_testset_save_CFLAGS"
16565fi
16566
16567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16570	fi
16571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579int i;
16580_ACEOF
16581if ac_fn_c_try_compile "$LINENO"; then :
16582  xorg_cv_cc_flag_unused_command_line_argument=yes
16583else
16584  xorg_cv_cc_flag_unused_command_line_argument=no
16585fi
16586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587fi
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16591	CFLAGS="$xorg_testset_save_CFLAGS"
16592fi
16593
16594found="no"
16595
16596	if test $found = "no" ; then
16597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599		fi
16600
16601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16603		fi
16604
16605		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16606
16607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16608$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16609		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16610		if eval \${$cacheid+:} false; then :
16611  $as_echo_n "(cached) " >&6
16612else
16613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h.  */
16615int i;
16616int
16617main ()
16618{
16619
16620  ;
16621  return 0;
16622}
16623_ACEOF
16624if ac_fn_c_try_link "$LINENO"; then :
16625  eval $cacheid=yes
16626else
16627  eval $cacheid=no
16628fi
16629rm -f core conftest.err conftest.$ac_objext \
16630    conftest$ac_exeext conftest.$ac_ext
16631fi
16632
16633
16634		CFLAGS="$xorg_testset_save_CFLAGS"
16635
16636		eval supported=\$$cacheid
16637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16638$as_echo "$supported" >&6; }
16639		if test "$supported" = "yes" ; then
16640			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16641			found="yes"
16642		fi
16643	fi
16644
16645	if test $found = "no" ; then
16646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16648		fi
16649
16650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16652		fi
16653
16654		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16655
16656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16657$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16658		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16659		if eval \${$cacheid+:} false; then :
16660  $as_echo_n "(cached) " >&6
16661else
16662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663/* end confdefs.h.  */
16664int i;
16665int
16666main ()
16667{
16668
16669  ;
16670  return 0;
16671}
16672_ACEOF
16673if ac_fn_c_try_link "$LINENO"; then :
16674  eval $cacheid=yes
16675else
16676  eval $cacheid=no
16677fi
16678rm -f core conftest.err conftest.$ac_objext \
16679    conftest$ac_exeext conftest.$ac_ext
16680fi
16681
16682
16683		CFLAGS="$xorg_testset_save_CFLAGS"
16684
16685		eval supported=\$$cacheid
16686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16687$as_echo "$supported" >&6; }
16688		if test "$supported" = "yes" ; then
16689			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16690			found="yes"
16691		fi
16692	fi
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708xorg_testset_save_CFLAGS="$CFLAGS"
16709
16710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16715  $as_echo_n "(cached) " >&6
16716else
16717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718/* end confdefs.h.  */
16719int i;
16720_ACEOF
16721if ac_fn_c_try_compile "$LINENO"; then :
16722  xorg_cv_cc_flag_unknown_warning_option=yes
16723else
16724  xorg_cv_cc_flag_unknown_warning_option=no
16725fi
16726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727fi
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16731	CFLAGS="$xorg_testset_save_CFLAGS"
16732fi
16733
16734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16737	fi
16738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16742  $as_echo_n "(cached) " >&6
16743else
16744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745/* end confdefs.h.  */
16746int i;
16747_ACEOF
16748if ac_fn_c_try_compile "$LINENO"; then :
16749  xorg_cv_cc_flag_unused_command_line_argument=yes
16750else
16751  xorg_cv_cc_flag_unused_command_line_argument=no
16752fi
16753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754fi
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16758	CFLAGS="$xorg_testset_save_CFLAGS"
16759fi
16760
16761found="no"
16762
16763	if test $found = "no" ; then
16764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766		fi
16767
16768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16770		fi
16771
16772		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16773
16774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16775$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16776		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16777		if eval \${$cacheid+:} false; then :
16778  $as_echo_n "(cached) " >&6
16779else
16780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781/* end confdefs.h.  */
16782int i;
16783int
16784main ()
16785{
16786
16787  ;
16788  return 0;
16789}
16790_ACEOF
16791if ac_fn_c_try_link "$LINENO"; then :
16792  eval $cacheid=yes
16793else
16794  eval $cacheid=no
16795fi
16796rm -f core conftest.err conftest.$ac_objext \
16797    conftest$ac_exeext conftest.$ac_ext
16798fi
16799
16800
16801		CFLAGS="$xorg_testset_save_CFLAGS"
16802
16803		eval supported=\$$cacheid
16804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16805$as_echo "$supported" >&6; }
16806		if test "$supported" = "yes" ; then
16807			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16808			found="yes"
16809		fi
16810	fi
16811
16812 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16813else
16814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16815$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829xorg_testset_save_CFLAGS="$CFLAGS"
16830
16831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16836  $as_echo_n "(cached) " >&6
16837else
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841_ACEOF
16842if ac_fn_c_try_compile "$LINENO"; then :
16843  xorg_cv_cc_flag_unknown_warning_option=yes
16844else
16845  xorg_cv_cc_flag_unknown_warning_option=no
16846fi
16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848fi
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16852	CFLAGS="$xorg_testset_save_CFLAGS"
16853fi
16854
16855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858	fi
16859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16863  $as_echo_n "(cached) " >&6
16864else
16865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h.  */
16867int i;
16868_ACEOF
16869if ac_fn_c_try_compile "$LINENO"; then :
16870  xorg_cv_cc_flag_unused_command_line_argument=yes
16871else
16872  xorg_cv_cc_flag_unused_command_line_argument=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875fi
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16879	CFLAGS="$xorg_testset_save_CFLAGS"
16880fi
16881
16882found="no"
16883
16884	if test $found = "no" ; then
16885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887		fi
16888
16889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891		fi
16892
16893		CFLAGS="$CFLAGS -Wimplicit"
16894
16895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16896$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16897		cacheid=xorg_cv_cc_flag__Wimplicit
16898		if eval \${$cacheid+:} false; then :
16899  $as_echo_n "(cached) " >&6
16900else
16901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903int i;
16904int
16905main ()
16906{
16907
16908  ;
16909  return 0;
16910}
16911_ACEOF
16912if ac_fn_c_try_link "$LINENO"; then :
16913  eval $cacheid=yes
16914else
16915  eval $cacheid=no
16916fi
16917rm -f core conftest.err conftest.$ac_objext \
16918    conftest$ac_exeext conftest.$ac_ext
16919fi
16920
16921
16922		CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924		eval supported=\$$cacheid
16925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926$as_echo "$supported" >&6; }
16927		if test "$supported" = "yes" ; then
16928			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16929			found="yes"
16930		fi
16931	fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16954  $as_echo_n "(cached) " >&6
16955else
16956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h.  */
16958int i;
16959_ACEOF
16960if ac_fn_c_try_compile "$LINENO"; then :
16961  xorg_cv_cc_flag_unknown_warning_option=yes
16962else
16963  xorg_cv_cc_flag_unknown_warning_option=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970	CFLAGS="$xorg_testset_save_CFLAGS"
16971fi
16972
16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	fi
16977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16981  $as_echo_n "(cached) " >&6
16982else
16983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986_ACEOF
16987if ac_fn_c_try_compile "$LINENO"; then :
16988  xorg_cv_cc_flag_unused_command_line_argument=yes
16989else
16990  xorg_cv_cc_flag_unused_command_line_argument=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16997	CFLAGS="$xorg_testset_save_CFLAGS"
16998fi
16999
17000found="no"
17001
17002	if test $found = "no" ; then
17003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005		fi
17006
17007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009		fi
17010
17011		CFLAGS="$CFLAGS -Wnonnull"
17012
17013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17014$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
17015		cacheid=xorg_cv_cc_flag__Wnonnull
17016		if eval \${$cacheid+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021int i;
17022int
17023main ()
17024{
17025
17026  ;
17027  return 0;
17028}
17029_ACEOF
17030if ac_fn_c_try_link "$LINENO"; then :
17031  eval $cacheid=yes
17032else
17033  eval $cacheid=no
17034fi
17035rm -f core conftest.err conftest.$ac_objext \
17036    conftest$ac_exeext conftest.$ac_ext
17037fi
17038
17039
17040		CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042		eval supported=\$$cacheid
17043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044$as_echo "$supported" >&6; }
17045		if test "$supported" = "yes" ; then
17046			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17047			found="yes"
17048		fi
17049	fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065xorg_testset_save_CFLAGS="$CFLAGS"
17066
17067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17072  $as_echo_n "(cached) " >&6
17073else
17074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076int i;
17077_ACEOF
17078if ac_fn_c_try_compile "$LINENO"; then :
17079  xorg_cv_cc_flag_unknown_warning_option=yes
17080else
17081  xorg_cv_cc_flag_unknown_warning_option=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084fi
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088	CFLAGS="$xorg_testset_save_CFLAGS"
17089fi
17090
17091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094	fi
17095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17099  $as_echo_n "(cached) " >&6
17100else
17101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102/* end confdefs.h.  */
17103int i;
17104_ACEOF
17105if ac_fn_c_try_compile "$LINENO"; then :
17106  xorg_cv_cc_flag_unused_command_line_argument=yes
17107else
17108  xorg_cv_cc_flag_unused_command_line_argument=no
17109fi
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111fi
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17115	CFLAGS="$xorg_testset_save_CFLAGS"
17116fi
17117
17118found="no"
17119
17120	if test $found = "no" ; then
17121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123		fi
17124
17125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127		fi
17128
17129		CFLAGS="$CFLAGS -Winit-self"
17130
17131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17132$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17133		cacheid=xorg_cv_cc_flag__Winit_self
17134		if eval \${$cacheid+:} false; then :
17135  $as_echo_n "(cached) " >&6
17136else
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139int i;
17140int
17141main ()
17142{
17143
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"; then :
17149  eval $cacheid=yes
17150else
17151  eval $cacheid=no
17152fi
17153rm -f core conftest.err conftest.$ac_objext \
17154    conftest$ac_exeext conftest.$ac_ext
17155fi
17156
17157
17158		CFLAGS="$xorg_testset_save_CFLAGS"
17159
17160		eval supported=\$$cacheid
17161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17162$as_echo "$supported" >&6; }
17163		if test "$supported" = "yes" ; then
17164			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17165			found="yes"
17166		fi
17167	fi
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183xorg_testset_save_CFLAGS="$CFLAGS"
17184
17185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17190  $as_echo_n "(cached) " >&6
17191else
17192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h.  */
17194int i;
17195_ACEOF
17196if ac_fn_c_try_compile "$LINENO"; then :
17197  xorg_cv_cc_flag_unknown_warning_option=yes
17198else
17199  xorg_cv_cc_flag_unknown_warning_option=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202fi
17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206	CFLAGS="$xorg_testset_save_CFLAGS"
17207fi
17208
17209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	fi
17213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220/* end confdefs.h.  */
17221int i;
17222_ACEOF
17223if ac_fn_c_try_compile "$LINENO"; then :
17224  xorg_cv_cc_flag_unused_command_line_argument=yes
17225else
17226  xorg_cv_cc_flag_unused_command_line_argument=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233	CFLAGS="$xorg_testset_save_CFLAGS"
17234fi
17235
17236found="no"
17237
17238	if test $found = "no" ; then
17239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241		fi
17242
17243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245		fi
17246
17247		CFLAGS="$CFLAGS -Wmain"
17248
17249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17250$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17251		cacheid=xorg_cv_cc_flag__Wmain
17252		if eval \${$cacheid+:} false; then :
17253  $as_echo_n "(cached) " >&6
17254else
17255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257int i;
17258int
17259main ()
17260{
17261
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267  eval $cacheid=yes
17268else
17269  eval $cacheid=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273fi
17274
17275
17276		CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278		eval supported=\$$cacheid
17279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280$as_echo "$supported" >&6; }
17281		if test "$supported" = "yes" ; then
17282			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17283			found="yes"
17284		fi
17285	fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17308  $as_echo_n "(cached) " >&6
17309else
17310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312int i;
17313_ACEOF
17314if ac_fn_c_try_compile "$LINENO"; then :
17315  xorg_cv_cc_flag_unknown_warning_option=yes
17316else
17317  xorg_cv_cc_flag_unknown_warning_option=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17324	CFLAGS="$xorg_testset_save_CFLAGS"
17325fi
17326
17327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330	fi
17331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17335  $as_echo_n "(cached) " >&6
17336else
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339int i;
17340_ACEOF
17341if ac_fn_c_try_compile "$LINENO"; then :
17342  xorg_cv_cc_flag_unused_command_line_argument=yes
17343else
17344  xorg_cv_cc_flag_unused_command_line_argument=no
17345fi
17346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347fi
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351	CFLAGS="$xorg_testset_save_CFLAGS"
17352fi
17353
17354found="no"
17355
17356	if test $found = "no" ; then
17357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359		fi
17360
17361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363		fi
17364
17365		CFLAGS="$CFLAGS -Wmissing-braces"
17366
17367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17368$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17369		cacheid=xorg_cv_cc_flag__Wmissing_braces
17370		if eval \${$cacheid+:} false; then :
17371  $as_echo_n "(cached) " >&6
17372else
17373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h.  */
17375int i;
17376int
17377main ()
17378{
17379
17380  ;
17381  return 0;
17382}
17383_ACEOF
17384if ac_fn_c_try_link "$LINENO"; then :
17385  eval $cacheid=yes
17386else
17387  eval $cacheid=no
17388fi
17389rm -f core conftest.err conftest.$ac_objext \
17390    conftest$ac_exeext conftest.$ac_ext
17391fi
17392
17393
17394		CFLAGS="$xorg_testset_save_CFLAGS"
17395
17396		eval supported=\$$cacheid
17397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17398$as_echo "$supported" >&6; }
17399		if test "$supported" = "yes" ; then
17400			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17401			found="yes"
17402		fi
17403	fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419xorg_testset_save_CFLAGS="$CFLAGS"
17420
17421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430int i;
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"; then :
17433  xorg_cv_cc_flag_unknown_warning_option=yes
17434else
17435  xorg_cv_cc_flag_unknown_warning_option=no
17436fi
17437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438fi
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17442	CFLAGS="$xorg_testset_save_CFLAGS"
17443fi
17444
17445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448	fi
17449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17453  $as_echo_n "(cached) " >&6
17454else
17455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456/* end confdefs.h.  */
17457int i;
17458_ACEOF
17459if ac_fn_c_try_compile "$LINENO"; then :
17460  xorg_cv_cc_flag_unused_command_line_argument=yes
17461else
17462  xorg_cv_cc_flag_unused_command_line_argument=no
17463fi
17464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17469	CFLAGS="$xorg_testset_save_CFLAGS"
17470fi
17471
17472found="no"
17473
17474	if test $found = "no" ; then
17475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477		fi
17478
17479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17481		fi
17482
17483		CFLAGS="$CFLAGS -Wsequence-point"
17484
17485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17486$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17487		cacheid=xorg_cv_cc_flag__Wsequence_point
17488		if eval \${$cacheid+:} false; then :
17489  $as_echo_n "(cached) " >&6
17490else
17491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493int i;
17494int
17495main ()
17496{
17497
17498  ;
17499  return 0;
17500}
17501_ACEOF
17502if ac_fn_c_try_link "$LINENO"; then :
17503  eval $cacheid=yes
17504else
17505  eval $cacheid=no
17506fi
17507rm -f core conftest.err conftest.$ac_objext \
17508    conftest$ac_exeext conftest.$ac_ext
17509fi
17510
17511
17512		CFLAGS="$xorg_testset_save_CFLAGS"
17513
17514		eval supported=\$$cacheid
17515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17516$as_echo "$supported" >&6; }
17517		if test "$supported" = "yes" ; then
17518			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17519			found="yes"
17520		fi
17521	fi
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537xorg_testset_save_CFLAGS="$CFLAGS"
17538
17539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17544  $as_echo_n "(cached) " >&6
17545else
17546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547/* end confdefs.h.  */
17548int i;
17549_ACEOF
17550if ac_fn_c_try_compile "$LINENO"; then :
17551  xorg_cv_cc_flag_unknown_warning_option=yes
17552else
17553  xorg_cv_cc_flag_unknown_warning_option=no
17554fi
17555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17560	CFLAGS="$xorg_testset_save_CFLAGS"
17561fi
17562
17563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566	fi
17567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17571  $as_echo_n "(cached) " >&6
17572else
17573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h.  */
17575int i;
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"; then :
17578  xorg_cv_cc_flag_unused_command_line_argument=yes
17579else
17580  xorg_cv_cc_flag_unused_command_line_argument=no
17581fi
17582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583fi
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17587	CFLAGS="$xorg_testset_save_CFLAGS"
17588fi
17589
17590found="no"
17591
17592	if test $found = "no" ; then
17593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595		fi
17596
17597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17599		fi
17600
17601		CFLAGS="$CFLAGS -Wreturn-type"
17602
17603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17604$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17605		cacheid=xorg_cv_cc_flag__Wreturn_type
17606		if eval \${$cacheid+:} false; then :
17607  $as_echo_n "(cached) " >&6
17608else
17609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610/* end confdefs.h.  */
17611int i;
17612int
17613main ()
17614{
17615
17616  ;
17617  return 0;
17618}
17619_ACEOF
17620if ac_fn_c_try_link "$LINENO"; then :
17621  eval $cacheid=yes
17622else
17623  eval $cacheid=no
17624fi
17625rm -f core conftest.err conftest.$ac_objext \
17626    conftest$ac_exeext conftest.$ac_ext
17627fi
17628
17629
17630		CFLAGS="$xorg_testset_save_CFLAGS"
17631
17632		eval supported=\$$cacheid
17633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17634$as_echo "$supported" >&6; }
17635		if test "$supported" = "yes" ; then
17636			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17637			found="yes"
17638		fi
17639	fi
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655xorg_testset_save_CFLAGS="$CFLAGS"
17656
17657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17662  $as_echo_n "(cached) " >&6
17663else
17664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665/* end confdefs.h.  */
17666int i;
17667_ACEOF
17668if ac_fn_c_try_compile "$LINENO"; then :
17669  xorg_cv_cc_flag_unknown_warning_option=yes
17670else
17671  xorg_cv_cc_flag_unknown_warning_option=no
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674fi
17675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17678	CFLAGS="$xorg_testset_save_CFLAGS"
17679fi
17680
17681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684	fi
17685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17689  $as_echo_n "(cached) " >&6
17690else
17691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693int i;
17694_ACEOF
17695if ac_fn_c_try_compile "$LINENO"; then :
17696  xorg_cv_cc_flag_unused_command_line_argument=yes
17697else
17698  xorg_cv_cc_flag_unused_command_line_argument=no
17699fi
17700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701fi
17702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17705	CFLAGS="$xorg_testset_save_CFLAGS"
17706fi
17707
17708found="no"
17709
17710	if test $found = "no" ; then
17711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713		fi
17714
17715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17717		fi
17718
17719		CFLAGS="$CFLAGS -Wtrigraphs"
17720
17721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17722$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17723		cacheid=xorg_cv_cc_flag__Wtrigraphs
17724		if eval \${$cacheid+:} false; then :
17725  $as_echo_n "(cached) " >&6
17726else
17727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h.  */
17729int i;
17730int
17731main ()
17732{
17733
17734  ;
17735  return 0;
17736}
17737_ACEOF
17738if ac_fn_c_try_link "$LINENO"; then :
17739  eval $cacheid=yes
17740else
17741  eval $cacheid=no
17742fi
17743rm -f core conftest.err conftest.$ac_objext \
17744    conftest$ac_exeext conftest.$ac_ext
17745fi
17746
17747
17748		CFLAGS="$xorg_testset_save_CFLAGS"
17749
17750		eval supported=\$$cacheid
17751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17752$as_echo "$supported" >&6; }
17753		if test "$supported" = "yes" ; then
17754			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17755			found="yes"
17756		fi
17757	fi
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773xorg_testset_save_CFLAGS="$CFLAGS"
17774
17775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17780  $as_echo_n "(cached) " >&6
17781else
17782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h.  */
17784int i;
17785_ACEOF
17786if ac_fn_c_try_compile "$LINENO"; then :
17787  xorg_cv_cc_flag_unknown_warning_option=yes
17788else
17789  xorg_cv_cc_flag_unknown_warning_option=no
17790fi
17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17796	CFLAGS="$xorg_testset_save_CFLAGS"
17797fi
17798
17799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802	fi
17803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17807  $as_echo_n "(cached) " >&6
17808else
17809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811int i;
17812_ACEOF
17813if ac_fn_c_try_compile "$LINENO"; then :
17814  xorg_cv_cc_flag_unused_command_line_argument=yes
17815else
17816  xorg_cv_cc_flag_unused_command_line_argument=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819fi
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17823	CFLAGS="$xorg_testset_save_CFLAGS"
17824fi
17825
17826found="no"
17827
17828	if test $found = "no" ; then
17829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831		fi
17832
17833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835		fi
17836
17837		CFLAGS="$CFLAGS -Warray-bounds"
17838
17839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17840$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17841		cacheid=xorg_cv_cc_flag__Warray_bounds
17842		if eval \${$cacheid+:} false; then :
17843  $as_echo_n "(cached) " >&6
17844else
17845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846/* end confdefs.h.  */
17847int i;
17848int
17849main ()
17850{
17851
17852  ;
17853  return 0;
17854}
17855_ACEOF
17856if ac_fn_c_try_link "$LINENO"; then :
17857  eval $cacheid=yes
17858else
17859  eval $cacheid=no
17860fi
17861rm -f core conftest.err conftest.$ac_objext \
17862    conftest$ac_exeext conftest.$ac_ext
17863fi
17864
17865
17866		CFLAGS="$xorg_testset_save_CFLAGS"
17867
17868		eval supported=\$$cacheid
17869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17870$as_echo "$supported" >&6; }
17871		if test "$supported" = "yes" ; then
17872			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17873			found="yes"
17874		fi
17875	fi
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891xorg_testset_save_CFLAGS="$CFLAGS"
17892
17893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17898  $as_echo_n "(cached) " >&6
17899else
17900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901/* end confdefs.h.  */
17902int i;
17903_ACEOF
17904if ac_fn_c_try_compile "$LINENO"; then :
17905  xorg_cv_cc_flag_unknown_warning_option=yes
17906else
17907  xorg_cv_cc_flag_unknown_warning_option=no
17908fi
17909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910fi
17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17914	CFLAGS="$xorg_testset_save_CFLAGS"
17915fi
17916
17917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17920	fi
17921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17925  $as_echo_n "(cached) " >&6
17926else
17927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928/* end confdefs.h.  */
17929int i;
17930_ACEOF
17931if ac_fn_c_try_compile "$LINENO"; then :
17932  xorg_cv_cc_flag_unused_command_line_argument=yes
17933else
17934  xorg_cv_cc_flag_unused_command_line_argument=no
17935fi
17936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937fi
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17941	CFLAGS="$xorg_testset_save_CFLAGS"
17942fi
17943
17944found="no"
17945
17946	if test $found = "no" ; then
17947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949		fi
17950
17951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17953		fi
17954
17955		CFLAGS="$CFLAGS -Wwrite-strings"
17956
17957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17958$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17959		cacheid=xorg_cv_cc_flag__Wwrite_strings
17960		if eval \${$cacheid+:} false; then :
17961  $as_echo_n "(cached) " >&6
17962else
17963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964/* end confdefs.h.  */
17965int i;
17966int
17967main ()
17968{
17969
17970  ;
17971  return 0;
17972}
17973_ACEOF
17974if ac_fn_c_try_link "$LINENO"; then :
17975  eval $cacheid=yes
17976else
17977  eval $cacheid=no
17978fi
17979rm -f core conftest.err conftest.$ac_objext \
17980    conftest$ac_exeext conftest.$ac_ext
17981fi
17982
17983
17984		CFLAGS="$xorg_testset_save_CFLAGS"
17985
17986		eval supported=\$$cacheid
17987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17988$as_echo "$supported" >&6; }
17989		if test "$supported" = "yes" ; then
17990			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17991			found="yes"
17992		fi
17993	fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009xorg_testset_save_CFLAGS="$CFLAGS"
18010
18011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18016  $as_echo_n "(cached) " >&6
18017else
18018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020int i;
18021_ACEOF
18022if ac_fn_c_try_compile "$LINENO"; then :
18023  xorg_cv_cc_flag_unknown_warning_option=yes
18024else
18025  xorg_cv_cc_flag_unknown_warning_option=no
18026fi
18027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028fi
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18032	CFLAGS="$xorg_testset_save_CFLAGS"
18033fi
18034
18035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038	fi
18039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18043  $as_echo_n "(cached) " >&6
18044else
18045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047int i;
18048_ACEOF
18049if ac_fn_c_try_compile "$LINENO"; then :
18050  xorg_cv_cc_flag_unused_command_line_argument=yes
18051else
18052  xorg_cv_cc_flag_unused_command_line_argument=no
18053fi
18054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055fi
18056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18059	CFLAGS="$xorg_testset_save_CFLAGS"
18060fi
18061
18062found="no"
18063
18064	if test $found = "no" ; then
18065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067		fi
18068
18069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18071		fi
18072
18073		CFLAGS="$CFLAGS -Waddress"
18074
18075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18076$as_echo_n "checking if $CC supports -Waddress... " >&6; }
18077		cacheid=xorg_cv_cc_flag__Waddress
18078		if eval \${$cacheid+:} false; then :
18079  $as_echo_n "(cached) " >&6
18080else
18081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082/* end confdefs.h.  */
18083int i;
18084int
18085main ()
18086{
18087
18088  ;
18089  return 0;
18090}
18091_ACEOF
18092if ac_fn_c_try_link "$LINENO"; then :
18093  eval $cacheid=yes
18094else
18095  eval $cacheid=no
18096fi
18097rm -f core conftest.err conftest.$ac_objext \
18098    conftest$ac_exeext conftest.$ac_ext
18099fi
18100
18101
18102		CFLAGS="$xorg_testset_save_CFLAGS"
18103
18104		eval supported=\$$cacheid
18105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18106$as_echo "$supported" >&6; }
18107		if test "$supported" = "yes" ; then
18108			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18109			found="yes"
18110		fi
18111	fi
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127xorg_testset_save_CFLAGS="$CFLAGS"
18128
18129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18134  $as_echo_n "(cached) " >&6
18135else
18136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137/* end confdefs.h.  */
18138int i;
18139_ACEOF
18140if ac_fn_c_try_compile "$LINENO"; then :
18141  xorg_cv_cc_flag_unknown_warning_option=yes
18142else
18143  xorg_cv_cc_flag_unknown_warning_option=no
18144fi
18145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146fi
18147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18150	CFLAGS="$xorg_testset_save_CFLAGS"
18151fi
18152
18153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18156	fi
18157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18161  $as_echo_n "(cached) " >&6
18162else
18163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164/* end confdefs.h.  */
18165int i;
18166_ACEOF
18167if ac_fn_c_try_compile "$LINENO"; then :
18168  xorg_cv_cc_flag_unused_command_line_argument=yes
18169else
18170  xorg_cv_cc_flag_unused_command_line_argument=no
18171fi
18172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173fi
18174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18177	CFLAGS="$xorg_testset_save_CFLAGS"
18178fi
18179
18180found="no"
18181
18182	if test $found = "no" ; then
18183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18185		fi
18186
18187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18189		fi
18190
18191		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18192
18193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18194$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18195		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18196		if eval \${$cacheid+:} false; then :
18197  $as_echo_n "(cached) " >&6
18198else
18199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h.  */
18201int i;
18202int
18203main ()
18204{
18205
18206  ;
18207  return 0;
18208}
18209_ACEOF
18210if ac_fn_c_try_link "$LINENO"; then :
18211  eval $cacheid=yes
18212else
18213  eval $cacheid=no
18214fi
18215rm -f core conftest.err conftest.$ac_objext \
18216    conftest$ac_exeext conftest.$ac_ext
18217fi
18218
18219
18220		CFLAGS="$xorg_testset_save_CFLAGS"
18221
18222		eval supported=\$$cacheid
18223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18224$as_echo "$supported" >&6; }
18225		if test "$supported" = "yes" ; then
18226			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18227			found="yes"
18228		fi
18229	fi
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245xorg_testset_save_CFLAGS="$CFLAGS"
18246
18247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18252  $as_echo_n "(cached) " >&6
18253else
18254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255/* end confdefs.h.  */
18256int i;
18257_ACEOF
18258if ac_fn_c_try_compile "$LINENO"; then :
18259  xorg_cv_cc_flag_unknown_warning_option=yes
18260else
18261  xorg_cv_cc_flag_unknown_warning_option=no
18262fi
18263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264fi
18265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18268	CFLAGS="$xorg_testset_save_CFLAGS"
18269fi
18270
18271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274	fi
18275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18279  $as_echo_n "(cached) " >&6
18280else
18281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282/* end confdefs.h.  */
18283int i;
18284_ACEOF
18285if ac_fn_c_try_compile "$LINENO"; then :
18286  xorg_cv_cc_flag_unused_command_line_argument=yes
18287else
18288  xorg_cv_cc_flag_unused_command_line_argument=no
18289fi
18290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291fi
18292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18295	CFLAGS="$xorg_testset_save_CFLAGS"
18296fi
18297
18298found="no"
18299
18300	if test $found = "no" ; then
18301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18303		fi
18304
18305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18307		fi
18308
18309		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18310
18311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18312$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18313		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18314		if eval \${$cacheid+:} false; then :
18315  $as_echo_n "(cached) " >&6
18316else
18317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318/* end confdefs.h.  */
18319int i;
18320int
18321main ()
18322{
18323
18324  ;
18325  return 0;
18326}
18327_ACEOF
18328if ac_fn_c_try_link "$LINENO"; then :
18329  eval $cacheid=yes
18330else
18331  eval $cacheid=no
18332fi
18333rm -f core conftest.err conftest.$ac_objext \
18334    conftest$ac_exeext conftest.$ac_ext
18335fi
18336
18337
18338		CFLAGS="$xorg_testset_save_CFLAGS"
18339
18340		eval supported=\$$cacheid
18341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18342$as_echo "$supported" >&6; }
18343		if test "$supported" = "yes" ; then
18344			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18345			found="yes"
18346		fi
18347	fi
18348
18349
18350fi
18351
18352
18353
18354
18355
18356
18357
18358		CWARNFLAGS="$BASE_CFLAGS"
18359		if  test "x$GCC" = xyes ; then
18360		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18361		fi
18362
18363
18364
18365
18366
18367
18368
18369
18370# Check whether --enable-strict-compilation was given.
18371if test "${enable_strict_compilation+set}" = set; then :
18372  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18373else
18374  STRICT_COMPILE=no
18375fi
18376
18377
18378
18379
18380
18381
18382STRICT_CFLAGS=""
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396xorg_testset_save_CFLAGS="$CFLAGS"
18397
18398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18403  $as_echo_n "(cached) " >&6
18404else
18405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406/* end confdefs.h.  */
18407int i;
18408_ACEOF
18409if ac_fn_c_try_compile "$LINENO"; then :
18410  xorg_cv_cc_flag_unknown_warning_option=yes
18411else
18412  xorg_cv_cc_flag_unknown_warning_option=no
18413fi
18414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415fi
18416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18419	CFLAGS="$xorg_testset_save_CFLAGS"
18420fi
18421
18422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425	fi
18426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18430  $as_echo_n "(cached) " >&6
18431else
18432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433/* end confdefs.h.  */
18434int i;
18435_ACEOF
18436if ac_fn_c_try_compile "$LINENO"; then :
18437  xorg_cv_cc_flag_unused_command_line_argument=yes
18438else
18439  xorg_cv_cc_flag_unused_command_line_argument=no
18440fi
18441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442fi
18443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18446	CFLAGS="$xorg_testset_save_CFLAGS"
18447fi
18448
18449found="no"
18450
18451	if test $found = "no" ; then
18452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18454		fi
18455
18456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18458		fi
18459
18460		CFLAGS="$CFLAGS -pedantic"
18461
18462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18463$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18464		cacheid=xorg_cv_cc_flag__pedantic
18465		if eval \${$cacheid+:} false; then :
18466  $as_echo_n "(cached) " >&6
18467else
18468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h.  */
18470int i;
18471int
18472main ()
18473{
18474
18475  ;
18476  return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_link "$LINENO"; then :
18480  eval $cacheid=yes
18481else
18482  eval $cacheid=no
18483fi
18484rm -f core conftest.err conftest.$ac_objext \
18485    conftest$ac_exeext conftest.$ac_ext
18486fi
18487
18488
18489		CFLAGS="$xorg_testset_save_CFLAGS"
18490
18491		eval supported=\$$cacheid
18492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18493$as_echo "$supported" >&6; }
18494		if test "$supported" = "yes" ; then
18495			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18496			found="yes"
18497		fi
18498	fi
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514xorg_testset_save_CFLAGS="$CFLAGS"
18515
18516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18521  $as_echo_n "(cached) " >&6
18522else
18523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524/* end confdefs.h.  */
18525int i;
18526_ACEOF
18527if ac_fn_c_try_compile "$LINENO"; then :
18528  xorg_cv_cc_flag_unknown_warning_option=yes
18529else
18530  xorg_cv_cc_flag_unknown_warning_option=no
18531fi
18532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533fi
18534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18537	CFLAGS="$xorg_testset_save_CFLAGS"
18538fi
18539
18540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543	fi
18544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18548  $as_echo_n "(cached) " >&6
18549else
18550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551/* end confdefs.h.  */
18552int i;
18553_ACEOF
18554if ac_fn_c_try_compile "$LINENO"; then :
18555  xorg_cv_cc_flag_unused_command_line_argument=yes
18556else
18557  xorg_cv_cc_flag_unused_command_line_argument=no
18558fi
18559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18564	CFLAGS="$xorg_testset_save_CFLAGS"
18565fi
18566
18567found="no"
18568
18569	if test $found = "no" ; then
18570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18572		fi
18573
18574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18576		fi
18577
18578		CFLAGS="$CFLAGS -Werror"
18579
18580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18581$as_echo_n "checking if $CC supports -Werror... " >&6; }
18582		cacheid=xorg_cv_cc_flag__Werror
18583		if eval \${$cacheid+:} false; then :
18584  $as_echo_n "(cached) " >&6
18585else
18586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h.  */
18588int i;
18589int
18590main ()
18591{
18592
18593  ;
18594  return 0;
18595}
18596_ACEOF
18597if ac_fn_c_try_link "$LINENO"; then :
18598  eval $cacheid=yes
18599else
18600  eval $cacheid=no
18601fi
18602rm -f core conftest.err conftest.$ac_objext \
18603    conftest$ac_exeext conftest.$ac_ext
18604fi
18605
18606
18607		CFLAGS="$xorg_testset_save_CFLAGS"
18608
18609		eval supported=\$$cacheid
18610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18611$as_echo "$supported" >&6; }
18612		if test "$supported" = "yes" ; then
18613			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18614			found="yes"
18615		fi
18616	fi
18617
18618	if test $found = "no" ; then
18619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18621		fi
18622
18623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18625		fi
18626
18627		CFLAGS="$CFLAGS -errwarn"
18628
18629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18630$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18631		cacheid=xorg_cv_cc_flag__errwarn
18632		if eval \${$cacheid+:} false; then :
18633  $as_echo_n "(cached) " >&6
18634else
18635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636/* end confdefs.h.  */
18637int i;
18638int
18639main ()
18640{
18641
18642  ;
18643  return 0;
18644}
18645_ACEOF
18646if ac_fn_c_try_link "$LINENO"; then :
18647  eval $cacheid=yes
18648else
18649  eval $cacheid=no
18650fi
18651rm -f core conftest.err conftest.$ac_objext \
18652    conftest$ac_exeext conftest.$ac_ext
18653fi
18654
18655
18656		CFLAGS="$xorg_testset_save_CFLAGS"
18657
18658		eval supported=\$$cacheid
18659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18660$as_echo "$supported" >&6; }
18661		if test "$supported" = "yes" ; then
18662			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18663			found="yes"
18664		fi
18665	fi
18666
18667
18668
18669# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18670# activate it with -Werror, so we add it here explicitly.
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684xorg_testset_save_CFLAGS="$CFLAGS"
18685
18686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18691  $as_echo_n "(cached) " >&6
18692else
18693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694/* end confdefs.h.  */
18695int i;
18696_ACEOF
18697if ac_fn_c_try_compile "$LINENO"; then :
18698  xorg_cv_cc_flag_unknown_warning_option=yes
18699else
18700  xorg_cv_cc_flag_unknown_warning_option=no
18701fi
18702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703fi
18704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18707	CFLAGS="$xorg_testset_save_CFLAGS"
18708fi
18709
18710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18713	fi
18714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18718  $as_echo_n "(cached) " >&6
18719else
18720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721/* end confdefs.h.  */
18722int i;
18723_ACEOF
18724if ac_fn_c_try_compile "$LINENO"; then :
18725  xorg_cv_cc_flag_unused_command_line_argument=yes
18726else
18727  xorg_cv_cc_flag_unused_command_line_argument=no
18728fi
18729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18730fi
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18734	CFLAGS="$xorg_testset_save_CFLAGS"
18735fi
18736
18737found="no"
18738
18739	if test $found = "no" ; then
18740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18742		fi
18743
18744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18746		fi
18747
18748		CFLAGS="$CFLAGS -Werror=attributes"
18749
18750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18751$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18752		cacheid=xorg_cv_cc_flag__Werror_attributes
18753		if eval \${$cacheid+:} false; then :
18754  $as_echo_n "(cached) " >&6
18755else
18756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757/* end confdefs.h.  */
18758int i;
18759int
18760main ()
18761{
18762
18763  ;
18764  return 0;
18765}
18766_ACEOF
18767if ac_fn_c_try_link "$LINENO"; then :
18768  eval $cacheid=yes
18769else
18770  eval $cacheid=no
18771fi
18772rm -f core conftest.err conftest.$ac_objext \
18773    conftest$ac_exeext conftest.$ac_ext
18774fi
18775
18776
18777		CFLAGS="$xorg_testset_save_CFLAGS"
18778
18779		eval supported=\$$cacheid
18780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18781$as_echo "$supported" >&6; }
18782		if test "$supported" = "yes" ; then
18783			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18784			found="yes"
18785		fi
18786	fi
18787
18788
18789
18790if test "x$STRICT_COMPILE" = "xyes"; then
18791    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18792    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18793fi
18794
18795
18796
18797
18798
18799
18800cat >>confdefs.h <<_ACEOF
18801#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18802_ACEOF
18803
18804	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18805	if test "x$PVM" = "x"; then
18806		PVM="0"
18807	fi
18808
18809cat >>confdefs.h <<_ACEOF
18810#define PACKAGE_VERSION_MINOR $PVM
18811_ACEOF
18812
18813	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18814	if test "x$PVP" = "x"; then
18815		PVP="0"
18816	fi
18817
18818cat >>confdefs.h <<_ACEOF
18819#define PACKAGE_VERSION_PATCHLEVEL $PVP
18820_ACEOF
18821
18822
18823
18824CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18825mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18826|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18827touch \$(top_srcdir)/ChangeLog; \
18828echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18829
18830
18831
18832
18833macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18834INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18835mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18836|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18837touch \$(top_srcdir)/INSTALL; \
18838echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18839
18840
18841
18842
18843
18844
18845case $host_os in
18846    solaris*)
18847        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18848        # check for a man page file found in later versions that use
18849        # traditional section numbers instead
18850        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18851$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18852if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18853  $as_echo_n "(cached) " >&6
18854else
18855  test "$cross_compiling" = yes &&
18856  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18857if test -r "/usr/share/man/man7/attributes.7"; then
18858  ac_cv_file__usr_share_man_man7_attributes_7=yes
18859else
18860  ac_cv_file__usr_share_man_man7_attributes_7=no
18861fi
18862fi
18863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18864$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18865if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18866  SYSV_MAN_SECTIONS=false
18867else
18868  SYSV_MAN_SECTIONS=true
18869fi
18870
18871        ;;
18872    *) SYSV_MAN_SECTIONS=false ;;
18873esac
18874
18875if test x$APP_MAN_SUFFIX = x    ; then
18876    APP_MAN_SUFFIX=1
18877fi
18878if test x$APP_MAN_DIR = x    ; then
18879    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18880fi
18881
18882if test x$LIB_MAN_SUFFIX = x    ; then
18883    LIB_MAN_SUFFIX=3
18884fi
18885if test x$LIB_MAN_DIR = x    ; then
18886    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18887fi
18888
18889if test x$FILE_MAN_SUFFIX = x    ; then
18890    case $SYSV_MAN_SECTIONS in
18891	true)				FILE_MAN_SUFFIX=4  ;;
18892	*)				FILE_MAN_SUFFIX=5  ;;
18893    esac
18894fi
18895if test x$FILE_MAN_DIR = x    ; then
18896    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18897fi
18898
18899if test x$MISC_MAN_SUFFIX = x    ; then
18900    case $SYSV_MAN_SECTIONS in
18901	true)				MISC_MAN_SUFFIX=5  ;;
18902	*)				MISC_MAN_SUFFIX=7  ;;
18903    esac
18904fi
18905if test x$MISC_MAN_DIR = x    ; then
18906    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18907fi
18908
18909if test x$DRIVER_MAN_SUFFIX = x    ; then
18910    case $SYSV_MAN_SECTIONS in
18911	true)				DRIVER_MAN_SUFFIX=7  ;;
18912	*)				DRIVER_MAN_SUFFIX=4  ;;
18913    esac
18914fi
18915if test x$DRIVER_MAN_DIR = x    ; then
18916    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18917fi
18918
18919if test x$ADMIN_MAN_SUFFIX = x    ; then
18920    case $SYSV_MAN_SECTIONS in
18921	true)				ADMIN_MAN_SUFFIX=1m ;;
18922	*)				ADMIN_MAN_SUFFIX=8  ;;
18923    esac
18924fi
18925if test x$ADMIN_MAN_DIR = x    ; then
18926    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18927fi
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943XORG_MAN_PAGE="X Version 11"
18944
18945MAN_SUBSTS="\
18946	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18947	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18948	-e 's|__xservername__|Xorg|g' \
18949	-e 's|__xconfigfile__|xorg.conf|g' \
18950	-e 's|__projectroot__|\$(prefix)|g' \
18951	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18952	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18953	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18954	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18955	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18956	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18957	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18958
18959
18960
18961# Check whether --enable-silent-rules was given.
18962if test "${enable_silent_rules+set}" = set; then :
18963  enableval=$enable_silent_rules;
18964fi
18965
18966case $enable_silent_rules in # (((
18967  yes) AM_DEFAULT_VERBOSITY=0;;
18968   no) AM_DEFAULT_VERBOSITY=1;;
18969    *) AM_DEFAULT_VERBOSITY=0;;
18970esac
18971am_make=${MAKE-make}
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18973$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18974if ${am_cv_make_support_nested_variables+:} false; then :
18975  $as_echo_n "(cached) " >&6
18976else
18977  if $as_echo 'TRUE=$(BAR$(V))
18978BAR0=false
18979BAR1=true
18980V=1
18981am__doit:
18982	@$(TRUE)
18983.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18984  am_cv_make_support_nested_variables=yes
18985else
18986  am_cv_make_support_nested_variables=no
18987fi
18988fi
18989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18990$as_echo "$am_cv_make_support_nested_variables" >&6; }
18991if test $am_cv_make_support_nested_variables = yes; then
18992    AM_V='$(V)'
18993  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18994else
18995  AM_V=$AM_DEFAULT_VERBOSITY
18996  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18997fi
18998AM_BACKSLASH='\'
18999
19000
19001
19002
19003# Check whether --enable-specs was given.
19004if test "${enable_specs+set}" = set; then :
19005  enableval=$enable_specs; build_specs=$enableval
19006else
19007  build_specs=yes
19008fi
19009
19010
19011 if test x$build_specs = xyes; then
19012  ENABLE_SPECS_TRUE=
19013  ENABLE_SPECS_FALSE='#'
19014else
19015  ENABLE_SPECS_TRUE='#'
19016  ENABLE_SPECS_FALSE=
19017fi
19018
19019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19020$as_echo_n "checking whether to build functional specifications... " >&6; }
19021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19022$as_echo "$build_specs" >&6; }
19023
19024
19025
19026
19027
19028# Check whether --with-xmlto was given.
19029if test "${with_xmlto+set}" = set; then :
19030  withval=$with_xmlto; use_xmlto=$withval
19031else
19032  use_xmlto=auto
19033fi
19034
19035
19036
19037if test "x$use_xmlto" = x"auto"; then
19038   # Extract the first word of "xmlto", so it can be a program name with args.
19039set dummy xmlto; ac_word=$2
19040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19041$as_echo_n "checking for $ac_word... " >&6; }
19042if ${ac_cv_path_XMLTO+:} false; then :
19043  $as_echo_n "(cached) " >&6
19044else
19045  case $XMLTO in
19046  [\\/]* | ?:[\\/]*)
19047  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19048  ;;
19049  *)
19050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19051for as_dir in $PATH
19052do
19053  IFS=$as_save_IFS
19054  test -z "$as_dir" && as_dir=.
19055    for ac_exec_ext in '' $ac_executable_extensions; do
19056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19057    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19059    break 2
19060  fi
19061done
19062  done
19063IFS=$as_save_IFS
19064
19065  ;;
19066esac
19067fi
19068XMLTO=$ac_cv_path_XMLTO
19069if test -n "$XMLTO"; then
19070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19071$as_echo "$XMLTO" >&6; }
19072else
19073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19074$as_echo "no" >&6; }
19075fi
19076
19077
19078   if test "x$XMLTO" = "x"; then
19079        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19080$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19081	have_xmlto=no
19082   else
19083        have_xmlto=yes
19084   fi
19085elif test "x$use_xmlto" = x"yes" ; then
19086   # Extract the first word of "xmlto", so it can be a program name with args.
19087set dummy xmlto; ac_word=$2
19088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19089$as_echo_n "checking for $ac_word... " >&6; }
19090if ${ac_cv_path_XMLTO+:} false; then :
19091  $as_echo_n "(cached) " >&6
19092else
19093  case $XMLTO in
19094  [\\/]* | ?:[\\/]*)
19095  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19096  ;;
19097  *)
19098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099for as_dir in $PATH
19100do
19101  IFS=$as_save_IFS
19102  test -z "$as_dir" && as_dir=.
19103    for ac_exec_ext in '' $ac_executable_extensions; do
19104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19107    break 2
19108  fi
19109done
19110  done
19111IFS=$as_save_IFS
19112
19113  ;;
19114esac
19115fi
19116XMLTO=$ac_cv_path_XMLTO
19117if test -n "$XMLTO"; then
19118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19119$as_echo "$XMLTO" >&6; }
19120else
19121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122$as_echo "no" >&6; }
19123fi
19124
19125
19126   if test "x$XMLTO" = "x"; then
19127        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19128   fi
19129   have_xmlto=yes
19130elif test "x$use_xmlto" = x"no" ; then
19131   if test "x$XMLTO" != "x"; then
19132      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19133$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19134   fi
19135   have_xmlto=no
19136else
19137   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19138fi
19139
19140# Test for a minimum version of xmlto, if provided.
19141if test "$have_xmlto" = yes; then
19142    # scrape the xmlto version
19143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19144$as_echo_n "checking the xmlto version... " >&6; }
19145    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19147$as_echo "$xmlto_version" >&6; }
19148    as_arg_v1=$xmlto_version
19149as_arg_v2=0.0.22
19150awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19151case $? in #(
19152  1) :
19153    if test "x$use_xmlto" = xauto; then
19154            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19155$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19156            have_xmlto=no
19157        else
19158            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19159        fi ;; #(
19160  0) :
19161     ;; #(
19162  2) :
19163     ;; #(
19164  *) :
19165     ;;
19166esac
19167fi
19168
19169# Test for the ability of xmlto to generate a text target
19170#
19171# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19172# following test for empty XML docbook files.
19173# For compatibility reasons use the following empty XML docbook file and if
19174# it fails try it again with a non-empty XML file.
19175have_xmlto_text=no
19176cat > conftest.xml << "EOF"
19177EOF
19178if test "$have_xmlto" = yes; then :
19179  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19180  have_xmlto_text=yes
19181else
19182  # Try it again with a non-empty XML file.
19183              cat > conftest.xml << "EOF"
19184<x></x>
19185EOF
19186              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19187  have_xmlto_text=yes
19188else
19189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19190$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19191fi
19192fi
19193fi
19194rm -f conftest.xml
19195 if test $have_xmlto_text = yes; then
19196  HAVE_XMLTO_TEXT_TRUE=
19197  HAVE_XMLTO_TEXT_FALSE='#'
19198else
19199  HAVE_XMLTO_TEXT_TRUE='#'
19200  HAVE_XMLTO_TEXT_FALSE=
19201fi
19202
19203 if test "$have_xmlto" = yes; then
19204  HAVE_XMLTO_TRUE=
19205  HAVE_XMLTO_FALSE='#'
19206else
19207  HAVE_XMLTO_TRUE='#'
19208  HAVE_XMLTO_FALSE=
19209fi
19210
19211
19212
19213
19214
19215
19216# Check whether --with-fop was given.
19217if test "${with_fop+set}" = set; then :
19218  withval=$with_fop; use_fop=$withval
19219else
19220  use_fop=no
19221fi
19222
19223
19224
19225if test "x$use_fop" = x"auto"; then
19226   # Extract the first word of "fop", so it can be a program name with args.
19227set dummy fop; ac_word=$2
19228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19229$as_echo_n "checking for $ac_word... " >&6; }
19230if ${ac_cv_path_FOP+:} false; then :
19231  $as_echo_n "(cached) " >&6
19232else
19233  case $FOP in
19234  [\\/]* | ?:[\\/]*)
19235  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19236  ;;
19237  *)
19238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19239for as_dir in $PATH
19240do
19241  IFS=$as_save_IFS
19242  test -z "$as_dir" && as_dir=.
19243    for ac_exec_ext in '' $ac_executable_extensions; do
19244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19245    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19247    break 2
19248  fi
19249done
19250  done
19251IFS=$as_save_IFS
19252
19253  ;;
19254esac
19255fi
19256FOP=$ac_cv_path_FOP
19257if test -n "$FOP"; then
19258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19259$as_echo "$FOP" >&6; }
19260else
19261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19262$as_echo "no" >&6; }
19263fi
19264
19265
19266   if test "x$FOP" = "x"; then
19267        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19268$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19269	have_fop=no
19270   else
19271        have_fop=yes
19272   fi
19273elif test "x$use_fop" = x"yes" ; then
19274   # Extract the first word of "fop", so it can be a program name with args.
19275set dummy fop; ac_word=$2
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19277$as_echo_n "checking for $ac_word... " >&6; }
19278if ${ac_cv_path_FOP+:} false; then :
19279  $as_echo_n "(cached) " >&6
19280else
19281  case $FOP in
19282  [\\/]* | ?:[\\/]*)
19283  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19284  ;;
19285  *)
19286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287for as_dir in $PATH
19288do
19289  IFS=$as_save_IFS
19290  test -z "$as_dir" && as_dir=.
19291    for ac_exec_ext in '' $ac_executable_extensions; do
19292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19293    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19295    break 2
19296  fi
19297done
19298  done
19299IFS=$as_save_IFS
19300
19301  ;;
19302esac
19303fi
19304FOP=$ac_cv_path_FOP
19305if test -n "$FOP"; then
19306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19307$as_echo "$FOP" >&6; }
19308else
19309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310$as_echo "no" >&6; }
19311fi
19312
19313
19314   if test "x$FOP" = "x"; then
19315        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19316   fi
19317   have_fop=yes
19318elif test "x$use_fop" = x"no" ; then
19319   if test "x$FOP" != "x"; then
19320      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19321$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19322   fi
19323   have_fop=no
19324else
19325   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19326fi
19327
19328# Test for a minimum version of fop, if provided.
19329
19330 if test "$have_fop" = yes; then
19331  HAVE_FOP_TRUE=
19332  HAVE_FOP_FALSE='#'
19333else
19334  HAVE_FOP_TRUE='#'
19335  HAVE_FOP_FALSE=
19336fi
19337
19338
19339
19340
19341# Preserves the interface, should it be implemented later
19342
19343
19344
19345# Check whether --with-xsltproc was given.
19346if test "${with_xsltproc+set}" = set; then :
19347  withval=$with_xsltproc; use_xsltproc=$withval
19348else
19349  use_xsltproc=auto
19350fi
19351
19352
19353
19354if test "x$use_xsltproc" = x"auto"; then
19355   # Extract the first word of "xsltproc", so it can be a program name with args.
19356set dummy xsltproc; ac_word=$2
19357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19358$as_echo_n "checking for $ac_word... " >&6; }
19359if ${ac_cv_path_XSLTPROC+:} false; then :
19360  $as_echo_n "(cached) " >&6
19361else
19362  case $XSLTPROC in
19363  [\\/]* | ?:[\\/]*)
19364  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19365  ;;
19366  *)
19367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19368for as_dir in $PATH
19369do
19370  IFS=$as_save_IFS
19371  test -z "$as_dir" && as_dir=.
19372    for ac_exec_ext in '' $ac_executable_extensions; do
19373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19374    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19376    break 2
19377  fi
19378done
19379  done
19380IFS=$as_save_IFS
19381
19382  ;;
19383esac
19384fi
19385XSLTPROC=$ac_cv_path_XSLTPROC
19386if test -n "$XSLTPROC"; then
19387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19388$as_echo "$XSLTPROC" >&6; }
19389else
19390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391$as_echo "no" >&6; }
19392fi
19393
19394
19395   if test "x$XSLTPROC" = "x"; then
19396        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19397$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19398	have_xsltproc=no
19399   else
19400        have_xsltproc=yes
19401   fi
19402elif test "x$use_xsltproc" = x"yes" ; then
19403   # Extract the first word of "xsltproc", so it can be a program name with args.
19404set dummy xsltproc; ac_word=$2
19405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19406$as_echo_n "checking for $ac_word... " >&6; }
19407if ${ac_cv_path_XSLTPROC+:} false; then :
19408  $as_echo_n "(cached) " >&6
19409else
19410  case $XSLTPROC in
19411  [\\/]* | ?:[\\/]*)
19412  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19413  ;;
19414  *)
19415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19416for as_dir in $PATH
19417do
19418  IFS=$as_save_IFS
19419  test -z "$as_dir" && as_dir=.
19420    for ac_exec_ext in '' $ac_executable_extensions; do
19421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19422    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19424    break 2
19425  fi
19426done
19427  done
19428IFS=$as_save_IFS
19429
19430  ;;
19431esac
19432fi
19433XSLTPROC=$ac_cv_path_XSLTPROC
19434if test -n "$XSLTPROC"; then
19435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19436$as_echo "$XSLTPROC" >&6; }
19437else
19438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439$as_echo "no" >&6; }
19440fi
19441
19442
19443   if test "x$XSLTPROC" = "x"; then
19444        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19445   fi
19446   have_xsltproc=yes
19447elif test "x$use_xsltproc" = x"no" ; then
19448   if test "x$XSLTPROC" != "x"; then
19449      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19450$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19451   fi
19452   have_xsltproc=no
19453else
19454   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19455fi
19456
19457 if test "$have_xsltproc" = yes; then
19458  HAVE_XSLTPROC_TRUE=
19459  HAVE_XSLTPROC_FALSE='#'
19460else
19461  HAVE_XSLTPROC_TRUE='#'
19462  HAVE_XSLTPROC_FALSE=
19463fi
19464
19465
19466
19467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
19468$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; }
19469XORG_SGML_PATH=
19470if test -n "$PKG_CONFIG" && \
19471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
19472  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
19473  ac_status=$?
19474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475  test $ac_status = 0; }; then
19476  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19477else
19478  :
19479
19480fi
19481
19482# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19483# the path and the name of the doc stylesheet
19484if test "x$XORG_SGML_PATH" != "x" ; then
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19486$as_echo "$XORG_SGML_PATH" >&6; }
19487   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19488   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19489else
19490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491$as_echo "no" >&6; }
19492fi
19493
19494
19495
19496
19497 if test "x$XSL_STYLESHEET" != "x"; then
19498  HAVE_STYLESHEETS_TRUE=
19499  HAVE_STYLESHEETS_FALSE='#'
19500else
19501  HAVE_STYLESHEETS_TRUE='#'
19502  HAVE_STYLESHEETS_FALSE=
19503fi
19504
19505
19506
19507
19508if test -n "$ac_tool_prefix"; then
19509  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
19510set dummy ${ac_tool_prefix}cpp; ac_word=$2
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19512$as_echo_n "checking for $ac_word... " >&6; }
19513if ${ac_cv_path_RAWCPP+:} false; then :
19514  $as_echo_n "(cached) " >&6
19515else
19516  case $RAWCPP in
19517  [\\/]* | ?:[\\/]*)
19518  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19519  ;;
19520  *)
19521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19522as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19523for as_dir in $as_dummy
19524do
19525  IFS=$as_save_IFS
19526  test -z "$as_dir" && as_dir=.
19527    for ac_exec_ext in '' $ac_executable_extensions; do
19528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19529    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19531    break 2
19532  fi
19533done
19534  done
19535IFS=$as_save_IFS
19536
19537  ;;
19538esac
19539fi
19540RAWCPP=$ac_cv_path_RAWCPP
19541if test -n "$RAWCPP"; then
19542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19543$as_echo "$RAWCPP" >&6; }
19544else
19545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19546$as_echo "no" >&6; }
19547fi
19548
19549
19550fi
19551if test -z "$ac_cv_path_RAWCPP"; then
19552  ac_pt_RAWCPP=$RAWCPP
19553  # Extract the first word of "cpp", so it can be a program name with args.
19554set dummy cpp; ac_word=$2
19555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19556$as_echo_n "checking for $ac_word... " >&6; }
19557if ${ac_cv_path_ac_pt_RAWCPP+:} false; then :
19558  $as_echo_n "(cached) " >&6
19559else
19560  case $ac_pt_RAWCPP in
19561  [\\/]* | ?:[\\/]*)
19562  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
19563  ;;
19564  *)
19565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19566as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19567for as_dir in $as_dummy
19568do
19569  IFS=$as_save_IFS
19570  test -z "$as_dir" && as_dir=.
19571    for ac_exec_ext in '' $ac_executable_extensions; do
19572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19573    ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19575    break 2
19576  fi
19577done
19578  done
19579IFS=$as_save_IFS
19580
19581  ;;
19582esac
19583fi
19584ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
19585if test -n "$ac_pt_RAWCPP"; then
19586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
19587$as_echo "$ac_pt_RAWCPP" >&6; }
19588else
19589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19590$as_echo "no" >&6; }
19591fi
19592
19593  if test "x$ac_pt_RAWCPP" = x; then
19594    RAWCPP="${CPP}"
19595  else
19596    case $cross_compiling:$ac_tool_warned in
19597yes:)
19598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19600ac_tool_warned=yes ;;
19601esac
19602    RAWCPP=$ac_pt_RAWCPP
19603  fi
19604else
19605  RAWCPP="$ac_cv_path_RAWCPP"
19606fi
19607
19608
19609# Check for flag to avoid builtin definitions - assumes unix is predefined,
19610# which is not the best choice for supporting other OS'es, but covers most
19611# of the ones we need for now.
19612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
19613$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
19614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615/* end confdefs.h.  */
19616Does cpp redefine unix ?
19617_ACEOF
19618if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19619	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19620$as_echo "no" >&6; }
19621else
19622	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19623		RAWCPPFLAGS=-undef
19624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625$as_echo "yes" >&6; }
19626	# under Cygwin unix is still defined even with -undef
19627	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19628		RAWCPPFLAGS="-undef -ansi"
19629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
19630$as_echo "yes, with -ansi" >&6; }
19631	else
19632		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
19633	fi
19634fi
19635rm -f conftest.$ac_ext
19636
19637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
19638$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
19639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640/* end confdefs.h.  */
19641Does cpp preserve   "whitespace"?
19642_ACEOF
19643if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19644	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645$as_echo "no" >&6; }
19646else
19647	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19648		TRADITIONALCPPFLAGS="-traditional"
19649		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
19650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19651$as_echo "yes" >&6; }
19652	else
19653		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
19654	fi
19655fi
19656rm -f conftest.$ac_ext
19657
19658
19659
19660
19661
19662# Preserves the interface, should it be implemented later
19663
19664
19665
19666# Check whether --with-perl was given.
19667if test "${with_perl+set}" = set; then :
19668  withval=$with_perl; use_perl=$withval
19669else
19670  use_perl=auto
19671fi
19672
19673
19674
19675if test "x$use_perl" = x"auto"; then
19676   # Extract the first word of "perl", so it can be a program name with args.
19677set dummy perl; ac_word=$2
19678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19679$as_echo_n "checking for $ac_word... " >&6; }
19680if ${ac_cv_path_PERL+:} false; then :
19681  $as_echo_n "(cached) " >&6
19682else
19683  case $PERL in
19684  [\\/]* | ?:[\\/]*)
19685  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19686  ;;
19687  *)
19688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19689for as_dir in $PATH
19690do
19691  IFS=$as_save_IFS
19692  test -z "$as_dir" && as_dir=.
19693    for ac_exec_ext in '' $ac_executable_extensions; do
19694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19695    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19697    break 2
19698  fi
19699done
19700  done
19701IFS=$as_save_IFS
19702
19703  ;;
19704esac
19705fi
19706PERL=$ac_cv_path_PERL
19707if test -n "$PERL"; then
19708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19709$as_echo "$PERL" >&6; }
19710else
19711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19712$as_echo "no" >&6; }
19713fi
19714
19715
19716   if test "x$PERL" = "x"; then
19717        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
19718$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
19719	have_perl=no
19720   else
19721        have_perl=yes
19722   fi
19723elif test "x$use_perl" = x"yes" ; then
19724   # Extract the first word of "perl", so it can be a program name with args.
19725set dummy perl; ac_word=$2
19726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19727$as_echo_n "checking for $ac_word... " >&6; }
19728if ${ac_cv_path_PERL+:} false; then :
19729  $as_echo_n "(cached) " >&6
19730else
19731  case $PERL in
19732  [\\/]* | ?:[\\/]*)
19733  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19734  ;;
19735  *)
19736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737for as_dir in $PATH
19738do
19739  IFS=$as_save_IFS
19740  test -z "$as_dir" && as_dir=.
19741    for ac_exec_ext in '' $ac_executable_extensions; do
19742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19743    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19745    break 2
19746  fi
19747done
19748  done
19749IFS=$as_save_IFS
19750
19751  ;;
19752esac
19753fi
19754PERL=$ac_cv_path_PERL
19755if test -n "$PERL"; then
19756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19757$as_echo "$PERL" >&6; }
19758else
19759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760$as_echo "no" >&6; }
19761fi
19762
19763
19764   if test "x$PERL" = "x"; then
19765        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
19766   fi
19767   have_perl=yes
19768elif test "x$use_perl" = x"no" ; then
19769   if test "x$PERL" != "x"; then
19770      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
19771$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
19772   fi
19773   have_perl=no
19774else
19775   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
19776fi
19777
19778 if test "$have_perl" = yes; then
19779  HAVE_PERL_TRUE=
19780  HAVE_PERL_FALSE='#'
19781else
19782  HAVE_PERL_TRUE='#'
19783  HAVE_PERL_FALSE=
19784fi
19785
19786
19787
19788# Required when PKG_CHECK_MODULES called within an if statement
19789
19790
19791
19792
19793
19794
19795
19796if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19797	if test -n "$ac_tool_prefix"; then
19798  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19799set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19801$as_echo_n "checking for $ac_word... " >&6; }
19802if ${ac_cv_path_PKG_CONFIG+:} false; then :
19803  $as_echo_n "(cached) " >&6
19804else
19805  case $PKG_CONFIG in
19806  [\\/]* | ?:[\\/]*)
19807  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19808  ;;
19809  *)
19810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811for as_dir in $PATH
19812do
19813  IFS=$as_save_IFS
19814  test -z "$as_dir" && as_dir=.
19815    for ac_exec_ext in '' $ac_executable_extensions; do
19816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19817    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19819    break 2
19820  fi
19821done
19822  done
19823IFS=$as_save_IFS
19824
19825  ;;
19826esac
19827fi
19828PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19829if test -n "$PKG_CONFIG"; then
19830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19831$as_echo "$PKG_CONFIG" >&6; }
19832else
19833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19834$as_echo "no" >&6; }
19835fi
19836
19837
19838fi
19839if test -z "$ac_cv_path_PKG_CONFIG"; then
19840  ac_pt_PKG_CONFIG=$PKG_CONFIG
19841  # Extract the first word of "pkg-config", so it can be a program name with args.
19842set dummy pkg-config; ac_word=$2
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19844$as_echo_n "checking for $ac_word... " >&6; }
19845if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19846  $as_echo_n "(cached) " >&6
19847else
19848  case $ac_pt_PKG_CONFIG in
19849  [\\/]* | ?:[\\/]*)
19850  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19851  ;;
19852  *)
19853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854for as_dir in $PATH
19855do
19856  IFS=$as_save_IFS
19857  test -z "$as_dir" && as_dir=.
19858    for ac_exec_ext in '' $ac_executable_extensions; do
19859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19860    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19862    break 2
19863  fi
19864done
19865  done
19866IFS=$as_save_IFS
19867
19868  ;;
19869esac
19870fi
19871ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19872if test -n "$ac_pt_PKG_CONFIG"; then
19873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19874$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19875else
19876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19877$as_echo "no" >&6; }
19878fi
19879
19880  if test "x$ac_pt_PKG_CONFIG" = x; then
19881    PKG_CONFIG=""
19882  else
19883    case $cross_compiling:$ac_tool_warned in
19884yes:)
19885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19887ac_tool_warned=yes ;;
19888esac
19889    PKG_CONFIG=$ac_pt_PKG_CONFIG
19890  fi
19891else
19892  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19893fi
19894
19895fi
19896if test -n "$PKG_CONFIG"; then
19897	_pkg_min_version=0.9.0
19898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19899$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19900	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19902$as_echo "yes" >&6; }
19903	else
19904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905$as_echo "no" >&6; }
19906		PKG_CONFIG=""
19907	fi
19908fi
19909
19910if test x"$CC_FOR_BUILD" = x; then
19911	if test x"$cross_compiling" = xyes; then
19912	       for ac_prog in gcc cc
19913do
19914  # Extract the first word of "$ac_prog", so it can be a program name with args.
19915set dummy $ac_prog; ac_word=$2
19916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19917$as_echo_n "checking for $ac_word... " >&6; }
19918if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
19919  $as_echo_n "(cached) " >&6
19920else
19921  if test -n "$CC_FOR_BUILD"; then
19922  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19923else
19924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925for as_dir in $PATH
19926do
19927  IFS=$as_save_IFS
19928  test -z "$as_dir" && as_dir=.
19929    for ac_exec_ext in '' $ac_executable_extensions; do
19930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19931    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
19932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19933    break 2
19934  fi
19935done
19936  done
19937IFS=$as_save_IFS
19938
19939fi
19940fi
19941CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19942if test -n "$CC_FOR_BUILD"; then
19943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19944$as_echo "$CC_FOR_BUILD" >&6; }
19945else
19946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947$as_echo "no" >&6; }
19948fi
19949
19950
19951  test -n "$CC_FOR_BUILD" && break
19952done
19953
19954	else
19955	       CC_FOR_BUILD="$CC"
19956	fi
19957fi
19958
19959
19960if test x"$CPPFLAGS_FOR_BUILD" = x; then
19961	if test ! x"$cross_compiling" = xyes; then
19962		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
19963	fi
19964fi
19965
19966
19967if test x"$CFLAGS_FOR_BUILD" = x; then
19968	if test ! x"$cross_compiling" = xyes; then
19969		CFLAGS_FOR_BUILD=${CFLAGS}
19970	fi
19971fi
19972
19973
19974if test x"$LDFLAGS_FOR_BUILD" = x; then
19975	if test ! x"$cross_compiling" = xyes; then
19976		LDFLAGS_FOR_BUILD=${LDFLAGS}
19977	fi
19978fi
19979
19980
19981if test x"$EXEEXT_FOR_BUILD" = x; then
19982	if test x"$cross_compiling" = xno; then
19983		EXEEXT_FOR_BUILD=${EXEEXT}
19984	fi
19985	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
19986fi
19987
19988
19989# Checks for pkg-config packages
19990
19991# Always required
19992X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
19993X11_EXTRA_DEPS="xcb >= 1.11.1"
19994
19995
19996
19997
19998
19999
20000
20001
20002if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20003	if test -n "$ac_tool_prefix"; then
20004  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20005set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20007$as_echo_n "checking for $ac_word... " >&6; }
20008if ${ac_cv_path_PKG_CONFIG+:} false; then :
20009  $as_echo_n "(cached) " >&6
20010else
20011  case $PKG_CONFIG in
20012  [\\/]* | ?:[\\/]*)
20013  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20014  ;;
20015  *)
20016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20017for as_dir in $PATH
20018do
20019  IFS=$as_save_IFS
20020  test -z "$as_dir" && as_dir=.
20021    for ac_exec_ext in '' $ac_executable_extensions; do
20022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20023    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20025    break 2
20026  fi
20027done
20028  done
20029IFS=$as_save_IFS
20030
20031  ;;
20032esac
20033fi
20034PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20035if test -n "$PKG_CONFIG"; then
20036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20037$as_echo "$PKG_CONFIG" >&6; }
20038else
20039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20040$as_echo "no" >&6; }
20041fi
20042
20043
20044fi
20045if test -z "$ac_cv_path_PKG_CONFIG"; then
20046  ac_pt_PKG_CONFIG=$PKG_CONFIG
20047  # Extract the first word of "pkg-config", so it can be a program name with args.
20048set dummy pkg-config; ac_word=$2
20049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050$as_echo_n "checking for $ac_word... " >&6; }
20051if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20052  $as_echo_n "(cached) " >&6
20053else
20054  case $ac_pt_PKG_CONFIG in
20055  [\\/]* | ?:[\\/]*)
20056  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20057  ;;
20058  *)
20059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060for as_dir in $PATH
20061do
20062  IFS=$as_save_IFS
20063  test -z "$as_dir" && as_dir=.
20064    for ac_exec_ext in '' $ac_executable_extensions; do
20065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20068    break 2
20069  fi
20070done
20071  done
20072IFS=$as_save_IFS
20073
20074  ;;
20075esac
20076fi
20077ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20078if test -n "$ac_pt_PKG_CONFIG"; then
20079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20080$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20081else
20082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083$as_echo "no" >&6; }
20084fi
20085
20086  if test "x$ac_pt_PKG_CONFIG" = x; then
20087    PKG_CONFIG=""
20088  else
20089    case $cross_compiling:$ac_tool_warned in
20090yes:)
20091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20093ac_tool_warned=yes ;;
20094esac
20095    PKG_CONFIG=$ac_pt_PKG_CONFIG
20096  fi
20097else
20098  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20099fi
20100
20101fi
20102if test -n "$PKG_CONFIG"; then
20103	_pkg_min_version=0.9.0
20104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20105$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20106	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20108$as_echo "yes" >&6; }
20109	else
20110		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111$as_echo "no" >&6; }
20112		PKG_CONFIG=""
20113	fi
20114fi
20115
20116
20117
20118# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
20119# was not expanded, since libX11 with no transport types is rather useless.
20120#
20121# If you're seeing an error here, be sure you installed the lib/xtrans module
20122# first and if it's not in the default location, that you set the ACLOCAL
20123# environment variable to find it, such as:
20124#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
20125
20126
20127# Transport selection macro from xtrans.m4
20128
20129
20130 case $host_os in
20131	mingw*)	unixdef="no"   ;;
20132	*)	unixdef="yes"  ;;
20133 esac
20134 # Check whether --enable-unix-transport was given.
20135if test "${enable_unix_transport+set}" = set; then :
20136  enableval=$enable_unix_transport; UNIXCONN=$enableval
20137else
20138  UNIXCONN=$unixdef
20139fi
20140
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20142$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
20143 if test "$UNIXCONN" = "yes"; then
20144
20145$as_echo "#define UNIXCONN 1" >>confdefs.h
20146
20147 fi
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20149$as_echo "$UNIXCONN" >&6; }
20150 # Check whether --enable-tcp-transport was given.
20151if test "${enable_tcp_transport+set}" = set; then :
20152  enableval=$enable_tcp_transport; TCPCONN=$enableval
20153else
20154  TCPCONN=yes
20155fi
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20158$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20160$as_echo "$TCPCONN" >&6; }
20161 if test "$TCPCONN" = "yes"; then
20162
20163$as_echo "#define TCPCONN 1" >>confdefs.h
20164
20165
20166 # SVR4 hides these in libraries other than libc
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20168$as_echo_n "checking for library containing socket... " >&6; }
20169if ${ac_cv_search_socket+:} false; then :
20170  $as_echo_n "(cached) " >&6
20171else
20172  ac_func_search_save_LIBS=$LIBS
20173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174/* end confdefs.h.  */
20175
20176/* Override any GCC internal prototype to avoid an error.
20177   Use char because int might match the return type of a GCC
20178   builtin and then its argument prototype would still apply.  */
20179#ifdef __cplusplus
20180extern "C"
20181#endif
20182char socket ();
20183int
20184main ()
20185{
20186return socket ();
20187  ;
20188  return 0;
20189}
20190_ACEOF
20191for ac_lib in '' socket; do
20192  if test -z "$ac_lib"; then
20193    ac_res="none required"
20194  else
20195    ac_res=-l$ac_lib
20196    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20197  fi
20198  if ac_fn_c_try_link "$LINENO"; then :
20199  ac_cv_search_socket=$ac_res
20200fi
20201rm -f core conftest.err conftest.$ac_objext \
20202    conftest$ac_exeext
20203  if ${ac_cv_search_socket+:} false; then :
20204  break
20205fi
20206done
20207if ${ac_cv_search_socket+:} false; then :
20208
20209else
20210  ac_cv_search_socket=no
20211fi
20212rm conftest.$ac_ext
20213LIBS=$ac_func_search_save_LIBS
20214fi
20215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20216$as_echo "$ac_cv_search_socket" >&6; }
20217ac_res=$ac_cv_search_socket
20218if test "$ac_res" != no; then :
20219  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20220
20221fi
20222
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20224$as_echo_n "checking for library containing gethostbyname... " >&6; }
20225if ${ac_cv_search_gethostbyname+:} false; then :
20226  $as_echo_n "(cached) " >&6
20227else
20228  ac_func_search_save_LIBS=$LIBS
20229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230/* end confdefs.h.  */
20231
20232/* Override any GCC internal prototype to avoid an error.
20233   Use char because int might match the return type of a GCC
20234   builtin and then its argument prototype would still apply.  */
20235#ifdef __cplusplus
20236extern "C"
20237#endif
20238char gethostbyname ();
20239int
20240main ()
20241{
20242return gethostbyname ();
20243  ;
20244  return 0;
20245}
20246_ACEOF
20247for ac_lib in '' nsl; do
20248  if test -z "$ac_lib"; then
20249    ac_res="none required"
20250  else
20251    ac_res=-l$ac_lib
20252    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20253  fi
20254  if ac_fn_c_try_link "$LINENO"; then :
20255  ac_cv_search_gethostbyname=$ac_res
20256fi
20257rm -f core conftest.err conftest.$ac_objext \
20258    conftest$ac_exeext
20259  if ${ac_cv_search_gethostbyname+:} false; then :
20260  break
20261fi
20262done
20263if ${ac_cv_search_gethostbyname+:} false; then :
20264
20265else
20266  ac_cv_search_gethostbyname=no
20267fi
20268rm conftest.$ac_ext
20269LIBS=$ac_func_search_save_LIBS
20270fi
20271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20272$as_echo "$ac_cv_search_gethostbyname" >&6; }
20273ac_res=$ac_cv_search_gethostbyname
20274if test "$ac_res" != no; then :
20275  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20276
20277fi
20278
20279 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20281$as_echo_n "checking for main in -lws2_32... " >&6; }
20282if ${ac_cv_lib_ws2_32_main+:} false; then :
20283  $as_echo_n "(cached) " >&6
20284else
20285  ac_check_lib_save_LIBS=$LIBS
20286LIBS="-lws2_32  $LIBS"
20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289
20290
20291int
20292main ()
20293{
20294return main ();
20295  ;
20296  return 0;
20297}
20298_ACEOF
20299if ac_fn_c_try_link "$LINENO"; then :
20300  ac_cv_lib_ws2_32_main=yes
20301else
20302  ac_cv_lib_ws2_32_main=no
20303fi
20304rm -f core conftest.err conftest.$ac_objext \
20305    conftest$ac_exeext conftest.$ac_ext
20306LIBS=$ac_check_lib_save_LIBS
20307fi
20308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20309$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20310if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20311  cat >>confdefs.h <<_ACEOF
20312#define HAVE_LIBWS2_32 1
20313_ACEOF
20314
20315  LIBS="-lws2_32 $LIBS"
20316
20317fi
20318
20319 fi
20320
20321 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20322 # Check whether --enable-ipv6 was given.
20323if test "${enable_ipv6+set}" = set; then :
20324  enableval=$enable_ipv6; IPV6CONN=$enableval
20325else
20326  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20327if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20328  IPV6CONN=yes
20329else
20330  IPV6CONN=no
20331fi
20332
20333fi
20334
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20336$as_echo_n "checking if IPv6 support should be built... " >&6; }
20337 if test "$IPV6CONN" = "yes"; then
20338
20339$as_echo "#define IPv6 1" >>confdefs.h
20340
20341 fi
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20343$as_echo "$IPV6CONN" >&6; }
20344
20345 # 4.3BSD-Reno added a new member to struct sockaddr_in
20346 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20347#include <sys/types.h>
20348#include <sys/socket.h>
20349#include <netinet/in.h>
20350
20351"
20352if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20353
20354$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20355
20356fi
20357
20358
20359 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20360 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20361$ac_includes_default
20362#include <sys/socket.h>
20363"
20364if test "x$ac_cv_type_socklen_t" = xyes; then :
20365
20366cat >>confdefs.h <<_ACEOF
20367#define HAVE_SOCKLEN_T 1
20368_ACEOF
20369
20370
20371fi
20372
20373
20374 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20375 # _XOPEN_SOURCE to get it (such as on Solaris)
20376 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20377$ac_includes_default
20378#include <sys/socket.h>
20379
20380"
20381if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20382
20383fi
20384
20385 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20386 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20387     unset ac_cv_member_struct_msghdr_msg_control
20388     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20389$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20390     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20391#define _XOPEN_SOURCE 600
20392$ac_includes_default
20393#include <sys/socket.h>
20394
20395"
20396if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20397
20398$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20399
20400
20401fi
20402
20403 fi
20404 # If that didn't work, fall back to XPG5/UNIX98 with C89
20405 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20406     unset ac_cv_member_struct_msghdr_msg_control
20407     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20408$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20409     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20410#define _XOPEN_SOURCE 500
20411$ac_includes_default
20412#include <sys/socket.h>
20413
20414"
20415if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20416
20417$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20418
20419
20420fi
20421
20422 fi
20423
20424
20425
20426 fi
20427 case $host_os in
20428	solaris*)		localdef="yes" ;;
20429	*)			localdef="no"  ;;
20430 esac
20431 # Check whether --enable-local-transport was given.
20432if test "${enable_local_transport+set}" = set; then :
20433  enableval=$enable_local_transport; LOCALCONN=$enableval
20434else
20435  LOCALCONN=$localdef
20436fi
20437
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20439$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20441$as_echo "$LOCALCONN" >&6; }
20442 if test "$LOCALCONN" = "yes"; then
20443
20444$as_echo "#define LOCALCONN 1" >>confdefs.h
20445
20446 fi
20447
20448 # Other functions Xtrans may need
20449 for ac_func in strcasecmp strlcpy
20450do :
20451  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20452ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20453if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20454  cat >>confdefs.h <<_ACEOF
20455#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20456_ACEOF
20457
20458fi
20459done
20460
20461
20462
20463
20464# Check for dlopen
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
20466$as_echo_n "checking if run-time linking is supported... " >&6; }
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20468$as_echo_n "checking for library containing dlopen... " >&6; }
20469if ${ac_cv_search_dlopen+:} false; then :
20470  $as_echo_n "(cached) " >&6
20471else
20472  ac_func_search_save_LIBS=$LIBS
20473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474/* end confdefs.h.  */
20475
20476/* Override any GCC internal prototype to avoid an error.
20477   Use char because int might match the return type of a GCC
20478   builtin and then its argument prototype would still apply.  */
20479#ifdef __cplusplus
20480extern "C"
20481#endif
20482char dlopen ();
20483int
20484main ()
20485{
20486return dlopen ();
20487  ;
20488  return 0;
20489}
20490_ACEOF
20491for ac_lib in '' dl svld; do
20492  if test -z "$ac_lib"; then
20493    ac_res="none required"
20494  else
20495    ac_res=-l$ac_lib
20496    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20497  fi
20498  if ac_fn_c_try_link "$LINENO"; then :
20499  ac_cv_search_dlopen=$ac_res
20500fi
20501rm -f core conftest.err conftest.$ac_objext \
20502    conftest$ac_exeext
20503  if ${ac_cv_search_dlopen+:} false; then :
20504  break
20505fi
20506done
20507if ${ac_cv_search_dlopen+:} false; then :
20508
20509else
20510  ac_cv_search_dlopen=no
20511fi
20512rm conftest.$ac_ext
20513LIBS=$ac_func_search_save_LIBS
20514fi
20515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20516$as_echo "$ac_cv_search_dlopen" >&6; }
20517ac_res=$ac_cv_search_dlopen
20518if test "$ac_res" != no; then :
20519  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20520
20521fi
20522
20523if test "x$ac_cv_search_dlopen" = xno; then
20524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
20525$as_echo_n "checking for library containing shl_load... " >&6; }
20526if ${ac_cv_search_shl_load+:} false; then :
20527  $as_echo_n "(cached) " >&6
20528else
20529  ac_func_search_save_LIBS=$LIBS
20530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531/* end confdefs.h.  */
20532
20533/* Override any GCC internal prototype to avoid an error.
20534   Use char because int might match the return type of a GCC
20535   builtin and then its argument prototype would still apply.  */
20536#ifdef __cplusplus
20537extern "C"
20538#endif
20539char shl_load ();
20540int
20541main ()
20542{
20543return shl_load ();
20544  ;
20545  return 0;
20546}
20547_ACEOF
20548for ac_lib in '' dld; do
20549  if test -z "$ac_lib"; then
20550    ac_res="none required"
20551  else
20552    ac_res=-l$ac_lib
20553    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20554  fi
20555  if ac_fn_c_try_link "$LINENO"; then :
20556  ac_cv_search_shl_load=$ac_res
20557fi
20558rm -f core conftest.err conftest.$ac_objext \
20559    conftest$ac_exeext
20560  if ${ac_cv_search_shl_load+:} false; then :
20561  break
20562fi
20563done
20564if ${ac_cv_search_shl_load+:} false; then :
20565
20566else
20567  ac_cv_search_shl_load=no
20568fi
20569rm conftest.$ac_ext
20570LIBS=$ac_func_search_save_LIBS
20571fi
20572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
20573$as_echo "$ac_cv_search_shl_load" >&6; }
20574ac_res=$ac_cv_search_shl_load
20575if test "$ac_res" != no; then :
20576  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20577
20578fi
20579
20580	if test "x$ac_cv_search_shl_load" != xno; then
20581
20582$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20583
20584		for ac_header in dl.h
20585do :
20586  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
20587if test "x$ac_cv_header_dl_h" = xyes; then :
20588  cat >>confdefs.h <<_ACEOF
20589#define HAVE_DL_H 1
20590_ACEOF
20591
20592fi
20593
20594done
20595
20596	fi
20597else
20598
20599$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20600
20601	for ac_header in dlfcn.h
20602do :
20603  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20604if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20605  cat >>confdefs.h <<_ACEOF
20606#define HAVE_DLFCN_H 1
20607_ACEOF
20608
20609fi
20610
20611done
20612
20613fi
20614if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
20615	HAVE_LOADABLE_MODULES=yes
20616else
20617	HAVE_LOADABLE_MODULES=no
20618fi
20619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
20620$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
20621
20622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
20623$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
20624# Check whether --enable-loadable-i18n was given.
20625if test "${enable_loadable_i18n+set}" = set; then :
20626  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
20627else
20628  XLIB_LOADABLE_I18N="no"
20629fi
20630
20631if test x$XLIB_LOADABLE_I18N = xyes; then
20632	if test x$HAVE_LOADABLE_MODULES = xno; then
20633		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
20634	fi
20635
20636$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
20637
20638	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
20639
20640fi
20641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
20642$as_echo "$XLIB_LOADABLE_I18N" >&6; }
20643
20644 if test x$XLIB_LOADABLE_I18N = xyes; then
20645  XLIB_LOADABLE_I18N_TRUE=
20646  XLIB_LOADABLE_I18N_FALSE='#'
20647else
20648  XLIB_LOADABLE_I18N_TRUE='#'
20649  XLIB_LOADABLE_I18N_FALSE=
20650fi
20651
20652
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
20654$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
20655# Check whether --enable-loadable-xcursor was given.
20656if test "${enable_loadable_xcursor+set}" = set; then :
20657  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
20658else
20659  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
20660fi
20661
20662if test x$XLIB_LOADABLE_XCURSOR = xyes; then
20663
20664$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
20665
20666fi
20667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
20668$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
20669
20670# Checks for header files.
20671for ac_header in sys/filio.h sys/select.h sys/ioctl.h sys/socket.h
20672do :
20673  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20674ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20675if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20676  cat >>confdefs.h <<_ACEOF
20677#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20678_ACEOF
20679
20680fi
20681
20682done
20683
20684
20685# Checks for typedefs, structures, and compiler characteristics.
20686
20687
20688
20689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
20690$as_echo_n "checking for __builtin_popcountl... " >&6; }
20691if ${ax_cv_have___builtin_popcountl+:} false; then :
20692  $as_echo_n "(cached) " >&6
20693else
20694
20695        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696/* end confdefs.h.  */
20697
20698int
20699main ()
20700{
20701
20702            __builtin_popcountl(0)
20703
20704  ;
20705  return 0;
20706}
20707_ACEOF
20708if ac_fn_c_try_link "$LINENO"; then :
20709  ax_cv_have___builtin_popcountl=yes
20710else
20711  ax_cv_have___builtin_popcountl=no
20712fi
20713rm -f core conftest.err conftest.$ac_objext \
20714    conftest$ac_exeext conftest.$ac_ext
20715
20716fi
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
20718$as_echo "$ax_cv_have___builtin_popcountl" >&6; }
20719
20720    if test yes = $ax_cv_have___builtin_popcountl; then :
20721
20722cat >>confdefs.h <<_ACEOF
20723#define HAVE___BUILTIN_POPCOUNTL 1
20724_ACEOF
20725
20726fi
20727
20728
20729
20730
20731# Checks for library functions.
20732for ac_func in strtol seteuid
20733do :
20734  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20736if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20737  cat >>confdefs.h <<_ACEOF
20738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20739_ACEOF
20740
20741fi
20742done
20743
20744ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20745if test "x$ac_cv_func_reallocarray" = xyes; then :
20746  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20747
20748else
20749  case " $LIBOBJS " in
20750  *" reallocarray.$ac_objext "* ) ;;
20751  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20752 ;;
20753esac
20754
20755fi
20756
20757
20758# Used in lcFile.c (see also --enable-xlocaledir settings below)
20759XLOCALEDIR_IS_SAFE="no"
20760ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default"
20761if test "x$ac_cv_have_decl_issetugid" = xyes; then :
20762
20763fi
20764
20765ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20766if test "x$ac_cv_func_issetugid" = xyes; then :
20767
20768fi
20769
20770if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
20771    XLOCALEDIR_IS_SAFE="yes"
20772
20773$as_echo "#define HASSETUGID 1" >>confdefs.h
20774
20775fi
20776ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
20777if test "x$ac_cv_func_getresuid" = xyes; then :
20778  XLOCALEDIR_IS_SAFE="yes"
20779
20780$as_echo "#define HASGETRESUID 1" >>confdefs.h
20781
20782fi
20783
20784# Used in Font.c
20785ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20786if test "x$ac_cv_func_shmat" = xyes; then :
20787
20788$as_echo "#define HAS_SHM 1" >>confdefs.h
20789
20790fi
20791
20792
20793# Checks for system services
20794# AC_PATH_XTRA
20795
20796# arch specific things
20797WCHAR32="1"
20798case $host_os in
20799  os2*) os2="true" ; WCHAR32="0" ;;
20800  *) ;;
20801esac
20802
20803
20804 if test x$os2 = xtrue; then
20805  OS2_TRUE=
20806  OS2_FALSE='#'
20807else
20808  OS2_TRUE='#'
20809  OS2_FALSE=
20810fi
20811
20812
20813
20814# Check whether --with-launchd was given.
20815if test "${with_launchd+set}" = set; then :
20816  withval=$with_launchd; LAUNCHD=$withval
20817else
20818  LAUNCHD=auto
20819fi
20820
20821if test "x$LAUNCHD" = xauto; then
20822	unset LAUNCHD
20823	# Extract the first word of "launchd", so it can be a program name with args.
20824set dummy launchd; ac_word=$2
20825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20826$as_echo_n "checking for $ac_word... " >&6; }
20827if ${ac_cv_prog_LAUNCHD+:} false; then :
20828  $as_echo_n "(cached) " >&6
20829else
20830  if test -n "$LAUNCHD"; then
20831  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20832else
20833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20834for as_dir in $PATH$PATH_SEPARATOR/sbin
20835do
20836  IFS=$as_save_IFS
20837  test -z "$as_dir" && as_dir=.
20838    for ac_exec_ext in '' $ac_executable_extensions; do
20839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20840    ac_cv_prog_LAUNCHD="yes"
20841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20842    break 2
20843  fi
20844done
20845  done
20846IFS=$as_save_IFS
20847
20848  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20849fi
20850fi
20851LAUNCHD=$ac_cv_prog_LAUNCHD
20852if test -n "$LAUNCHD"; then
20853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20854$as_echo "$LAUNCHD" >&6; }
20855else
20856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20857$as_echo "no" >&6; }
20858fi
20859
20860
20861fi
20862
20863if test "x$LAUNCHD" = xyes ; then
20864
20865$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20866
20867
20868$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
20869
20870fi
20871
20872# Check whether --enable-xthreads was given.
20873if test "${enable_xthreads+set}" = set; then :
20874  enableval=$enable_xthreads; xthreads=$enableval
20875else
20876  xthreads=yes
20877fi
20878
20879
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20881$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20882if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20883  $as_echo_n "(cached) " >&6
20884else
20885  ac_check_lib_save_LIBS=$LIBS
20886LIBS="-lc  $LIBS"
20887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888/* end confdefs.h.  */
20889
20890/* Override any GCC internal prototype to avoid an error.
20891   Use char because int might match the return type of a GCC
20892   builtin and then its argument prototype would still apply.  */
20893#ifdef __cplusplus
20894extern "C"
20895#endif
20896char getpwuid_r ();
20897int
20898main ()
20899{
20900return getpwuid_r ();
20901  ;
20902  return 0;
20903}
20904_ACEOF
20905if ac_fn_c_try_link "$LINENO"; then :
20906  ac_cv_lib_c_getpwuid_r=yes
20907else
20908  ac_cv_lib_c_getpwuid_r=no
20909fi
20910rm -f core conftest.err conftest.$ac_objext \
20911    conftest$ac_exeext conftest.$ac_ext
20912LIBS=$ac_check_lib_save_LIBS
20913fi
20914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20915$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20916if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20917  mtsafeapi="yes"
20918else
20919  mtsafeapi="no"
20920fi
20921
20922
20923case x$xthreads in
20924xyes)
20925
20926$as_echo "#define XTHREADS 1" >>confdefs.h
20927
20928	if test x$mtsafeapi = xyes
20929	then
20930
20931$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
20932
20933	fi
20934	;;
20935*)
20936	;;
20937esac
20938
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
20940$as_echo_n "checking for pthread_self in -lc... " >&6; }
20941if ${ac_cv_lib_c_pthread_self+:} false; then :
20942  $as_echo_n "(cached) " >&6
20943else
20944  ac_check_lib_save_LIBS=$LIBS
20945LIBS="-lc  $LIBS"
20946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947/* end confdefs.h.  */
20948
20949/* Override any GCC internal prototype to avoid an error.
20950   Use char because int might match the return type of a GCC
20951   builtin and then its argument prototype would still apply.  */
20952#ifdef __cplusplus
20953extern "C"
20954#endif
20955char pthread_self ();
20956int
20957main ()
20958{
20959return pthread_self ();
20960  ;
20961  return 0;
20962}
20963_ACEOF
20964if ac_fn_c_try_link "$LINENO"; then :
20965  ac_cv_lib_c_pthread_self=yes
20966else
20967  ac_cv_lib_c_pthread_self=no
20968fi
20969rm -f core conftest.err conftest.$ac_objext \
20970    conftest$ac_exeext conftest.$ac_ext
20971LIBS=$ac_check_lib_save_LIBS
20972fi
20973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
20974$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
20975if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
20976  thrstubs="no"
20977else
20978  thrstubs="yes"
20979fi
20980
20981 if test x$thrstubs = xyes; then
20982  THRSTUBS_TRUE=
20983  THRSTUBS_FALSE='#'
20984else
20985  THRSTUBS_TRUE='#'
20986  THRSTUBS_FALSE=
20987fi
20988
20989
20990# XXX incomplete, please fill this in
20991if test x$xthreads = xyes ; then
20992    case $host_os in
20993    linux*|gnu*|k*bsd*-gnu)
20994        XTHREADLIB=-lpthread ;;
20995    netbsd*)
20996	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
20997	XTHREADLIB="-lpthread" ;;
20998    freebsd*)
20999        XTHREAD_CFLAGS="-D_THREAD_SAFE"
21000        XTHREADLIB="-pthread" ;;
21001    dragonfly*|openbsd*)
21002        XTHREADLIB="-pthread" ;;
21003    solaris*)
21004	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
21005    esac
21006fi
21007
21008
21009
21010ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
21011if test "x$ac_cv_func_poll" = xyes; then :
21012
21013$as_echo "#define USE_POLL 1" >>confdefs.h
21014
21015fi
21016
21017
21018#
21019# Find keysymdef.h
21020#
21021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
21022$as_echo_n "checking keysym definitions... " >&6; }
21023
21024# Check whether --with-keysymdefdir was given.
21025if test "${with_keysymdefdir+set}" = set; then :
21026  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
21027else
21028  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
21029fi
21030
21031
21032if test ! -d "$KEYSYMDEFDIR"; then
21033	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
21034fi
21035
21036FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
21037for i in $FILES; do
21038    if test -f "$KEYSYMDEFDIR/$i"; then
21039            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
21040    elif test "x$i" = "xkeysymdef.h"; then
21041	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
21042    fi
21043done
21044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
21045$as_echo "$KEYSYMDEFS" >&6; }
21046
21047
21048# Check whether --enable-xcms was given.
21049if test "${enable_xcms+set}" = set; then :
21050  enableval=$enable_xcms; XCMS=$enableval
21051else
21052  XCMS=yes
21053fi
21054
21055 if test x$XCMS = xyes ; then
21056  XCMS_TRUE=
21057  XCMS_FALSE='#'
21058else
21059  XCMS_TRUE='#'
21060  XCMS_FALSE=
21061fi
21062
21063if test x"$XCMS" = "xyes"; then
21064
21065$as_echo "#define XCMS 1" >>confdefs.h
21066
21067fi
21068
21069# Check whether --enable-xlocale was given.
21070if test "${enable_xlocale+set}" = set; then :
21071  enableval=$enable_xlocale; XLOCALE=$enableval
21072else
21073  XLOCALE=yes
21074fi
21075
21076
21077 if  test x$XLOCALE = xyes ; then
21078  XLOCALE_TRUE=
21079  XLOCALE_FALSE='#'
21080else
21081  XLOCALE_TRUE='#'
21082  XLOCALE_FALSE=
21083fi
21084
21085if test x"$XLOCALE" = "xyes"; then
21086
21087$as_echo "#define XLOCALE 1" >>confdefs.h
21088
21089fi
21090
21091# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
21092# don't have either issetugid() or getresuid(), and you need to protect
21093# clients that are setgid or setuid to an id other than 0.
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
21095$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
21096# Check whether --enable-xlocaledir was given.
21097if test "${enable_xlocaledir+set}" = set; then :
21098  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
21099else
21100  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
21101fi
21102
21103if test "x$ENABLE_XLOCALEDIR" = "xno"; then
21104
21105$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
21106
21107fi
21108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
21109$as_echo "$ENABLE_XLOCALEDIR" >&6; }
21110
21111# Check whether --enable-xf86bigfont was given.
21112if test "${enable_xf86bigfont+set}" = set; then :
21113  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
21114else
21115  XF86BIGFONT="yes"
21116fi
21117
21118if test "x$XF86BIGFONT" = "xyes"; then
21119
21120pkg_failed=no
21121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
21122$as_echo_n "checking for BIGFONT... " >&6; }
21123
21124if test -n "$BIGFONT_CFLAGS"; then
21125    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
21126 elif test -n "$PKG_CONFIG"; then
21127    if test -n "$PKG_CONFIG" && \
21128    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
21129  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
21130  ac_status=$?
21131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21132  test $ac_status = 0; }; then
21133  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
21134		      test "x$?" != "x0" && pkg_failed=yes
21135else
21136  pkg_failed=yes
21137fi
21138 else
21139    pkg_failed=untried
21140fi
21141if test -n "$BIGFONT_LIBS"; then
21142    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
21143 elif test -n "$PKG_CONFIG"; then
21144    if test -n "$PKG_CONFIG" && \
21145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
21146  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
21147  ac_status=$?
21148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21149  test $ac_status = 0; }; then
21150  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
21151		      test "x$?" != "x0" && pkg_failed=yes
21152else
21153  pkg_failed=yes
21154fi
21155 else
21156    pkg_failed=untried
21157fi
21158
21159
21160
21161if test $pkg_failed = yes; then
21162   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21163$as_echo "no" >&6; }
21164
21165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21166        _pkg_short_errors_supported=yes
21167else
21168        _pkg_short_errors_supported=no
21169fi
21170        if test $_pkg_short_errors_supported = yes; then
21171	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21172        else
21173	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21174        fi
21175	# Put the nasty error message in config.log where it belongs
21176	echo "$BIGFONT_PKG_ERRORS" >&5
21177
21178	XF86BIGFONT="no"
21179elif test $pkg_failed = untried; then
21180     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21181$as_echo "no" >&6; }
21182	XF86BIGFONT="no"
21183else
21184	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
21185	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
21186        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21187$as_echo "yes" >&6; }
21188
21189$as_echo "#define XF86BIGFONT 1" >>confdefs.h
21190
21191fi
21192fi
21193
21194# Check whether --enable-xkb was given.
21195if test "${enable_xkb+set}" = set; then :
21196  enableval=$enable_xkb; XKB=$enableval
21197else
21198  XKB=yes
21199fi
21200
21201
21202 if  test x$XKB = xyes ; then
21203  XKB_TRUE=
21204  XKB_FALSE='#'
21205else
21206  XKB_TRUE='#'
21207  XKB_FALSE=
21208fi
21209
21210if test x"$XKB" = "xyes"; then
21211   XKBPROTO_REQUIRES="kbproto"
21212   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
21213
21214$as_echo "#define XKB 1" >>confdefs.h
21215
21216else
21217   XKBPROTO_REQUIRES=""
21218fi
21219
21220
21221
21222
21223
21224  for ac_header in $ac_header_list
21225do :
21226  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21227ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21228"
21229if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21230  cat >>confdefs.h <<_ACEOF
21231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21232_ACEOF
21233
21234fi
21235
21236done
21237
21238
21239
21240
21241
21242
21243
21244
21245for ac_func in getpagesize
21246do :
21247  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21248if test "x$ac_cv_func_getpagesize" = xyes; then :
21249  cat >>confdefs.h <<_ACEOF
21250#define HAVE_GETPAGESIZE 1
21251_ACEOF
21252
21253fi
21254done
21255
21256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21257$as_echo_n "checking for working mmap... " >&6; }
21258if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
21259  $as_echo_n "(cached) " >&6
21260else
21261  if test "$cross_compiling" = yes; then :
21262  ac_cv_func_mmap_fixed_mapped=no
21263else
21264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265/* end confdefs.h.  */
21266$ac_includes_default
21267/* malloc might have been renamed as rpl_malloc. */
21268#undef malloc
21269
21270/* Thanks to Mike Haertel and Jim Avera for this test.
21271   Here is a matrix of mmap possibilities:
21272	mmap private not fixed
21273	mmap private fixed at somewhere currently unmapped
21274	mmap private fixed at somewhere already mapped
21275	mmap shared not fixed
21276	mmap shared fixed at somewhere currently unmapped
21277	mmap shared fixed at somewhere already mapped
21278   For private mappings, we should verify that changes cannot be read()
21279   back from the file, nor mmap's back from the file at a different
21280   address.  (There have been systems where private was not correctly
21281   implemented like the infamous i386 svr4.0, and systems where the
21282   VM page cache was not coherent with the file system buffer cache
21283   like early versions of FreeBSD and possibly contemporary NetBSD.)
21284   For shared mappings, we should conversely verify that changes get
21285   propagated back to all the places they're supposed to be.
21286
21287   Grep wants private fixed already mapped.
21288   The main things grep needs to know about mmap are:
21289   * does it exist and is it safe to write into the mmap'd area
21290   * how to use it (BSD variants)  */
21291
21292#include <fcntl.h>
21293#include <sys/mman.h>
21294
21295#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21296char *malloc ();
21297#endif
21298
21299/* This mess was copied from the GNU getpagesize.h.  */
21300#ifndef HAVE_GETPAGESIZE
21301# ifdef _SC_PAGESIZE
21302#  define getpagesize() sysconf(_SC_PAGESIZE)
21303# else /* no _SC_PAGESIZE */
21304#  ifdef HAVE_SYS_PARAM_H
21305#   include <sys/param.h>
21306#   ifdef EXEC_PAGESIZE
21307#    define getpagesize() EXEC_PAGESIZE
21308#   else /* no EXEC_PAGESIZE */
21309#    ifdef NBPG
21310#     define getpagesize() NBPG * CLSIZE
21311#     ifndef CLSIZE
21312#      define CLSIZE 1
21313#     endif /* no CLSIZE */
21314#    else /* no NBPG */
21315#     ifdef NBPC
21316#      define getpagesize() NBPC
21317#     else /* no NBPC */
21318#      ifdef PAGESIZE
21319#       define getpagesize() PAGESIZE
21320#      endif /* PAGESIZE */
21321#     endif /* no NBPC */
21322#    endif /* no NBPG */
21323#   endif /* no EXEC_PAGESIZE */
21324#  else /* no HAVE_SYS_PARAM_H */
21325#   define getpagesize() 8192	/* punt totally */
21326#  endif /* no HAVE_SYS_PARAM_H */
21327# endif /* no _SC_PAGESIZE */
21328
21329#endif /* no HAVE_GETPAGESIZE */
21330
21331int
21332main ()
21333{
21334  char *data, *data2, *data3;
21335  const char *cdata2;
21336  int i, pagesize;
21337  int fd, fd2;
21338
21339  pagesize = getpagesize ();
21340
21341  /* First, make a file with some known garbage in it. */
21342  data = (char *) malloc (pagesize);
21343  if (!data)
21344    return 1;
21345  for (i = 0; i < pagesize; ++i)
21346    *(data + i) = rand ();
21347  umask (0);
21348  fd = creat ("conftest.mmap", 0600);
21349  if (fd < 0)
21350    return 2;
21351  if (write (fd, data, pagesize) != pagesize)
21352    return 3;
21353  close (fd);
21354
21355  /* Next, check that the tail of a page is zero-filled.  File must have
21356     non-zero length, otherwise we risk SIGBUS for entire page.  */
21357  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21358  if (fd2 < 0)
21359    return 4;
21360  cdata2 = "";
21361  if (write (fd2, cdata2, 1) != 1)
21362    return 5;
21363  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21364  if (data2 == MAP_FAILED)
21365    return 6;
21366  for (i = 0; i < pagesize; ++i)
21367    if (*(data2 + i))
21368      return 7;
21369  close (fd2);
21370  if (munmap (data2, pagesize))
21371    return 8;
21372
21373  /* Next, try to mmap the file at a fixed address which already has
21374     something else allocated at it.  If we can, also make sure that
21375     we see the same garbage.  */
21376  fd = open ("conftest.mmap", O_RDWR);
21377  if (fd < 0)
21378    return 9;
21379  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21380		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21381    return 10;
21382  for (i = 0; i < pagesize; ++i)
21383    if (*(data + i) != *(data2 + i))
21384      return 11;
21385
21386  /* Finally, make sure that changes to the mapped area do not
21387     percolate back to the file as seen by read().  (This is a bug on
21388     some variants of i386 svr4.0.)  */
21389  for (i = 0; i < pagesize; ++i)
21390    *(data2 + i) = *(data2 + i) + 1;
21391  data3 = (char *) malloc (pagesize);
21392  if (!data3)
21393    return 12;
21394  if (read (fd, data3, pagesize) != pagesize)
21395    return 13;
21396  for (i = 0; i < pagesize; ++i)
21397    if (*(data + i) != *(data3 + i))
21398      return 14;
21399  close (fd);
21400  free (data);
21401  free (data3);
21402  return 0;
21403}
21404_ACEOF
21405if ac_fn_c_try_run "$LINENO"; then :
21406  ac_cv_func_mmap_fixed_mapped=yes
21407else
21408  ac_cv_func_mmap_fixed_mapped=no
21409fi
21410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21411  conftest.$ac_objext conftest.beam conftest.$ac_ext
21412fi
21413
21414fi
21415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21416$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21417if test $ac_cv_func_mmap_fixed_mapped = yes; then
21418
21419$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21420
21421fi
21422rm -f conftest.mmap conftest.txt
21423
21424composecache_default=$ac_cv_func_mmap_fixed_mapped
21425ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21426if test "x$ac_cv_func_nl_langinfo" = xyes; then :
21427
21428else
21429  composecache_default=no
21430fi
21431
21432# Check whether --enable-composecache was given.
21433if test "${enable_composecache+set}" = set; then :
21434  enableval=$enable_composecache; COMPOSECACHE=$enableval
21435else
21436  COMPOSECACHE=$composecache_default
21437fi
21438
21439if test x"$COMPOSECACHE" = "xyes"; then
21440
21441$as_echo "#define COMPOSECACHE 1" >>confdefs.h
21442
21443fi
21444
21445# Allow checking code with lint, sparse, etc.
21446
21447
21448
21449
21450
21451# Check whether --with-lint was given.
21452if test "${with_lint+set}" = set; then :
21453  withval=$with_lint; use_lint=$withval
21454else
21455  use_lint=no
21456fi
21457
21458
21459# Obtain platform specific info like program name and options
21460# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21461case $host_os in
21462  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21463	lint_name=splint
21464	lint_options="-badflag"
21465	;;
21466  *freebsd* | *netbsd*)
21467	lint_name=lint
21468	lint_options="-u -b"
21469	;;
21470  *solaris*)
21471	lint_name=lint
21472	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21473	;;
21474esac
21475
21476# Test for the presence of the program (either guessed by the code or spelled out by the user)
21477if test "x$use_lint" = x"yes" ; then
21478   # Extract the first word of "$lint_name", so it can be a program name with args.
21479set dummy $lint_name; ac_word=$2
21480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21481$as_echo_n "checking for $ac_word... " >&6; }
21482if ${ac_cv_path_LINT+:} false; then :
21483  $as_echo_n "(cached) " >&6
21484else
21485  case $LINT in
21486  [\\/]* | ?:[\\/]*)
21487  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21488  ;;
21489  *)
21490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21491for as_dir in $PATH
21492do
21493  IFS=$as_save_IFS
21494  test -z "$as_dir" && as_dir=.
21495    for ac_exec_ext in '' $ac_executable_extensions; do
21496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21497    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
21498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21499    break 2
21500  fi
21501done
21502  done
21503IFS=$as_save_IFS
21504
21505  ;;
21506esac
21507fi
21508LINT=$ac_cv_path_LINT
21509if test -n "$LINT"; then
21510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21511$as_echo "$LINT" >&6; }
21512else
21513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21514$as_echo "no" >&6; }
21515fi
21516
21517
21518   if test "x$LINT" = "x"; then
21519        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21520   fi
21521elif test "x$use_lint" = x"no" ; then
21522   if test "x$LINT" != "x"; then
21523      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21524$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21525   fi
21526else
21527   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21528fi
21529
21530# User supplied flags override default flags
21531if test "x$LINT_FLAGS" != "x"; then
21532   lint_options=$LINT_FLAGS
21533fi
21534
21535LINT_FLAGS=$lint_options
21536
21537 if test "x$LINT" != x; then
21538  LINT_TRUE=
21539  LINT_FALSE='#'
21540else
21541  LINT_TRUE='#'
21542  LINT_FALSE=
21543fi
21544
21545
21546
21547
21548
21549# Check whether --enable-lint-library was given.
21550if test "${enable_lint_library+set}" = set; then :
21551  enableval=$enable_lint_library; make_lint_lib=$enableval
21552else
21553  make_lint_lib=no
21554fi
21555
21556
21557if test "x$make_lint_lib" = x"yes" ; then
21558   LINTLIB=llib-lX11.ln
21559   if test "x$LINT" = "x"; then
21560        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21561   fi
21562elif test "x$make_lint_lib" != x"no" ; then
21563   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21564fi
21565
21566
21567 if test x$make_lint_lib != xno; then
21568  MAKE_LINT_LIB_TRUE=
21569  MAKE_LINT_LIB_FALSE='#'
21570else
21571  MAKE_LINT_LIB_TRUE='#'
21572  MAKE_LINT_LIB_FALSE=
21573fi
21574
21575
21576
21577
21578X11_DATADIR="${datadir}/X11"
21579
21580  prefix_NONE=
21581  exec_prefix_NONE=
21582  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21583  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21584  eval ax_define_dir="\"$X11_DATADIR\""
21585  eval ax_define_dir="\"$ax_define_dir\""
21586  X11_DATADIR="$ax_define_dir"
21587
21588
21589cat >>confdefs.h <<_ACEOF
21590#define X11_DATADIR "$ax_define_dir"
21591_ACEOF
21592
21593  test "$prefix_NONE" && prefix=NONE
21594  test "$exec_prefix_NONE" && exec_prefix=NONE
21595
21596
21597
21598X11_LIBDIR="${libdir}/X11"
21599
21600  prefix_NONE=
21601  exec_prefix_NONE=
21602  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21603  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21604  eval ax_define_dir="\"$X11_LIBDIR\""
21605  eval ax_define_dir="\"$ax_define_dir\""
21606  X11_LIBDIR="$ax_define_dir"
21607
21608
21609cat >>confdefs.h <<_ACEOF
21610#define X11_LIBDIR "$ax_define_dir"
21611_ACEOF
21612
21613  test "$prefix_NONE" && prefix=NONE
21614  test "$exec_prefix_NONE" && exec_prefix=NONE
21615
21616
21617
21618
21619pkg_failed=no
21620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
21621$as_echo_n "checking for X11... " >&6; }
21622
21623if test -n "$X11_CFLAGS"; then
21624    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21625 elif test -n "$PKG_CONFIG"; then
21626    if test -n "$PKG_CONFIG" && \
21627    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21628  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21629  ac_status=$?
21630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21631  test $ac_status = 0; }; then
21632  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
21633		      test "x$?" != "x0" && pkg_failed=yes
21634else
21635  pkg_failed=yes
21636fi
21637 else
21638    pkg_failed=untried
21639fi
21640if test -n "$X11_LIBS"; then
21641    pkg_cv_X11_LIBS="$X11_LIBS"
21642 elif test -n "$PKG_CONFIG"; then
21643    if test -n "$PKG_CONFIG" && \
21644    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21645  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21646  ac_status=$?
21647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21648  test $ac_status = 0; }; then
21649  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
21650		      test "x$?" != "x0" && pkg_failed=yes
21651else
21652  pkg_failed=yes
21653fi
21654 else
21655    pkg_failed=untried
21656fi
21657
21658
21659
21660if test $pkg_failed = yes; then
21661   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21662$as_echo "no" >&6; }
21663
21664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21665        _pkg_short_errors_supported=yes
21666else
21667        _pkg_short_errors_supported=no
21668fi
21669        if test $_pkg_short_errors_supported = yes; then
21670	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21671        else
21672	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21673        fi
21674	# Put the nasty error message in config.log where it belongs
21675	echo "$X11_PKG_ERRORS" >&5
21676
21677	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
21678
21679$X11_PKG_ERRORS
21680
21681Consider adjusting the PKG_CONFIG_PATH environment variable if you
21682installed software in a non-standard prefix.
21683
21684Alternatively, you may set the environment variables X11_CFLAGS
21685and X11_LIBS to avoid the need to call pkg-config.
21686See the pkg-config man page for more details." "$LINENO" 5
21687elif test $pkg_failed = untried; then
21688     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689$as_echo "no" >&6; }
21690	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21692as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21693is in your PATH or set the PKG_CONFIG environment variable to the full
21694path to pkg-config.
21695
21696Alternatively, you may set the environment variables X11_CFLAGS
21697and X11_LIBS to avoid the need to call pkg-config.
21698See the pkg-config man page for more details.
21699
21700To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21701See \`config.log' for more details" "$LINENO" 5; }
21702else
21703	X11_CFLAGS=$pkg_cv_X11_CFLAGS
21704	X11_LIBS=$pkg_cv_X11_LIBS
21705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21706$as_echo "yes" >&6; }
21707
21708fi
21709X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
21710
21711#
21712# Yes, it would be nice to put the locale data in
21713# /usr/share, but the locale stuff includes loadable
21714# libraries which must be located in the same directory
21715# as the other locale data, so for now, everything lives
21716# in ${libdir}
21717#
21718
21719X11_LOCALEDATADIR="${X11_DATADIR}/locale"
21720
21721  prefix_NONE=
21722  exec_prefix_NONE=
21723  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21724  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21725  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
21726  eval ax_define_dir="\"$ax_define_dir\""
21727  XLOCALEDATADIR="$ax_define_dir"
21728
21729
21730cat >>confdefs.h <<_ACEOF
21731#define XLOCALEDATADIR "$ax_define_dir"
21732_ACEOF
21733
21734  test "$prefix_NONE" && prefix=NONE
21735  test "$exec_prefix_NONE" && exec_prefix=NONE
21736
21737
21738
21739
21740# Check whether --with-locale-lib-dir was given.
21741if test "${with_locale_lib_dir+set}" = set; then :
21742  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
21743else
21744   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
21745fi
21746
21747
21748  prefix_NONE=
21749  exec_prefix_NONE=
21750  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21751  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21752  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
21753  eval ax_define_dir="\"$ax_define_dir\""
21754  XLOCALELIBDIR="$ax_define_dir"
21755
21756
21757cat >>confdefs.h <<_ACEOF
21758#define XLOCALELIBDIR "$ax_define_dir"
21759_ACEOF
21760
21761  test "$prefix_NONE" && prefix=NONE
21762  test "$exec_prefix_NONE" && exec_prefix=NONE
21763
21764
21765
21766X11_LOCALEDIR="${X11_LOCALEDATADIR}"
21767
21768  prefix_NONE=
21769  exec_prefix_NONE=
21770  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21771  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21772  eval ax_define_dir="\"$X11_LOCALEDIR\""
21773  eval ax_define_dir="\"$ax_define_dir\""
21774  XLOCALEDIR="$ax_define_dir"
21775
21776
21777cat >>confdefs.h <<_ACEOF
21778#define XLOCALEDIR "$ax_define_dir"
21779_ACEOF
21780
21781  test "$prefix_NONE" && prefix=NONE
21782  test "$exec_prefix_NONE" && exec_prefix=NONE
21783
21784
21785
21786locales="\
21787 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
21788 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
21789 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
21790 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
21791 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
21792 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
21793 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
21794 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
21795 ru_RU.UTF-8  sr_RS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
21796 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
21797 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
21798 zh_TW        zh_TW.big5  zh_TW.UTF-8"
21799
21800
21801XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
21802
21803  prefix_NONE=
21804  exec_prefix_NONE=
21805  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21806  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21807  eval ax_define_dir="\"$XKEYSYMDB\""
21808  eval ax_define_dir="\"$ax_define_dir\""
21809  XKEYSYMDB="$ax_define_dir"
21810
21811
21812cat >>confdefs.h <<_ACEOF
21813#define XKEYSYMDB "$ax_define_dir"
21814_ACEOF
21815
21816  test "$prefix_NONE" && prefix=NONE
21817  test "$exec_prefix_NONE" && exec_prefix=NONE
21818
21819
21820XERRORDB="${X11_DATADIR}/XErrorDB"
21821
21822  prefix_NONE=
21823  exec_prefix_NONE=
21824  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21825  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21826  eval ax_define_dir="\"$XERRORDB\""
21827  eval ax_define_dir="\"$ax_define_dir\""
21828  XERRORDB="$ax_define_dir"
21829
21830
21831cat >>confdefs.h <<_ACEOF
21832#define XERRORDB "$ax_define_dir"
21833_ACEOF
21834
21835  test "$prefix_NONE" && prefix=NONE
21836  test "$exec_prefix_NONE" && exec_prefix=NONE
21837
21838
21839
21840# Check whether --enable-malloc0returnsnull was given.
21841if test "${enable_malloc0returnsnull+set}" = set; then :
21842  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21843else
21844  MALLOC_ZERO_RETURNS_NULL=auto
21845fi
21846
21847
21848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
21849$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21850if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21851if ${xorg_cv_malloc0_returns_null+:} false; then :
21852  $as_echo_n "(cached) " >&6
21853else
21854  if test "$cross_compiling" = yes; then :
21855  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21857as_fn_error $? "cannot run test program while cross compiling
21858See \`config.log' for more details" "$LINENO" 5; }
21859else
21860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861/* end confdefs.h.  */
21862
21863#include <stdlib.h>
21864
21865int
21866main ()
21867{
21868
21869    char *m0, *r0, *c0, *p;
21870    m0 = malloc(0);
21871    p = malloc(10);
21872    r0 = realloc(p,0);
21873    c0 = calloc(0,10);
21874    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
21875
21876  ;
21877  return 0;
21878}
21879_ACEOF
21880if ac_fn_c_try_run "$LINENO"; then :
21881  xorg_cv_malloc0_returns_null=yes
21882else
21883  xorg_cv_malloc0_returns_null=no
21884fi
21885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21886  conftest.$ac_objext conftest.beam conftest.$ac_ext
21887fi
21888
21889fi
21890
21891MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
21892fi
21893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21894$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21895
21896if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21897	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21898	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21899	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21900else
21901	MALLOC_ZERO_CFLAGS=""
21902	XMALLOC_ZERO_CFLAGS=""
21903	XTMALLOC_ZERO_CFLAGS=""
21904fi
21905
21906
21907
21908
21909
21910
21911ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
21912
21913cat >confcache <<\_ACEOF
21914# This file is a shell script that caches the results of configure
21915# tests run on this system so they can be shared between configure
21916# scripts and configure runs, see configure's option --config-cache.
21917# It is not useful on other systems.  If it contains results you don't
21918# want to keep, you may remove or edit it.
21919#
21920# config.status only pays attention to the cache file if you give it
21921# the --recheck option to rerun configure.
21922#
21923# `ac_cv_env_foo' variables (set or unset) will be overridden when
21924# loading this file, other *unset* `ac_cv_foo' will be assigned the
21925# following values.
21926
21927_ACEOF
21928
21929# The following way of writing the cache mishandles newlines in values,
21930# but we know of no workaround that is simple, portable, and efficient.
21931# So, we kill variables containing newlines.
21932# Ultrix sh set writes to stderr and can't be redirected directly,
21933# and sets the high bit in the cache file unless we assign to the vars.
21934(
21935  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21936    eval ac_val=\$$ac_var
21937    case $ac_val in #(
21938    *${as_nl}*)
21939      case $ac_var in #(
21940      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21942      esac
21943      case $ac_var in #(
21944      _ | IFS | as_nl) ;; #(
21945      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21946      *) { eval $ac_var=; unset $ac_var;} ;;
21947      esac ;;
21948    esac
21949  done
21950
21951  (set) 2>&1 |
21952    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21953    *${as_nl}ac_space=\ *)
21954      # `set' does not quote correctly, so add quotes: double-quote
21955      # substitution turns \\\\ into \\, and sed turns \\ into \.
21956      sed -n \
21957	"s/'/'\\\\''/g;
21958	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21959      ;; #(
21960    *)
21961      # `set' quotes correctly as required by POSIX, so do not add quotes.
21962      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21963      ;;
21964    esac |
21965    sort
21966) |
21967  sed '
21968     /^ac_cv_env_/b end
21969     t clear
21970     :clear
21971     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21972     t end
21973     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21974     :end' >>confcache
21975if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21976  if test -w "$cache_file"; then
21977    if test "x$cache_file" != "x/dev/null"; then
21978      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21979$as_echo "$as_me: updating cache $cache_file" >&6;}
21980      if test ! -f "$cache_file" || test -h "$cache_file"; then
21981	cat confcache >"$cache_file"
21982      else
21983        case $cache_file in #(
21984        */* | ?:*)
21985	  mv -f confcache "$cache_file"$$ &&
21986	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21987        *)
21988	  mv -f confcache "$cache_file" ;;
21989	esac
21990      fi
21991    fi
21992  else
21993    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21994$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21995  fi
21996fi
21997rm -f confcache
21998
21999test "x$prefix" = xNONE && prefix=$ac_default_prefix
22000# Let make expand exec_prefix.
22001test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22002
22003DEFS=-DHAVE_CONFIG_H
22004
22005ac_libobjs=
22006ac_ltlibobjs=
22007U=
22008for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22009  # 1. Remove the extension, and $U if already installed.
22010  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22011  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22012  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22013  #    will be set to the directory where LIBOBJS objects are built.
22014  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22015  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22016done
22017LIBOBJS=$ac_libobjs
22018
22019LTLIBOBJS=$ac_ltlibobjs
22020
22021
22022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22023$as_echo_n "checking that generated files are newer than configure... " >&6; }
22024   if test -n "$am_sleep_pid"; then
22025     # Hide warnings about reused PIDs.
22026     wait $am_sleep_pid 2>/dev/null
22027   fi
22028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22029$as_echo "done" >&6; }
22030if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22031  as_fn_error $? "conditional \"AMDEP\" was never defined.
22032Usually this means the macro was only invoked conditionally." "$LINENO" 5
22033fi
22034if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22035  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22036Usually this means the macro was only invoked conditionally." "$LINENO" 5
22037fi
22038 if test -n "$EXEEXT"; then
22039  am__EXEEXT_TRUE=
22040  am__EXEEXT_FALSE='#'
22041else
22042  am__EXEEXT_TRUE='#'
22043  am__EXEEXT_FALSE=
22044fi
22045
22046if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
22047  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
22048Usually this means the macro was only invoked conditionally." "$LINENO" 5
22049fi
22050if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
22051  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
22052Usually this means the macro was only invoked conditionally." "$LINENO" 5
22053fi
22054if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
22055  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
22056Usually this means the macro was only invoked conditionally." "$LINENO" 5
22057fi
22058if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
22059  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
22060Usually this means the macro was only invoked conditionally." "$LINENO" 5
22061fi
22062if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
22063  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
22064Usually this means the macro was only invoked conditionally." "$LINENO" 5
22065fi
22066if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
22067  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
22068Usually this means the macro was only invoked conditionally." "$LINENO" 5
22069fi
22070if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
22071  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
22072Usually this means the macro was only invoked conditionally." "$LINENO" 5
22073fi
22074if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
22075  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
22076Usually this means the macro was only invoked conditionally." "$LINENO" 5
22077fi
22078if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
22079  as_fn_error $? "conditional \"OS2\" was never defined.
22080Usually this means the macro was only invoked conditionally." "$LINENO" 5
22081fi
22082if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
22083  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
22084Usually this means the macro was only invoked conditionally." "$LINENO" 5
22085fi
22086if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
22087  as_fn_error $? "conditional \"XCMS\" was never defined.
22088Usually this means the macro was only invoked conditionally." "$LINENO" 5
22089fi
22090if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
22091  as_fn_error $? "conditional \"XLOCALE\" was never defined.
22092Usually this means the macro was only invoked conditionally." "$LINENO" 5
22093fi
22094if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
22095  as_fn_error $? "conditional \"XKB\" was never defined.
22096Usually this means the macro was only invoked conditionally." "$LINENO" 5
22097fi
22098if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
22099  as_fn_error $? "conditional \"LINT\" was never defined.
22100Usually this means the macro was only invoked conditionally." "$LINENO" 5
22101fi
22102if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
22103  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
22104Usually this means the macro was only invoked conditionally." "$LINENO" 5
22105fi
22106
22107: "${CONFIG_STATUS=./config.status}"
22108ac_write_fail=0
22109ac_clean_files_save=$ac_clean_files
22110ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22111{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22112$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22113as_write_fail=0
22114cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22115#! $SHELL
22116# Generated by $as_me.
22117# Run this file to recreate the current configuration.
22118# Compiler output produced by configure, useful for debugging
22119# configure, is in config.log if it exists.
22120
22121debug=false
22122ac_cs_recheck=false
22123ac_cs_silent=false
22124
22125SHELL=\${CONFIG_SHELL-$SHELL}
22126export SHELL
22127_ASEOF
22128cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22129## -------------------- ##
22130## M4sh Initialization. ##
22131## -------------------- ##
22132
22133# Be more Bourne compatible
22134DUALCASE=1; export DUALCASE # for MKS sh
22135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22136  emulate sh
22137  NULLCMD=:
22138  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22139  # is contrary to our usage.  Disable this feature.
22140  alias -g '${1+"$@"}'='"$@"'
22141  setopt NO_GLOB_SUBST
22142else
22143  case `(set -o) 2>/dev/null` in #(
22144  *posix*) :
22145    set -o posix ;; #(
22146  *) :
22147     ;;
22148esac
22149fi
22150
22151
22152as_nl='
22153'
22154export as_nl
22155# Printing a long string crashes Solaris 7 /usr/bin/printf.
22156as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22159# Prefer a ksh shell builtin over an external printf program on Solaris,
22160# but without wasting forks for bash or zsh.
22161if test -z "$BASH_VERSION$ZSH_VERSION" \
22162    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22163  as_echo='print -r --'
22164  as_echo_n='print -rn --'
22165elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22166  as_echo='printf %s\n'
22167  as_echo_n='printf %s'
22168else
22169  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22170    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22171    as_echo_n='/usr/ucb/echo -n'
22172  else
22173    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22174    as_echo_n_body='eval
22175      arg=$1;
22176      case $arg in #(
22177      *"$as_nl"*)
22178	expr "X$arg" : "X\\(.*\\)$as_nl";
22179	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22180      esac;
22181      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22182    '
22183    export as_echo_n_body
22184    as_echo_n='sh -c $as_echo_n_body as_echo'
22185  fi
22186  export as_echo_body
22187  as_echo='sh -c $as_echo_body as_echo'
22188fi
22189
22190# The user is always right.
22191if test "${PATH_SEPARATOR+set}" != set; then
22192  PATH_SEPARATOR=:
22193  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22194    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22195      PATH_SEPARATOR=';'
22196  }
22197fi
22198
22199
22200# IFS
22201# We need space, tab and new line, in precisely that order.  Quoting is
22202# there to prevent editors from complaining about space-tab.
22203# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22204# splitting by setting IFS to empty value.)
22205IFS=" ""	$as_nl"
22206
22207# Find who we are.  Look in the path if we contain no directory separator.
22208as_myself=
22209case $0 in #((
22210  *[\\/]* ) as_myself=$0 ;;
22211  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22212for as_dir in $PATH
22213do
22214  IFS=$as_save_IFS
22215  test -z "$as_dir" && as_dir=.
22216    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22217  done
22218IFS=$as_save_IFS
22219
22220     ;;
22221esac
22222# We did not find ourselves, most probably we were run as `sh COMMAND'
22223# in which case we are not to be found in the path.
22224if test "x$as_myself" = x; then
22225  as_myself=$0
22226fi
22227if test ! -f "$as_myself"; then
22228  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22229  exit 1
22230fi
22231
22232# Unset variables that we do not need and which cause bugs (e.g. in
22233# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22234# suppresses any "Segmentation fault" message there.  '((' could
22235# trigger a bug in pdksh 5.2.14.
22236for as_var in BASH_ENV ENV MAIL MAILPATH
22237do eval test x\${$as_var+set} = xset \
22238  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22239done
22240PS1='$ '
22241PS2='> '
22242PS4='+ '
22243
22244# NLS nuisances.
22245LC_ALL=C
22246export LC_ALL
22247LANGUAGE=C
22248export LANGUAGE
22249
22250# CDPATH.
22251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22252
22253
22254# as_fn_error STATUS ERROR [LINENO LOG_FD]
22255# ----------------------------------------
22256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22258# script with STATUS, using 1 if that was 0.
22259as_fn_error ()
22260{
22261  as_status=$1; test $as_status -eq 0 && as_status=1
22262  if test "$4"; then
22263    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22264    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22265  fi
22266  $as_echo "$as_me: error: $2" >&2
22267  as_fn_exit $as_status
22268} # as_fn_error
22269
22270
22271# as_fn_set_status STATUS
22272# -----------------------
22273# Set $? to STATUS, without forking.
22274as_fn_set_status ()
22275{
22276  return $1
22277} # as_fn_set_status
22278
22279# as_fn_exit STATUS
22280# -----------------
22281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22282as_fn_exit ()
22283{
22284  set +e
22285  as_fn_set_status $1
22286  exit $1
22287} # as_fn_exit
22288
22289# as_fn_unset VAR
22290# ---------------
22291# Portably unset VAR.
22292as_fn_unset ()
22293{
22294  { eval $1=; unset $1;}
22295}
22296as_unset=as_fn_unset
22297# as_fn_append VAR VALUE
22298# ----------------------
22299# Append the text in VALUE to the end of the definition contained in VAR. Take
22300# advantage of any shell optimizations that allow amortized linear growth over
22301# repeated appends, instead of the typical quadratic growth present in naive
22302# implementations.
22303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22304  eval 'as_fn_append ()
22305  {
22306    eval $1+=\$2
22307  }'
22308else
22309  as_fn_append ()
22310  {
22311    eval $1=\$$1\$2
22312  }
22313fi # as_fn_append
22314
22315# as_fn_arith ARG...
22316# ------------------
22317# Perform arithmetic evaluation on the ARGs, and store the result in the
22318# global $as_val. Take advantage of shells that can avoid forks. The arguments
22319# must be portable across $(()) and expr.
22320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22321  eval 'as_fn_arith ()
22322  {
22323    as_val=$(( $* ))
22324  }'
22325else
22326  as_fn_arith ()
22327  {
22328    as_val=`expr "$@" || test $? -eq 1`
22329  }
22330fi # as_fn_arith
22331
22332
22333if expr a : '\(a\)' >/dev/null 2>&1 &&
22334   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22335  as_expr=expr
22336else
22337  as_expr=false
22338fi
22339
22340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22341  as_basename=basename
22342else
22343  as_basename=false
22344fi
22345
22346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22347  as_dirname=dirname
22348else
22349  as_dirname=false
22350fi
22351
22352as_me=`$as_basename -- "$0" ||
22353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22354	 X"$0" : 'X\(//\)$' \| \
22355	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22356$as_echo X/"$0" |
22357    sed '/^.*\/\([^/][^/]*\)\/*$/{
22358	    s//\1/
22359	    q
22360	  }
22361	  /^X\/\(\/\/\)$/{
22362	    s//\1/
22363	    q
22364	  }
22365	  /^X\/\(\/\).*/{
22366	    s//\1/
22367	    q
22368	  }
22369	  s/.*/./; q'`
22370
22371# Avoid depending upon Character Ranges.
22372as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22374as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22375as_cr_digits='0123456789'
22376as_cr_alnum=$as_cr_Letters$as_cr_digits
22377
22378ECHO_C= ECHO_N= ECHO_T=
22379case `echo -n x` in #(((((
22380-n*)
22381  case `echo 'xy\c'` in
22382  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22383  xy)  ECHO_C='\c';;
22384  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22385       ECHO_T='	';;
22386  esac;;
22387*)
22388  ECHO_N='-n';;
22389esac
22390
22391rm -f conf$$ conf$$.exe conf$$.file
22392if test -d conf$$.dir; then
22393  rm -f conf$$.dir/conf$$.file
22394else
22395  rm -f conf$$.dir
22396  mkdir conf$$.dir 2>/dev/null
22397fi
22398if (echo >conf$$.file) 2>/dev/null; then
22399  if ln -s conf$$.file conf$$ 2>/dev/null; then
22400    as_ln_s='ln -s'
22401    # ... but there are two gotchas:
22402    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22403    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22404    # In both cases, we have to default to `cp -pR'.
22405    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22406      as_ln_s='cp -pR'
22407  elif ln conf$$.file conf$$ 2>/dev/null; then
22408    as_ln_s=ln
22409  else
22410    as_ln_s='cp -pR'
22411  fi
22412else
22413  as_ln_s='cp -pR'
22414fi
22415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22416rmdir conf$$.dir 2>/dev/null
22417
22418
22419# as_fn_mkdir_p
22420# -------------
22421# Create "$as_dir" as a directory, including parents if necessary.
22422as_fn_mkdir_p ()
22423{
22424
22425  case $as_dir in #(
22426  -*) as_dir=./$as_dir;;
22427  esac
22428  test -d "$as_dir" || eval $as_mkdir_p || {
22429    as_dirs=
22430    while :; do
22431      case $as_dir in #(
22432      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22433      *) as_qdir=$as_dir;;
22434      esac
22435      as_dirs="'$as_qdir' $as_dirs"
22436      as_dir=`$as_dirname -- "$as_dir" ||
22437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22438	 X"$as_dir" : 'X\(//\)[^/]' \| \
22439	 X"$as_dir" : 'X\(//\)$' \| \
22440	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22441$as_echo X"$as_dir" |
22442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22443	    s//\1/
22444	    q
22445	  }
22446	  /^X\(\/\/\)[^/].*/{
22447	    s//\1/
22448	    q
22449	  }
22450	  /^X\(\/\/\)$/{
22451	    s//\1/
22452	    q
22453	  }
22454	  /^X\(\/\).*/{
22455	    s//\1/
22456	    q
22457	  }
22458	  s/.*/./; q'`
22459      test -d "$as_dir" && break
22460    done
22461    test -z "$as_dirs" || eval "mkdir $as_dirs"
22462  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22463
22464
22465} # as_fn_mkdir_p
22466if mkdir -p . 2>/dev/null; then
22467  as_mkdir_p='mkdir -p "$as_dir"'
22468else
22469  test -d ./-p && rmdir ./-p
22470  as_mkdir_p=false
22471fi
22472
22473
22474# as_fn_executable_p FILE
22475# -----------------------
22476# Test if FILE is an executable regular file.
22477as_fn_executable_p ()
22478{
22479  test -f "$1" && test -x "$1"
22480} # as_fn_executable_p
22481as_test_x='test -x'
22482as_executable_p=as_fn_executable_p
22483
22484# Sed expression to map a string onto a valid CPP name.
22485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22486
22487# Sed expression to map a string onto a valid variable name.
22488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22489
22490
22491exec 6>&1
22492## ----------------------------------- ##
22493## Main body of $CONFIG_STATUS script. ##
22494## ----------------------------------- ##
22495_ASEOF
22496test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22497
22498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22499# Save the log message, to keep $0 and so on meaningful, and to
22500# report actual input values of CONFIG_FILES etc. instead of their
22501# values after options handling.
22502ac_log="
22503This file was extended by libX11 $as_me 1.7.0, which was
22504generated by GNU Autoconf 2.69.  Invocation command line was
22505
22506  CONFIG_FILES    = $CONFIG_FILES
22507  CONFIG_HEADERS  = $CONFIG_HEADERS
22508  CONFIG_LINKS    = $CONFIG_LINKS
22509  CONFIG_COMMANDS = $CONFIG_COMMANDS
22510  $ $0 $@
22511
22512on `(hostname || uname -n) 2>/dev/null | sed 1q`
22513"
22514
22515_ACEOF
22516
22517case $ac_config_files in *"
22518"*) set x $ac_config_files; shift; ac_config_files=$*;;
22519esac
22520
22521case $ac_config_headers in *"
22522"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22523esac
22524
22525
22526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22527# Files that config.status was made for.
22528config_files="$ac_config_files"
22529config_headers="$ac_config_headers"
22530config_commands="$ac_config_commands"
22531
22532_ACEOF
22533
22534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535ac_cs_usage="\
22536\`$as_me' instantiates files and other configuration actions
22537from templates according to the current configuration.  Unless the files
22538and actions are specified as TAGs, all are instantiated by default.
22539
22540Usage: $0 [OPTION]... [TAG]...
22541
22542  -h, --help       print this help, then exit
22543  -V, --version    print version number and configuration settings, then exit
22544      --config     print configuration, then exit
22545  -q, --quiet, --silent
22546                   do not print progress messages
22547  -d, --debug      don't remove temporary files
22548      --recheck    update $as_me by reconfiguring in the same conditions
22549      --file=FILE[:TEMPLATE]
22550                   instantiate the configuration file FILE
22551      --header=FILE[:TEMPLATE]
22552                   instantiate the configuration header FILE
22553
22554Configuration files:
22555$config_files
22556
22557Configuration headers:
22558$config_headers
22559
22560Configuration commands:
22561$config_commands
22562
22563Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
22564
22565_ACEOF
22566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22568ac_cs_version="\\
22569libX11 config.status 1.7.0
22570configured by $0, generated by GNU Autoconf 2.69,
22571  with options \\"\$ac_cs_config\\"
22572
22573Copyright (C) 2012 Free Software Foundation, Inc.
22574This config.status script is free software; the Free Software Foundation
22575gives unlimited permission to copy, distribute and modify it."
22576
22577ac_pwd='$ac_pwd'
22578srcdir='$srcdir'
22579INSTALL='$INSTALL'
22580MKDIR_P='$MKDIR_P'
22581AWK='$AWK'
22582test -n "\$AWK" || AWK=awk
22583_ACEOF
22584
22585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22586# The default lists apply if the user does not specify any file.
22587ac_need_defaults=:
22588while test $# != 0
22589do
22590  case $1 in
22591  --*=?*)
22592    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22593    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22594    ac_shift=:
22595    ;;
22596  --*=)
22597    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22598    ac_optarg=
22599    ac_shift=:
22600    ;;
22601  *)
22602    ac_option=$1
22603    ac_optarg=$2
22604    ac_shift=shift
22605    ;;
22606  esac
22607
22608  case $ac_option in
22609  # Handling of the options.
22610  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22611    ac_cs_recheck=: ;;
22612  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22613    $as_echo "$ac_cs_version"; exit ;;
22614  --config | --confi | --conf | --con | --co | --c )
22615    $as_echo "$ac_cs_config"; exit ;;
22616  --debug | --debu | --deb | --de | --d | -d )
22617    debug=: ;;
22618  --file | --fil | --fi | --f )
22619    $ac_shift
22620    case $ac_optarg in
22621    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22622    '') as_fn_error $? "missing file argument" ;;
22623    esac
22624    as_fn_append CONFIG_FILES " '$ac_optarg'"
22625    ac_need_defaults=false;;
22626  --header | --heade | --head | --hea )
22627    $ac_shift
22628    case $ac_optarg in
22629    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22630    esac
22631    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22632    ac_need_defaults=false;;
22633  --he | --h)
22634    # Conflict between --help and --header
22635    as_fn_error $? "ambiguous option: \`$1'
22636Try \`$0 --help' for more information.";;
22637  --help | --hel | -h )
22638    $as_echo "$ac_cs_usage"; exit ;;
22639  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22640  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22641    ac_cs_silent=: ;;
22642
22643  # This is an error.
22644  -*) as_fn_error $? "unrecognized option: \`$1'
22645Try \`$0 --help' for more information." ;;
22646
22647  *) as_fn_append ac_config_targets " $1"
22648     ac_need_defaults=false ;;
22649
22650  esac
22651  shift
22652done
22653
22654ac_configure_extra_args=
22655
22656if $ac_cs_silent; then
22657  exec 6>/dev/null
22658  ac_configure_extra_args="$ac_configure_extra_args --silent"
22659fi
22660
22661_ACEOF
22662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22663if \$ac_cs_recheck; then
22664  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22665  shift
22666  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22667  CONFIG_SHELL='$SHELL'
22668  export CONFIG_SHELL
22669  exec "\$@"
22670fi
22671
22672_ACEOF
22673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22674exec 5>>config.log
22675{
22676  echo
22677  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22678## Running $as_me. ##
22679_ASBOX
22680  $as_echo "$ac_log"
22681} >&5
22682
22683_ACEOF
22684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22685#
22686# INIT-COMMANDS
22687#
22688AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22689
22690
22691# The HP-UX ksh and POSIX shell print the target directory to stdout
22692# if CDPATH is set.
22693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22694
22695sed_quote_subst='$sed_quote_subst'
22696double_quote_subst='$double_quote_subst'
22697delay_variable_subst='$delay_variable_subst'
22698macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22699macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22700enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22701enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22702pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22703enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22704shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22705SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22706ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22707PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22708host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22709host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22710host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22711build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22712build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22713build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22714SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22715Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22716GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22717EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22718FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22719LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22720NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22721LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22722max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22723ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22724exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22725lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22726lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22727lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22728lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22729lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22730reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22731reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22732OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22733deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22734file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22735file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22736want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22737DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22738sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22741archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22742STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22743RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22744old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22745old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22746old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22747lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22748CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22749CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22750compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22751GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22752lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22754lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22755lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22756lt_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"`'
22757lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22758nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22759lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22760lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22761objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22762MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22763lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22764lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22765lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22766lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22767lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22768need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22769MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22770DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22771NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22772LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22773OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22774OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22775libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22776shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22777extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22778archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22779enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22780export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22781whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22782compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22783old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22784old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22785archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22786archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22787module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22788module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22789with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22790allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22791no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22792hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22793hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22794hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22795hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22796hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22797hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22798hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22799inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22800link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22801always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22802export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22803exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22804include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22805prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22806postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22807file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22808variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22809need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22810need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22811version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22812runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22813shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22814shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22815libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22816library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22817soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22818install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22819postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22820postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22821finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22822finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22823hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22824sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22825configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22826configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22827hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22828enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22829enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22830enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22831old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22832striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22833
22834LTCC='$LTCC'
22835LTCFLAGS='$LTCFLAGS'
22836compiler='$compiler_DEFAULT'
22837
22838# A function that is used when there is no print builtin or printf.
22839func_fallback_echo ()
22840{
22841  eval 'cat <<_LTECHO_EOF
22842\$1
22843_LTECHO_EOF'
22844}
22845
22846# Quote evaled strings.
22847for var in SHELL \
22848ECHO \
22849PATH_SEPARATOR \
22850SED \
22851GREP \
22852EGREP \
22853FGREP \
22854LD \
22855NM \
22856LN_S \
22857lt_SP2NL \
22858lt_NL2SP \
22859reload_flag \
22860OBJDUMP \
22861deplibs_check_method \
22862file_magic_cmd \
22863file_magic_glob \
22864want_nocaseglob \
22865DLLTOOL \
22866sharedlib_from_linklib_cmd \
22867AR \
22868AR_FLAGS \
22869archiver_list_spec \
22870STRIP \
22871RANLIB \
22872CC \
22873CFLAGS \
22874compiler \
22875lt_cv_sys_global_symbol_pipe \
22876lt_cv_sys_global_symbol_to_cdecl \
22877lt_cv_sys_global_symbol_to_import \
22878lt_cv_sys_global_symbol_to_c_name_address \
22879lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22880lt_cv_nm_interface \
22881nm_file_list_spec \
22882lt_cv_truncate_bin \
22883lt_prog_compiler_no_builtin_flag \
22884lt_prog_compiler_pic \
22885lt_prog_compiler_wl \
22886lt_prog_compiler_static \
22887lt_cv_prog_compiler_c_o \
22888need_locks \
22889MANIFEST_TOOL \
22890DSYMUTIL \
22891NMEDIT \
22892LIPO \
22893OTOOL \
22894OTOOL64 \
22895shrext_cmds \
22896export_dynamic_flag_spec \
22897whole_archive_flag_spec \
22898compiler_needs_object \
22899with_gnu_ld \
22900allow_undefined_flag \
22901no_undefined_flag \
22902hardcode_libdir_flag_spec \
22903hardcode_libdir_separator \
22904exclude_expsyms \
22905include_expsyms \
22906file_list_spec \
22907variables_saved_for_relink \
22908libname_spec \
22909library_names_spec \
22910soname_spec \
22911install_override_mode \
22912finish_eval \
22913old_striplib \
22914striplib; do
22915    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22916    *[\\\\\\\`\\"\\\$]*)
22917      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22918      ;;
22919    *)
22920      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22921      ;;
22922    esac
22923done
22924
22925# Double-quote double-evaled strings.
22926for var in reload_cmds \
22927old_postinstall_cmds \
22928old_postuninstall_cmds \
22929old_archive_cmds \
22930extract_expsyms_cmds \
22931old_archive_from_new_cmds \
22932old_archive_from_expsyms_cmds \
22933archive_cmds \
22934archive_expsym_cmds \
22935module_cmds \
22936module_expsym_cmds \
22937export_symbols_cmds \
22938prelink_cmds \
22939postlink_cmds \
22940postinstall_cmds \
22941postuninstall_cmds \
22942finish_cmds \
22943sys_lib_search_path_spec \
22944configure_time_dlsearch_path \
22945configure_time_lt_sys_library_path; do
22946    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22947    *[\\\\\\\`\\"\\\$]*)
22948      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22949      ;;
22950    *)
22951      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22952      ;;
22953    esac
22954done
22955
22956ac_aux_dir='$ac_aux_dir'
22957
22958# See if we are running on zsh, and set the options that allow our
22959# commands through without removal of \ escapes INIT.
22960if test -n "\${ZSH_VERSION+set}"; then
22961   setopt NO_GLOB_SUBST
22962fi
22963
22964
22965    PACKAGE='$PACKAGE'
22966    VERSION='$VERSION'
22967    RM='$RM'
22968    ofile='$ofile'
22969
22970
22971
22972
22973_ACEOF
22974
22975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22976
22977# Handling of arguments.
22978for ac_config_target in $ac_config_targets
22979do
22980  case $ac_config_target in
22981    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22982    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
22983    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22984    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22985    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22986    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22987    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22988    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
22989    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22990    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
22991    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
22992    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
22993    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
22994    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
22995    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
22996    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
22997    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
22998    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
22999    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
23000    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
23001    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
23002    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
23003    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
23004    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
23005    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
23006    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
23007    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
23008    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
23009    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
23010    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
23011    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
23012    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
23013    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
23014    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
23015
23016  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23017  esac
23018done
23019
23020
23021# If the user did not use the arguments to specify the items to instantiate,
23022# then the envvar interface is used.  Set only those that are not.
23023# We use the long form for the default assignment because of an extremely
23024# bizarre bug on SunOS 4.1.3.
23025if $ac_need_defaults; then
23026  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23027  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23028  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23029fi
23030
23031# Have a temporary directory for convenience.  Make it in the build tree
23032# simply because there is no reason against having it here, and in addition,
23033# creating and moving files from /tmp can sometimes cause problems.
23034# Hook for its removal unless debugging.
23035# Note that there is a small window in which the directory will not be cleaned:
23036# after its creation but before its name has been assigned to `$tmp'.
23037$debug ||
23038{
23039  tmp= ac_tmp=
23040  trap 'exit_status=$?
23041  : "${ac_tmp:=$tmp}"
23042  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23043' 0
23044  trap 'as_fn_exit 1' 1 2 13 15
23045}
23046# Create a (secure) tmp directory for tmp files.
23047
23048{
23049  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23050  test -d "$tmp"
23051}  ||
23052{
23053  tmp=./conf$$-$RANDOM
23054  (umask 077 && mkdir "$tmp")
23055} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23056ac_tmp=$tmp
23057
23058# Set up the scripts for CONFIG_FILES section.
23059# No need to generate them if there are no CONFIG_FILES.
23060# This happens for instance with `./config.status config.h'.
23061if test -n "$CONFIG_FILES"; then
23062
23063
23064ac_cr=`echo X | tr X '\015'`
23065# On cygwin, bash can eat \r inside `` if the user requested igncr.
23066# But we know of no other shell where ac_cr would be empty at this
23067# point, so we can use a bashism as a fallback.
23068if test "x$ac_cr" = x; then
23069  eval ac_cr=\$\'\\r\'
23070fi
23071ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23072if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23073  ac_cs_awk_cr='\\r'
23074else
23075  ac_cs_awk_cr=$ac_cr
23076fi
23077
23078echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23079_ACEOF
23080
23081
23082{
23083  echo "cat >conf$$subs.awk <<_ACEOF" &&
23084  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23085  echo "_ACEOF"
23086} >conf$$subs.sh ||
23087  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23088ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23089ac_delim='%!_!# '
23090for ac_last_try in false false false false false :; do
23091  . ./conf$$subs.sh ||
23092    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23093
23094  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23095  if test $ac_delim_n = $ac_delim_num; then
23096    break
23097  elif $ac_last_try; then
23098    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23099  else
23100    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23101  fi
23102done
23103rm -f conf$$subs.sh
23104
23105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23106cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23107_ACEOF
23108sed -n '
23109h
23110s/^/S["/; s/!.*/"]=/
23111p
23112g
23113s/^[^!]*!//
23114:repl
23115t repl
23116s/'"$ac_delim"'$//
23117t delim
23118:nl
23119h
23120s/\(.\{148\}\)..*/\1/
23121t more1
23122s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23123p
23124n
23125b repl
23126:more1
23127s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23128p
23129g
23130s/.\{148\}//
23131t nl
23132:delim
23133h
23134s/\(.\{148\}\)..*/\1/
23135t more2
23136s/["\\]/\\&/g; s/^/"/; s/$/"/
23137p
23138b
23139:more2
23140s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23141p
23142g
23143s/.\{148\}//
23144t delim
23145' <conf$$subs.awk | sed '
23146/^[^""]/{
23147  N
23148  s/\n//
23149}
23150' >>$CONFIG_STATUS || ac_write_fail=1
23151rm -f conf$$subs.awk
23152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23153_ACAWK
23154cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23155  for (key in S) S_is_set[key] = 1
23156  FS = ""
23157
23158}
23159{
23160  line = $ 0
23161  nfields = split(line, field, "@")
23162  substed = 0
23163  len = length(field[1])
23164  for (i = 2; i < nfields; i++) {
23165    key = field[i]
23166    keylen = length(key)
23167    if (S_is_set[key]) {
23168      value = S[key]
23169      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23170      len += length(value) + length(field[++i])
23171      substed = 1
23172    } else
23173      len += 1 + keylen
23174  }
23175
23176  print line
23177}
23178
23179_ACAWK
23180_ACEOF
23181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23182if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23183  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23184else
23185  cat
23186fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23187  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23188_ACEOF
23189
23190# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23191# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23192# trailing colons and then remove the whole line if VPATH becomes empty
23193# (actually we leave an empty line to preserve line numbers).
23194if test "x$srcdir" = x.; then
23195  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23196h
23197s///
23198s/^/:/
23199s/[	 ]*$/:/
23200s/:\$(srcdir):/:/g
23201s/:\${srcdir}:/:/g
23202s/:@srcdir@:/:/g
23203s/^:*//
23204s/:*$//
23205x
23206s/\(=[	 ]*\).*/\1/
23207G
23208s/\n//
23209s/^[^=]*=[	 ]*$//
23210}'
23211fi
23212
23213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23214fi # test -n "$CONFIG_FILES"
23215
23216# Set up the scripts for CONFIG_HEADERS section.
23217# No need to generate them if there are no CONFIG_HEADERS.
23218# This happens for instance with `./config.status Makefile'.
23219if test -n "$CONFIG_HEADERS"; then
23220cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23221BEGIN {
23222_ACEOF
23223
23224# Transform confdefs.h into an awk script `defines.awk', embedded as
23225# here-document in config.status, that substitutes the proper values into
23226# config.h.in to produce config.h.
23227
23228# Create a delimiter string that does not exist in confdefs.h, to ease
23229# handling of long lines.
23230ac_delim='%!_!# '
23231for ac_last_try in false false :; do
23232  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23233  if test -z "$ac_tt"; then
23234    break
23235  elif $ac_last_try; then
23236    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23237  else
23238    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23239  fi
23240done
23241
23242# For the awk script, D is an array of macro values keyed by name,
23243# likewise P contains macro parameters if any.  Preserve backslash
23244# newline sequences.
23245
23246ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23247sed -n '
23248s/.\{148\}/&'"$ac_delim"'/g
23249t rset
23250:rset
23251s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23252t def
23253d
23254:def
23255s/\\$//
23256t bsnl
23257s/["\\]/\\&/g
23258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23259D["\1"]=" \3"/p
23260s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23261d
23262:bsnl
23263s/["\\]/\\&/g
23264s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23265D["\1"]=" \3\\\\\\n"\\/p
23266t cont
23267s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23268t cont
23269d
23270:cont
23271n
23272s/.\{148\}/&'"$ac_delim"'/g
23273t clear
23274:clear
23275s/\\$//
23276t bsnlc
23277s/["\\]/\\&/g; s/^/"/; s/$/"/p
23278d
23279:bsnlc
23280s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23281b cont
23282' <confdefs.h | sed '
23283s/'"$ac_delim"'/"\\\
23284"/g' >>$CONFIG_STATUS || ac_write_fail=1
23285
23286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23287  for (key in D) D_is_set[key] = 1
23288  FS = ""
23289}
23290/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23291  line = \$ 0
23292  split(line, arg, " ")
23293  if (arg[1] == "#") {
23294    defundef = arg[2]
23295    mac1 = arg[3]
23296  } else {
23297    defundef = substr(arg[1], 2)
23298    mac1 = arg[2]
23299  }
23300  split(mac1, mac2, "(") #)
23301  macro = mac2[1]
23302  prefix = substr(line, 1, index(line, defundef) - 1)
23303  if (D_is_set[macro]) {
23304    # Preserve the white space surrounding the "#".
23305    print prefix "define", macro P[macro] D[macro]
23306    next
23307  } else {
23308    # Replace #undef with comments.  This is necessary, for example,
23309    # in the case of _POSIX_SOURCE, which is predefined and required
23310    # on some systems where configure will not decide to define it.
23311    if (defundef == "undef") {
23312      print "/*", prefix defundef, macro, "*/"
23313      next
23314    }
23315  }
23316}
23317{ print }
23318_ACAWK
23319_ACEOF
23320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23321  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23322fi # test -n "$CONFIG_HEADERS"
23323
23324
23325eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23326shift
23327for ac_tag
23328do
23329  case $ac_tag in
23330  :[FHLC]) ac_mode=$ac_tag; continue;;
23331  esac
23332  case $ac_mode$ac_tag in
23333  :[FHL]*:*);;
23334  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23335  :[FH]-) ac_tag=-:-;;
23336  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23337  esac
23338  ac_save_IFS=$IFS
23339  IFS=:
23340  set x $ac_tag
23341  IFS=$ac_save_IFS
23342  shift
23343  ac_file=$1
23344  shift
23345
23346  case $ac_mode in
23347  :L) ac_source=$1;;
23348  :[FH])
23349    ac_file_inputs=
23350    for ac_f
23351    do
23352      case $ac_f in
23353      -) ac_f="$ac_tmp/stdin";;
23354      *) # Look for the file first in the build tree, then in the source tree
23355	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23356	 # because $ac_f cannot contain `:'.
23357	 test -f "$ac_f" ||
23358	   case $ac_f in
23359	   [\\/$]*) false;;
23360	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23361	   esac ||
23362	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23363      esac
23364      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23365      as_fn_append ac_file_inputs " '$ac_f'"
23366    done
23367
23368    # Let's still pretend it is `configure' which instantiates (i.e., don't
23369    # use $as_me), people would be surprised to read:
23370    #    /* config.h.  Generated by config.status.  */
23371    configure_input='Generated from '`
23372	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23373	`' by configure.'
23374    if test x"$ac_file" != x-; then
23375      configure_input="$ac_file.  $configure_input"
23376      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23377$as_echo "$as_me: creating $ac_file" >&6;}
23378    fi
23379    # Neutralize special characters interpreted by sed in replacement strings.
23380    case $configure_input in #(
23381    *\&* | *\|* | *\\* )
23382       ac_sed_conf_input=`$as_echo "$configure_input" |
23383       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23384    *) ac_sed_conf_input=$configure_input;;
23385    esac
23386
23387    case $ac_tag in
23388    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23389      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23390    esac
23391    ;;
23392  esac
23393
23394  ac_dir=`$as_dirname -- "$ac_file" ||
23395$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396	 X"$ac_file" : 'X\(//\)[^/]' \| \
23397	 X"$ac_file" : 'X\(//\)$' \| \
23398	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23399$as_echo X"$ac_file" |
23400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23401	    s//\1/
23402	    q
23403	  }
23404	  /^X\(\/\/\)[^/].*/{
23405	    s//\1/
23406	    q
23407	  }
23408	  /^X\(\/\/\)$/{
23409	    s//\1/
23410	    q
23411	  }
23412	  /^X\(\/\).*/{
23413	    s//\1/
23414	    q
23415	  }
23416	  s/.*/./; q'`
23417  as_dir="$ac_dir"; as_fn_mkdir_p
23418  ac_builddir=.
23419
23420case "$ac_dir" in
23421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23422*)
23423  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23424  # A ".." for each directory in $ac_dir_suffix.
23425  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23426  case $ac_top_builddir_sub in
23427  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23428  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23429  esac ;;
23430esac
23431ac_abs_top_builddir=$ac_pwd
23432ac_abs_builddir=$ac_pwd$ac_dir_suffix
23433# for backward compatibility:
23434ac_top_builddir=$ac_top_build_prefix
23435
23436case $srcdir in
23437  .)  # We are building in place.
23438    ac_srcdir=.
23439    ac_top_srcdir=$ac_top_builddir_sub
23440    ac_abs_top_srcdir=$ac_pwd ;;
23441  [\\/]* | ?:[\\/]* )  # Absolute name.
23442    ac_srcdir=$srcdir$ac_dir_suffix;
23443    ac_top_srcdir=$srcdir
23444    ac_abs_top_srcdir=$srcdir ;;
23445  *) # Relative name.
23446    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23447    ac_top_srcdir=$ac_top_build_prefix$srcdir
23448    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23449esac
23450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23451
23452
23453  case $ac_mode in
23454  :F)
23455  #
23456  # CONFIG_FILE
23457  #
23458
23459  case $INSTALL in
23460  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23461  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23462  esac
23463  ac_MKDIR_P=$MKDIR_P
23464  case $MKDIR_P in
23465  [\\/$]* | ?:[\\/]* ) ;;
23466  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23467  esac
23468_ACEOF
23469
23470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23471# If the template does not know about datarootdir, expand it.
23472# FIXME: This hack should be removed a few years after 2.60.
23473ac_datarootdir_hack=; ac_datarootdir_seen=
23474ac_sed_dataroot='
23475/datarootdir/ {
23476  p
23477  q
23478}
23479/@datadir@/p
23480/@docdir@/p
23481/@infodir@/p
23482/@localedir@/p
23483/@mandir@/p'
23484case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23485*datarootdir*) ac_datarootdir_seen=yes;;
23486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23487  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23488$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23489_ACEOF
23490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23491  ac_datarootdir_hack='
23492  s&@datadir@&$datadir&g
23493  s&@docdir@&$docdir&g
23494  s&@infodir@&$infodir&g
23495  s&@localedir@&$localedir&g
23496  s&@mandir@&$mandir&g
23497  s&\\\${datarootdir}&$datarootdir&g' ;;
23498esac
23499_ACEOF
23500
23501# Neutralize VPATH when `$srcdir' = `.'.
23502# Shell code in configure.ac might set extrasub.
23503# FIXME: do we really want to maintain this feature?
23504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23505ac_sed_extra="$ac_vpsub
23506$extrasub
23507_ACEOF
23508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23509:t
23510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23511s|@configure_input@|$ac_sed_conf_input|;t t
23512s&@top_builddir@&$ac_top_builddir_sub&;t t
23513s&@top_build_prefix@&$ac_top_build_prefix&;t t
23514s&@srcdir@&$ac_srcdir&;t t
23515s&@abs_srcdir@&$ac_abs_srcdir&;t t
23516s&@top_srcdir@&$ac_top_srcdir&;t t
23517s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23518s&@builddir@&$ac_builddir&;t t
23519s&@abs_builddir@&$ac_abs_builddir&;t t
23520s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23521s&@INSTALL@&$ac_INSTALL&;t t
23522s&@MKDIR_P@&$ac_MKDIR_P&;t t
23523$ac_datarootdir_hack
23524"
23525eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23526  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23527
23528test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23529  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23530  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23531      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23533which seems to be undefined.  Please make sure it is defined" >&5
23534$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23535which seems to be undefined.  Please make sure it is defined" >&2;}
23536
23537  rm -f "$ac_tmp/stdin"
23538  case $ac_file in
23539  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23540  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23541  esac \
23542  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23543 ;;
23544  :H)
23545  #
23546  # CONFIG_HEADER
23547  #
23548  if test x"$ac_file" != x-; then
23549    {
23550      $as_echo "/* $configure_input  */" \
23551      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23552    } >"$ac_tmp/config.h" \
23553      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23554    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23555      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23556$as_echo "$as_me: $ac_file is unchanged" >&6;}
23557    else
23558      rm -f "$ac_file"
23559      mv "$ac_tmp/config.h" "$ac_file" \
23560	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23561    fi
23562  else
23563    $as_echo "/* $configure_input  */" \
23564      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23565      || as_fn_error $? "could not create -" "$LINENO" 5
23566  fi
23567# Compute "$ac_file"'s index in $config_headers.
23568_am_arg="$ac_file"
23569_am_stamp_count=1
23570for _am_header in $config_headers :; do
23571  case $_am_header in
23572    $_am_arg | $_am_arg:* )
23573      break ;;
23574    * )
23575      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23576  esac
23577done
23578echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23579$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23580	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23581	 X"$_am_arg" : 'X\(//\)$' \| \
23582	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23583$as_echo X"$_am_arg" |
23584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23585	    s//\1/
23586	    q
23587	  }
23588	  /^X\(\/\/\)[^/].*/{
23589	    s//\1/
23590	    q
23591	  }
23592	  /^X\(\/\/\)$/{
23593	    s//\1/
23594	    q
23595	  }
23596	  /^X\(\/\).*/{
23597	    s//\1/
23598	    q
23599	  }
23600	  s/.*/./; q'`/stamp-h$_am_stamp_count
23601 ;;
23602
23603  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23604$as_echo "$as_me: executing $ac_file commands" >&6;}
23605 ;;
23606  esac
23607
23608
23609  case $ac_file$ac_mode in
23610    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23611  # Older Autoconf quotes --file arguments for eval, but not when files
23612  # are listed without --file.  Let's play safe and only enable the eval
23613  # if we detect the quoting.
23614  # TODO: see whether this extra hack can be removed once we start
23615  # requiring Autoconf 2.70 or later.
23616  case $CONFIG_FILES in #(
23617  *\'*) :
23618    eval set x "$CONFIG_FILES" ;; #(
23619  *) :
23620    set x $CONFIG_FILES ;; #(
23621  *) :
23622     ;;
23623esac
23624  shift
23625  # Used to flag and report bootstrapping failures.
23626  am_rc=0
23627  for am_mf
23628  do
23629    # Strip MF so we end up with the name of the file.
23630    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23631    # Check whether this is an Automake generated Makefile which includes
23632    # dependency-tracking related rules and includes.
23633    # Grep'ing the whole file directly is not great: AIX grep has a line
23634    # limit of 2048, but all sed's we know have understand at least 4000.
23635    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23636      || continue
23637    am_dirpart=`$as_dirname -- "$am_mf" ||
23638$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23639	 X"$am_mf" : 'X\(//\)[^/]' \| \
23640	 X"$am_mf" : 'X\(//\)$' \| \
23641	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23642$as_echo X"$am_mf" |
23643    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23644	    s//\1/
23645	    q
23646	  }
23647	  /^X\(\/\/\)[^/].*/{
23648	    s//\1/
23649	    q
23650	  }
23651	  /^X\(\/\/\)$/{
23652	    s//\1/
23653	    q
23654	  }
23655	  /^X\(\/\).*/{
23656	    s//\1/
23657	    q
23658	  }
23659	  s/.*/./; q'`
23660    am_filepart=`$as_basename -- "$am_mf" ||
23661$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23662	 X"$am_mf" : 'X\(//\)$' \| \
23663	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23664$as_echo X/"$am_mf" |
23665    sed '/^.*\/\([^/][^/]*\)\/*$/{
23666	    s//\1/
23667	    q
23668	  }
23669	  /^X\/\(\/\/\)$/{
23670	    s//\1/
23671	    q
23672	  }
23673	  /^X\/\(\/\).*/{
23674	    s//\1/
23675	    q
23676	  }
23677	  s/.*/./; q'`
23678    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23679      && sed -e '/# am--include-marker/d' "$am_filepart" \
23680        | $MAKE -f - am--depfiles" >&5
23681   (cd "$am_dirpart" \
23682      && sed -e '/# am--include-marker/d' "$am_filepart" \
23683        | $MAKE -f - am--depfiles) >&5 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); } || am_rc=$?
23687  done
23688  if test $am_rc -ne 0; then
23689    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23691as_fn_error $? "Something went wrong bootstrapping makefile fragments
23692    for automatic dependency tracking.  If GNU make was not used, consider
23693    re-running the configure script with MAKE=\"gmake\" (or whatever is
23694    necessary).  You can also try re-running configure with the
23695    '--disable-dependency-tracking' option to at least be able to build
23696    the package (albeit without support for automatic dependency tracking).
23697See \`config.log' for more details" "$LINENO" 5; }
23698  fi
23699  { am_dirpart=; unset am_dirpart;}
23700  { am_filepart=; unset am_filepart;}
23701  { am_mf=; unset am_mf;}
23702  { am_rc=; unset am_rc;}
23703  rm -f conftest-deps.mk
23704}
23705 ;;
23706    "libtool":C)
23707
23708    # See if we are running on zsh, and set the options that allow our
23709    # commands through without removal of \ escapes.
23710    if test -n "${ZSH_VERSION+set}"; then
23711      setopt NO_GLOB_SUBST
23712    fi
23713
23714    cfgfile=${ofile}T
23715    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23716    $RM "$cfgfile"
23717
23718    cat <<_LT_EOF >> "$cfgfile"
23719#! $SHELL
23720# Generated automatically by $as_me ($PACKAGE) $VERSION
23721# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23722
23723# Provide generalized library-building support services.
23724# Written by Gordon Matzigkeit, 1996
23725
23726# Copyright (C) 2014 Free Software Foundation, Inc.
23727# This is free software; see the source for copying conditions.  There is NO
23728# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23729
23730# GNU Libtool is free software; you can redistribute it and/or modify
23731# it under the terms of the GNU General Public License as published by
23732# the Free Software Foundation; either version 2 of of the License, or
23733# (at your option) any later version.
23734#
23735# As a special exception to the GNU General Public License, if you
23736# distribute this file as part of a program or library that is built
23737# using GNU Libtool, you may include this file under the  same
23738# distribution terms that you use for the rest of that program.
23739#
23740# GNU Libtool is distributed in the hope that it will be useful, but
23741# WITHOUT ANY WARRANTY; without even the implied warranty of
23742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23743# GNU General Public License for more details.
23744#
23745# You should have received a copy of the GNU General Public License
23746# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23747
23748
23749# The names of the tagged configurations supported by this script.
23750available_tags=''
23751
23752# Configured defaults for sys_lib_dlsearch_path munging.
23753: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23754
23755# ### BEGIN LIBTOOL CONFIG
23756
23757# Which release of libtool.m4 was used?
23758macro_version=$macro_version
23759macro_revision=$macro_revision
23760
23761# Whether or not to build shared libraries.
23762build_libtool_libs=$enable_shared
23763
23764# Whether or not to build static libraries.
23765build_old_libs=$enable_static
23766
23767# What type of objects to build.
23768pic_mode=$pic_mode
23769
23770# Whether or not to optimize for fast installation.
23771fast_install=$enable_fast_install
23772
23773# Shared archive member basename,for filename based shared library versioning on AIX.
23774shared_archive_member_spec=$shared_archive_member_spec
23775
23776# Shell to use when invoking shell scripts.
23777SHELL=$lt_SHELL
23778
23779# An echo program that protects backslashes.
23780ECHO=$lt_ECHO
23781
23782# The PATH separator for the build system.
23783PATH_SEPARATOR=$lt_PATH_SEPARATOR
23784
23785# The host system.
23786host_alias=$host_alias
23787host=$host
23788host_os=$host_os
23789
23790# The build system.
23791build_alias=$build_alias
23792build=$build
23793build_os=$build_os
23794
23795# A sed program that does not truncate output.
23796SED=$lt_SED
23797
23798# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23799Xsed="\$SED -e 1s/^X//"
23800
23801# A grep program that handles long lines.
23802GREP=$lt_GREP
23803
23804# An ERE matcher.
23805EGREP=$lt_EGREP
23806
23807# A literal string matcher.
23808FGREP=$lt_FGREP
23809
23810# A BSD- or MS-compatible name lister.
23811NM=$lt_NM
23812
23813# Whether we need soft or hard links.
23814LN_S=$lt_LN_S
23815
23816# What is the maximum length of a command?
23817max_cmd_len=$max_cmd_len
23818
23819# Object file suffix (normally "o").
23820objext=$ac_objext
23821
23822# Executable file suffix (normally "").
23823exeext=$exeext
23824
23825# whether the shell understands "unset".
23826lt_unset=$lt_unset
23827
23828# turn spaces into newlines.
23829SP2NL=$lt_lt_SP2NL
23830
23831# turn newlines into spaces.
23832NL2SP=$lt_lt_NL2SP
23833
23834# convert \$build file names to \$host format.
23835to_host_file_cmd=$lt_cv_to_host_file_cmd
23836
23837# convert \$build files to toolchain format.
23838to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23839
23840# An object symbol dumper.
23841OBJDUMP=$lt_OBJDUMP
23842
23843# Method to check whether dependent libraries are shared objects.
23844deplibs_check_method=$lt_deplibs_check_method
23845
23846# Command to use when deplibs_check_method = "file_magic".
23847file_magic_cmd=$lt_file_magic_cmd
23848
23849# How to find potential files when deplibs_check_method = "file_magic".
23850file_magic_glob=$lt_file_magic_glob
23851
23852# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23853want_nocaseglob=$lt_want_nocaseglob
23854
23855# DLL creation program.
23856DLLTOOL=$lt_DLLTOOL
23857
23858# Command to associate shared and link libraries.
23859sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23860
23861# The archiver.
23862AR=$lt_AR
23863
23864# Flags to create an archive.
23865AR_FLAGS=$lt_AR_FLAGS
23866
23867# How to feed a file listing to the archiver.
23868archiver_list_spec=$lt_archiver_list_spec
23869
23870# A symbol stripping program.
23871STRIP=$lt_STRIP
23872
23873# Commands used to install an old-style archive.
23874RANLIB=$lt_RANLIB
23875old_postinstall_cmds=$lt_old_postinstall_cmds
23876old_postuninstall_cmds=$lt_old_postuninstall_cmds
23877
23878# Whether to use a lock for old archive extraction.
23879lock_old_archive_extraction=$lock_old_archive_extraction
23880
23881# A C compiler.
23882LTCC=$lt_CC
23883
23884# LTCC compiler flags.
23885LTCFLAGS=$lt_CFLAGS
23886
23887# Take the output of nm and produce a listing of raw symbols and C names.
23888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23889
23890# Transform the output of nm in a proper C declaration.
23891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23892
23893# Transform the output of nm into a list of symbols to manually relocate.
23894global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23895
23896# Transform the output of nm in a C name address pair.
23897global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23898
23899# Transform the output of nm in a C name address pair when lib prefix is needed.
23900global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23901
23902# The name lister interface.
23903nm_interface=$lt_lt_cv_nm_interface
23904
23905# Specify filename containing input files for \$NM.
23906nm_file_list_spec=$lt_nm_file_list_spec
23907
23908# The root where to search for dependent libraries,and where our libraries should be installed.
23909lt_sysroot=$lt_sysroot
23910
23911# Command to truncate a binary pipe.
23912lt_truncate_bin=$lt_lt_cv_truncate_bin
23913
23914# The name of the directory that contains temporary libtool files.
23915objdir=$objdir
23916
23917# Used to examine libraries when file_magic_cmd begins with "file".
23918MAGIC_CMD=$MAGIC_CMD
23919
23920# Must we lock files when doing compilation?
23921need_locks=$lt_need_locks
23922
23923# Manifest tool.
23924MANIFEST_TOOL=$lt_MANIFEST_TOOL
23925
23926# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23927DSYMUTIL=$lt_DSYMUTIL
23928
23929# Tool to change global to local symbols on Mac OS X.
23930NMEDIT=$lt_NMEDIT
23931
23932# Tool to manipulate fat objects and archives on Mac OS X.
23933LIPO=$lt_LIPO
23934
23935# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23936OTOOL=$lt_OTOOL
23937
23938# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23939OTOOL64=$lt_OTOOL64
23940
23941# Old archive suffix (normally "a").
23942libext=$libext
23943
23944# Shared library suffix (normally ".so").
23945shrext_cmds=$lt_shrext_cmds
23946
23947# The commands to extract the exported symbol list from a shared archive.
23948extract_expsyms_cmds=$lt_extract_expsyms_cmds
23949
23950# Variables whose values should be saved in libtool wrapper scripts and
23951# restored at link time.
23952variables_saved_for_relink=$lt_variables_saved_for_relink
23953
23954# Do we need the "lib" prefix for modules?
23955need_lib_prefix=$need_lib_prefix
23956
23957# Do we need a version for libraries?
23958need_version=$need_version
23959
23960# Library versioning type.
23961version_type=$version_type
23962
23963# Shared library runtime path variable.
23964runpath_var=$runpath_var
23965
23966# Shared library path variable.
23967shlibpath_var=$shlibpath_var
23968
23969# Is shlibpath searched before the hard-coded library search path?
23970shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23971
23972# Format of library name prefix.
23973libname_spec=$lt_libname_spec
23974
23975# List of archive names.  First name is the real one, the rest are links.
23976# The last name is the one that the linker finds with -lNAME
23977library_names_spec=$lt_library_names_spec
23978
23979# The coded name of the library, if different from the real name.
23980soname_spec=$lt_soname_spec
23981
23982# Permission mode override for installation of shared libraries.
23983install_override_mode=$lt_install_override_mode
23984
23985# Command to use after installation of a shared archive.
23986postinstall_cmds=$lt_postinstall_cmds
23987
23988# Command to use after uninstallation of a shared archive.
23989postuninstall_cmds=$lt_postuninstall_cmds
23990
23991# Commands used to finish a libtool library installation in a directory.
23992finish_cmds=$lt_finish_cmds
23993
23994# As "finish_cmds", except a single script fragment to be evaled but
23995# not shown.
23996finish_eval=$lt_finish_eval
23997
23998# Whether we should hardcode library paths into libraries.
23999hardcode_into_libs=$hardcode_into_libs
24000
24001# Compile-time system search path for libraries.
24002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24003
24004# Detected run-time system search path for libraries.
24005sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24006
24007# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24008configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24009
24010# Whether dlopen is supported.
24011dlopen_support=$enable_dlopen
24012
24013# Whether dlopen of programs is supported.
24014dlopen_self=$enable_dlopen_self
24015
24016# Whether dlopen of statically linked programs is supported.
24017dlopen_self_static=$enable_dlopen_self_static
24018
24019# Commands to strip libraries.
24020old_striplib=$lt_old_striplib
24021striplib=$lt_striplib
24022
24023
24024# The linker used to build libraries.
24025LD=$lt_LD
24026
24027# How to create reloadable object files.
24028reload_flag=$lt_reload_flag
24029reload_cmds=$lt_reload_cmds
24030
24031# Commands used to build an old-style archive.
24032old_archive_cmds=$lt_old_archive_cmds
24033
24034# A language specific compiler.
24035CC=$lt_compiler
24036
24037# Is the compiler the GNU compiler?
24038with_gcc=$GCC
24039
24040# Compiler flag to turn off builtin functions.
24041no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24042
24043# Additional compiler flags for building library objects.
24044pic_flag=$lt_lt_prog_compiler_pic
24045
24046# How to pass a linker flag through the compiler.
24047wl=$lt_lt_prog_compiler_wl
24048
24049# Compiler flag to prevent dynamic linking.
24050link_static_flag=$lt_lt_prog_compiler_static
24051
24052# Does compiler simultaneously support -c and -o options?
24053compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24054
24055# Whether or not to add -lc for building shared libraries.
24056build_libtool_need_lc=$archive_cmds_need_lc
24057
24058# Whether or not to disallow shared libs when runtime libs are static.
24059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24060
24061# Compiler flag to allow reflexive dlopens.
24062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24063
24064# Compiler flag to generate shared objects directly from archives.
24065whole_archive_flag_spec=$lt_whole_archive_flag_spec
24066
24067# Whether the compiler copes with passing no objects directly.
24068compiler_needs_object=$lt_compiler_needs_object
24069
24070# Create an old-style archive from a shared archive.
24071old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24072
24073# Create a temporary old-style archive to link instead of a shared archive.
24074old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24075
24076# Commands used to build a shared archive.
24077archive_cmds=$lt_archive_cmds
24078archive_expsym_cmds=$lt_archive_expsym_cmds
24079
24080# Commands used to build a loadable module if different from building
24081# a shared archive.
24082module_cmds=$lt_module_cmds
24083module_expsym_cmds=$lt_module_expsym_cmds
24084
24085# Whether we are building with GNU ld or not.
24086with_gnu_ld=$lt_with_gnu_ld
24087
24088# Flag that allows shared libraries with undefined symbols to be built.
24089allow_undefined_flag=$lt_allow_undefined_flag
24090
24091# Flag that enforces no undefined symbols.
24092no_undefined_flag=$lt_no_undefined_flag
24093
24094# Flag to hardcode \$libdir into a binary during linking.
24095# This must work even if \$libdir does not exist
24096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24097
24098# Whether we need a single "-rpath" flag with a separated argument.
24099hardcode_libdir_separator=$lt_hardcode_libdir_separator
24100
24101# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24102# DIR into the resulting binary.
24103hardcode_direct=$hardcode_direct
24104
24105# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24106# DIR into the resulting binary and the resulting library dependency is
24107# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24108# library is relocated.
24109hardcode_direct_absolute=$hardcode_direct_absolute
24110
24111# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24112# into the resulting binary.
24113hardcode_minus_L=$hardcode_minus_L
24114
24115# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24116# into the resulting binary.
24117hardcode_shlibpath_var=$hardcode_shlibpath_var
24118
24119# Set to "yes" if building a shared library automatically hardcodes DIR
24120# into the library and all subsequent libraries and executables linked
24121# against it.
24122hardcode_automatic=$hardcode_automatic
24123
24124# Set to yes if linker adds runtime paths of dependent libraries
24125# to runtime path list.
24126inherit_rpath=$inherit_rpath
24127
24128# Whether libtool must link a program against all its dependency libraries.
24129link_all_deplibs=$link_all_deplibs
24130
24131# Set to "yes" if exported symbols are required.
24132always_export_symbols=$always_export_symbols
24133
24134# The commands to list exported symbols.
24135export_symbols_cmds=$lt_export_symbols_cmds
24136
24137# Symbols that should not be listed in the preloaded symbols.
24138exclude_expsyms=$lt_exclude_expsyms
24139
24140# Symbols that must always be exported.
24141include_expsyms=$lt_include_expsyms
24142
24143# Commands necessary for linking programs (against libraries) with templates.
24144prelink_cmds=$lt_prelink_cmds
24145
24146# Commands necessary for finishing linking programs.
24147postlink_cmds=$lt_postlink_cmds
24148
24149# Specify filename containing input files.
24150file_list_spec=$lt_file_list_spec
24151
24152# How to hardcode a shared library path into an executable.
24153hardcode_action=$hardcode_action
24154
24155# ### END LIBTOOL CONFIG
24156
24157_LT_EOF
24158
24159    cat <<'_LT_EOF' >> "$cfgfile"
24160
24161# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24162
24163# func_munge_path_list VARIABLE PATH
24164# -----------------------------------
24165# VARIABLE is name of variable containing _space_ separated list of
24166# directories to be munged by the contents of PATH, which is string
24167# having a format:
24168# "DIR[:DIR]:"
24169#       string "DIR[ DIR]" will be prepended to VARIABLE
24170# ":DIR[:DIR]"
24171#       string "DIR[ DIR]" will be appended to VARIABLE
24172# "DIRP[:DIRP]::[DIRA:]DIRA"
24173#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24174#       "DIRA[ DIRA]" will be appended to VARIABLE
24175# "DIR[:DIR]"
24176#       VARIABLE will be replaced by "DIR[ DIR]"
24177func_munge_path_list ()
24178{
24179    case x$2 in
24180    x)
24181        ;;
24182    *:)
24183        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24184        ;;
24185    x:*)
24186        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24187        ;;
24188    *::*)
24189        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24190        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24191        ;;
24192    *)
24193        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24194        ;;
24195    esac
24196}
24197
24198
24199# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24200func_cc_basename ()
24201{
24202    for cc_temp in $*""; do
24203      case $cc_temp in
24204        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24205        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24206        \-*) ;;
24207        *) break;;
24208      esac
24209    done
24210    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24211}
24212
24213
24214# ### END FUNCTIONS SHARED WITH CONFIGURE
24215
24216_LT_EOF
24217
24218  case $host_os in
24219  aix3*)
24220    cat <<\_LT_EOF >> "$cfgfile"
24221# AIX sometimes has problems with the GCC collect2 program.  For some
24222# reason, if we set the COLLECT_NAMES environment variable, the problems
24223# vanish in a puff of smoke.
24224if test set != "${COLLECT_NAMES+set}"; then
24225  COLLECT_NAMES=
24226  export COLLECT_NAMES
24227fi
24228_LT_EOF
24229    ;;
24230  esac
24231
24232
24233ltmain=$ac_aux_dir/ltmain.sh
24234
24235
24236  # We use sed instead of cat because bash on DJGPP gets confused if
24237  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24238  # text mode, it properly converts lines to CR/LF.  This bash problem
24239  # is reportedly fixed, but why not run on old versions too?
24240  sed '$q' "$ltmain" >> "$cfgfile" \
24241     || (rm -f "$cfgfile"; exit 1)
24242
24243   mv -f "$cfgfile" "$ofile" ||
24244    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24245  chmod +x "$ofile"
24246
24247 ;;
24248
24249  esac
24250done # for ac_tag
24251
24252
24253as_fn_exit 0
24254_ACEOF
24255ac_clean_files=$ac_clean_files_save
24256
24257test $ac_write_fail = 0 ||
24258  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24259
24260
24261# configure is writing to config.log, and then calls config.status.
24262# config.status does its own redirection, appending to config.log.
24263# Unfortunately, on DOS this fails, as config.log is still kept open
24264# by configure, so config.status won't be able to write to it; its
24265# output is simply discarded.  So we exec the FD to /dev/null,
24266# effectively closing config.log, so it can be properly (re)opened and
24267# appended to by config.status.  When coming back to configure, we
24268# need to make the FD available again.
24269if test "$no_create" != yes; then
24270  ac_cs_success=:
24271  ac_config_status_args=
24272  test "$silent" = yes &&
24273    ac_config_status_args="$ac_config_status_args --quiet"
24274  exec 5>/dev/null
24275  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24276  exec 5>>config.log
24277  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24278  # would make configure fail if this is the last instruction.
24279  $ac_cs_success || as_fn_exit 1
24280fi
24281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24282  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24283$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24284fi
24285
24286
24287echo ""
24288echo "X11 will be built with the following settings:"
24289echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
24290echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
24291echo " Threading support:                       "$xthreads
24292echo " Use Threads safe API:                    "$mtsafeapi
24293echo " Threads stubs in libX11:                 "$thrstubs
24294echo " XCMS:                                    "$XCMS
24295echo " Internationalization support:            "$XLOCALE
24296echo " XF86BigFont support:                     "$XF86BIGFONT
24297echo " XKB support:                             "$XKB
24298echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
24299echo " Compose table cache enabled:             "$COMPOSECACHE
24300echo " Functional specs building enabled:       "$build_specs
24301echo ""
24302