ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.164 by root, Thu Jun 20 23:07:42 2019 UTC vs.
Revision 1.169 by sf-exg, Sun Nov 7 14:13:40 2021 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69. 3# Generated by GNU Autoconf 2.71.
4# 4#
5# 5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
7# 8#
8# 9#
9# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ## 12## -------------------- ##
12## M4sh Initialization. ## 13## M4sh Initialization. ##
13## -------------------- ## 14## -------------------- ##
14 15
15# Be more Bourne compatible 16# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
18 emulate sh 21 emulate sh
19 NULLCMD=: 22 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature. 24 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"' 25 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST 26 setopt NO_GLOB_SUBST
24else 27else $as_nop
25 case `(set -o) 2>/dev/null` in #( 28 case `(set -o) 2>/dev/null` in #(
26 *posix*) : 29 *posix*) :
27 set -o posix ;; #( 30 set -o posix ;; #(
28 *) : 31 *) :
29 ;; 32 ;;
30esac 33esac
31fi 34fi
32 35
33 36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
34as_nl=' 45as_nl='
35' 46'
36export as_nl 47export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf. 48IFS=" "" $as_nl"
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50PS1='$ '
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51PS2='> '
41# Prefer a ksh shell builtin over an external printf program on Solaris, 52PS4='+ '
42# but without wasting forks for bash or zsh. 53
43if test -z "$BASH_VERSION$ZSH_VERSION" \ 54# Ensure predictable behavior from utilities with locale-dependent output.
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55LC_ALL=C
45 as_echo='print -r --' 56export LC_ALL
46 as_echo_n='print -rn --' 57LANGUAGE=C
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58export LANGUAGE
48 as_echo='printf %s\n' 59
49 as_echo_n='printf %s' 60# We cannot yet rely on "unset" to work, but we need these variables
50else 61# to be unset--not just set to an empty or harmless value--now, to
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 63# also avoids known problems related to "unset" and subshell syntax
53 as_echo_n='/usr/ucb/echo -n' 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
54 else 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66do eval test \${$as_var+y} \
56 as_echo_n_body='eval 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
57 arg=$1; 68done
58 case $arg in #( 69
59 *"$as_nl"*) 70# Ensure that fds 0, 1, and 2 are open.
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
62 esac; 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71 74
72# The user is always right. 75# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then 76if ${PATH_SEPARATOR+false} :; then
74 PATH_SEPARATOR=: 77 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';' 80 PATH_SEPARATOR=';'
78 } 81 }
79fi 82fi
80 83
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88 84
89# Find who we are. Look in the path if we contain no directory separator. 85# Find who we are. Look in the path if we contain no directory separator.
90as_myself= 86as_myself=
91case $0 in #(( 87case $0 in #((
92 *[\\/]* ) as_myself=$0 ;; 88 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH 90for as_dir in $PATH
95do 91do
96 IFS=$as_save_IFS 92 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=. 93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done 99 done
100IFS=$as_save_IFS 100IFS=$as_save_IFS
101 101
102 ;; 102 ;;
103esac 103esac
105# in which case we are not to be found in the path. 105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then 106if test "x$as_myself" = x; then
107 as_myself=$0 107 as_myself=$0
108fi 108fi
109if test ! -f "$as_myself"; then 109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1 111 exit 1
112fi 112fi
113 113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 114
135# Use a proper internal environment variable to ensure we don't fall 115# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves. 116 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec; 118 _as_can_reexec=no; export _as_can_reexec;
150 * ) as_opts= ;; 130 * ) as_opts= ;;
151esac 131esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail 133# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'. 134# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255 136exit 255
157 fi 137 fi
158 # We don't want this to propagate to other subprocesses. 138 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;} 139 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then 140if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
162 emulate sh 144 emulate sh
163 NULLCMD=: 145 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature. 147 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST 149 setopt NO_GLOB_SUBST
168else 150else \$as_nop
169 case \`(set -o) 2>/dev/null\` in #( 151 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) : 152 *posix*) :
171 set -o posix ;; #( 153 set -o posix ;; #(
172 *) : 154 *) :
173 ;; 155 ;;
183exitcode=0 165exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
189 172
190else 173else \$as_nop
191 exitcode=1; echo positional parameters were not saved. 174 exitcode=1; echo positional parameters were not saved.
192fi 175fi
193test x\$exitcode = x0 || exit 1 176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
194test -x / || exit 1" 179test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1" 184test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then : 185 if (eval "$as_required") 2>/dev/null
186then :
201 as_have_required=yes 187 as_have_required=yes
202else 188else $as_nop
203 as_have_required=no 189 as_have_required=no
204fi 190fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192then :
206 193
207else 194else $as_nop
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false 196as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do 198do
212 IFS=$as_save_IFS 199 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=. 200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
214 as_found=: 205 as_found=:
215 case $as_dir in #( 206 case $as_dir in #(
216 /*) 207 /*)
217 for as_base in sh bash ksh sh5; do 208 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks. 209 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base 210 as_shell=$as_dir$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
222 CONFIG_SHELL=$as_shell as_have_required=yes 214 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
224 break 2 217 break 2
225fi 218fi
226fi 219fi
227 done;; 220 done;;
228 esac 221 esac
229 as_found=false 222 as_found=false
230done 223done
224IFS=$as_save_IFS
225if $as_found
226then :
227
228else $as_nop
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231then :
233 CONFIG_SHELL=$SHELL as_have_required=yes 232 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; } 233fi
235IFS=$as_save_IFS 234fi
236 235
237 236
238 if test "x$CONFIG_SHELL" != x; then : 237 if test "x$CONFIG_SHELL" != x
238then :
239 export CONFIG_SHELL 239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell. 243# Preserve -v and -x to the replacement shell.
251 * ) as_opts= ;; 251 * ) as_opts= ;;
252esac 252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail 254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'. 255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255 257exit 255
258fi 258fi
259 259
260 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno
261then :
261 $as_echo "$0: This script requires a shell more modern than all" 262 printf "%s\n" "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system." 263 printf "%s\n" "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then 264 if test ${ZSH_VERSION+y} ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else 267 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this 269$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run 270$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one." 271$0: the script under such a shell if you do have one."
271 fi 272 fi
272 exit 1 273 exit 1
289{ 290{
290 { eval $1=; unset $1;} 291 { eval $1=; unset $1;}
291} 292}
292as_unset=as_fn_unset 293as_unset=as_fn_unset
293 294
295
294# as_fn_set_status STATUS 296# as_fn_set_status STATUS
295# ----------------------- 297# -----------------------
296# Set $? to STATUS, without forking. 298# Set $? to STATUS, without forking.
297as_fn_set_status () 299as_fn_set_status ()
298{ 300{
306{ 308{
307 set +e 309 set +e
308 as_fn_set_status $1 310 as_fn_set_status $1
309 exit $1 311 exit $1
310} # as_fn_exit 312} # as_fn_exit
313# as_fn_nop
314# ---------
315# Do nothing but, unlike ":", preserve the value of $?.
316as_fn_nop ()
317{
318 return $?
319}
320as_nop=as_fn_nop
311 321
312# as_fn_mkdir_p 322# as_fn_mkdir_p
313# ------------- 323# -------------
314# Create "$as_dir" as a directory, including parents if necessary. 324# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p () 325as_fn_mkdir_p ()
320 esac 330 esac
321 test -d "$as_dir" || eval $as_mkdir_p || { 331 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs= 332 as_dirs=
323 while :; do 333 while :; do
324 case $as_dir in #( 334 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;; 336 *) as_qdir=$as_dir;;
327 esac 337 esac
328 as_dirs="'$as_qdir' $as_dirs" 338 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" || 339 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" | 344printf "%s\n" X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/ 346 s//\1/
337 q 347 q
338 } 348 }
339 /^X\(\/\/\)[^/].*/{ 349 /^X\(\/\/\)[^/].*/{
368# ---------------------- 378# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take 379# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over 380# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive 381# repeated appends, instead of the typical quadratic growth present in naive
372# implementations. 382# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
374 eval 'as_fn_append () 385 eval 'as_fn_append ()
375 { 386 {
376 eval $1+=\$2 387 eval $1+=\$2
377 }' 388 }'
378else 389else $as_nop
379 as_fn_append () 390 as_fn_append ()
380 { 391 {
381 eval $1=\$$1\$2 392 eval $1=\$$1\$2
382 } 393 }
383fi # as_fn_append 394fi # as_fn_append
385# as_fn_arith ARG... 396# as_fn_arith ARG...
386# ------------------ 397# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the 398# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments 399# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr. 400# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
391 eval 'as_fn_arith () 403 eval 'as_fn_arith ()
392 { 404 {
393 as_val=$(( $* )) 405 as_val=$(( $* ))
394 }' 406 }'
395else 407else $as_nop
396 as_fn_arith () 408 as_fn_arith ()
397 { 409 {
398 as_val=`expr "$@" || test $? -eq 1` 410 as_val=`expr "$@" || test $? -eq 1`
399 } 411 }
400fi # as_fn_arith 412fi # as_fn_arith
401 413
414# as_fn_nop
415# ---------
416# Do nothing but, unlike ":", preserve the value of $?.
417as_fn_nop ()
418{
419 return $?
420}
421as_nop=as_fn_nop
402 422
403# as_fn_error STATUS ERROR [LINENO LOG_FD] 423# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ---------------------------------------- 424# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408as_fn_error () 428as_fn_error ()
409{ 429{
410 as_status=$1; test $as_status -eq 0 && as_status=1 430 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then 431 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi 434 fi
415 $as_echo "$as_me: error: $2" >&2 435 printf "%s\n" "$as_me: error: $2" >&2
416 as_fn_exit $as_status 436 as_fn_exit $as_status
417} # as_fn_error 437} # as_fn_error
418 438
419if expr a : '\(a\)' >/dev/null 2>&1 && 439if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 457
438as_me=`$as_basename -- "$0" || 458as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \ 460 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" | 462printf "%s\n" X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 463 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/ 464 s//\1/
445 q 465 q
446 } 466 }
447 /^X\/\(\/\/\)$/{ 467 /^X\/\(\/\/\)$/{
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop 502 t loop
483 s/-\n.*// 503 s/-\n.*//
484 ' >$as_me.lineno && 504 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" || 505 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 507
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall 509 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice. 510 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec 511 _as_can_reexec=no; export _as_can_reexec
495 . "./$as_me.lineno" 515 . "./$as_me.lineno"
496 # Exit status is that of the last command. 516 # Exit status is that of the last command.
497 exit 517 exit
498} 518}
499 519
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
500ECHO_C= ECHO_N= ECHO_T= 524ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #((((( 525case `echo -n x` in #(((((
502-n*) 526-n*)
503 case `echo 'xy\c'` in 527 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 ECHO_T=' ';; 531 ECHO_T=' ';;
508 esac;; 532 esac;;
509*) 533*)
510 ECHO_N='-n';; 534 ECHO_N='-n';;
511esac 535esac
536
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n. New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
512 543
513rm -f conf$$ conf$$.exe conf$$.file 544rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then 545if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file 546 rm -f conf$$.dir/conf$$.file
516else 547else
573subdirs= 604subdirs=
574MFLAGS= 605MFLAGS=
575MAKEFLAGS= 606MAKEFLAGS=
576 607
577# Identity of this package. 608# Identity of this package.
578PACKAGE_NAME= 609PACKAGE_NAME=''
579PACKAGE_TARNAME= 610PACKAGE_TARNAME=''
580PACKAGE_VERSION= 611PACKAGE_VERSION=''
581PACKAGE_STRING= 612PACKAGE_STRING=''
582PACKAGE_BUGREPORT= 613PACKAGE_BUGREPORT=''
583PACKAGE_URL= 614PACKAGE_URL=''
584 615
585ac_unique_file="src/feature.h" 616ac_unique_file="src/feature.h"
586# Factoring default headers for most tests. 617# Factoring default headers for most tests.
587ac_includes_default="\ 618ac_includes_default="\
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
588#include <stdio.h> 621# include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif 622#endif
592#ifdef HAVE_SYS_STAT_H 623#ifdef HAVE_STDLIB_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h> 624# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif 625#endif
603#ifdef HAVE_STRING_H 626#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h> 627# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif 628#endif
612#ifdef HAVE_INTTYPES_H 629#ifdef HAVE_INTTYPES_H
613# include <inttypes.h> 630# include <inttypes.h>
614#endif 631#endif
615#ifdef HAVE_STDINT_H 632#ifdef HAVE_STDINT_H
616# include <stdint.h> 633# include <stdint.h>
617#endif 634#endif
635#ifdef HAVE_STRINGS_H
636# include <strings.h>
637#endif
638#ifdef HAVE_SYS_TYPES_H
639# include <sys/types.h>
640#endif
641#ifdef HAVE_SYS_STAT_H
642# include <sys/stat.h>
643#endif
618#ifdef HAVE_UNISTD_H 644#ifdef HAVE_UNISTD_H
619# include <unistd.h> 645# include <unistd.h>
620#endif" 646#endif"
621 647
648ac_header_c_list=
622ac_subst_vars='LTLIBOBJS 649ac_subst_vars='LTLIBOBJS
623LIBOBJS 650LIBOBJS
624PERL_O 651PERL_O
625IF_PERL 652IF_PERL
626PERLPRIVLIBEXP 653PERLPRIVLIBEXP
627PERLFLAGS 654PERLFLAGS
628PERLLIB 655PERLLIB
629PERL 656PERL
630XFT_CONFIG 657XFT_CONFIG
658EGREP
659GREP
631STARTUP_NOTIFICATION_LIBS 660STARTUP_NOTIFICATION_LIBS
632STARTUP_NOTIFICATION_CFLAGS 661STARTUP_NOTIFICATION_CFLAGS
633PIXBUF_LIBS 662PIXBUF_LIBS
634PIXBUF_CFLAGS 663PIXBUF_CFLAGS
664PTYTTY_LIBS
665PTYTTY_CFLAGS
635PKG_CONFIG 666PKG_CONFIG
636X_EXTRA_LIBS 667X_EXTRA_LIBS
637X_LIBS 668X_LIBS
638X_PRE_LIBS 669X_PRE_LIBS
639X_CFLAGS 670X_CFLAGS
671CXXCPP
640XMKMF 672XMKMF
641TIC 673TIC
642CXXCPP
643RXVTNAME 674RXVTNAME
644LINKER 675LINKER
645EGREP
646GREP
647CPP
648INSTALL_DATA 676INSTALL_DATA
649INSTALL_SCRIPT 677INSTALL_SCRIPT
650INSTALL_PROGRAM 678INSTALL_PROGRAM
651ac_ct_CXX 679ac_ct_CXX
652CXXFLAGS 680CXXFLAGS
658LDFLAGS 686LDFLAGS
659CFLAGS 687CFLAGS
660CC 688CC
661DATE 689DATE
662VERSION 690VERSION
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671target_alias 691target_alias
672host_alias 692host_alias
673build_alias 693build_alias
674LIBS 694LIBS
675ECHO_T 695ECHO_T
747enable_text_blink 767enable_text_blink
748enable_pointer_blank 768enable_pointer_blank
749with_term 769with_term
750with_terminfo 770with_terminfo
751with_x 771with_x
752enable_utmp
753enable_wtmp
754enable_lastlog
755' 772'
756 ac_precious_vars='build_alias 773 ac_precious_vars='build_alias
757host_alias 774host_alias
758target_alias 775target_alias
759CC 776CC
762LIBS 779LIBS
763CPPFLAGS 780CPPFLAGS
764CXX 781CXX
765CXXFLAGS 782CXXFLAGS
766CCC 783CCC
767CPP 784XMKMF
768CXXCPP 785CXXCPP'
769XMKMF'
770 786
771 787
772# Initialize some variables set by options. 788# Initialize some variables set by options.
773ac_init_help= 789ac_init_help=
774ac_init_version=false 790ac_init_version=false
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;; 850 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;; 851 *) ac_optarg=yes ;;
836 esac 852 esac
837 853
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in 854 case $ac_dashdash$ac_option in
841 --) 855 --)
842 ac_dashdash=yes ;; 856 ac_dashdash=yes ;;
843 857
844 -bindir | --bindir | --bindi | --bind | --bin | --bi) 858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 889
876 -disable-* | --disable-*) 890 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names. 892 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt" 894 as_fn_error $? "invalid feature name: \`$ac_useropt'"
881 ac_useropt_orig=$ac_useropt 895 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 896 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in 897 case $ac_user_opts in
884 *" 898 *"
885"enable_$ac_useropt" 899"enable_$ac_useropt"
886"*) ;; 900"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 915
902 -enable-* | --enable-*) 916 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names. 918 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt" 920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
907 ac_useropt_orig=$ac_useropt 921 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in 923 case $ac_user_opts in
910 *" 924 *"
911"enable_$ac_useropt" 925"enable_$ac_useropt"
912"*) ;; 926"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 1128
1115 -with-* | --with-*) 1129 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names. 1131 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt" 1133 as_fn_error $? "invalid package name: \`$ac_useropt'"
1120 ac_useropt_orig=$ac_useropt 1134 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in 1136 case $ac_user_opts in
1123 *" 1137 *"
1124"with_$ac_useropt" 1138"with_$ac_useropt"
1125"*) ;; 1139"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 1144
1131 -without-* | --without-*) 1145 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names. 1147 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt" 1149 as_fn_error $? "invalid package name: \`$ac_useropt'"
1136 ac_useropt_orig=$ac_useropt 1150 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in 1152 case $ac_user_opts in
1139 *" 1153 *"
1140"with_$ac_useropt" 1154"with_$ac_useropt"
1141"*) ;; 1155"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 eval $ac_envvar=\$ac_optarg 1190 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;; 1191 export $ac_envvar ;;
1178 1192
1179 *) 1193 *)
1180 # FIXME: should be removed in autoconf 3.0. 1194 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1195 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1197 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;; 1199 ;;
1186 1200
1187 esac 1201 esac
1188done 1202done
1194 1208
1195if test -n "$ac_unrecognized_opts"; then 1209if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in 1210 case $enable_option_checking in
1197 no) ;; 1211 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1213 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac 1214 esac
1201fi 1215fi
1202 1216
1203# Check all directory arguments for consistency. 1217# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 ac_confdir=`$as_dirname -- "$as_myself" || 1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" | 1277printf "%s\n" X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/ 1279 s//\1/
1266 q 1280 q
1267 } 1281 }
1268 /^X\(\/\/\)[^/].*/{ 1282 /^X\(\/\/\)[^/].*/{
1376 cat <<\_ACEOF 1390 cat <<\_ACEOF
1377 1391
1378X features: 1392X features:
1379 --x-includes=DIR X include files are in DIR 1393 --x-includes=DIR X include files are in DIR
1380 --x-libraries=DIR X library files are in DIR 1394 --x-libraries=DIR X library files are in DIR
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF 1395_ACEOF
1386fi 1396fi
1387 1397
1388if test -n "$ac_init_help"; then 1398if test -n "$ac_init_help"; then
1389 1399
1424 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1434 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1425 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1435 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1426 --enable-smart-resize enable smart growth/shrink behaviour 1436 --enable-smart-resize enable smart growth/shrink behaviour
1427 --enable-text-blink enable blinking text 1437 --enable-text-blink enable blinking text
1428 --enable-pointer-blank enable pointer blanking when typing or inactive 1438 --enable-pointer-blank enable pointer blanking when typing or inactive
1429 --enable-utmp enable utmp (utmpx) support
1430 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1431 --enable-lastlog enable lastlog support (requires --enable-utmp)
1432 1439
1433Optional Packages: 1440Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1443 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1449 LIBS libraries to pass to the linker, e.g. -l<library> 1456 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir> 1458 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command 1459 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags 1460 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor 1461 XMKMF Path to xmkmf, Makefile generator for X Window System
1455 CXXCPP C++ preprocessor 1462 CXXCPP C++ preprocessor
1456 XMKMF Path to xmkmf, Makefile generator for X Window System
1457 1463
1458Use these variables to override the choices made by `configure' or to help 1464Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations. 1465it to find libraries and programs with nonstandard names/locations.
1460 1466
1461Report bugs to the package provider. 1467Report bugs to the package provider.
1472 ac_builddir=. 1478 ac_builddir=.
1473 1479
1474case "$ac_dir" in 1480case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*) 1482*)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix. 1484 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in 1486 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;; 1489 esac ;;
1484esac 1490esac
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac 1509esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 1511
1506 cd "$ac_dir" || { ac_status=$?; continue; } 1512 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure. 1513 # Check for configure.gnu first; this name is used for a wrapper for
1514 # Metaconfig's "Configure" on case-insensitive file systems.
1508 if test -f "$ac_srcdir/configure.gnu"; then 1515 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo && 1516 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then 1518 elif test -f "$ac_srcdir/configure"; then
1512 echo && 1519 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive 1520 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else 1521 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$? 1523 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; } 1524 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done 1525 done
1519fi 1526fi
1520 1527
1521test -n "$ac_init_help" && exit $ac_status 1528test -n "$ac_init_help" && exit $ac_status
1522if $ac_init_version; then 1529if $ac_init_version; then
1523 cat <<\_ACEOF 1530 cat <<\_ACEOF
1524configure 1531configure
1525generated by GNU Autoconf 2.69 1532generated by GNU Autoconf 2.71
1526 1533
1527Copyright (C) 2012 Free Software Foundation, Inc. 1534Copyright (C) 2021 Free Software Foundation, Inc.
1528This configure script is free software; the Free Software Foundation 1535This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it. 1536gives unlimited permission to copy, distribute and modify it.
1530_ACEOF 1537_ACEOF
1531 exit 1538 exit
1532fi 1539fi
1539# -------------------------- 1546# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile () 1548ac_fn_c_try_compile ()
1542{ 1549{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext 1551 rm -f conftest.$ac_objext conftest.beam
1545 if { { ac_try="$ac_compile" 1552 if { { ac_try="$ac_compile"
1546case "(($ac_try" in 1553case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;; 1555 *) ac_try_echo=$ac_try;;
1549esac 1556esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5 1558printf "%s\n" "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err 1559 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$? 1560 ac_status=$?
1554 if test -s conftest.err; then 1561 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1 1562 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5 1563 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err 1564 mv -f conftest.er1 conftest.err
1558 fi 1565 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && { 1567 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" || 1568 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err 1569 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then : 1570 } && test -s conftest.$ac_objext
1571then :
1564 ac_retval=0 1572 ac_retval=0
1565else 1573else $as_nop
1566 $as_echo "$as_me: failed program was:" >&5 1574 printf "%s\n" "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5 1575sed 's/^/| /' conftest.$ac_ext >&5
1568 1576
1569 ac_retval=1 1577 ac_retval=1
1570fi 1578fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577# ---------------------------- 1585# ----------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded. 1586# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_cxx_try_compile () 1587ac_fn_cxx_try_compile ()
1580{ 1588{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext 1590 rm -f conftest.$ac_objext conftest.beam
1583 if { { ac_try="$ac_compile" 1591 if { { ac_try="$ac_compile"
1584case "(($ac_try" in 1592case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;; 1594 *) ac_try_echo=$ac_try;;
1587esac 1595esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5 1597printf "%s\n" "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err 1598 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$? 1599 ac_status=$?
1592 if test -s conftest.err; then 1600 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1 1601 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5 1602 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err 1603 mv -f conftest.er1 conftest.err
1596 fi 1604 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && { 1606 test $ac_status = 0; } && {
1599 test -z "$ac_cxx_werror_flag" || 1607 test -z "$ac_cxx_werror_flag" ||
1600 test ! -s conftest.err 1608 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then : 1609 } && test -s conftest.$ac_objext
1610then :
1602 ac_retval=0 1611 ac_retval=0
1603else 1612else $as_nop
1604 $as_echo "$as_me: failed program was:" >&5 1613 printf "%s\n" "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5 1614sed 's/^/| /' conftest.$ac_ext >&5
1606 1615
1607 ac_retval=1 1616 ac_retval=1
1608fi 1617fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval 1619 as_fn_set_status $ac_retval
1611 1620
1612} # ac_fn_cxx_try_compile 1621} # ac_fn_cxx_try_compile
1613 1622
1614# ac_fn_c_try_cpp LINENO 1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615# ---------------------- 1624# -------------------------------------------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1625# Tests whether HEADER exists and can be compiled using the include files in
1617ac_fn_c_try_cpp () 1626# INCLUDES, setting the cache variable VAR accordingly.
1627ac_fn_c_check_header_compile ()
1618{ 1628{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654# the include files in INCLUDES and setting the cache variable VAR
1655# accordingly.
1656ac_fn_c_check_header_mongrel ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if eval \${$3+:} false; then :
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; } 1631printf %s "checking for $2... " >&6; }
1662if eval \${$3+:} false; then : 1632if eval test \${$3+y}
1663 $as_echo_n "(cached) " >&6 1633then :
1664fi 1634 printf %s "(cached) " >&6
1665eval ac_res=\$$3 1635else $as_nop
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668else
1669 # Is the header compilable?
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671$as_echo_n "checking $2 usability... " >&6; }
1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h. */ 1637/* end confdefs.h. */
1674$4 1638$4
1675#include <$2> 1639#include <$2>
1676_ACEOF 1640_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then : 1641if ac_fn_c_try_compile "$LINENO"
1678 ac_header_compiler=yes 1642then :
1679else 1643 eval "$3=yes"
1680 ac_header_compiler=no 1644else $as_nop
1645 eval "$3=no"
1681fi 1646fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684$as_echo "$ac_header_compiler" >&6; }
1685
1686# Is the header present?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688$as_echo_n "checking $2 presence... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_cpp "$LINENO"; then :
1694 ac_header_preproc=yes
1695else
1696 ac_header_preproc=no
1697fi
1698rm -f conftest.err conftest.i conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700$as_echo "$ac_header_preproc" >&6; }
1701
1702# So? What about this header?
1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 yes:no: )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ;;
1710 no:yes:* )
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1714$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1718$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ;;
1722esac
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 eval "$3=\$ac_header_compiler"
1729fi 1648fi
1730eval ac_res=\$$3 1649eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; } 1651printf "%s\n" "$ac_res" >&6; }
1733fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 1653
1736} # ac_fn_c_check_header_mongrel 1654} # ac_fn_c_check_header_compile
1737 1655
1738# ac_fn_c_try_run LINENO 1656# ac_fn_cxx_try_link LINENO
1739# ---------------------- 1657# -------------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1741# that executables *can* be run.
1742ac_fn_c_try_run () 1659ac_fn_cxx_try_link ()
1743{ 1660{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1745 if { { ac_try="$ac_link" 1663 if { { ac_try="$ac_link"
1746case "(($ac_try" in 1664case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;; 1666 *) ac_try_echo=$ac_try;;
1749esac 1667esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5 1669printf "%s\n" "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_run
1779
1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists and can be compiled using the include files in
1783# INCLUDES, setting the cache variable VAR accordingly.
1784ac_fn_c_check_header_compile ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 eval "$3=yes"
1799else
1800 eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_compile
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest$ac_exeext
1818 if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err 1670 (eval "$ac_link") 2>conftest.err
1826 ac_status=$? 1671 ac_status=$?
1827 if test -s conftest.err; then 1672 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1 1673 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5 1674 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err 1675 mv -f conftest.er1 conftest.err
1831 fi 1676 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { 1678 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" || 1679 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err 1680 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && { 1681 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes || 1682 test "$cross_compiling" = yes ||
1838 test -x conftest$ac_exeext 1683 test -x conftest$ac_exeext
1839 }; then : 1684 }
1685then :
1840 ac_retval=0 1686 ac_retval=0
1841else 1687else $as_nop
1842 $as_echo "$as_me: failed program was:" >&5 1688 printf "%s\n" "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5 1689sed 's/^/| /' conftest.$ac_ext >&5
1844 1690
1845 ac_retval=1 1691 ac_retval=1
1846fi 1692fi
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850 # left behind by Apple's compiler. We do this before executing the actions. 1696 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval 1699 as_fn_set_status $ac_retval
1854 1700
1855} # ac_fn_c_try_link 1701} # ac_fn_cxx_try_link
1856 1702
1857# ac_fn_cxx_try_link LINENO 1703# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1858# ------------------------- 1704# ---------------------------------------------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded. 1705# Tests whether HEADER exists and can be compiled using the include files in
1860ac_fn_cxx_try_link () 1706# INCLUDES, setting the cache variable VAR accordingly.
1707ac_fn_cxx_check_header_compile ()
1861{ 1708{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 test -x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
1887else
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
1892fi
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901} # ac_fn_cxx_try_link
1902
1903# ac_fn_cxx_try_cpp LINENO
1904# ------------------------
1905# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906ac_fn_cxx_try_cpp ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 }; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938} # ac_fn_cxx_try_cpp
1939
1940# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1941# ---------------------------------------------------------
1942# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943# the include files in INCLUDES and setting the cache variable VAR
1944# accordingly.
1945ac_fn_cxx_check_header_mongrel ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; } 1711printf %s "checking for $2... " >&6; }
1951if eval \${$3+:} false; then : 1712if eval test \${$3+y}
1952 $as_echo_n "(cached) " >&6 1713then :
1953fi 1714 printf %s "(cached) " >&6
1954eval ac_res=\$$3 1715else $as_nop
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957else
1958 # Is the header compilable?
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960$as_echo_n "checking $2 usability... " >&6; }
1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */ 1717/* end confdefs.h. */
1963$4 1718$4
1964#include <$2> 1719#include <$2>
1965_ACEOF 1720_ACEOF
1966if ac_fn_cxx_try_compile "$LINENO"; then : 1721if ac_fn_cxx_try_compile "$LINENO"
1967 ac_header_compiler=yes 1722then :
1968else 1723 eval "$3=yes"
1969 ac_header_compiler=no 1724else $as_nop
1725 eval "$3=no"
1970fi 1726fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973$as_echo "$ac_header_compiler" >&6; }
1974
1975# Is the header present?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977$as_echo_n "checking $2 presence... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980#include <$2>
1981_ACEOF
1982if ac_fn_cxx_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984else
1985 ac_header_preproc=no
1986fi
1987rm -f conftest.err conftest.i conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989$as_echo "$ac_header_preproc" >&6; }
1990
1991# So? What about this header?
1992case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=\$ac_header_compiler"
2018fi 1728fi
2019eval ac_res=\$$3 1729eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; } 1731printf "%s\n" "$ac_res" >&6; }
2022fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 1733
2025} # ac_fn_cxx_check_header_mongrel 1734} # ac_fn_cxx_check_header_compile
2026 1735
2027# ac_fn_cxx_check_func LINENO FUNC VAR 1736# ac_fn_cxx_check_func LINENO FUNC VAR
2028# ------------------------------------ 1737# ------------------------------------
2029# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly
2030ac_fn_cxx_check_func () 1739ac_fn_cxx_check_func ()
2031{ 1740{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; } 1743printf %s "checking for $2... " >&6; }
2035if eval \${$3+:} false; then : 1744if eval test \${$3+y}
2036 $as_echo_n "(cached) " >&6 1745then :
2037else 1746 printf %s "(cached) " >&6
1747else $as_nop
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */ 1749/* end confdefs.h. */
2040/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042#define $2 innocuous_$2 1752#define $2 innocuous_$2
2043 1753
2044/* System header to define __stub macros and hopefully few prototypes, 1754/* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below. 1755 which can conflict with char $2 (); below. */
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2048 1756
2049#ifdef __STDC__
2050# include <limits.h> 1757#include <limits.h>
2051#else
2052# include <assert.h>
2053#endif
2054
2055#undef $2 1758#undef $2
2056 1759
2057/* Override any GCC internal prototype to avoid an error. 1760/* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC 1761 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */ 1762 builtin and then its argument prototype would still apply. */
2067#if defined __stub_$2 || defined __stub___$2 1770#if defined __stub_$2 || defined __stub___$2
2068choke me 1771choke me
2069#endif 1772#endif
2070 1773
2071int 1774int
2072main () 1775main (void)
2073{ 1776{
2074return $2 (); 1777return $2 ();
2075 ; 1778 ;
2076 return 0; 1779 return 0;
2077} 1780}
2078_ACEOF 1781_ACEOF
2079if ac_fn_cxx_try_link "$LINENO"; then : 1782if ac_fn_cxx_try_link "$LINENO"
1783then :
2080 eval "$3=yes" 1784 eval "$3=yes"
2081else 1785else $as_nop
2082 eval "$3=no" 1786 eval "$3=no"
2083fi 1787fi
2084rm -f core conftest.err conftest.$ac_objext \ 1788rm -f core conftest.err conftest.$ac_objext conftest.beam \
2085 conftest$ac_exeext conftest.$ac_ext 1789 conftest$ac_exeext conftest.$ac_ext
2086fi 1790fi
2087eval ac_res=\$$3 1791eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; } 1793printf "%s\n" "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 1795
2092} # ac_fn_cxx_check_func 1796} # ac_fn_cxx_check_func
2093 1797
2094# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1798# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2096# Tests whether TYPE exists after having included INCLUDES, setting cache 1800# Tests whether TYPE exists after having included INCLUDES, setting cache
2097# variable VAR accordingly. 1801# variable VAR accordingly.
2098ac_fn_cxx_check_type () 1802ac_fn_cxx_check_type ()
2099{ 1803{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; } 1806printf %s "checking for $2... " >&6; }
2103if eval \${$3+:} false; then : 1807if eval test \${$3+y}
2104 $as_echo_n "(cached) " >&6 1808then :
2105else 1809 printf %s "(cached) " >&6
1810else $as_nop
2106 eval "$3=no" 1811 eval "$3=no"
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */ 1813/* end confdefs.h. */
2109$4 1814$4
2110int 1815int
2111main () 1816main (void)
2112{ 1817{
2113if (sizeof ($2)) 1818if (sizeof ($2))
2114 return 0; 1819 return 0;
2115 ; 1820 ;
2116 return 0; 1821 return 0;
2117} 1822}
2118_ACEOF 1823_ACEOF
2119if ac_fn_cxx_try_compile "$LINENO"; then : 1824if ac_fn_cxx_try_compile "$LINENO"
1825then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h. */ 1827/* end confdefs.h. */
2122$4 1828$4
2123int 1829int
2124main () 1830main (void)
2125{ 1831{
2126if (sizeof (($2))) 1832if (sizeof (($2)))
2127 return 0; 1833 return 0;
2128 ; 1834 ;
2129 return 0; 1835 return 0;
2130} 1836}
2131_ACEOF 1837_ACEOF
2132if ac_fn_cxx_try_compile "$LINENO"; then : 1838if ac_fn_cxx_try_compile "$LINENO"
1839then :
2133 1840
2134else 1841else $as_nop
2135 eval "$3=yes" 1842 eval "$3=yes"
2136fi 1843fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2138fi 1845fi
2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2140fi 1847fi
2141eval ac_res=\$$3 1848eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143$as_echo "$ac_res" >&6; } 1850printf "%s\n" "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 1852
2146} # ac_fn_cxx_check_type 1853} # ac_fn_cxx_check_type
1854
1855# ac_fn_cxx_try_cpp LINENO
1856# ------------------------
1857# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_cxx_try_cpp ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867printf "%s\n" "$ac_try_echo"; } >&5
1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1874 fi
1875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } > conftest.i && {
1877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1878 test ! -s conftest.err
1879 }
1880then :
1881 ac_retval=0
1882else $as_nop
1883 printf "%s\n" "$as_me: failed program was:" >&5
1884sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=1
1887fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891} # ac_fn_cxx_try_cpp
2147 1892
2148# ac_fn_c_find_intX_t LINENO BITS VAR 1893# ac_fn_c_find_intX_t LINENO BITS VAR
2149# ----------------------------------- 1894# -----------------------------------
2150# Finds a signed integer type with width BITS, setting cache variable VAR 1895# Finds a signed integer type with width BITS, setting cache variable VAR
2151# accordingly. 1896# accordingly.
2152ac_fn_c_find_intX_t () 1897ac_fn_c_find_intX_t ()
2153{ 1898{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2156$as_echo_n "checking for int$2_t... " >&6; } 1901printf %s "checking for int$2_t... " >&6; }
2157if eval \${$3+:} false; then : 1902if eval test \${$3+y}
2158 $as_echo_n "(cached) " >&6 1903then :
2159else 1904 printf %s "(cached) " >&6
1905else $as_nop
2160 eval "$3=no" 1906 eval "$3=no"
2161 # Order is important - never check a type that is potentially smaller 1907 # Order is important - never check a type that is potentially smaller
2162 # than half of the expected target width. 1908 # than half of the expected target width.
2163 for ac_type in int$2_t 'int' 'long int' \ 1909 for ac_type in int$2_t 'int' 'long int' \
2164 'long long int' 'short int' 'signed char'; do 1910 'long long int' 'short int' 'signed char'; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */ 1912/* end confdefs.h. */
2167$ac_includes_default 1913$ac_includes_default
2168 enum { N = $2 / 2 - 1 }; 1914 enum { N = $2 / 2 - 1 };
2169int 1915int
2170main () 1916main (void)
2171{ 1917{
2172static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1918static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2173test_array [0] = 0; 1919test_array [0] = 0;
2174return test_array [0]; 1920return test_array [0];
2175 1921
2176 ; 1922 ;
2177 return 0; 1923 return 0;
2178} 1924}
2179_ACEOF 1925_ACEOF
2180if ac_fn_cxx_try_compile "$LINENO"; then : 1926if ac_fn_cxx_try_compile "$LINENO"
1927then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */ 1929/* end confdefs.h. */
2183$ac_includes_default 1930$ac_includes_default
2184 enum { N = $2 / 2 - 1 }; 1931 enum { N = $2 / 2 - 1 };
2185int 1932int
2186main () 1933main (void)
2187{ 1934{
2188static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1935static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2189 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1936 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2190test_array [0] = 0; 1937test_array [0] = 0;
2191return test_array [0]; 1938return test_array [0];
2192 1939
2193 ; 1940 ;
2194 return 0; 1941 return 0;
2195} 1942}
2196_ACEOF 1943_ACEOF
2197if ac_fn_cxx_try_compile "$LINENO"; then : 1944if ac_fn_cxx_try_compile "$LINENO"
1945then :
2198 1946
2199else 1947else $as_nop
2200 case $ac_type in #( 1948 case $ac_type in #(
2201 int$2_t) : 1949 int$2_t) :
2202 eval "$3=yes" ;; #( 1950 eval "$3=yes" ;; #(
2203 *) : 1951 *) :
2204 eval "$3=\$ac_type" ;; 1952 eval "$3=\$ac_type" ;;
2205esac 1953esac
2206fi 1954fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2208fi 1956fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2210 if eval test \"x\$"$3"\" = x"no"; then : 1958 if eval test \"x\$"$3"\" = x"no"
1959then :
2211 1960
2212else 1961else $as_nop
2213 break 1962 break
2214fi 1963fi
2215 done 1964 done
2216fi 1965fi
2217eval ac_res=\$$3 1966eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; } 1968printf "%s\n" "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 1970
2222} # ac_fn_c_find_intX_t 1971} # ac_fn_c_find_intX_t
2223 1972
2224# ac_fn_c_find_uintX_t LINENO BITS VAR 1973# ac_fn_c_find_uintX_t LINENO BITS VAR
2226# Finds an unsigned integer type with width BITS, setting cache variable VAR 1975# Finds an unsigned integer type with width BITS, setting cache variable VAR
2227# accordingly. 1976# accordingly.
2228ac_fn_c_find_uintX_t () 1977ac_fn_c_find_uintX_t ()
2229{ 1978{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2232$as_echo_n "checking for uint$2_t... " >&6; } 1981printf %s "checking for uint$2_t... " >&6; }
2233if eval \${$3+:} false; then : 1982if eval test \${$3+y}
2234 $as_echo_n "(cached) " >&6 1983then :
2235else 1984 printf %s "(cached) " >&6
1985else $as_nop
2236 eval "$3=no" 1986 eval "$3=no"
2237 # Order is important - never check a type that is potentially smaller 1987 # Order is important - never check a type that is potentially smaller
2238 # than half of the expected target width. 1988 # than half of the expected target width.
2239 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1989 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2240 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1990 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */ 1992/* end confdefs.h. */
2243$ac_includes_default 1993$ac_includes_default
2244int 1994int
2245main () 1995main (void)
2246{ 1996{
2247static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1997static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2248test_array [0] = 0; 1998test_array [0] = 0;
2249return test_array [0]; 1999return test_array [0];
2250 2000
2251 ; 2001 ;
2252 return 0; 2002 return 0;
2253} 2003}
2254_ACEOF 2004_ACEOF
2255if ac_fn_cxx_try_compile "$LINENO"; then : 2005if ac_fn_cxx_try_compile "$LINENO"
2006then :
2256 case $ac_type in #( 2007 case $ac_type in #(
2257 uint$2_t) : 2008 uint$2_t) :
2258 eval "$3=yes" ;; #( 2009 eval "$3=yes" ;; #(
2259 *) : 2010 *) :
2260 eval "$3=\$ac_type" ;; 2011 eval "$3=\$ac_type" ;;
2261esac 2012esac
2262fi 2013fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 if eval test \"x\$"$3"\" = x"no"; then : 2015 if eval test \"x\$"$3"\" = x"no"
2016then :
2265 2017
2266else 2018else $as_nop
2267 break 2019 break
2268fi 2020fi
2269 done 2021 done
2270fi 2022fi
2271eval ac_res=\$$3 2023eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; } 2025printf "%s\n" "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 2027
2276} # ac_fn_c_find_uintX_t 2028} # ac_fn_c_find_uintX_t
2277
2278# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2279# ------------------------------------------------------
2280# Tries to find if the field MEMBER exists in type AGGR, after including
2281# INCLUDES, setting cache variable VAR accordingly.
2282ac_fn_cxx_check_member ()
2283{
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2286$as_echo_n "checking for $2.$3... " >&6; }
2287if eval \${$4+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291/* end confdefs.h. */
2292$5
2293int
2294main ()
2295{
2296static $2 ac_aggr;
2297if (ac_aggr.$3)
2298return 0;
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303if ac_fn_cxx_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h. */
2308$5
2309int
2310main ()
2311{
2312static $2 ac_aggr;
2313if (sizeof ac_aggr.$3)
2314return 0;
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319if ac_fn_cxx_try_compile "$LINENO"; then :
2320 eval "$4=yes"
2321else
2322 eval "$4=no"
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328eval ac_res=\$$4
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333} # ac_fn_cxx_check_member
2334 2029
2335# ac_fn_cxx_try_run LINENO 2030# ac_fn_cxx_try_run LINENO
2336# ------------------------ 2031# ------------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2032# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2338# that executables *can* be run. 2033# executables *can* be run.
2339ac_fn_cxx_try_run () 2034ac_fn_cxx_try_run ()
2340{ 2035{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link" 2037 if { { ac_try="$ac_link"
2343case "(($ac_try" in 2038case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;; 2040 *) ac_try_echo=$ac_try;;
2346esac 2041esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5 2043printf "%s\n" "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5 2044 (eval "$ac_link") 2>&5
2350 ac_status=$? 2045 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2047 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in 2048 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;; 2050 *) ac_try_echo=$ac_try;;
2356esac 2051esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5 2053printf "%s\n" "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5 2054 (eval "$ac_try") 2>&5
2360 ac_status=$? 2055 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then : 2057 test $ac_status = 0; }; }
2058then :
2363 ac_retval=0 2059 ac_retval=0
2364else 2060else $as_nop
2365 $as_echo "$as_me: program exited with status $ac_status" >&5 2061 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5 2062 printf "%s\n" "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5 2063sed 's/^/| /' conftest.$ac_ext >&5
2368 2064
2369 ac_retval=$ac_status 2065 ac_retval=$ac_status
2370fi 2066fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval 2069 as_fn_set_status $ac_retval
2374 2070
2375} # ac_fn_cxx_try_run 2071} # ac_fn_cxx_try_run
2072ac_configure_args_raw=
2073for ac_arg
2074do
2075 case $ac_arg in
2076 *\'*)
2077 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 esac
2079 as_fn_append ac_configure_args_raw " '$ac_arg'"
2080done
2081
2082case $ac_configure_args_raw in
2083 *$as_nl*)
2084 ac_safe_unquote= ;;
2085 *)
2086 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2087 ac_unsafe_a="$ac_unsafe_z#~"
2088 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2089 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2090esac
2091
2376cat >config.log <<_ACEOF 2092cat >config.log <<_ACEOF
2377This file contains any messages produced by compilers while 2093This file contains any messages produced by compilers while
2378running configure, to aid debugging if configure makes a mistake. 2094running configure, to aid debugging if configure makes a mistake.
2379 2095
2380It was created by $as_me, which was 2096It was created by $as_me, which was
2381generated by GNU Autoconf 2.69. Invocation command line was 2097generated by GNU Autoconf 2.71. Invocation command line was
2382 2098
2383 $ $0 $@ 2099 $ $0$ac_configure_args_raw
2384 2100
2385_ACEOF 2101_ACEOF
2386exec 5>>config.log 2102exec 5>>config.log
2387{ 2103{
2388cat <<_ASUNAME 2104cat <<_ASUNAME
2411 2127
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH 2129for as_dir in $PATH
2414do 2130do
2415 IFS=$as_save_IFS 2131 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=. 2132 case $as_dir in #(((
2417 $as_echo "PATH: $as_dir" 2133 '') as_dir=./ ;;
2134 */) ;;
2135 *) as_dir=$as_dir/ ;;
2136 esac
2137 printf "%s\n" "PATH: $as_dir"
2418 done 2138 done
2419IFS=$as_save_IFS 2139IFS=$as_save_IFS
2420 2140
2421} >&5 2141} >&5
2422 2142
2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449 | -silent | --silent | --silen | --sile | --sil) 2169 | -silent | --silent | --silen | --sile | --sil)
2450 continue ;; 2170 continue ;;
2451 *\'*) 2171 *\'*)
2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2172 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 esac 2173 esac
2454 case $ac_pass in 2174 case $ac_pass in
2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 2) 2176 2)
2457 as_fn_append ac_configure_args1 " '$ac_arg'" 2177 as_fn_append ac_configure_args1 " '$ac_arg'"
2482# config.log. We remove comments because anyway the quotes in there 2202# config.log. We remove comments because anyway the quotes in there
2483# would cause problems or look ugly. 2203# would cause problems or look ugly.
2484# WARNING: Use '\'' to represent an apostrophe within the trap. 2204# WARNING: Use '\'' to represent an apostrophe within the trap.
2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2205# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486trap 'exit_status=$? 2206trap 'exit_status=$?
2207 # Sanitize IFS.
2208 IFS=" "" $as_nl"
2487 # Save into config.log some information that might help in debugging. 2209 # Save into config.log some information that might help in debugging.
2488 { 2210 {
2489 echo 2211 echo
2490 2212
2491 $as_echo "## ---------------- ## 2213 printf "%s\n" "## ---------------- ##
2492## Cache variables. ## 2214## Cache variables. ##
2493## ---------------- ##" 2215## ---------------- ##"
2494 echo 2216 echo
2495 # The following way of writing the cache mishandles newlines in values, 2217 # The following way of writing the cache mishandles newlines in values,
2496( 2218(
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var 2220 eval ac_val=\$$ac_var
2499 case $ac_val in #( 2221 case $ac_val in #(
2500 *${as_nl}*) 2222 *${as_nl}*)
2501 case $ac_var in #( 2223 case $ac_var in #(
2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2224 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2225printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac 2226 esac
2505 case $ac_var in #( 2227 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #( 2228 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;; 2230 *) { eval $ac_var=; unset $ac_var;} ;;
2522 esac | 2244 esac |
2523 sort 2245 sort
2524) 2246)
2525 echo 2247 echo
2526 2248
2527 $as_echo "## ----------------- ## 2249 printf "%s\n" "## ----------------- ##
2528## Output variables. ## 2250## Output variables. ##
2529## ----------------- ##" 2251## ----------------- ##"
2530 echo 2252 echo
2531 for ac_var in $ac_subst_vars 2253 for ac_var in $ac_subst_vars
2532 do 2254 do
2533 eval ac_val=\$$ac_var 2255 eval ac_val=\$$ac_var
2534 case $ac_val in 2256 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2257 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac 2258 esac
2537 $as_echo "$ac_var='\''$ac_val'\''" 2259 printf "%s\n" "$ac_var='\''$ac_val'\''"
2538 done | sort 2260 done | sort
2539 echo 2261 echo
2540 2262
2541 if test -n "$ac_subst_files"; then 2263 if test -n "$ac_subst_files"; then
2542 $as_echo "## ------------------- ## 2264 printf "%s\n" "## ------------------- ##
2543## File substitutions. ## 2265## File substitutions. ##
2544## ------------------- ##" 2266## ------------------- ##"
2545 echo 2267 echo
2546 for ac_var in $ac_subst_files 2268 for ac_var in $ac_subst_files
2547 do 2269 do
2548 eval ac_val=\$$ac_var 2270 eval ac_val=\$$ac_var
2549 case $ac_val in 2271 case $ac_val in
2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2272 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac 2273 esac
2552 $as_echo "$ac_var='\''$ac_val'\''" 2274 printf "%s\n" "$ac_var='\''$ac_val'\''"
2553 done | sort 2275 done | sort
2554 echo 2276 echo
2555 fi 2277 fi
2556 2278
2557 if test -s confdefs.h; then 2279 if test -s confdefs.h; then
2558 $as_echo "## ----------- ## 2280 printf "%s\n" "## ----------- ##
2559## confdefs.h. ## 2281## confdefs.h. ##
2560## ----------- ##" 2282## ----------- ##"
2561 echo 2283 echo
2562 cat confdefs.h 2284 cat confdefs.h
2563 echo 2285 echo
2564 fi 2286 fi
2565 test "$ac_signal" != 0 && 2287 test "$ac_signal" != 0 &&
2566 $as_echo "$as_me: caught signal $ac_signal" 2288 printf "%s\n" "$as_me: caught signal $ac_signal"
2567 $as_echo "$as_me: exit $exit_status" 2289 printf "%s\n" "$as_me: exit $exit_status"
2568 } >&5 2290 } >&5
2569 rm -f core *.core core.conftest.* && 2291 rm -f core *.core core.conftest.* &&
2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571 exit $exit_status 2293 exit $exit_status
2572' 0 2294' 0
2576ac_signal=0 2298ac_signal=0
2577 2299
2578# confdefs.h avoids OS command line length limits that DEFS can exceed. 2300# confdefs.h avoids OS command line length limits that DEFS can exceed.
2579rm -f -r conftest* confdefs.h 2301rm -f -r conftest* confdefs.h
2580 2302
2581$as_echo "/* confdefs.h */" > confdefs.h 2303printf "%s\n" "/* confdefs.h */" > confdefs.h
2582 2304
2583# Predefined preprocessor variables. 2305# Predefined preprocessor variables.
2584 2306
2585cat >>confdefs.h <<_ACEOF 2307printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2586#define PACKAGE_NAME "$PACKAGE_NAME"
2587_ACEOF
2588 2308
2589cat >>confdefs.h <<_ACEOF 2309printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591_ACEOF
2592 2310
2593cat >>confdefs.h <<_ACEOF 2311printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
2595_ACEOF
2596 2312
2597cat >>confdefs.h <<_ACEOF 2313printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2598#define PACKAGE_STRING "$PACKAGE_STRING"
2599_ACEOF
2600 2314
2601cat >>confdefs.h <<_ACEOF 2315printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603_ACEOF
2604 2316
2605cat >>confdefs.h <<_ACEOF 2317printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608 2318
2609 2319
2610# Let the site file select an alternate cache file if it wants to. 2320# Let the site file select an alternate cache file if it wants to.
2611# Prefer an explicitly selected file to automatically selected ones. 2321# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
2614if test -n "$CONFIG_SITE"; then 2322if test -n "$CONFIG_SITE"; then
2615 # We do not want a PATH search for config.site.
2616 case $CONFIG_SITE in #((
2617 -*) ac_site_file1=./$CONFIG_SITE;;
2618 */*) ac_site_file1=$CONFIG_SITE;; 2323 ac_site_files="$CONFIG_SITE"
2619 *) ac_site_file1=./$CONFIG_SITE;;
2620 esac
2621elif test "x$prefix" != xNONE; then 2324elif test "x$prefix" != xNONE; then
2622 ac_site_file1=$prefix/share/config.site 2325 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2623 ac_site_file2=$prefix/etc/config.site
2624else 2326else
2625 ac_site_file1=$ac_default_prefix/share/config.site 2327 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2626 ac_site_file2=$ac_default_prefix/etc/config.site
2627fi 2328fi
2329
2628for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2330for ac_site_file in $ac_site_files
2629do 2331do
2630 test "x$ac_site_file" = xNONE && continue 2332 case $ac_site_file in #(
2333 */*) :
2334 ;; #(
2335 *) :
2336 ac_site_file=./$ac_site_file ;;
2337esac
2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2338 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2633$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2340printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2634 sed 's/^/| /' "$ac_site_file" >&5 2341 sed 's/^/| /' "$ac_site_file" >&5
2635 . "$ac_site_file" \ 2342 . "$ac_site_file" \
2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2343 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2344printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file 2345as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; } 2346See \`config.log' for more details" "$LINENO" 5; }
2640 fi 2347 fi
2641done 2348done
2642 2349
2643if test -r "$cache_file"; then 2350if test -r "$cache_file"; then
2644 # Some versions of bash will fail to source /dev/null (special files 2351 # Some versions of bash will fail to source /dev/null (special files
2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648$as_echo "$as_me: loading cache $cache_file" >&6;} 2355printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2649 case $cache_file in 2356 case $cache_file in
2650 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651 *) . "./$cache_file";; 2358 *) . "./$cache_file";;
2652 esac 2359 esac
2653 fi 2360 fi
2654else 2361else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656$as_echo "$as_me: creating cache $cache_file" >&6;} 2363printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2657 >$cache_file 2364 >$cache_file
2365fi
2366
2367# Test code for whether the C compiler supports C89 (global declarations)
2368ac_c_conftest_c89_globals='
2369/* Does the compiler advertise C89 conformance?
2370 Do not test the value of __STDC__, because some compilers set it to 0
2371 while being otherwise adequately conformant. */
2372#if !defined __STDC__
2373# error "Compiler does not advertise C89 conformance"
2374#endif
2375
2376#include <stddef.h>
2377#include <stdarg.h>
2378struct stat;
2379/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2380struct buf { int x; };
2381struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2382static char *e (p, i)
2383 char **p;
2384 int i;
2385{
2386 return p[i];
2387}
2388static char *f (char * (*g) (char **, int), char **p, ...)
2389{
2390 char *s;
2391 va_list v;
2392 va_start (v,p);
2393 s = g (p, va_arg (v,int));
2394 va_end (v);
2395 return s;
2396}
2397
2398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2399 function prototypes and stuff, but not \xHH hex character constants.
2400 These do not provoke an error unfortunately, instead are silently treated
2401 as an "x". The following induces an error, until -std is added to get
2402 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2403 array size at least. It is necessary to write \x00 == 0 to get something
2404 that is true only with -std. */
2405int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2406
2407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2408 inside strings and character constants. */
2409#define FOO(x) '\''x'\''
2410int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2411
2412int test (int i, double x);
2413struct s1 {int (*f) (int a);};
2414struct s2 {int (*f) (double a);};
2415int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2416 int, int);'
2417
2418# Test code for whether the C compiler supports C89 (body of main).
2419ac_c_conftest_c89_main='
2420ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2421'
2422
2423# Test code for whether the C compiler supports C99 (global declarations)
2424ac_c_conftest_c99_globals='
2425// Does the compiler advertise C99 conformance?
2426#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2427# error "Compiler does not advertise C99 conformance"
2428#endif
2429
2430#include <stdbool.h>
2431extern int puts (const char *);
2432extern int printf (const char *, ...);
2433extern int dprintf (int, const char *, ...);
2434extern void *malloc (size_t);
2435
2436// Check varargs macros. These examples are taken from C99 6.10.3.5.
2437// dprintf is used instead of fprintf to avoid needing to declare
2438// FILE and stderr.
2439#define debug(...) dprintf (2, __VA_ARGS__)
2440#define showlist(...) puts (#__VA_ARGS__)
2441#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2442static void
2443test_varargs_macros (void)
2444{
2445 int x = 1234;
2446 int y = 5678;
2447 debug ("Flag");
2448 debug ("X = %d\n", x);
2449 showlist (The first, second, and third items.);
2450 report (x>y, "x is %d but y is %d", x, y);
2451}
2452
2453// Check long long types.
2454#define BIG64 18446744073709551615ull
2455#define BIG32 4294967295ul
2456#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2457#if !BIG_OK
2458 #error "your preprocessor is broken"
2459#endif
2460#if BIG_OK
2461#else
2462 #error "your preprocessor is broken"
2463#endif
2464static long long int bignum = -9223372036854775807LL;
2465static unsigned long long int ubignum = BIG64;
2466
2467struct incomplete_array
2468{
2469 int datasize;
2470 double data[];
2471};
2472
2473struct named_init {
2474 int number;
2475 const wchar_t *name;
2476 double average;
2477};
2478
2479typedef const char *ccp;
2480
2481static inline int
2482test_restrict (ccp restrict text)
2483{
2484 // See if C++-style comments work.
2485 // Iterate through items via the restricted pointer.
2486 // Also check for declarations in for loops.
2487 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2488 continue;
2489 return 0;
2490}
2491
2492// Check varargs and va_copy.
2493static bool
2494test_varargs (const char *format, ...)
2495{
2496 va_list args;
2497 va_start (args, format);
2498 va_list args_copy;
2499 va_copy (args_copy, args);
2500
2501 const char *str = "";
2502 int number = 0;
2503 float fnumber = 0;
2504
2505 while (*format)
2506 {
2507 switch (*format++)
2508 {
2509 case '\''s'\'': // string
2510 str = va_arg (args_copy, const char *);
2511 break;
2512 case '\''d'\'': // int
2513 number = va_arg (args_copy, int);
2514 break;
2515 case '\''f'\'': // float
2516 fnumber = va_arg (args_copy, double);
2517 break;
2518 default:
2519 break;
2520 }
2521 }
2522 va_end (args_copy);
2523 va_end (args);
2524
2525 return *str && number && fnumber;
2526}
2527'
2528
2529# Test code for whether the C compiler supports C99 (body of main).
2530ac_c_conftest_c99_main='
2531 // Check bool.
2532 _Bool success = false;
2533 success |= (argc != 0);
2534
2535 // Check restrict.
2536 if (test_restrict ("String literal") == 0)
2537 success = true;
2538 char *restrict newvar = "Another string";
2539
2540 // Check varargs.
2541 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2542 test_varargs_macros ();
2543
2544 // Check flexible array members.
2545 struct incomplete_array *ia =
2546 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2547 ia->datasize = 10;
2548 for (int i = 0; i < ia->datasize; ++i)
2549 ia->data[i] = i * 1.234;
2550
2551 // Check named initializers.
2552 struct named_init ni = {
2553 .number = 34,
2554 .name = L"Test wide string",
2555 .average = 543.34343,
2556 };
2557
2558 ni.number = 58;
2559
2560 int dynamic_array[ni.number];
2561 dynamic_array[0] = argv[0][0];
2562 dynamic_array[ni.number - 1] = 543;
2563
2564 // work around unused variable warnings
2565 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2566 || dynamic_array[ni.number - 1] != 543);
2567'
2568
2569# Test code for whether the C compiler supports C11 (global declarations)
2570ac_c_conftest_c11_globals='
2571// Does the compiler advertise C11 conformance?
2572#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2573# error "Compiler does not advertise C11 conformance"
2574#endif
2575
2576// Check _Alignas.
2577char _Alignas (double) aligned_as_double;
2578char _Alignas (0) no_special_alignment;
2579extern char aligned_as_int;
2580char _Alignas (0) _Alignas (int) aligned_as_int;
2581
2582// Check _Alignof.
2583enum
2584{
2585 int_alignment = _Alignof (int),
2586 int_array_alignment = _Alignof (int[100]),
2587 char_alignment = _Alignof (char)
2588};
2589_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2590
2591// Check _Noreturn.
2592int _Noreturn does_not_return (void) { for (;;) continue; }
2593
2594// Check _Static_assert.
2595struct test_static_assert
2596{
2597 int x;
2598 _Static_assert (sizeof (int) <= sizeof (long int),
2599 "_Static_assert does not work in struct");
2600 long int y;
2601};
2602
2603// Check UTF-8 literals.
2604#define u8 syntax error!
2605char const utf8_literal[] = u8"happens to be ASCII" "another string";
2606
2607// Check duplicate typedefs.
2608typedef long *long_ptr;
2609typedef long int *long_ptr;
2610typedef long_ptr long_ptr;
2611
2612// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2613struct anonymous
2614{
2615 union {
2616 struct { int i; int j; };
2617 struct { int k; long int l; } w;
2618 };
2619 int m;
2620} v1;
2621'
2622
2623# Test code for whether the C compiler supports C11 (body of main).
2624ac_c_conftest_c11_main='
2625 _Static_assert ((offsetof (struct anonymous, i)
2626 == offsetof (struct anonymous, w.k)),
2627 "Anonymous union alignment botch");
2628 v1.i = 2;
2629 v1.w.k = 5;
2630 ok |= v1.i != 5;
2631'
2632
2633# Test code for whether the C compiler supports C11 (complete).
2634ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2635${ac_c_conftest_c99_globals}
2636${ac_c_conftest_c11_globals}
2637
2638int
2639main (int argc, char **argv)
2640{
2641 int ok = 0;
2642 ${ac_c_conftest_c89_main}
2643 ${ac_c_conftest_c99_main}
2644 ${ac_c_conftest_c11_main}
2645 return ok;
2646}
2647"
2648
2649# Test code for whether the C compiler supports C99 (complete).
2650ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2651${ac_c_conftest_c99_globals}
2652
2653int
2654main (int argc, char **argv)
2655{
2656 int ok = 0;
2657 ${ac_c_conftest_c89_main}
2658 ${ac_c_conftest_c99_main}
2659 return ok;
2660}
2661"
2662
2663# Test code for whether the C compiler supports C89 (complete).
2664ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2665
2666int
2667main (int argc, char **argv)
2668{
2669 int ok = 0;
2670 ${ac_c_conftest_c89_main}
2671 return ok;
2672}
2673"
2674
2675# Test code for whether the C++ compiler supports C++98 (global declarations)
2676ac_cxx_conftest_cxx98_globals='
2677// Does the compiler advertise C++98 conformance?
2678#if !defined __cplusplus || __cplusplus < 199711L
2679# error "Compiler does not advertise C++98 conformance"
2680#endif
2681
2682// These inclusions are to reject old compilers that
2683// lack the unsuffixed header files.
2684#include <cstdlib>
2685#include <exception>
2686
2687// <cassert> and <cstring> are *not* freestanding headers in C++98.
2688extern void assert (int);
2689namespace std {
2690 extern int strcmp (const char *, const char *);
2691}
2692
2693// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2694using std::exception;
2695using std::strcmp;
2696
2697namespace {
2698
2699void test_exception_syntax()
2700{
2701 try {
2702 throw "test";
2703 } catch (const char *s) {
2704 // Extra parentheses suppress a warning when building autoconf itself,
2705 // due to lint rules shared with more typical C programs.
2706 assert (!(strcmp) (s, "test"));
2707 }
2708}
2709
2710template <typename T> struct test_template
2711{
2712 T const val;
2713 explicit test_template(T t) : val(t) {}
2714 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2715};
2716
2717} // anonymous namespace
2718'
2719
2720# Test code for whether the C++ compiler supports C++98 (body of main)
2721ac_cxx_conftest_cxx98_main='
2722 assert (argc);
2723 assert (! argv[0]);
2724{
2725 test_exception_syntax ();
2726 test_template<double> tt (2.0);
2727 assert (tt.add (4) == 6.0);
2728 assert (true && !false);
2729}
2730'
2731
2732# Test code for whether the C++ compiler supports C++11 (global declarations)
2733ac_cxx_conftest_cxx11_globals='
2734// Does the compiler advertise C++ 2011 conformance?
2735#if !defined __cplusplus || __cplusplus < 201103L
2736# error "Compiler does not advertise C++11 conformance"
2737#endif
2738
2739namespace cxx11test
2740{
2741 constexpr int get_val() { return 20; }
2742
2743 struct testinit
2744 {
2745 int i;
2746 double d;
2747 };
2748
2749 class delegate
2750 {
2751 public:
2752 delegate(int n) : n(n) {}
2753 delegate(): delegate(2354) {}
2754
2755 virtual int getval() { return this->n; };
2756 protected:
2757 int n;
2758 };
2759
2760 class overridden : public delegate
2761 {
2762 public:
2763 overridden(int n): delegate(n) {}
2764 virtual int getval() override final { return this->n * 2; }
2765 };
2766
2767 class nocopy
2768 {
2769 public:
2770 nocopy(int i): i(i) {}
2771 nocopy() = default;
2772 nocopy(const nocopy&) = delete;
2773 nocopy & operator=(const nocopy&) = delete;
2774 private:
2775 int i;
2776 };
2777
2778 // for testing lambda expressions
2779 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2780 {
2781 return f(v);
2782 }
2783
2784 // for testing variadic templates and trailing return types
2785 template <typename V> auto sum(V first) -> V
2786 {
2787 return first;
2788 }
2789 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2790 {
2791 return first + sum(rest...);
2792 }
2793}
2794'
2795
2796# Test code for whether the C++ compiler supports C++11 (body of main)
2797ac_cxx_conftest_cxx11_main='
2798{
2799 // Test auto and decltype
2800 auto a1 = 6538;
2801 auto a2 = 48573953.4;
2802 auto a3 = "String literal";
2803
2804 int total = 0;
2805 for (auto i = a3; *i; ++i) { total += *i; }
2806
2807 decltype(a2) a4 = 34895.034;
2808}
2809{
2810 // Test constexpr
2811 short sa[cxx11test::get_val()] = { 0 };
2812}
2813{
2814 // Test initializer lists
2815 cxx11test::testinit il = { 4323, 435234.23544 };
2816}
2817{
2818 // Test range-based for
2819 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2820 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2821 for (auto &x : array) { x += 23; }
2822}
2823{
2824 // Test lambda expressions
2825 using cxx11test::eval;
2826 assert (eval ([](int x) { return x*2; }, 21) == 42);
2827 double d = 2.0;
2828 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2829 assert (d == 5.0);
2830 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2831 assert (d == 5.0);
2832}
2833{
2834 // Test use of variadic templates
2835 using cxx11test::sum;
2836 auto a = sum(1);
2837 auto b = sum(1, 2);
2838 auto c = sum(1.0, 2.0, 3.0);
2839}
2840{
2841 // Test constructor delegation
2842 cxx11test::delegate d1;
2843 cxx11test::delegate d2();
2844 cxx11test::delegate d3(45);
2845}
2846{
2847 // Test override and final
2848 cxx11test::overridden o1(55464);
2849}
2850{
2851 // Test nullptr
2852 char *c = nullptr;
2853}
2854{
2855 // Test template brackets
2856 test_template<::test_template<int>> v(test_template<int>(12));
2857}
2858{
2859 // Unicode literals
2860 char const *utf8 = u8"UTF-8 string \u2500";
2861 char16_t const *utf16 = u"UTF-8 string \u2500";
2862 char32_t const *utf32 = U"UTF-32 string \u2500";
2863}
2864'
2865
2866# Test code for whether the C compiler supports C++11 (complete).
2867ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2868${ac_cxx_conftest_cxx11_globals}
2869
2870int
2871main (int argc, char **argv)
2872{
2873 int ok = 0;
2874 ${ac_cxx_conftest_cxx98_main}
2875 ${ac_cxx_conftest_cxx11_main}
2876 return ok;
2877}
2878"
2879
2880# Test code for whether the C compiler supports C++98 (complete).
2881ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2882int
2883main (int argc, char **argv)
2884{
2885 int ok = 0;
2886 ${ac_cxx_conftest_cxx98_main}
2887 return ok;
2888}
2889"
2890
2891as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2892as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2893as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2894as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2895as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2896as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2897as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2898as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2899as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2900as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2901as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2902
2903# Auxiliary files required by this configure script.
2904ac_aux_files="install-sh"
2905
2906# Locations in which to look for auxiliary files.
2907ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2908
2909# Search for a directory containing all of the required auxiliary files,
2910# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2911# If we don't find one directory that contains all the files we need,
2912# we report the set of missing files from the *first* directory in
2913# $ac_aux_dir_candidates and give up.
2914ac_missing_aux_files=""
2915ac_first_candidate=:
2916printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918as_found=false
2919for as_dir in $ac_aux_dir_candidates
2920do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 as_found=:
2928
2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2930 ac_aux_dir_found=yes
2931 ac_install_sh=
2932 for ac_aux in $ac_aux_files
2933 do
2934 # As a special case, if "install-sh" is required, that requirement
2935 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2936 # and $ac_install_sh is set appropriately for whichever one is found.
2937 if test x"$ac_aux" = x"install-sh"
2938 then
2939 if test -f "${as_dir}install-sh"; then
2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2941 ac_install_sh="${as_dir}install-sh -c"
2942 elif test -f "${as_dir}install.sh"; then
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2944 ac_install_sh="${as_dir}install.sh -c"
2945 elif test -f "${as_dir}shtool"; then
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2947 ac_install_sh="${as_dir}shtool install -c"
2948 else
2949 ac_aux_dir_found=no
2950 if $ac_first_candidate; then
2951 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2952 else
2953 break
2954 fi
2955 fi
2956 else
2957 if test -f "${as_dir}${ac_aux}"; then
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2959 else
2960 ac_aux_dir_found=no
2961 if $ac_first_candidate; then
2962 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2963 else
2964 break
2965 fi
2966 fi
2967 fi
2968 done
2969 if test "$ac_aux_dir_found" = yes; then
2970 ac_aux_dir="$as_dir"
2971 break
2972 fi
2973 ac_first_candidate=false
2974
2975 as_found=false
2976done
2977IFS=$as_save_IFS
2978if $as_found
2979then :
2980
2981else $as_nop
2982 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2983fi
2984
2985
2986# These three variables are undocumented and unsupported,
2987# and are intended to be withdrawn in a future Autoconf release.
2988# They can cause serious problems if a builder's source tree is in a directory
2989# whose full name contains unusual characters.
2990if test -f "${ac_aux_dir}config.guess"; then
2991 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2992fi
2993if test -f "${ac_aux_dir}config.sub"; then
2994 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2995fi
2996if test -f "$ac_aux_dir/configure"; then
2997 ac_configure="$SHELL ${ac_aux_dir}configure"
2658fi 2998fi
2659 2999
2660# Check that the precious variables saved in the cache have kept the same 3000# Check that the precious variables saved in the cache have kept the same
2661# value. 3001# value.
2662ac_cache_corrupted=false 3002ac_cache_corrupted=false
2665 eval ac_new_set=\$ac_env_${ac_var}_set 3005 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value 3007 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in 3008 case $ac_old_set,$ac_new_set in
2669 set,) 3009 set,)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3011printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;; 3012 ac_cache_corrupted=: ;;
2673 ,set) 3013 ,set)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3015printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;; 3016 ac_cache_corrupted=: ;;
2677 ,);; 3017 ,);;
2678 *) 3018 *)
2679 if test "x$ac_old_val" != "x$ac_new_val"; then 3019 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure. 3020 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val` 3021 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val` 3022 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3025printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2686 ac_cache_corrupted=: 3026 ac_cache_corrupted=:
2687 else 3027 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3029printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val 3030 eval $ac_var=\$ac_old_val
2691 fi 3031 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3033printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3035printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2696 fi;; 3036 fi;;
2697 esac 3037 esac
2698 # Pass precious variables to config.status. 3038 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then 3039 if test "$ac_new_set" = set; then
2700 case $ac_new_val in 3040 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3041 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;; 3042 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac 3043 esac
2704 case " $ac_configure_args " in 3044 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 esac 3047 esac
2708 fi 3048 fi
2709done 3049done
2710if $ac_cache_corrupted; then 3050if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3054printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3055 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3056 and start over" "$LINENO" 5
2716fi 3057fi
2717## -------------------- ## 3058## -------------------- ##
2718## Main body of script. ## 3059## Main body of script. ##
2719## -------------------- ## 3060## -------------------- ##
2720 3061
2728 3069
2729 3070
2730ac_config_headers="$ac_config_headers config.h:config.h.in" 3071ac_config_headers="$ac_config_headers config.h:config.h.in"
2731 3072
2732 3073
2733ac_aux_dir=
2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748done
2749if test -z "$ac_aux_dir"; then
2750 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2751fi
2752
2753# These three variables are undocumented and unsupported,
2754# and are intended to be withdrawn in a future Autoconf release.
2755# They can cause serious problems if a builder's source tree is in a directory
2756# whose full name contains unusual characters.
2757ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2758ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2759ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2760
2761
2762# Make sure we can run config.sub.
2763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767$as_echo_n "checking build system type... " >&6; }
2768if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 ac_build_alias=$build_alias
2772test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781$as_echo "$ac_cv_build" >&6; }
2782case $ac_cv_build in
2783*-*-*) ;;
2784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785esac
2786build=$ac_cv_build
2787ac_save_IFS=$IFS; IFS='-'
2788set x $ac_cv_build
2789shift
2790build_cpu=$1
2791build_vendor=$2
2792shift; shift
2793# Remember, the first character of IFS is used to create $*,
2794# except with old shells:
2795build_os=$*
2796IFS=$ac_save_IFS
2797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801$as_echo_n "checking host system type... " >&6; }
2802if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804else
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2807else
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810fi
2811
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814$as_echo "$ac_cv_host" >&6; }
2815case $ac_cv_host in
2816*-*-*) ;;
2817*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818esac
2819host=$ac_cv_host
2820ac_save_IFS=$IFS; IFS='-'
2821set x $ac_cv_host
2822shift
2823host_cpu=$1
2824host_vendor=$2
2825shift; shift
2826# Remember, the first character of IFS is used to create $*,
2827# except with old shells:
2828host_os=$*
2829IFS=$ac_save_IFS
2830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831
2832
2833
2834VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3074VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2835DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3075DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2836 3076
2837echo "" 3077echo ""
2838echo "configuring for rxvt $VERSION" 3078echo "configuring for rxvt $VERSION"
2839echo "" 3079echo ""
2840 3080
2841orig_CXXFLAGS="$CXXFLAGS" 3081orig_CXXFLAGS="$CXXFLAGS"
3082
3083
3084
3085
3086
3087
3088
3089
3090
2842 3091
2843ac_ext=c 3092ac_ext=c
2844ac_cpp='$CPP $CPPFLAGS' 3093ac_cpp='$CPP $CPPFLAGS'
2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847ac_compiler_gnu=$ac_cv_c_compiler_gnu 3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848if test -n "$ac_tool_prefix"; then 3097if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}gcc; ac_word=$2 3099set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; } 3101printf %s "checking for $ac_word... " >&6; }
2853if ${ac_cv_prog_CC+:} false; then : 3102if test ${ac_cv_prog_CC+y}
2854 $as_echo_n "(cached) " >&6 3103then :
2855else 3104 printf %s "(cached) " >&6
3105else $as_nop
2856 if test -n "$CC"; then 3106 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test. 3107 ac_cv_prog_CC="$CC" # Let the user override the test.
2858else 3108else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH 3110for as_dir in $PATH
2861do 3111do
2862 IFS=$as_save_IFS 3112 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=. 3113 case $as_dir in #(((
3114 '') as_dir=./ ;;
3115 */) ;;
3116 *) as_dir=$as_dir/ ;;
3117 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do 3118 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2 3122 break 2
2869 fi 3123 fi
2870done 3124done
2871 done 3125 done
2872IFS=$as_save_IFS 3126IFS=$as_save_IFS
2873 3127
2874fi 3128fi
2875fi 3129fi
2876CC=$ac_cv_prog_CC 3130CC=$ac_cv_prog_CC
2877if test -n "$CC"; then 3131if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879$as_echo "$CC" >&6; } 3133printf "%s\n" "$CC" >&6; }
2880else 3134else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; } 3136printf "%s\n" "no" >&6; }
2883fi 3137fi
2884 3138
2885 3139
2886fi 3140fi
2887if test -z "$ac_cv_prog_CC"; then 3141if test -z "$ac_cv_prog_CC"; then
2888 ac_ct_CC=$CC 3142 ac_ct_CC=$CC
2889 # Extract the first word of "gcc", so it can be a program name with args. 3143 # Extract the first word of "gcc", so it can be a program name with args.
2890set dummy gcc; ac_word=$2 3144set dummy gcc; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; } 3146printf %s "checking for $ac_word... " >&6; }
2893if ${ac_cv_prog_ac_ct_CC+:} false; then : 3147if test ${ac_cv_prog_ac_ct_CC+y}
2894 $as_echo_n "(cached) " >&6 3148then :
2895else 3149 printf %s "(cached) " >&6
3150else $as_nop
2896 if test -n "$ac_ct_CC"; then 3151 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898else 3153else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH 3155for as_dir in $PATH
2901do 3156do
2902 IFS=$as_save_IFS 3157 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=. 3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
2904 for ac_exec_ext in '' $ac_executable_extensions; do 3163 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="gcc" 3165 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2908 break 2 3167 break 2
2909 fi 3168 fi
2910done 3169done
2911 done 3170 done
2912IFS=$as_save_IFS 3171IFS=$as_save_IFS
2913 3172
2914fi 3173fi
2915fi 3174fi
2916ac_ct_CC=$ac_cv_prog_ac_ct_CC 3175ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917if test -n "$ac_ct_CC"; then 3176if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919$as_echo "$ac_ct_CC" >&6; } 3178printf "%s\n" "$ac_ct_CC" >&6; }
2920else 3179else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; } 3181printf "%s\n" "no" >&6; }
2923fi 3182fi
2924 3183
2925 if test "x$ac_ct_CC" = x; then 3184 if test "x$ac_ct_CC" = x; then
2926 CC="" 3185 CC=""
2927 else 3186 else
2928 case $cross_compiling:$ac_tool_warned in 3187 case $cross_compiling:$ac_tool_warned in
2929yes:) 3188yes:)
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;; 3191ac_tool_warned=yes ;;
2933esac 3192esac
2934 CC=$ac_ct_CC 3193 CC=$ac_ct_CC
2935 fi 3194 fi
2936else 3195else
2939 3198
2940if test -z "$CC"; then 3199if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then 3200 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}cc; ac_word=$2 3202set dummy ${ac_tool_prefix}cc; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; } 3204printf %s "checking for $ac_word... " >&6; }
2946if ${ac_cv_prog_CC+:} false; then : 3205if test ${ac_cv_prog_CC+y}
2947 $as_echo_n "(cached) " >&6 3206then :
2948else 3207 printf %s "(cached) " >&6
3208else $as_nop
2949 if test -n "$CC"; then 3209 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test. 3210 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else 3211else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH 3213for as_dir in $PATH
2954do 3214do
2955 IFS=$as_save_IFS 3215 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=. 3216 case $as_dir in #(((
3217 '') as_dir=./ ;;
3218 */) ;;
3219 *) as_dir=$as_dir/ ;;
3220 esac
2957 for ac_exec_ext in '' $ac_executable_extensions; do 3221 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc" 3223 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2961 break 2 3225 break 2
2962 fi 3226 fi
2963done 3227done
2964 done 3228 done
2965IFS=$as_save_IFS 3229IFS=$as_save_IFS
2966 3230
2967fi 3231fi
2968fi 3232fi
2969CC=$ac_cv_prog_CC 3233CC=$ac_cv_prog_CC
2970if test -n "$CC"; then 3234if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; } 3236printf "%s\n" "$CC" >&6; }
2973else 3237else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; } 3239printf "%s\n" "no" >&6; }
2976fi 3240fi
2977 3241
2978 3242
2979 fi 3243 fi
2980fi 3244fi
2981if test -z "$CC"; then 3245if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args. 3246 # Extract the first word of "cc", so it can be a program name with args.
2983set dummy cc; ac_word=$2 3247set dummy cc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; } 3249printf %s "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_CC+:} false; then : 3250if test ${ac_cv_prog_CC+y}
2987 $as_echo_n "(cached) " >&6 3251then :
2988else 3252 printf %s "(cached) " >&6
3253else $as_nop
2989 if test -n "$CC"; then 3254 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test. 3255 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else 3256else
2992 ac_prog_rejected=no 3257 ac_prog_rejected=no
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH 3259for as_dir in $PATH
2995do 3260do
2996 IFS=$as_save_IFS 3261 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=. 3262 case $as_dir in #(((
3263 '') as_dir=./ ;;
3264 */) ;;
3265 *) as_dir=$as_dir/ ;;
3266 esac
2998 for ac_exec_ext in '' $ac_executable_extensions; do 3267 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3269 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes 3270 ac_prog_rejected=yes
3002 continue 3271 continue
3003 fi 3272 fi
3004 ac_cv_prog_CC="cc" 3273 ac_cv_prog_CC="cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3006 break 2 3275 break 2
3007 fi 3276 fi
3008done 3277done
3009 done 3278 done
3010IFS=$as_save_IFS 3279IFS=$as_save_IFS
3016 if test $# != 0; then 3285 if test $# != 0; then
3017 # We chose a different compiler from the bogus one. 3286 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen 3287 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name. 3288 # first if we set CC to just the basename; use the full file name.
3020 shift 3289 shift
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3290 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3022 fi 3291 fi
3023fi 3292fi
3024fi 3293fi
3025fi 3294fi
3026CC=$ac_cv_prog_CC 3295CC=$ac_cv_prog_CC
3027if test -n "$CC"; then 3296if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029$as_echo "$CC" >&6; } 3298printf "%s\n" "$CC" >&6; }
3030else 3299else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; } 3301printf "%s\n" "no" >&6; }
3033fi 3302fi
3034 3303
3035 3304
3036fi 3305fi
3037if test -z "$CC"; then 3306if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then 3307 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe 3308 for ac_prog in cl.exe
3040 do 3309 do
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; } 3313printf %s "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_CC+:} false; then : 3314if test ${ac_cv_prog_CC+y}
3046 $as_echo_n "(cached) " >&6 3315then :
3047else 3316 printf %s "(cached) " >&6
3317else $as_nop
3048 if test -n "$CC"; then 3318 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test. 3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else 3320else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH 3322for as_dir in $PATH
3053do 3323do
3054 IFS=$as_save_IFS 3324 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=. 3325 case $as_dir in #(((
3326 '') as_dir=./ ;;
3327 */) ;;
3328 *) as_dir=$as_dir/ ;;
3329 esac
3056 for ac_exec_ext in '' $ac_executable_extensions; do 3330 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3060 break 2 3334 break 2
3061 fi 3335 fi
3062done 3336done
3063 done 3337 done
3064IFS=$as_save_IFS 3338IFS=$as_save_IFS
3065 3339
3066fi 3340fi
3067fi 3341fi
3068CC=$ac_cv_prog_CC 3342CC=$ac_cv_prog_CC
3069if test -n "$CC"; then 3343if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; } 3345printf "%s\n" "$CC" >&6; }
3072else 3346else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; } 3348printf "%s\n" "no" >&6; }
3075fi 3349fi
3076 3350
3077 3351
3078 test -n "$CC" && break 3352 test -n "$CC" && break
3079 done 3353 done
3082 ac_ct_CC=$CC 3356 ac_ct_CC=$CC
3083 for ac_prog in cl.exe 3357 for ac_prog in cl.exe
3084do 3358do
3085 # Extract the first word of "$ac_prog", so it can be a program name with args. 3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2 3360set dummy $ac_prog; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; } 3362printf %s "checking for $ac_word... " >&6; }
3089if ${ac_cv_prog_ac_ct_CC+:} false; then : 3363if test ${ac_cv_prog_ac_ct_CC+y}
3090 $as_echo_n "(cached) " >&6 3364then :
3091else 3365 printf %s "(cached) " >&6
3366else $as_nop
3092 if test -n "$ac_ct_CC"; then 3367 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094else 3369else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH 3371for as_dir in $PATH
3097do 3372do
3098 IFS=$as_save_IFS 3373 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=. 3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3100 for ac_exec_ext in '' $ac_executable_extensions; do 3379 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog" 3381 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3104 break 2 3383 break 2
3105 fi 3384 fi
3106done 3385done
3107 done 3386 done
3108IFS=$as_save_IFS 3387IFS=$as_save_IFS
3109 3388
3110fi 3389fi
3111fi 3390fi
3112ac_ct_CC=$ac_cv_prog_ac_ct_CC 3391ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113if test -n "$ac_ct_CC"; then 3392if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115$as_echo "$ac_ct_CC" >&6; } 3394printf "%s\n" "$ac_ct_CC" >&6; }
3116else 3395else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; } 3397printf "%s\n" "no" >&6; }
3119fi 3398fi
3120 3399
3121 3400
3122 test -n "$ac_ct_CC" && break 3401 test -n "$ac_ct_CC" && break
3123done 3402done
3125 if test "x$ac_ct_CC" = x; then 3404 if test "x$ac_ct_CC" = x; then
3126 CC="" 3405 CC=""
3127 else 3406 else
3128 case $cross_compiling:$ac_tool_warned in 3407 case $cross_compiling:$ac_tool_warned in
3129yes:) 3408yes:)
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;; 3411ac_tool_warned=yes ;;
3133esac 3412esac
3134 CC=$ac_ct_CC 3413 CC=$ac_ct_CC
3135 fi 3414 fi
3136fi 3415fi
3137 3416
3138fi 3417fi
3418if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3421set dummy ${ac_tool_prefix}clang; ac_word=$2
3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423printf %s "checking for $ac_word... " >&6; }
3424if test ${ac_cv_prog_CC+y}
3425then :
3426 printf %s "(cached) " >&6
3427else $as_nop
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 case $as_dir in #(((
3436 '') as_dir=./ ;;
3437 */) ;;
3438 *) as_dir=$as_dir/ ;;
3439 esac
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="${ac_tool_prefix}clang"
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447 done
3448IFS=$as_save_IFS
3139 3449
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455printf "%s\n" "$CC" >&6; }
3456else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458printf "%s\n" "no" >&6; }
3459fi
3140 3460
3461
3462fi
3463if test -z "$ac_cv_prog_CC"; then
3464 ac_ct_CC=$CC
3465 # Extract the first word of "clang", so it can be a program name with args.
3466set dummy clang; ac_word=$2
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468printf %s "checking for $ac_word... " >&6; }
3469if test ${ac_cv_prog_ac_ct_CC+y}
3470then :
3471 printf %s "(cached) " >&6
3472else $as_nop
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475else
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 case $as_dir in #(((
3481 '') as_dir=./ ;;
3482 */) ;;
3483 *) as_dir=$as_dir/ ;;
3484 esac
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="clang"
3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491done
3492 done
3493IFS=$as_save_IFS
3494
3495fi
3496fi
3497ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498if test -n "$ac_ct_CC"; then
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500printf "%s\n" "$ac_ct_CC" >&6; }
3501else
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503printf "%s\n" "no" >&6; }
3504fi
3505
3506 if test "x$ac_ct_CC" = x; then
3507 CC=""
3508 else
3509 case $cross_compiling:$ac_tool_warned in
3510yes:)
3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3513ac_tool_warned=yes ;;
3514esac
3515 CC=$ac_ct_CC
3516 fi
3517else
3518 CC="$ac_cv_prog_CC"
3519fi
3520
3521fi
3522
3523
3141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3524test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3525printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3143as_fn_error $? "no acceptable C compiler found in \$PATH 3526as_fn_error $? "no acceptable C compiler found in \$PATH
3144See \`config.log' for more details" "$LINENO" 5; } 3527See \`config.log' for more details" "$LINENO" 5; }
3145 3528
3146# Provide some information about the compiler. 3529# Provide some information about the compiler.
3147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3530printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148set X $ac_compile 3531set X $ac_compile
3149ac_compiler=$2 3532ac_compiler=$2
3150for ac_option in --version -v -V -qversion; do 3533for ac_option in --version -v -V -qversion -version; do
3151 { { ac_try="$ac_compiler $ac_option >&5" 3534 { { ac_try="$ac_compiler $ac_option >&5"
3152case "(($ac_try" in 3535case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;; 3537 *) ac_try_echo=$ac_try;;
3155esac 3538esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5 3540printf "%s\n" "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3541 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 ac_status=$? 3542 ac_status=$?
3160 if test -s conftest.err; then 3543 if test -s conftest.err; then
3161 sed '10a\ 3544 sed '10a\
3162... rest of stderr output deleted ... 3545... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1 3546 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5 3547 cat conftest.er1 >&5
3165 fi 3548 fi
3166 rm -f conftest.er1 conftest.err 3549 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; } 3551 test $ac_status = 0; }
3169done 3552done
3170 3553
3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h. */ 3555/* end confdefs.h. */
3173 3556
3174int 3557int
3175main () 3558main (void)
3176{ 3559{
3177 3560
3178 ; 3561 ;
3179 return 0; 3562 return 0;
3180} 3563}
3182ac_clean_files_save=$ac_clean_files 3565ac_clean_files_save=$ac_clean_files
3183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3566ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184# Try to create an executable without -o first, disregard a.out. 3567# Try to create an executable without -o first, disregard a.out.
3185# It will help us diagnose broken compilers, and finding out an intuition 3568# It will help us diagnose broken compilers, and finding out an intuition
3186# of exeext. 3569# of exeext.
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188$as_echo_n "checking whether the C compiler works... " >&6; } 3571printf %s "checking whether the C compiler works... " >&6; }
3189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3572ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 3573
3191# The possible output files: 3574# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3575ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193 3576
3194ac_rmfiles= 3577ac_rmfiles=
3205case "(($ac_try" in 3588case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;; 3590 *) ac_try_echo=$ac_try;;
3208esac 3591esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5 3593printf "%s\n" "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5 3594 (eval "$ac_link_default") 2>&5
3212 ac_status=$? 3595 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then : 3597 test $ac_status = 0; }
3598then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3600# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217# in a Makefile. We should not override ac_cv_exeext if it was cached, 3601# in a Makefile. We should not override ac_cv_exeext if it was cached,
3218# so that the user can short-circuit this test for compilers unknown to 3602# so that the user can short-circuit this test for compilers unknown to
3219# Autoconf. 3603# Autoconf.
3226 [ab].out ) 3610 [ab].out )
3227 # We found the default executable, but exeext='' is most 3611 # We found the default executable, but exeext='' is most
3228 # certainly right. 3612 # certainly right.
3229 break;; 3613 break;;
3230 *.* ) 3614 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3615 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3232 then :; else 3616 then :; else
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 fi 3618 fi
3235 # We set ac_cv_exeext here because the later test for it is not 3619 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o' 3620 # safe: cross compilers may not add the suffix if given an `-o'
3242 break;; 3626 break;;
3243 esac 3627 esac
3244done 3628done
3245test "$ac_cv_exeext" = no && ac_cv_exeext= 3629test "$ac_cv_exeext" = no && ac_cv_exeext=
3246 3630
3247else 3631else $as_nop
3248 ac_file='' 3632 ac_file=''
3249fi 3633fi
3250if test -z "$ac_file"; then : 3634if test -z "$ac_file"
3635then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; } 3637printf "%s\n" "no" >&6; }
3253$as_echo "$as_me: failed program was:" >&5 3638printf "%s\n" "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5 3639sed 's/^/| /' conftest.$ac_ext >&5
3255 3640
3256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3642printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3258as_fn_error 77 "C compiler cannot create executables 3643as_fn_error 77 "C compiler cannot create executables
3259See \`config.log' for more details" "$LINENO" 5; } 3644See \`config.log' for more details" "$LINENO" 5; }
3260else 3645else $as_nop
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; } 3647printf "%s\n" "yes" >&6; }
3263fi 3648fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; } 3650printf %s "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; } 3652printf "%s\n" "$ac_file" >&6; }
3268ac_exeext=$ac_cv_exeext 3653ac_exeext=$ac_cv_exeext
3269 3654
3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3655rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271ac_clean_files=$ac_clean_files_save 3656ac_clean_files=$ac_clean_files_save
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273$as_echo_n "checking for suffix of executables... " >&6; } 3658printf %s "checking for suffix of executables... " >&6; }
3274if { { ac_try="$ac_link" 3659if { { ac_try="$ac_link"
3275case "(($ac_try" in 3660case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;; 3662 *) ac_try_echo=$ac_try;;
3278esac 3663esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5 3665printf "%s\n" "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5 3666 (eval "$ac_link") 2>&5
3282 ac_status=$? 3667 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then : 3669 test $ac_status = 0; }
3670then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3672# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287# work properly (i.e., refer to `conftest.exe'), while it won't with 3673# work properly (i.e., refer to `conftest.exe'), while it won't with
3288# `rm'. 3674# `rm'.
3289for ac_file in conftest.exe conftest conftest.*; do 3675for ac_file in conftest.exe conftest conftest.*; do
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 break;; 3680 break;;
3295 * ) break;; 3681 * ) break;;
3296 esac 3682 esac
3297done 3683done
3298else 3684else $as_nop
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3686printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3687as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302See \`config.log' for more details" "$LINENO" 5; } 3688See \`config.log' for more details" "$LINENO" 5; }
3303fi 3689fi
3304rm -f conftest conftest$ac_cv_exeext 3690rm -f conftest conftest$ac_cv_exeext
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306$as_echo "$ac_cv_exeext" >&6; } 3692printf "%s\n" "$ac_cv_exeext" >&6; }
3307 3693
3308rm -f conftest.$ac_ext 3694rm -f conftest.$ac_ext
3309EXEEXT=$ac_cv_exeext 3695EXEEXT=$ac_cv_exeext
3310ac_exeext=$EXEEXT 3696ac_exeext=$EXEEXT
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h. */ 3698/* end confdefs.h. */
3313#include <stdio.h> 3699#include <stdio.h>
3314int 3700int
3315main () 3701main (void)
3316{ 3702{
3317FILE *f = fopen ("conftest.out", "w"); 3703FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0; 3704 return ferror (f) || fclose (f) != 0;
3319 3705
3320 ; 3706 ;
3322} 3708}
3323_ACEOF 3709_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out" 3710ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run. If not, either 3711# Check that the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile. 3712# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; } 3714printf %s "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then 3715if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link" 3716 { { ac_try="$ac_link"
3331case "(($ac_try" in 3717case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;; 3719 *) ac_try_echo=$ac_try;;
3334esac 3720esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5 3722printf "%s\n" "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5 3723 (eval "$ac_link") 2>&5
3338 ac_status=$? 3724 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; } 3726 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext' 3727 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in 3728 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;; 3730 *) ac_try_echo=$ac_try;;
3345esac 3731esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5 3733printf "%s\n" "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5 3734 (eval "$ac_try") 2>&5
3349 ac_status=$? 3735 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then 3737 test $ac_status = 0; }; }; then
3352 cross_compiling=no 3738 cross_compiling=no
3353 else 3739 else
3354 if test "$cross_compiling" = maybe; then 3740 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes 3741 cross_compiling=yes
3356 else 3742 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3744printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error $? "cannot run C compiled programs. 3745as_fn_error 77 "cannot run C compiled programs.
3360If you meant to cross compile, use \`--host'. 3746If you meant to cross compile, use \`--host'.
3361See \`config.log' for more details" "$LINENO" 5; } 3747See \`config.log' for more details" "$LINENO" 5; }
3362 fi 3748 fi
3363 fi 3749 fi
3364fi 3750fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; } 3752printf "%s\n" "$cross_compiling" >&6; }
3367 3753
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3754rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save 3755ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; } 3757printf %s "checking for suffix of object files... " >&6; }
3372if ${ac_cv_objext+:} false; then : 3758if test ${ac_cv_objext+y}
3373 $as_echo_n "(cached) " >&6 3759then :
3374else 3760 printf %s "(cached) " >&6
3761else $as_nop
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */ 3763/* end confdefs.h. */
3377 3764
3378int 3765int
3379main () 3766main (void)
3380{ 3767{
3381 3768
3382 ; 3769 ;
3383 return 0; 3770 return 0;
3384} 3771}
3388case "(($ac_try" in 3775case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;; 3777 *) ac_try_echo=$ac_try;;
3391esac 3778esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5 3780printf "%s\n" "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5 3781 (eval "$ac_compile") 2>&5
3395 ac_status=$? 3782 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then : 3784 test $ac_status = 0; }
3785then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do 3786 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue; 3787 test -f "$ac_file" || continue;
3400 case $ac_file in 3788 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;; 3791 break;;
3404 esac 3792 esac
3405done 3793done
3406else 3794else $as_nop
3407 $as_echo "$as_me: failed program was:" >&5 3795 printf "%s\n" "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5 3796sed 's/^/| /' conftest.$ac_ext >&5
3409 3797
3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3798{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3799printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error $? "cannot compute suffix of object files: cannot compile 3800as_fn_error $? "cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details" "$LINENO" 5; } 3801See \`config.log' for more details" "$LINENO" 5; }
3414fi 3802fi
3415rm -f conftest.$ac_cv_objext conftest.$ac_ext 3803rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi 3804fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418$as_echo "$ac_cv_objext" >&6; } 3806printf "%s\n" "$ac_cv_objext" >&6; }
3419OBJEXT=$ac_cv_objext 3807OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT 3808ac_objext=$OBJEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3810printf %s "checking whether the compiler supports GNU C... " >&6; }
3423if ${ac_cv_c_compiler_gnu+:} false; then : 3811if test ${ac_cv_c_compiler_gnu+y}
3424 $as_echo_n "(cached) " >&6 3812then :
3425else 3813 printf %s "(cached) " >&6
3814else $as_nop
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */ 3816/* end confdefs.h. */
3428 3817
3429int 3818int
3430main () 3819main (void)
3431{ 3820{
3432#ifndef __GNUC__ 3821#ifndef __GNUC__
3433 choke me 3822 choke me
3434#endif 3823#endif
3435 3824
3436 ; 3825 ;
3437 return 0; 3826 return 0;
3438} 3827}
3439_ACEOF 3828_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then : 3829if ac_fn_c_try_compile "$LINENO"
3830then :
3441 ac_compiler_gnu=yes 3831 ac_compiler_gnu=yes
3442else 3832else $as_nop
3443 ac_compiler_gnu=no 3833 ac_compiler_gnu=no
3444fi 3834fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3446ac_cv_c_compiler_gnu=$ac_compiler_gnu 3836ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447 3837
3448fi 3838fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3840printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3451if test $ac_compiler_gnu = yes; then 3843if test $ac_compiler_gnu = yes; then
3452 GCC=yes 3844 GCC=yes
3453else 3845else
3454 GCC= 3846 GCC=
3455fi 3847fi
3456ac_test_CFLAGS=${CFLAGS+set} 3848ac_test_CFLAGS=${CFLAGS+y}
3457ac_save_CFLAGS=$CFLAGS 3849ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; } 3851printf %s "checking whether $CC accepts -g... " >&6; }
3460if ${ac_cv_prog_cc_g+:} false; then : 3852if test ${ac_cv_prog_cc_g+y}
3461 $as_echo_n "(cached) " >&6 3853then :
3462else 3854 printf %s "(cached) " >&6
3855else $as_nop
3463 ac_save_c_werror_flag=$ac_c_werror_flag 3856 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes 3857 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no 3858 ac_cv_prog_cc_g=no
3466 CFLAGS="-g" 3859 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */ 3861/* end confdefs.h. */
3469 3862
3470int 3863int
3471main () 3864main (void)
3472{ 3865{
3473 3866
3474 ; 3867 ;
3475 return 0; 3868 return 0;
3476} 3869}
3477_ACEOF 3870_ACEOF
3478if ac_fn_c_try_compile "$LINENO"; then : 3871if ac_fn_c_try_compile "$LINENO"
3872then :
3479 ac_cv_prog_cc_g=yes 3873 ac_cv_prog_cc_g=yes
3480else 3874else $as_nop
3481 CFLAGS="" 3875 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */ 3877/* end confdefs.h. */
3484 3878
3485int 3879int
3486main () 3880main (void)
3487{ 3881{
3488 3882
3489 ; 3883 ;
3490 return 0; 3884 return 0;
3491} 3885}
3492_ACEOF 3886_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then : 3887if ac_fn_c_try_compile "$LINENO"
3888then :
3494 3889
3495else 3890else $as_nop
3496 ac_c_werror_flag=$ac_save_c_werror_flag 3891 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g" 3892 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */ 3894/* end confdefs.h. */
3500 3895
3501int 3896int
3502main () 3897main (void)
3503{ 3898{
3504 3899
3505 ; 3900 ;
3506 return 0; 3901 return 0;
3507} 3902}
3508_ACEOF 3903_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then : 3904if ac_fn_c_try_compile "$LINENO"
3905then :
3510 ac_cv_prog_cc_g=yes 3906 ac_cv_prog_cc_g=yes
3511fi 3907fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3513fi 3909fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3515fi 3911fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag 3913 ac_c_werror_flag=$ac_save_c_werror_flag
3518fi 3914fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520$as_echo "$ac_cv_prog_cc_g" >&6; } 3916printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3521if test "$ac_test_CFLAGS" = set; then 3917if test $ac_test_CFLAGS; then
3522 CFLAGS=$ac_save_CFLAGS 3918 CFLAGS=$ac_save_CFLAGS
3523elif test $ac_cv_prog_cc_g = yes; then 3919elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then 3920 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2" 3921 CFLAGS="-g -O2"
3526 else 3922 else
3531 CFLAGS="-O2" 3927 CFLAGS="-O2"
3532 else 3928 else
3533 CFLAGS= 3929 CFLAGS=
3534 fi 3930 fi
3535fi 3931fi
3932ac_prog_cc_stdc=no
3933if test x$ac_prog_cc_stdc = xno
3934then :
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3936printf %s "checking for $CC option to enable C11 features... " >&6; }
3937if test ${ac_cv_prog_cc_c11+y}
3938then :
3939 printf %s "(cached) " >&6
3940else $as_nop
3941 ac_cv_prog_cc_c11=no
3942ac_save_CC=$CC
3943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945$ac_c_conftest_c11_program
3946_ACEOF
3947for ac_arg in '' -std=gnu11
3948do
3949 CC="$ac_save_CC $ac_arg"
3950 if ac_fn_c_try_compile "$LINENO"
3951then :
3952 ac_cv_prog_cc_c11=$ac_arg
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.beam
3955 test "x$ac_cv_prog_cc_c11" != "xno" && break
3956done
3957rm -f conftest.$ac_ext
3958CC=$ac_save_CC
3959fi
3960
3961if test "x$ac_cv_prog_cc_c11" = xno
3962then :
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3964printf "%s\n" "unsupported" >&6; }
3965else $as_nop
3966 if test "x$ac_cv_prog_cc_c11" = x
3967then :
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3969printf "%s\n" "none needed" >&6; }
3970else $as_nop
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3972printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3973 CC="$CC $ac_cv_prog_cc_c11"
3974fi
3975 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3976 ac_prog_cc_stdc=c11
3977fi
3978fi
3979if test x$ac_prog_cc_stdc = xno
3980then :
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3982printf %s "checking for $CC option to enable C99 features... " >&6; }
3983if test ${ac_cv_prog_cc_c99+y}
3984then :
3985 printf %s "(cached) " >&6
3986else $as_nop
3987 ac_cv_prog_cc_c99=no
3988ac_save_CC=$CC
3989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h. */
3991$ac_c_conftest_c99_program
3992_ACEOF
3993for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3994do
3995 CC="$ac_save_CC $ac_arg"
3996 if ac_fn_c_try_compile "$LINENO"
3997then :
3998 ac_cv_prog_cc_c99=$ac_arg
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.beam
4001 test "x$ac_cv_prog_cc_c99" != "xno" && break
4002done
4003rm -f conftest.$ac_ext
4004CC=$ac_save_CC
4005fi
4006
4007if test "x$ac_cv_prog_cc_c99" = xno
4008then :
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4010printf "%s\n" "unsupported" >&6; }
4011else $as_nop
4012 if test "x$ac_cv_prog_cc_c99" = x
4013then :
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4015printf "%s\n" "none needed" >&6; }
4016else $as_nop
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4018printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4019 CC="$CC $ac_cv_prog_cc_c99"
4020fi
4021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4022 ac_prog_cc_stdc=c99
4023fi
4024fi
4025if test x$ac_prog_cc_stdc = xno
4026then :
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4028printf %s "checking for $CC option to enable C89 features... " >&6; }
3538if ${ac_cv_prog_cc_c89+:} false; then : 4029if test ${ac_cv_prog_cc_c89+y}
3539 $as_echo_n "(cached) " >&6 4030then :
3540else 4031 printf %s "(cached) " >&6
4032else $as_nop
3541 ac_cv_prog_cc_c89=no 4033 ac_cv_prog_cc_c89=no
3542ac_save_CC=$CC 4034ac_save_CC=$CC
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */ 4036/* end confdefs.h. */
3545#include <stdarg.h> 4037$ac_c_conftest_c89_program
3546#include <stdio.h>
3547struct stat;
3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549struct buf { int x; };
3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551static char *e (p, i)
3552 char **p;
3553 int i;
3554{
3555 return p[i];
3556}
3557static char *f (char * (*g) (char **, int), char **p, ...)
3558{
3559 char *s;
3560 va_list v;
3561 va_start (v,p);
3562 s = g (p, va_arg (v,int));
3563 va_end (v);
3564 return s;
3565}
3566
3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578#define FOO(x) 'x'
3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581int test (int i, double x);
3582struct s1 {int (*f) (int a);};
3583struct s2 {int (*f) (double a);};
3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585int argc;
3586char **argv;
3587int
3588main ()
3589{
3590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3591 ;
3592 return 0;
3593}
3594_ACEOF 4038_ACEOF
3595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597do 4040do
3598 CC="$ac_save_CC $ac_arg" 4041 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"; then : 4042 if ac_fn_c_try_compile "$LINENO"
4043then :
3600 ac_cv_prog_cc_c89=$ac_arg 4044 ac_cv_prog_cc_c89=$ac_arg
3601fi 4045fi
3602rm -f core conftest.err conftest.$ac_objext 4046rm -f core conftest.err conftest.$ac_objext conftest.beam
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break 4047 test "x$ac_cv_prog_cc_c89" != "xno" && break
3604done 4048done
3605rm -f conftest.$ac_ext 4049rm -f conftest.$ac_ext
3606CC=$ac_save_CC 4050CC=$ac_save_CC
3607
3608fi 4051fi
3609# AC_CACHE_VAL 4052
3610case "x$ac_cv_prog_cc_c89" in 4053if test "x$ac_cv_prog_cc_c89" = xno
3611 x) 4054then :
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613$as_echo "none needed" >&6; } ;;
3614 xno)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616$as_echo "unsupported" >&6; } ;; 4056printf "%s\n" "unsupported" >&6; }
3617 *) 4057else $as_nop
4058 if test "x$ac_cv_prog_cc_c89" = x
4059then :
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061printf "%s\n" "none needed" >&6; }
4062else $as_nop
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3618 CC="$CC $ac_cv_prog_cc_c89" 4065 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4066fi
3620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4067 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3621esac 4068 ac_prog_cc_stdc=c89
3622if test "x$ac_cv_prog_cc_c89" != xno; then : 4069fi
3623
3624fi 4070fi
3625 4071
3626ac_ext=c 4072ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS' 4073ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
4079
4080
4081
4082
3631 4083
3632ac_ext=cpp 4084ac_ext=cpp
3633ac_cpp='$CXXCPP $CPPFLAGS' 4085ac_cpp='$CXXCPP $CPPFLAGS'
3634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637if test -z "$CXX"; then 4089if test -z "$CXX"; then
3638 if test -n "$CCC"; then 4090 if test -n "$CCC"; then
3639 CXX=$CCC 4091 CXX=$CCC
3640 else 4092 else
3641 if test -n "$ac_tool_prefix"; then 4093 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3643 do 4095 do
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; } 4099printf %s "checking for $ac_word... " >&6; }
3648if ${ac_cv_prog_CXX+:} false; then : 4100if test ${ac_cv_prog_CXX+y}
3649 $as_echo_n "(cached) " >&6 4101then :
3650else 4102 printf %s "(cached) " >&6
4103else $as_nop
3651 if test -n "$CXX"; then 4104 if test -n "$CXX"; then
3652 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4105 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3653else 4106else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH 4108for as_dir in $PATH
3656do 4109do
3657 IFS=$as_save_IFS 4110 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=. 4111 case $as_dir in #(((
4112 '') as_dir=./ ;;
4113 */) ;;
4114 *) as_dir=$as_dir/ ;;
4115 esac
3659 for ac_exec_ext in '' $ac_executable_extensions; do 4116 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4118 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3663 break 2 4120 break 2
3664 fi 4121 fi
3665done 4122done
3666 done 4123 done
3667IFS=$as_save_IFS 4124IFS=$as_save_IFS
3668 4125
3669fi 4126fi
3670fi 4127fi
3671CXX=$ac_cv_prog_CXX 4128CXX=$ac_cv_prog_CXX
3672if test -n "$CXX"; then 4129if test -n "$CXX"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3674$as_echo "$CXX" >&6; } 4131printf "%s\n" "$CXX" >&6; }
3675else 4132else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; } 4134printf "%s\n" "no" >&6; }
3678fi 4135fi
3679 4136
3680 4137
3681 test -n "$CXX" && break 4138 test -n "$CXX" && break
3682 done 4139 done
3683fi 4140fi
3684if test -z "$CXX"; then 4141if test -z "$CXX"; then
3685 ac_ct_CXX=$CXX 4142 ac_ct_CXX=$CXX
3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3687do 4144do
3688 # Extract the first word of "$ac_prog", so it can be a program name with args. 4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689set dummy $ac_prog; ac_word=$2 4146set dummy $ac_prog; ac_word=$2
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691$as_echo_n "checking for $ac_word... " >&6; } 4148printf %s "checking for $ac_word... " >&6; }
3692if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4149if test ${ac_cv_prog_ac_ct_CXX+y}
3693 $as_echo_n "(cached) " >&6 4150then :
3694else 4151 printf %s "(cached) " >&6
4152else $as_nop
3695 if test -n "$ac_ct_CXX"; then 4153 if test -n "$ac_ct_CXX"; then
3696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3697else 4155else
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH 4157for as_dir in $PATH
3700do 4158do
3701 IFS=$as_save_IFS 4159 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=. 4160 case $as_dir in #(((
4161 '') as_dir=./ ;;
4162 */) ;;
4163 *) as_dir=$as_dir/ ;;
4164 esac
3703 for ac_exec_ext in '' $ac_executable_extensions; do 4165 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_ac_ct_CXX="$ac_prog" 4167 ac_cv_prog_ac_ct_CXX="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707 break 2 4169 break 2
3708 fi 4170 fi
3709done 4171done
3710 done 4172 done
3711IFS=$as_save_IFS 4173IFS=$as_save_IFS
3712 4174
3713fi 4175fi
3714fi 4176fi
3715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4177ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3716if test -n "$ac_ct_CXX"; then 4178if test -n "$ac_ct_CXX"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3718$as_echo "$ac_ct_CXX" >&6; } 4180printf "%s\n" "$ac_ct_CXX" >&6; }
3719else 4181else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721$as_echo "no" >&6; } 4183printf "%s\n" "no" >&6; }
3722fi 4184fi
3723 4185
3724 4186
3725 test -n "$ac_ct_CXX" && break 4187 test -n "$ac_ct_CXX" && break
3726done 4188done
3728 if test "x$ac_ct_CXX" = x; then 4190 if test "x$ac_ct_CXX" = x; then
3729 CXX="g++" 4191 CXX="g++"
3730 else 4192 else
3731 case $cross_compiling:$ac_tool_warned in 4193 case $cross_compiling:$ac_tool_warned in
3732yes:) 4194yes:)
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4196printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735ac_tool_warned=yes ;; 4197ac_tool_warned=yes ;;
3736esac 4198esac
3737 CXX=$ac_ct_CXX 4199 CXX=$ac_ct_CXX
3738 fi 4200 fi
3739fi 4201fi
3740 4202
3741 fi 4203 fi
3742fi 4204fi
3743# Provide some information about the compiler. 4205# Provide some information about the compiler.
3744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4206printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3745set X $ac_compile 4207set X $ac_compile
3746ac_compiler=$2 4208ac_compiler=$2
3747for ac_option in --version -v -V -qversion; do 4209for ac_option in --version -v -V -qversion; do
3748 { { ac_try="$ac_compiler $ac_option >&5" 4210 { { ac_try="$ac_compiler $ac_option >&5"
3749case "(($ac_try" in 4211case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;; 4213 *) ac_try_echo=$ac_try;;
3752esac 4214esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5 4216printf "%s\n" "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3756 ac_status=$? 4218 ac_status=$?
3757 if test -s conftest.err; then 4219 if test -s conftest.err; then
3758 sed '10a\ 4220 sed '10a\
3759... rest of stderr output deleted ... 4221... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1 4222 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5 4223 cat conftest.er1 >&5
3762 fi 4224 fi
3763 rm -f conftest.er1 conftest.err 4225 rm -f conftest.er1 conftest.err
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; } 4227 test $ac_status = 0; }
3766done 4228done
3767 4229
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3769$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4231printf %s "checking whether the compiler supports GNU C++... " >&6; }
3770if ${ac_cv_cxx_compiler_gnu+:} false; then : 4232if test ${ac_cv_cxx_compiler_gnu+y}
3771 $as_echo_n "(cached) " >&6 4233then :
3772else 4234 printf %s "(cached) " >&6
4235else $as_nop
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h. */ 4237/* end confdefs.h. */
3775 4238
3776int 4239int
3777main () 4240main (void)
3778{ 4241{
3779#ifndef __GNUC__ 4242#ifndef __GNUC__
3780 choke me 4243 choke me
3781#endif 4244#endif
3782 4245
3783 ; 4246 ;
3784 return 0; 4247 return 0;
3785} 4248}
3786_ACEOF 4249_ACEOF
3787if ac_fn_cxx_try_compile "$LINENO"; then : 4250if ac_fn_cxx_try_compile "$LINENO"
4251then :
3788 ac_compiler_gnu=yes 4252 ac_compiler_gnu=yes
3789else 4253else $as_nop
3790 ac_compiler_gnu=no 4254 ac_compiler_gnu=no
3791fi 4255fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4257ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3794 4258
3795fi 4259fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3797$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4261printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263
3798if test $ac_compiler_gnu = yes; then 4264if test $ac_compiler_gnu = yes; then
3799 GXX=yes 4265 GXX=yes
3800else 4266else
3801 GXX= 4267 GXX=
3802fi 4268fi
3803ac_test_CXXFLAGS=${CXXFLAGS+set} 4269ac_test_CXXFLAGS=${CXXFLAGS+y}
3804ac_save_CXXFLAGS=$CXXFLAGS 4270ac_save_CXXFLAGS=$CXXFLAGS
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3806$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4272printf %s "checking whether $CXX accepts -g... " >&6; }
3807if ${ac_cv_prog_cxx_g+:} false; then : 4273if test ${ac_cv_prog_cxx_g+y}
3808 $as_echo_n "(cached) " >&6 4274then :
3809else 4275 printf %s "(cached) " >&6
4276else $as_nop
3810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3811 ac_cxx_werror_flag=yes 4278 ac_cxx_werror_flag=yes
3812 ac_cv_prog_cxx_g=no 4279 ac_cv_prog_cxx_g=no
3813 CXXFLAGS="-g" 4280 CXXFLAGS="-g"
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */ 4282/* end confdefs.h. */
3816 4283
3817int 4284int
3818main () 4285main (void)
3819{ 4286{
3820 4287
3821 ; 4288 ;
3822 return 0; 4289 return 0;
3823} 4290}
3824_ACEOF 4291_ACEOF
3825if ac_fn_cxx_try_compile "$LINENO"; then : 4292if ac_fn_cxx_try_compile "$LINENO"
4293then :
3826 ac_cv_prog_cxx_g=yes 4294 ac_cv_prog_cxx_g=yes
3827else 4295else $as_nop
3828 CXXFLAGS="" 4296 CXXFLAGS=""
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h. */ 4298/* end confdefs.h. */
3831 4299
3832int 4300int
3833main () 4301main (void)
3834{ 4302{
3835 4303
3836 ; 4304 ;
3837 return 0; 4305 return 0;
3838} 4306}
3839_ACEOF 4307_ACEOF
3840if ac_fn_cxx_try_compile "$LINENO"; then : 4308if ac_fn_cxx_try_compile "$LINENO"
4309then :
3841 4310
3842else 4311else $as_nop
3843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3844 CXXFLAGS="-g" 4313 CXXFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */ 4315/* end confdefs.h. */
3847 4316
3848int 4317int
3849main () 4318main (void)
3850{ 4319{
3851 4320
3852 ; 4321 ;
3853 return 0; 4322 return 0;
3854} 4323}
3855_ACEOF 4324_ACEOF
3856if ac_fn_cxx_try_compile "$LINENO"; then : 4325if ac_fn_cxx_try_compile "$LINENO"
4326then :
3857 ac_cv_prog_cxx_g=yes 4327 ac_cv_prog_cxx_g=yes
3858fi 4328fi
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3860fi 4330fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3862fi 4332fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865fi 4335fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3867$as_echo "$ac_cv_prog_cxx_g" >&6; } 4337printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3868if test "$ac_test_CXXFLAGS" = set; then 4338if test $ac_test_CXXFLAGS; then
3869 CXXFLAGS=$ac_save_CXXFLAGS 4339 CXXFLAGS=$ac_save_CXXFLAGS
3870elif test $ac_cv_prog_cxx_g = yes; then 4340elif test $ac_cv_prog_cxx_g = yes; then
3871 if test "$GXX" = yes; then 4341 if test "$GXX" = yes; then
3872 CXXFLAGS="-g -O2" 4342 CXXFLAGS="-g -O2"
3873 else 4343 else
3878 CXXFLAGS="-O2" 4348 CXXFLAGS="-O2"
3879 else 4349 else
3880 CXXFLAGS= 4350 CXXFLAGS=
3881 fi 4351 fi
3882fi 4352fi
4353ac_prog_cxx_stdcxx=no
4354if test x$ac_prog_cxx_stdcxx = xno
4355then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4357printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4358if test ${ac_cv_prog_cxx_cxx11+y}
4359then :
4360 printf %s "(cached) " >&6
4361else $as_nop
4362 ac_cv_prog_cxx_cxx11=no
4363ac_save_CXX=$CXX
4364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h. */
4366$ac_cxx_conftest_cxx11_program
4367_ACEOF
4368for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4369do
4370 CXX="$ac_save_CXX $ac_arg"
4371 if ac_fn_cxx_try_compile "$LINENO"
4372then :
4373 ac_cv_prog_cxx_cxx11=$ac_arg
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.beam
4376 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4377done
4378rm -f conftest.$ac_ext
4379CXX=$ac_save_CXX
4380fi
4381
4382if test "x$ac_cv_prog_cxx_cxx11" = xno
4383then :
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4385printf "%s\n" "unsupported" >&6; }
4386else $as_nop
4387 if test "x$ac_cv_prog_cxx_cxx11" = x
4388then :
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4390printf "%s\n" "none needed" >&6; }
4391else $as_nop
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4393printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4394 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4395fi
4396 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4397 ac_prog_cxx_stdcxx=cxx11
4398fi
4399fi
4400if test x$ac_prog_cxx_stdcxx = xno
4401then :
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4403printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4404if test ${ac_cv_prog_cxx_cxx98+y}
4405then :
4406 printf %s "(cached) " >&6
4407else $as_nop
4408 ac_cv_prog_cxx_cxx98=no
4409ac_save_CXX=$CXX
4410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h. */
4412$ac_cxx_conftest_cxx98_program
4413_ACEOF
4414for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4415do
4416 CXX="$ac_save_CXX $ac_arg"
4417 if ac_fn_cxx_try_compile "$LINENO"
4418then :
4419 ac_cv_prog_cxx_cxx98=$ac_arg
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.beam
4422 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4423done
4424rm -f conftest.$ac_ext
4425CXX=$ac_save_CXX
4426fi
4427
4428if test "x$ac_cv_prog_cxx_cxx98" = xno
4429then :
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431printf "%s\n" "unsupported" >&6; }
4432else $as_nop
4433 if test "x$ac_cv_prog_cxx_cxx98" = x
4434then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4436printf "%s\n" "none needed" >&6; }
4437else $as_nop
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4439printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4440 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4441fi
4442 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4443 ac_prog_cxx_stdcxx=cxx98
4444fi
4445fi
4446
3883ac_ext=c 4447ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS' 4448ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 4452
4453
4454
3889# Find a good install program. We prefer a C program (faster), 4455 # Find a good install program. We prefer a C program (faster),
3890# so one script is as good as another. But avoid the broken or 4456# so one script is as good as another. But avoid the broken or
3891# incompatible versions: 4457# incompatible versions:
3892# SysV /etc/install, /usr/sbin/install 4458# SysV /etc/install, /usr/sbin/install
3893# SunOS /usr/etc/install 4459# SunOS /usr/etc/install
3894# IRIX /sbin/install 4460# IRIX /sbin/install
3898# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900# OS/2's system install, which has a completely different semantic 4466# OS/2's system install, which has a completely different semantic
3901# ./install, which can be erroneously created by make from ./install.sh. 4467# ./install, which can be erroneously created by make from ./install.sh.
3902# Reject install programs that cannot install multiple files. 4468# Reject install programs that cannot install multiple files.
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3904$as_echo_n "checking for a BSD-compatible install... " >&6; } 4470printf %s "checking for a BSD-compatible install... " >&6; }
3905if test -z "$INSTALL"; then 4471if test -z "$INSTALL"; then
3906if ${ac_cv_path_install+:} false; then : 4472if test ${ac_cv_path_install+y}
3907 $as_echo_n "(cached) " >&6 4473then :
3908else 4474 printf %s "(cached) " >&6
4475else $as_nop
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH 4477for as_dir in $PATH
3911do 4478do
3912 IFS=$as_save_IFS 4479 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=. 4480 case $as_dir in #(((
4481 '') as_dir=./ ;;
4482 */) ;;
4483 *) as_dir=$as_dir/ ;;
4484 esac
3914 # Account for people who put trailing slashes in PATH elements. 4485 # Account for fact that we put trailing slashes in our PATH walk.
3915case $as_dir/ in #(( 4486case $as_dir in #((
3916 ./ | .// | /[cC]/* | \ 4487 ./ | /[cC]/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4489 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3919 /usr/ucb/* ) ;; 4490 /usr/ucb/* ) ;;
3920 *) 4491 *)
3921 # OSF1 and SCO ODT 3.0 have their own names for install. 4492 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root 4493 # Don't use installbsd from OSF since it installs stuff as root
3923 # by default. 4494 # by default.
3924 for ac_prog in ginstall scoinst install; do 4495 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do 4496 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4497 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3927 if test $ac_prog = install && 4498 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4499 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention. 4500 # AIX install. It has an incompatible calling convention.
3930 : 4501 :
3931 elif test $ac_prog = install && 4502 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4503 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use. 4504 # program-specific install script used by HP pwplus--don't use.
3934 : 4505 :
3935 else 4506 else
3936 rm -rf conftest.one conftest.two conftest.dir 4507 rm -rf conftest.one conftest.two conftest.dir
3937 echo one > conftest.one 4508 echo one > conftest.one
3938 echo two > conftest.two 4509 echo two > conftest.two
3939 mkdir conftest.dir 4510 mkdir conftest.dir
3940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4511 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3941 test -s conftest.one && test -s conftest.two && 4512 test -s conftest.one && test -s conftest.two &&
3942 test -s conftest.dir/conftest.one && 4513 test -s conftest.dir/conftest.one &&
3943 test -s conftest.dir/conftest.two 4514 test -s conftest.dir/conftest.two
3944 then 4515 then
3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4516 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3946 break 3 4517 break 3
3947 fi 4518 fi
3948 fi 4519 fi
3949 fi 4520 fi
3950 done 4521 done
3956IFS=$as_save_IFS 4527IFS=$as_save_IFS
3957 4528
3958rm -rf conftest.one conftest.two conftest.dir 4529rm -rf conftest.one conftest.two conftest.dir
3959 4530
3960fi 4531fi
3961 if test "${ac_cv_path_install+set}" = set; then 4532 if test ${ac_cv_path_install+y}; then
3962 INSTALL=$ac_cv_path_install 4533 INSTALL=$ac_cv_path_install
3963 else 4534 else
3964 # As a last resort, use the slow shell script. Don't cache a 4535 # As a last resort, use the slow shell script. Don't cache a
3965 # value for INSTALL within a source directory, because that will 4536 # value for INSTALL within a source directory, because that will
3966 # break other packages using the cache if that directory is 4537 # break other packages using the cache if that directory is
3967 # removed, or if the value is a relative name. 4538 # removed, or if the value is a relative name.
3968 INSTALL=$ac_install_sh 4539 INSTALL=$ac_install_sh
3969 fi 4540 fi
3970fi 4541fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3972$as_echo "$INSTALL" >&6; } 4543printf "%s\n" "$INSTALL" >&6; }
3973 4544
3974# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4545# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3975# It thinks the first close brace ends the variable substitution. 4546# It thinks the first close brace ends the variable substitution.
3976test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4547test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3977 4548
3979 4550
3980test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4551test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3981 4552
3982 4553
3983 4554
3984ac_ext=c 4555ac_header= ac_cache=
3985ac_cpp='$CPP $CPPFLAGS' 4556for ac_item in $ac_header_c_list
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3990$as_echo_n "checking how to run the C preprocessor... " >&6; }
3991# On Suns, sometimes $CPP names a directory.
3992if test -n "$CPP" && test -d "$CPP"; then
3993 CPP=
3994fi
3995if test -z "$CPP"; then
3996 if ${ac_cv_prog_CPP+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 # Double quotes because CPP needs to be expanded
4000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4001 do
4002 ac_preproc_ok=false
4003for ac_c_preproc_warn_flag in '' yes
4004do 4557do
4005 # Use a header file that comes with gcc, so configuring glibc 4558 if test $ac_cache; then
4006 # with a fresh cross-compiler works. 4559 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4560 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4008 # <limits.h> exists even on freestanding compilers. 4561 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4009 # On the NeXT, cc -E runs the code through the compiler's parser, 4562 fi
4010 # not just through cpp. "Syntax error" is here to catch this case. 4563 ac_header= ac_cache=
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564 elif test $ac_header; then
4012/* end confdefs.h. */ 4565 ac_cache=$ac_item
4013#ifdef __STDC__
4014# include <limits.h>
4015#else
4016# include <assert.h>
4017#endif
4018 Syntax error
4019_ACEOF
4020if ac_fn_c_try_cpp "$LINENO"; then :
4021
4022else 4566 else
4023 # Broken: fails on valid input. 4567 ac_header=$ac_item
4024continue 4568 fi
4025fi
4026rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4036continue
4037else
4038 # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044done 4569done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.i conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then :
4048 break
4049fi
4050 4570
4051 done
4052 ac_cv_prog_CPP=$CPP
4053 4571
4054fi
4055 CPP=$ac_cv_prog_CPP
4056else
4057 ac_cv_prog_CPP=$CPP
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060$as_echo "$CPP" >&6; }
4061ac_preproc_ok=false
4062for ac_c_preproc_warn_flag in '' yes
4063do
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#ifdef __STDC__
4073# include <limits.h>
4074#else
4075# include <assert.h>
4076#endif
4077 Syntax error
4078_ACEOF
4079if ac_fn_c_try_cpp "$LINENO"; then :
4080 4572
4081else
4082 # Broken: fails on valid input.
4083continue
4084fi
4085rm -f conftest.err conftest.i conftest.$ac_ext
4086 4573
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <ac_nonexistent.h>
4092_ACEOF
4093if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4095continue
4096else
4097 # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101rm -f conftest.err conftest.i conftest.$ac_ext
4102 4574
4103done
4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105rm -f conftest.i conftest.err conftest.$ac_ext
4106if $ac_preproc_ok; then :
4107 4575
4108else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112See \`config.log' for more details" "$LINENO" 5; }
4113fi
4114 4576
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 4577
4578if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4579then :
4121 4580
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_GREP" || continue
4139# Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141case `"$ac_path_GREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144*)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167 $ac_path_GREP_found && break 3
4168 done
4169 done
4170 done
4171IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174 fi
4175else
4176 ac_cv_path_GREP=$GREP
4177fi
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181$as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4183
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186$as_echo_n "checking for egrep... " >&6; }
4187if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4192 else
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 as_fn_executable_p "$ac_path_EGREP" || continue
4205# Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207case `"$ac_path_EGREP" --version 2>&1` in
4208*GNU*)
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210*)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231esac
4232
4233 $ac_path_EGREP_found && break 3
4234 done
4235 done
4236 done
4237IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245 fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248$as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4253$as_echo_n "checking for ANSI C header files... " >&6; }
4254if ${ac_cv_header_stdc+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259#include <stdlib.h>
4260#include <stdarg.h>
4261#include <string.h>
4262#include <float.h>
4263
4264int
4265main ()
4266{
4267
4268 ;
4269 return 0;
4270}
4271_ACEOF
4272if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_header_stdc=yes
4274else
4275 ac_cv_header_stdc=no
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278
4279if test $ac_cv_header_stdc = yes; then
4280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <string.h>
4284
4285_ACEOF
4286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 $EGREP "memchr" >/dev/null 2>&1; then :
4288
4289else
4290 ac_cv_header_stdc=no
4291fi
4292rm -f conftest*
4293
4294fi
4295
4296if test $ac_cv_header_stdc = yes; then
4297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h. */
4300#include <stdlib.h>
4301
4302_ACEOF
4303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 $EGREP "free" >/dev/null 2>&1; then :
4305
4306else
4307 ac_cv_header_stdc=no
4308fi
4309rm -f conftest*
4310
4311fi
4312
4313if test $ac_cv_header_stdc = yes; then
4314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315 if test "$cross_compiling" = yes; then :
4316 :
4317else
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h. */
4320#include <ctype.h>
4321#include <stdlib.h>
4322#if ((' ' & 0x0FF) == 0x020)
4323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4325#else
4326# define ISLOWER(c) \
4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
4330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4331#endif
4332
4333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334int
4335main ()
4336{
4337 int i;
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
4340 || toupper (i) != TOUPPER (i))
4341 return 2;
4342 return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_run "$LINENO"; then :
4346
4347else
4348 ac_cv_header_stdc=no
4349fi
4350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4351 conftest.$ac_objext conftest.beam conftest.$ac_ext
4352fi
4353
4354fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4357$as_echo "$ac_cv_header_stdc" >&6; }
4358if test $ac_cv_header_stdc = yes; then
4359
4360$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4581printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4361 4582
4362fi 4583fi
4363 4584
4364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4366 inttypes.h stdint.h unistd.h
4367do :
4368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4370"
4371if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4372 cat >>confdefs.h <<_ACEOF
4373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374_ACEOF
4375 4585
4376fi
4377 4586
4378done
4379 4587
4380 4588
4381 4589
4382 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4383if test "x$ac_cv_header_minix_config_h" = xyes; then :
4384 MINIX=yes
4385else
4386 MINIX=
4387fi
4388
4389
4390 if test "$MINIX" = yes; then
4391
4392$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4393
4394
4395$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4396
4397
4398$as_echo "#define _MINIX 1" >>confdefs.h
4399
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4404$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4591printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4405if ${ac_cv_safe_to_define___extensions__+:} false; then : 4592if test ${ac_cv_safe_to_define___extensions__+y}
4406 $as_echo_n "(cached) " >&6 4593then :
4407else 4594 printf %s "(cached) " >&6
4595else $as_nop
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */ 4597/* end confdefs.h. */
4410 4598
4411# define __EXTENSIONS__ 1 4599# define __EXTENSIONS__ 1
4412 $ac_includes_default 4600 $ac_includes_default
4413int 4601int
4414main () 4602main (void)
4415{ 4603{
4416 4604
4417 ; 4605 ;
4418 return 0; 4606 return 0;
4419} 4607}
4420_ACEOF 4608_ACEOF
4421if ac_fn_c_try_compile "$LINENO"; then : 4609if ac_fn_c_try_compile "$LINENO"
4610then :
4422 ac_cv_safe_to_define___extensions__=yes 4611 ac_cv_safe_to_define___extensions__=yes
4423else 4612else $as_nop
4424 ac_cv_safe_to_define___extensions__=no 4613 ac_cv_safe_to_define___extensions__=no
4425fi 4614fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427fi 4616fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4429$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4618printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4619
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4621printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4622if test ${ac_cv_should_define__xopen_source+y}
4623then :
4624 printf %s "(cached) " >&6
4625else $as_nop
4626 ac_cv_should_define__xopen_source=no
4627 if test $ac_cv_header_wchar_h = yes
4628then :
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631
4632 #include <wchar.h>
4633 mbstate_t x;
4634int
4635main (void)
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"
4643then :
4644
4645else $as_nop
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648
4649 #define _XOPEN_SOURCE 500
4650 #include <wchar.h>
4651 mbstate_t x;
4652int
4653main (void)
4654{
4655
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"
4661then :
4662 ac_cv_should_define__xopen_source=yes
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665fi
4666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667fi
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4670printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4671
4672 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4673
4674 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4675
4676 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4677
4678 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4679
4680 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4681
4682 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4683
4684 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4685
4686 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4687
4688 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4689
4690 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4691
4692 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4693
4694 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4695
4696 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4697
4698 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4699
4700 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4701
4702 if test $ac_cv_header_minix_config_h = yes
4703then :
4704 MINIX=yes
4705 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4706
4707 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4708
4709 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4710
4711else $as_nop
4712 MINIX=
4713fi
4430 test $ac_cv_safe_to_define___extensions__ = yes && 4714 if test $ac_cv_safe_to_define___extensions__ = yes
4715then :
4431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4716 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4432 4717
4433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4718fi
4719 if test $ac_cv_should_define__xopen_source = yes
4720then :
4721 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4434 4722
4435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4723fi
4436 4724
4437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4725ac_ext=cpp
4726ac_cpp='$CXXCPP $CPPFLAGS'
4727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4438 4730
4439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4440 4731
4732if test "$ac_prog_cxx_stdcxx" != cxx11; then
4733 as_fn_error $? "the compiler does not support C++11" "$LINENO" 5
4734fi
4441 4735
4736LINKER="$CXX"
4737if test x$GCC = xyes && test x$GXX = xyes; then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4739printf %s "checking for working libsupc++... " >&6; }
4740 save_CXX="$CXX"
4741 save_LIBS="$LIBS"
4742 CXX="$CC"
4743 LIBS="$LIBS -lsupc++"
4442 4744
4745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h. */
4747struct test { }; void f() try { throw new test; } catch (...) { throw; }
4748int
4749main (void)
4750{
4443 4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756if ac_fn_cxx_try_link "$LINENO"
4757then :
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4759printf "%s\n" "ok" >&6; }
4760 LINKER="$CC"
4761else $as_nop
4762
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4764printf "%s\n" "no, making everything bigger and slower" >&6; }
4765 LIBS="$save_LIBS"
4766
4767
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.beam \
4770 conftest$ac_exeext conftest.$ac_ext
4771 CXX="$save_CXX"
4772fi
4773LINKER=$LINKER
4774
4775
4776if test -z "$orig_CXXFLAGS"; then
4777 if test x$GCC = xyes && test "x$GXX" = xyes; then
4778 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781
4782int
4783main (void)
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790if ac_fn_cxx_try_compile "$LINENO"
4791then :
4792
4793else $as_nop
4794 CXXFLAGS="-g -O3"
4795fi
4796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4797 else
4798 CXXFLAGS="-O"
4799 fi
4800 CFLAGS="$CXXFLAGS"
4801fi
4802
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4445$as_echo_n "checking for library containing strerror... " >&6; } 4804printf %s "checking for library containing setlocale... " >&6; }
4446if ${ac_cv_search_strerror+:} false; then : 4805if test ${ac_cv_search_setlocale+y}
4447 $as_echo_n "(cached) " >&6 4806then :
4448else 4807 printf %s "(cached) " >&6
4808else $as_nop
4449 ac_func_search_save_LIBS=$LIBS 4809 ac_func_search_save_LIBS=$LIBS
4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */ 4811/* end confdefs.h. */
4452 4812
4453/* Override any GCC internal prototype to avoid an error. 4813namespace conftest {
4454 Use char because int might match the return type of a GCC 4814 extern "C" int setlocale ();
4455 builtin and then its argument prototype would still apply. */ 4815}
4456#ifdef __cplusplus
4457extern "C"
4458#endif
4459char strerror ();
4460int 4816int
4461main () 4817main (void)
4462{ 4818{
4463return strerror (); 4819return conftest::setlocale ();
4464 ; 4820 ;
4465 return 0; 4821 return 0;
4466} 4822}
4467_ACEOF 4823_ACEOF
4468for ac_lib in '' cposix; do 4824for ac_lib in '' xpg4
4825do
4469 if test -z "$ac_lib"; then 4826 if test -z "$ac_lib"; then
4470 ac_res="none required" 4827 ac_res="none required"
4471 else 4828 else
4472 ac_res=-l$ac_lib 4829 ac_res=-l$ac_lib
4473 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474 fi 4831 fi
4475 if ac_fn_c_try_link "$LINENO"; then : 4832 if ac_fn_cxx_try_link "$LINENO"
4833then :
4476 ac_cv_search_strerror=$ac_res 4834 ac_cv_search_setlocale=$ac_res
4477fi 4835fi
4478rm -f core conftest.err conftest.$ac_objext \ 4836rm -f core conftest.err conftest.$ac_objext conftest.beam \
4479 conftest$ac_exeext 4837 conftest$ac_exeext
4480 if ${ac_cv_search_strerror+:} false; then : 4838 if test ${ac_cv_search_setlocale+y}
4839then :
4481 break 4840 break
4482fi 4841fi
4483done 4842done
4484if ${ac_cv_search_strerror+:} false; then : 4843if test ${ac_cv_search_setlocale+y}
4844then :
4485 4845
4486else 4846else $as_nop
4487 ac_cv_search_strerror=no 4847 ac_cv_search_setlocale=no
4488fi 4848fi
4489rm conftest.$ac_ext 4849rm conftest.$ac_ext
4490LIBS=$ac_func_search_save_LIBS 4850LIBS=$ac_func_search_save_LIBS
4491fi 4851fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4493$as_echo "$ac_cv_search_strerror" >&6; } 4853printf "%s\n" "$ac_cv_search_setlocale" >&6; }
4494ac_res=$ac_cv_search_strerror 4854ac_res=$ac_cv_search_setlocale
4495if test "$ac_res" != no; then : 4855if test "$ac_res" != no
4856then :
4496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4497 4858
4498fi 4859fi
4499 4860
4500ac_ext=cpp
4501ac_cpp='$CXXCPP $CPPFLAGS'
4502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4505 4861
4506
4507LINKER="$CXX"
4508if test x$GCC = xyes && test x$GXX = xyes; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4510$as_echo_n "checking for working libsupc++... " >&6; }
4511 save_CXX="$CXX"
4512 save_LIBS="$LIBS"
4513 CXX="$CC"
4514 LIBS="$LIBS -lsupc++"
4515
4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h. */
4518struct test { }; void f() try { throw new test; } catch (...) { throw; }
4519int
4520main ()
4521{
4522
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527if ac_fn_cxx_try_link "$LINENO"; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4529$as_echo "ok" >&6; }
4530 LINKER="$CC"
4531else
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4534$as_echo "no, making everything bigger and slower" >&6; }
4535 LIBS="$save_LIBS"
4536
4537
4538fi
4539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext conftest.$ac_ext
4541 CXX="$save_CXX"
4542fi
4543LINKER=$LINKER
4544
4545
4546if test -z "$orig_CXXFLAGS"; then
4547 if test x$GCC = xyes && test "x$GXX" = xyes; then
4548 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_cxx_try_compile "$LINENO"; then :
4561
4562else
4563 CXXFLAGS="-g -O3"
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 else
4567 CXXFLAGS="-O"
4568 fi
4569 CFLAGS="$CXXFLAGS"
4570fi
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4573$as_echo_n "checking for library containing setlocale... " >&6; } 4863printf %s "checking for library containing gethostbyname... " >&6; }
4574if ${ac_cv_search_setlocale+:} false; then : 4864if test ${ac_cv_search_gethostbyname+y}
4575 $as_echo_n "(cached) " >&6 4865then :
4576else 4866 printf %s "(cached) " >&6
4867else $as_nop
4577 ac_func_search_save_LIBS=$LIBS 4868 ac_func_search_save_LIBS=$LIBS
4578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */ 4870/* end confdefs.h. */
4580 4871
4581/* Override any GCC internal prototype to avoid an error. 4872namespace conftest {
4582 Use char because int might match the return type of a GCC 4873 extern "C" int gethostbyname ();
4583 builtin and then its argument prototype would still apply. */ 4874}
4584#ifdef __cplusplus
4585extern "C"
4586#endif
4587char setlocale ();
4588int 4875int
4589main () 4876main (void)
4590{ 4877{
4591return setlocale (); 4878return conftest::gethostbyname ();
4592 ; 4879 ;
4593 return 0; 4880 return 0;
4594} 4881}
4595_ACEOF 4882_ACEOF
4596for ac_lib in '' xpg4; do 4883for ac_lib in '' nsl
4884do
4597 if test -z "$ac_lib"; then 4885 if test -z "$ac_lib"; then
4598 ac_res="none required" 4886 ac_res="none required"
4599 else 4887 else
4600 ac_res=-l$ac_lib 4888 ac_res=-l$ac_lib
4601 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4602 fi 4890 fi
4603 if ac_fn_cxx_try_link "$LINENO"; then : 4891 if ac_fn_cxx_try_link "$LINENO"
4892then :
4604 ac_cv_search_setlocale=$ac_res 4893 ac_cv_search_gethostbyname=$ac_res
4605fi 4894fi
4606rm -f core conftest.err conftest.$ac_objext \ 4895rm -f core conftest.err conftest.$ac_objext conftest.beam \
4607 conftest$ac_exeext 4896 conftest$ac_exeext
4608 if ${ac_cv_search_setlocale+:} false; then : 4897 if test ${ac_cv_search_gethostbyname+y}
4898then :
4609 break 4899 break
4610fi 4900fi
4611done 4901done
4612if ${ac_cv_search_setlocale+:} false; then : 4902if test ${ac_cv_search_gethostbyname+y}
4903then :
4613 4904
4614else 4905else $as_nop
4615 ac_cv_search_setlocale=no 4906 ac_cv_search_gethostbyname=no
4616fi 4907fi
4617rm conftest.$ac_ext 4908rm conftest.$ac_ext
4618LIBS=$ac_func_search_save_LIBS 4909LIBS=$ac_func_search_save_LIBS
4619fi 4910fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5 4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4621$as_echo "$ac_cv_search_setlocale" >&6; } 4912printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
4622ac_res=$ac_cv_search_setlocale 4913ac_res=$ac_cv_search_gethostbyname
4623if test "$ac_res" != no; then : 4914if test "$ac_res" != no
4915then :
4624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4625 4917
4626fi 4918fi
4627 4919
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4630$as_echo_n "checking for library containing gethostbyname... " >&6; } 4921printf %s "checking for library containing socket... " >&6; }
4631if ${ac_cv_search_gethostbyname+:} false; then : 4922if test ${ac_cv_search_socket+y}
4632 $as_echo_n "(cached) " >&6 4923then :
4633else 4924 printf %s "(cached) " >&6
4925else $as_nop
4634 ac_func_search_save_LIBS=$LIBS 4926 ac_func_search_save_LIBS=$LIBS
4635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h. */ 4928/* end confdefs.h. */
4637 4929
4638/* Override any GCC internal prototype to avoid an error. 4930namespace conftest {
4639 Use char because int might match the return type of a GCC 4931 extern "C" int socket ();
4640 builtin and then its argument prototype would still apply. */ 4932}
4641#ifdef __cplusplus
4642extern "C"
4643#endif
4644char gethostbyname ();
4645int 4933int
4646main () 4934main (void)
4647{ 4935{
4648return gethostbyname (); 4936return conftest::socket ();
4649 ; 4937 ;
4650 return 0; 4938 return 0;
4651} 4939}
4652_ACEOF 4940_ACEOF
4653for ac_lib in '' nsl; do 4941for ac_lib in '' socket
4942do
4654 if test -z "$ac_lib"; then 4943 if test -z "$ac_lib"; then
4655 ac_res="none required" 4944 ac_res="none required"
4656 else 4945 else
4657 ac_res=-l$ac_lib 4946 ac_res=-l$ac_lib
4658 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4659 fi 4948 fi
4660 if ac_fn_cxx_try_link "$LINENO"; then : 4949 if ac_fn_cxx_try_link "$LINENO"
4950then :
4661 ac_cv_search_gethostbyname=$ac_res 4951 ac_cv_search_socket=$ac_res
4662fi 4952fi
4663rm -f core conftest.err conftest.$ac_objext \ 4953rm -f core conftest.err conftest.$ac_objext conftest.beam \
4664 conftest$ac_exeext 4954 conftest$ac_exeext
4665 if ${ac_cv_search_gethostbyname+:} false; then : 4955 if test ${ac_cv_search_socket+y}
4956then :
4666 break 4957 break
4667fi 4958fi
4668done 4959done
4669if ${ac_cv_search_gethostbyname+:} false; then : 4960if test ${ac_cv_search_socket+y}
4961then :
4670 4962
4671else 4963else $as_nop
4672 ac_cv_search_gethostbyname=no 4964 ac_cv_search_socket=no
4673fi 4965fi
4674rm conftest.$ac_ext 4966rm conftest.$ac_ext
4675LIBS=$ac_func_search_save_LIBS 4967LIBS=$ac_func_search_save_LIBS
4676fi 4968fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4678$as_echo "$ac_cv_search_gethostbyname" >&6; }
4679ac_res=$ac_cv_search_gethostbyname
4680if test "$ac_res" != no; then :
4681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682
4683fi
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4686$as_echo_n "checking for library containing socket... " >&6; }
4687if ${ac_cv_search_socket+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 ac_func_search_save_LIBS=$LIBS
4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693
4694/* Override any GCC internal prototype to avoid an error.
4695 Use char because int might match the return type of a GCC
4696 builtin and then its argument prototype would still apply. */
4697#ifdef __cplusplus
4698extern "C"
4699#endif
4700char socket ();
4701int
4702main ()
4703{
4704return socket ();
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709for ac_lib in '' socket; do
4710 if test -z "$ac_lib"; then
4711 ac_res="none required"
4712 else
4713 ac_res=-l$ac_lib
4714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4715 fi
4716 if ac_fn_cxx_try_link "$LINENO"; then :
4717 ac_cv_search_socket=$ac_res
4718fi
4719rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext
4721 if ${ac_cv_search_socket+:} false; then :
4722 break
4723fi
4724done
4725if ${ac_cv_search_socket+:} false; then :
4726
4727else
4728 ac_cv_search_socket=no
4729fi
4730rm conftest.$ac_ext
4731LIBS=$ac_func_search_save_LIBS
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4734$as_echo "$ac_cv_search_socket" >&6; } 4970printf "%s\n" "$ac_cv_search_socket" >&6; }
4735ac_res=$ac_cv_search_socket 4971ac_res=$ac_cv_search_socket
4736if test "$ac_res" != no; then : 4972if test "$ac_res" != no
4973then :
4737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4738 4975
4739fi 4976fi
4740 4977
4741 4978
4763support_perl=yes 5000support_perl=yes
4764codesets=all 5001codesets=all
4765 5002
4766 5003
4767# Check whether --enable-everything was given. 5004# Check whether --enable-everything was given.
4768if test "${enable_everything+set}" = set; then : 5005if test ${enable_everything+y}
5006then :
4769 enableval=$enable_everything; 5007 enableval=$enable_everything;
4770 if test x$enableval = xno; then 5008 if test x$enableval = xno; then
4771 support_frills=no 5009 support_frills=no
4772 support_inheritpixmap=no 5010 support_inheritpixmap=no
4773 support_fading=no 5011 support_fading=no
4774 support_keepscrolling=no 5012 support_keepscrolling=no
4775 support_selectionscrolling=no 5013 support_selectionscrolling=no
4776 support_lastlog=no
4777 support_mousewheel=no 5014 support_mousewheel=no
4778 support_mouseslipwheel=no 5015 support_mouseslipwheel=no
4779 support_text_blink=no 5016 support_text_blink=no
4780 support_pointer_blank=no 5017 support_pointer_blank=no
4781 support_scroll_rxvt=no 5018 support_scroll_rxvt=no
4782 support_scroll_next=no 5019 support_scroll_next=no
4783 support_scroll_xterm=no 5020 support_scroll_xterm=no
4784 support_utmp=no
4785 support_wtmp=no
4786 support_xim=no 5021 support_xim=no
4787 support_pixbuf=no 5022 support_pixbuf=no
4788 support_startup_notification=no 5023 support_startup_notification=no
4789 support_xft=no 5024 support_xft=no
4790 support_unicode3=no 5025 support_unicode3=no
4799 support_frills=yes 5034 support_frills=yes
4800 support_inheritpixmap=yes 5035 support_inheritpixmap=yes
4801 support_fading=yes 5036 support_fading=yes
4802 support_keepscrolling=yes 5037 support_keepscrolling=yes
4803 support_selectionscrolling=yes 5038 support_selectionscrolling=yes
4804 support_lastlog=yes
4805 support_mousewheel=yes 5039 support_mousewheel=yes
4806 support_mouseslipwheel=yes 5040 support_mouseslipwheel=yes
4807 support_text_blink=yes 5041 support_text_blink=yes
4808 support_pointer_blank=yes 5042 support_pointer_blank=yes
4809 support_scroll_rxvt=yes 5043 support_scroll_rxvt=yes
4810 support_scroll_next=yes 5044 support_scroll_next=yes
4811 support_scroll_xterm=yes 5045 support_scroll_xterm=yes
4812 support_utmp=yes
4813 support_wtmp=yes
4814 support_xim=yes 5046 support_xim=yes
4815 support_pixbuf=yes 5047 support_pixbuf=yes
4816 support_startup_notification=yes 5048 support_startup_notification=yes
4817 support_xft=yes 5049 support_xft=yes
4818 support_unicode3=yes 5050 support_unicode3=yes
4827fi 5059fi
4828 5060
4829 5061
4830support_assertions=no 5062support_assertions=no
4831# Check whether --enable-assert was given. 5063# Check whether --enable-assert was given.
4832if test "${enable_assert+set}" = set; then : 5064if test ${enable_assert+y}
5065then :
4833 enableval=$enable_assert; if test x$enableval = xyes; then 5066 enableval=$enable_assert; if test x$enableval = xyes; then
4834 support_assertions=yes 5067 support_assertions=yes
4835 fi 5068 fi
4836fi 5069fi
4837 5070
4838if test x$support_assertions = xno; then 5071if test x$support_assertions = xno; then
4839 5072
4840$as_echo "#define NDEBUG 1" >>confdefs.h 5073printf "%s\n" "#define NDEBUG 1" >>confdefs.h
4841 5074
4842fi 5075fi
4843 5076
4844support_warnings=no 5077support_warnings=no
4845# Check whether --enable-warnings was given. 5078# Check whether --enable-warnings was given.
4846if test "${enable_warnings+set}" = set; then : 5079if test ${enable_warnings+y}
5080then :
4847 enableval=$enable_warnings; if test x$enableval = xyes; then 5081 enableval=$enable_warnings; if test x$enableval = xyes; then
4848 support_warnings=yes 5082 support_warnings=yes
4849 fi 5083 fi
4850fi 5084fi
4851 5085
4855 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" 5089 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h. */ 5091/* end confdefs.h. */
4858 5092
4859int 5093int
4860main () 5094main (void)
4861{ 5095{
4862 5096
4863 ; 5097 ;
4864 return 0; 5098 return 0;
4865} 5099}
4866_ACEOF 5100_ACEOF
4867if ac_fn_cxx_try_compile "$LINENO"; then : 5101if ac_fn_cxx_try_compile "$LINENO"
5102then :
4868 5103
4869else 5104else $as_nop
4870 CXXFLAGS="$save_CXXFLAGS" 5105 CXXFLAGS="$save_CXXFLAGS"
4871fi 5106fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4873 else 5108 else
4874 CXXFLAGS="$CXXFLAGS -w" 5109 CXXFLAGS="$CXXFLAGS -w"
4875 fi 5110 fi
4876fi 5111fi
4877 5112
4878support_256_color=no 5113support_256_color=no
4879# Check whether --enable-256-color was given. 5114# Check whether --enable-256-color was given.
4880if test "${enable_256_color+set}" = set; then : 5115if test ${enable_256_color+y}
5116then :
4881 enableval=$enable_256_color; if test x$enableval = xyes; then 5117 enableval=$enable_256_color; if test x$enableval = xyes; then
4882 support_256_color=yes 5118 support_256_color=yes
4883 fi 5119 fi
4884fi 5120fi
4885 5121
4886if test x$support_256_color = xyes; then 5122if test x$support_256_color = xyes; then
4887 5123
4888$as_echo "#define USE_256_COLORS 1" >>confdefs.h 5124printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h
4889 5125
4890fi 5126fi
4891 5127
4892# Check whether --enable-unicode3 was given. 5128# Check whether --enable-unicode3 was given.
4893if test "${enable_unicode3+set}" = set; then : 5129if test ${enable_unicode3+y}
5130then :
4894 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 5131 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4895 support_unicode3=$enableval 5132 support_unicode3=$enableval
4896 fi 5133 fi
4897fi 5134fi
4898 5135
4899 5136
4900# Check whether --enable-combining was given. 5137# Check whether --enable-combining was given.
4901if test "${enable_combining+set}" = set; then : 5138if test ${enable_combining+y}
5139then :
4902 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 5140 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4903 support_combining=$enableval 5141 support_combining=$enableval
4904 fi 5142 fi
4905fi 5143fi
4906 5144
4907 5145
4908# Check whether --enable-xft was given. 5146# Check whether --enable-xft was given.
4909if test "${enable_xft+set}" = set; then : 5147if test ${enable_xft+y}
5148then :
4910 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 5149 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4911 support_xft=$enableval 5150 support_xft=$enableval
4912 fi 5151 fi
4913fi 5152fi
4914 5153
4915 5154
4916# Check whether --enable-font-styles was given. 5155# Check whether --enable-font-styles was given.
4917if test "${enable_font_styles+set}" = set; then : 5156if test ${enable_font_styles+y}
5157then :
4918 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 5158 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4919 support_styles=$enableval 5159 support_styles=$enableval
4920 fi 5160 fi
4921fi 5161fi
4922 5162
4923 5163
4924# Check whether --enable-pixbuf was given. 5164# Check whether --enable-pixbuf was given.
4925if test "${enable_pixbuf+set}" = set; then : 5165if test ${enable_pixbuf+y}
5166then :
4926 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then 5167 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4927 support_pixbuf=$enableval 5168 support_pixbuf=$enableval
4928 fi 5169 fi
4929fi 5170fi
4930 5171
4931 5172
4932# Check whether --enable-startup-notification was given. 5173# Check whether --enable-startup-notification was given.
4933if test "${enable_startup_notification+set}" = set; then : 5174if test ${enable_startup_notification+y}
5175then :
4934 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then 5176 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4935 support_startup_notification=$enableval 5177 support_startup_notification=$enableval
4936 fi 5178 fi
4937fi 5179fi
4938 5180
4939 5181
4940# Check whether --enable-transparency was given. 5182# Check whether --enable-transparency was given.
4941if test "${enable_transparency+set}" = set; then : 5183if test ${enable_transparency+y}
5184then :
4942 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 5185 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4943 support_inheritpixmap=$enableval 5186 support_inheritpixmap=$enableval
4944 fi 5187 fi
4945fi 5188fi
4946 5189
4947 5190
4948# Check whether --enable-fading was given. 5191# Check whether --enable-fading was given.
4949if test "${enable_fading+set}" = set; then : 5192if test ${enable_fading+y}
5193then :
4950 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 5194 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4951 support_fading=$enableval 5195 support_fading=$enableval
4952 fi 5196 fi
4953fi 5197fi
4954 5198
4955 5199
4956# Check whether --enable-rxvt-scroll was given. 5200# Check whether --enable-rxvt-scroll was given.
4957if test "${enable_rxvt_scroll+set}" = set; then : 5201if test ${enable_rxvt_scroll+y}
5202then :
4958 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5203 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4959 support_scroll_rxvt=$enableval 5204 support_scroll_rxvt=$enableval
4960 fi 5205 fi
4961fi 5206fi
4962 5207
4963 5208
4964# Check whether --enable-next-scroll was given. 5209# Check whether --enable-next-scroll was given.
4965if test "${enable_next_scroll+set}" = set; then : 5210if test ${enable_next_scroll+y}
5211then :
4966 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5212 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4967 support_scroll_next=$enableval 5213 support_scroll_next=$enableval
4968 fi 5214 fi
4969fi 5215fi
4970 5216
4971 5217
4972# Check whether --enable-xterm-scroll was given. 5218# Check whether --enable-xterm-scroll was given.
4973if test "${enable_xterm_scroll+set}" = set; then : 5219if test ${enable_xterm_scroll+y}
5220then :
4974 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5221 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4975 support_scroll_xterm=$enableval 5222 support_scroll_xterm=$enableval
4976 fi 5223 fi
4977fi 5224fi
4978 5225
4979 5226
4980# Check whether --enable-perl was given. 5227# Check whether --enable-perl was given.
4981if test "${enable_perl+set}" = set; then : 5228if test ${enable_perl+y}
5229then :
4982 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 5230 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4983 support_perl=$enableval 5231 support_perl=$enableval
4984 fi 5232 fi
4985fi 5233fi
4986 5234
4987 5235
4988 5236
4989# Check whether --with-codesets was given. 5237# Check whether --with-codesets was given.
4990if test "${with_codesets+set}" = set; then : 5238if test ${with_codesets+y}
5239then :
4991 withval=$with_codesets; codesets="$withval" 5240 withval=$with_codesets; codesets="$withval"
4992fi 5241fi
4993 5242
4994 5243
4995# Check whether --enable-xim was given. 5244# Check whether --enable-xim was given.
4996if test "${enable_xim+set}" = set; then : 5245if test ${enable_xim+y}
5246then :
4997 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 5247 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4998 support_xim=$enableval 5248 support_xim=$enableval
4999 fi 5249 fi
5000fi 5250fi
5001 5251
5002 5252
5003# Check whether --enable-backspace-key was given. 5253# Check whether --enable-backspace-key was given.
5004if test "${enable_backspace_key+set}" = set; then : 5254if test ${enable_backspace_key+y}
5255then :
5005 enableval=$enable_backspace_key; if test x$enableval = xno; then 5256 enableval=$enable_backspace_key; if test x$enableval = xno; then
5006 5257
5007$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h 5258printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h
5008 5259
5009 fi 5260 fi
5010fi 5261fi
5011 5262
5012 5263
5013# Check whether --enable-delete-key was given. 5264# Check whether --enable-delete-key was given.
5014if test "${enable_delete_key+set}" = set; then : 5265if test ${enable_delete_key+y}
5266then :
5015 enableval=$enable_delete_key; if test x$enableval = xno; then 5267 enableval=$enable_delete_key; if test x$enableval = xno; then
5016 5268
5017$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h 5269printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h
5018 5270
5019 fi 5271 fi
5020fi 5272fi
5021 5273
5022 5274
5023support_resources=yes 5275support_resources=yes
5024# Check whether --enable-resources was given. 5276# Check whether --enable-resources was given.
5025if test "${enable_resources+set}" = set; then : 5277if test ${enable_resources+y}
5278then :
5026 enableval=$enable_resources; if test x$enableval = xno; then 5279 enableval=$enable_resources; if test x$enableval = xno; then
5027 support_resources=no 5280 support_resources=no
5028 fi 5281 fi
5029fi 5282fi
5030 5283
5031 5284
5032# Check whether --enable-8bitctrls was given. 5285# Check whether --enable-8bitctrls was given.
5033if test "${enable_8bitctrls+set}" = set; then : 5286if test ${enable_8bitctrls+y}
5287then :
5034 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 5288 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
5035 support_8bitctrls=$enableval 5289 support_8bitctrls=$enableval
5036 fi 5290 fi
5037fi 5291fi
5038 5292
5039 5293
5040RESFALLBACK=Rxvt 5294RESFALLBACK=Rxvt
5041# Check whether --enable-fallback was given. 5295# Check whether --enable-fallback was given.
5042if test "${enable_fallback+set}" = set; then : 5296if test ${enable_fallback+y}
5297then :
5043 enableval=$enable_fallback; 5298 enableval=$enable_fallback;
5044 test x$enableval = xyes && enableval=Rxvt 5299 test x$enableval = xyes && enableval=Rxvt
5045 test x$enableval = xno && enableval= 5300 test x$enableval = xno && enableval=
5046 RESFALLBACK="$enableval" 5301 RESFALLBACK="$enableval"
5047 5302
5048fi 5303fi
5049 5304
5050 5305
5051if test x$RESFALLBACK != x; then 5306if test x$RESFALLBACK != x; then
5052 5307
5053cat >>confdefs.h <<_ACEOF 5308printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h
5054#define RESFALLBACK "$RESFALLBACK"
5055_ACEOF
5056 5309
5057fi 5310fi
5058 5311
5059RESNAME=urxvt 5312RESNAME=urxvt
5060 5313
5061# Check whether --with-res-name was given. 5314# Check whether --with-res-name was given.
5062if test "${with_res_name+set}" = set; then : 5315if test ${with_res_name+y}
5316then :
5063 withval=$with_res_name; RESNAME="$withval" 5317 withval=$with_res_name; RESNAME="$withval"
5064fi 5318fi
5065 5319
5066 5320
5067cat >>confdefs.h <<_ACEOF 5321printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h
5068#define RESNAME "$RESNAME"
5069_ACEOF
5070 5322
5071 5323
5072RESCLASS=URxvt 5324RESCLASS=URxvt
5073 5325
5074# Check whether --with-res-class was given. 5326# Check whether --with-res-class was given.
5075if test "${with_res_class+set}" = set; then : 5327if test ${with_res_class+y}
5328then :
5076 withval=$with_res_class; RESCLASS="$withval" 5329 withval=$with_res_class; RESCLASS="$withval"
5077fi 5330fi
5078 5331
5079 5332
5080cat >>confdefs.h <<_ACEOF 5333printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h
5081#define RESCLASS "$RESCLASS"
5082_ACEOF
5083 5334
5084 5335
5085RXVTNAME=urxvt 5336RXVTNAME=urxvt
5086 5337
5087# Check whether --with-name was given. 5338# Check whether --with-name was given.
5088if test "${with_name+set}" = set; then : 5339if test ${with_name+y}
5340then :
5089 withval=$with_name; RXVTNAME="$withval" 5341 withval=$with_name; RXVTNAME="$withval"
5090fi 5342fi
5091 5343
5092 5344
5093cat >>confdefs.h <<_ACEOF 5345printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h
5094#define RXVTNAME "$RXVTNAME"
5095_ACEOF
5096 5346
5097 5347
5098 5348
5099 5349
5100# Check whether --enable-swapscreen was given. 5350# Check whether --enable-swapscreen was given.
5101if test "${enable_swapscreen+set}" = set; then : 5351if test ${enable_swapscreen+y}
5352then :
5102 enableval=$enable_swapscreen; if test x$enableval = xno; then 5353 enableval=$enable_swapscreen; if test x$enableval = xno; then
5103 5354
5104$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h 5355printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5105 5356
5106 fi 5357 fi
5107fi 5358fi
5108 5359
5109 5360
5110# Check whether --enable-iso14755 was given. 5361# Check whether --enable-iso14755 was given.
5111if test "${enable_iso14755+set}" = set; then : 5362if test ${enable_iso14755+y}
5363then :
5112 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5364 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5113 support_iso14755=$enableval 5365 support_iso14755=$enableval
5114 fi 5366 fi
5115fi 5367fi
5116 5368
5117 5369
5118# Check whether --enable-frills was given. 5370# Check whether --enable-frills was given.
5119if test "${enable_frills+set}" = set; then : 5371if test ${enable_frills+y}
5372then :
5120 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5373 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5121 support_frills=$enableval 5374 support_frills=$enableval
5122 fi 5375 fi
5123fi 5376fi
5124 5377
5125 5378
5126# Check whether --enable-keepscrolling was given. 5379# Check whether --enable-keepscrolling was given.
5127if test "${enable_keepscrolling+set}" = set; then : 5380if test ${enable_keepscrolling+y}
5381then :
5128 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5382 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5129 support_keepscrolling=$enableval 5383 support_keepscrolling=$enableval
5130 fi 5384 fi
5131fi 5385fi
5132 5386
5133 5387
5134# Check whether --enable-selectionscrolling was given. 5388# Check whether --enable-selectionscrolling was given.
5135if test "${enable_selectionscrolling+set}" = set; then : 5389if test ${enable_selectionscrolling+y}
5390then :
5136 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5391 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5137 support_selectionscrolling=$enableval 5392 support_selectionscrolling=$enableval
5138 fi 5393 fi
5139fi 5394fi
5140 5395
5141 5396
5142# Check whether --enable-mousewheel was given. 5397# Check whether --enable-mousewheel was given.
5143if test "${enable_mousewheel+set}" = set; then : 5398if test ${enable_mousewheel+y}
5399then :
5144 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5400 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5145 support_mousewheel=$enableval 5401 support_mousewheel=$enableval
5146 fi 5402 fi
5147fi 5403fi
5148 5404
5149 5405
5150# Check whether --enable-slipwheeling was given. 5406# Check whether --enable-slipwheeling was given.
5151if test "${enable_slipwheeling+set}" = set; then : 5407if test ${enable_slipwheeling+y}
5408then :
5152 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5409 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5153 support_mouseslipwheel=$enableval 5410 support_mouseslipwheel=$enableval
5154 fi 5411 fi
5155fi 5412fi
5156 5413
5157 5414
5158# Check whether --enable-smart-resize was given. 5415# Check whether --enable-smart-resize was given.
5159if test "${enable_smart_resize+set}" = set; then : 5416if test ${enable_smart_resize+y}
5417then :
5160 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5418 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5161 5419
5162$as_echo "#define SMART_RESIZE 1" >>confdefs.h 5420printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h
5163 5421
5164 fi 5422 fi
5165fi 5423fi
5166 5424
5167 5425
5168# Check whether --enable-text-blink was given. 5426# Check whether --enable-text-blink was given.
5169if test "${enable_text_blink+set}" = set; then : 5427if test ${enable_text_blink+y}
5428then :
5170 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5429 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5171 support_text_blink=$enableval 5430 support_text_blink=$enableval
5172 fi 5431 fi
5173fi 5432fi
5174 5433
5175 5434
5176# Check whether --enable-pointer-blank was given. 5435# Check whether --enable-pointer-blank was given.
5177if test "${enable_pointer_blank+set}" = set; then : 5436if test ${enable_pointer_blank+y}
5437then :
5178 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5438 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5179 support_pointer_blank=$enableval 5439 support_pointer_blank=$enableval
5180 fi 5440 fi
5181fi 5441fi
5182 5442
5183 5443
5184 5444
5185# Check whether --with-term was given. 5445# Check whether --with-term was given.
5186if test "${with_term+set}" = set; then : 5446if test ${with_term+y}
5447then :
5187 withval=$with_term; if test x$withval != x; then 5448 withval=$with_term; if test x$withval != x; then
5188 5449
5189cat >>confdefs.h <<_ACEOF 5450printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h
5190#define TERMENV "$withval"
5191_ACEOF
5192 term="$withval" 5451 term="$withval"
5193 fi 5452 fi
5194fi 5453fi
5195 5454
5196 5455
5197 5456
5198# Check whether --with-terminfo was given. 5457# Check whether --with-terminfo was given.
5199if test "${with_terminfo+set}" = set; then : 5458if test ${with_terminfo+y}
5459then :
5200 withval=$with_terminfo; if test x$withval != x; then 5460 withval=$with_terminfo; if test x$withval != x; then
5201 5461
5202cat >>confdefs.h <<_ACEOF 5462printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h
5203#define RXVT_TERMINFO "$withval"
5204_ACEOF
5205 terminfo="$withval" 5463 terminfo="$withval"
5206 fi 5464 fi
5207fi 5465fi
5208 5466
5209 5467
5211 if test x$support_frills = xyes || test x$support_perl = xyes; then 5469 if test x$support_frills = xyes || test x$support_perl = xyes; then
5212 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5 5470 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5213 fi 5471 fi
5214 5472
5215 5473
5216$as_echo "#define NO_RESOURCES 1" >>confdefs.h 5474printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h
5217 5475
5218fi 5476fi
5219 5477
5220 5478
5221LIBEV_M4_AVOID_LIBRT=1 5479LIBEV_M4_AVOID_LIBRT=1
5222 5480
5223ac_ext=cpp 5481ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
5224ac_cpp='$CXXCPP $CPPFLAGS' 5482if test "x$ac_cv_header_sys_inotify_h" = xyes
5225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5483then :
5226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5484 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
5227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5229$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5230if test -z "$CXXCPP"; then
5231 if ${ac_cv_prog_CXXCPP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233else
5234 # Double quotes because CXXCPP needs to be expanded
5235 for CXXCPP in "$CXX -E" "/lib/cpp"
5236 do
5237 ac_preproc_ok=false
5238for ac_cxx_preproc_warn_flag in '' yes
5239do
5240 # Use a header file that comes with gcc, so configuring glibc
5241 # with a fresh cross-compiler works.
5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243 # <limits.h> exists even on freestanding compilers.
5244 # On the NeXT, cc -E runs the code through the compiler's parser,
5245 # not just through cpp. "Syntax error" is here to catch this case.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253 Syntax error
5254_ACEOF
5255if ac_fn_cxx_try_cpp "$LINENO"; then :
5256 5485
5257else
5258 # Broken: fails on valid input.
5259continue
5260fi 5486fi
5261rm -f conftest.err conftest.i conftest.$ac_ext 5487ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
5488if test "x$ac_cv_header_sys_epoll_h" = xyes
5489then :
5490 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
5262 5491
5263 # OK, works on sane cases. Now check whether nonexistent headers
5264 # can be detected and how.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if ac_fn_cxx_try_cpp "$LINENO"; then :
5270 # Broken: success on invalid input.
5271continue
5272else
5273 # Passes both tests.
5274ac_preproc_ok=:
5275break
5276fi 5492fi
5277rm -f conftest.err conftest.i conftest.$ac_ext 5493ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
5494if test "x$ac_cv_header_sys_event_h" = xyes
5495then :
5496 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
5278 5497
5279done
5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281rm -f conftest.i conftest.err conftest.$ac_ext
5282if $ac_preproc_ok; then :
5283 break
5284fi 5498fi
5285
5286 done
5287 ac_cv_prog_CXXCPP=$CXXCPP
5288
5289fi
5290 CXXCPP=$ac_cv_prog_CXXCPP
5291else
5292 ac_cv_prog_CXXCPP=$CXXCPP
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5295$as_echo "$CXXCPP" >&6; }
5296ac_preproc_ok=false
5297for ac_cxx_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_cxx_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
5320rm -f conftest.err conftest.i conftest.$ac_ext
5321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_cxx_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336rm -f conftest.err conftest.i conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.i conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then :
5342
5343else
5344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5346as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5347See \`config.log' for more details" "$LINENO" 5; }
5348fi
5349
5350ac_ext=cpp
5351ac_cpp='$CXXCPP $CPPFLAGS'
5352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5355
5356
5357for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h
5358do :
5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5499ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
5361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5500if test "x$ac_cv_header_port_h" = xyes
5362 cat >>confdefs.h <<_ACEOF 5501then :
5363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5502 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
5364_ACEOF
5365 5503
5366fi 5504fi
5367
5368done
5369
5370for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h
5371do :
5372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5505ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5506if test "x$ac_cv_header_poll_h" = xyes
5375 cat >>confdefs.h <<_ACEOF 5507then :
5376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5508 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5377_ACEOF
5378 5509
5379fi 5510fi
5511ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
5512if test "x$ac_cv_header_sys_timerfd_h" = xyes
5513then :
5514 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
5380 5515
5381done
5382
5383
5384for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5385do :
5386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5387ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5389 cat >>confdefs.h <<_ACEOF
5390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5391_ACEOF
5392
5393fi 5516fi
5394done
5395 5517
5518ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5519if test "x$ac_cv_header_sys_select_h" = xyes
5520then :
5521 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5396 5522
5523fi
5524ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
5525if test "x$ac_cv_header_sys_eventfd_h" = xyes
5526then :
5527 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
5528
5529fi
5530ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
5531if test "x$ac_cv_header_sys_signalfd_h" = xyes
5532then :
5533 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
5534
5535fi
5536ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default"
5537if test "x$ac_cv_header_linux_aio_abi_h" = xyes
5538then :
5539 printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h
5540
5541fi
5542ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
5543if test "x$ac_cv_header_linux_fs_h" = xyes
5544then :
5545 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
5546
5547fi
5548
5549
5550ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
5551if test "x$ac_cv_func_inotify_init" = xyes
5552then :
5553 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
5554
5555fi
5556ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
5557if test "x$ac_cv_func_epoll_ctl" = xyes
5558then :
5559 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
5560
5561fi
5562ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
5563if test "x$ac_cv_func_kqueue" = xyes
5564then :
5565 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
5566
5567fi
5568ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
5569if test "x$ac_cv_func_port_create" = xyes
5570then :
5571 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
5572
5573fi
5574ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
5575if test "x$ac_cv_func_poll" = xyes
5576then :
5577 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
5578
5579fi
5580ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
5581if test "x$ac_cv_func_select" = xyes
5582then :
5583 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
5584
5585fi
5586ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
5587if test "x$ac_cv_func_eventfd" = xyes
5588then :
5589 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
5590
5591fi
5592ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
5593if test "x$ac_cv_func_signalfd" = xyes
5594then :
5595 printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h
5596
5597fi
5598
5599
5600
5397for ac_func in clock_gettime 5601 for ac_func in clock_gettime
5398do : 5602do :
5399 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5603 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5400if test "x$ac_cv_func_clock_gettime" = xyes; then : 5604if test "x$ac_cv_func_clock_gettime" = xyes
5401 cat >>confdefs.h <<_ACEOF 5605then :
5402#define HAVE_CLOCK_GETTIME 1 5606 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5403_ACEOF
5404 5607
5405else 5608else $as_nop
5406 5609
5407 if test $(uname) = Linux; then 5610 if test $(uname) = Linux; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5409$as_echo_n "checking for clock_gettime syscall... " >&6; } 5612printf %s "checking for clock_gettime syscall... " >&6; }
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */ 5614/* end confdefs.h. */
5412#include <unistd.h> 5615#include <unistd.h>
5413 #include <sys/syscall.h> 5616 #include <sys/syscall.h>
5414 #include <time.h> 5617 #include <time.h>
5415int 5618int
5416main () 5619main (void)
5417{ 5620{
5418struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) 5621struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5419 ; 5622 ;
5420 return 0; 5623 return 0;
5421} 5624}
5422_ACEOF 5625_ACEOF
5423if ac_fn_cxx_try_link "$LINENO"; then : 5626if ac_fn_cxx_try_link "$LINENO"
5627then :
5424 ac_have_clock_syscall=1 5628 ac_have_clock_syscall=1
5425 5629
5426$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h 5630printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5427 5631
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; } 5633printf "%s\n" "yes" >&6; }
5430else 5634else $as_nop
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; } 5636printf "%s\n" "no" >&6; }
5433fi 5637fi
5434rm -f core conftest.err conftest.$ac_objext \ 5638rm -f core conftest.err conftest.$ac_objext conftest.beam \
5435 conftest$ac_exeext conftest.$ac_ext 5639 conftest$ac_exeext conftest.$ac_ext
5436 fi 5640 fi
5437 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then 5641 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5439$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 5643printf %s "checking for clock_gettime in -lrt... " >&6; }
5440if ${ac_cv_lib_rt_clock_gettime+:} false; then : 5644if test ${ac_cv_lib_rt_clock_gettime+y}
5441 $as_echo_n "(cached) " >&6 5645then :
5442else 5646 printf %s "(cached) " >&6
5647else $as_nop
5443 ac_check_lib_save_LIBS=$LIBS 5648 ac_check_lib_save_LIBS=$LIBS
5444LIBS="-lrt $LIBS" 5649LIBS="-lrt $LIBS"
5445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h. */ 5651/* end confdefs.h. */
5447 5652
5448/* Override any GCC internal prototype to avoid an error. 5653namespace conftest {
5449 Use char because int might match the return type of a GCC 5654 extern "C" int clock_gettime ();
5450 builtin and then its argument prototype would still apply. */ 5655}
5451#ifdef __cplusplus
5452extern "C"
5453#endif
5454char clock_gettime ();
5455int 5656int
5456main () 5657main (void)
5457{ 5658{
5458return clock_gettime (); 5659return conftest::clock_gettime ();
5459 ; 5660 ;
5460 return 0; 5661 return 0;
5461} 5662}
5462_ACEOF 5663_ACEOF
5463if ac_fn_cxx_try_link "$LINENO"; then : 5664if ac_fn_cxx_try_link "$LINENO"
5665then :
5464 ac_cv_lib_rt_clock_gettime=yes 5666 ac_cv_lib_rt_clock_gettime=yes
5465else 5667else $as_nop
5466 ac_cv_lib_rt_clock_gettime=no 5668 ac_cv_lib_rt_clock_gettime=no
5467fi 5669fi
5468rm -f core conftest.err conftest.$ac_objext \ 5670rm -f core conftest.err conftest.$ac_objext conftest.beam \
5469 conftest$ac_exeext conftest.$ac_ext 5671 conftest$ac_exeext conftest.$ac_ext
5470LIBS=$ac_check_lib_save_LIBS 5672LIBS=$ac_check_lib_save_LIBS
5471fi 5673fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 5674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5473$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 5675printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
5474if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 5676if test "x$ac_cv_lib_rt_clock_gettime" = xyes
5475 cat >>confdefs.h <<_ACEOF 5677then :
5476#define HAVE_LIBRT 1 5678 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5477_ACEOF
5478 5679
5479 LIBS="-lrt $LIBS" 5680 LIBS="-lrt $LIBS"
5480 5681
5481fi 5682fi
5482 5683
5483 unset ac_cv_func_clock_gettime 5684 unset ac_cv_func_clock_gettime
5484 for ac_func in clock_gettime
5485do :
5486 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5685 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5487if test "x$ac_cv_func_clock_gettime" = xyes; then : 5686if test "x$ac_cv_func_clock_gettime" = xyes
5488 cat >>confdefs.h <<_ACEOF 5687then :
5489#define HAVE_CLOCK_GETTIME 1 5688 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5490_ACEOF
5491 5689
5492fi 5690fi
5691
5692 fi
5693
5694fi
5695
5493done 5696done
5494 5697
5495 fi
5496 5698
5497fi
5498done
5499
5500
5501for ac_func in nanosleep 5699 for ac_func in nanosleep
5502do : 5700do :
5503 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5701 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5504if test "x$ac_cv_func_nanosleep" = xyes; then : 5702if test "x$ac_cv_func_nanosleep" = xyes
5505 cat >>confdefs.h <<_ACEOF 5703then :
5506#define HAVE_NANOSLEEP 1 5704 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5507_ACEOF
5508 5705
5509else 5706else $as_nop
5510 5707
5511 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5708 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5513$as_echo_n "checking for nanosleep in -lrt... " >&6; } 5710printf %s "checking for nanosleep in -lrt... " >&6; }
5514if ${ac_cv_lib_rt_nanosleep+:} false; then : 5711if test ${ac_cv_lib_rt_nanosleep+y}
5515 $as_echo_n "(cached) " >&6 5712then :
5516else 5713 printf %s "(cached) " >&6
5714else $as_nop
5517 ac_check_lib_save_LIBS=$LIBS 5715 ac_check_lib_save_LIBS=$LIBS
5518LIBS="-lrt $LIBS" 5716LIBS="-lrt $LIBS"
5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */ 5718/* end confdefs.h. */
5521 5719
5522/* Override any GCC internal prototype to avoid an error. 5720namespace conftest {
5523 Use char because int might match the return type of a GCC 5721 extern "C" int nanosleep ();
5524 builtin and then its argument prototype would still apply. */ 5722}
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528char nanosleep ();
5529int 5723int
5530main () 5724main (void)
5531{ 5725{
5532return nanosleep (); 5726return conftest::nanosleep ();
5533 ; 5727 ;
5534 return 0; 5728 return 0;
5535} 5729}
5536_ACEOF 5730_ACEOF
5537if ac_fn_cxx_try_link "$LINENO"; then : 5731if ac_fn_cxx_try_link "$LINENO"
5732then :
5538 ac_cv_lib_rt_nanosleep=yes 5733 ac_cv_lib_rt_nanosleep=yes
5539else 5734else $as_nop
5540 ac_cv_lib_rt_nanosleep=no 5735 ac_cv_lib_rt_nanosleep=no
5541fi 5736fi
5542rm -f core conftest.err conftest.$ac_objext \ 5737rm -f core conftest.err conftest.$ac_objext conftest.beam \
5543 conftest$ac_exeext conftest.$ac_ext 5738 conftest$ac_exeext conftest.$ac_ext
5544LIBS=$ac_check_lib_save_LIBS 5739LIBS=$ac_check_lib_save_LIBS
5545fi 5740fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5547$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 5742printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
5548if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 5743if test "x$ac_cv_lib_rt_nanosleep" = xyes
5549 cat >>confdefs.h <<_ACEOF 5744then :
5550#define HAVE_LIBRT 1 5745 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5551_ACEOF
5552 5746
5553 LIBS="-lrt $LIBS" 5747 LIBS="-lrt $LIBS"
5554 5748
5555fi 5749fi
5556 5750
5557 unset ac_cv_func_nanosleep 5751 unset ac_cv_func_nanosleep
5558 for ac_func in nanosleep
5559do :
5560 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5752 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5561if test "x$ac_cv_func_nanosleep" = xyes; then : 5753if test "x$ac_cv_func_nanosleep" = xyes
5562 cat >>confdefs.h <<_ACEOF 5754then :
5563#define HAVE_NANOSLEEP 1 5755 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5564_ACEOF
5565 5756
5566fi 5757fi
5758
5759 fi
5760
5761fi
5762
5567done 5763done
5568 5764
5569 fi 5765ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
5766"
5767if test "x$ac_cv_type___kernel_rwf_t" = xyes
5768then :
5570 5769
5770
5771printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
5772
5773
5571fi 5774fi
5572done
5573 5775
5574 5776
5575if test -z "$LIBEV_M4_AVOID_LIBM"; then 5777if test -z "$LIBEV_M4_AVOID_LIBM"; then
5576 LIBM=m 5778 LIBM=m
5577fi 5779fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5579$as_echo_n "checking for library containing floor... " >&6; } 5781printf %s "checking for library containing floor... " >&6; }
5580if ${ac_cv_search_floor+:} false; then : 5782if test ${ac_cv_search_floor+y}
5581 $as_echo_n "(cached) " >&6 5783then :
5582else 5784 printf %s "(cached) " >&6
5785else $as_nop
5583 ac_func_search_save_LIBS=$LIBS 5786 ac_func_search_save_LIBS=$LIBS
5584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h. */ 5788/* end confdefs.h. */
5586 5789
5587/* Override any GCC internal prototype to avoid an error. 5790namespace conftest {
5588 Use char because int might match the return type of a GCC 5791 extern "C" int floor ();
5589 builtin and then its argument prototype would still apply. */ 5792}
5590#ifdef __cplusplus
5591extern "C"
5592#endif
5593char floor ();
5594int 5793int
5595main () 5794main (void)
5596{ 5795{
5597return floor (); 5796return conftest::floor ();
5598 ; 5797 ;
5599 return 0; 5798 return 0;
5600} 5799}
5601_ACEOF 5800_ACEOF
5602for ac_lib in '' $LIBM; do 5801for ac_lib in '' $LIBM
5802do
5603 if test -z "$ac_lib"; then 5803 if test -z "$ac_lib"; then
5604 ac_res="none required" 5804 ac_res="none required"
5605 else 5805 else
5606 ac_res=-l$ac_lib 5806 ac_res=-l$ac_lib
5607 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5608 fi 5808 fi
5609 if ac_fn_cxx_try_link "$LINENO"; then : 5809 if ac_fn_cxx_try_link "$LINENO"
5810then :
5610 ac_cv_search_floor=$ac_res 5811 ac_cv_search_floor=$ac_res
5611fi 5812fi
5612rm -f core conftest.err conftest.$ac_objext \ 5813rm -f core conftest.err conftest.$ac_objext conftest.beam \
5613 conftest$ac_exeext 5814 conftest$ac_exeext
5614 if ${ac_cv_search_floor+:} false; then : 5815 if test ${ac_cv_search_floor+y}
5816then :
5615 break 5817 break
5616fi 5818fi
5617done 5819done
5618if ${ac_cv_search_floor+:} false; then : 5820if test ${ac_cv_search_floor+y}
5821then :
5619 5822
5620else 5823else $as_nop
5621 ac_cv_search_floor=no 5824 ac_cv_search_floor=no
5622fi 5825fi
5623rm conftest.$ac_ext 5826rm conftest.$ac_ext
5624LIBS=$ac_func_search_save_LIBS 5827LIBS=$ac_func_search_save_LIBS
5625fi 5828fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5627$as_echo "$ac_cv_search_floor" >&6; } 5830printf "%s\n" "$ac_cv_search_floor" >&6; }
5628ac_res=$ac_cv_search_floor 5831ac_res=$ac_cv_search_floor
5629if test "$ac_res" != no; then : 5832if test "$ac_res" != no
5833then :
5630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5631 5835
5632$as_echo "#define HAVE_FLOOR 1" >>confdefs.h 5836printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
5633 5837
5634fi 5838fi
5635 5839
5636 5840
5637 5841
5638 5842
5639 5843
5640# Extract the first word of "tic", so it can be a program name with args. 5844# Extract the first word of "tic", so it can be a program name with args.
5641set dummy tic; ac_word=$2 5845set dummy tic; ac_word=$2
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; } 5847printf %s "checking for $ac_word... " >&6; }
5644if ${ac_cv_path_TIC+:} false; then : 5848if test ${ac_cv_path_TIC+y}
5645 $as_echo_n "(cached) " >&6 5849then :
5646else 5850 printf %s "(cached) " >&6
5851else $as_nop
5647 case $TIC in 5852 case $TIC in
5648 [\\/]* | ?:[\\/]*) 5853 [\\/]* | ?:[\\/]*)
5649 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 5854 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5650 ;; 5855 ;;
5651 *) 5856 *)
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH 5858for as_dir in $PATH
5654do 5859do
5655 IFS=$as_save_IFS 5860 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=. 5861 case $as_dir in #(((
5862 '') as_dir=./ ;;
5863 */) ;;
5864 *) as_dir=$as_dir/ ;;
5865 esac
5657 for ac_exec_ext in '' $ac_executable_extensions; do 5866 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5659 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 5868 ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5661 break 2 5870 break 2
5662 fi 5871 fi
5663done 5872done
5664 done 5873 done
5665IFS=$as_save_IFS 5874IFS=$as_save_IFS
5668 ;; 5877 ;;
5669esac 5878esac
5670fi 5879fi
5671TIC=$ac_cv_path_TIC 5880TIC=$ac_cv_path_TIC
5672if test -n "$TIC"; then 5881if test -n "$TIC"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5674$as_echo "$TIC" >&6; } 5883printf "%s\n" "$TIC" >&6; }
5675else 5884else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; } 5886printf "%s\n" "no" >&6; }
5678fi 5887fi
5679 5888
5680 5889
5681 5890
5891ac_ext=cpp
5892ac_cpp='$CXXCPP $CPPFLAGS'
5893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5897printf %s "checking how to run the C++ preprocessor... " >&6; }
5898if test -z "$CXXCPP"; then
5899 if test ${ac_cv_prog_CXXCPP+y}
5900then :
5901 printf %s "(cached) " >&6
5902else $as_nop
5903 # Double quotes because $CXX needs to be expanded
5904 for CXXCPP in "$CXX -E" cpp /lib/cpp
5905 do
5906 ac_preproc_ok=false
5907for ac_cxx_preproc_warn_flag in '' yes
5908do
5909 # Use a header file that comes with gcc, so configuring glibc
5910 # with a fresh cross-compiler works.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h. */
5915#include <limits.h>
5916 Syntax error
5917_ACEOF
5918if ac_fn_cxx_try_cpp "$LINENO"
5919then :
5920
5921else $as_nop
5922 # Broken: fails on valid input.
5923continue
5924fi
5925rm -f conftest.err conftest.i conftest.$ac_ext
5926
5927 # OK, works on sane cases. Now check whether nonexistent headers
5928 # can be detected and how.
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931#include <ac_nonexistent.h>
5932_ACEOF
5933if ac_fn_cxx_try_cpp "$LINENO"
5934then :
5935 # Broken: success on invalid input.
5936continue
5937else $as_nop
5938 # Passes both tests.
5939ac_preproc_ok=:
5940break
5941fi
5942rm -f conftest.err conftest.i conftest.$ac_ext
5943
5944done
5945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5946rm -f conftest.i conftest.err conftest.$ac_ext
5947if $ac_preproc_ok
5948then :
5949 break
5950fi
5951
5952 done
5953 ac_cv_prog_CXXCPP=$CXXCPP
5954
5955fi
5956 CXXCPP=$ac_cv_prog_CXXCPP
5957else
5958 ac_cv_prog_CXXCPP=$CXXCPP
5959fi
5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5961printf "%s\n" "$CXXCPP" >&6; }
5962ac_preproc_ok=false
5963for ac_cxx_preproc_warn_flag in '' yes
5964do
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # On the NeXT, cc -E runs the code through the compiler's parser,
5968 # not just through cpp. "Syntax error" is here to catch this case.
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h. */
5971#include <limits.h>
5972 Syntax error
5973_ACEOF
5974if ac_fn_cxx_try_cpp "$LINENO"
5975then :
5976
5977else $as_nop
5978 # Broken: fails on valid input.
5979continue
5980fi
5981rm -f conftest.err conftest.i conftest.$ac_ext
5982
5983 # OK, works on sane cases. Now check whether nonexistent headers
5984 # can be detected and how.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h. */
5987#include <ac_nonexistent.h>
5988_ACEOF
5989if ac_fn_cxx_try_cpp "$LINENO"
5990then :
5991 # Broken: success on invalid input.
5992continue
5993else $as_nop
5994 # Passes both tests.
5995ac_preproc_ok=:
5996break
5997fi
5998rm -f conftest.err conftest.i conftest.$ac_ext
5999
6000done
6001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002rm -f conftest.i conftest.err conftest.$ac_ext
6003if $ac_preproc_ok
6004then :
6005
6006else $as_nop
6007 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6010See \`config.log' for more details" "$LINENO" 5; }
6011fi
6012
6013ac_ext=cpp
6014ac_cpp='$CXXCPP $CPPFLAGS'
6015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6018
6019
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5683$as_echo_n "checking for X... " >&6; } 6021printf %s "checking for X... " >&6; }
5684 6022
5685 6023
5686# Check whether --with-x was given. 6024# Check whether --with-x was given.
5687if test "${with_x+set}" = set; then : 6025if test ${with_x+y}
6026then :
5688 withval=$with_x; 6027 withval=$with_x;
5689fi 6028fi
5690 6029
5691# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6030# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5692if test "x$with_x" = xno; then 6031if test "x$with_x" = xno; then
5693 # The user explicitly disabled X. 6032 # The user explicitly disabled X.
5694 have_x=disabled 6033 have_x=disabled
5695else 6034else
5696 case $x_includes,$x_libraries in #( 6035 case $x_includes,$x_libraries in #(
5697 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 6036 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5698 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 6037 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5699 $as_echo_n "(cached) " >&6 6038then :
5700else 6039 printf %s "(cached) " >&6
6040else $as_nop
5701 # One or both of the vars are not set, and there is no cached value. 6041 # One or both of the vars are not set, and there is no cached value.
5702ac_x_includes=no ac_x_libraries=no 6042ac_x_includes=no
6043ac_x_libraries=no
6044# Do we need to do anything special at all?
6045ac_save_LIBS=$LIBS
6046LIBS="-lX11 $LIBS"
6047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h. */
6049#include <X11/Xlib.h>
6050int
6051main (void)
6052{
6053XrmInitialize ()
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058if ac_fn_cxx_try_link "$LINENO"
6059then :
6060 # We can compile and link X programs with no special options.
6061 ac_x_includes=
6062 ac_x_libraries=
6063fi
6064rm -f core conftest.err conftest.$ac_objext conftest.beam \
6065 conftest$ac_exeext conftest.$ac_ext
6066LIBS="$ac_save_LIBS"
6067# If that didn't work, only try xmkmf and file system searches
6068# for native compilation.
6069if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
6070then :
5703rm -f -r conftest.dir 6071 rm -f -r conftest.dir
5704if mkdir conftest.dir; then 6072if mkdir conftest.dir; then
5705 cd conftest.dir 6073 cd conftest.dir
5706 cat >Imakefile <<'_ACEOF' 6074 cat >Imakefile <<'_ACEOF'
5707incroot: 6075incroot:
5708 @echo incroot='${INCROOT}' 6076 @echo incroot='${INCROOT}'
5737 fi 6105 fi
5738 cd .. 6106 cd ..
5739 rm -f -r conftest.dir 6107 rm -f -r conftest.dir
5740fi 6108fi
5741 6109
5742# Standard set of common directories for X headers. 6110 # Standard set of common directories for X headers.
5743# Check X11 before X11Rn because it is often a symlink to the current release. 6111# Check X11 before X11Rn because it is often a symlink to the current release.
5744ac_x_header_dirs=' 6112ac_x_header_dirs='
5745/usr/X11/include 6113/usr/X11/include
5746/usr/X11R7/include 6114/usr/X11R7/include
5747/usr/X11R6/include 6115/usr/X11R6/include
5764/usr/local/include/X11R7 6132/usr/local/include/X11R7
5765/usr/local/include/X11R6 6133/usr/local/include/X11R6
5766/usr/local/include/X11R5 6134/usr/local/include/X11R5
5767/usr/local/include/X11R4 6135/usr/local/include/X11R4
5768 6136
6137/opt/X11/include
6138
5769/usr/X386/include 6139/usr/X386/include
5770/usr/x386/include 6140/usr/x386/include
5771/usr/XFree86/include/X11 6141/usr/XFree86/include/X11
5772 6142
5773/usr/include 6143/usr/include
5785 # First, try using that file with no special directory specified. 6155 # First, try using that file with no special directory specified.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */ 6157/* end confdefs.h. */
5788#include <X11/Xlib.h> 6158#include <X11/Xlib.h>
5789_ACEOF 6159_ACEOF
5790if ac_fn_cxx_try_cpp "$LINENO"; then : 6160if ac_fn_cxx_try_cpp "$LINENO"
6161then :
5791 # We can compile using X headers with no special include directory. 6162 # We can compile using X headers with no special include directory.
5792ac_x_includes= 6163ac_x_includes=
5793else 6164else $as_nop
5794 for ac_dir in $ac_x_header_dirs; do 6165 for ac_dir in $ac_x_header_dirs; do
5795 if test -r "$ac_dir/X11/Xlib.h"; then 6166 if test -r "$ac_dir/X11/Xlib.h"; then
5796 ac_x_includes=$ac_dir 6167 ac_x_includes=$ac_dir
5797 break 6168 break
5798 fi 6169 fi
5809 LIBS="-lX11 $LIBS" 6180 LIBS="-lX11 $LIBS"
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h. */ 6182/* end confdefs.h. */
5812#include <X11/Xlib.h> 6183#include <X11/Xlib.h>
5813int 6184int
5814main () 6185main (void)
5815{ 6186{
5816XrmInitialize () 6187XrmInitialize ()
5817 ; 6188 ;
5818 return 0; 6189 return 0;
5819} 6190}
5820_ACEOF 6191_ACEOF
5821if ac_fn_cxx_try_link "$LINENO"; then : 6192if ac_fn_cxx_try_link "$LINENO"
6193then :
5822 LIBS=$ac_save_LIBS 6194 LIBS=$ac_save_LIBS
5823# We can link X programs with no special library path. 6195# We can link X programs with no special library path.
5824ac_x_libraries= 6196ac_x_libraries=
5825else 6197else $as_nop
5826 LIBS=$ac_save_LIBS 6198 LIBS=$ac_save_LIBS
5827for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6199for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5828do 6200do
5829 # Don't even attempt the hair of trying to link an X program! 6201 # Don't even attempt the hair of trying to link an X program!
5830 for ac_extension in a so sl dylib la dll; do 6202 for ac_extension in a so sl dylib la dll; do
5831 if test -r "$ac_dir/libX11.$ac_extension"; then 6203 if test -r "$ac_dir/libX11.$ac_extension"; then
5832 ac_x_libraries=$ac_dir 6204 ac_x_libraries=$ac_dir
5833 break 2 6205 break 2
5834 fi 6206 fi
5835 done 6207 done
5836done 6208done
5837fi 6209fi
5838rm -f core conftest.err conftest.$ac_objext \ 6210rm -f core conftest.err conftest.$ac_objext conftest.beam \
5839 conftest$ac_exeext conftest.$ac_ext 6211 conftest$ac_exeext conftest.$ac_ext
5840fi # $ac_x_libraries = no 6212fi # $ac_x_libraries = no
5841 6213
6214fi
6215# Record the results.
5842case $ac_x_includes,$ac_x_libraries in #( 6216case $ac_x_includes,$ac_x_libraries in #(
5843 no,* | *,no | *\'*) 6217 no,* | *,no | *\'*) :
5844 # Didn't find X, or a directory has "'" in its name. 6218 # Didn't find X, or a directory has "'" in its name.
5845 ac_cv_have_x="have_x=no";; #( 6219 ac_cv_have_x="have_x=no" ;; #(
5846 *) 6220 *) :
5847 # Record where we found X for the cache. 6221 # Record where we found X for the cache.
5848 ac_cv_have_x="have_x=yes\ 6222 ac_cv_have_x="have_x=yes\
5849 ac_x_includes='$ac_x_includes'\ 6223 ac_x_includes='$ac_x_includes'\
5850 ac_x_libraries='$ac_x_libraries'" 6224 ac_x_libraries='$ac_x_libraries'" ;;
5851esac 6225esac
5852fi 6226fi
5853;; #( 6227;; #(
5854 *) have_x=yes;; 6228 *) have_x=yes;;
5855 esac 6229 esac
5856 eval "$ac_cv_have_x" 6230 eval "$ac_cv_have_x"
5857fi # $with_x != no 6231fi # $with_x != no
5858 6232
5859if test "$have_x" != yes; then 6233if test "$have_x" != yes; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5861$as_echo "$have_x" >&6; } 6235printf "%s\n" "$have_x" >&6; }
5862 no_x=yes 6236 no_x=yes
5863else 6237else
5864 # If each of the values was on the command line, it overrides each guess. 6238 # If each of the values was on the command line, it overrides each guess.
5865 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6239 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5866 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6240 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5867 # Update the cache value to reflect the command line values. 6241 # Update the cache value to reflect the command line values.
5868 ac_cv_have_x="have_x=yes\ 6242 ac_cv_have_x="have_x=yes\
5869 ac_x_includes='$x_includes'\ 6243 ac_x_includes='$x_includes'\
5870 ac_x_libraries='$x_libraries'" 6244 ac_x_libraries='$x_libraries'"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5872$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6246printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5873fi 6247fi
5874 6248
5875if test "$no_x" = yes; then 6249if test "$no_x" = yes; then
5876 # Not all programs may use this symbol, but it does not hurt to define it. 6250 # Not all programs may use this symbol, but it does not hurt to define it.
5877 6251
5878$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6252printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
5879 6253
5880 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6254 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5881else 6255else
5882 if test -n "$x_includes"; then 6256 if test -n "$x_includes"; then
5883 X_CFLAGS="$X_CFLAGS -I$x_includes" 6257 X_CFLAGS="$X_CFLAGS -I$x_includes"
5886 # It would also be nice to do this for all -L options, not just this one. 6260 # It would also be nice to do this for all -L options, not just this one.
5887 if test -n "$x_libraries"; then 6261 if test -n "$x_libraries"; then
5888 X_LIBS="$X_LIBS -L$x_libraries" 6262 X_LIBS="$X_LIBS -L$x_libraries"
5889 # For Solaris; some versions of Sun CC require a space after -R and 6263 # For Solaris; some versions of Sun CC require a space after -R and
5890 # others require no space. Words are not sufficient . . . . 6264 # others require no space. Words are not sufficient . . . .
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5892$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6266printf %s "checking whether -R must be followed by a space... " >&6; }
5893 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6267 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5894 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 6268 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5895 ac_cxx_werror_flag=yes 6269 ac_cxx_werror_flag=yes
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h. */ 6271/* end confdefs.h. */
5898 6272
5899int 6273int
5900main () 6274main (void)
5901{ 6275{
5902 6276
5903 ; 6277 ;
5904 return 0; 6278 return 0;
5905} 6279}
5906_ACEOF 6280_ACEOF
5907if ac_fn_cxx_try_link "$LINENO"; then : 6281if ac_fn_cxx_try_link "$LINENO"
6282then :
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; } 6284printf "%s\n" "no" >&6; }
5910 X_LIBS="$X_LIBS -R$x_libraries" 6285 X_LIBS="$X_LIBS -R$x_libraries"
5911else 6286else $as_nop
5912 LIBS="$ac_xsave_LIBS -R $x_libraries" 6287 LIBS="$ac_xsave_LIBS -R $x_libraries"
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h. */ 6289/* end confdefs.h. */
5915 6290
5916int 6291int
5917main () 6292main (void)
5918{ 6293{
5919 6294
5920 ; 6295 ;
5921 return 0; 6296 return 0;
5922} 6297}
5923_ACEOF 6298_ACEOF
5924if ac_fn_cxx_try_link "$LINENO"; then : 6299if ac_fn_cxx_try_link "$LINENO"
6300then :
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5926$as_echo "yes" >&6; } 6302printf "%s\n" "yes" >&6; }
5927 X_LIBS="$X_LIBS -R $x_libraries" 6303 X_LIBS="$X_LIBS -R $x_libraries"
5928else 6304else $as_nop
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5930$as_echo "neither works" >&6; } 6306printf "%s\n" "neither works" >&6; }
5931fi 6307fi
5932rm -f core conftest.err conftest.$ac_objext \ 6308rm -f core conftest.err conftest.$ac_objext conftest.beam \
5933 conftest$ac_exeext conftest.$ac_ext 6309 conftest$ac_exeext conftest.$ac_ext
5934fi 6310fi
5935rm -f core conftest.err conftest.$ac_objext \ 6311rm -f core conftest.err conftest.$ac_objext conftest.beam \
5936 conftest$ac_exeext conftest.$ac_ext 6312 conftest$ac_exeext conftest.$ac_ext
5937 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 6313 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5938 LIBS=$ac_xsave_LIBS 6314 LIBS=$ac_xsave_LIBS
5939 fi 6315 fi
5940 6316
5950 # the Alpha needs dnet_stub (dnet does not exist). 6326 # the Alpha needs dnet_stub (dnet does not exist).
5951 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h. */ 6329/* end confdefs.h. */
5954 6330
5955/* Override any GCC internal prototype to avoid an error. 6331namespace conftest {
5956 Use char because int might match the return type of a GCC 6332 extern "C" int XOpenDisplay ();
5957 builtin and then its argument prototype would still apply. */ 6333}
5958#ifdef __cplusplus
5959extern "C"
5960#endif
5961char XOpenDisplay ();
5962int 6334int
5963main () 6335main (void)
5964{ 6336{
5965return XOpenDisplay (); 6337return conftest::XOpenDisplay ();
5966 ; 6338 ;
5967 return 0; 6339 return 0;
5968} 6340}
5969_ACEOF 6341_ACEOF
5970if ac_fn_cxx_try_link "$LINENO"; then : 6342if ac_fn_cxx_try_link "$LINENO"
6343then :
5971 6344
5972else 6345else $as_nop
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5974$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6347printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
5975if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 6348if test ${ac_cv_lib_dnet_dnet_ntoa+y}
5976 $as_echo_n "(cached) " >&6 6349then :
5977else 6350 printf %s "(cached) " >&6
6351else $as_nop
5978 ac_check_lib_save_LIBS=$LIBS 6352 ac_check_lib_save_LIBS=$LIBS
5979LIBS="-ldnet $LIBS" 6353LIBS="-ldnet $LIBS"
5980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h. */ 6355/* end confdefs.h. */
5982 6356
5983/* Override any GCC internal prototype to avoid an error. 6357namespace conftest {
5984 Use char because int might match the return type of a GCC 6358 extern "C" int dnet_ntoa ();
5985 builtin and then its argument prototype would still apply. */ 6359}
5986#ifdef __cplusplus
5987extern "C"
5988#endif
5989char dnet_ntoa ();
5990int 6360int
5991main () 6361main (void)
5992{ 6362{
5993return dnet_ntoa (); 6363return conftest::dnet_ntoa ();
5994 ; 6364 ;
5995 return 0; 6365 return 0;
5996} 6366}
5997_ACEOF 6367_ACEOF
5998if ac_fn_cxx_try_link "$LINENO"; then : 6368if ac_fn_cxx_try_link "$LINENO"
6369then :
5999 ac_cv_lib_dnet_dnet_ntoa=yes 6370 ac_cv_lib_dnet_dnet_ntoa=yes
6000else 6371else $as_nop
6001 ac_cv_lib_dnet_dnet_ntoa=no 6372 ac_cv_lib_dnet_dnet_ntoa=no
6002fi 6373fi
6003rm -f core conftest.err conftest.$ac_objext \ 6374rm -f core conftest.err conftest.$ac_objext conftest.beam \
6004 conftest$ac_exeext conftest.$ac_ext 6375 conftest$ac_exeext conftest.$ac_ext
6005LIBS=$ac_check_lib_save_LIBS 6376LIBS=$ac_check_lib_save_LIBS
6006fi 6377fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6008$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6379printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6009if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 6380if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
6381then :
6010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6382 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6011fi 6383fi
6012 6384
6013 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6385 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6015$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6387printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6016if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 6388if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
6017 $as_echo_n "(cached) " >&6 6389then :
6018else 6390 printf %s "(cached) " >&6
6391else $as_nop
6019 ac_check_lib_save_LIBS=$LIBS 6392 ac_check_lib_save_LIBS=$LIBS
6020LIBS="-ldnet_stub $LIBS" 6393LIBS="-ldnet_stub $LIBS"
6021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h. */ 6395/* end confdefs.h. */
6023 6396
6024/* Override any GCC internal prototype to avoid an error. 6397namespace conftest {
6025 Use char because int might match the return type of a GCC 6398 extern "C" int dnet_ntoa ();
6026 builtin and then its argument prototype would still apply. */ 6399}
6027#ifdef __cplusplus
6028extern "C"
6029#endif
6030char dnet_ntoa ();
6031int 6400int
6032main () 6401main (void)
6033{ 6402{
6034return dnet_ntoa (); 6403return conftest::dnet_ntoa ();
6035 ; 6404 ;
6036 return 0; 6405 return 0;
6037} 6406}
6038_ACEOF 6407_ACEOF
6039if ac_fn_cxx_try_link "$LINENO"; then : 6408if ac_fn_cxx_try_link "$LINENO"
6409then :
6040 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6410 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6041else 6411else $as_nop
6042 ac_cv_lib_dnet_stub_dnet_ntoa=no 6412 ac_cv_lib_dnet_stub_dnet_ntoa=no
6043fi 6413fi
6044rm -f core conftest.err conftest.$ac_objext \ 6414rm -f core conftest.err conftest.$ac_objext conftest.beam \
6045 conftest$ac_exeext conftest.$ac_ext 6415 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS 6416LIBS=$ac_check_lib_save_LIBS
6047fi 6417fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6049$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6419printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6050if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 6420if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
6421then :
6051 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6052fi 6423fi
6053 6424
6054 fi 6425 fi
6055fi 6426fi
6056rm -f core conftest.err conftest.$ac_objext \ 6427rm -f core conftest.err conftest.$ac_objext conftest.beam \
6057 conftest$ac_exeext conftest.$ac_ext 6428 conftest$ac_exeext conftest.$ac_ext
6058 LIBS="$ac_xsave_LIBS" 6429 LIBS="$ac_xsave_LIBS"
6059 6430
6060 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6431 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6061 # to get the SysV transport functions. 6432 # to get the SysV transport functions.
6064 # The nsl library prevents programs from opening the X display 6435 # The nsl library prevents programs from opening the X display
6065 # on Irix 5.2, according to T.E. Dickey. 6436 # on Irix 5.2, according to T.E. Dickey.
6066 # The functions gethostbyname, getservbyname, and inet_addr are 6437 # The functions gethostbyname, getservbyname, and inet_addr are
6067 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6438 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6068 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6439 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6069if test "x$ac_cv_func_gethostbyname" = xyes; then : 6440if test "x$ac_cv_func_gethostbyname" = xyes
6441then :
6070 6442
6071fi 6443fi
6072 6444
6073 if test $ac_cv_func_gethostbyname = no; then 6445 if test $ac_cv_func_gethostbyname = no; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6075$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6447printf %s "checking for gethostbyname in -lnsl... " >&6; }
6076if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 6448if test ${ac_cv_lib_nsl_gethostbyname+y}
6077 $as_echo_n "(cached) " >&6 6449then :
6078else 6450 printf %s "(cached) " >&6
6451else $as_nop
6079 ac_check_lib_save_LIBS=$LIBS 6452 ac_check_lib_save_LIBS=$LIBS
6080LIBS="-lnsl $LIBS" 6453LIBS="-lnsl $LIBS"
6081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */ 6455/* end confdefs.h. */
6083 6456
6084/* Override any GCC internal prototype to avoid an error. 6457namespace conftest {
6085 Use char because int might match the return type of a GCC 6458 extern "C" int gethostbyname ();
6086 builtin and then its argument prototype would still apply. */ 6459}
6087#ifdef __cplusplus
6088extern "C"
6089#endif
6090char gethostbyname ();
6091int 6460int
6092main () 6461main (void)
6093{ 6462{
6094return gethostbyname (); 6463return conftest::gethostbyname ();
6095 ; 6464 ;
6096 return 0; 6465 return 0;
6097} 6466}
6098_ACEOF 6467_ACEOF
6099if ac_fn_cxx_try_link "$LINENO"; then : 6468if ac_fn_cxx_try_link "$LINENO"
6469then :
6100 ac_cv_lib_nsl_gethostbyname=yes 6470 ac_cv_lib_nsl_gethostbyname=yes
6101else 6471else $as_nop
6102 ac_cv_lib_nsl_gethostbyname=no 6472 ac_cv_lib_nsl_gethostbyname=no
6103fi 6473fi
6104rm -f core conftest.err conftest.$ac_objext \ 6474rm -f core conftest.err conftest.$ac_objext conftest.beam \
6105 conftest$ac_exeext conftest.$ac_ext 6475 conftest$ac_exeext conftest.$ac_ext
6106LIBS=$ac_check_lib_save_LIBS 6476LIBS=$ac_check_lib_save_LIBS
6107fi 6477fi
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6109$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6479printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6110if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6480if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6481then :
6111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6112fi 6483fi
6113 6484
6114 if test $ac_cv_lib_nsl_gethostbyname = no; then 6485 if test $ac_cv_lib_nsl_gethostbyname = no; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6116$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6487printf %s "checking for gethostbyname in -lbsd... " >&6; }
6117if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6488if test ${ac_cv_lib_bsd_gethostbyname+y}
6118 $as_echo_n "(cached) " >&6 6489then :
6119else 6490 printf %s "(cached) " >&6
6491else $as_nop
6120 ac_check_lib_save_LIBS=$LIBS 6492 ac_check_lib_save_LIBS=$LIBS
6121LIBS="-lbsd $LIBS" 6493LIBS="-lbsd $LIBS"
6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */ 6495/* end confdefs.h. */
6124 6496
6125/* Override any GCC internal prototype to avoid an error. 6497namespace conftest {
6126 Use char because int might match the return type of a GCC 6498 extern "C" int gethostbyname ();
6127 builtin and then its argument prototype would still apply. */ 6499}
6128#ifdef __cplusplus
6129extern "C"
6130#endif
6131char gethostbyname ();
6132int 6500int
6133main () 6501main (void)
6134{ 6502{
6135return gethostbyname (); 6503return conftest::gethostbyname ();
6136 ; 6504 ;
6137 return 0; 6505 return 0;
6138} 6506}
6139_ACEOF 6507_ACEOF
6140if ac_fn_cxx_try_link "$LINENO"; then : 6508if ac_fn_cxx_try_link "$LINENO"
6509then :
6141 ac_cv_lib_bsd_gethostbyname=yes 6510 ac_cv_lib_bsd_gethostbyname=yes
6142else 6511else $as_nop
6143 ac_cv_lib_bsd_gethostbyname=no 6512 ac_cv_lib_bsd_gethostbyname=no
6144fi 6513fi
6145rm -f core conftest.err conftest.$ac_objext \ 6514rm -f core conftest.err conftest.$ac_objext conftest.beam \
6146 conftest$ac_exeext conftest.$ac_ext 6515 conftest$ac_exeext conftest.$ac_ext
6147LIBS=$ac_check_lib_save_LIBS 6516LIBS=$ac_check_lib_save_LIBS
6148fi 6517fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6150$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6519printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
6151if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6520if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
6521then :
6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6153fi 6523fi
6154 6524
6155 fi 6525 fi
6156 fi 6526 fi
6161 # on later versions), says Simon Leinen: it contains gethostby* 6531 # on later versions), says Simon Leinen: it contains gethostby*
6162 # variants that don't use the name server (or something). -lsocket 6532 # variants that don't use the name server (or something). -lsocket
6163 # must be given before -lnsl if both are needed. We assume that 6533 # must be given before -lnsl if both are needed. We assume that
6164 # if connect needs -lnsl, so does gethostbyname. 6534 # if connect needs -lnsl, so does gethostbyname.
6165 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 6535 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6166if test "x$ac_cv_func_connect" = xyes; then : 6536if test "x$ac_cv_func_connect" = xyes
6537then :
6167 6538
6168fi 6539fi
6169 6540
6170 if test $ac_cv_func_connect = no; then 6541 if test $ac_cv_func_connect = no; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6172$as_echo_n "checking for connect in -lsocket... " >&6; } 6543printf %s "checking for connect in -lsocket... " >&6; }
6173if ${ac_cv_lib_socket_connect+:} false; then : 6544if test ${ac_cv_lib_socket_connect+y}
6174 $as_echo_n "(cached) " >&6 6545then :
6175else 6546 printf %s "(cached) " >&6
6547else $as_nop
6176 ac_check_lib_save_LIBS=$LIBS 6548 ac_check_lib_save_LIBS=$LIBS
6177LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6549LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */ 6551/* end confdefs.h. */
6180 6552
6181/* Override any GCC internal prototype to avoid an error. 6553namespace conftest {
6182 Use char because int might match the return type of a GCC 6554 extern "C" int connect ();
6183 builtin and then its argument prototype would still apply. */ 6555}
6184#ifdef __cplusplus
6185extern "C"
6186#endif
6187char connect ();
6188int 6556int
6189main () 6557main (void)
6190{ 6558{
6191return connect (); 6559return conftest::connect ();
6192 ; 6560 ;
6193 return 0; 6561 return 0;
6194} 6562}
6195_ACEOF 6563_ACEOF
6196if ac_fn_cxx_try_link "$LINENO"; then : 6564if ac_fn_cxx_try_link "$LINENO"
6565then :
6197 ac_cv_lib_socket_connect=yes 6566 ac_cv_lib_socket_connect=yes
6198else 6567else $as_nop
6199 ac_cv_lib_socket_connect=no 6568 ac_cv_lib_socket_connect=no
6200fi 6569fi
6201rm -f core conftest.err conftest.$ac_objext \ 6570rm -f core conftest.err conftest.$ac_objext conftest.beam \
6202 conftest$ac_exeext conftest.$ac_ext 6571 conftest$ac_exeext conftest.$ac_ext
6203LIBS=$ac_check_lib_save_LIBS 6572LIBS=$ac_check_lib_save_LIBS
6204fi 6573fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6206$as_echo "$ac_cv_lib_socket_connect" >&6; } 6575printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
6207if test "x$ac_cv_lib_socket_connect" = xyes; then : 6576if test "x$ac_cv_lib_socket_connect" = xyes
6577then :
6208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6578 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6209fi 6579fi
6210 6580
6211 fi 6581 fi
6212 6582
6213 # Guillermo Gomez says -lposix is necessary on A/UX. 6583 # Guillermo Gomez says -lposix is necessary on A/UX.
6214 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 6584 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6215if test "x$ac_cv_func_remove" = xyes; then : 6585if test "x$ac_cv_func_remove" = xyes
6586then :
6216 6587
6217fi 6588fi
6218 6589
6219 if test $ac_cv_func_remove = no; then 6590 if test $ac_cv_func_remove = no; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6221$as_echo_n "checking for remove in -lposix... " >&6; } 6592printf %s "checking for remove in -lposix... " >&6; }
6222if ${ac_cv_lib_posix_remove+:} false; then : 6593if test ${ac_cv_lib_posix_remove+y}
6223 $as_echo_n "(cached) " >&6 6594then :
6224else 6595 printf %s "(cached) " >&6
6596else $as_nop
6225 ac_check_lib_save_LIBS=$LIBS 6597 ac_check_lib_save_LIBS=$LIBS
6226LIBS="-lposix $LIBS" 6598LIBS="-lposix $LIBS"
6227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h. */ 6600/* end confdefs.h. */
6229 6601
6230/* Override any GCC internal prototype to avoid an error. 6602namespace conftest {
6231 Use char because int might match the return type of a GCC 6603 extern "C" int remove ();
6232 builtin and then its argument prototype would still apply. */ 6604}
6233#ifdef __cplusplus
6234extern "C"
6235#endif
6236char remove ();
6237int 6605int
6238main () 6606main (void)
6239{ 6607{
6240return remove (); 6608return conftest::remove ();
6241 ; 6609 ;
6242 return 0; 6610 return 0;
6243} 6611}
6244_ACEOF 6612_ACEOF
6245if ac_fn_cxx_try_link "$LINENO"; then : 6613if ac_fn_cxx_try_link "$LINENO"
6614then :
6246 ac_cv_lib_posix_remove=yes 6615 ac_cv_lib_posix_remove=yes
6247else 6616else $as_nop
6248 ac_cv_lib_posix_remove=no 6617 ac_cv_lib_posix_remove=no
6249fi 6618fi
6250rm -f core conftest.err conftest.$ac_objext \ 6619rm -f core conftest.err conftest.$ac_objext conftest.beam \
6251 conftest$ac_exeext conftest.$ac_ext 6620 conftest$ac_exeext conftest.$ac_ext
6252LIBS=$ac_check_lib_save_LIBS 6621LIBS=$ac_check_lib_save_LIBS
6253fi 6622fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6255$as_echo "$ac_cv_lib_posix_remove" >&6; } 6624printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
6256if test "x$ac_cv_lib_posix_remove" = xyes; then : 6625if test "x$ac_cv_lib_posix_remove" = xyes
6626then :
6257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6258fi 6628fi
6259 6629
6260 fi 6630 fi
6261 6631
6262 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6632 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6263 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6633 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6264if test "x$ac_cv_func_shmat" = xyes; then : 6634if test "x$ac_cv_func_shmat" = xyes
6635then :
6265 6636
6266fi 6637fi
6267 6638
6268 if test $ac_cv_func_shmat = no; then 6639 if test $ac_cv_func_shmat = no; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6270$as_echo_n "checking for shmat in -lipc... " >&6; } 6641printf %s "checking for shmat in -lipc... " >&6; }
6271if ${ac_cv_lib_ipc_shmat+:} false; then : 6642if test ${ac_cv_lib_ipc_shmat+y}
6272 $as_echo_n "(cached) " >&6 6643then :
6273else 6644 printf %s "(cached) " >&6
6645else $as_nop
6274 ac_check_lib_save_LIBS=$LIBS 6646 ac_check_lib_save_LIBS=$LIBS
6275LIBS="-lipc $LIBS" 6647LIBS="-lipc $LIBS"
6276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h. */ 6649/* end confdefs.h. */
6278 6650
6279/* Override any GCC internal prototype to avoid an error. 6651namespace conftest {
6280 Use char because int might match the return type of a GCC 6652 extern "C" int shmat ();
6281 builtin and then its argument prototype would still apply. */ 6653}
6282#ifdef __cplusplus
6283extern "C"
6284#endif
6285char shmat ();
6286int 6654int
6287main () 6655main (void)
6288{ 6656{
6289return shmat (); 6657return conftest::shmat ();
6290 ; 6658 ;
6291 return 0; 6659 return 0;
6292} 6660}
6293_ACEOF 6661_ACEOF
6294if ac_fn_cxx_try_link "$LINENO"; then : 6662if ac_fn_cxx_try_link "$LINENO"
6663then :
6295 ac_cv_lib_ipc_shmat=yes 6664 ac_cv_lib_ipc_shmat=yes
6296else 6665else $as_nop
6297 ac_cv_lib_ipc_shmat=no 6666 ac_cv_lib_ipc_shmat=no
6298fi 6667fi
6299rm -f core conftest.err conftest.$ac_objext \ 6668rm -f core conftest.err conftest.$ac_objext conftest.beam \
6300 conftest$ac_exeext conftest.$ac_ext 6669 conftest$ac_exeext conftest.$ac_ext
6301LIBS=$ac_check_lib_save_LIBS 6670LIBS=$ac_check_lib_save_LIBS
6302fi 6671fi
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6304$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6673printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
6305if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6674if test "x$ac_cv_lib_ipc_shmat" = xyes
6675then :
6306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6307fi 6677fi
6308 6678
6309 fi 6679 fi
6310 fi 6680 fi
6316 # check for ICE first), but we must link in the order -lSM -lICE or 6686 # check for ICE first), but we must link in the order -lSM -lICE or
6317 # we get undefined symbols. So assume we have SM if we have ICE. 6687 # we get undefined symbols. So assume we have SM if we have ICE.
6318 # These have to be linked with before -lX11, unlike the other 6688 # These have to be linked with before -lX11, unlike the other
6319 # libraries we check for below, so use a different variable. 6689 # libraries we check for below, so use a different variable.
6320 # John Interrante, Karl Berry 6690 # John Interrante, Karl Berry
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6322$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6692printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
6323if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6693if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
6324 $as_echo_n "(cached) " >&6 6694then :
6325else 6695 printf %s "(cached) " >&6
6696else $as_nop
6326 ac_check_lib_save_LIBS=$LIBS 6697 ac_check_lib_save_LIBS=$LIBS
6327LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6698LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h. */ 6700/* end confdefs.h. */
6330 6701
6331/* Override any GCC internal prototype to avoid an error. 6702namespace conftest {
6332 Use char because int might match the return type of a GCC 6703 extern "C" int IceConnectionNumber ();
6333 builtin and then its argument prototype would still apply. */ 6704}
6334#ifdef __cplusplus
6335extern "C"
6336#endif
6337char IceConnectionNumber ();
6338int 6705int
6339main () 6706main (void)
6340{ 6707{
6341return IceConnectionNumber (); 6708return conftest::IceConnectionNumber ();
6342 ; 6709 ;
6343 return 0; 6710 return 0;
6344} 6711}
6345_ACEOF 6712_ACEOF
6346if ac_fn_cxx_try_link "$LINENO"; then : 6713if ac_fn_cxx_try_link "$LINENO"
6714then :
6347 ac_cv_lib_ICE_IceConnectionNumber=yes 6715 ac_cv_lib_ICE_IceConnectionNumber=yes
6348else 6716else $as_nop
6349 ac_cv_lib_ICE_IceConnectionNumber=no 6717 ac_cv_lib_ICE_IceConnectionNumber=no
6350fi 6718fi
6351rm -f core conftest.err conftest.$ac_objext \ 6719rm -f core conftest.err conftest.$ac_objext conftest.beam \
6352 conftest$ac_exeext conftest.$ac_ext 6720 conftest$ac_exeext conftest.$ac_ext
6353LIBS=$ac_check_lib_save_LIBS 6721LIBS=$ac_check_lib_save_LIBS
6354fi 6722fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6356$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6724printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6357if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6725if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
6726then :
6358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6727 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6359fi 6728fi
6360 6729
6361 LDFLAGS=$ac_save_LDFLAGS 6730 LDFLAGS=$ac_save_LDFLAGS
6362 6731
6364 6733
6365 6734
6366if test -n "$ac_tool_prefix"; then 6735if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6736 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6737set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; } 6739printf %s "checking for $ac_word... " >&6; }
6371if ${ac_cv_path_PKG_CONFIG+:} false; then : 6740if test ${ac_cv_path_PKG_CONFIG+y}
6372 $as_echo_n "(cached) " >&6 6741then :
6373else 6742 printf %s "(cached) " >&6
6743else $as_nop
6374 case $PKG_CONFIG in 6744 case $PKG_CONFIG in
6375 [\\/]* | ?:[\\/]*) 6745 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6377 ;; 6747 ;;
6378 *) 6748 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH 6750for as_dir in $PATH
6381do 6751do
6382 IFS=$as_save_IFS 6752 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=. 6753 case $as_dir in #(((
6754 '') as_dir=./ ;;
6755 */) ;;
6756 *) as_dir=$as_dir/ ;;
6757 esac
6384 for ac_exec_ext in '' $ac_executable_extensions; do 6758 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6760 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6388 break 2 6762 break 2
6389 fi 6763 fi
6390done 6764done
6391 done 6765 done
6392IFS=$as_save_IFS 6766IFS=$as_save_IFS
6394 ;; 6768 ;;
6395esac 6769esac
6396fi 6770fi
6397PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6771PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6398if test -n "$PKG_CONFIG"; then 6772if test -n "$PKG_CONFIG"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6400$as_echo "$PKG_CONFIG" >&6; } 6774printf "%s\n" "$PKG_CONFIG" >&6; }
6401else 6775else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; } 6777printf "%s\n" "no" >&6; }
6404fi 6778fi
6405 6779
6406 6780
6407fi 6781fi
6408if test -z "$ac_cv_path_PKG_CONFIG"; then 6782if test -z "$ac_cv_path_PKG_CONFIG"; then
6409 ac_pt_PKG_CONFIG=$PKG_CONFIG 6783 ac_pt_PKG_CONFIG=$PKG_CONFIG
6410 # Extract the first word of "pkg-config", so it can be a program name with args. 6784 # Extract the first word of "pkg-config", so it can be a program name with args.
6411set dummy pkg-config; ac_word=$2 6785set dummy pkg-config; ac_word=$2
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; } 6787printf %s "checking for $ac_word... " >&6; }
6414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 6788if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6415 $as_echo_n "(cached) " >&6 6789then :
6416else 6790 printf %s "(cached) " >&6
6791else $as_nop
6417 case $ac_pt_PKG_CONFIG in 6792 case $ac_pt_PKG_CONFIG in
6418 [\\/]* | ?:[\\/]*) 6793 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6794 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6420 ;; 6795 ;;
6421 *) 6796 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH 6798for as_dir in $PATH
6424do 6799do
6425 IFS=$as_save_IFS 6800 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=. 6801 case $as_dir in #(((
6802 '') as_dir=./ ;;
6803 */) ;;
6804 *) as_dir=$as_dir/ ;;
6805 esac
6427 for ac_exec_ext in '' $ac_executable_extensions; do 6806 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6808 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 break 2 6810 break 2
6432 fi 6811 fi
6433done 6812done
6434 done 6813 done
6435IFS=$as_save_IFS 6814IFS=$as_save_IFS
6437 ;; 6816 ;;
6438esac 6817esac
6439fi 6818fi
6440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6819ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6441if test -n "$ac_pt_PKG_CONFIG"; then 6820if test -n "$ac_pt_PKG_CONFIG"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6443$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6822printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6444else 6823else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; } 6825printf "%s\n" "no" >&6; }
6447fi 6826fi
6448 6827
6449 if test "x$ac_pt_PKG_CONFIG" = x; then 6828 if test "x$ac_pt_PKG_CONFIG" = x; then
6450 PKG_CONFIG="no" 6829 PKG_CONFIG="no"
6451 else 6830 else
6452 case $cross_compiling:$ac_tool_warned in 6831 case $cross_compiling:$ac_tool_warned in
6453yes:) 6832yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;; 6835ac_tool_warned=yes ;;
6457esac 6836esac
6458 PKG_CONFIG=$ac_pt_PKG_CONFIG 6837 PKG_CONFIG=$ac_pt_PKG_CONFIG
6459 fi 6838 fi
6460else 6839else
6461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6462fi 6841fi
6463 6842
6464 6843
6844
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty" >&5
6846printf %s "checking for libptytty... " >&6; }
6847 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then
6848 PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`"
6849 PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`"
6850
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6852printf "%s\n" "ok" >&6; }
6853 :
6854 else
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856printf "%s\n" "no" >&6; }
6857
6858 as_fn_error $? "unable to find libptytty" "$LINENO" 5
6859
6860 fi
6861
6862
6863
6864
6865
6465image_lib=none 6866image_lib=none
6466 6867
6467PIXBUF_CFLAGS= 6868PIXBUF_CFLAGS=
6468PIXBUF_LIBS= 6869PIXBUF_LIBS=
6469 6870
6470if test x$support_pixbuf = xyes; then 6871if test x$support_pixbuf = xyes; then
6471 6872
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
6473$as_echo_n "checking for gdk-pixbuf-2.0... " >&6; } 6874printf %s "checking for gdk-pixbuf-2.0... " >&6; }
6474 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then 6875 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6475 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" 6876 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
6476 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" 6877 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
6477 6878
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6479$as_echo "ok" >&6; } 6880printf "%s\n" "ok" >&6; }
6480 6881
6481 image_lib=gdk-pixbuf 6882 image_lib=gdk-pixbuf
6482 6883
6483$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h 6884printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h
6484 6885
6485 6886
6486 else 6887 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; } 6889printf "%s\n" "no" >&6; }
6489 : 6890 :
6490 fi 6891 fi
6491 6892
6492fi 6893fi
6493 6894
6497STARTUP_NOTIFICATION_CFLAGS= 6898STARTUP_NOTIFICATION_CFLAGS=
6498STARTUP_NOTIFICATION_LIBS= 6899STARTUP_NOTIFICATION_LIBS=
6499 6900
6500if test x$support_startup_notification = xyes; then 6901if test x$support_startup_notification = xyes; then
6501 6902
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6503$as_echo_n "checking for libstartup-notification-1.0... " >&6; } 6904printf %s "checking for libstartup-notification-1.0... " >&6; }
6504 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 6905 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6505 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" 6906 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
6506 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" 6907 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
6507 6908
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6509$as_echo "ok" >&6; } 6910printf "%s\n" "ok" >&6; }
6510 6911
6511 6912
6512$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h 6913printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6513 6914
6514 6915
6515 else 6916 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; } 6918printf "%s\n" "no" >&6; }
6518 : 6919 :
6519 fi 6920 fi
6520 6921
6521fi 6922fi
6522 6923
6523 6924
6524 6925
6525 6926
6526if test x$support_frills = xyes; then 6927if test x$support_frills = xyes; then
6527 6928
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6529$as_echo_n "checking for xmu... " >&6; } 6930printf %s "checking for xmu... " >&6; }
6530 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then 6931 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6531 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" 6932 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
6532 XMU_LIBS="`$PKG_CONFIG --libs xmu`" 6933 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
6533 6934
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6535$as_echo "ok" >&6; } 6936printf "%s\n" "ok" >&6; }
6536 6937
6537 X_LIBS="$XMU_LIBS $X_LIBS" 6938 X_LIBS="$XMU_LIBS $X_LIBS"
6538 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" 6939 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
6539 6940
6540$as_echo "#define HAVE_XMU 1" >>confdefs.h 6941printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h
6541 6942
6542 6943
6543 else 6944 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; } 6946printf "%s\n" "no" >&6; }
6546 : 6947 :
6547 fi 6948 fi
6548 6949
6549fi 6950fi
6550 6951
6551for ac_header in \ 6952ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
6552 sys/byteorder.h \ 6953if test "x$ac_cv_header_sys_byteorder_h" = xyes
6553 sys/ioctl.h \ 6954then :
6554 sys/sockio.h \ 6955 printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
6555 sys/strredir.h \
6556 stdint.h \
6557 wchar.h \
6558 6956
6559do : 6957fi
6560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6958ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6959if test "x$ac_cv_header_sys_ioctl_h" = xyes
6563 cat >>confdefs.h <<_ACEOF 6960then :
6564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6961 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
6565_ACEOF
6566 6962
6567fi 6963fi
6964ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
6965if test "x$ac_cv_header_sys_sockio_h" = xyes
6966then :
6967 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
6568 6968
6569done 6969fi
6970ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default"
6971if test "x$ac_cv_header_sys_strredir_h" = xyes
6972then :
6973 printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h
6570 6974
6975fi
6976ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6977if test "x$ac_cv_header_stdint_h" = xyes
6978then :
6979 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6571 6980
6981fi
6982ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6983if test "x$ac_cv_header_wchar_h" = xyes
6984then :
6985 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
6986
6987fi
6988
6989
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6573$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } 6991printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6574if ${rxvt_cv_xlib_illegal_access+:} false; then : 6992if test ${rxvt_cv_xlib_illegal_access+y}
6575 $as_echo_n "(cached) " >&6 6993then :
6576else 6994 printf %s "(cached) " >&6
6995else $as_nop
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h. */ 6997/* end confdefs.h. */
6579 6998
6580#define XLIB_ILLEGAL_ACCESS 6999#define XLIB_ILLEGAL_ACCESS
6581#include <X11/Xlib.h> 7000#include <X11/Xlib.h>
6582 7001
6583int 7002int
6584main () 7003main (void)
6585{ 7004{
6586 7005
6587 Display *dpy; 7006 Display *dpy;
6588 dpy->xdefaults = (char *)0; 7007 dpy->xdefaults = (char *)0;
6589 7008
6590 ; 7009 ;
6591 return 0; 7010 return 0;
6592} 7011}
6593_ACEOF 7012_ACEOF
6594if ac_fn_cxx_try_compile "$LINENO"; then : 7013if ac_fn_cxx_try_compile "$LINENO"
7014then :
6595 rxvt_cv_xlib_illegal_access=yes 7015 rxvt_cv_xlib_illegal_access=yes
7016else $as_nop
7017 rxvt_cv_xlib_illegal_access=no
7018
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7021fi
7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
7023printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; }
7024if test x$rxvt_cv_xlib_illegal_access = xyes; then
7025
7026printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
7027
7028fi
7029
7030ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7031if test "x$ac_cv_type_mode_t" = xyes
7032then :
7033
7034else $as_nop
7035
7036printf "%s\n" "#define mode_t int" >>confdefs.h
7037
7038fi
7039
7040
7041 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7042"
7043if test "x$ac_cv_type_pid_t" = xyes
7044then :
7045
7046else $as_nop
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h. */
7049
7050 #if defined _WIN64 && !defined __CYGWIN__
7051 LLP64
7052 #endif
7053
7054int
7055main (void)
7056{
7057
7058 ;
7059 return 0;
7060}
7061
7062_ACEOF
7063if ac_fn_cxx_try_compile "$LINENO"
7064then :
7065 ac_pid_type='int'
7066else $as_nop
7067 ac_pid_type='__int64'
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7070
7071printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7072
7073
7074fi
7075
7076
7077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7078printf %s "checking for grep that handles long lines and -e... " >&6; }
7079if test ${ac_cv_path_GREP+y}
7080then :
7081 printf %s "(cached) " >&6
7082else $as_nop
7083 if test -z "$GREP"; then
7084 ac_path_GREP_found=false
7085 # Loop through the user's path and test for each of PROGNAME-LIST
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7088do
7089 IFS=$as_save_IFS
7090 case $as_dir in #(((
7091 '') as_dir=./ ;;
7092 */) ;;
7093 *) as_dir=$as_dir/ ;;
7094 esac
7095 for ac_prog in grep ggrep
7096 do
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7099 as_fn_executable_p "$ac_path_GREP" || continue
7100# Check for GNU ac_path_GREP and select it if it is found.
7101 # Check for GNU $ac_path_GREP
7102case `"$ac_path_GREP" --version 2>&1` in
7103*GNU*)
7104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7105*)
7106 ac_count=0
7107 printf %s 0123456789 >"conftest.in"
7108 while :
7109 do
7110 cat "conftest.in" "conftest.in" >"conftest.tmp"
7111 mv "conftest.tmp" "conftest.in"
7112 cp "conftest.in" "conftest.nl"
7113 printf "%s\n" 'GREP' >> "conftest.nl"
7114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7116 as_fn_arith $ac_count + 1 && ac_count=$as_val
7117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7118 # Best one so far, save it but keep looking for a better one
7119 ac_cv_path_GREP="$ac_path_GREP"
7120 ac_path_GREP_max=$ac_count
7121 fi
7122 # 10*(2^10) chars as input seems more than enough
7123 test $ac_count -gt 10 && break
7124 done
7125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7126esac
7127
7128 $ac_path_GREP_found && break 3
7129 done
7130 done
7131 done
7132IFS=$as_save_IFS
7133 if test -z "$ac_cv_path_GREP"; then
7134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7135 fi
6596else 7136else
6597 rxvt_cv_xlib_illegal_access=no 7137 ac_cv_path_GREP=$GREP
6598
6599fi 7138fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6603$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6604if test x$rxvt_cv_xlib_illegal_access = xyes; then
6605 7139
6606$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6607
6608fi 7140fi
7141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7142printf "%s\n" "$ac_cv_path_GREP" >&6; }
7143 GREP="$ac_cv_path_GREP"
6609 7144
6610ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6611if test "x$ac_cv_type_mode_t" = xyes; then :
6612 7145
7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7147printf %s "checking for egrep... " >&6; }
7148if test ${ac_cv_path_EGREP+y}
7149then :
7150 printf %s "(cached) " >&6
7151else $as_nop
7152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7153 then ac_cv_path_EGREP="$GREP -E"
7154 else
7155 if test -z "$EGREP"; then
7156 ac_path_EGREP_found=false
7157 # Loop through the user's path and test for each of PROGNAME-LIST
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7160do
7161 IFS=$as_save_IFS
7162 case $as_dir in #(((
7163 '') as_dir=./ ;;
7164 */) ;;
7165 *) as_dir=$as_dir/ ;;
7166 esac
7167 for ac_prog in egrep
7168 do
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7171 as_fn_executable_p "$ac_path_EGREP" || continue
7172# Check for GNU ac_path_EGREP and select it if it is found.
7173 # Check for GNU $ac_path_EGREP
7174case `"$ac_path_EGREP" --version 2>&1` in
7175*GNU*)
7176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7177*)
7178 ac_count=0
7179 printf %s 0123456789 >"conftest.in"
7180 while :
7181 do
7182 cat "conftest.in" "conftest.in" >"conftest.tmp"
7183 mv "conftest.tmp" "conftest.in"
7184 cp "conftest.in" "conftest.nl"
7185 printf "%s\n" 'EGREP' >> "conftest.nl"
7186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7188 as_fn_arith $ac_count + 1 && ac_count=$as_val
7189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7190 # Best one so far, save it but keep looking for a better one
7191 ac_cv_path_EGREP="$ac_path_EGREP"
7192 ac_path_EGREP_max=$ac_count
7193 fi
7194 # 10*(2^10) chars as input seems more than enough
7195 test $ac_count -gt 10 && break
7196 done
7197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7198esac
7199
7200 $ac_path_EGREP_found && break 3
7201 done
7202 done
7203 done
7204IFS=$as_save_IFS
7205 if test -z "$ac_cv_path_EGREP"; then
7206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7207 fi
6613else 7208else
6614 7209 ac_cv_path_EGREP=$EGREP
6615cat >>confdefs.h <<_ACEOF
6616#define mode_t int
6617_ACEOF
6618
6619fi 7210fi
6620 7211
6621ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7212 fi
6622if test "x$ac_cv_type_pid_t" = xyes; then :
6623
6624else
6625
6626cat >>confdefs.h <<_ACEOF
6627#define pid_t int
6628_ACEOF
6629
6630fi 7213fi
7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7215printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7216 EGREP="$ac_cv_path_EGREP"
6631 7217
7218
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6633$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7220printf %s "checking for uid_t in sys/types.h... " >&6; }
6634if ${ac_cv_type_uid_t+:} false; then : 7221if test ${ac_cv_type_uid_t+y}
6635 $as_echo_n "(cached) " >&6 7222then :
6636else 7223 printf %s "(cached) " >&6
7224else $as_nop
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */ 7226/* end confdefs.h. */
6639#include <sys/types.h> 7227#include <sys/types.h>
6640 7228
6641_ACEOF 7229_ACEOF
6642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6643 $EGREP "uid_t" >/dev/null 2>&1; then : 7231 $EGREP "uid_t" >/dev/null 2>&1
7232then :
6644 ac_cv_type_uid_t=yes 7233 ac_cv_type_uid_t=yes
6645else 7234else $as_nop
6646 ac_cv_type_uid_t=no 7235 ac_cv_type_uid_t=no
6647fi 7236fi
6648rm -f conftest* 7237rm -rf conftest*
6649 7238
6650fi 7239fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6652$as_echo "$ac_cv_type_uid_t" >&6; } 7241printf "%s\n" "$ac_cv_type_uid_t" >&6; }
6653if test $ac_cv_type_uid_t = no; then 7242if test $ac_cv_type_uid_t = no; then
6654 7243
6655$as_echo "#define uid_t int" >>confdefs.h 7244printf "%s\n" "#define uid_t int" >>confdefs.h
6656 7245
6657 7246
6658$as_echo "#define gid_t int" >>confdefs.h 7247printf "%s\n" "#define gid_t int" >>confdefs.h
6659 7248
6660fi 7249fi
6661 7250
6662ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 7251ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6663case $ac_cv_c_int16_t in #( 7252case $ac_cv_c_int16_t in #(
6664 no|yes) ;; #( 7253 no|yes) ;; #(
6665 *) 7254 *)
6666 7255
6667cat >>confdefs.h <<_ACEOF 7256printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
6668#define int16_t $ac_cv_c_int16_t
6669_ACEOF
6670;; 7257;;
6671esac 7258esac
6672 7259
6673ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 7260ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6674case $ac_cv_c_uint16_t in #( 7261case $ac_cv_c_uint16_t in #(
6675 no|yes) ;; #( 7262 no|yes) ;; #(
6676 *) 7263 *)
6677 7264
6678 7265
6679cat >>confdefs.h <<_ACEOF 7266printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
6680#define uint16_t $ac_cv_c_uint16_t
6681_ACEOF
6682;; 7267;;
6683 esac 7268 esac
6684 7269
6685ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 7270ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6686case $ac_cv_c_int32_t in #( 7271case $ac_cv_c_int32_t in #(
6687 no|yes) ;; #( 7272 no|yes) ;; #(
6688 *) 7273 *)
6689 7274
6690cat >>confdefs.h <<_ACEOF 7275printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
6691#define int32_t $ac_cv_c_int32_t
6692_ACEOF
6693;; 7276;;
6694esac 7277esac
6695 7278
6696ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 7279ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6697case $ac_cv_c_uint32_t in #( 7280case $ac_cv_c_uint32_t in #(
6698 no|yes) ;; #( 7281 no|yes) ;; #(
6699 *) 7282 *)
6700 7283
6701$as_echo "#define _UINT32_T 1" >>confdefs.h 7284printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
6702 7285
6703 7286
6704cat >>confdefs.h <<_ACEOF 7287printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
6705#define uint32_t $ac_cv_c_uint32_t
6706_ACEOF
6707;; 7288;;
6708 esac 7289 esac
6709 7290
6710 7291
6711for ac_func in unsetenv
6712do :
6713 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 7292ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6714if test "x$ac_cv_func_unsetenv" = xyes; then : 7293if test "x$ac_cv_func_unsetenv" = xyes
6715 cat >>confdefs.h <<_ACEOF 7294then :
6716#define HAVE_UNSETENV 1 7295 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6717_ACEOF
6718 7296
6719fi
6720done
6721
6722
6723
6724support_utmp=yes
6725support_wtmp=yes
6726support_lastlog=yes
6727
6728# Check whether --enable-utmp was given.
6729if test "${enable_utmp+set}" = set; then :
6730 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6731 support_utmp=$enableval
6732 fi
6733fi
6734
6735
6736# Check whether --enable-wtmp was given.
6737if test "${enable_wtmp+set}" = set; then :
6738 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6739 support_wtmp=$enableval
6740 fi
6741fi
6742
6743
6744# Check whether --enable-lastlog was given.
6745if test "${enable_lastlog+set}" = set; then :
6746 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6747 support_lastlog=$enableval
6748 fi
6749fi
6750
6751
6752if test x$support_utmp = xyes; then
6753
6754$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6755
6756fi
6757if test x$support_wtmp = xyes; then
6758
6759$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6760
6761fi
6762if test x$support_lastlog = xyes; then
6763
6764$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6765
6766fi
6767
6768for ac_func in \
6769 updwtmp \
6770 updwtmpx \
6771 updlastlogx \
6772
6773do :
6774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6775ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6776if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6777 cat >>confdefs.h <<_ACEOF
6778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6779_ACEOF
6780
6781fi
6782done
6783
6784
6785for ac_header in lastlog.h
6786do :
6787 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6788if test "x$ac_cv_header_lastlog_h" = xyes; then :
6789 cat >>confdefs.h <<_ACEOF
6790#define HAVE_LASTLOG_H 1
6791_ACEOF
6792
6793fi
6794
6795done
6796
6797
6798case $host in
6799 *-*-solaris*)
6800
6801$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6802
6803 ;;
6804esac
6805
6806
6807for ac_header in utmp.h
6808do :
6809 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6810if test "x$ac_cv_header_utmp_h" = xyes; then :
6811 cat >>confdefs.h <<_ACEOF
6812#define HAVE_UTMP_H 1
6813_ACEOF
6814
6815ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6816#include <sys/types.h>
6817#include <utmp.h>
6818
6819"
6820if test "x$ac_cv_type_struct_utmp" = xyes; then :
6821
6822cat >>confdefs.h <<_ACEOF
6823#define HAVE_STRUCT_UTMP 1
6824_ACEOF
6825
6826
6827fi
6828
6829
6830ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6831#include <sys/types.h>
6832#include <utmp.h>
6833
6834"
6835if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6836
6837$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6838
6839fi
6840
6841
6842ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6843#include <sys/types.h>
6844#include <utmp.h>
6845
6846"
6847if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
6848
6849$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6850
6851fi
6852
6853
6854fi
6855
6856done
6857
6858
6859for ac_header in utmpx.h
6860do :
6861 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6862if test "x$ac_cv_header_utmpx_h" = xyes; then :
6863 cat >>confdefs.h <<_ACEOF
6864#define HAVE_UTMPX_H 1
6865_ACEOF
6866
6867ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6868#include <sys/types.h>
6869#include <utmpx.h>
6870
6871"
6872if test "x$ac_cv_type_struct_utmpx" = xyes; then :
6873
6874cat >>confdefs.h <<_ACEOF
6875#define HAVE_STRUCT_UTMPX 1
6876_ACEOF
6877
6878
6879fi
6880
6881
6882ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6883#include <sys/types.h>
6884#include <utmpx.h>
6885
6886"
6887if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6888
6889$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6890
6891fi
6892
6893
6894fi
6895
6896done
6897
6898ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6899#include <sys/types.h>
6900#include <utmp.h>
6901#ifdef HAVE_LASTLOG_H
6902#include <lastlog.h>
6903#endif
6904
6905"
6906if test "x$ac_cv_type_struct_lastlog" = xyes; then :
6907
6908cat >>confdefs.h <<_ACEOF
6909#define HAVE_STRUCT_LASTLOG 1
6910_ACEOF
6911
6912
6913fi
6914
6915
6916ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6917#include <sys/types.h>
6918#include <utmpx.h>
6919#ifdef HAVE_LASTLOG_H
6920#include <lastlog.h>
6921#endif
6922
6923"
6924if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
6925
6926cat >>confdefs.h <<_ACEOF
6927#define HAVE_STRUCT_LASTLOGX 1
6928_ACEOF
6929
6930
6931fi
6932
6933
6934
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6936$as_echo_n "checking for a fallback location of utmp... " >&6; }
6937if ${pt_cv_path_utmp+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939else
6940
6941if test "$cross_compiling" != yes; then
6942 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6943 if test -f "$file"; then
6944 pt_cv_path_utmp=$file
6945 break
6946 fi
6947 done
6948fi
6949fi
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6951$as_echo "$pt_cv_path_utmp" >&6; }
6952if test x$pt_cv_path_utmp != x; then
6953
6954cat >>confdefs.h <<_ACEOF
6955#define PT_UTMP_FILE "$pt_cv_path_utmp"
6956_ACEOF
6957
6958elif test "$cross_compiling" = yes; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6960$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6961fi
6962
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6965$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6966if ${pt_cv_path_wtmp+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968else
6969
6970if test "$cross_compiling" != yes; then
6971 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6972 if test -f "$file"; then
6973 pt_cv_path_wtmp=$file
6974 break
6975 fi
6976 done
6977fi
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6980$as_echo "$pt_cv_path_wtmp" >&6; }
6981if test x$pt_cv_path_wtmp != x; then
6982
6983cat >>confdefs.h <<_ACEOF
6984#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6985_ACEOF
6986
6987elif test "$cross_compiling" = yes; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6989$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
6990fi
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
6993$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6994if ${pt_cv_path_wtmpx+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997
6998if test "$cross_compiling" != yes; then
6999 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7000 if test -f "$file"; then
7001 pt_cv_path_wtmpx=$file
7002 break
7003 fi
7004 done
7005fi
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7008$as_echo "$pt_cv_path_wtmpx" >&6; }
7009if test x$pt_cv_path_wtmpx != x; then
7010
7011cat >>confdefs.h <<_ACEOF
7012#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7013_ACEOF
7014
7015elif test "$cross_compiling" = yes; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7017$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7018fi
7019
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7021$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7022if ${pt_cv_path_lastlog+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024else
7025
7026if test "$cross_compiling" != yes; then
7027 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7028 if test -f "$file"; then
7029 pt_cv_path_lastlog=$file
7030 break
7031 fi
7032 done
7033fi
7034fi
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7036$as_echo "$pt_cv_path_lastlog" >&6; }
7037if test x$pt_cv_path_lastlog != x; then
7038
7039cat >>confdefs.h <<_ACEOF
7040#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7041_ACEOF
7042
7043elif test "$cross_compiling" = yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7045$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7046fi
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7049$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7050if ${pt_cv_path_lastlogx+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053
7054if test "$cross_compiling" != yes; then
7055 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7056 if test -f "$file"; then
7057 pt_cv_path_lastlogx=$file
7058 break
7059 fi
7060 done
7061fi
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7064$as_echo "$pt_cv_path_lastlogx" >&6; }
7065if test x$pt_cv_path_lastlogx != x; then
7066
7067cat >>confdefs.h <<_ACEOF
7068#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7069_ACEOF
7070
7071elif test "$cross_compiling" = yes; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7073$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7074fi 7297fi
7075 7298
7076 7299
7077 7300
7078 7301
7079save_LIBS=$LIBS 7302save_LIBS=$LIBS
7080save_CXXFLAGS=$CXXFLAGS 7303save_CXXFLAGS=$CXXFLAGS
7081CXXFLAGS="$CXXFLAGS $X_CFLAGS" 7304CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7082LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7305LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7083if test x$support_xim = xyes; then 7306if test x$support_xim = xyes; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7085$as_echo_n "checking for working Xlocale... " >&6; } 7308printf %s "checking for working Xlocale... " >&6; }
7086if ${rxvt_cv_func_xlocale+:} false; then : 7309if test ${rxvt_cv_func_xlocale+y}
7087 $as_echo_n "(cached) " >&6 7310then :
7088else 7311 printf %s "(cached) " >&6
7312else $as_nop
7089 if test "$cross_compiling" = yes; then : 7313 if test "$cross_compiling" = yes
7314then :
7090 : 7315 :
7091else 7316else $as_nop
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h. */ 7318/* end confdefs.h. */
7094 7319
7095 #include <X11/Xlib.h> 7320 #include <X11/Xlib.h>
7096 #include <stdlib.h> 7321 #include <stdlib.h>
7101 else 7326 else
7102 exit (1); 7327 exit (1);
7103 } 7328 }
7104 7329
7105_ACEOF 7330_ACEOF
7106if ac_fn_cxx_try_run "$LINENO"; then : 7331if ac_fn_cxx_try_run "$LINENO"
7332then :
7107 rxvt_cv_func_xlocale=yes 7333 rxvt_cv_func_xlocale=yes
7108else 7334else $as_nop
7109 rxvt_cv_func_xlocale=no 7335 rxvt_cv_func_xlocale=no
7110fi 7336fi
7111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7112 conftest.$ac_objext conftest.beam conftest.$ac_ext 7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7113fi 7339fi
7114 7340
7115fi 7341fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7117$as_echo "$rxvt_cv_func_xlocale" >&6; } 7343printf "%s\n" "$rxvt_cv_func_xlocale" >&6; }
7118 if test x$rxvt_cv_func_xlocale = xyes; then 7344 if test x$rxvt_cv_func_xlocale = xyes; then
7119 7345
7120$as_echo "#define USE_XIM 1" >>confdefs.h 7346printf "%s\n" "#define USE_XIM 1" >>confdefs.h
7121 7347
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7123$as_echo_n "checking for broken XIM callback... " >&6; } 7349printf %s "checking for broken XIM callback... " >&6; }
7124if ${rxvt_cv_broken_ximcb+:} false; then : 7350if test ${rxvt_cv_broken_ximcb+y}
7125 $as_echo_n "(cached) " >&6 7351then :
7126else 7352 printf %s "(cached) " >&6
7353else $as_nop
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */ 7355/* end confdefs.h. */
7129 7356
7130 #include <X11/Xlib.h> 7357 #include <X11/Xlib.h>
7131 7358
7135 XIMCallback cb; 7362 XIMCallback cb;
7136 cb.callback = im_destroy_cb; 7363 cb.callback = im_destroy_cb;
7137 } 7364 }
7138 7365
7139_ACEOF 7366_ACEOF
7140if ac_fn_cxx_try_compile "$LINENO"; then : 7367if ac_fn_cxx_try_compile "$LINENO"
7368then :
7141 rxvt_cv_broken_ximcb=yes 7369 rxvt_cv_broken_ximcb=yes
7142else 7370else $as_nop
7143 rxvt_cv_broken_ximcb=no 7371 rxvt_cv_broken_ximcb=no
7144fi 7372fi
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7146fi 7374fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7148$as_echo "$rxvt_cv_broken_ximcb" >&6; } 7376printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; }
7149 7377
7150 if test x$rxvt_cv_broken_ximcb = xyes; then 7378 if test x$rxvt_cv_broken_ximcb = xyes; then
7151 7379
7152$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h 7380printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7153 7381
7154 fi 7382 fi
7155 fi 7383 fi
7156fi 7384fi
7157 7385
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7159$as_echo_n "checking for working X setlocale... " >&6; } 7387printf %s "checking for working X setlocale... " >&6; }
7160if ${rxvt_cv_func_xsetlocale+:} false; then : 7388if test ${rxvt_cv_func_xsetlocale+y}
7161 $as_echo_n "(cached) " >&6 7389then :
7162else 7390 printf %s "(cached) " >&6
7391else $as_nop
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h. */ 7393/* end confdefs.h. */
7165#define X_LOCALE 1 7394#define X_LOCALE 1
7166#include <X11/Xlocale.h> 7395#include <X11/Xlocale.h>
7167int 7396int
7168main () 7397main (void)
7169{ 7398{
7170setlocale(LC_CTYPE, ""); 7399setlocale(LC_CTYPE, "");
7171 ; 7400 ;
7172 return 0; 7401 return 0;
7173} 7402}
7174_ACEOF 7403_ACEOF
7175if ac_fn_cxx_try_link "$LINENO"; then : 7404if ac_fn_cxx_try_link "$LINENO"
7405then :
7176 rxvt_cv_func_xsetlocale=yes 7406 rxvt_cv_func_xsetlocale=yes
7177else 7407else $as_nop
7178 rxvt_cv_func_xsetlocale=no 7408 rxvt_cv_func_xsetlocale=no
7179fi 7409fi
7180rm -f core conftest.err conftest.$ac_objext \ 7410rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181 conftest$ac_exeext conftest.$ac_ext 7411 conftest$ac_exeext conftest.$ac_ext
7182fi 7412fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 7413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7184$as_echo "$rxvt_cv_func_xsetlocale" >&6; } 7414printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; }
7185if test x$rxvt_cv_func_xsetlocale = xyes; then 7415if test x$rxvt_cv_func_xsetlocale = xyes; then
7186 7416
7187$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h 7417printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h
7188 7418
7189fi 7419fi
7190LIBS=$save_LIBS 7420LIBS=$save_LIBS
7191CXXFLAGS=$save_CXXFLAGS 7421CXXFLAGS=$save_CXXFLAGS
7192 7422
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7194$as_echo_n "checking for working nl_langinfo... " >&6; } 7424printf %s "checking for working nl_langinfo... " >&6; }
7195if ${rxvt_cv_func_nl_langinfo+:} false; then : 7425if test ${rxvt_cv_func_nl_langinfo+y}
7196 $as_echo_n "(cached) " >&6 7426then :
7197else 7427 printf %s "(cached) " >&6
7428else $as_nop
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h. */ 7430/* end confdefs.h. */
7200#include <langinfo.h> 7431#include <langinfo.h>
7201int 7432int
7202main () 7433main (void)
7203{ 7434{
7204nl_langinfo(CODESET); 7435nl_langinfo(CODESET);
7205 ; 7436 ;
7206 return 0; 7437 return 0;
7207} 7438}
7208_ACEOF 7439_ACEOF
7209if ac_fn_cxx_try_link "$LINENO"; then : 7440if ac_fn_cxx_try_link "$LINENO"
7441then :
7210 rxvt_cv_func_nl_langinfo=yes 7442 rxvt_cv_func_nl_langinfo=yes
7211else 7443else $as_nop
7212 rxvt_cv_func_nl_langinfo=no 7444 rxvt_cv_func_nl_langinfo=no
7213fi 7445fi
7214rm -f core conftest.err conftest.$ac_objext \ 7446rm -f core conftest.err conftest.$ac_objext conftest.beam \
7215 conftest$ac_exeext conftest.$ac_ext 7447 conftest$ac_exeext conftest.$ac_ext
7216fi 7448fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7218$as_echo "$rxvt_cv_func_nl_langinfo" >&6; } 7450printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; }
7219if test x$rxvt_cv_func_nl_langinfo = xyes; then 7451if test x$rxvt_cv_func_nl_langinfo = xyes; then
7220 7452
7221$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7453printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7222
7223fi
7224
7225
7226
7227case $host in
7228 *-*-solaris*)
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h. */
7231
7232#if __STDC_VERSION__ >= 199901L
7233error
7234#endif
7235
7236int
7237main ()
7238{
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_compile "$LINENO"; then :
7245 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7246
7247else
7248 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
7249
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7253$as_echo_n "checking for library containing sendmsg... " >&6; }
7254if ${ac_cv_search_sendmsg+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256else
7257 ac_func_search_save_LIBS=$LIBS
7258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h. */
7260
7261/* Override any GCC internal prototype to avoid an error.
7262 Use char because int might match the return type of a GCC
7263 builtin and then its argument prototype would still apply. */
7264#ifdef __cplusplus
7265extern "C"
7266#endif
7267char sendmsg ();
7268int
7269main ()
7270{
7271return sendmsg ();
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276for ac_lib in '' socket; do
7277 if test -z "$ac_lib"; then
7278 ac_res="none required"
7279 else
7280 ac_res=-l$ac_lib
7281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7282 fi
7283 if ac_fn_cxx_try_link "$LINENO"; then :
7284 ac_cv_search_sendmsg=$ac_res
7285fi
7286rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext
7288 if ${ac_cv_search_sendmsg+:} false; then :
7289 break
7290fi
7291done
7292if ${ac_cv_search_sendmsg+:} false; then :
7293
7294else
7295 ac_cv_search_sendmsg=no
7296fi
7297rm conftest.$ac_ext
7298LIBS=$ac_func_search_save_LIBS
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7301$as_echo "$ac_cv_search_sendmsg" >&6; }
7302ac_res=$ac_cv_search_sendmsg
7303if test "$ac_res" != no; then :
7304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7305
7306fi
7307
7308 ;;
7309esac
7310
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7312$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7313if ${pt_cv_can_pass_fds+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h. */
7318
7319#include <stddef.h> // broken bsds (is that redundant?) need this
7320#include <sys/types.h>
7321#include <sys/socket.h>
7322#include <sys/uio.h>
7323
7324int
7325main ()
7326{
7327
7328{
7329 msghdr msg;
7330 iovec iov;
7331 char buf [100];
7332 char data = 0;
7333
7334 iov.iov_base = &data;
7335 iov.iov_len = 1;
7336
7337 msg.msg_iov = &iov;
7338 msg.msg_iovlen = 1;
7339 msg.msg_control = buf;
7340 msg.msg_controllen = sizeof buf;
7341
7342 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7343 cmsg->cmsg_level = SOL_SOCKET;
7344 cmsg->cmsg_type = SCM_RIGHTS;
7345 cmsg->cmsg_len = 100;
7346
7347 *(int *)CMSG_DATA (cmsg) = 5;
7348
7349 return sendmsg (3, &msg, 0);
7350}
7351
7352 ;
7353 return 0;
7354}
7355_ACEOF
7356if ac_fn_cxx_try_link "$LINENO"; then :
7357 pt_cv_can_pass_fds=yes
7358else
7359 pt_cv_can_pass_fds=no
7360fi
7361rm -f core conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363fi
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7365$as_echo "$pt_cv_can_pass_fds" >&6; }
7366if test x$pt_cv_can_pass_fds = xyes; then
7367
7368$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7369
7370else
7371 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7372fi
7373
7374
7375
7376for ac_header in \
7377 pty.h \
7378 util.h \
7379 libutil.h \
7380 sys/ioctl.h \
7381 stropts.h \
7382
7383do :
7384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7387 cat >>confdefs.h <<_ACEOF
7388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7389_ACEOF
7390
7391fi
7392
7393done
7394
7395
7396for ac_func in \
7397 revoke \
7398 _getpty \
7399 getpt \
7400 posix_openpt \
7401 isastream \
7402 setuid \
7403 seteuid \
7404 setreuid \
7405 setresuid \
7406
7407do :
7408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7409ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7410if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7411 cat >>confdefs.h <<_ACEOF
7412#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7413_ACEOF
7414
7415fi
7416done
7417
7418
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7420$as_echo_n "checking for UNIX98 ptys... " >&6; }
7421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422/* end confdefs.h. */
7423#include <stdlib.h>
7424int
7425main ()
7426{
7427grantpt(0);unlockpt(0);ptsname(0);
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432if ac_fn_cxx_try_link "$LINENO"; then :
7433 unix98_pty=yes
7434
7435$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438$as_echo "yes" >&6; }
7439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443rm -f core conftest.err conftest.$ac_objext \
7444 conftest$ac_exeext conftest.$ac_ext
7445
7446if test -z "$unix98_pty"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7448$as_echo_n "checking for library containing openpty... " >&6; }
7449if ${ac_cv_search_openpty+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451else
7452 ac_func_search_save_LIBS=$LIBS
7453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h. */
7455
7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462char openpty ();
7463int
7464main ()
7465{
7466return openpty ();
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471for ac_lib in '' util; do
7472 if test -z "$ac_lib"; then
7473 ac_res="none required"
7474 else
7475 ac_res=-l$ac_lib
7476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7477 fi
7478 if ac_fn_cxx_try_link "$LINENO"; then :
7479 ac_cv_search_openpty=$ac_res
7480fi
7481rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext
7483 if ${ac_cv_search_openpty+:} false; then :
7484 break
7485fi
7486done
7487if ${ac_cv_search_openpty+:} false; then :
7488
7489else
7490 ac_cv_search_openpty=no
7491fi
7492rm conftest.$ac_ext
7493LIBS=$ac_func_search_save_LIBS
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7496$as_echo "$ac_cv_search_openpty" >&6; }
7497ac_res=$ac_cv_search_openpty
7498if test "$ac_res" != no; then :
7499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7500
7501$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7502
7503fi
7504
7505fi
7506
7507
7508
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7510$as_echo_n "checking for tty group... " >&6; }
7511if ${pt_cv_tty_group+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513else
7514 if test "$cross_compiling" = yes; then :
7515 pt_cv_tty_group=no
7516else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519
7520#include <sys/types.h>
7521#include <sys/stat.h>
7522#include <unistd.h>
7523#include <grp.h>
7524
7525int main()
7526{
7527 struct stat st;
7528 struct group *gr;
7529 char *tty;
7530 gr = getgrnam("tty");
7531 tty = ttyname(0);
7532 if (gr != 0
7533 && tty != 0
7534 && (stat(tty, &st)) == 0
7535 && st.st_gid == gr->gr_gid)
7536 return 0;
7537 else
7538 return 1;
7539}
7540_ACEOF
7541if ac_fn_cxx_try_run "$LINENO"; then :
7542 pt_cv_tty_group=yes
7543else
7544 pt_cv_tty_group=no
7545fi
7546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7547 conftest.$ac_objext conftest.beam conftest.$ac_ext
7548fi
7549
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7552$as_echo "$pt_cv_tty_group" >&6; }
7553if test x$pt_cv_tty_group = xyes; then
7554
7555$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7556 7454
7557fi 7455fi
7558 7456
7559support_image=no 7457support_image=no
7560if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 7458if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7561 support_image=yes 7459 support_image=yes
7562fi 7460fi
7563if test x$support_xft = xyes || test x$support_image = xyes; then 7461if test x$support_xft = xyes || test x$support_image = xyes; then
7564 rxvt_have_xrender=no 7462 rxvt_have_xrender=no
7565 7463
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
7567$as_echo_n "checking for xrender... " >&6; } 7465printf %s "checking for xrender... " >&6; }
7568 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7466 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7569 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" 7467 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7570 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" 7468 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
7571 7469
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7573$as_echo "ok" >&6; } 7471printf "%s\n" "ok" >&6; }
7574 7472
7575 X_LIBS="$XRENDER_LIBS $X_LIBS" 7473 X_LIBS="$XRENDER_LIBS $X_LIBS"
7576 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" 7474 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7577 rxvt_have_xrender=yes 7475 rxvt_have_xrender=yes
7578 7476
7579 save_LIBS="$LIBS" 7477 save_LIBS="$LIBS"
7580 LIBS="$LIBS $X_LIBS" 7478 LIBS="$LIBS $X_LIBS"
7581 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" 7479 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7582if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 7480if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes
7481then :
7583 7482
7584else 7483else $as_nop
7585 rxvt_have_xrender=no 7484 rxvt_have_xrender=no
7586fi 7485fi
7587 7486
7588
7589 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" 7487 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7590if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then : 7488if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes
7489then :
7591 7490
7592else 7491else $as_nop
7593 rxvt_have_xrender=no 7492 rxvt_have_xrender=no
7594fi 7493fi
7595 7494
7596 LIBS="$save_LIBS" 7495 LIBS="$save_LIBS"
7597 7496
7598 else 7497 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; } 7499printf "%s\n" "no" >&6; }
7601 : 7500 :
7602 fi 7501 fi
7603 7502
7604fi 7503fi
7605 7504
7606if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7505if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7607 7506
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7609$as_echo_n "checking for fontconfig xft... " >&6; } 7508printf %s "checking for fontconfig xft... " >&6; }
7610 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then 7509 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7611 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" 7510 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7612 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" 7511 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7613 7512
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7615$as_echo "ok" >&6; } 7514printf "%s\n" "ok" >&6; }
7616 7515
7617 X_LIBS="$XFT_LIBS $X_LIBS" 7516 X_LIBS="$XFT_LIBS $X_LIBS"
7618 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 7517 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7619 7518
7620 else 7519 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; } 7521printf "%s\n" "no" >&6; }
7623 7522
7624 # Extract the first word of "xft-config", so it can be a program name with args. 7523 # Extract the first word of "xft-config", so it can be a program name with args.
7625set dummy xft-config; ac_word=$2 7524set dummy xft-config; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; } 7526printf %s "checking for $ac_word... " >&6; }
7628if ${ac_cv_path_XFT_CONFIG+:} false; then : 7527if test ${ac_cv_path_XFT_CONFIG+y}
7629 $as_echo_n "(cached) " >&6 7528then :
7630else 7529 printf %s "(cached) " >&6
7530else $as_nop
7631 case $XFT_CONFIG in 7531 case $XFT_CONFIG in
7632 [\\/]* | ?:[\\/]*) 7532 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7533 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7634 ;; 7534 ;;
7635 *) 7535 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH 7537for as_dir in $PATH
7638do 7538do
7639 IFS=$as_save_IFS 7539 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=. 7540 case $as_dir in #(((
7541 '') as_dir=./ ;;
7542 */) ;;
7543 *) as_dir=$as_dir/ ;;
7544 esac
7641 for ac_exec_ext in '' $ac_executable_extensions; do 7545 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7643 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7547 ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7645 break 2 7549 break 2
7646 fi 7550 fi
7647done 7551done
7648 done 7552 done
7649IFS=$as_save_IFS 7553IFS=$as_save_IFS
7652 ;; 7556 ;;
7653esac 7557esac
7654fi 7558fi
7655XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7559XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7656if test -n "$XFT_CONFIG"; then 7560if test -n "$XFT_CONFIG"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7658$as_echo "$XFT_CONFIG" >&6; } 7562printf "%s\n" "$XFT_CONFIG" >&6; }
7659else 7563else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; } 7565printf "%s\n" "no" >&6; }
7662fi 7566fi
7663 7567
7664 7568
7665 if test $XFT_CONFIG != no; then 7569 if test $XFT_CONFIG != no; then
7666 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 7570 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7670 fi 7574 fi
7671 7575
7672 7576
7673 save_LIBS="$LIBS" 7577 save_LIBS="$LIBS"
7674 LIBS="$LIBS $X_LIBS" 7578 LIBS="$LIBS $X_LIBS"
7675 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h 7579 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7676do : 7580do :
7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7581 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
7678ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7582ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7583if eval test \"x\$"$as_ac_Header"\" = x"yes"
7584then :
7680 cat >>confdefs.h <<_ACEOF 7585 cat >>confdefs.h <<_ACEOF
7681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7586#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
7682_ACEOF 7587_ACEOF
7683 7588
7684else 7589else $as_nop
7685 support_xft=no 7590 support_xft=no
7686fi 7591fi
7687 7592
7688done 7593done
7689 7594
7690 for ac_func in XftDrawString32 FcPatternGet 7595 for ac_func in XftDrawString32 FcPatternGet
7691do : 7596do :
7692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7597 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7693ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 7598ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7694if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7599if eval test \"x\$"$as_ac_var"\" = x"yes"
7600then :
7695 cat >>confdefs.h <<_ACEOF 7601 cat >>confdefs.h <<_ACEOF
7696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7602#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
7697_ACEOF 7603_ACEOF
7698 7604
7699else 7605else $as_nop
7700 support_xft=no 7606 support_xft=no
7701fi 7607fi
7608
7702done 7609done
7703
7704 LIBS="$save_LIBS" 7610 LIBS="$save_LIBS"
7705 7611
7706 if test x$support_xft = xyes; then 7612 if test x$support_xft = xyes; then
7707 7613
7708$as_echo "#define XFT 1" >>confdefs.h 7614printf "%s\n" "#define XFT 1" >>confdefs.h
7709 7615
7710 fi 7616 fi
7711fi 7617fi
7712 7618
7713if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then 7619if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7715$as_echo_n "checking for Render >= 0.11... " >&6; } 7621printf %s "checking for Render >= 0.11... " >&6; }
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h. */ 7623/* end confdefs.h. */
7718 7624
7719#include <X11/extensions/Xrender.h> 7625#include <X11/extensions/Xrender.h>
7720#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 7626#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7721error 7627error
7722#endif 7628#endif
7723 7629
7724int 7630int
7725main () 7631main (void)
7726{ 7632{
7727 7633
7728 ; 7634 ;
7729 return 0; 7635 return 0;
7730} 7636}
7731_ACEOF 7637_ACEOF
7732if ac_fn_cxx_try_compile "$LINENO"; then : 7638if ac_fn_cxx_try_compile "$LINENO"
7639then :
7733 7640
7734else 7641else $as_nop
7735 support_image=no 7642 support_image=no
7736fi 7643fi
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7738 if test x$support_image = xyes; then 7645 if test x$support_image = xyes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; } 7647printf "%s\n" "ok" >&6; }
7741 LIBS="$LIBS -lm" 7648 LIBS="$LIBS -lm"
7742 7649
7743$as_echo "#define XRENDER 1" >>confdefs.h 7650printf "%s\n" "#define XRENDER 1" >>confdefs.h
7744 7651
7745 7652
7746 if test x$support_inheritpixmap = xyes; then 7653 if test x$support_inheritpixmap = xyes; then
7747 7654
7748$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h 7655printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7749 7656
7750 fi 7657 fi
7751 else 7658 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; } 7660printf "%s\n" "no" >&6; }
7754 fi 7661 fi
7755fi 7662fi
7756 7663
7757if test x$support_styles = xyes; then 7664if test x$support_styles = xyes; then
7758 7665
7759$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 7666printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h
7760 7667
7761fi 7668fi
7762if test x$support_iso14755 = xyes; then 7669if test x$support_iso14755 = xyes; then
7763 7670
7764$as_echo "#define ISO_14755 1" >>confdefs.h 7671printf "%s\n" "#define ISO_14755 1" >>confdefs.h
7765 7672
7766fi 7673fi
7767if test x$support_8bitctrls = xyes; then 7674if test x$support_8bitctrls = xyes; then
7768 7675
7769$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h 7676printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7770 7677
7771fi 7678fi
7772if test x$support_fading = xyes; then 7679if test x$support_fading = xyes; then
7773 7680
7774$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 7681printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h
7775 7682
7776fi 7683fi
7777if test x$support_keepscrolling = xno; then 7684if test x$support_keepscrolling = xno; then
7778 7685
7779$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 7686printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7780 7687
7781fi 7688fi
7782if test x$support_selectionscrolling = xyes; then 7689if test x$support_selectionscrolling = xyes; then
7783 7690
7784$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h 7691printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h
7785 7692
7786fi 7693fi
7787if test x$support_frills = xyes; then 7694if test x$support_frills = xyes; then
7788 7695
7789$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h 7696printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h
7790 7697
7791fi 7698fi
7792if test x$support_mousewheel = xyes; then 7699if test x$support_mousewheel = xyes; then
7793 7700
7794$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h 7701printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h
7795 7702
7796fi 7703fi
7797if test x$support_mouseslipwheel = xyes; then 7704if test x$support_mouseslipwheel = xyes; then
7798 7705
7799$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h 7706printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7800 7707
7801fi 7708fi
7802 7709
7803scrolltypes=plain 7710scrolltypes=plain
7804 7711
7805$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h 7712printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7806 7713
7807 7714
7808if test x$support_scroll_rxvt = xyes; then 7715if test x$support_scroll_rxvt = xyes; then
7809 7716
7810$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h 7717printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h
7811 7718
7812 scrolltypes="$scrolltypes rxvt" 7719 scrolltypes="$scrolltypes rxvt"
7813fi 7720fi
7814if test x$support_scroll_next = xyes; then 7721if test x$support_scroll_next = xyes; then
7815 7722
7816$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h 7723printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h
7817 7724
7818 scrolltypes="$scrolltypes next" 7725 scrolltypes="$scrolltypes next"
7819fi 7726fi
7820if test x$support_scroll_xterm = xyes; then 7727if test x$support_scroll_xterm = xyes; then
7821 7728
7822$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h 7729printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h
7823 7730
7824 scrolltypes="$scrolltypes xterm" 7731 scrolltypes="$scrolltypes xterm"
7825fi 7732fi
7826if test x$support_pointer_blank = xyes; then 7733if test x$support_pointer_blank = xyes; then
7827 7734
7828$as_echo "#define POINTER_BLANK 1" >>confdefs.h 7735printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h
7829 7736
7830fi 7737fi
7831if test x$support_text_blink = xyes; then 7738if test x$support_text_blink = xyes; then
7832 7739
7833$as_echo "#define TEXT_BLINK 1" >>confdefs.h 7740printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h
7834 7741
7835fi 7742fi
7836if test x$support_unicode3 = xyes; then 7743if test x$support_unicode3 = xyes; then
7837 7744
7838$as_echo "#define UNICODE_3 1" >>confdefs.h 7745printf "%s\n" "#define UNICODE_3 1" >>confdefs.h
7839 7746
7840fi 7747fi
7841if test x$support_combining = xyes; then 7748if test x$support_combining = xyes; then
7842 7749
7843$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h 7750printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h
7844 7751
7845fi 7752fi
7846if test x$codesets = xall; then 7753if test x$codesets = xall; then
7847 codesets=jp,jp-ext,kr,zh,zh-ext 7754 codesets=jp,jp-ext,kr,zh,zh-ext
7848fi 7755fi
7849 7756
7850$as_echo "#define ENCODING_EU 1" >>confdefs.h 7757printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h
7851 7758
7852 7759
7853$as_echo "#define ENCODING_VN 1" >>confdefs.h 7760printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h
7854 7761
7855for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7762for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7856 case "$codeset" in 7763 case "$codeset" in
7857 JP ) 7764 JP )
7858$as_echo "#define ENCODING_JP 1" >>confdefs.h 7765printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h
7859 ;; 7766 ;;
7860 JP_EXT ) 7767 JP_EXT )
7861$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h 7768printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h
7862 ;; 7769 ;;
7863 KR ) 7770 KR )
7864$as_echo "#define ENCODING_KR 1" >>confdefs.h 7771printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h
7865 ;; 7772 ;;
7866 ZH ) 7773 ZH )
7867$as_echo "#define ENCODING_ZH 1" >>confdefs.h 7774printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h
7868 ;; 7775 ;;
7869 ZH_EXT ) 7776 ZH_EXT )
7870$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h 7777printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h
7871 ;; 7778 ;;
7872 esac 7779 esac
7873done 7780done
7874 7781
7875IF_PERL=\# 7782IF_PERL=\#
7876if test x$support_perl = xyes; then 7783if test x$support_perl = xyes; then
7877 # Extract the first word of "perl5", so it can be a program name with args. 7784 # Extract the first word of "perl5", so it can be a program name with args.
7878set dummy perl5; ac_word=$2 7785set dummy perl5; ac_word=$2
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880$as_echo_n "checking for $ac_word... " >&6; } 7787printf %s "checking for $ac_word... " >&6; }
7881if ${ac_cv_path_PERL+:} false; then : 7788if test ${ac_cv_path_PERL+y}
7882 $as_echo_n "(cached) " >&6 7789then :
7883else 7790 printf %s "(cached) " >&6
7791else $as_nop
7884 case $PERL in 7792 case $PERL in
7885 [\\/]* | ?:[\\/]*) 7793 [\\/]* | ?:[\\/]*)
7886 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7794 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7887 ;; 7795 ;;
7888 *) 7796 *)
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH 7798for as_dir in $PATH
7891do 7799do
7892 IFS=$as_save_IFS 7800 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=. 7801 case $as_dir in #(((
7802 '') as_dir=./ ;;
7803 */) ;;
7804 *) as_dir=$as_dir/ ;;
7805 esac
7894 for ac_exec_ext in '' $ac_executable_extensions; do 7806 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7896 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7808 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7898 break 2 7810 break 2
7899 fi 7811 fi
7900done 7812done
7901 done 7813 done
7902IFS=$as_save_IFS 7814IFS=$as_save_IFS
7905 ;; 7817 ;;
7906esac 7818esac
7907fi 7819fi
7908PERL=$ac_cv_path_PERL 7820PERL=$ac_cv_path_PERL
7909if test -n "$PERL"; then 7821if test -n "$PERL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7911$as_echo "$PERL" >&6; } 7823printf "%s\n" "$PERL" >&6; }
7912else 7824else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; } 7826printf "%s\n" "no" >&6; }
7915fi 7827fi
7916 7828
7917 7829
7918 7830
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
7920$as_echo_n "checking for $PERL suitability... " >&6; } 7832printf %s "checking for $PERL suitability... " >&6; }
7921 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 7833 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
7922 7834
7923 save_CXXFLAGS="$CXXFLAGS" 7835 save_CXXFLAGS="$CXXFLAGS"
7924 save_LIBS="$LIBS" 7836 save_LIBS="$LIBS"
7925 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 7837 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
7930#include <EXTERN.h> 7842#include <EXTERN.h>
7931#include <perl.h> 7843#include <perl.h>
7932#include <XSUB.h> 7844#include <XSUB.h>
7933 7845
7934int 7846int
7935main () 7847main (void)
7936{ 7848{
7937 7849
7938 PerlInterpreter *perl = perl_alloc (); 7850 PerlInterpreter *perl = perl_alloc ();
7939 7851
7940 ; 7852 ;
7941 return 0; 7853 return 0;
7942} 7854}
7943_ACEOF 7855_ACEOF
7944if ac_fn_cxx_try_link "$LINENO"; then : 7856if ac_fn_cxx_try_link "$LINENO"
7857then :
7945 rxvt_perl_link=yes 7858 rxvt_perl_link=yes
7946else 7859else $as_nop
7947 rxvt_perl_link=no 7860 rxvt_perl_link=no
7948fi 7861fi
7949rm -f core conftest.err conftest.$ac_objext \ 7862rm -f core conftest.err conftest.$ac_objext conftest.beam \
7950 conftest$ac_exeext conftest.$ac_ext 7863 conftest$ac_exeext conftest.$ac_ext
7951 CXXFLAGS="$save_CXXFLAGS" 7864 CXXFLAGS="$save_CXXFLAGS"
7952 LIBS="$save_LIBS" 7865 LIBS="$save_LIBS"
7953 7866
7954 if test x$rxvt_perl_link = xyes; then 7867 if test x$rxvt_perl_link = xyes; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7956$as_echo "ok" >&6; } 7869printf "%s\n" "ok" >&6; }
7957 7870
7958$as_echo "#define ENABLE_PERL 1" >>confdefs.h 7871printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h
7959 7872
7960 IF_PERL= 7873 IF_PERL=
7961 PERL_O=rxvtperl.o 7874 PERL_O=rxvtperl.o
7962 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 7875 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
7963 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 7876 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8005 eval ac_val=\$$ac_var 7918 eval ac_val=\$$ac_var
8006 case $ac_val in #( 7919 case $ac_val in #(
8007 *${as_nl}*) 7920 *${as_nl}*)
8008 case $ac_var in #( 7921 case $ac_var in #(
8009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7922 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7923printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8011 esac 7924 esac
8012 case $ac_var in #( 7925 case $ac_var in #(
8013 _ | IFS | as_nl) ;; #( 7926 _ | IFS | as_nl) ;; #(
8014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8015 *) { eval $ac_var=; unset $ac_var;} ;; 7928 *) { eval $ac_var=; unset $ac_var;} ;;
8035) | 7948) |
8036 sed ' 7949 sed '
8037 /^ac_cv_env_/b end 7950 /^ac_cv_env_/b end
8038 t clear 7951 t clear
8039 :clear 7952 :clear
8040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7953 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8041 t end 7954 t end
8042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8043 :end' >>confcache 7956 :end' >>confcache
8044if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7957if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8045 if test -w "$cache_file"; then 7958 if test -w "$cache_file"; then
8046 if test "x$cache_file" != "x/dev/null"; then 7959 if test "x$cache_file" != "x/dev/null"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8048$as_echo "$as_me: updating cache $cache_file" >&6;} 7961printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8049 if test ! -f "$cache_file" || test -h "$cache_file"; then 7962 if test ! -f "$cache_file" || test -h "$cache_file"; then
8050 cat confcache >"$cache_file" 7963 cat confcache >"$cache_file"
8051 else 7964 else
8052 case $cache_file in #( 7965 case $cache_file in #(
8053 */* | ?:*) 7966 */* | ?:*)
8057 mv -f confcache "$cache_file" ;; 7970 mv -f confcache "$cache_file" ;;
8058 esac 7971 esac
8059 fi 7972 fi
8060 fi 7973 fi
8061 else 7974 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8063$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7976printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8064 fi 7977 fi
8065fi 7978fi
8066rm -f confcache 7979rm -f confcache
8067 7980
8068test "x$prefix" = xNONE && prefix=$ac_default_prefix 7981test "x$prefix" = xNONE && prefix=$ac_default_prefix
8075ac_ltlibobjs= 7988ac_ltlibobjs=
8076U= 7989U=
8077for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7990for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8078 # 1. Remove the extension, and $U if already installed. 7991 # 1. Remove the extension, and $U if already installed.
8079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7993 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8082 # will be set to the directory where LIBOBJS objects are built. 7995 # will be set to the directory where LIBOBJS objects are built.
8083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8085done 7998done
8091 8004
8092: "${CONFIG_STATUS=./config.status}" 8005: "${CONFIG_STATUS=./config.status}"
8093ac_write_fail=0 8006ac_write_fail=0
8094ac_clean_files_save=$ac_clean_files 8007ac_clean_files_save=$ac_clean_files
8095ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8097$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8010printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8098as_write_fail=0 8011as_write_fail=0
8099cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8012cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8100#! $SHELL 8013#! $SHELL
8101# Generated by $as_me. 8014# Generated by $as_me.
8102# Run this file to recreate the current configuration. 8015# Run this file to recreate the current configuration.
8115## M4sh Initialization. ## 8028## M4sh Initialization. ##
8116## -------------------- ## 8029## -------------------- ##
8117 8030
8118# Be more Bourne compatible 8031# Be more Bourne compatible
8119DUALCASE=1; export DUALCASE # for MKS sh 8032DUALCASE=1; export DUALCASE # for MKS sh
8033as_nop=:
8120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8034if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8035then :
8121 emulate sh 8036 emulate sh
8122 NULLCMD=: 8037 NULLCMD=:
8123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8124 # is contrary to our usage. Disable this feature. 8039 # is contrary to our usage. Disable this feature.
8125 alias -g '${1+"$@"}'='"$@"' 8040 alias -g '${1+"$@"}'='"$@"'
8126 setopt NO_GLOB_SUBST 8041 setopt NO_GLOB_SUBST
8127else 8042else $as_nop
8128 case `(set -o) 2>/dev/null` in #( 8043 case `(set -o) 2>/dev/null` in #(
8129 *posix*) : 8044 *posix*) :
8130 set -o posix ;; #( 8045 set -o posix ;; #(
8131 *) : 8046 *) :
8132 ;; 8047 ;;
8133esac 8048esac
8134fi 8049fi
8135 8050
8136 8051
8052
8053# Reset variables that may have inherited troublesome values from
8054# the environment.
8055
8056# IFS needs to be set, to space, tab, and newline, in precisely that order.
8057# (If _AS_PATH_WALK were called with IFS unset, it would have the
8058# side effect of setting IFS to empty, thus disabling word splitting.)
8059# Quoting is to prevent editors from complaining about space-tab.
8137as_nl=' 8060as_nl='
8138' 8061'
8139export as_nl 8062export as_nl
8140# Printing a long string crashes Solaris 7 /usr/bin/printf. 8063IFS=" "" $as_nl"
8141as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8064
8142as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8065PS1='$ '
8143as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8066PS2='> '
8144# Prefer a ksh shell builtin over an external printf program on Solaris, 8067PS4='+ '
8145# but without wasting forks for bash or zsh. 8068
8146if test -z "$BASH_VERSION$ZSH_VERSION" \ 8069# Ensure predictable behavior from utilities with locale-dependent output.
8147 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8070LC_ALL=C
8148 as_echo='print -r --' 8071export LC_ALL
8149 as_echo_n='print -rn --' 8072LANGUAGE=C
8150elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8073export LANGUAGE
8151 as_echo='printf %s\n' 8074
8152 as_echo_n='printf %s' 8075# We cannot yet rely on "unset" to work, but we need these variables
8153else 8076# to be unset--not just set to an empty or harmless value--now, to
8154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8077# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8078# also avoids known problems related to "unset" and subshell syntax
8156 as_echo_n='/usr/ucb/echo -n' 8079# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8157 else 8080for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8081do eval test \${$as_var+y} \
8159 as_echo_n_body='eval 8082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8160 arg=$1; 8083done
8161 case $arg in #( 8084
8162 *"$as_nl"*) 8085# Ensure that fds 0, 1, and 2 are open.
8163 expr "X$arg" : "X\\(.*\\)$as_nl"; 8086if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8087if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8165 esac; 8088if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8167 '
8168 export as_echo_n_body
8169 as_echo_n='sh -c $as_echo_n_body as_echo'
8170 fi
8171 export as_echo_body
8172 as_echo='sh -c $as_echo_body as_echo'
8173fi
8174 8089
8175# The user is always right. 8090# The user is always right.
8176if test "${PATH_SEPARATOR+set}" != set; then 8091if ${PATH_SEPARATOR+false} :; then
8177 PATH_SEPARATOR=: 8092 PATH_SEPARATOR=:
8178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8180 PATH_SEPARATOR=';' 8095 PATH_SEPARATOR=';'
8181 } 8096 }
8182fi 8097fi
8183 8098
8184
8185# IFS
8186# We need space, tab and new line, in precisely that order. Quoting is
8187# there to prevent editors from complaining about space-tab.
8188# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8189# splitting by setting IFS to empty value.)
8190IFS=" "" $as_nl"
8191 8099
8192# Find who we are. Look in the path if we contain no directory separator. 8100# Find who we are. Look in the path if we contain no directory separator.
8193as_myself= 8101as_myself=
8194case $0 in #(( 8102case $0 in #((
8195 *[\\/]* ) as_myself=$0 ;; 8103 *[\\/]* ) as_myself=$0 ;;
8196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH 8105for as_dir in $PATH
8198do 8106do
8199 IFS=$as_save_IFS 8107 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=. 8108 case $as_dir in #(((
8109 '') as_dir=./ ;;
8110 */) ;;
8111 *) as_dir=$as_dir/ ;;
8112 esac
8201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8113 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8202 done 8114 done
8203IFS=$as_save_IFS 8115IFS=$as_save_IFS
8204 8116
8205 ;; 8117 ;;
8206esac 8118esac
8208# in which case we are not to be found in the path. 8120# in which case we are not to be found in the path.
8209if test "x$as_myself" = x; then 8121if test "x$as_myself" = x; then
8210 as_myself=$0 8122 as_myself=$0
8211fi 8123fi
8212if test ! -f "$as_myself"; then 8124if test ! -f "$as_myself"; then
8213 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8125 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8214 exit 1 8126 exit 1
8215fi 8127fi
8216 8128
8217# Unset variables that we do not need and which cause bugs (e.g. in
8218# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8219# suppresses any "Segmentation fault" message there. '((' could
8220# trigger a bug in pdksh 5.2.14.
8221for as_var in BASH_ENV ENV MAIL MAILPATH
8222do eval test x\${$as_var+set} = xset \
8223 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8224done
8225PS1='$ '
8226PS2='> '
8227PS4='+ '
8228
8229# NLS nuisances.
8230LC_ALL=C
8231export LC_ALL
8232LANGUAGE=C
8233export LANGUAGE
8234
8235# CDPATH.
8236(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8237 8129
8238 8130
8239# as_fn_error STATUS ERROR [LINENO LOG_FD] 8131# as_fn_error STATUS ERROR [LINENO LOG_FD]
8240# ---------------------------------------- 8132# ----------------------------------------
8241# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8133# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8244as_fn_error () 8136as_fn_error ()
8245{ 8137{
8246 as_status=$1; test $as_status -eq 0 && as_status=1 8138 as_status=$1; test $as_status -eq 0 && as_status=1
8247 if test "$4"; then 8139 if test "$4"; then
8248 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8249 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8250 fi 8142 fi
8251 $as_echo "$as_me: error: $2" >&2 8143 printf "%s\n" "$as_me: error: $2" >&2
8252 as_fn_exit $as_status 8144 as_fn_exit $as_status
8253} # as_fn_error 8145} # as_fn_error
8146
8254 8147
8255 8148
8256# as_fn_set_status STATUS 8149# as_fn_set_status STATUS
8257# ----------------------- 8150# -----------------------
8258# Set $? to STATUS, without forking. 8151# Set $? to STATUS, without forking.
8277as_fn_unset () 8170as_fn_unset ()
8278{ 8171{
8279 { eval $1=; unset $1;} 8172 { eval $1=; unset $1;}
8280} 8173}
8281as_unset=as_fn_unset 8174as_unset=as_fn_unset
8175
8282# as_fn_append VAR VALUE 8176# as_fn_append VAR VALUE
8283# ---------------------- 8177# ----------------------
8284# Append the text in VALUE to the end of the definition contained in VAR. Take 8178# Append the text in VALUE to the end of the definition contained in VAR. Take
8285# advantage of any shell optimizations that allow amortized linear growth over 8179# advantage of any shell optimizations that allow amortized linear growth over
8286# repeated appends, instead of the typical quadratic growth present in naive 8180# repeated appends, instead of the typical quadratic growth present in naive
8287# implementations. 8181# implementations.
8288if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8182if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8183then :
8289 eval 'as_fn_append () 8184 eval 'as_fn_append ()
8290 { 8185 {
8291 eval $1+=\$2 8186 eval $1+=\$2
8292 }' 8187 }'
8293else 8188else $as_nop
8294 as_fn_append () 8189 as_fn_append ()
8295 { 8190 {
8296 eval $1=\$$1\$2 8191 eval $1=\$$1\$2
8297 } 8192 }
8298fi # as_fn_append 8193fi # as_fn_append
8300# as_fn_arith ARG... 8195# as_fn_arith ARG...
8301# ------------------ 8196# ------------------
8302# Perform arithmetic evaluation on the ARGs, and store the result in the 8197# Perform arithmetic evaluation on the ARGs, and store the result in the
8303# global $as_val. Take advantage of shells that can avoid forks. The arguments 8198# global $as_val. Take advantage of shells that can avoid forks. The arguments
8304# must be portable across $(()) and expr. 8199# must be portable across $(()) and expr.
8305if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8200if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8201then :
8306 eval 'as_fn_arith () 8202 eval 'as_fn_arith ()
8307 { 8203 {
8308 as_val=$(( $* )) 8204 as_val=$(( $* ))
8309 }' 8205 }'
8310else 8206else $as_nop
8311 as_fn_arith () 8207 as_fn_arith ()
8312 { 8208 {
8313 as_val=`expr "$@" || test $? -eq 1` 8209 as_val=`expr "$@" || test $? -eq 1`
8314 } 8210 }
8315fi # as_fn_arith 8211fi # as_fn_arith
8336 8232
8337as_me=`$as_basename -- "$0" || 8233as_me=`$as_basename -- "$0" ||
8338$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8339 X"$0" : 'X\(//\)$' \| \ 8235 X"$0" : 'X\(//\)$' \| \
8340 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8341$as_echo X/"$0" | 8237printf "%s\n" X/"$0" |
8342 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8238 sed '/^.*\/\([^/][^/]*\)\/*$/{
8343 s//\1/ 8239 s//\1/
8344 q 8240 q
8345 } 8241 }
8346 /^X\/\(\/\/\)$/{ 8242 /^X\/\(\/\/\)$/{
8358as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8359as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8255as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8360as_cr_digits='0123456789' 8256as_cr_digits='0123456789'
8361as_cr_alnum=$as_cr_Letters$as_cr_digits 8257as_cr_alnum=$as_cr_Letters$as_cr_digits
8362 8258
8259
8260# Determine whether it's possible to make 'echo' print without a newline.
8261# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8262# for compatibility with existing Makefiles.
8363ECHO_C= ECHO_N= ECHO_T= 8263ECHO_C= ECHO_N= ECHO_T=
8364case `echo -n x` in #((((( 8264case `echo -n x` in #(((((
8365-n*) 8265-n*)
8366 case `echo 'xy\c'` in 8266 case `echo 'xy\c'` in
8367 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8370 ECHO_T=' ';; 8270 ECHO_T=' ';;
8371 esac;; 8271 esac;;
8372*) 8272*)
8373 ECHO_N='-n';; 8273 ECHO_N='-n';;
8374esac 8274esac
8275
8276# For backward compatibility with old third-party macros, we provide
8277# the shell variables $as_echo and $as_echo_n. New code should use
8278# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8279as_echo='printf %s\n'
8280as_echo_n='printf %s'
8375 8281
8376rm -f conf$$ conf$$.exe conf$$.file 8282rm -f conf$$ conf$$.exe conf$$.file
8377if test -d conf$$.dir; then 8283if test -d conf$$.dir; then
8378 rm -f conf$$.dir/conf$$.file 8284 rm -f conf$$.dir/conf$$.file
8379else 8285else
8412 esac 8318 esac
8413 test -d "$as_dir" || eval $as_mkdir_p || { 8319 test -d "$as_dir" || eval $as_mkdir_p || {
8414 as_dirs= 8320 as_dirs=
8415 while :; do 8321 while :; do
8416 case $as_dir in #( 8322 case $as_dir in #(
8417 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8323 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8418 *) as_qdir=$as_dir;; 8324 *) as_qdir=$as_dir;;
8419 esac 8325 esac
8420 as_dirs="'$as_qdir' $as_dirs" 8326 as_dirs="'$as_qdir' $as_dirs"
8421 as_dir=`$as_dirname -- "$as_dir" || 8327 as_dir=`$as_dirname -- "$as_dir" ||
8422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8423 X"$as_dir" : 'X\(//\)[^/]' \| \ 8329 X"$as_dir" : 'X\(//\)[^/]' \| \
8424 X"$as_dir" : 'X\(//\)$' \| \ 8330 X"$as_dir" : 'X\(//\)$' \| \
8425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8426$as_echo X"$as_dir" | 8332printf "%s\n" X"$as_dir" |
8427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8428 s//\1/ 8334 s//\1/
8429 q 8335 q
8430 } 8336 }
8431 /^X\(\/\/\)[^/].*/{ 8337 /^X\(\/\/\)[^/].*/{
8484# Save the log message, to keep $0 and so on meaningful, and to 8390# Save the log message, to keep $0 and so on meaningful, and to
8485# report actual input values of CONFIG_FILES etc. instead of their 8391# report actual input values of CONFIG_FILES etc. instead of their
8486# values after options handling. 8392# values after options handling.
8487ac_log=" 8393ac_log="
8488This file was extended by $as_me, which was 8394This file was extended by $as_me, which was
8489generated by GNU Autoconf 2.69. Invocation command line was 8395generated by GNU Autoconf 2.71. Invocation command line was
8490 8396
8491 CONFIG_FILES = $CONFIG_FILES 8397 CONFIG_FILES = $CONFIG_FILES
8492 CONFIG_HEADERS = $CONFIG_HEADERS 8398 CONFIG_HEADERS = $CONFIG_HEADERS
8493 CONFIG_LINKS = $CONFIG_LINKS 8399 CONFIG_LINKS = $CONFIG_LINKS
8494 CONFIG_COMMANDS = $CONFIG_COMMANDS 8400 CONFIG_COMMANDS = $CONFIG_COMMANDS
8542$config_headers 8448$config_headers
8543 8449
8544Report bugs to the package provider." 8450Report bugs to the package provider."
8545 8451
8546_ACEOF 8452_ACEOF
8453ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8454ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8456ac_cs_config='$ac_cs_config_escaped'
8549ac_cs_version="\\ 8457ac_cs_version="\\
8550config.status 8458config.status
8551configured by $0, generated by GNU Autoconf 2.69, 8459configured by $0, generated by GNU Autoconf 2.71,
8552 with options \\"\$ac_cs_config\\" 8460 with options \\"\$ac_cs_config\\"
8553 8461
8554Copyright (C) 2012 Free Software Foundation, Inc. 8462Copyright (C) 2021 Free Software Foundation, Inc.
8555This config.status script is free software; the Free Software Foundation 8463This config.status script is free software; the Free Software Foundation
8556gives unlimited permission to copy, distribute and modify it." 8464gives unlimited permission to copy, distribute and modify it."
8557 8465
8558ac_pwd='$ac_pwd' 8466ac_pwd='$ac_pwd'
8559srcdir='$srcdir' 8467srcdir='$srcdir'
8587 case $ac_option in 8495 case $ac_option in
8588 # Handling of the options. 8496 # Handling of the options.
8589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8590 ac_cs_recheck=: ;; 8498 ac_cs_recheck=: ;;
8591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8592 $as_echo "$ac_cs_version"; exit ;; 8500 printf "%s\n" "$ac_cs_version"; exit ;;
8593 --config | --confi | --conf | --con | --co | --c ) 8501 --config | --confi | --conf | --con | --co | --c )
8594 $as_echo "$ac_cs_config"; exit ;; 8502 printf "%s\n" "$ac_cs_config"; exit ;;
8595 --debug | --debu | --deb | --de | --d | -d ) 8503 --debug | --debu | --deb | --de | --d | -d )
8596 debug=: ;; 8504 debug=: ;;
8597 --file | --fil | --fi | --f ) 8505 --file | --fil | --fi | --f )
8598 $ac_shift 8506 $ac_shift
8599 case $ac_optarg in 8507 case $ac_optarg in
8600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8508 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8601 '') as_fn_error $? "missing file argument" ;; 8509 '') as_fn_error $? "missing file argument" ;;
8602 esac 8510 esac
8603 as_fn_append CONFIG_FILES " '$ac_optarg'" 8511 as_fn_append CONFIG_FILES " '$ac_optarg'"
8604 ac_need_defaults=false;; 8512 ac_need_defaults=false;;
8605 --header | --heade | --head | --hea ) 8513 --header | --heade | --head | --hea )
8606 $ac_shift 8514 $ac_shift
8607 case $ac_optarg in 8515 case $ac_optarg in
8608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8516 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8609 esac 8517 esac
8610 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8518 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8611 ac_need_defaults=false;; 8519 ac_need_defaults=false;;
8612 --he | --h) 8520 --he | --h)
8613 # Conflict between --help and --header 8521 # Conflict between --help and --header
8614 as_fn_error $? "ambiguous option: \`$1' 8522 as_fn_error $? "ambiguous option: \`$1'
8615Try \`$0 --help' for more information.";; 8523Try \`$0 --help' for more information.";;
8616 --help | --hel | -h ) 8524 --help | --hel | -h )
8617 $as_echo "$ac_cs_usage"; exit ;; 8525 printf "%s\n" "$ac_cs_usage"; exit ;;
8618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8619 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8620 ac_cs_silent=: ;; 8528 ac_cs_silent=: ;;
8621 8529
8622 # This is an error. 8530 # This is an error.
8640_ACEOF 8548_ACEOF
8641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8642if \$ac_cs_recheck; then 8550if \$ac_cs_recheck; then
8643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8644 shift 8552 shift
8645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8553 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8646 CONFIG_SHELL='$SHELL' 8554 CONFIG_SHELL='$SHELL'
8647 export CONFIG_SHELL 8555 export CONFIG_SHELL
8648 exec "\$@" 8556 exec "\$@"
8649fi 8557fi
8650 8558
8654{ 8562{
8655 echo 8563 echo
8656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8657## Running $as_me. ## 8565## Running $as_me. ##
8658_ASBOX 8566_ASBOX
8659 $as_echo "$ac_log" 8567 printf "%s\n" "$ac_log"
8660} >&5 8568} >&5
8661 8569
8662_ACEOF 8570_ACEOF
8663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8664_ACEOF 8572_ACEOF
8682# If the user did not use the arguments to specify the items to instantiate, 8590# If the user did not use the arguments to specify the items to instantiate,
8683# then the envvar interface is used. Set only those that are not. 8591# then the envvar interface is used. Set only those that are not.
8684# We use the long form for the default assignment because of an extremely 8592# We use the long form for the default assignment because of an extremely
8685# bizarre bug on SunOS 4.1.3. 8593# bizarre bug on SunOS 4.1.3.
8686if $ac_need_defaults; then 8594if $ac_need_defaults; then
8687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8595 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8596 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8689fi 8597fi
8690 8598
8691# Have a temporary directory for convenience. Make it in the build tree 8599# Have a temporary directory for convenience. Make it in the build tree
8692# simply because there is no reason against having it here, and in addition, 8600# simply because there is no reason against having it here, and in addition,
8693# creating and moving files from /tmp can sometimes cause problems. 8601# creating and moving files from /tmp can sometimes cause problems.
9019 [\\/$]*) false;; 8927 [\\/$]*) false;;
9020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9021 esac || 8929 esac ||
9022 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9023 esac 8931 esac
9024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8932 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9025 as_fn_append ac_file_inputs " '$ac_f'" 8933 as_fn_append ac_file_inputs " '$ac_f'"
9026 done 8934 done
9027 8935
9028 # Let's still pretend it is `configure' which instantiates (i.e., don't 8936 # Let's still pretend it is `configure' which instantiates (i.e., don't
9029 # use $as_me), people would be surprised to read: 8937 # use $as_me), people would be surprised to read:
9030 # /* config.h. Generated by config.status. */ 8938 # /* config.h. Generated by config.status. */
9031 configure_input='Generated from '` 8939 configure_input='Generated from '`
9032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8940 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9033 `' by configure.' 8941 `' by configure.'
9034 if test x"$ac_file" != x-; then 8942 if test x"$ac_file" != x-; then
9035 configure_input="$ac_file. $configure_input" 8943 configure_input="$ac_file. $configure_input"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9037$as_echo "$as_me: creating $ac_file" >&6;} 8945printf "%s\n" "$as_me: creating $ac_file" >&6;}
9038 fi 8946 fi
9039 # Neutralize special characters interpreted by sed in replacement strings. 8947 # Neutralize special characters interpreted by sed in replacement strings.
9040 case $configure_input in #( 8948 case $configure_input in #(
9041 *\&* | *\|* | *\\* ) 8949 *\&* | *\|* | *\\* )
9042 ac_sed_conf_input=`$as_echo "$configure_input" | 8950 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9043 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9044 *) ac_sed_conf_input=$configure_input;; 8952 *) ac_sed_conf_input=$configure_input;;
9045 esac 8953 esac
9046 8954
9047 case $ac_tag in 8955 case $ac_tag in
9054 ac_dir=`$as_dirname -- "$ac_file" || 8962 ac_dir=`$as_dirname -- "$ac_file" ||
9055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9056 X"$ac_file" : 'X\(//\)[^/]' \| \ 8964 X"$ac_file" : 'X\(//\)[^/]' \| \
9057 X"$ac_file" : 'X\(//\)$' \| \ 8965 X"$ac_file" : 'X\(//\)$' \| \
9058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9059$as_echo X"$ac_file" | 8967printf "%s\n" X"$ac_file" |
9060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9061 s//\1/ 8969 s//\1/
9062 q 8970 q
9063 } 8971 }
9064 /^X\(\/\/\)[^/].*/{ 8972 /^X\(\/\/\)[^/].*/{
9078 ac_builddir=. 8986 ac_builddir=.
9079 8987
9080case "$ac_dir" in 8988case "$ac_dir" in
9081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9082*) 8990*)
9083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8991 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9084 # A ".." for each directory in $ac_dir_suffix. 8992 # A ".." for each directory in $ac_dir_suffix.
9085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8993 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9086 case $ac_top_builddir_sub in 8994 case $ac_top_builddir_sub in
9087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9089 esac ;; 8997 esac ;;
9090esac 8998esac
9137/@localedir@/p 9045/@localedir@/p
9138/@mandir@/p' 9046/@mandir@/p'
9139case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9047case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9140*datarootdir*) ac_datarootdir_seen=yes;; 9048*datarootdir*) ac_datarootdir_seen=yes;;
9141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9049*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9143$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9051printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9144_ACEOF 9052_ACEOF
9145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9146 ac_datarootdir_hack=' 9054 ac_datarootdir_hack='
9147 s&@datadir@&$datadir&g 9055 s&@datadir@&$datadir&g
9148 s&@docdir@&$docdir&g 9056 s&@docdir@&$docdir&g
9181 9089
9182test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9090test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9091 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9092 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9185 "$ac_tmp/out"`; test -z "$ac_out"; } && 9093 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9187which seems to be undefined. Please make sure it is defined" >&5 9095which seems to be undefined. Please make sure it is defined" >&5
9188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9096printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9189which seems to be undefined. Please make sure it is defined" >&2;} 9097which seems to be undefined. Please make sure it is defined" >&2;}
9190 9098
9191 rm -f "$ac_tmp/stdin" 9099 rm -f "$ac_tmp/stdin"
9192 case $ac_file in 9100 case $ac_file in
9193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9101 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9199 # 9107 #
9200 # CONFIG_HEADER 9108 # CONFIG_HEADER
9201 # 9109 #
9202 if test x"$ac_file" != x-; then 9110 if test x"$ac_file" != x-; then
9203 { 9111 {
9204 $as_echo "/* $configure_input */" \ 9112 printf "%s\n" "/* $configure_input */" >&1 \
9205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9206 } >"$ac_tmp/config.h" \ 9114 } >"$ac_tmp/config.h" \
9207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9116 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9210$as_echo "$as_me: $ac_file is unchanged" >&6;} 9118printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9211 else 9119 else
9212 rm -f "$ac_file" 9120 rm -f "$ac_file"
9213 mv "$ac_tmp/config.h" "$ac_file" \ 9121 mv "$ac_tmp/config.h" "$ac_file" \
9214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9215 fi 9123 fi
9216 else 9124 else
9217 $as_echo "/* $configure_input */" \ 9125 printf "%s\n" "/* $configure_input */" >&1 \
9218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9219 || as_fn_error $? "could not create -" "$LINENO" 5 9127 || as_fn_error $? "could not create -" "$LINENO" 5
9220 fi 9128 fi
9221 ;; 9129 ;;
9222 9130
9253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9254 # would make configure fail if this is the last instruction. 9162 # would make configure fail if this is the last instruction.
9255 $ac_cs_success || as_fn_exit 1 9163 $ac_cs_success || as_fn_exit 1
9256fi 9164fi
9257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9165if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9167printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9260fi 9168fi
9261 9169
9262 9170
9263echo "Configuration: 9171echo "Configuration:
9264 9172
9293fi 9201fi
9294 9202
9295echo "*** Optionally check src/feature.h for further, rarely used options ***" 9203echo "*** Optionally check src/feature.h for further, rarely used options ***"
9296echo 9204echo
9297 9205
9206

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines