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 |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
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 |
24 | else |
27 | else $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 | ;; |
30 | esac |
33 | esac |
31 | fi |
34 | fi |
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. |
34 | as_nl=' |
45 | as_nl=' |
35 | ' |
46 | ' |
36 | export as_nl |
47 | export as_nl |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
48 | IFS=" "" $as_nl" |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
49 | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
50 | PS1='$ ' |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
51 | PS2='> ' |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
52 | PS4='+ ' |
42 | # but without wasting forks for bash or zsh. |
53 | |
43 | if 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 |
55 | LC_ALL=C |
45 | as_echo='print -r --' |
56 | export LC_ALL |
46 | as_echo_n='print -rn --' |
57 | LANGUAGE=C |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
58 | export 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 |
50 | else |
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 |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
66 | do 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; |
68 | done |
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"; |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
62 | esac; |
73 | if (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' |
|
|
70 | fi |
|
|
71 | |
74 | |
72 | # The user is always right. |
75 | # The user is always right. |
73 | if test "${PATH_SEPARATOR+set}" != set; then |
76 | if ${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 | } |
79 | fi |
82 | fi |
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.) |
|
|
87 | IFS=" "" $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. |
90 | as_myself= |
86 | as_myself= |
91 | case $0 in #(( |
87 | case $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 |
94 | for as_dir in $PATH |
90 | for as_dir in $PATH |
95 | do |
91 | do |
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 |
100 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
101 | |
101 | |
102 | ;; |
102 | ;; |
103 | esac |
103 | esac |
… | |
… | |
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. |
106 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
107 | as_myself=$0 |
107 | as_myself=$0 |
108 | fi |
108 | fi |
109 | if test ! -f "$as_myself"; then |
109 | if 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 |
112 | fi |
112 | fi |
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. |
|
|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
119 | do eval test x\${$as_var+set} = xset \ |
|
|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
121 | done |
|
|
122 | PS1='$ ' |
|
|
123 | PS2='> ' |
|
|
124 | PS4='+ ' |
|
|
125 | |
|
|
126 | # NLS nuisances. |
|
|
127 | LC_ALL=C |
|
|
128 | export LC_ALL |
|
|
129 | LANGUAGE=C |
|
|
130 | export 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= ;; |
151 | esac |
131 | esac |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
132 | exec $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 |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 | as_fn_exit 255 |
136 | exit 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;} |
160 | if test "x$CONFIG_SHELL" = x; then |
140 | if 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=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
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 |
168 | else |
150 | else \$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 | ;; |
… | |
… | |
183 | exitcode=0 |
165 | exitcode=0 |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
189 | |
172 | |
190 | else |
173 | else \$as_nop |
191 | exitcode=1; echo positional parameters were not saved. |
174 | exitcode=1; echo positional parameters were not saved. |
192 | fi |
175 | fi |
193 | test x\$exitcode = x0 || exit 1 |
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
194 | test -x / || exit 1" |
179 | test -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 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" |
184 | test \$(( 1 + 1 )) = 2 || exit 1" |
200 | if (eval "$as_required") 2>/dev/null; then : |
185 | if (eval "$as_required") 2>/dev/null |
|
|
186 | then : |
201 | as_have_required=yes |
187 | as_have_required=yes |
202 | else |
188 | else $as_nop |
203 | as_have_required=no |
189 | as_have_required=no |
204 | fi |
190 | fi |
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 |
|
|
192 | then : |
206 | |
193 | |
207 | else |
194 | else $as_nop |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
209 | as_found=false |
196 | as_found=false |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
211 | do |
198 | do |
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 |
|
|
213 | then : |
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 |
|
|
216 | then : |
224 | break 2 |
217 | break 2 |
225 | fi |
218 | fi |
226 | fi |
219 | fi |
227 | done;; |
220 | done;; |
228 | esac |
221 | esac |
229 | as_found=false |
222 | as_found=false |
230 | done |
223 | done |
|
|
224 | IFS=$as_save_IFS |
|
|
225 | if $as_found |
|
|
226 | then : |
|
|
227 | |
|
|
228 | else $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 |
|
|
231 | then : |
233 | CONFIG_SHELL=$SHELL as_have_required=yes |
232 | CONFIG_SHELL=$SHELL as_have_required=yes |
234 | fi; } |
233 | fi |
235 | IFS=$as_save_IFS |
234 | fi |
236 | |
235 | |
237 | |
236 | |
238 | if test "x$CONFIG_SHELL" != x; then : |
237 | if test "x$CONFIG_SHELL" != x |
|
|
238 | then : |
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= ;; |
252 | esac |
252 | esac |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
253 | exec $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 |
256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 | exit 255 |
257 | exit 255 |
258 | fi |
258 | fi |
259 | |
259 | |
260 | if test x$as_have_required = xno; then : |
260 | if test x$as_have_required = xno |
|
|
261 | then : |
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 | } |
292 | as_unset=as_fn_unset |
293 | as_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. |
297 | as_fn_set_status () |
299 | as_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 $?. |
|
|
316 | as_fn_nop () |
|
|
317 | { |
|
|
318 | return $? |
|
|
319 | } |
|
|
320 | as_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. |
315 | as_fn_mkdir_p () |
325 | as_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" | |
344 | printf "%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. |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
384 | then : |
374 | eval 'as_fn_append () |
385 | eval 'as_fn_append () |
375 | { |
386 | { |
376 | eval $1+=\$2 |
387 | eval $1+=\$2 |
377 | }' |
388 | }' |
378 | else |
389 | else $as_nop |
379 | as_fn_append () |
390 | as_fn_append () |
380 | { |
391 | { |
381 | eval $1=\$$1\$2 |
392 | eval $1=\$$1\$2 |
382 | } |
393 | } |
383 | fi # as_fn_append |
394 | fi # 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. |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
402 | then : |
391 | eval 'as_fn_arith () |
403 | eval 'as_fn_arith () |
392 | { |
404 | { |
393 | as_val=$(( $* )) |
405 | as_val=$(( $* )) |
394 | }' |
406 | }' |
395 | else |
407 | else $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 | } |
400 | fi # as_fn_arith |
412 | fi # as_fn_arith |
401 | |
413 | |
|
|
414 | # as_fn_nop |
|
|
415 | # --------- |
|
|
416 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
417 | as_fn_nop () |
|
|
418 | { |
|
|
419 | return $? |
|
|
420 | } |
|
|
421 | as_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 |
… | |
… | |
408 | as_fn_error () |
428 | as_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 | |
419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
… | |
… | |
437 | |
457 | |
438 | as_me=`$as_basename -- "$0" || |
458 | as_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" | |
462 | printf "%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. |
500 | ECHO_C= ECHO_N= ECHO_T= |
524 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( |
525 | case `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';; |
511 | esac |
535 | esac |
|
|
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. |
|
|
540 | as_echo='printf %s\n' |
|
|
541 | as_echo_n='printf %s' |
|
|
542 | |
512 | |
543 | |
513 | rm -f conf$$ conf$$.exe conf$$.file |
544 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then |
545 | if test -d conf$$.dir; then |
515 | rm -f conf$$.dir/conf$$.file |
546 | rm -f conf$$.dir/conf$$.file |
516 | else |
547 | else |
… | |
… | |
573 | subdirs= |
604 | subdirs= |
574 | MFLAGS= |
605 | MFLAGS= |
575 | MAKEFLAGS= |
606 | MAKEFLAGS= |
576 | |
607 | |
577 | # Identity of this package. |
608 | # Identity of this package. |
578 | PACKAGE_NAME= |
609 | PACKAGE_NAME='' |
579 | PACKAGE_TARNAME= |
610 | PACKAGE_TARNAME='' |
580 | PACKAGE_VERSION= |
611 | PACKAGE_VERSION='' |
581 | PACKAGE_STRING= |
612 | PACKAGE_STRING='' |
582 | PACKAGE_BUGREPORT= |
613 | PACKAGE_BUGREPORT='' |
583 | PACKAGE_URL= |
614 | PACKAGE_URL='' |
584 | |
615 | |
585 | ac_unique_file="src/feature.h" |
616 | ac_unique_file="src/feature.h" |
586 | # Factoring default headers for most tests. |
617 | # Factoring default headers for most tests. |
587 | ac_includes_default="\ |
618 | ac_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 | |
|
|
648 | ac_header_c_list= |
622 | ac_subst_vars='LTLIBOBJS |
649 | ac_subst_vars='LTLIBOBJS |
623 | LIBOBJS |
650 | LIBOBJS |
624 | PERL_O |
651 | PERL_O |
625 | IF_PERL |
652 | IF_PERL |
626 | PERLPRIVLIBEXP |
653 | PERLPRIVLIBEXP |
627 | PERLFLAGS |
654 | PERLFLAGS |
628 | PERLLIB |
655 | PERLLIB |
629 | PERL |
656 | PERL |
630 | XFT_CONFIG |
657 | XFT_CONFIG |
|
|
658 | EGREP |
|
|
659 | GREP |
631 | STARTUP_NOTIFICATION_LIBS |
660 | STARTUP_NOTIFICATION_LIBS |
632 | STARTUP_NOTIFICATION_CFLAGS |
661 | STARTUP_NOTIFICATION_CFLAGS |
633 | PIXBUF_LIBS |
662 | PIXBUF_LIBS |
634 | PIXBUF_CFLAGS |
663 | PIXBUF_CFLAGS |
|
|
664 | PTYTTY_LIBS |
|
|
665 | PTYTTY_CFLAGS |
635 | PKG_CONFIG |
666 | PKG_CONFIG |
636 | X_EXTRA_LIBS |
667 | X_EXTRA_LIBS |
637 | X_LIBS |
668 | X_LIBS |
638 | X_PRE_LIBS |
669 | X_PRE_LIBS |
639 | X_CFLAGS |
670 | X_CFLAGS |
|
|
671 | CXXCPP |
640 | XMKMF |
672 | XMKMF |
641 | TIC |
673 | TIC |
642 | CXXCPP |
|
|
643 | RXVTNAME |
674 | RXVTNAME |
644 | LINKER |
675 | LINKER |
645 | EGREP |
|
|
646 | GREP |
|
|
647 | CPP |
|
|
648 | INSTALL_DATA |
676 | INSTALL_DATA |
649 | INSTALL_SCRIPT |
677 | INSTALL_SCRIPT |
650 | INSTALL_PROGRAM |
678 | INSTALL_PROGRAM |
651 | ac_ct_CXX |
679 | ac_ct_CXX |
652 | CXXFLAGS |
680 | CXXFLAGS |
… | |
… | |
658 | LDFLAGS |
686 | LDFLAGS |
659 | CFLAGS |
687 | CFLAGS |
660 | CC |
688 | CC |
661 | DATE |
689 | DATE |
662 | VERSION |
690 | VERSION |
663 | host_os |
|
|
664 | host_vendor |
|
|
665 | host_cpu |
|
|
666 | host |
|
|
667 | build_os |
|
|
668 | build_vendor |
|
|
669 | build_cpu |
|
|
670 | build |
|
|
671 | target_alias |
691 | target_alias |
672 | host_alias |
692 | host_alias |
673 | build_alias |
693 | build_alias |
674 | LIBS |
694 | LIBS |
675 | ECHO_T |
695 | ECHO_T |
… | |
… | |
747 | enable_text_blink |
767 | enable_text_blink |
748 | enable_pointer_blank |
768 | enable_pointer_blank |
749 | with_term |
769 | with_term |
750 | with_terminfo |
770 | with_terminfo |
751 | with_x |
771 | with_x |
752 | enable_utmp |
|
|
753 | enable_wtmp |
|
|
754 | enable_lastlog |
|
|
755 | ' |
772 | ' |
756 | ac_precious_vars='build_alias |
773 | ac_precious_vars='build_alias |
757 | host_alias |
774 | host_alias |
758 | target_alias |
775 | target_alias |
759 | CC |
776 | CC |
… | |
… | |
762 | LIBS |
779 | LIBS |
763 | CPPFLAGS |
780 | CPPFLAGS |
764 | CXX |
781 | CXX |
765 | CXXFLAGS |
782 | CXXFLAGS |
766 | CCC |
783 | CCC |
767 | CPP |
784 | XMKMF |
768 | CXXCPP |
785 | CXXCPP' |
769 | XMKMF' |
|
|
770 | |
786 | |
771 | |
787 | |
772 | # Initialize some variables set by options. |
788 | # Initialize some variables set by options. |
773 | ac_init_help= |
789 | ac_init_help= |
774 | ac_init_version=false |
790 | ac_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 |
1188 | done |
1202 | done |
… | |
… | |
1194 | |
1208 | |
1195 | if test -n "$ac_unrecognized_opts"; then |
1209 | if 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 |
1201 | fi |
1215 | fi |
1202 | |
1216 | |
1203 | # Check all directory arguments for consistency. |
1217 | # Check all directory arguments for consistency. |
1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1218 | for 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" | |
1277 | printf "%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 | |
1378 | X features: |
1392 | X 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 | |
|
|
1382 | System 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 |
1386 | fi |
1396 | fi |
1387 | |
1397 | |
1388 | if test -n "$ac_init_help"; then |
1398 | if 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 | |
1433 | Optional Packages: |
1440 | Optional 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 | |
1458 | Use these variables to override the choices made by `configure' or to help |
1464 | Use these variables to override the choices made by `configure' or to help |
1459 | it to find libraries and programs with nonstandard names/locations. |
1465 | it to find libraries and programs with nonstandard names/locations. |
1460 | |
1466 | |
1461 | Report bugs to the package provider. |
1467 | Report bugs to the package provider. |
… | |
… | |
1472 | ac_builddir=. |
1478 | ac_builddir=. |
1473 | |
1479 | |
1474 | case "$ac_dir" in |
1480 | case "$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 ;; |
1484 | esac |
1490 | esac |
… | |
… | |
1502 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1508 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1503 | esac |
1509 | esac |
1504 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1510 | ac_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 |
1519 | fi |
1526 | fi |
1520 | |
1527 | |
1521 | test -n "$ac_init_help" && exit $ac_status |
1528 | test -n "$ac_init_help" && exit $ac_status |
1522 | if $ac_init_version; then |
1529 | if $ac_init_version; then |
1523 | cat <<\_ACEOF |
1530 | cat <<\_ACEOF |
1524 | configure |
1531 | configure |
1525 | generated by GNU Autoconf 2.69 |
1532 | generated by GNU Autoconf 2.71 |
1526 | |
1533 | |
1527 | Copyright (C) 2012 Free Software Foundation, Inc. |
1534 | Copyright (C) 2021 Free Software Foundation, Inc. |
1528 | This configure script is free software; the Free Software Foundation |
1535 | This configure script is free software; the Free Software Foundation |
1529 | gives unlimited permission to copy, distribute and modify it. |
1536 | gives unlimited permission to copy, distribute and modify it. |
1530 | _ACEOF |
1537 | _ACEOF |
1531 | exit |
1538 | exit |
1532 | fi |
1539 | fi |
… | |
… | |
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. |
1541 | ac_fn_c_try_compile () |
1548 | ac_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" |
1546 | case "(($ac_try" in |
1553 | case "(($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;; |
1549 | esac |
1556 | esac |
1550 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1551 | $as_echo "$ac_try_echo"; } >&5 |
1558 | printf "%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 |
|
|
1571 | then : |
1564 | ac_retval=0 |
1572 | ac_retval=0 |
1565 | else |
1573 | else $as_nop |
1566 | $as_echo "$as_me: failed program was:" >&5 |
1574 | printf "%s\n" "$as_me: failed program was:" >&5 |
1567 | sed 's/^/| /' conftest.$ac_ext >&5 |
1575 | sed 's/^/| /' conftest.$ac_ext >&5 |
1568 | |
1576 | |
1569 | ac_retval=1 |
1577 | ac_retval=1 |
1570 | fi |
1578 | fi |
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. |
1579 | ac_fn_cxx_try_compile () |
1587 | ac_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" |
1584 | case "(($ac_try" in |
1592 | case "(($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;; |
1587 | esac |
1595 | esac |
1588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1589 | $as_echo "$ac_try_echo"; } >&5 |
1597 | printf "%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 |
|
|
1610 | then : |
1602 | ac_retval=0 |
1611 | ac_retval=0 |
1603 | else |
1612 | else $as_nop |
1604 | $as_echo "$as_me: failed program was:" >&5 |
1613 | printf "%s\n" "$as_me: failed program was:" >&5 |
1605 | sed 's/^/| /' conftest.$ac_ext >&5 |
1614 | sed 's/^/| /' conftest.$ac_ext >&5 |
1606 | |
1615 | |
1607 | ac_retval=1 |
1616 | ac_retval=1 |
1608 | fi |
1617 | fi |
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 |
1617 | ac_fn_c_try_cpp () |
1626 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1627 | ac_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" |
|
|
1621 | case "(($ac_try" in |
|
|
1622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1623 | *) ac_try_echo=$ac_try;; |
|
|
1624 | esac |
|
|
1625 | eval 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 |
|
|
1640 | else |
|
|
1641 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1642 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1643 | |
|
|
1644 | ac_retval=1 |
|
|
1645 | fi |
|
|
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. |
|
|
1656 | ac_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; } |
1631 | printf %s "checking for $2... " >&6; } |
1662 | if eval \${$3+:} false; then : |
1632 | if eval test \${$3+y} |
1663 | $as_echo_n "(cached) " >&6 |
1633 | then : |
1664 | fi |
1634 | printf %s "(cached) " >&6 |
1665 | eval ac_res=\$$3 |
1635 | else $as_nop |
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1667 | $as_echo "$ac_res" >&6; } |
|
|
1668 | else |
|
|
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; } |
|
|
1672 | cat 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 |
1677 | if ac_fn_c_try_compile "$LINENO"; then : |
1641 | if ac_fn_c_try_compile "$LINENO" |
1678 | ac_header_compiler=yes |
1642 | then : |
1679 | else |
1643 | eval "$3=yes" |
1680 | ac_header_compiler=no |
1644 | else $as_nop |
|
|
1645 | eval "$3=no" |
1681 | fi |
1646 | fi |
1682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1647 | rm -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; } |
|
|
1689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1690 | /* end confdefs.h. */ |
|
|
1691 | #include <$2> |
|
|
1692 | _ACEOF |
|
|
1693 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
1694 | ac_header_preproc=yes |
|
|
1695 | else |
|
|
1696 | ac_header_preproc=no |
|
|
1697 | fi |
|
|
1698 | rm -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? |
|
|
1703 | case $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 | ;; |
|
|
1722 | esac |
|
|
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1724 | $as_echo_n "checking for $2... " >&6; } |
|
|
1725 | if eval \${$3+:} false; then : |
|
|
1726 | $as_echo_n "(cached) " >&6 |
|
|
1727 | else |
|
|
1728 | eval "$3=\$ac_header_compiler" |
|
|
1729 | fi |
1648 | fi |
1730 | eval ac_res=\$$3 |
1649 | eval 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; } |
1651 | printf "%s\n" "$ac_res" >&6; } |
1733 | fi |
|
|
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. |
|
|
1742 | ac_fn_c_try_run () |
1659 | ac_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" |
1746 | case "(($ac_try" in |
1664 | case "(($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;; |
1749 | esac |
1667 | esac |
1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1751 | $as_echo "$ac_try_echo"; } >&5 |
1669 | printf "%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;; |
|
|
1759 | esac |
|
|
1760 | eval 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 |
|
|
1767 | else |
|
|
1768 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
|
1769 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1770 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1771 | |
|
|
1772 | ac_retval=$ac_status |
|
|
1773 | fi |
|
|
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. |
|
|
1784 | ac_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; } |
|
|
1789 | if eval \${$3+:} false; then : |
|
|
1790 | $as_echo_n "(cached) " >&6 |
|
|
1791 | else |
|
|
1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1793 | /* end confdefs.h. */ |
|
|
1794 | $4 |
|
|
1795 | #include <$2> |
|
|
1796 | _ACEOF |
|
|
1797 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
1798 | eval "$3=yes" |
|
|
1799 | else |
|
|
1800 | eval "$3=no" |
|
|
1801 | fi |
|
|
1802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
1803 | fi |
|
|
1804 | eval 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. |
|
|
1814 | ac_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" |
|
|
1819 | case "(($ac_try" in |
|
|
1820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1821 | *) ac_try_echo=$ac_try;; |
|
|
1822 | esac |
|
|
1823 | eval 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 | } |
|
|
1685 | then : |
1840 | ac_retval=0 |
1686 | ac_retval=0 |
1841 | else |
1687 | else $as_nop |
1842 | $as_echo "$as_me: failed program was:" >&5 |
1688 | printf "%s\n" "$as_me: failed program was:" >&5 |
1843 | sed 's/^/| /' conftest.$ac_ext >&5 |
1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
1844 | |
1690 | |
1845 | ac_retval=1 |
1691 | ac_retval=1 |
1846 | fi |
1692 | fi |
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 |
1860 | ac_fn_cxx_try_link () |
1706 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1707 | ac_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" |
|
|
1865 | case "(($ac_try" in |
|
|
1866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1867 | *) ac_try_echo=$ac_try;; |
|
|
1868 | esac |
|
|
1869 | eval 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 |
|
|
1887 | else |
|
|
1888 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1889 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1890 | |
|
|
1891 | ac_retval=1 |
|
|
1892 | fi |
|
|
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. |
|
|
1906 | ac_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" |
|
|
1910 | case "(($ac_try" in |
|
|
1911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1912 | *) ac_try_echo=$ac_try;; |
|
|
1913 | esac |
|
|
1914 | eval 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 |
|
|
1929 | else |
|
|
1930 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1931 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1932 | |
|
|
1933 | ac_retval=1 |
|
|
1934 | fi |
|
|
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. |
|
|
1945 | ac_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; } |
1711 | printf %s "checking for $2... " >&6; } |
1951 | if eval \${$3+:} false; then : |
1712 | if eval test \${$3+y} |
1952 | $as_echo_n "(cached) " >&6 |
1713 | then : |
1953 | fi |
1714 | printf %s "(cached) " >&6 |
1954 | eval ac_res=\$$3 |
1715 | else $as_nop |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1956 | $as_echo "$ac_res" >&6; } |
|
|
1957 | else |
|
|
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; } |
|
|
1961 | cat 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 |
1966 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1721 | if ac_fn_cxx_try_compile "$LINENO" |
1967 | ac_header_compiler=yes |
1722 | then : |
1968 | else |
1723 | eval "$3=yes" |
1969 | ac_header_compiler=no |
1724 | else $as_nop |
|
|
1725 | eval "$3=no" |
1970 | fi |
1726 | fi |
1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1727 | rm -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; } |
|
|
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1979 | /* end confdefs.h. */ |
|
|
1980 | #include <$2> |
|
|
1981 | _ACEOF |
|
|
1982 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
|
1983 | ac_header_preproc=yes |
|
|
1984 | else |
|
|
1985 | ac_header_preproc=no |
|
|
1986 | fi |
|
|
1987 | rm -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? |
|
|
1992 | case $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 | ;; |
|
|
2011 | esac |
|
|
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
2013 | $as_echo_n "checking for $2... " >&6; } |
|
|
2014 | if eval \${$3+:} false; then : |
|
|
2015 | $as_echo_n "(cached) " >&6 |
|
|
2016 | else |
|
|
2017 | eval "$3=\$ac_header_compiler" |
|
|
2018 | fi |
1728 | fi |
2019 | eval ac_res=\$$3 |
1729 | eval 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; } |
1731 | printf "%s\n" "$ac_res" >&6; } |
2022 | fi |
|
|
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 |
2030 | ac_fn_cxx_check_func () |
1739 | ac_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; } |
1743 | printf %s "checking for $2... " >&6; } |
2035 | if eval \${$3+:} false; then : |
1744 | if eval test \${$3+y} |
2036 | $as_echo_n "(cached) " >&6 |
1745 | then : |
2037 | else |
1746 | printf %s "(cached) " >&6 |
|
|
1747 | else $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 |
2068 | choke me |
1771 | choke me |
2069 | #endif |
1772 | #endif |
2070 | |
1773 | |
2071 | int |
1774 | int |
2072 | main () |
1775 | main (void) |
2073 | { |
1776 | { |
2074 | return $2 (); |
1777 | return $2 (); |
2075 | ; |
1778 | ; |
2076 | return 0; |
1779 | return 0; |
2077 | } |
1780 | } |
2078 | _ACEOF |
1781 | _ACEOF |
2079 | if ac_fn_cxx_try_link "$LINENO"; then : |
1782 | if ac_fn_cxx_try_link "$LINENO" |
|
|
1783 | then : |
2080 | eval "$3=yes" |
1784 | eval "$3=yes" |
2081 | else |
1785 | else $as_nop |
2082 | eval "$3=no" |
1786 | eval "$3=no" |
2083 | fi |
1787 | fi |
2084 | rm -f core conftest.err conftest.$ac_objext \ |
1788 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2085 | conftest$ac_exeext conftest.$ac_ext |
1789 | conftest$ac_exeext conftest.$ac_ext |
2086 | fi |
1790 | fi |
2087 | eval ac_res=\$$3 |
1791 | eval 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; } |
1793 | printf "%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. |
2098 | ac_fn_cxx_check_type () |
1802 | ac_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; } |
1806 | printf %s "checking for $2... " >&6; } |
2103 | if eval \${$3+:} false; then : |
1807 | if eval test \${$3+y} |
2104 | $as_echo_n "(cached) " >&6 |
1808 | then : |
2105 | else |
1809 | printf %s "(cached) " >&6 |
|
|
1810 | else $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 |
2110 | int |
1815 | int |
2111 | main () |
1816 | main (void) |
2112 | { |
1817 | { |
2113 | if (sizeof ($2)) |
1818 | if (sizeof ($2)) |
2114 | return 0; |
1819 | return 0; |
2115 | ; |
1820 | ; |
2116 | return 0; |
1821 | return 0; |
2117 | } |
1822 | } |
2118 | _ACEOF |
1823 | _ACEOF |
2119 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1824 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1825 | then : |
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 |
2123 | int |
1829 | int |
2124 | main () |
1830 | main (void) |
2125 | { |
1831 | { |
2126 | if (sizeof (($2))) |
1832 | if (sizeof (($2))) |
2127 | return 0; |
1833 | return 0; |
2128 | ; |
1834 | ; |
2129 | return 0; |
1835 | return 0; |
2130 | } |
1836 | } |
2131 | _ACEOF |
1837 | _ACEOF |
2132 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1838 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1839 | then : |
2133 | |
1840 | |
2134 | else |
1841 | else $as_nop |
2135 | eval "$3=yes" |
1842 | eval "$3=yes" |
2136 | fi |
1843 | fi |
2137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1844 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2138 | fi |
1845 | fi |
2139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1846 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2140 | fi |
1847 | fi |
2141 | eval ac_res=\$$3 |
1848 | eval 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; } |
1850 | printf "%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. |
|
|
1858 | ac_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" |
|
|
1862 | case "(($ac_try" in |
|
|
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1864 | *) ac_try_echo=$ac_try;; |
|
|
1865 | esac |
|
|
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1867 | printf "%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 | } |
|
|
1880 | then : |
|
|
1881 | ac_retval=0 |
|
|
1882 | else $as_nop |
|
|
1883 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1884 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1885 | |
|
|
1886 | ac_retval=1 |
|
|
1887 | fi |
|
|
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. |
2152 | ac_fn_c_find_intX_t () |
1897 | ac_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; } |
1901 | printf %s "checking for int$2_t... " >&6; } |
2157 | if eval \${$3+:} false; then : |
1902 | if eval test \${$3+y} |
2158 | $as_echo_n "(cached) " >&6 |
1903 | then : |
2159 | else |
1904 | printf %s "(cached) " >&6 |
|
|
1905 | else $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 }; |
2169 | int |
1915 | int |
2170 | main () |
1916 | main (void) |
2171 | { |
1917 | { |
2172 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
1918 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2173 | test_array [0] = 0; |
1919 | test_array [0] = 0; |
2174 | return test_array [0]; |
1920 | return test_array [0]; |
2175 | |
1921 | |
2176 | ; |
1922 | ; |
2177 | return 0; |
1923 | return 0; |
2178 | } |
1924 | } |
2179 | _ACEOF |
1925 | _ACEOF |
2180 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1926 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1927 | then : |
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 }; |
2185 | int |
1932 | int |
2186 | main () |
1933 | main (void) |
2187 | { |
1934 | { |
2188 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
1935 | static 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))]; |
2190 | test_array [0] = 0; |
1937 | test_array [0] = 0; |
2191 | return test_array [0]; |
1938 | return test_array [0]; |
2192 | |
1939 | |
2193 | ; |
1940 | ; |
2194 | return 0; |
1941 | return 0; |
2195 | } |
1942 | } |
2196 | _ACEOF |
1943 | _ACEOF |
2197 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1944 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1945 | then : |
2198 | |
1946 | |
2199 | else |
1947 | else $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" ;; |
2205 | esac |
1953 | esac |
2206 | fi |
1954 | fi |
2207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1955 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2208 | fi |
1956 | fi |
2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1957 | rm -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" |
|
|
1959 | then : |
2211 | |
1960 | |
2212 | else |
1961 | else $as_nop |
2213 | break |
1962 | break |
2214 | fi |
1963 | fi |
2215 | done |
1964 | done |
2216 | fi |
1965 | fi |
2217 | eval ac_res=\$$3 |
1966 | eval 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; } |
1968 | printf "%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. |
2228 | ac_fn_c_find_uintX_t () |
1977 | ac_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; } |
1981 | printf %s "checking for uint$2_t... " >&6; } |
2233 | if eval \${$3+:} false; then : |
1982 | if eval test \${$3+y} |
2234 | $as_echo_n "(cached) " >&6 |
1983 | then : |
2235 | else |
1984 | printf %s "(cached) " >&6 |
|
|
1985 | else $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 |
2244 | int |
1994 | int |
2245 | main () |
1995 | main (void) |
2246 | { |
1996 | { |
2247 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
1997 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2248 | test_array [0] = 0; |
1998 | test_array [0] = 0; |
2249 | return test_array [0]; |
1999 | return test_array [0]; |
2250 | |
2000 | |
2251 | ; |
2001 | ; |
2252 | return 0; |
2002 | return 0; |
2253 | } |
2003 | } |
2254 | _ACEOF |
2004 | _ACEOF |
2255 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2005 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2006 | then : |
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" ;; |
2261 | esac |
2012 | esac |
2262 | fi |
2013 | fi |
2263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2014 | rm -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" |
|
|
2016 | then : |
2265 | |
2017 | |
2266 | else |
2018 | else $as_nop |
2267 | break |
2019 | break |
2268 | fi |
2020 | fi |
2269 | done |
2021 | done |
2270 | fi |
2022 | fi |
2271 | eval ac_res=\$$3 |
2023 | eval 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; } |
2025 | printf "%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. |
|
|
2282 | ac_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; } |
|
|
2287 | if eval \${$4+:} false; then : |
|
|
2288 | $as_echo_n "(cached) " >&6 |
|
|
2289 | else |
|
|
2290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2291 | /* end confdefs.h. */ |
|
|
2292 | $5 |
|
|
2293 | int |
|
|
2294 | main () |
|
|
2295 | { |
|
|
2296 | static $2 ac_aggr; |
|
|
2297 | if (ac_aggr.$3) |
|
|
2298 | return 0; |
|
|
2299 | ; |
|
|
2300 | return 0; |
|
|
2301 | } |
|
|
2302 | _ACEOF |
|
|
2303 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
2304 | eval "$4=yes" |
|
|
2305 | else |
|
|
2306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2307 | /* end confdefs.h. */ |
|
|
2308 | $5 |
|
|
2309 | int |
|
|
2310 | main () |
|
|
2311 | { |
|
|
2312 | static $2 ac_aggr; |
|
|
2313 | if (sizeof ac_aggr.$3) |
|
|
2314 | return 0; |
|
|
2315 | ; |
|
|
2316 | return 0; |
|
|
2317 | } |
|
|
2318 | _ACEOF |
|
|
2319 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
2320 | eval "$4=yes" |
|
|
2321 | else |
|
|
2322 | eval "$4=no" |
|
|
2323 | fi |
|
|
2324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2325 | fi |
|
|
2326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2327 | fi |
|
|
2328 | eval 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. |
2339 | ac_fn_cxx_try_run () |
2034 | ac_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" |
2343 | case "(($ac_try" in |
2038 | case "(($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;; |
2346 | esac |
2041 | esac |
2347 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2348 | $as_echo "$ac_try_echo"; } >&5 |
2043 | printf "%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;; |
2356 | esac |
2051 | esac |
2357 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2358 | $as_echo "$ac_try_echo"; } >&5 |
2053 | printf "%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; }; } |
|
|
2058 | then : |
2363 | ac_retval=0 |
2059 | ac_retval=0 |
2364 | else |
2060 | else $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 |
2367 | sed 's/^/| /' conftest.$ac_ext >&5 |
2063 | sed 's/^/| /' conftest.$ac_ext >&5 |
2368 | |
2064 | |
2369 | ac_retval=$ac_status |
2065 | ac_retval=$ac_status |
2370 | fi |
2066 | fi |
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 |
|
|
2072 | ac_configure_args_raw= |
|
|
2073 | for ac_arg |
|
|
2074 | do |
|
|
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'" |
|
|
2080 | done |
|
|
2081 | |
|
|
2082 | case $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"`;; |
|
|
2090 | esac |
|
|
2091 | |
2376 | cat >config.log <<_ACEOF |
2092 | cat >config.log <<_ACEOF |
2377 | This file contains any messages produced by compilers while |
2093 | This file contains any messages produced by compilers while |
2378 | running configure, to aid debugging if configure makes a mistake. |
2094 | running configure, to aid debugging if configure makes a mistake. |
2379 | |
2095 | |
2380 | It was created by $as_me, which was |
2096 | It was created by $as_me, which was |
2381 | generated by GNU Autoconf 2.69. Invocation command line was |
2097 | generated 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 |
2386 | exec 5>>config.log |
2102 | exec 5>>config.log |
2387 | { |
2103 | { |
2388 | cat <<_ASUNAME |
2104 | cat <<_ASUNAME |
… | |
… | |
2411 | |
2127 | |
2412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2413 | for as_dir in $PATH |
2129 | for as_dir in $PATH |
2414 | do |
2130 | do |
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 |
2419 | IFS=$as_save_IFS |
2139 | IFS=$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. |
2486 | trap 'exit_status=$? |
2206 | trap '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;} ;; |
2225 | printf "%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 |
… | |
… | |
2576 | ac_signal=0 |
2298 | ac_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. |
2579 | rm -f -r conftest* confdefs.h |
2301 | rm -f -r conftest* confdefs.h |
2580 | |
2302 | |
2581 | $as_echo "/* confdefs.h */" > confdefs.h |
2303 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
2582 | |
2304 | |
2583 | # Predefined preprocessor variables. |
2305 | # Predefined preprocessor variables. |
2584 | |
2306 | |
2585 | cat >>confdefs.h <<_ACEOF |
2307 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
2586 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
2587 | _ACEOF |
|
|
2588 | |
2308 | |
2589 | cat >>confdefs.h <<_ACEOF |
2309 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
2590 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
2591 | _ACEOF |
|
|
2592 | |
2310 | |
2593 | cat >>confdefs.h <<_ACEOF |
2311 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
2594 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
2595 | _ACEOF |
|
|
2596 | |
2312 | |
2597 | cat >>confdefs.h <<_ACEOF |
2313 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
2598 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
2599 | _ACEOF |
|
|
2600 | |
2314 | |
2601 | cat >>confdefs.h <<_ACEOF |
2315 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
2602 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
2603 | _ACEOF |
|
|
2604 | |
2316 | |
2605 | cat >>confdefs.h <<_ACEOF |
2317 | printf "%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. |
2612 | ac_site_file1=NONE |
|
|
2613 | ac_site_file2=NONE |
|
|
2614 | if test -n "$CONFIG_SITE"; then |
2322 | if 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 |
|
|
2621 | elif test "x$prefix" != xNONE; then |
2324 | elif 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 |
|
|
2624 | else |
2326 | else |
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 |
|
|
2627 | fi |
2328 | fi |
|
|
2329 | |
2628 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2330 | for ac_site_file in $ac_site_files |
2629 | do |
2331 | do |
2630 | test "x$ac_site_file" = xNONE && continue |
2332 | case $ac_site_file in #( |
|
|
2333 | */*) : |
|
|
2334 | ;; #( |
|
|
2335 | *) : |
|
|
2336 | ac_site_file=./$ac_site_file ;; |
|
|
2337 | esac |
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;} |
2340 | printf "%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;} |
2344 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2638 | as_fn_error $? "failed to load site script $ac_site_file |
2345 | as_fn_error $? "failed to load site script $ac_site_file |
2639 | See \`config.log' for more details" "$LINENO" 5; } |
2346 | See \`config.log' for more details" "$LINENO" 5; } |
2640 | fi |
2347 | fi |
2641 | done |
2348 | done |
2642 | |
2349 | |
2643 | if test -r "$cache_file"; then |
2350 | if 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;} |
2355 | printf "%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 |
2654 | else |
2361 | else |
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;} |
2363 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
2657 | >$cache_file |
2364 | >$cache_file |
|
|
2365 | fi |
|
|
2366 | |
|
|
2367 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
2368 | ac_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> |
|
|
2378 | struct stat; |
|
|
2379 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
2380 | struct buf { int x; }; |
|
|
2381 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2382 | static char *e (p, i) |
|
|
2383 | char **p; |
|
|
2384 | int i; |
|
|
2385 | { |
|
|
2386 | return p[i]; |
|
|
2387 | } |
|
|
2388 | static 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. */ |
|
|
2405 | int 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'\'' |
|
|
2410 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
2411 | |
|
|
2412 | int test (int i, double x); |
|
|
2413 | struct s1 {int (*f) (int a);}; |
|
|
2414 | struct s2 {int (*f) (double a);}; |
|
|
2415 | int 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). |
|
|
2419 | ac_c_conftest_c89_main=' |
|
|
2420 | ok |= (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) |
|
|
2424 | ac_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> |
|
|
2431 | extern int puts (const char *); |
|
|
2432 | extern int printf (const char *, ...); |
|
|
2433 | extern int dprintf (int, const char *, ...); |
|
|
2434 | extern 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__)) |
|
|
2442 | static void |
|
|
2443 | test_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 |
|
|
2464 | static long long int bignum = -9223372036854775807LL; |
|
|
2465 | static unsigned long long int ubignum = BIG64; |
|
|
2466 | |
|
|
2467 | struct incomplete_array |
|
|
2468 | { |
|
|
2469 | int datasize; |
|
|
2470 | double data[]; |
|
|
2471 | }; |
|
|
2472 | |
|
|
2473 | struct named_init { |
|
|
2474 | int number; |
|
|
2475 | const wchar_t *name; |
|
|
2476 | double average; |
|
|
2477 | }; |
|
|
2478 | |
|
|
2479 | typedef const char *ccp; |
|
|
2480 | |
|
|
2481 | static inline int |
|
|
2482 | test_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. |
|
|
2493 | static bool |
|
|
2494 | test_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). |
|
|
2530 | ac_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) |
|
|
2570 | ac_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. |
|
|
2577 | char _Alignas (double) aligned_as_double; |
|
|
2578 | char _Alignas (0) no_special_alignment; |
|
|
2579 | extern char aligned_as_int; |
|
|
2580 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2581 | |
|
|
2582 | // Check _Alignof. |
|
|
2583 | enum |
|
|
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. |
|
|
2592 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2593 | |
|
|
2594 | // Check _Static_assert. |
|
|
2595 | struct 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! |
|
|
2605 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2606 | |
|
|
2607 | // Check duplicate typedefs. |
|
|
2608 | typedef long *long_ptr; |
|
|
2609 | typedef long int *long_ptr; |
|
|
2610 | typedef long_ptr long_ptr; |
|
|
2611 | |
|
|
2612 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2613 | struct 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). |
|
|
2624 | ac_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). |
|
|
2634 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2635 | ${ac_c_conftest_c99_globals} |
|
|
2636 | ${ac_c_conftest_c11_globals} |
|
|
2637 | |
|
|
2638 | int |
|
|
2639 | main (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). |
|
|
2650 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2651 | ${ac_c_conftest_c99_globals} |
|
|
2652 | |
|
|
2653 | int |
|
|
2654 | main (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). |
|
|
2664 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2665 | |
|
|
2666 | int |
|
|
2667 | main (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) |
|
|
2676 | ac_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. |
|
|
2688 | extern void assert (int); |
|
|
2689 | namespace std { |
|
|
2690 | extern int strcmp (const char *, const char *); |
|
|
2691 | } |
|
|
2692 | |
|
|
2693 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
|
|
2694 | using std::exception; |
|
|
2695 | using std::strcmp; |
|
|
2696 | |
|
|
2697 | namespace { |
|
|
2698 | |
|
|
2699 | void 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 | |
|
|
2710 | template <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) |
|
|
2721 | ac_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) |
|
|
2733 | ac_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 | |
|
|
2739 | namespace 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) |
|
|
2797 | ac_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). |
|
|
2867 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2868 | ${ac_cxx_conftest_cxx11_globals} |
|
|
2869 | |
|
|
2870 | int |
|
|
2871 | main (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). |
|
|
2881 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2882 | int |
|
|
2883 | main (int argc, char **argv) |
|
|
2884 | { |
|
|
2885 | int ok = 0; |
|
|
2886 | ${ac_cxx_conftest_cxx98_main} |
|
|
2887 | return ok; |
|
|
2888 | } |
|
|
2889 | " |
|
|
2890 | |
|
|
2891 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
2892 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2893 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2894 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2895 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2896 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2897 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2898 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2899 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2900 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
|
|
2901 | as_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. |
|
|
2904 | ac_aux_files="install-sh" |
|
|
2905 | |
|
|
2906 | # Locations in which to look for auxiliary files. |
|
|
2907 | ac_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. |
|
|
2914 | ac_missing_aux_files="" |
|
|
2915 | ac_first_candidate=: |
|
|
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
|
|
2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2918 | as_found=false |
|
|
2919 | for as_dir in $ac_aux_dir_candidates |
|
|
2920 | do |
|
|
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 |
|
|
2976 | done |
|
|
2977 | IFS=$as_save_IFS |
|
|
2978 | if $as_found |
|
|
2979 | then : |
|
|
2980 | |
|
|
2981 | else $as_nop |
|
|
2982 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
|
|
2983 | fi |
|
|
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. |
|
|
2990 | if test -f "${ac_aux_dir}config.guess"; then |
|
|
2991 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
|
|
2992 | fi |
|
|
2993 | if test -f "${ac_aux_dir}config.sub"; then |
|
|
2994 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
|
|
2995 | fi |
|
|
2996 | if test -f "$ac_aux_dir/configure"; then |
|
|
2997 | ac_configure="$SHELL ${ac_aux_dir}configure" |
2658 | fi |
2998 | fi |
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. |
2662 | ac_cache_corrupted=false |
3002 | ac_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;} |
3011 | printf "%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;} |
3015 | printf "%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;} |
3025 | printf "%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;} |
3029 | printf "%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;} |
3033 | printf "%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;} |
3035 | printf "%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 |
2709 | done |
3049 | done |
2710 | if $ac_cache_corrupted; then |
3050 | if $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;} |
3052 | printf "%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;} |
3054 | printf "%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 |
2716 | fi |
3057 | fi |
2717 | ## -------------------- ## |
3058 | ## -------------------- ## |
2718 | ## Main body of script. ## |
3059 | ## Main body of script. ## |
2719 | ## -------------------- ## |
3060 | ## -------------------- ## |
2720 | |
3061 | |
… | |
… | |
2728 | |
3069 | |
2729 | |
3070 | |
2730 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
3071 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
2731 | |
3072 | |
2732 | |
3073 | |
2733 | ac_aux_dir= |
|
|
2734 | for 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 |
|
|
2748 | done |
|
|
2749 | if test -z "$ac_aux_dir"; then |
|
|
2750 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
|
|
2751 | fi |
|
|
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. |
|
|
2757 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
|
2758 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
|
2759 | ac_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; } |
|
|
2768 | if ${ac_cv_build+:} false; then : |
|
|
2769 | $as_echo_n "(cached) " >&6 |
|
|
2770 | else |
|
|
2771 | ac_build_alias=$build_alias |
|
|
2772 | test "x$ac_build_alias" = x && |
|
|
2773 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
|
2774 | test "x$ac_build_alias" = x && |
|
|
2775 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|
|
2776 | ac_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 | |
|
|
2779 | fi |
|
|
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
|
2781 | $as_echo "$ac_cv_build" >&6; } |
|
|
2782 | case $ac_cv_build in |
|
|
2783 | *-*-*) ;; |
|
|
2784 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|
|
2785 | esac |
|
|
2786 | build=$ac_cv_build |
|
|
2787 | ac_save_IFS=$IFS; IFS='-' |
|
|
2788 | set x $ac_cv_build |
|
|
2789 | shift |
|
|
2790 | build_cpu=$1 |
|
|
2791 | build_vendor=$2 |
|
|
2792 | shift; shift |
|
|
2793 | # Remember, the first character of IFS is used to create $*, |
|
|
2794 | # except with old shells: |
|
|
2795 | build_os=$* |
|
|
2796 | IFS=$ac_save_IFS |
|
|
2797 | case $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; } |
|
|
2802 | if ${ac_cv_host+:} false; then : |
|
|
2803 | $as_echo_n "(cached) " >&6 |
|
|
2804 | else |
|
|
2805 | if test "x$host_alias" = x; then |
|
|
2806 | ac_cv_host=$ac_cv_build |
|
|
2807 | else |
|
|
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 |
|
|
2810 | fi |
|
|
2811 | |
|
|
2812 | fi |
|
|
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
|
2814 | $as_echo "$ac_cv_host" >&6; } |
|
|
2815 | case $ac_cv_host in |
|
|
2816 | *-*-*) ;; |
|
|
2817 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|
|
2818 | esac |
|
|
2819 | host=$ac_cv_host |
|
|
2820 | ac_save_IFS=$IFS; IFS='-' |
|
|
2821 | set x $ac_cv_host |
|
|
2822 | shift |
|
|
2823 | host_cpu=$1 |
|
|
2824 | host_vendor=$2 |
|
|
2825 | shift; shift |
|
|
2826 | # Remember, the first character of IFS is used to create $*, |
|
|
2827 | # except with old shells: |
|
|
2828 | host_os=$* |
|
|
2829 | IFS=$ac_save_IFS |
|
|
2830 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
|
2831 | |
|
|
2832 | |
|
|
2833 | |
|
|
2834 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3074 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2835 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3075 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2836 | |
3076 | |
2837 | echo "" |
3077 | echo "" |
2838 | echo "configuring for rxvt $VERSION" |
3078 | echo "configuring for rxvt $VERSION" |
2839 | echo "" |
3079 | echo "" |
2840 | |
3080 | |
2841 | orig_CXXFLAGS="$CXXFLAGS" |
3081 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
3082 | |
|
|
3083 | |
|
|
3084 | |
|
|
3085 | |
|
|
3086 | |
|
|
3087 | |
|
|
3088 | |
|
|
3089 | |
|
|
3090 | |
2842 | |
3091 | |
2843 | ac_ext=c |
3092 | ac_ext=c |
2844 | ac_cpp='$CPP $CPPFLAGS' |
3093 | ac_cpp='$CPP $CPPFLAGS' |
2845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2848 | if test -n "$ac_tool_prefix"; then |
3097 | if 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. |
2850 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3099 | set 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; } |
3101 | printf %s "checking for $ac_word... " >&6; } |
2853 | if ${ac_cv_prog_CC+:} false; then : |
3102 | if test ${ac_cv_prog_CC+y} |
2854 | $as_echo_n "(cached) " >&6 |
3103 | then : |
2855 | else |
3104 | printf %s "(cached) " >&6 |
|
|
3105 | else $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. |
2858 | else |
3108 | else |
2859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2860 | for as_dir in $PATH |
3110 | for as_dir in $PATH |
2861 | do |
3111 | do |
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 |
2870 | done |
3124 | done |
2871 | done |
3125 | done |
2872 | IFS=$as_save_IFS |
3126 | IFS=$as_save_IFS |
2873 | |
3127 | |
2874 | fi |
3128 | fi |
2875 | fi |
3129 | fi |
2876 | CC=$ac_cv_prog_CC |
3130 | CC=$ac_cv_prog_CC |
2877 | if test -n "$CC"; then |
3131 | if 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; } |
3133 | printf "%s\n" "$CC" >&6; } |
2880 | else |
3134 | else |
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; } |
3136 | printf "%s\n" "no" >&6; } |
2883 | fi |
3137 | fi |
2884 | |
3138 | |
2885 | |
3139 | |
2886 | fi |
3140 | fi |
2887 | if test -z "$ac_cv_prog_CC"; then |
3141 | if 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. |
2890 | set dummy gcc; ac_word=$2 |
3144 | set 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; } |
3146 | printf %s "checking for $ac_word... " >&6; } |
2893 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3147 | if test ${ac_cv_prog_ac_ct_CC+y} |
2894 | $as_echo_n "(cached) " >&6 |
3148 | then : |
2895 | else |
3149 | printf %s "(cached) " >&6 |
|
|
3150 | else $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. |
2898 | else |
3153 | else |
2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2900 | for as_dir in $PATH |
3155 | for as_dir in $PATH |
2901 | do |
3156 | do |
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 |
2910 | done |
3169 | done |
2911 | done |
3170 | done |
2912 | IFS=$as_save_IFS |
3171 | IFS=$as_save_IFS |
2913 | |
3172 | |
2914 | fi |
3173 | fi |
2915 | fi |
3174 | fi |
2916 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3175 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2917 | if test -n "$ac_ct_CC"; then |
3176 | if 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; } |
3178 | printf "%s\n" "$ac_ct_CC" >&6; } |
2920 | else |
3179 | else |
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; } |
3181 | printf "%s\n" "no" >&6; } |
2923 | fi |
3182 | fi |
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 |
2929 | yes:) |
3188 | yes:) |
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;} |
3190 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2932 | ac_tool_warned=yes ;; |
3191 | ac_tool_warned=yes ;; |
2933 | esac |
3192 | esac |
2934 | CC=$ac_ct_CC |
3193 | CC=$ac_ct_CC |
2935 | fi |
3194 | fi |
2936 | else |
3195 | else |
… | |
… | |
2939 | |
3198 | |
2940 | if test -z "$CC"; then |
3199 | if 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. |
2943 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3202 | set 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; } |
3204 | printf %s "checking for $ac_word... " >&6; } |
2946 | if ${ac_cv_prog_CC+:} false; then : |
3205 | if test ${ac_cv_prog_CC+y} |
2947 | $as_echo_n "(cached) " >&6 |
3206 | then : |
2948 | else |
3207 | printf %s "(cached) " >&6 |
|
|
3208 | else $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. |
2951 | else |
3211 | else |
2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2953 | for as_dir in $PATH |
3213 | for as_dir in $PATH |
2954 | do |
3214 | do |
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 |
2963 | done |
3227 | done |
2964 | done |
3228 | done |
2965 | IFS=$as_save_IFS |
3229 | IFS=$as_save_IFS |
2966 | |
3230 | |
2967 | fi |
3231 | fi |
2968 | fi |
3232 | fi |
2969 | CC=$ac_cv_prog_CC |
3233 | CC=$ac_cv_prog_CC |
2970 | if test -n "$CC"; then |
3234 | if 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; } |
3236 | printf "%s\n" "$CC" >&6; } |
2973 | else |
3237 | else |
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; } |
3239 | printf "%s\n" "no" >&6; } |
2976 | fi |
3240 | fi |
2977 | |
3241 | |
2978 | |
3242 | |
2979 | fi |
3243 | fi |
2980 | fi |
3244 | fi |
2981 | if test -z "$CC"; then |
3245 | if 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. |
2983 | set dummy cc; ac_word=$2 |
3247 | set 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; } |
3249 | printf %s "checking for $ac_word... " >&6; } |
2986 | if ${ac_cv_prog_CC+:} false; then : |
3250 | if test ${ac_cv_prog_CC+y} |
2987 | $as_echo_n "(cached) " >&6 |
3251 | then : |
2988 | else |
3252 | printf %s "(cached) " >&6 |
|
|
3253 | else $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. |
2991 | else |
3256 | else |
2992 | ac_prog_rejected=no |
3257 | ac_prog_rejected=no |
2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2994 | for as_dir in $PATH |
3259 | for as_dir in $PATH |
2995 | do |
3260 | do |
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 |
3008 | done |
3277 | done |
3009 | done |
3278 | done |
3010 | IFS=$as_save_IFS |
3279 | IFS=$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 |
3023 | fi |
3292 | fi |
3024 | fi |
3293 | fi |
3025 | fi |
3294 | fi |
3026 | CC=$ac_cv_prog_CC |
3295 | CC=$ac_cv_prog_CC |
3027 | if test -n "$CC"; then |
3296 | if 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; } |
3298 | printf "%s\n" "$CC" >&6; } |
3030 | else |
3299 | else |
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; } |
3301 | printf "%s\n" "no" >&6; } |
3033 | fi |
3302 | fi |
3034 | |
3303 | |
3035 | |
3304 | |
3036 | fi |
3305 | fi |
3037 | if test -z "$CC"; then |
3306 | if 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. |
3042 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3311 | set 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; } |
3313 | printf %s "checking for $ac_word... " >&6; } |
3045 | if ${ac_cv_prog_CC+:} false; then : |
3314 | if test ${ac_cv_prog_CC+y} |
3046 | $as_echo_n "(cached) " >&6 |
3315 | then : |
3047 | else |
3316 | printf %s "(cached) " >&6 |
|
|
3317 | else $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. |
3050 | else |
3320 | else |
3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3052 | for as_dir in $PATH |
3322 | for as_dir in $PATH |
3053 | do |
3323 | do |
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 |
3062 | done |
3336 | done |
3063 | done |
3337 | done |
3064 | IFS=$as_save_IFS |
3338 | IFS=$as_save_IFS |
3065 | |
3339 | |
3066 | fi |
3340 | fi |
3067 | fi |
3341 | fi |
3068 | CC=$ac_cv_prog_CC |
3342 | CC=$ac_cv_prog_CC |
3069 | if test -n "$CC"; then |
3343 | if 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; } |
3345 | printf "%s\n" "$CC" >&6; } |
3072 | else |
3346 | else |
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; } |
3348 | printf "%s\n" "no" >&6; } |
3075 | fi |
3349 | fi |
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 |
3084 | do |
3358 | do |
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. |
3086 | set dummy $ac_prog; ac_word=$2 |
3360 | set 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; } |
3362 | printf %s "checking for $ac_word... " >&6; } |
3089 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3363 | if test ${ac_cv_prog_ac_ct_CC+y} |
3090 | $as_echo_n "(cached) " >&6 |
3364 | then : |
3091 | else |
3365 | printf %s "(cached) " >&6 |
|
|
3366 | else $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. |
3094 | else |
3369 | else |
3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3096 | for as_dir in $PATH |
3371 | for as_dir in $PATH |
3097 | do |
3372 | do |
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 |
3106 | done |
3385 | done |
3107 | done |
3386 | done |
3108 | IFS=$as_save_IFS |
3387 | IFS=$as_save_IFS |
3109 | |
3388 | |
3110 | fi |
3389 | fi |
3111 | fi |
3390 | fi |
3112 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3113 | if test -n "$ac_ct_CC"; then |
3392 | if 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; } |
3394 | printf "%s\n" "$ac_ct_CC" >&6; } |
3116 | else |
3395 | else |
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; } |
3397 | printf "%s\n" "no" >&6; } |
3119 | fi |
3398 | fi |
3120 | |
3399 | |
3121 | |
3400 | |
3122 | test -n "$ac_ct_CC" && break |
3401 | test -n "$ac_ct_CC" && break |
3123 | done |
3402 | done |
… | |
… | |
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 |
3129 | yes:) |
3408 | yes:) |
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;} |
3410 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3132 | ac_tool_warned=yes ;; |
3411 | ac_tool_warned=yes ;; |
3133 | esac |
3412 | esac |
3134 | CC=$ac_ct_CC |
3413 | CC=$ac_ct_CC |
3135 | fi |
3414 | fi |
3136 | fi |
3415 | fi |
3137 | |
3416 | |
3138 | fi |
3417 | fi |
|
|
3418 | if 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. |
|
|
3421 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
3422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3423 | printf %s "checking for $ac_word... " >&6; } |
|
|
3424 | if test ${ac_cv_prog_CC+y} |
|
|
3425 | then : |
|
|
3426 | printf %s "(cached) " >&6 |
|
|
3427 | else $as_nop |
|
|
3428 | if test -n "$CC"; then |
|
|
3429 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3430 | else |
|
|
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3432 | for as_dir in $PATH |
|
|
3433 | do |
|
|
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 |
|
|
3446 | done |
|
|
3447 | done |
|
|
3448 | IFS=$as_save_IFS |
3139 | |
3449 | |
|
|
3450 | fi |
|
|
3451 | fi |
|
|
3452 | CC=$ac_cv_prog_CC |
|
|
3453 | if test -n "$CC"; then |
|
|
3454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3455 | printf "%s\n" "$CC" >&6; } |
|
|
3456 | else |
|
|
3457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3458 | printf "%s\n" "no" >&6; } |
|
|
3459 | fi |
3140 | |
3460 | |
|
|
3461 | |
|
|
3462 | fi |
|
|
3463 | if 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. |
|
|
3466 | set dummy clang; ac_word=$2 |
|
|
3467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3468 | printf %s "checking for $ac_word... " >&6; } |
|
|
3469 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3470 | then : |
|
|
3471 | printf %s "(cached) " >&6 |
|
|
3472 | else $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. |
|
|
3475 | else |
|
|
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3477 | for as_dir in $PATH |
|
|
3478 | do |
|
|
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 |
|
|
3491 | done |
|
|
3492 | done |
|
|
3493 | IFS=$as_save_IFS |
|
|
3494 | |
|
|
3495 | fi |
|
|
3496 | fi |
|
|
3497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3498 | if test -n "$ac_ct_CC"; then |
|
|
3499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3500 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3501 | else |
|
|
3502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3503 | printf "%s\n" "no" >&6; } |
|
|
3504 | fi |
|
|
3505 | |
|
|
3506 | if test "x$ac_ct_CC" = x; then |
|
|
3507 | CC="" |
|
|
3508 | else |
|
|
3509 | case $cross_compiling:$ac_tool_warned in |
|
|
3510 | yes:) |
|
|
3511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3512 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3513 | ac_tool_warned=yes ;; |
|
|
3514 | esac |
|
|
3515 | CC=$ac_ct_CC |
|
|
3516 | fi |
|
|
3517 | else |
|
|
3518 | CC="$ac_cv_prog_CC" |
|
|
3519 | fi |
|
|
3520 | |
|
|
3521 | fi |
|
|
3522 | |
|
|
3523 | |
3141 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3524 | test -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;} |
3525 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3143 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3526 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3144 | See \`config.log' for more details" "$LINENO" 5; } |
3527 | See \`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 |
3530 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3148 | set X $ac_compile |
3531 | set X $ac_compile |
3149 | ac_compiler=$2 |
3532 | ac_compiler=$2 |
3150 | for ac_option in --version -v -V -qversion; do |
3533 | for 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" |
3152 | case "(($ac_try" in |
3535 | case "(($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;; |
3155 | esac |
3538 | esac |
3156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3157 | $as_echo "$ac_try_echo"; } >&5 |
3540 | printf "%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; } |
3169 | done |
3552 | done |
3170 | |
3553 | |
3171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3172 | /* end confdefs.h. */ |
3555 | /* end confdefs.h. */ |
3173 | |
3556 | |
3174 | int |
3557 | int |
3175 | main () |
3558 | main (void) |
3176 | { |
3559 | { |
3177 | |
3560 | |
3178 | ; |
3561 | ; |
3179 | return 0; |
3562 | return 0; |
3180 | } |
3563 | } |
… | |
… | |
3182 | ac_clean_files_save=$ac_clean_files |
3565 | ac_clean_files_save=$ac_clean_files |
3183 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3566 | ac_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; } |
3571 | printf %s "checking whether the C compiler works... " >&6; } |
3189 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3572 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3190 | |
3573 | |
3191 | # The possible output files: |
3574 | # The possible output files: |
3192 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3575 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3193 | |
3576 | |
3194 | ac_rmfiles= |
3577 | ac_rmfiles= |
… | |
… | |
3205 | case "(($ac_try" in |
3588 | case "(($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;; |
3208 | esac |
3591 | esac |
3209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3210 | $as_echo "$ac_try_echo"; } >&5 |
3593 | printf "%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; } |
|
|
3598 | then : |
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 |
3244 | done |
3628 | done |
3245 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3629 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3246 | |
3630 | |
3247 | else |
3631 | else $as_nop |
3248 | ac_file='' |
3632 | ac_file='' |
3249 | fi |
3633 | fi |
3250 | if test -z "$ac_file"; then : |
3634 | if test -z "$ac_file" |
|
|
3635 | then : |
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; } |
3637 | printf "%s\n" "no" >&6; } |
3253 | $as_echo "$as_me: failed program was:" >&5 |
3638 | printf "%s\n" "$as_me: failed program was:" >&5 |
3254 | sed 's/^/| /' conftest.$ac_ext >&5 |
3639 | sed '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;} |
3642 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3258 | as_fn_error 77 "C compiler cannot create executables |
3643 | as_fn_error 77 "C compiler cannot create executables |
3259 | See \`config.log' for more details" "$LINENO" 5; } |
3644 | See \`config.log' for more details" "$LINENO" 5; } |
3260 | else |
3645 | else $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; } |
3647 | printf "%s\n" "yes" >&6; } |
3263 | fi |
3648 | fi |
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; } |
3650 | printf %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; } |
3652 | printf "%s\n" "$ac_file" >&6; } |
3268 | ac_exeext=$ac_cv_exeext |
3653 | ac_exeext=$ac_cv_exeext |
3269 | |
3654 | |
3270 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3655 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3271 | ac_clean_files=$ac_clean_files_save |
3656 | ac_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; } |
3658 | printf %s "checking for suffix of executables... " >&6; } |
3274 | if { { ac_try="$ac_link" |
3659 | if { { ac_try="$ac_link" |
3275 | case "(($ac_try" in |
3660 | case "(($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;; |
3278 | esac |
3663 | esac |
3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3280 | $as_echo "$ac_try_echo"; } >&5 |
3665 | printf "%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; } |
|
|
3670 | then : |
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'. |
3289 | for ac_file in conftest.exe conftest conftest.*; do |
3675 | for 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 |
3297 | done |
3683 | done |
3298 | else |
3684 | else $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;} |
3686 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3301 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3687 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3302 | See \`config.log' for more details" "$LINENO" 5; } |
3688 | See \`config.log' for more details" "$LINENO" 5; } |
3303 | fi |
3689 | fi |
3304 | rm -f conftest conftest$ac_cv_exeext |
3690 | rm -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; } |
3692 | printf "%s\n" "$ac_cv_exeext" >&6; } |
3307 | |
3693 | |
3308 | rm -f conftest.$ac_ext |
3694 | rm -f conftest.$ac_ext |
3309 | EXEEXT=$ac_cv_exeext |
3695 | EXEEXT=$ac_cv_exeext |
3310 | ac_exeext=$EXEEXT |
3696 | ac_exeext=$EXEEXT |
3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3312 | /* end confdefs.h. */ |
3698 | /* end confdefs.h. */ |
3313 | #include <stdio.h> |
3699 | #include <stdio.h> |
3314 | int |
3700 | int |
3315 | main () |
3701 | main (void) |
3316 | { |
3702 | { |
3317 | FILE *f = fopen ("conftest.out", "w"); |
3703 | FILE *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 |
3324 | ac_clean_files="$ac_clean_files conftest.out" |
3710 | ac_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; } |
3714 | printf %s "checking whether we are cross compiling... " >&6; } |
3329 | if test "$cross_compiling" != yes; then |
3715 | if test "$cross_compiling" != yes; then |
3330 | { { ac_try="$ac_link" |
3716 | { { ac_try="$ac_link" |
3331 | case "(($ac_try" in |
3717 | case "(($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;; |
3334 | esac |
3720 | esac |
3335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3336 | $as_echo "$ac_try_echo"; } >&5 |
3722 | printf "%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;; |
3345 | esac |
3731 | esac |
3346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3347 | $as_echo "$ac_try_echo"; } >&5 |
3733 | printf "%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;} |
3744 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3359 | as_fn_error $? "cannot run C compiled programs. |
3745 | as_fn_error 77 "cannot run C compiled programs. |
3360 | If you meant to cross compile, use \`--host'. |
3746 | If you meant to cross compile, use \`--host'. |
3361 | See \`config.log' for more details" "$LINENO" 5; } |
3747 | See \`config.log' for more details" "$LINENO" 5; } |
3362 | fi |
3748 | fi |
3363 | fi |
3749 | fi |
3364 | fi |
3750 | fi |
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; } |
3752 | printf "%s\n" "$cross_compiling" >&6; } |
3367 | |
3753 | |
3368 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3754 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3369 | ac_clean_files=$ac_clean_files_save |
3755 | ac_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; } |
3757 | printf %s "checking for suffix of object files... " >&6; } |
3372 | if ${ac_cv_objext+:} false; then : |
3758 | if test ${ac_cv_objext+y} |
3373 | $as_echo_n "(cached) " >&6 |
3759 | then : |
3374 | else |
3760 | printf %s "(cached) " >&6 |
|
|
3761 | else $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 | |
3378 | int |
3765 | int |
3379 | main () |
3766 | main (void) |
3380 | { |
3767 | { |
3381 | |
3768 | |
3382 | ; |
3769 | ; |
3383 | return 0; |
3770 | return 0; |
3384 | } |
3771 | } |
… | |
… | |
3388 | case "(($ac_try" in |
3775 | case "(($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;; |
3391 | esac |
3778 | esac |
3392 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3393 | $as_echo "$ac_try_echo"; } >&5 |
3780 | printf "%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; } |
|
|
3785 | then : |
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 |
3405 | done |
3793 | done |
3406 | else |
3794 | else $as_nop |
3407 | $as_echo "$as_me: failed program was:" >&5 |
3795 | printf "%s\n" "$as_me: failed program was:" >&5 |
3408 | sed 's/^/| /' conftest.$ac_ext >&5 |
3796 | sed '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;} |
3799 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3412 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3800 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3413 | See \`config.log' for more details" "$LINENO" 5; } |
3801 | See \`config.log' for more details" "$LINENO" 5; } |
3414 | fi |
3802 | fi |
3415 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3803 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3416 | fi |
3804 | fi |
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; } |
3806 | printf "%s\n" "$ac_cv_objext" >&6; } |
3419 | OBJEXT=$ac_cv_objext |
3807 | OBJEXT=$ac_cv_objext |
3420 | ac_objext=$OBJEXT |
3808 | ac_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; } |
3810 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
3423 | if ${ac_cv_c_compiler_gnu+:} false; then : |
3811 | if test ${ac_cv_c_compiler_gnu+y} |
3424 | $as_echo_n "(cached) " >&6 |
3812 | then : |
3425 | else |
3813 | printf %s "(cached) " >&6 |
|
|
3814 | else $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 | |
3429 | int |
3818 | int |
3430 | main () |
3819 | main (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 |
3440 | if ac_fn_c_try_compile "$LINENO"; then : |
3829 | if ac_fn_c_try_compile "$LINENO" |
|
|
3830 | then : |
3441 | ac_compiler_gnu=yes |
3831 | ac_compiler_gnu=yes |
3442 | else |
3832 | else $as_nop |
3443 | ac_compiler_gnu=no |
3833 | ac_compiler_gnu=no |
3444 | fi |
3834 | fi |
3445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3835 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3446 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3836 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3447 | |
3837 | |
3448 | fi |
3838 | fi |
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; } |
3840 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3842 | |
3451 | if test $ac_compiler_gnu = yes; then |
3843 | if test $ac_compiler_gnu = yes; then |
3452 | GCC=yes |
3844 | GCC=yes |
3453 | else |
3845 | else |
3454 | GCC= |
3846 | GCC= |
3455 | fi |
3847 | fi |
3456 | ac_test_CFLAGS=${CFLAGS+set} |
3848 | ac_test_CFLAGS=${CFLAGS+y} |
3457 | ac_save_CFLAGS=$CFLAGS |
3849 | ac_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; } |
3851 | printf %s "checking whether $CC accepts -g... " >&6; } |
3460 | if ${ac_cv_prog_cc_g+:} false; then : |
3852 | if test ${ac_cv_prog_cc_g+y} |
3461 | $as_echo_n "(cached) " >&6 |
3853 | then : |
3462 | else |
3854 | printf %s "(cached) " >&6 |
|
|
3855 | else $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 | |
3470 | int |
3863 | int |
3471 | main () |
3864 | main (void) |
3472 | { |
3865 | { |
3473 | |
3866 | |
3474 | ; |
3867 | ; |
3475 | return 0; |
3868 | return 0; |
3476 | } |
3869 | } |
3477 | _ACEOF |
3870 | _ACEOF |
3478 | if ac_fn_c_try_compile "$LINENO"; then : |
3871 | if ac_fn_c_try_compile "$LINENO" |
|
|
3872 | then : |
3479 | ac_cv_prog_cc_g=yes |
3873 | ac_cv_prog_cc_g=yes |
3480 | else |
3874 | else $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 | |
3485 | int |
3879 | int |
3486 | main () |
3880 | main (void) |
3487 | { |
3881 | { |
3488 | |
3882 | |
3489 | ; |
3883 | ; |
3490 | return 0; |
3884 | return 0; |
3491 | } |
3885 | } |
3492 | _ACEOF |
3886 | _ACEOF |
3493 | if ac_fn_c_try_compile "$LINENO"; then : |
3887 | if ac_fn_c_try_compile "$LINENO" |
|
|
3888 | then : |
3494 | |
3889 | |
3495 | else |
3890 | else $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 | |
3501 | int |
3896 | int |
3502 | main () |
3897 | main (void) |
3503 | { |
3898 | { |
3504 | |
3899 | |
3505 | ; |
3900 | ; |
3506 | return 0; |
3901 | return 0; |
3507 | } |
3902 | } |
3508 | _ACEOF |
3903 | _ACEOF |
3509 | if ac_fn_c_try_compile "$LINENO"; then : |
3904 | if ac_fn_c_try_compile "$LINENO" |
|
|
3905 | then : |
3510 | ac_cv_prog_cc_g=yes |
3906 | ac_cv_prog_cc_g=yes |
3511 | fi |
3907 | fi |
3512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3908 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3513 | fi |
3909 | fi |
3514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3910 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3515 | fi |
3911 | fi |
3516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3912 | rm -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 |
3518 | fi |
3914 | fi |
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; } |
3916 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
3521 | if test "$ac_test_CFLAGS" = set; then |
3917 | if test $ac_test_CFLAGS; then |
3522 | CFLAGS=$ac_save_CFLAGS |
3918 | CFLAGS=$ac_save_CFLAGS |
3523 | elif test $ac_cv_prog_cc_g = yes; then |
3919 | elif 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 |
3535 | fi |
3931 | fi |
|
|
3932 | ac_prog_cc_stdc=no |
|
|
3933 | if test x$ac_prog_cc_stdc = xno |
|
|
3934 | then : |
|
|
3935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3936 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3937 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3938 | then : |
|
|
3939 | printf %s "(cached) " >&6 |
|
|
3940 | else $as_nop |
|
|
3941 | ac_cv_prog_cc_c11=no |
|
|
3942 | ac_save_CC=$CC |
|
|
3943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3944 | /* end confdefs.h. */ |
|
|
3945 | $ac_c_conftest_c11_program |
|
|
3946 | _ACEOF |
|
|
3947 | for ac_arg in '' -std=gnu11 |
|
|
3948 | do |
|
|
3949 | CC="$ac_save_CC $ac_arg" |
|
|
3950 | if ac_fn_c_try_compile "$LINENO" |
|
|
3951 | then : |
|
|
3952 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3953 | fi |
|
|
3954 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3955 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3956 | done |
|
|
3957 | rm -f conftest.$ac_ext |
|
|
3958 | CC=$ac_save_CC |
|
|
3959 | fi |
|
|
3960 | |
|
|
3961 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3962 | then : |
|
|
3963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3964 | printf "%s\n" "unsupported" >&6; } |
|
|
3965 | else $as_nop |
|
|
3966 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3967 | then : |
|
|
3968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3969 | printf "%s\n" "none needed" >&6; } |
|
|
3970 | else $as_nop |
|
|
3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3972 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3973 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3974 | fi |
|
|
3975 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3976 | ac_prog_cc_stdc=c11 |
|
|
3977 | fi |
|
|
3978 | fi |
|
|
3979 | if test x$ac_prog_cc_stdc = xno |
|
|
3980 | then : |
|
|
3981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3982 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3983 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3984 | then : |
|
|
3985 | printf %s "(cached) " >&6 |
|
|
3986 | else $as_nop |
|
|
3987 | ac_cv_prog_cc_c99=no |
|
|
3988 | ac_save_CC=$CC |
|
|
3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3990 | /* end confdefs.h. */ |
|
|
3991 | $ac_c_conftest_c99_program |
|
|
3992 | _ACEOF |
|
|
3993 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3994 | do |
|
|
3995 | CC="$ac_save_CC $ac_arg" |
|
|
3996 | if ac_fn_c_try_compile "$LINENO" |
|
|
3997 | then : |
|
|
3998 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3999 | fi |
|
|
4000 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4001 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
4002 | done |
|
|
4003 | rm -f conftest.$ac_ext |
|
|
4004 | CC=$ac_save_CC |
|
|
4005 | fi |
|
|
4006 | |
|
|
4007 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
4008 | then : |
|
|
4009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4010 | printf "%s\n" "unsupported" >&6; } |
|
|
4011 | else $as_nop |
|
|
4012 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
4013 | then : |
|
|
4014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4015 | printf "%s\n" "none needed" >&6; } |
|
|
4016 | else $as_nop |
|
|
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
4018 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
4019 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
4020 | fi |
|
|
4021 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
4022 | ac_prog_cc_stdc=c99 |
|
|
4023 | fi |
|
|
4024 | fi |
|
|
4025 | if test x$ac_prog_cc_stdc = xno |
|
|
4026 | then : |
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; } |
4028 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
3538 | if ${ac_cv_prog_cc_c89+:} false; then : |
4029 | if test ${ac_cv_prog_cc_c89+y} |
3539 | $as_echo_n "(cached) " >&6 |
4030 | then : |
3540 | else |
4031 | printf %s "(cached) " >&6 |
|
|
4032 | else $as_nop |
3541 | ac_cv_prog_cc_c89=no |
4033 | ac_cv_prog_cc_c89=no |
3542 | ac_save_CC=$CC |
4034 | ac_save_CC=$CC |
3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4035 | cat 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> |
|
|
3547 | struct stat; |
|
|
3548 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
3549 | struct buf { int x; }; |
|
|
3550 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
3551 | static char *e (p, i) |
|
|
3552 | char **p; |
|
|
3553 | int i; |
|
|
3554 | { |
|
|
3555 | return p[i]; |
|
|
3556 | } |
|
|
3557 | static 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. */ |
|
|
3574 | int 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' |
|
|
3579 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
3580 | |
|
|
3581 | int test (int i, double x); |
|
|
3582 | struct s1 {int (*f) (int a);}; |
|
|
3583 | struct s2 {int (*f) (double a);}; |
|
|
3584 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
3585 | int argc; |
|
|
3586 | char **argv; |
|
|
3587 | int |
|
|
3588 | main () |
|
|
3589 | { |
|
|
3590 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
3591 | ; |
|
|
3592 | return 0; |
|
|
3593 | } |
|
|
3594 | _ACEOF |
4038 | _ACEOF |
3595 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4039 | for 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__" |
|
|
3597 | do |
4040 | do |
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" |
|
|
4043 | then : |
3600 | ac_cv_prog_cc_c89=$ac_arg |
4044 | ac_cv_prog_cc_c89=$ac_arg |
3601 | fi |
4045 | fi |
3602 | rm -f core conftest.err conftest.$ac_objext |
4046 | rm -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 |
3604 | done |
4048 | done |
3605 | rm -f conftest.$ac_ext |
4049 | rm -f conftest.$ac_ext |
3606 | CC=$ac_save_CC |
4050 | CC=$ac_save_CC |
3607 | |
|
|
3608 | fi |
4051 | fi |
3609 | # AC_CACHE_VAL |
4052 | |
3610 | case "x$ac_cv_prog_cc_c89" in |
4053 | if test "x$ac_cv_prog_cc_c89" = xno |
3611 | x) |
4054 | then : |
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; } ;; |
4056 | printf "%s\n" "unsupported" >&6; } |
3617 | *) |
4057 | else $as_nop |
|
|
4058 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
4059 | then : |
|
|
4060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4061 | printf "%s\n" "none needed" >&6; } |
|
|
4062 | else $as_nop |
|
|
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
4064 | printf "%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 |
4066 | fi |
3620 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4067 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
3621 | esac |
4068 | ac_prog_cc_stdc=c89 |
3622 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4069 | fi |
3623 | |
|
|
3624 | fi |
4070 | fi |
3625 | |
4071 | |
3626 | ac_ext=c |
4072 | ac_ext=c |
3627 | ac_cpp='$CPP $CPPFLAGS' |
4073 | ac_cpp='$CPP $CPPFLAGS' |
3628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4077 | |
|
|
4078 | |
|
|
4079 | |
|
|
4080 | |
|
|
4081 | |
|
|
4082 | |
3631 | |
4083 | |
3632 | ac_ext=cpp |
4084 | ac_ext=cpp |
3633 | ac_cpp='$CXXCPP $CPPFLAGS' |
4085 | ac_cpp='$CXXCPP $CPPFLAGS' |
3634 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4086 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3635 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4087 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3637 | if test -z "$CXX"; then |
4089 | if 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. |
3645 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4097 | set 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; } |
4099 | printf %s "checking for $ac_word... " >&6; } |
3648 | if ${ac_cv_prog_CXX+:} false; then : |
4100 | if test ${ac_cv_prog_CXX+y} |
3649 | $as_echo_n "(cached) " >&6 |
4101 | then : |
3650 | else |
4102 | printf %s "(cached) " >&6 |
|
|
4103 | else $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. |
3653 | else |
4106 | else |
3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3655 | for as_dir in $PATH |
4108 | for as_dir in $PATH |
3656 | do |
4109 | do |
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 |
3665 | done |
4122 | done |
3666 | done |
4123 | done |
3667 | IFS=$as_save_IFS |
4124 | IFS=$as_save_IFS |
3668 | |
4125 | |
3669 | fi |
4126 | fi |
3670 | fi |
4127 | fi |
3671 | CXX=$ac_cv_prog_CXX |
4128 | CXX=$ac_cv_prog_CXX |
3672 | if test -n "$CXX"; then |
4129 | if 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; } |
4131 | printf "%s\n" "$CXX" >&6; } |
3675 | else |
4132 | else |
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; } |
4134 | printf "%s\n" "no" >&6; } |
3678 | fi |
4135 | fi |
3679 | |
4136 | |
3680 | |
4137 | |
3681 | test -n "$CXX" && break |
4138 | test -n "$CXX" && break |
3682 | done |
4139 | done |
3683 | fi |
4140 | fi |
3684 | if test -z "$CXX"; then |
4141 | if 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++ |
3687 | do |
4144 | do |
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. |
3689 | set dummy $ac_prog; ac_word=$2 |
4146 | set 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; } |
4148 | printf %s "checking for $ac_word... " >&6; } |
3692 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
4149 | if test ${ac_cv_prog_ac_ct_CXX+y} |
3693 | $as_echo_n "(cached) " >&6 |
4150 | then : |
3694 | else |
4151 | printf %s "(cached) " >&6 |
|
|
4152 | else $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. |
3697 | else |
4155 | else |
3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3699 | for as_dir in $PATH |
4157 | for as_dir in $PATH |
3700 | do |
4158 | do |
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 |
3709 | done |
4171 | done |
3710 | done |
4172 | done |
3711 | IFS=$as_save_IFS |
4173 | IFS=$as_save_IFS |
3712 | |
4174 | |
3713 | fi |
4175 | fi |
3714 | fi |
4176 | fi |
3715 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4177 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3716 | if test -n "$ac_ct_CXX"; then |
4178 | if 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; } |
4180 | printf "%s\n" "$ac_ct_CXX" >&6; } |
3719 | else |
4181 | else |
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; } |
4183 | printf "%s\n" "no" >&6; } |
3722 | fi |
4184 | fi |
3723 | |
4185 | |
3724 | |
4186 | |
3725 | test -n "$ac_ct_CXX" && break |
4187 | test -n "$ac_ct_CXX" && break |
3726 | done |
4188 | done |
… | |
… | |
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 |
3732 | yes:) |
4194 | yes:) |
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;} |
4196 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3735 | ac_tool_warned=yes ;; |
4197 | ac_tool_warned=yes ;; |
3736 | esac |
4198 | esac |
3737 | CXX=$ac_ct_CXX |
4199 | CXX=$ac_ct_CXX |
3738 | fi |
4200 | fi |
3739 | fi |
4201 | fi |
3740 | |
4202 | |
3741 | fi |
4203 | fi |
3742 | fi |
4204 | fi |
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 |
4206 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
3745 | set X $ac_compile |
4207 | set X $ac_compile |
3746 | ac_compiler=$2 |
4208 | ac_compiler=$2 |
3747 | for ac_option in --version -v -V -qversion; do |
4209 | for ac_option in --version -v -V -qversion; do |
3748 | { { ac_try="$ac_compiler $ac_option >&5" |
4210 | { { ac_try="$ac_compiler $ac_option >&5" |
3749 | case "(($ac_try" in |
4211 | case "(($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;; |
3752 | esac |
4214 | esac |
3753 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4215 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3754 | $as_echo "$ac_try_echo"; } >&5 |
4216 | printf "%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; } |
3766 | done |
4228 | done |
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; } |
4231 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
3770 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
4232 | if test ${ac_cv_cxx_compiler_gnu+y} |
3771 | $as_echo_n "(cached) " >&6 |
4233 | then : |
3772 | else |
4234 | printf %s "(cached) " >&6 |
|
|
4235 | else $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 | |
3776 | int |
4239 | int |
3777 | main () |
4240 | main (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 |
3787 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4250 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4251 | then : |
3788 | ac_compiler_gnu=yes |
4252 | ac_compiler_gnu=yes |
3789 | else |
4253 | else $as_nop |
3790 | ac_compiler_gnu=no |
4254 | ac_compiler_gnu=no |
3791 | fi |
4255 | fi |
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4256 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3793 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4257 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3794 | |
4258 | |
3795 | fi |
4259 | fi |
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; } |
4261 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
|
|
4262 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4263 | |
3798 | if test $ac_compiler_gnu = yes; then |
4264 | if test $ac_compiler_gnu = yes; then |
3799 | GXX=yes |
4265 | GXX=yes |
3800 | else |
4266 | else |
3801 | GXX= |
4267 | GXX= |
3802 | fi |
4268 | fi |
3803 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4269 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
3804 | ac_save_CXXFLAGS=$CXXFLAGS |
4270 | ac_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; } |
4272 | printf %s "checking whether $CXX accepts -g... " >&6; } |
3807 | if ${ac_cv_prog_cxx_g+:} false; then : |
4273 | if test ${ac_cv_prog_cxx_g+y} |
3808 | $as_echo_n "(cached) " >&6 |
4274 | then : |
3809 | else |
4275 | printf %s "(cached) " >&6 |
|
|
4276 | else $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 | |
3817 | int |
4284 | int |
3818 | main () |
4285 | main (void) |
3819 | { |
4286 | { |
3820 | |
4287 | |
3821 | ; |
4288 | ; |
3822 | return 0; |
4289 | return 0; |
3823 | } |
4290 | } |
3824 | _ACEOF |
4291 | _ACEOF |
3825 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4292 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4293 | then : |
3826 | ac_cv_prog_cxx_g=yes |
4294 | ac_cv_prog_cxx_g=yes |
3827 | else |
4295 | else $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 | |
3832 | int |
4300 | int |
3833 | main () |
4301 | main (void) |
3834 | { |
4302 | { |
3835 | |
4303 | |
3836 | ; |
4304 | ; |
3837 | return 0; |
4305 | return 0; |
3838 | } |
4306 | } |
3839 | _ACEOF |
4307 | _ACEOF |
3840 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4308 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4309 | then : |
3841 | |
4310 | |
3842 | else |
4311 | else $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 | |
3848 | int |
4317 | int |
3849 | main () |
4318 | main (void) |
3850 | { |
4319 | { |
3851 | |
4320 | |
3852 | ; |
4321 | ; |
3853 | return 0; |
4322 | return 0; |
3854 | } |
4323 | } |
3855 | _ACEOF |
4324 | _ACEOF |
3856 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4325 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4326 | then : |
3857 | ac_cv_prog_cxx_g=yes |
4327 | ac_cv_prog_cxx_g=yes |
3858 | fi |
4328 | fi |
3859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4329 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3860 | fi |
4330 | fi |
3861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3862 | fi |
4332 | fi |
3863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4333 | rm -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 |
3865 | fi |
4335 | fi |
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; } |
4337 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
3868 | if test "$ac_test_CXXFLAGS" = set; then |
4338 | if test $ac_test_CXXFLAGS; then |
3869 | CXXFLAGS=$ac_save_CXXFLAGS |
4339 | CXXFLAGS=$ac_save_CXXFLAGS |
3870 | elif test $ac_cv_prog_cxx_g = yes; then |
4340 | elif 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 |
3882 | fi |
4352 | fi |
|
|
4353 | ac_prog_cxx_stdcxx=no |
|
|
4354 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4355 | then : |
|
|
4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
|
|
4357 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
|
|
4358 | if test ${ac_cv_prog_cxx_cxx11+y} |
|
|
4359 | then : |
|
|
4360 | printf %s "(cached) " >&6 |
|
|
4361 | else $as_nop |
|
|
4362 | ac_cv_prog_cxx_cxx11=no |
|
|
4363 | ac_save_CXX=$CXX |
|
|
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4365 | /* end confdefs.h. */ |
|
|
4366 | $ac_cxx_conftest_cxx11_program |
|
|
4367 | _ACEOF |
|
|
4368 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
|
|
4369 | do |
|
|
4370 | CXX="$ac_save_CXX $ac_arg" |
|
|
4371 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4372 | then : |
|
|
4373 | ac_cv_prog_cxx_cxx11=$ac_arg |
|
|
4374 | fi |
|
|
4375 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4376 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
|
|
4377 | done |
|
|
4378 | rm -f conftest.$ac_ext |
|
|
4379 | CXX=$ac_save_CXX |
|
|
4380 | fi |
|
|
4381 | |
|
|
4382 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
|
|
4383 | then : |
|
|
4384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4385 | printf "%s\n" "unsupported" >&6; } |
|
|
4386 | else $as_nop |
|
|
4387 | if test "x$ac_cv_prog_cxx_cxx11" = x |
|
|
4388 | then : |
|
|
4389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4390 | printf "%s\n" "none needed" >&6; } |
|
|
4391 | else $as_nop |
|
|
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
|
|
4393 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
|
|
4394 | CXX="$CXX $ac_cv_prog_cxx_cxx11" |
|
|
4395 | fi |
|
|
4396 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
|
|
4397 | ac_prog_cxx_stdcxx=cxx11 |
|
|
4398 | fi |
|
|
4399 | fi |
|
|
4400 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4401 | then : |
|
|
4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
|
|
4403 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
|
|
4404 | if test ${ac_cv_prog_cxx_cxx98+y} |
|
|
4405 | then : |
|
|
4406 | printf %s "(cached) " >&6 |
|
|
4407 | else $as_nop |
|
|
4408 | ac_cv_prog_cxx_cxx98=no |
|
|
4409 | ac_save_CXX=$CXX |
|
|
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4411 | /* end confdefs.h. */ |
|
|
4412 | $ac_cxx_conftest_cxx98_program |
|
|
4413 | _ACEOF |
|
|
4414 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
|
|
4415 | do |
|
|
4416 | CXX="$ac_save_CXX $ac_arg" |
|
|
4417 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4418 | then : |
|
|
4419 | ac_cv_prog_cxx_cxx98=$ac_arg |
|
|
4420 | fi |
|
|
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4422 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
|
|
4423 | done |
|
|
4424 | rm -f conftest.$ac_ext |
|
|
4425 | CXX=$ac_save_CXX |
|
|
4426 | fi |
|
|
4427 | |
|
|
4428 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
|
|
4429 | then : |
|
|
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4431 | printf "%s\n" "unsupported" >&6; } |
|
|
4432 | else $as_nop |
|
|
4433 | if test "x$ac_cv_prog_cxx_cxx98" = x |
|
|
4434 | then : |
|
|
4435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4436 | printf "%s\n" "none needed" >&6; } |
|
|
4437 | else $as_nop |
|
|
4438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
|
|
4439 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
|
|
4440 | CXX="$CXX $ac_cv_prog_cxx_cxx98" |
|
|
4441 | fi |
|
|
4442 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
|
|
4443 | ac_prog_cxx_stdcxx=cxx98 |
|
|
4444 | fi |
|
|
4445 | fi |
|
|
4446 | |
3883 | ac_ext=c |
4447 | ac_ext=c |
3884 | ac_cpp='$CPP $CPPFLAGS' |
4448 | ac_cpp='$CPP $CPPFLAGS' |
3885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4451 | ac_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; } |
4470 | printf %s "checking for a BSD-compatible install... " >&6; } |
3905 | if test -z "$INSTALL"; then |
4471 | if test -z "$INSTALL"; then |
3906 | if ${ac_cv_path_install+:} false; then : |
4472 | if test ${ac_cv_path_install+y} |
3907 | $as_echo_n "(cached) " >&6 |
4473 | then : |
3908 | else |
4474 | printf %s "(cached) " >&6 |
|
|
4475 | else $as_nop |
3909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3910 | for as_dir in $PATH |
4477 | for as_dir in $PATH |
3911 | do |
4478 | do |
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. |
3915 | case $as_dir/ in #(( |
4486 | case $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 |
… | |
… | |
3956 | IFS=$as_save_IFS |
4527 | IFS=$as_save_IFS |
3957 | |
4528 | |
3958 | rm -rf conftest.one conftest.two conftest.dir |
4529 | rm -rf conftest.one conftest.two conftest.dir |
3959 | |
4530 | |
3960 | fi |
4531 | fi |
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 |
3970 | fi |
4541 | fi |
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; } |
4543 | printf "%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. |
3976 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4547 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3977 | |
4548 | |
… | |
… | |
3979 | |
4550 | |
3980 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4551 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3981 | |
4552 | |
3982 | |
4553 | |
3983 | |
4554 | |
3984 | ac_ext=c |
4555 | ac_header= ac_cache= |
3985 | ac_cpp='$CPP $CPPFLAGS' |
4556 | for ac_item in $ac_header_c_list |
3986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3988 | ac_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. |
|
|
3992 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3993 | CPP= |
|
|
3994 | fi |
|
|
3995 | if test -z "$CPP"; then |
|
|
3996 | if ${ac_cv_prog_CPP+:} false; then : |
|
|
3997 | $as_echo_n "(cached) " >&6 |
|
|
3998 | else |
|
|
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 |
|
|
4003 | for ac_c_preproc_warn_flag in '' yes |
|
|
4004 | do |
4557 | do |
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 |
|
|
4020 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
4021 | |
|
|
4022 | else |
4566 | else |
4023 | # Broken: fails on valid input. |
4567 | ac_header=$ac_item |
4024 | continue |
4568 | fi |
4025 | fi |
|
|
4026 | rm -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 |
|
|
4034 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
4035 | # Broken: success on invalid input. |
|
|
4036 | continue |
|
|
4037 | else |
|
|
4038 | # Passes both tests. |
|
|
4039 | ac_preproc_ok=: |
|
|
4040 | break |
|
|
4041 | fi |
|
|
4042 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
4043 | |
|
|
4044 | done |
4569 | done |
4045 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4046 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
4047 | if $ac_preproc_ok; then : |
|
|
4048 | break |
|
|
4049 | fi |
|
|
4050 | |
4570 | |
4051 | done |
|
|
4052 | ac_cv_prog_CPP=$CPP |
|
|
4053 | |
4571 | |
4054 | fi |
|
|
4055 | CPP=$ac_cv_prog_CPP |
|
|
4056 | else |
|
|
4057 | ac_cv_prog_CPP=$CPP |
|
|
4058 | fi |
|
|
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
4060 | $as_echo "$CPP" >&6; } |
|
|
4061 | ac_preproc_ok=false |
|
|
4062 | for ac_c_preproc_warn_flag in '' yes |
|
|
4063 | do |
|
|
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 |
|
|
4079 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
4080 | |
4572 | |
4081 | else |
|
|
4082 | # Broken: fails on valid input. |
|
|
4083 | continue |
|
|
4084 | fi |
|
|
4085 | rm -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 |
|
|
4093 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
4094 | # Broken: success on invalid input. |
|
|
4095 | continue |
|
|
4096 | else |
|
|
4097 | # Passes both tests. |
|
|
4098 | ac_preproc_ok=: |
|
|
4099 | break |
|
|
4100 | fi |
|
|
4101 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
4102 | |
4574 | |
4103 | done |
|
|
4104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4105 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
4106 | if $ac_preproc_ok; then : |
|
|
4107 | |
4575 | |
4108 | else |
|
|
4109 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
4110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
4111 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
4112 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
4113 | fi |
|
|
4114 | |
4576 | |
4115 | ac_ext=c |
|
|
4116 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4120 | |
4577 | |
|
|
4578 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
|
|
4579 | then : |
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; } |
|
|
4124 | if ${ac_cv_path_GREP+:} false; then : |
|
|
4125 | $as_echo_n "(cached) " >&6 |
|
|
4126 | else |
|
|
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 |
|
|
4131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
4132 | do |
|
|
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 |
|
|
4141 | case `"$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;; |
|
|
4165 | esac |
|
|
4166 | |
|
|
4167 | $ac_path_GREP_found && break 3 |
|
|
4168 | done |
|
|
4169 | done |
|
|
4170 | done |
|
|
4171 | IFS=$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 |
|
|
4175 | else |
|
|
4176 | ac_cv_path_GREP=$GREP |
|
|
4177 | fi |
|
|
4178 | |
|
|
4179 | fi |
|
|
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; } |
|
|
4187 | if ${ac_cv_path_EGREP+:} false; then : |
|
|
4188 | $as_echo_n "(cached) " >&6 |
|
|
4189 | else |
|
|
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 |
|
|
4197 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
4198 | do |
|
|
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 |
|
|
4207 | case `"$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;; |
|
|
4231 | esac |
|
|
4232 | |
|
|
4233 | $ac_path_EGREP_found && break 3 |
|
|
4234 | done |
|
|
4235 | done |
|
|
4236 | done |
|
|
4237 | IFS=$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 |
|
|
4241 | else |
|
|
4242 | ac_cv_path_EGREP=$EGREP |
|
|
4243 | fi |
|
|
4244 | |
|
|
4245 | fi |
|
|
4246 | fi |
|
|
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; } |
|
|
4254 | if ${ac_cv_header_stdc+:} false; then : |
|
|
4255 | $as_echo_n "(cached) " >&6 |
|
|
4256 | else |
|
|
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 | |
|
|
4264 | int |
|
|
4265 | main () |
|
|
4266 | { |
|
|
4267 | |
|
|
4268 | ; |
|
|
4269 | return 0; |
|
|
4270 | } |
|
|
4271 | _ACEOF |
|
|
4272 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4273 | ac_cv_header_stdc=yes |
|
|
4274 | else |
|
|
4275 | ac_cv_header_stdc=no |
|
|
4276 | fi |
|
|
4277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4278 | |
|
|
4279 | if 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 |
|
|
4286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4287 | $EGREP "memchr" >/dev/null 2>&1; then : |
|
|
4288 | |
|
|
4289 | else |
|
|
4290 | ac_cv_header_stdc=no |
|
|
4291 | fi |
|
|
4292 | rm -f conftest* |
|
|
4293 | |
|
|
4294 | fi |
|
|
4295 | |
|
|
4296 | if 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 |
|
|
4303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4304 | $EGREP "free" >/dev/null 2>&1; then : |
|
|
4305 | |
|
|
4306 | else |
|
|
4307 | ac_cv_header_stdc=no |
|
|
4308 | fi |
|
|
4309 | rm -f conftest* |
|
|
4310 | |
|
|
4311 | fi |
|
|
4312 | |
|
|
4313 | if 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 | : |
|
|
4317 | else |
|
|
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))) |
|
|
4334 | int |
|
|
4335 | main () |
|
|
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 |
|
|
4345 | if ac_fn_c_try_run "$LINENO"; then : |
|
|
4346 | |
|
|
4347 | else |
|
|
4348 | ac_cv_header_stdc=no |
|
|
4349 | fi |
|
|
4350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
4351 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4352 | fi |
|
|
4353 | |
|
|
4354 | fi |
|
|
4355 | fi |
|
|
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
|
4357 | $as_echo "$ac_cv_header_stdc" >&6; } |
|
|
4358 | if test $ac_cv_header_stdc = yes; then |
|
|
4359 | |
|
|
4360 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4581 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
4361 | |
4582 | |
4362 | fi |
4583 | fi |
4363 | |
4584 | |
4364 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4365 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4366 | inttypes.h stdint.h unistd.h |
|
|
4367 | do : |
|
|
4368 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4369 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
|
4370 | " |
|
|
4371 | if 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 | |
4376 | fi |
|
|
4377 | |
4586 | |
4378 | done |
|
|
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" |
|
|
4383 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
|
|
4384 | MINIX=yes |
|
|
4385 | else |
|
|
4386 | MINIX= |
|
|
4387 | fi |
|
|
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; } |
4591 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
4405 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
4592 | if test ${ac_cv_safe_to_define___extensions__+y} |
4406 | $as_echo_n "(cached) " >&6 |
4593 | then : |
4407 | else |
4594 | printf %s "(cached) " >&6 |
|
|
4595 | else $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 |
4413 | int |
4601 | int |
4414 | main () |
4602 | main (void) |
4415 | { |
4603 | { |
4416 | |
4604 | |
4417 | ; |
4605 | ; |
4418 | return 0; |
4606 | return 0; |
4419 | } |
4607 | } |
4420 | _ACEOF |
4608 | _ACEOF |
4421 | if ac_fn_c_try_compile "$LINENO"; then : |
4609 | if ac_fn_c_try_compile "$LINENO" |
|
|
4610 | then : |
4422 | ac_cv_safe_to_define___extensions__=yes |
4611 | ac_cv_safe_to_define___extensions__=yes |
4423 | else |
4612 | else $as_nop |
4424 | ac_cv_safe_to_define___extensions__=no |
4613 | ac_cv_safe_to_define___extensions__=no |
4425 | fi |
4614 | fi |
4426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4615 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4427 | fi |
4616 | fi |
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; } |
4618 | printf "%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 |
|
|
4621 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
|
|
4622 | if test ${ac_cv_should_define__xopen_source+y} |
|
|
4623 | then : |
|
|
4624 | printf %s "(cached) " >&6 |
|
|
4625 | else $as_nop |
|
|
4626 | ac_cv_should_define__xopen_source=no |
|
|
4627 | if test $ac_cv_header_wchar_h = yes |
|
|
4628 | then : |
|
|
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4630 | /* end confdefs.h. */ |
|
|
4631 | |
|
|
4632 | #include <wchar.h> |
|
|
4633 | mbstate_t x; |
|
|
4634 | int |
|
|
4635 | main (void) |
|
|
4636 | { |
|
|
4637 | |
|
|
4638 | ; |
|
|
4639 | return 0; |
|
|
4640 | } |
|
|
4641 | _ACEOF |
|
|
4642 | if ac_fn_c_try_compile "$LINENO" |
|
|
4643 | then : |
|
|
4644 | |
|
|
4645 | else $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; |
|
|
4652 | int |
|
|
4653 | main (void) |
|
|
4654 | { |
|
|
4655 | |
|
|
4656 | ; |
|
|
4657 | return 0; |
|
|
4658 | } |
|
|
4659 | _ACEOF |
|
|
4660 | if ac_fn_c_try_compile "$LINENO" |
|
|
4661 | then : |
|
|
4662 | ac_cv_should_define__xopen_source=yes |
|
|
4663 | fi |
|
|
4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4665 | fi |
|
|
4666 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4667 | fi |
|
|
4668 | fi |
|
|
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
|
|
4670 | printf "%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 |
|
|
4703 | then : |
|
|
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 | |
|
|
4711 | else $as_nop |
|
|
4712 | MINIX= |
|
|
4713 | fi |
4430 | test $ac_cv_safe_to_define___extensions__ = yes && |
4714 | if test $ac_cv_safe_to_define___extensions__ = yes |
|
|
4715 | then : |
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 |
4718 | fi |
|
|
4719 | if test $ac_cv_should_define__xopen_source = yes |
|
|
4720 | then : |
|
|
4721 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4434 | |
4722 | |
4435 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4723 | fi |
4436 | |
4724 | |
4437 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4725 | ac_ext=cpp |
|
|
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4438 | |
4730 | |
4439 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
4440 | |
4731 | |
|
|
4732 | if test "$ac_prog_cxx_stdcxx" != cxx11; then |
|
|
4733 | as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 |
|
|
4734 | fi |
4441 | |
4735 | |
|
|
4736 | LINKER="$CXX" |
|
|
4737 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
4738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
|
|
4739 | printf %s "checking for working libsupc++... " >&6; } |
|
|
4740 | save_CXX="$CXX" |
|
|
4741 | save_LIBS="$LIBS" |
|
|
4742 | CXX="$CC" |
|
|
4743 | LIBS="$LIBS -lsupc++" |
4442 | |
4744 | |
|
|
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4746 | /* end confdefs.h. */ |
|
|
4747 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
4748 | int |
|
|
4749 | main (void) |
|
|
4750 | { |
4443 | |
4751 | |
|
|
4752 | ; |
|
|
4753 | return 0; |
|
|
4754 | } |
|
|
4755 | _ACEOF |
|
|
4756 | if ac_fn_cxx_try_link "$LINENO" |
|
|
4757 | then : |
|
|
4758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
4759 | printf "%s\n" "ok" >&6; } |
|
|
4760 | LINKER="$CC" |
|
|
4761 | else $as_nop |
|
|
4762 | |
|
|
4763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
|
|
4764 | printf "%s\n" "no, making everything bigger and slower" >&6; } |
|
|
4765 | LIBS="$save_LIBS" |
|
|
4766 | |
|
|
4767 | |
|
|
4768 | fi |
|
|
4769 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4770 | conftest$ac_exeext conftest.$ac_ext |
|
|
4771 | CXX="$save_CXX" |
|
|
4772 | fi |
|
|
4773 | LINKER=$LINKER |
|
|
4774 | |
|
|
4775 | |
|
|
4776 | if 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 | |
|
|
4782 | int |
|
|
4783 | main (void) |
|
|
4784 | { |
|
|
4785 | |
|
|
4786 | ; |
|
|
4787 | return 0; |
|
|
4788 | } |
|
|
4789 | _ACEOF |
|
|
4790 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4791 | then : |
|
|
4792 | |
|
|
4793 | else $as_nop |
|
|
4794 | CXXFLAGS="-g -O3" |
|
|
4795 | fi |
|
|
4796 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4797 | else |
|
|
4798 | CXXFLAGS="-O" |
|
|
4799 | fi |
|
|
4800 | CFLAGS="$CXXFLAGS" |
|
|
4801 | fi |
|
|
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; } |
4804 | printf %s "checking for library containing setlocale... " >&6; } |
4446 | if ${ac_cv_search_strerror+:} false; then : |
4805 | if test ${ac_cv_search_setlocale+y} |
4447 | $as_echo_n "(cached) " >&6 |
4806 | then : |
4448 | else |
4807 | printf %s "(cached) " >&6 |
|
|
4808 | else $as_nop |
4449 | ac_func_search_save_LIBS=$LIBS |
4809 | ac_func_search_save_LIBS=$LIBS |
4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4810 | cat 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. |
4813 | namespace 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 |
|
|
4457 | extern "C" |
|
|
4458 | #endif |
|
|
4459 | char strerror (); |
|
|
4460 | int |
4816 | int |
4461 | main () |
4817 | main (void) |
4462 | { |
4818 | { |
4463 | return strerror (); |
4819 | return conftest::setlocale (); |
4464 | ; |
4820 | ; |
4465 | return 0; |
4821 | return 0; |
4466 | } |
4822 | } |
4467 | _ACEOF |
4823 | _ACEOF |
4468 | for ac_lib in '' cposix; do |
4824 | for ac_lib in '' xpg4 |
|
|
4825 | do |
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" |
|
|
4833 | then : |
4476 | ac_cv_search_strerror=$ac_res |
4834 | ac_cv_search_setlocale=$ac_res |
4477 | fi |
4835 | fi |
4478 | rm -f core conftest.err conftest.$ac_objext \ |
4836 | rm -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} |
|
|
4839 | then : |
4481 | break |
4840 | break |
4482 | fi |
4841 | fi |
4483 | done |
4842 | done |
4484 | if ${ac_cv_search_strerror+:} false; then : |
4843 | if test ${ac_cv_search_setlocale+y} |
|
|
4844 | then : |
4485 | |
4845 | |
4486 | else |
4846 | else $as_nop |
4487 | ac_cv_search_strerror=no |
4847 | ac_cv_search_setlocale=no |
4488 | fi |
4848 | fi |
4489 | rm conftest.$ac_ext |
4849 | rm conftest.$ac_ext |
4490 | LIBS=$ac_func_search_save_LIBS |
4850 | LIBS=$ac_func_search_save_LIBS |
4491 | fi |
4851 | fi |
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; } |
4853 | printf "%s\n" "$ac_cv_search_setlocale" >&6; } |
4494 | ac_res=$ac_cv_search_strerror |
4854 | ac_res=$ac_cv_search_setlocale |
4495 | if test "$ac_res" != no; then : |
4855 | if test "$ac_res" != no |
|
|
4856 | then : |
4496 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4857 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4497 | |
4858 | |
4498 | fi |
4859 | fi |
4499 | |
4860 | |
4500 | ac_ext=cpp |
|
|
4501 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4502 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4503 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4504 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4505 | |
4861 | |
4506 | |
|
|
4507 | LINKER="$CXX" |
|
|
4508 | if 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 | |
|
|
4516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4517 | /* end confdefs.h. */ |
|
|
4518 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
4519 | int |
|
|
4520 | main () |
|
|
4521 | { |
|
|
4522 | |
|
|
4523 | ; |
|
|
4524 | return 0; |
|
|
4525 | } |
|
|
4526 | _ACEOF |
|
|
4527 | if 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" |
|
|
4531 | else |
|
|
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 | |
|
|
4538 | fi |
|
|
4539 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4540 | conftest$ac_exeext conftest.$ac_ext |
|
|
4541 | CXX="$save_CXX" |
|
|
4542 | fi |
|
|
4543 | LINKER=$LINKER |
|
|
4544 | |
|
|
4545 | |
|
|
4546 | if 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 | |
|
|
4552 | int |
|
|
4553 | main () |
|
|
4554 | { |
|
|
4555 | |
|
|
4556 | ; |
|
|
4557 | return 0; |
|
|
4558 | } |
|
|
4559 | _ACEOF |
|
|
4560 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
4561 | |
|
|
4562 | else |
|
|
4563 | CXXFLAGS="-g -O3" |
|
|
4564 | fi |
|
|
4565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4566 | else |
|
|
4567 | CXXFLAGS="-O" |
|
|
4568 | fi |
|
|
4569 | CFLAGS="$CXXFLAGS" |
|
|
4570 | fi |
|
|
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; } |
4863 | printf %s "checking for library containing gethostbyname... " >&6; } |
4574 | if ${ac_cv_search_setlocale+:} false; then : |
4864 | if test ${ac_cv_search_gethostbyname+y} |
4575 | $as_echo_n "(cached) " >&6 |
4865 | then : |
4576 | else |
4866 | printf %s "(cached) " >&6 |
|
|
4867 | else $as_nop |
4577 | ac_func_search_save_LIBS=$LIBS |
4868 | ac_func_search_save_LIBS=$LIBS |
4578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4869 | cat 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. |
4872 | namespace 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 |
|
|
4585 | extern "C" |
|
|
4586 | #endif |
|
|
4587 | char setlocale (); |
|
|
4588 | int |
4875 | int |
4589 | main () |
4876 | main (void) |
4590 | { |
4877 | { |
4591 | return setlocale (); |
4878 | return conftest::gethostbyname (); |
4592 | ; |
4879 | ; |
4593 | return 0; |
4880 | return 0; |
4594 | } |
4881 | } |
4595 | _ACEOF |
4882 | _ACEOF |
4596 | for ac_lib in '' xpg4; do |
4883 | for ac_lib in '' nsl |
|
|
4884 | do |
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" |
|
|
4892 | then : |
4604 | ac_cv_search_setlocale=$ac_res |
4893 | ac_cv_search_gethostbyname=$ac_res |
4605 | fi |
4894 | fi |
4606 | rm -f core conftest.err conftest.$ac_objext \ |
4895 | rm -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} |
|
|
4898 | then : |
4609 | break |
4899 | break |
4610 | fi |
4900 | fi |
4611 | done |
4901 | done |
4612 | if ${ac_cv_search_setlocale+:} false; then : |
4902 | if test ${ac_cv_search_gethostbyname+y} |
|
|
4903 | then : |
4613 | |
4904 | |
4614 | else |
4905 | else $as_nop |
4615 | ac_cv_search_setlocale=no |
4906 | ac_cv_search_gethostbyname=no |
4616 | fi |
4907 | fi |
4617 | rm conftest.$ac_ext |
4908 | rm conftest.$ac_ext |
4618 | LIBS=$ac_func_search_save_LIBS |
4909 | LIBS=$ac_func_search_save_LIBS |
4619 | fi |
4910 | fi |
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; } |
4912 | printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
4622 | ac_res=$ac_cv_search_setlocale |
4913 | ac_res=$ac_cv_search_gethostbyname |
4623 | if test "$ac_res" != no; then : |
4914 | if test "$ac_res" != no |
|
|
4915 | then : |
4624 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4916 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4625 | |
4917 | |
4626 | fi |
4918 | fi |
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; } |
4921 | printf %s "checking for library containing socket... " >&6; } |
4631 | if ${ac_cv_search_gethostbyname+:} false; then : |
4922 | if test ${ac_cv_search_socket+y} |
4632 | $as_echo_n "(cached) " >&6 |
4923 | then : |
4633 | else |
4924 | printf %s "(cached) " >&6 |
|
|
4925 | else $as_nop |
4634 | ac_func_search_save_LIBS=$LIBS |
4926 | ac_func_search_save_LIBS=$LIBS |
4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4927 | cat 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. |
4930 | namespace 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 |
|
|
4642 | extern "C" |
|
|
4643 | #endif |
|
|
4644 | char gethostbyname (); |
|
|
4645 | int |
4933 | int |
4646 | main () |
4934 | main (void) |
4647 | { |
4935 | { |
4648 | return gethostbyname (); |
4936 | return conftest::socket (); |
4649 | ; |
4937 | ; |
4650 | return 0; |
4938 | return 0; |
4651 | } |
4939 | } |
4652 | _ACEOF |
4940 | _ACEOF |
4653 | for ac_lib in '' nsl; do |
4941 | for ac_lib in '' socket |
|
|
4942 | do |
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" |
|
|
4950 | then : |
4661 | ac_cv_search_gethostbyname=$ac_res |
4951 | ac_cv_search_socket=$ac_res |
4662 | fi |
4952 | fi |
4663 | rm -f core conftest.err conftest.$ac_objext \ |
4953 | rm -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} |
|
|
4956 | then : |
4666 | break |
4957 | break |
4667 | fi |
4958 | fi |
4668 | done |
4959 | done |
4669 | if ${ac_cv_search_gethostbyname+:} false; then : |
4960 | if test ${ac_cv_search_socket+y} |
|
|
4961 | then : |
4670 | |
4962 | |
4671 | else |
4963 | else $as_nop |
4672 | ac_cv_search_gethostbyname=no |
4964 | ac_cv_search_socket=no |
4673 | fi |
4965 | fi |
4674 | rm conftest.$ac_ext |
4966 | rm conftest.$ac_ext |
4675 | LIBS=$ac_func_search_save_LIBS |
4967 | LIBS=$ac_func_search_save_LIBS |
4676 | fi |
4968 | fi |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
|
|
4678 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
|
|
4679 | ac_res=$ac_cv_search_gethostbyname |
|
|
4680 | if test "$ac_res" != no; then : |
|
|
4681 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
4682 | |
|
|
4683 | fi |
|
|
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; } |
|
|
4687 | if ${ac_cv_search_socket+:} false; then : |
|
|
4688 | $as_echo_n "(cached) " >&6 |
|
|
4689 | else |
|
|
4690 | ac_func_search_save_LIBS=$LIBS |
|
|
4691 | cat 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 |
|
|
4698 | extern "C" |
|
|
4699 | #endif |
|
|
4700 | char socket (); |
|
|
4701 | int |
|
|
4702 | main () |
|
|
4703 | { |
|
|
4704 | return socket (); |
|
|
4705 | ; |
|
|
4706 | return 0; |
|
|
4707 | } |
|
|
4708 | _ACEOF |
|
|
4709 | for 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 |
|
|
4718 | fi |
|
|
4719 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4720 | conftest$ac_exeext |
|
|
4721 | if ${ac_cv_search_socket+:} false; then : |
|
|
4722 | break |
|
|
4723 | fi |
|
|
4724 | done |
|
|
4725 | if ${ac_cv_search_socket+:} false; then : |
|
|
4726 | |
|
|
4727 | else |
|
|
4728 | ac_cv_search_socket=no |
|
|
4729 | fi |
|
|
4730 | rm conftest.$ac_ext |
|
|
4731 | LIBS=$ac_func_search_save_LIBS |
|
|
4732 | fi |
|
|
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; } |
4970 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
4735 | ac_res=$ac_cv_search_socket |
4971 | ac_res=$ac_cv_search_socket |
4736 | if test "$ac_res" != no; then : |
4972 | if test "$ac_res" != no |
|
|
4973 | then : |
4737 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4738 | |
4975 | |
4739 | fi |
4976 | fi |
4740 | |
4977 | |
4741 | |
4978 | |
… | |
… | |
4763 | support_perl=yes |
5000 | support_perl=yes |
4764 | codesets=all |
5001 | codesets=all |
4765 | |
5002 | |
4766 | |
5003 | |
4767 | # Check whether --enable-everything was given. |
5004 | # Check whether --enable-everything was given. |
4768 | if test "${enable_everything+set}" = set; then : |
5005 | if test ${enable_everything+y} |
|
|
5006 | then : |
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 |
… | |
… | |
4827 | fi |
5059 | fi |
4828 | |
5060 | |
4829 | |
5061 | |
4830 | support_assertions=no |
5062 | support_assertions=no |
4831 | # Check whether --enable-assert was given. |
5063 | # Check whether --enable-assert was given. |
4832 | if test "${enable_assert+set}" = set; then : |
5064 | if test ${enable_assert+y} |
|
|
5065 | then : |
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 |
4836 | fi |
5069 | fi |
4837 | |
5070 | |
4838 | if test x$support_assertions = xno; then |
5071 | if test x$support_assertions = xno; then |
4839 | |
5072 | |
4840 | $as_echo "#define NDEBUG 1" >>confdefs.h |
5073 | printf "%s\n" "#define NDEBUG 1" >>confdefs.h |
4841 | |
5074 | |
4842 | fi |
5075 | fi |
4843 | |
5076 | |
4844 | support_warnings=no |
5077 | support_warnings=no |
4845 | # Check whether --enable-warnings was given. |
5078 | # Check whether --enable-warnings was given. |
4846 | if test "${enable_warnings+set}" = set; then : |
5079 | if test ${enable_warnings+y} |
|
|
5080 | then : |
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 |
4850 | fi |
5084 | fi |
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 | |
4859 | int |
5093 | int |
4860 | main () |
5094 | main (void) |
4861 | { |
5095 | { |
4862 | |
5096 | |
4863 | ; |
5097 | ; |
4864 | return 0; |
5098 | return 0; |
4865 | } |
5099 | } |
4866 | _ACEOF |
5100 | _ACEOF |
4867 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5101 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
5102 | then : |
4868 | |
5103 | |
4869 | else |
5104 | else $as_nop |
4870 | CXXFLAGS="$save_CXXFLAGS" |
5105 | CXXFLAGS="$save_CXXFLAGS" |
4871 | fi |
5106 | fi |
4872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5107 | rm -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 |
4876 | fi |
5111 | fi |
4877 | |
5112 | |
4878 | support_256_color=no |
5113 | support_256_color=no |
4879 | # Check whether --enable-256-color was given. |
5114 | # Check whether --enable-256-color was given. |
4880 | if test "${enable_256_color+set}" = set; then : |
5115 | if test ${enable_256_color+y} |
|
|
5116 | then : |
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 |
4884 | fi |
5120 | fi |
4885 | |
5121 | |
4886 | if test x$support_256_color = xyes; then |
5122 | if test x$support_256_color = xyes; then |
4887 | |
5123 | |
4888 | $as_echo "#define USE_256_COLORS 1" >>confdefs.h |
5124 | printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h |
4889 | |
5125 | |
4890 | fi |
5126 | fi |
4891 | |
5127 | |
4892 | # Check whether --enable-unicode3 was given. |
5128 | # Check whether --enable-unicode3 was given. |
4893 | if test "${enable_unicode3+set}" = set; then : |
5129 | if test ${enable_unicode3+y} |
|
|
5130 | then : |
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 |
4897 | fi |
5134 | fi |
4898 | |
5135 | |
4899 | |
5136 | |
4900 | # Check whether --enable-combining was given. |
5137 | # Check whether --enable-combining was given. |
4901 | if test "${enable_combining+set}" = set; then : |
5138 | if test ${enable_combining+y} |
|
|
5139 | then : |
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 |
4905 | fi |
5143 | fi |
4906 | |
5144 | |
4907 | |
5145 | |
4908 | # Check whether --enable-xft was given. |
5146 | # Check whether --enable-xft was given. |
4909 | if test "${enable_xft+set}" = set; then : |
5147 | if test ${enable_xft+y} |
|
|
5148 | then : |
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 |
4913 | fi |
5152 | fi |
4914 | |
5153 | |
4915 | |
5154 | |
4916 | # Check whether --enable-font-styles was given. |
5155 | # Check whether --enable-font-styles was given. |
4917 | if test "${enable_font_styles+set}" = set; then : |
5156 | if test ${enable_font_styles+y} |
|
|
5157 | then : |
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 |
4921 | fi |
5161 | fi |
4922 | |
5162 | |
4923 | |
5163 | |
4924 | # Check whether --enable-pixbuf was given. |
5164 | # Check whether --enable-pixbuf was given. |
4925 | if test "${enable_pixbuf+set}" = set; then : |
5165 | if test ${enable_pixbuf+y} |
|
|
5166 | then : |
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 |
4929 | fi |
5170 | fi |
4930 | |
5171 | |
4931 | |
5172 | |
4932 | # Check whether --enable-startup-notification was given. |
5173 | # Check whether --enable-startup-notification was given. |
4933 | if test "${enable_startup_notification+set}" = set; then : |
5174 | if test ${enable_startup_notification+y} |
|
|
5175 | then : |
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 |
4937 | fi |
5179 | fi |
4938 | |
5180 | |
4939 | |
5181 | |
4940 | # Check whether --enable-transparency was given. |
5182 | # Check whether --enable-transparency was given. |
4941 | if test "${enable_transparency+set}" = set; then : |
5183 | if test ${enable_transparency+y} |
|
|
5184 | then : |
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 |
4945 | fi |
5188 | fi |
4946 | |
5189 | |
4947 | |
5190 | |
4948 | # Check whether --enable-fading was given. |
5191 | # Check whether --enable-fading was given. |
4949 | if test "${enable_fading+set}" = set; then : |
5192 | if test ${enable_fading+y} |
|
|
5193 | then : |
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 |
4953 | fi |
5197 | fi |
4954 | |
5198 | |
4955 | |
5199 | |
4956 | # Check whether --enable-rxvt-scroll was given. |
5200 | # Check whether --enable-rxvt-scroll was given. |
4957 | if test "${enable_rxvt_scroll+set}" = set; then : |
5201 | if test ${enable_rxvt_scroll+y} |
|
|
5202 | then : |
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 |
4961 | fi |
5206 | fi |
4962 | |
5207 | |
4963 | |
5208 | |
4964 | # Check whether --enable-next-scroll was given. |
5209 | # Check whether --enable-next-scroll was given. |
4965 | if test "${enable_next_scroll+set}" = set; then : |
5210 | if test ${enable_next_scroll+y} |
|
|
5211 | then : |
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 |
4969 | fi |
5215 | fi |
4970 | |
5216 | |
4971 | |
5217 | |
4972 | # Check whether --enable-xterm-scroll was given. |
5218 | # Check whether --enable-xterm-scroll was given. |
4973 | if test "${enable_xterm_scroll+set}" = set; then : |
5219 | if test ${enable_xterm_scroll+y} |
|
|
5220 | then : |
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 |
4977 | fi |
5224 | fi |
4978 | |
5225 | |
4979 | |
5226 | |
4980 | # Check whether --enable-perl was given. |
5227 | # Check whether --enable-perl was given. |
4981 | if test "${enable_perl+set}" = set; then : |
5228 | if test ${enable_perl+y} |
|
|
5229 | then : |
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 |
4985 | fi |
5233 | fi |
4986 | |
5234 | |
4987 | |
5235 | |
4988 | |
5236 | |
4989 | # Check whether --with-codesets was given. |
5237 | # Check whether --with-codesets was given. |
4990 | if test "${with_codesets+set}" = set; then : |
5238 | if test ${with_codesets+y} |
|
|
5239 | then : |
4991 | withval=$with_codesets; codesets="$withval" |
5240 | withval=$with_codesets; codesets="$withval" |
4992 | fi |
5241 | fi |
4993 | |
5242 | |
4994 | |
5243 | |
4995 | # Check whether --enable-xim was given. |
5244 | # Check whether --enable-xim was given. |
4996 | if test "${enable_xim+set}" = set; then : |
5245 | if test ${enable_xim+y} |
|
|
5246 | then : |
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 |
5000 | fi |
5250 | fi |
5001 | |
5251 | |
5002 | |
5252 | |
5003 | # Check whether --enable-backspace-key was given. |
5253 | # Check whether --enable-backspace-key was given. |
5004 | if test "${enable_backspace_key+set}" = set; then : |
5254 | if test ${enable_backspace_key+y} |
|
|
5255 | then : |
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 |
5258 | printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h |
5008 | |
5259 | |
5009 | fi |
5260 | fi |
5010 | fi |
5261 | fi |
5011 | |
5262 | |
5012 | |
5263 | |
5013 | # Check whether --enable-delete-key was given. |
5264 | # Check whether --enable-delete-key was given. |
5014 | if test "${enable_delete_key+set}" = set; then : |
5265 | if test ${enable_delete_key+y} |
|
|
5266 | then : |
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 |
5269 | printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h |
5018 | |
5270 | |
5019 | fi |
5271 | fi |
5020 | fi |
5272 | fi |
5021 | |
5273 | |
5022 | |
5274 | |
5023 | support_resources=yes |
5275 | support_resources=yes |
5024 | # Check whether --enable-resources was given. |
5276 | # Check whether --enable-resources was given. |
5025 | if test "${enable_resources+set}" = set; then : |
5277 | if test ${enable_resources+y} |
|
|
5278 | then : |
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 |
5029 | fi |
5282 | fi |
5030 | |
5283 | |
5031 | |
5284 | |
5032 | # Check whether --enable-8bitctrls was given. |
5285 | # Check whether --enable-8bitctrls was given. |
5033 | if test "${enable_8bitctrls+set}" = set; then : |
5286 | if test ${enable_8bitctrls+y} |
|
|
5287 | then : |
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 |
5037 | fi |
5291 | fi |
5038 | |
5292 | |
5039 | |
5293 | |
5040 | RESFALLBACK=Rxvt |
5294 | RESFALLBACK=Rxvt |
5041 | # Check whether --enable-fallback was given. |
5295 | # Check whether --enable-fallback was given. |
5042 | if test "${enable_fallback+set}" = set; then : |
5296 | if test ${enable_fallback+y} |
|
|
5297 | then : |
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 | |
5048 | fi |
5303 | fi |
5049 | |
5304 | |
5050 | |
5305 | |
5051 | if test x$RESFALLBACK != x; then |
5306 | if test x$RESFALLBACK != x; then |
5052 | |
5307 | |
5053 | cat >>confdefs.h <<_ACEOF |
5308 | printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h |
5054 | #define RESFALLBACK "$RESFALLBACK" |
|
|
5055 | _ACEOF |
|
|
5056 | |
5309 | |
5057 | fi |
5310 | fi |
5058 | |
5311 | |
5059 | RESNAME=urxvt |
5312 | RESNAME=urxvt |
5060 | |
5313 | |
5061 | # Check whether --with-res-name was given. |
5314 | # Check whether --with-res-name was given. |
5062 | if test "${with_res_name+set}" = set; then : |
5315 | if test ${with_res_name+y} |
|
|
5316 | then : |
5063 | withval=$with_res_name; RESNAME="$withval" |
5317 | withval=$with_res_name; RESNAME="$withval" |
5064 | fi |
5318 | fi |
5065 | |
5319 | |
5066 | |
5320 | |
5067 | cat >>confdefs.h <<_ACEOF |
5321 | printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h |
5068 | #define RESNAME "$RESNAME" |
|
|
5069 | _ACEOF |
|
|
5070 | |
5322 | |
5071 | |
5323 | |
5072 | RESCLASS=URxvt |
5324 | RESCLASS=URxvt |
5073 | |
5325 | |
5074 | # Check whether --with-res-class was given. |
5326 | # Check whether --with-res-class was given. |
5075 | if test "${with_res_class+set}" = set; then : |
5327 | if test ${with_res_class+y} |
|
|
5328 | then : |
5076 | withval=$with_res_class; RESCLASS="$withval" |
5329 | withval=$with_res_class; RESCLASS="$withval" |
5077 | fi |
5330 | fi |
5078 | |
5331 | |
5079 | |
5332 | |
5080 | cat >>confdefs.h <<_ACEOF |
5333 | printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h |
5081 | #define RESCLASS "$RESCLASS" |
|
|
5082 | _ACEOF |
|
|
5083 | |
5334 | |
5084 | |
5335 | |
5085 | RXVTNAME=urxvt |
5336 | RXVTNAME=urxvt |
5086 | |
5337 | |
5087 | # Check whether --with-name was given. |
5338 | # Check whether --with-name was given. |
5088 | if test "${with_name+set}" = set; then : |
5339 | if test ${with_name+y} |
|
|
5340 | then : |
5089 | withval=$with_name; RXVTNAME="$withval" |
5341 | withval=$with_name; RXVTNAME="$withval" |
5090 | fi |
5342 | fi |
5091 | |
5343 | |
5092 | |
5344 | |
5093 | cat >>confdefs.h <<_ACEOF |
5345 | printf "%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. |
5101 | if test "${enable_swapscreen+set}" = set; then : |
5351 | if test ${enable_swapscreen+y} |
|
|
5352 | then : |
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 |
5355 | printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h |
5105 | |
5356 | |
5106 | fi |
5357 | fi |
5107 | fi |
5358 | fi |
5108 | |
5359 | |
5109 | |
5360 | |
5110 | # Check whether --enable-iso14755 was given. |
5361 | # Check whether --enable-iso14755 was given. |
5111 | if test "${enable_iso14755+set}" = set; then : |
5362 | if test ${enable_iso14755+y} |
|
|
5363 | then : |
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 |
5115 | fi |
5367 | fi |
5116 | |
5368 | |
5117 | |
5369 | |
5118 | # Check whether --enable-frills was given. |
5370 | # Check whether --enable-frills was given. |
5119 | if test "${enable_frills+set}" = set; then : |
5371 | if test ${enable_frills+y} |
|
|
5372 | then : |
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 |
5123 | fi |
5376 | fi |
5124 | |
5377 | |
5125 | |
5378 | |
5126 | # Check whether --enable-keepscrolling was given. |
5379 | # Check whether --enable-keepscrolling was given. |
5127 | if test "${enable_keepscrolling+set}" = set; then : |
5380 | if test ${enable_keepscrolling+y} |
|
|
5381 | then : |
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 |
5131 | fi |
5385 | fi |
5132 | |
5386 | |
5133 | |
5387 | |
5134 | # Check whether --enable-selectionscrolling was given. |
5388 | # Check whether --enable-selectionscrolling was given. |
5135 | if test "${enable_selectionscrolling+set}" = set; then : |
5389 | if test ${enable_selectionscrolling+y} |
|
|
5390 | then : |
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 |
5139 | fi |
5394 | fi |
5140 | |
5395 | |
5141 | |
5396 | |
5142 | # Check whether --enable-mousewheel was given. |
5397 | # Check whether --enable-mousewheel was given. |
5143 | if test "${enable_mousewheel+set}" = set; then : |
5398 | if test ${enable_mousewheel+y} |
|
|
5399 | then : |
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 |
5147 | fi |
5403 | fi |
5148 | |
5404 | |
5149 | |
5405 | |
5150 | # Check whether --enable-slipwheeling was given. |
5406 | # Check whether --enable-slipwheeling was given. |
5151 | if test "${enable_slipwheeling+set}" = set; then : |
5407 | if test ${enable_slipwheeling+y} |
|
|
5408 | then : |
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 |
5155 | fi |
5412 | fi |
5156 | |
5413 | |
5157 | |
5414 | |
5158 | # Check whether --enable-smart-resize was given. |
5415 | # Check whether --enable-smart-resize was given. |
5159 | if test "${enable_smart_resize+set}" = set; then : |
5416 | if test ${enable_smart_resize+y} |
|
|
5417 | then : |
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 |
5420 | printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h |
5163 | |
5421 | |
5164 | fi |
5422 | fi |
5165 | fi |
5423 | fi |
5166 | |
5424 | |
5167 | |
5425 | |
5168 | # Check whether --enable-text-blink was given. |
5426 | # Check whether --enable-text-blink was given. |
5169 | if test "${enable_text_blink+set}" = set; then : |
5427 | if test ${enable_text_blink+y} |
|
|
5428 | then : |
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 |
5173 | fi |
5432 | fi |
5174 | |
5433 | |
5175 | |
5434 | |
5176 | # Check whether --enable-pointer-blank was given. |
5435 | # Check whether --enable-pointer-blank was given. |
5177 | if test "${enable_pointer_blank+set}" = set; then : |
5436 | if test ${enable_pointer_blank+y} |
|
|
5437 | then : |
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 |
5181 | fi |
5441 | fi |
5182 | |
5442 | |
5183 | |
5443 | |
5184 | |
5444 | |
5185 | # Check whether --with-term was given. |
5445 | # Check whether --with-term was given. |
5186 | if test "${with_term+set}" = set; then : |
5446 | if test ${with_term+y} |
|
|
5447 | then : |
5187 | withval=$with_term; if test x$withval != x; then |
5448 | withval=$with_term; if test x$withval != x; then |
5188 | |
5449 | |
5189 | cat >>confdefs.h <<_ACEOF |
5450 | printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h |
5190 | #define TERMENV "$withval" |
|
|
5191 | _ACEOF |
|
|
5192 | term="$withval" |
5451 | term="$withval" |
5193 | fi |
5452 | fi |
5194 | fi |
5453 | fi |
5195 | |
5454 | |
5196 | |
5455 | |
5197 | |
5456 | |
5198 | # Check whether --with-terminfo was given. |
5457 | # Check whether --with-terminfo was given. |
5199 | if test "${with_terminfo+set}" = set; then : |
5458 | if test ${with_terminfo+y} |
|
|
5459 | then : |
5200 | withval=$with_terminfo; if test x$withval != x; then |
5460 | withval=$with_terminfo; if test x$withval != x; then |
5201 | |
5461 | |
5202 | cat >>confdefs.h <<_ACEOF |
5462 | printf "%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 |
5207 | fi |
5465 | fi |
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 |
5474 | printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h |
5217 | |
5475 | |
5218 | fi |
5476 | fi |
5219 | |
5477 | |
5220 | |
5478 | |
5221 | LIBEV_M4_AVOID_LIBRT=1 |
5479 | LIBEV_M4_AVOID_LIBRT=1 |
5222 | |
5480 | |
5223 | ac_ext=cpp |
5481 | ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
5224 | ac_cpp='$CXXCPP $CPPFLAGS' |
5482 | if test "x$ac_cv_header_sys_inotify_h" = xyes |
5225 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5483 | then : |
5226 | ac_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 |
5227 | ac_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; } |
|
|
5230 | if test -z "$CXXCPP"; then |
|
|
5231 | if ${ac_cv_prog_CXXCPP+:} false; then : |
|
|
5232 | $as_echo_n "(cached) " >&6 |
|
|
5233 | else |
|
|
5234 | # Double quotes because CXXCPP needs to be expanded |
|
|
5235 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
5236 | do |
|
|
5237 | ac_preproc_ok=false |
|
|
5238 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5239 | do |
|
|
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 |
|
|
5255 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
|
5256 | |
5485 | |
5257 | else |
|
|
5258 | # Broken: fails on valid input. |
|
|
5259 | continue |
|
|
5260 | fi |
5486 | fi |
5261 | rm -f conftest.err conftest.i conftest.$ac_ext |
5487 | ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
|
|
5488 | if test "x$ac_cv_header_sys_epoll_h" = xyes |
|
|
5489 | then : |
|
|
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 |
|
|
5269 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
|
5270 | # Broken: success on invalid input. |
|
|
5271 | continue |
|
|
5272 | else |
|
|
5273 | # Passes both tests. |
|
|
5274 | ac_preproc_ok=: |
|
|
5275 | break |
|
|
5276 | fi |
5492 | fi |
5277 | rm -f conftest.err conftest.i conftest.$ac_ext |
5493 | ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
|
|
5494 | if test "x$ac_cv_header_sys_event_h" = xyes |
|
|
5495 | then : |
|
|
5496 | printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
5278 | |
5497 | |
5279 | done |
|
|
5280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5281 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
5282 | if $ac_preproc_ok; then : |
|
|
5283 | break |
|
|
5284 | fi |
5498 | fi |
5285 | |
|
|
5286 | done |
|
|
5287 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5288 | |
|
|
5289 | fi |
|
|
5290 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5291 | else |
|
|
5292 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5293 | fi |
|
|
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
|
|
5295 | $as_echo "$CXXCPP" >&6; } |
|
|
5296 | ac_preproc_ok=false |
|
|
5297 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5298 | do |
|
|
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 |
|
|
5314 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
|
5315 | |
|
|
5316 | else |
|
|
5317 | # Broken: fails on valid input. |
|
|
5318 | continue |
|
|
5319 | fi |
|
|
5320 | rm -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 |
|
|
5328 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
|
5329 | # Broken: success on invalid input. |
|
|
5330 | continue |
|
|
5331 | else |
|
|
5332 | # Passes both tests. |
|
|
5333 | ac_preproc_ok=: |
|
|
5334 | break |
|
|
5335 | fi |
|
|
5336 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
5337 | |
|
|
5338 | done |
|
|
5339 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5340 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
5341 | if $ac_preproc_ok; then : |
|
|
5342 | |
|
|
5343 | else |
|
|
5344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
5345 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
5346 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5347 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
5348 | fi |
|
|
5349 | |
|
|
5350 | ac_ext=cpp |
|
|
5351 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5352 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5353 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5354 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5355 | |
|
|
5356 | |
|
|
5357 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/timerfd.h |
|
|
5358 | do : |
|
|
5359 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5360 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
5499 | ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" |
5361 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5500 | if test "x$ac_cv_header_port_h" = xyes |
5362 | cat >>confdefs.h <<_ACEOF |
5501 | then : |
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 | |
5366 | fi |
5504 | fi |
5367 | |
|
|
5368 | done |
|
|
5369 | |
|
|
5370 | for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h linux/fs.h |
|
|
5371 | do : |
|
|
5372 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5373 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
5505 | ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
5374 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5506 | if test "x$ac_cv_header_poll_h" = xyes |
5375 | cat >>confdefs.h <<_ACEOF |
5507 | then : |
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 | |
5379 | fi |
5510 | fi |
|
|
5511 | ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
|
|
5512 | if test "x$ac_cv_header_sys_timerfd_h" = xyes |
|
|
5513 | then : |
|
|
5514 | printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h |
5380 | |
5515 | |
5381 | done |
|
|
5382 | |
|
|
5383 | |
|
|
5384 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5385 | do : |
|
|
5386 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5387 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
5388 | if 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 | |
|
|
5393 | fi |
5516 | fi |
5394 | done |
|
|
5395 | |
5517 | |
|
|
5518 | ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
|
|
5519 | if test "x$ac_cv_header_sys_select_h" = xyes |
|
|
5520 | then : |
|
|
5521 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
5396 | |
5522 | |
|
|
5523 | fi |
|
|
5524 | ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
|
|
5525 | if test "x$ac_cv_header_sys_eventfd_h" = xyes |
|
|
5526 | then : |
|
|
5527 | printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
|
|
5528 | |
|
|
5529 | fi |
|
|
5530 | ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default" |
|
|
5531 | if test "x$ac_cv_header_sys_signalfd_h" = xyes |
|
|
5532 | then : |
|
|
5533 | printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h |
|
|
5534 | |
|
|
5535 | fi |
|
|
5536 | ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default" |
|
|
5537 | if test "x$ac_cv_header_linux_aio_abi_h" = xyes |
|
|
5538 | then : |
|
|
5539 | printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h |
|
|
5540 | |
|
|
5541 | fi |
|
|
5542 | ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
|
|
5543 | if test "x$ac_cv_header_linux_fs_h" = xyes |
|
|
5544 | then : |
|
|
5545 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
5546 | |
|
|
5547 | fi |
|
|
5548 | |
|
|
5549 | |
|
|
5550 | ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" |
|
|
5551 | if test "x$ac_cv_func_inotify_init" = xyes |
|
|
5552 | then : |
|
|
5553 | printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h |
|
|
5554 | |
|
|
5555 | fi |
|
|
5556 | ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" |
|
|
5557 | if test "x$ac_cv_func_epoll_ctl" = xyes |
|
|
5558 | then : |
|
|
5559 | printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h |
|
|
5560 | |
|
|
5561 | fi |
|
|
5562 | ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" |
|
|
5563 | if test "x$ac_cv_func_kqueue" = xyes |
|
|
5564 | then : |
|
|
5565 | printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
|
|
5566 | |
|
|
5567 | fi |
|
|
5568 | ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create" |
|
|
5569 | if test "x$ac_cv_func_port_create" = xyes |
|
|
5570 | then : |
|
|
5571 | printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h |
|
|
5572 | |
|
|
5573 | fi |
|
|
5574 | ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll" |
|
|
5575 | if test "x$ac_cv_func_poll" = xyes |
|
|
5576 | then : |
|
|
5577 | printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
|
|
5578 | |
|
|
5579 | fi |
|
|
5580 | ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select" |
|
|
5581 | if test "x$ac_cv_func_select" = xyes |
|
|
5582 | then : |
|
|
5583 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
|
|
5584 | |
|
|
5585 | fi |
|
|
5586 | ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
|
|
5587 | if test "x$ac_cv_func_eventfd" = xyes |
|
|
5588 | then : |
|
|
5589 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
5590 | |
|
|
5591 | fi |
|
|
5592 | ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd" |
|
|
5593 | if test "x$ac_cv_func_signalfd" = xyes |
|
|
5594 | then : |
|
|
5595 | printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h |
|
|
5596 | |
|
|
5597 | fi |
|
|
5598 | |
|
|
5599 | |
|
|
5600 | |
5397 | for ac_func in clock_gettime |
5601 | for ac_func in clock_gettime |
5398 | do : |
5602 | do : |
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" |
5400 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
5604 | if test "x$ac_cv_func_clock_gettime" = xyes |
5401 | cat >>confdefs.h <<_ACEOF |
5605 | then : |
5402 | #define HAVE_CLOCK_GETTIME 1 |
5606 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
5403 | _ACEOF |
|
|
5404 | |
5607 | |
5405 | else |
5608 | else $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; } |
5612 | printf %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> |
5415 | int |
5618 | int |
5416 | main () |
5619 | main (void) |
5417 | { |
5620 | { |
5418 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
5621 | struct 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 |
5423 | if ac_fn_cxx_try_link "$LINENO"; then : |
5626 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5627 | then : |
5424 | ac_have_clock_syscall=1 |
5628 | ac_have_clock_syscall=1 |
5425 | |
5629 | |
5426 | $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
5630 | printf "%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; } |
5633 | printf "%s\n" "yes" >&6; } |
5430 | else |
5634 | else $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; } |
5636 | printf "%s\n" "no" >&6; } |
5433 | fi |
5637 | fi |
5434 | rm -f core conftest.err conftest.$ac_objext \ |
5638 | rm -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; } |
5643 | printf %s "checking for clock_gettime in -lrt... " >&6; } |
5440 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
5644 | if test ${ac_cv_lib_rt_clock_gettime+y} |
5441 | $as_echo_n "(cached) " >&6 |
5645 | then : |
5442 | else |
5646 | printf %s "(cached) " >&6 |
|
|
5647 | else $as_nop |
5443 | ac_check_lib_save_LIBS=$LIBS |
5648 | ac_check_lib_save_LIBS=$LIBS |
5444 | LIBS="-lrt $LIBS" |
5649 | LIBS="-lrt $LIBS" |
5445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5650 | cat 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. |
5653 | namespace 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 |
|
|
5452 | extern "C" |
|
|
5453 | #endif |
|
|
5454 | char clock_gettime (); |
|
|
5455 | int |
5656 | int |
5456 | main () |
5657 | main (void) |
5457 | { |
5658 | { |
5458 | return clock_gettime (); |
5659 | return conftest::clock_gettime (); |
5459 | ; |
5660 | ; |
5460 | return 0; |
5661 | return 0; |
5461 | } |
5662 | } |
5462 | _ACEOF |
5663 | _ACEOF |
5463 | if ac_fn_cxx_try_link "$LINENO"; then : |
5664 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5665 | then : |
5464 | ac_cv_lib_rt_clock_gettime=yes |
5666 | ac_cv_lib_rt_clock_gettime=yes |
5465 | else |
5667 | else $as_nop |
5466 | ac_cv_lib_rt_clock_gettime=no |
5668 | ac_cv_lib_rt_clock_gettime=no |
5467 | fi |
5669 | fi |
5468 | rm -f core conftest.err conftest.$ac_objext \ |
5670 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5469 | conftest$ac_exeext conftest.$ac_ext |
5671 | conftest$ac_exeext conftest.$ac_ext |
5470 | LIBS=$ac_check_lib_save_LIBS |
5672 | LIBS=$ac_check_lib_save_LIBS |
5471 | fi |
5673 | fi |
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; } |
5675 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
5474 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
5676 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
5475 | cat >>confdefs.h <<_ACEOF |
5677 | then : |
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 | |
5481 | fi |
5682 | fi |
5482 | |
5683 | |
5483 | unset ac_cv_func_clock_gettime |
5684 | unset ac_cv_func_clock_gettime |
5484 | for ac_func in clock_gettime |
|
|
5485 | do : |
|
|
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" |
5487 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
5686 | if test "x$ac_cv_func_clock_gettime" = xyes |
5488 | cat >>confdefs.h <<_ACEOF |
5687 | then : |
5489 | #define HAVE_CLOCK_GETTIME 1 |
5688 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
5490 | _ACEOF |
|
|
5491 | |
5689 | |
5492 | fi |
5690 | fi |
|
|
5691 | |
|
|
5692 | fi |
|
|
5693 | |
|
|
5694 | fi |
|
|
5695 | |
5493 | done |
5696 | done |
5494 | |
5697 | |
5495 | fi |
|
|
5496 | |
5698 | |
5497 | fi |
|
|
5498 | done |
|
|
5499 | |
|
|
5500 | |
|
|
5501 | for ac_func in nanosleep |
5699 | for ac_func in nanosleep |
5502 | do : |
5700 | do : |
5503 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5701 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5504 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
5702 | if test "x$ac_cv_func_nanosleep" = xyes |
5505 | cat >>confdefs.h <<_ACEOF |
5703 | then : |
5506 | #define HAVE_NANOSLEEP 1 |
5704 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
5507 | _ACEOF |
|
|
5508 | |
5705 | |
5509 | else |
5706 | else $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; } |
5710 | printf %s "checking for nanosleep in -lrt... " >&6; } |
5514 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
5711 | if test ${ac_cv_lib_rt_nanosleep+y} |
5515 | $as_echo_n "(cached) " >&6 |
5712 | then : |
5516 | else |
5713 | printf %s "(cached) " >&6 |
|
|
5714 | else $as_nop |
5517 | ac_check_lib_save_LIBS=$LIBS |
5715 | ac_check_lib_save_LIBS=$LIBS |
5518 | LIBS="-lrt $LIBS" |
5716 | LIBS="-lrt $LIBS" |
5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5717 | cat 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. |
5720 | namespace 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 |
|
|
5526 | extern "C" |
|
|
5527 | #endif |
|
|
5528 | char nanosleep (); |
|
|
5529 | int |
5723 | int |
5530 | main () |
5724 | main (void) |
5531 | { |
5725 | { |
5532 | return nanosleep (); |
5726 | return conftest::nanosleep (); |
5533 | ; |
5727 | ; |
5534 | return 0; |
5728 | return 0; |
5535 | } |
5729 | } |
5536 | _ACEOF |
5730 | _ACEOF |
5537 | if ac_fn_cxx_try_link "$LINENO"; then : |
5731 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5732 | then : |
5538 | ac_cv_lib_rt_nanosleep=yes |
5733 | ac_cv_lib_rt_nanosleep=yes |
5539 | else |
5734 | else $as_nop |
5540 | ac_cv_lib_rt_nanosleep=no |
5735 | ac_cv_lib_rt_nanosleep=no |
5541 | fi |
5736 | fi |
5542 | rm -f core conftest.err conftest.$ac_objext \ |
5737 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5543 | conftest$ac_exeext conftest.$ac_ext |
5738 | conftest$ac_exeext conftest.$ac_ext |
5544 | LIBS=$ac_check_lib_save_LIBS |
5739 | LIBS=$ac_check_lib_save_LIBS |
5545 | fi |
5740 | fi |
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; } |
5742 | printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } |
5548 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
5743 | if test "x$ac_cv_lib_rt_nanosleep" = xyes |
5549 | cat >>confdefs.h <<_ACEOF |
5744 | then : |
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 | |
5555 | fi |
5749 | fi |
5556 | |
5750 | |
5557 | unset ac_cv_func_nanosleep |
5751 | unset ac_cv_func_nanosleep |
5558 | for ac_func in nanosleep |
|
|
5559 | do : |
|
|
5560 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5752 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5561 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
5753 | if test "x$ac_cv_func_nanosleep" = xyes |
5562 | cat >>confdefs.h <<_ACEOF |
5754 | then : |
5563 | #define HAVE_NANOSLEEP 1 |
5755 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
5564 | _ACEOF |
|
|
5565 | |
5756 | |
5566 | fi |
5757 | fi |
|
|
5758 | |
|
|
5759 | fi |
|
|
5760 | |
|
|
5761 | fi |
|
|
5762 | |
5567 | done |
5763 | done |
5568 | |
|
|
5569 | fi |
|
|
5570 | |
|
|
5571 | fi |
|
|
5572 | done |
|
|
5573 | |
|
|
5574 | |
5764 | |
5575 | ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
5765 | ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
5576 | " |
5766 | " |
5577 | if test "x$ac_cv_type___kernel_rwf_t" = xyes; then : |
5767 | if test "x$ac_cv_type___kernel_rwf_t" = xyes |
|
|
5768 | then : |
5578 | |
5769 | |
5579 | |
5770 | |
5580 | $as_echo "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
5771 | printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
5581 | |
5772 | |
5582 | |
5773 | |
5583 | fi |
5774 | fi |
5584 | |
5775 | |
5585 | |
5776 | |
5586 | if test -z "$LIBEV_M4_AVOID_LIBM"; then |
5777 | if test -z "$LIBEV_M4_AVOID_LIBM"; then |
5587 | LIBM=m |
5778 | LIBM=m |
5588 | fi |
5779 | fi |
5589 | { $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 |
5590 | $as_echo_n "checking for library containing floor... " >&6; } |
5781 | printf %s "checking for library containing floor... " >&6; } |
5591 | if ${ac_cv_search_floor+:} false; then : |
5782 | if test ${ac_cv_search_floor+y} |
5592 | $as_echo_n "(cached) " >&6 |
5783 | then : |
5593 | else |
5784 | printf %s "(cached) " >&6 |
|
|
5785 | else $as_nop |
5594 | ac_func_search_save_LIBS=$LIBS |
5786 | ac_func_search_save_LIBS=$LIBS |
5595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5596 | /* end confdefs.h. */ |
5788 | /* end confdefs.h. */ |
5597 | |
5789 | |
5598 | /* Override any GCC internal prototype to avoid an error. |
5790 | namespace conftest { |
5599 | Use char because int might match the return type of a GCC |
5791 | extern "C" int floor (); |
5600 | builtin and then its argument prototype would still apply. */ |
5792 | } |
5601 | #ifdef __cplusplus |
|
|
5602 | extern "C" |
|
|
5603 | #endif |
|
|
5604 | char floor (); |
|
|
5605 | int |
5793 | int |
5606 | main () |
5794 | main (void) |
5607 | { |
5795 | { |
5608 | return floor (); |
5796 | return conftest::floor (); |
5609 | ; |
5797 | ; |
5610 | return 0; |
5798 | return 0; |
5611 | } |
5799 | } |
5612 | _ACEOF |
5800 | _ACEOF |
5613 | for ac_lib in '' $LIBM; do |
5801 | for ac_lib in '' $LIBM |
|
|
5802 | do |
5614 | if test -z "$ac_lib"; then |
5803 | if test -z "$ac_lib"; then |
5615 | ac_res="none required" |
5804 | ac_res="none required" |
5616 | else |
5805 | else |
5617 | ac_res=-l$ac_lib |
5806 | ac_res=-l$ac_lib |
5618 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5807 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5619 | fi |
5808 | fi |
5620 | if ac_fn_cxx_try_link "$LINENO"; then : |
5809 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5810 | then : |
5621 | ac_cv_search_floor=$ac_res |
5811 | ac_cv_search_floor=$ac_res |
5622 | fi |
5812 | fi |
5623 | rm -f core conftest.err conftest.$ac_objext \ |
5813 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5624 | conftest$ac_exeext |
5814 | conftest$ac_exeext |
5625 | if ${ac_cv_search_floor+:} false; then : |
5815 | if test ${ac_cv_search_floor+y} |
|
|
5816 | then : |
5626 | break |
5817 | break |
5627 | fi |
5818 | fi |
5628 | done |
5819 | done |
5629 | if ${ac_cv_search_floor+:} false; then : |
5820 | if test ${ac_cv_search_floor+y} |
|
|
5821 | then : |
5630 | |
5822 | |
5631 | else |
5823 | else $as_nop |
5632 | ac_cv_search_floor=no |
5824 | ac_cv_search_floor=no |
5633 | fi |
5825 | fi |
5634 | rm conftest.$ac_ext |
5826 | rm conftest.$ac_ext |
5635 | LIBS=$ac_func_search_save_LIBS |
5827 | LIBS=$ac_func_search_save_LIBS |
5636 | fi |
5828 | fi |
5637 | { $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 |
5638 | $as_echo "$ac_cv_search_floor" >&6; } |
5830 | printf "%s\n" "$ac_cv_search_floor" >&6; } |
5639 | ac_res=$ac_cv_search_floor |
5831 | ac_res=$ac_cv_search_floor |
5640 | if test "$ac_res" != no; then : |
5832 | if test "$ac_res" != no |
|
|
5833 | then : |
5641 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5834 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5642 | |
5835 | |
5643 | $as_echo "#define HAVE_FLOOR 1" >>confdefs.h |
5836 | printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
5644 | |
5837 | |
5645 | fi |
5838 | fi |
5646 | |
5839 | |
5647 | |
5840 | |
5648 | |
5841 | |
5649 | |
5842 | |
5650 | |
5843 | |
5651 | # 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. |
5652 | set dummy tic; ac_word=$2 |
5845 | set dummy tic; ac_word=$2 |
5653 | { $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 |
5654 | $as_echo_n "checking for $ac_word... " >&6; } |
5847 | printf %s "checking for $ac_word... " >&6; } |
5655 | if ${ac_cv_path_TIC+:} false; then : |
5848 | if test ${ac_cv_path_TIC+y} |
5656 | $as_echo_n "(cached) " >&6 |
5849 | then : |
5657 | else |
5850 | printf %s "(cached) " >&6 |
|
|
5851 | else $as_nop |
5658 | case $TIC in |
5852 | case $TIC in |
5659 | [\\/]* | ?:[\\/]*) |
5853 | [\\/]* | ?:[\\/]*) |
5660 | 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. |
5661 | ;; |
5855 | ;; |
5662 | *) |
5856 | *) |
5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5664 | for as_dir in $PATH |
5858 | for as_dir in $PATH |
5665 | do |
5859 | do |
5666 | IFS=$as_save_IFS |
5860 | IFS=$as_save_IFS |
5667 | test -z "$as_dir" && as_dir=. |
5861 | case $as_dir in #((( |
|
|
5862 | '') as_dir=./ ;; |
|
|
5863 | */) ;; |
|
|
5864 | *) as_dir=$as_dir/ ;; |
|
|
5865 | esac |
5668 | for ac_exec_ext in '' $ac_executable_extensions; do |
5866 | for ac_exec_ext in '' $ac_executable_extensions; do |
5669 | 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 |
5670 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
5868 | ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext" |
5671 | $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 |
5672 | break 2 |
5870 | break 2 |
5673 | fi |
5871 | fi |
5674 | done |
5872 | done |
5675 | done |
5873 | done |
5676 | IFS=$as_save_IFS |
5874 | IFS=$as_save_IFS |
… | |
… | |
5679 | ;; |
5877 | ;; |
5680 | esac |
5878 | esac |
5681 | fi |
5879 | fi |
5682 | TIC=$ac_cv_path_TIC |
5880 | TIC=$ac_cv_path_TIC |
5683 | if test -n "$TIC"; then |
5881 | if test -n "$TIC"; then |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 |
5882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 |
5685 | $as_echo "$TIC" >&6; } |
5883 | printf "%s\n" "$TIC" >&6; } |
5686 | else |
5884 | else |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5688 | $as_echo "no" >&6; } |
5886 | printf "%s\n" "no" >&6; } |
5689 | fi |
5887 | fi |
5690 | |
5888 | |
5691 | |
5889 | |
5692 | |
5890 | |
|
|
5891 | ac_ext=cpp |
|
|
5892 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
|
|
5897 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
|
|
5898 | if test -z "$CXXCPP"; then |
|
|
5899 | if test ${ac_cv_prog_CXXCPP+y} |
|
|
5900 | then : |
|
|
5901 | printf %s "(cached) " >&6 |
|
|
5902 | else $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 |
|
|
5907 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5908 | do |
|
|
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 |
|
|
5918 | if ac_fn_cxx_try_cpp "$LINENO" |
|
|
5919 | then : |
|
|
5920 | |
|
|
5921 | else $as_nop |
|
|
5922 | # Broken: fails on valid input. |
|
|
5923 | continue |
|
|
5924 | fi |
|
|
5925 | rm -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 |
|
|
5933 | if ac_fn_cxx_try_cpp "$LINENO" |
|
|
5934 | then : |
|
|
5935 | # Broken: success on invalid input. |
|
|
5936 | continue |
|
|
5937 | else $as_nop |
|
|
5938 | # Passes both tests. |
|
|
5939 | ac_preproc_ok=: |
|
|
5940 | break |
|
|
5941 | fi |
|
|
5942 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
5943 | |
|
|
5944 | done |
|
|
5945 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5946 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
5947 | if $ac_preproc_ok |
|
|
5948 | then : |
|
|
5949 | break |
|
|
5950 | fi |
|
|
5951 | |
|
|
5952 | done |
|
|
5953 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5954 | |
|
|
5955 | fi |
|
|
5956 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5957 | else |
|
|
5958 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5959 | fi |
|
|
5960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
|
|
5961 | printf "%s\n" "$CXXCPP" >&6; } |
|
|
5962 | ac_preproc_ok=false |
|
|
5963 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5964 | do |
|
|
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 |
|
|
5974 | if ac_fn_cxx_try_cpp "$LINENO" |
|
|
5975 | then : |
|
|
5976 | |
|
|
5977 | else $as_nop |
|
|
5978 | # Broken: fails on valid input. |
|
|
5979 | continue |
|
|
5980 | fi |
|
|
5981 | rm -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 |
|
|
5989 | if ac_fn_cxx_try_cpp "$LINENO" |
|
|
5990 | then : |
|
|
5991 | # Broken: success on invalid input. |
|
|
5992 | continue |
|
|
5993 | else $as_nop |
|
|
5994 | # Passes both tests. |
|
|
5995 | ac_preproc_ok=: |
|
|
5996 | break |
|
|
5997 | fi |
|
|
5998 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
5999 | |
|
|
6000 | done |
|
|
6001 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
6002 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
6003 | if $ac_preproc_ok |
|
|
6004 | then : |
|
|
6005 | |
|
|
6006 | else $as_nop |
|
|
6007 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
6008 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
6009 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
6010 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
6011 | fi |
|
|
6012 | |
|
|
6013 | ac_ext=cpp |
|
|
6014 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
6015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
6016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
6017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
6018 | |
|
|
6019 | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
6020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
5694 | $as_echo_n "checking for X... " >&6; } |
6021 | printf %s "checking for X... " >&6; } |
5695 | |
6022 | |
5696 | |
6023 | |
5697 | # Check whether --with-x was given. |
6024 | # Check whether --with-x was given. |
5698 | if test "${with_x+set}" = set; then : |
6025 | if test ${with_x+y} |
|
|
6026 | then : |
5699 | withval=$with_x; |
6027 | withval=$with_x; |
5700 | fi |
6028 | fi |
5701 | |
6029 | |
5702 | # $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. |
5703 | if test "x$with_x" = xno; then |
6031 | if test "x$with_x" = xno; then |
5704 | # The user explicitly disabled X. |
6032 | # The user explicitly disabled X. |
5705 | have_x=disabled |
6033 | have_x=disabled |
5706 | else |
6034 | else |
5707 | case $x_includes,$x_libraries in #( |
6035 | case $x_includes,$x_libraries in #( |
5708 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
6036 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
5709 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
6037 | *,NONE | NONE,*) if test ${ac_cv_have_x+y} |
5710 | $as_echo_n "(cached) " >&6 |
6038 | then : |
5711 | else |
6039 | printf %s "(cached) " >&6 |
|
|
6040 | else $as_nop |
5712 | # 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. |
5713 | ac_x_includes=no ac_x_libraries=no |
6042 | ac_x_includes=no |
|
|
6043 | ac_x_libraries=no |
|
|
6044 | # Do we need to do anything special at all? |
|
|
6045 | ac_save_LIBS=$LIBS |
|
|
6046 | LIBS="-lX11 $LIBS" |
|
|
6047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6048 | /* end confdefs.h. */ |
|
|
6049 | #include <X11/Xlib.h> |
|
|
6050 | int |
|
|
6051 | main (void) |
|
|
6052 | { |
|
|
6053 | XrmInitialize () |
|
|
6054 | ; |
|
|
6055 | return 0; |
|
|
6056 | } |
|
|
6057 | _ACEOF |
|
|
6058 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6059 | then : |
|
|
6060 | # We can compile and link X programs with no special options. |
|
|
6061 | ac_x_includes= |
|
|
6062 | ac_x_libraries= |
|
|
6063 | fi |
|
|
6064 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
6065 | conftest$ac_exeext conftest.$ac_ext |
|
|
6066 | LIBS="$ac_save_LIBS" |
|
|
6067 | # If that didn't work, only try xmkmf and file system searches |
|
|
6068 | # for native compilation. |
|
|
6069 | if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
|
|
6070 | then : |
5714 | rm -f -r conftest.dir |
6071 | rm -f -r conftest.dir |
5715 | if mkdir conftest.dir; then |
6072 | if mkdir conftest.dir; then |
5716 | cd conftest.dir |
6073 | cd conftest.dir |
5717 | cat >Imakefile <<'_ACEOF' |
6074 | cat >Imakefile <<'_ACEOF' |
5718 | incroot: |
6075 | incroot: |
5719 | @echo incroot='${INCROOT}' |
6076 | @echo incroot='${INCROOT}' |
… | |
… | |
5748 | fi |
6105 | fi |
5749 | cd .. |
6106 | cd .. |
5750 | rm -f -r conftest.dir |
6107 | rm -f -r conftest.dir |
5751 | fi |
6108 | fi |
5752 | |
6109 | |
5753 | # Standard set of common directories for X headers. |
6110 | # Standard set of common directories for X headers. |
5754 | # 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. |
5755 | ac_x_header_dirs=' |
6112 | ac_x_header_dirs=' |
5756 | /usr/X11/include |
6113 | /usr/X11/include |
5757 | /usr/X11R7/include |
6114 | /usr/X11R7/include |
5758 | /usr/X11R6/include |
6115 | /usr/X11R6/include |
… | |
… | |
5775 | /usr/local/include/X11R7 |
6132 | /usr/local/include/X11R7 |
5776 | /usr/local/include/X11R6 |
6133 | /usr/local/include/X11R6 |
5777 | /usr/local/include/X11R5 |
6134 | /usr/local/include/X11R5 |
5778 | /usr/local/include/X11R4 |
6135 | /usr/local/include/X11R4 |
5779 | |
6136 | |
|
|
6137 | /opt/X11/include |
|
|
6138 | |
5780 | /usr/X386/include |
6139 | /usr/X386/include |
5781 | /usr/x386/include |
6140 | /usr/x386/include |
5782 | /usr/XFree86/include/X11 |
6141 | /usr/XFree86/include/X11 |
5783 | |
6142 | |
5784 | /usr/include |
6143 | /usr/include |
… | |
… | |
5796 | # First, try using that file with no special directory specified. |
6155 | # First, try using that file with no special directory specified. |
5797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5798 | /* end confdefs.h. */ |
6157 | /* end confdefs.h. */ |
5799 | #include <X11/Xlib.h> |
6158 | #include <X11/Xlib.h> |
5800 | _ACEOF |
6159 | _ACEOF |
5801 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6160 | if ac_fn_cxx_try_cpp "$LINENO" |
|
|
6161 | then : |
5802 | # We can compile using X headers with no special include directory. |
6162 | # We can compile using X headers with no special include directory. |
5803 | ac_x_includes= |
6163 | ac_x_includes= |
5804 | else |
6164 | else $as_nop |
5805 | for ac_dir in $ac_x_header_dirs; do |
6165 | for ac_dir in $ac_x_header_dirs; do |
5806 | if test -r "$ac_dir/X11/Xlib.h"; then |
6166 | if test -r "$ac_dir/X11/Xlib.h"; then |
5807 | ac_x_includes=$ac_dir |
6167 | ac_x_includes=$ac_dir |
5808 | break |
6168 | break |
5809 | fi |
6169 | fi |
… | |
… | |
5820 | LIBS="-lX11 $LIBS" |
6180 | LIBS="-lX11 $LIBS" |
5821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5822 | /* end confdefs.h. */ |
6182 | /* end confdefs.h. */ |
5823 | #include <X11/Xlib.h> |
6183 | #include <X11/Xlib.h> |
5824 | int |
6184 | int |
5825 | main () |
6185 | main (void) |
5826 | { |
6186 | { |
5827 | XrmInitialize () |
6187 | XrmInitialize () |
5828 | ; |
6188 | ; |
5829 | return 0; |
6189 | return 0; |
5830 | } |
6190 | } |
5831 | _ACEOF |
6191 | _ACEOF |
5832 | if ac_fn_cxx_try_link "$LINENO"; then : |
6192 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6193 | then : |
5833 | LIBS=$ac_save_LIBS |
6194 | LIBS=$ac_save_LIBS |
5834 | # We can link X programs with no special library path. |
6195 | # We can link X programs with no special library path. |
5835 | ac_x_libraries= |
6196 | ac_x_libraries= |
5836 | else |
6197 | else $as_nop |
5837 | LIBS=$ac_save_LIBS |
6198 | LIBS=$ac_save_LIBS |
5838 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
6199 | for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5839 | do |
6200 | do |
5840 | # 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! |
5841 | for ac_extension in a so sl dylib la dll; do |
6202 | for ac_extension in a so sl dylib la dll; do |
5842 | if test -r "$ac_dir/libX11.$ac_extension"; then |
6203 | if test -r "$ac_dir/libX11.$ac_extension"; then |
5843 | ac_x_libraries=$ac_dir |
6204 | ac_x_libraries=$ac_dir |
5844 | break 2 |
6205 | break 2 |
5845 | fi |
6206 | fi |
5846 | done |
6207 | done |
5847 | done |
6208 | done |
5848 | fi |
6209 | fi |
5849 | rm -f core conftest.err conftest.$ac_objext \ |
6210 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5850 | conftest$ac_exeext conftest.$ac_ext |
6211 | conftest$ac_exeext conftest.$ac_ext |
5851 | fi # $ac_x_libraries = no |
6212 | fi # $ac_x_libraries = no |
5852 | |
6213 | |
|
|
6214 | fi |
|
|
6215 | # Record the results. |
5853 | case $ac_x_includes,$ac_x_libraries in #( |
6216 | case $ac_x_includes,$ac_x_libraries in #( |
5854 | no,* | *,no | *\'*) |
6217 | no,* | *,no | *\'*) : |
5855 | # Didn't find X, or a directory has "'" in its name. |
6218 | # Didn't find X, or a directory has "'" in its name. |
5856 | ac_cv_have_x="have_x=no";; #( |
6219 | ac_cv_have_x="have_x=no" ;; #( |
5857 | *) |
6220 | *) : |
5858 | # Record where we found X for the cache. |
6221 | # Record where we found X for the cache. |
5859 | ac_cv_have_x="have_x=yes\ |
6222 | ac_cv_have_x="have_x=yes\ |
5860 | ac_x_includes='$ac_x_includes'\ |
6223 | ac_x_includes='$ac_x_includes'\ |
5861 | ac_x_libraries='$ac_x_libraries'" |
6224 | ac_x_libraries='$ac_x_libraries'" ;; |
5862 | esac |
6225 | esac |
5863 | fi |
6226 | fi |
5864 | ;; #( |
6227 | ;; #( |
5865 | *) have_x=yes;; |
6228 | *) have_x=yes;; |
5866 | esac |
6229 | esac |
5867 | eval "$ac_cv_have_x" |
6230 | eval "$ac_cv_have_x" |
5868 | fi # $with_x != no |
6231 | fi # $with_x != no |
5869 | |
6232 | |
5870 | if test "$have_x" != yes; then |
6233 | if test "$have_x" != yes; then |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
6234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
5872 | $as_echo "$have_x" >&6; } |
6235 | printf "%s\n" "$have_x" >&6; } |
5873 | no_x=yes |
6236 | no_x=yes |
5874 | else |
6237 | else |
5875 | # 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. |
5876 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6239 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
5877 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6240 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
5878 | # Update the cache value to reflect the command line values. |
6241 | # Update the cache value to reflect the command line values. |
5879 | ac_cv_have_x="have_x=yes\ |
6242 | ac_cv_have_x="have_x=yes\ |
5880 | ac_x_includes='$x_includes'\ |
6243 | ac_x_includes='$x_includes'\ |
5881 | ac_x_libraries='$x_libraries'" |
6244 | ac_x_libraries='$x_libraries'" |
5882 | { $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 |
5883 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
6246 | printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
5884 | fi |
6247 | fi |
5885 | |
6248 | |
5886 | if test "$no_x" = yes; then |
6249 | if test "$no_x" = yes; then |
5887 | # 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. |
5888 | |
6251 | |
5889 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
6252 | printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
5890 | |
6253 | |
5891 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6254 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
5892 | else |
6255 | else |
5893 | if test -n "$x_includes"; then |
6256 | if test -n "$x_includes"; then |
5894 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
6257 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
… | |
… | |
5897 | # 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. |
5898 | if test -n "$x_libraries"; then |
6261 | if test -n "$x_libraries"; then |
5899 | X_LIBS="$X_LIBS -L$x_libraries" |
6262 | X_LIBS="$X_LIBS -L$x_libraries" |
5900 | # 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 |
5901 | # others require no space. Words are not sufficient . . . . |
6264 | # others require no space. Words are not sufficient . . . . |
5902 | { $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 |
5903 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
6266 | printf %s "checking whether -R must be followed by a space... " >&6; } |
5904 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
6267 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
5905 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
6268 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
5906 | ac_cxx_werror_flag=yes |
6269 | ac_cxx_werror_flag=yes |
5907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5908 | /* end confdefs.h. */ |
6271 | /* end confdefs.h. */ |
5909 | |
6272 | |
5910 | int |
6273 | int |
5911 | main () |
6274 | main (void) |
5912 | { |
6275 | { |
5913 | |
6276 | |
5914 | ; |
6277 | ; |
5915 | return 0; |
6278 | return 0; |
5916 | } |
6279 | } |
5917 | _ACEOF |
6280 | _ACEOF |
5918 | if ac_fn_cxx_try_link "$LINENO"; then : |
6281 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6282 | then : |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5920 | $as_echo "no" >&6; } |
6284 | printf "%s\n" "no" >&6; } |
5921 | X_LIBS="$X_LIBS -R$x_libraries" |
6285 | X_LIBS="$X_LIBS -R$x_libraries" |
5922 | else |
6286 | else $as_nop |
5923 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
6287 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
5924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5925 | /* end confdefs.h. */ |
6289 | /* end confdefs.h. */ |
5926 | |
6290 | |
5927 | int |
6291 | int |
5928 | main () |
6292 | main (void) |
5929 | { |
6293 | { |
5930 | |
6294 | |
5931 | ; |
6295 | ; |
5932 | return 0; |
6296 | return 0; |
5933 | } |
6297 | } |
5934 | _ACEOF |
6298 | _ACEOF |
5935 | if ac_fn_cxx_try_link "$LINENO"; then : |
6299 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6300 | then : |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5937 | $as_echo "yes" >&6; } |
6302 | printf "%s\n" "yes" >&6; } |
5938 | X_LIBS="$X_LIBS -R $x_libraries" |
6303 | X_LIBS="$X_LIBS -R $x_libraries" |
5939 | else |
6304 | else $as_nop |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
6305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
5941 | $as_echo "neither works" >&6; } |
6306 | printf "%s\n" "neither works" >&6; } |
5942 | fi |
6307 | fi |
5943 | rm -f core conftest.err conftest.$ac_objext \ |
6308 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5944 | conftest$ac_exeext conftest.$ac_ext |
6309 | conftest$ac_exeext conftest.$ac_ext |
5945 | fi |
6310 | fi |
5946 | rm -f core conftest.err conftest.$ac_objext \ |
6311 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5947 | conftest$ac_exeext conftest.$ac_ext |
6312 | conftest$ac_exeext conftest.$ac_ext |
5948 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
6313 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
5949 | LIBS=$ac_xsave_LIBS |
6314 | LIBS=$ac_xsave_LIBS |
5950 | fi |
6315 | fi |
5951 | |
6316 | |
… | |
… | |
5961 | # the Alpha needs dnet_stub (dnet does not exist). |
6326 | # the Alpha needs dnet_stub (dnet does not exist). |
5962 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
6327 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
5963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5964 | /* end confdefs.h. */ |
6329 | /* end confdefs.h. */ |
5965 | |
6330 | |
5966 | /* Override any GCC internal prototype to avoid an error. |
6331 | namespace conftest { |
5967 | Use char because int might match the return type of a GCC |
6332 | extern "C" int XOpenDisplay (); |
5968 | builtin and then its argument prototype would still apply. */ |
6333 | } |
5969 | #ifdef __cplusplus |
|
|
5970 | extern "C" |
|
|
5971 | #endif |
|
|
5972 | char XOpenDisplay (); |
|
|
5973 | int |
6334 | int |
5974 | main () |
6335 | main (void) |
5975 | { |
6336 | { |
5976 | return XOpenDisplay (); |
6337 | return conftest::XOpenDisplay (); |
5977 | ; |
6338 | ; |
5978 | return 0; |
6339 | return 0; |
5979 | } |
6340 | } |
5980 | _ACEOF |
6341 | _ACEOF |
5981 | if ac_fn_cxx_try_link "$LINENO"; then : |
6342 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6343 | then : |
5982 | |
6344 | |
5983 | else |
6345 | else $as_nop |
5984 | { $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 |
5985 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
6347 | printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
5986 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
6348 | if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
5987 | $as_echo_n "(cached) " >&6 |
6349 | then : |
5988 | else |
6350 | printf %s "(cached) " >&6 |
|
|
6351 | else $as_nop |
5989 | ac_check_lib_save_LIBS=$LIBS |
6352 | ac_check_lib_save_LIBS=$LIBS |
5990 | LIBS="-ldnet $LIBS" |
6353 | LIBS="-ldnet $LIBS" |
5991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5992 | /* end confdefs.h. */ |
6355 | /* end confdefs.h. */ |
5993 | |
6356 | |
5994 | /* Override any GCC internal prototype to avoid an error. |
6357 | namespace conftest { |
5995 | Use char because int might match the return type of a GCC |
6358 | extern "C" int dnet_ntoa (); |
5996 | builtin and then its argument prototype would still apply. */ |
6359 | } |
5997 | #ifdef __cplusplus |
|
|
5998 | extern "C" |
|
|
5999 | #endif |
|
|
6000 | char dnet_ntoa (); |
|
|
6001 | int |
6360 | int |
6002 | main () |
6361 | main (void) |
6003 | { |
6362 | { |
6004 | return dnet_ntoa (); |
6363 | return conftest::dnet_ntoa (); |
6005 | ; |
6364 | ; |
6006 | return 0; |
6365 | return 0; |
6007 | } |
6366 | } |
6008 | _ACEOF |
6367 | _ACEOF |
6009 | if ac_fn_cxx_try_link "$LINENO"; then : |
6368 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6369 | then : |
6010 | ac_cv_lib_dnet_dnet_ntoa=yes |
6370 | ac_cv_lib_dnet_dnet_ntoa=yes |
6011 | else |
6371 | else $as_nop |
6012 | ac_cv_lib_dnet_dnet_ntoa=no |
6372 | ac_cv_lib_dnet_dnet_ntoa=no |
6013 | fi |
6373 | fi |
6014 | rm -f core conftest.err conftest.$ac_objext \ |
6374 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6015 | conftest$ac_exeext conftest.$ac_ext |
6375 | conftest$ac_exeext conftest.$ac_ext |
6016 | LIBS=$ac_check_lib_save_LIBS |
6376 | LIBS=$ac_check_lib_save_LIBS |
6017 | fi |
6377 | fi |
6018 | { $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 |
6019 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6379 | printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6020 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
6380 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
|
|
6381 | then : |
6021 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6382 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6022 | fi |
6383 | fi |
6023 | |
6384 | |
6024 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6385 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6025 | { $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 |
6026 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
6387 | printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
6027 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
6388 | if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
6028 | $as_echo_n "(cached) " >&6 |
6389 | then : |
6029 | else |
6390 | printf %s "(cached) " >&6 |
|
|
6391 | else $as_nop |
6030 | ac_check_lib_save_LIBS=$LIBS |
6392 | ac_check_lib_save_LIBS=$LIBS |
6031 | LIBS="-ldnet_stub $LIBS" |
6393 | LIBS="-ldnet_stub $LIBS" |
6032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6033 | /* end confdefs.h. */ |
6395 | /* end confdefs.h. */ |
6034 | |
6396 | |
6035 | /* Override any GCC internal prototype to avoid an error. |
6397 | namespace conftest { |
6036 | Use char because int might match the return type of a GCC |
6398 | extern "C" int dnet_ntoa (); |
6037 | builtin and then its argument prototype would still apply. */ |
6399 | } |
6038 | #ifdef __cplusplus |
|
|
6039 | extern "C" |
|
|
6040 | #endif |
|
|
6041 | char dnet_ntoa (); |
|
|
6042 | int |
6400 | int |
6043 | main () |
6401 | main (void) |
6044 | { |
6402 | { |
6045 | return dnet_ntoa (); |
6403 | return conftest::dnet_ntoa (); |
6046 | ; |
6404 | ; |
6047 | return 0; |
6405 | return 0; |
6048 | } |
6406 | } |
6049 | _ACEOF |
6407 | _ACEOF |
6050 | if ac_fn_cxx_try_link "$LINENO"; then : |
6408 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6409 | then : |
6051 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6410 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6052 | else |
6411 | else $as_nop |
6053 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
6412 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
6054 | fi |
6413 | fi |
6055 | rm -f core conftest.err conftest.$ac_objext \ |
6414 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6056 | conftest$ac_exeext conftest.$ac_ext |
6415 | conftest$ac_exeext conftest.$ac_ext |
6057 | LIBS=$ac_check_lib_save_LIBS |
6416 | LIBS=$ac_check_lib_save_LIBS |
6058 | fi |
6417 | fi |
6059 | { $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 |
6060 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6419 | printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6061 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
6420 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
|
|
6421 | then : |
6062 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6422 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6063 | fi |
6423 | fi |
6064 | |
6424 | |
6065 | fi |
6425 | fi |
6066 | fi |
6426 | fi |
6067 | rm -f core conftest.err conftest.$ac_objext \ |
6427 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6068 | conftest$ac_exeext conftest.$ac_ext |
6428 | conftest$ac_exeext conftest.$ac_ext |
6069 | LIBS="$ac_xsave_LIBS" |
6429 | LIBS="$ac_xsave_LIBS" |
6070 | |
6430 | |
6071 | # 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, |
6072 | # to get the SysV transport functions. |
6432 | # to get the SysV transport functions. |
… | |
… | |
6075 | # The nsl library prevents programs from opening the X display |
6435 | # The nsl library prevents programs from opening the X display |
6076 | # on Irix 5.2, according to T.E. Dickey. |
6436 | # on Irix 5.2, according to T.E. Dickey. |
6077 | # The functions gethostbyname, getservbyname, and inet_addr are |
6437 | # The functions gethostbyname, getservbyname, and inet_addr are |
6078 | # 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. |
6079 | ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
6439 | ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
6080 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
6440 | if test "x$ac_cv_func_gethostbyname" = xyes |
|
|
6441 | then : |
6081 | |
6442 | |
6082 | fi |
6443 | fi |
6083 | |
6444 | |
6084 | if test $ac_cv_func_gethostbyname = no; then |
6445 | if test $ac_cv_func_gethostbyname = no; then |
6085 | { $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 |
6086 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
6447 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
6087 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
6448 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
6088 | $as_echo_n "(cached) " >&6 |
6449 | then : |
6089 | else |
6450 | printf %s "(cached) " >&6 |
|
|
6451 | else $as_nop |
6090 | ac_check_lib_save_LIBS=$LIBS |
6452 | ac_check_lib_save_LIBS=$LIBS |
6091 | LIBS="-lnsl $LIBS" |
6453 | LIBS="-lnsl $LIBS" |
6092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6093 | /* end confdefs.h. */ |
6455 | /* end confdefs.h. */ |
6094 | |
6456 | |
6095 | /* Override any GCC internal prototype to avoid an error. |
6457 | namespace conftest { |
6096 | Use char because int might match the return type of a GCC |
6458 | extern "C" int gethostbyname (); |
6097 | builtin and then its argument prototype would still apply. */ |
6459 | } |
6098 | #ifdef __cplusplus |
|
|
6099 | extern "C" |
|
|
6100 | #endif |
|
|
6101 | char gethostbyname (); |
|
|
6102 | int |
6460 | int |
6103 | main () |
6461 | main (void) |
6104 | { |
6462 | { |
6105 | return gethostbyname (); |
6463 | return conftest::gethostbyname (); |
6106 | ; |
6464 | ; |
6107 | return 0; |
6465 | return 0; |
6108 | } |
6466 | } |
6109 | _ACEOF |
6467 | _ACEOF |
6110 | if ac_fn_cxx_try_link "$LINENO"; then : |
6468 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6469 | then : |
6111 | ac_cv_lib_nsl_gethostbyname=yes |
6470 | ac_cv_lib_nsl_gethostbyname=yes |
6112 | else |
6471 | else $as_nop |
6113 | ac_cv_lib_nsl_gethostbyname=no |
6472 | ac_cv_lib_nsl_gethostbyname=no |
6114 | fi |
6473 | fi |
6115 | rm -f core conftest.err conftest.$ac_objext \ |
6474 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6116 | conftest$ac_exeext conftest.$ac_ext |
6475 | conftest$ac_exeext conftest.$ac_ext |
6117 | LIBS=$ac_check_lib_save_LIBS |
6476 | LIBS=$ac_check_lib_save_LIBS |
6118 | fi |
6477 | fi |
6119 | { $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 |
6120 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
6479 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
6121 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
6480 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
|
|
6481 | then : |
6122 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
6482 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
6123 | fi |
6483 | fi |
6124 | |
6484 | |
6125 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
6485 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
6126 | { $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 |
6127 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
6487 | printf %s "checking for gethostbyname in -lbsd... " >&6; } |
6128 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
6488 | if test ${ac_cv_lib_bsd_gethostbyname+y} |
6129 | $as_echo_n "(cached) " >&6 |
6489 | then : |
6130 | else |
6490 | printf %s "(cached) " >&6 |
|
|
6491 | else $as_nop |
6131 | ac_check_lib_save_LIBS=$LIBS |
6492 | ac_check_lib_save_LIBS=$LIBS |
6132 | LIBS="-lbsd $LIBS" |
6493 | LIBS="-lbsd $LIBS" |
6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6134 | /* end confdefs.h. */ |
6495 | /* end confdefs.h. */ |
6135 | |
6496 | |
6136 | /* Override any GCC internal prototype to avoid an error. |
6497 | namespace conftest { |
6137 | Use char because int might match the return type of a GCC |
6498 | extern "C" int gethostbyname (); |
6138 | builtin and then its argument prototype would still apply. */ |
6499 | } |
6139 | #ifdef __cplusplus |
|
|
6140 | extern "C" |
|
|
6141 | #endif |
|
|
6142 | char gethostbyname (); |
|
|
6143 | int |
6500 | int |
6144 | main () |
6501 | main (void) |
6145 | { |
6502 | { |
6146 | return gethostbyname (); |
6503 | return conftest::gethostbyname (); |
6147 | ; |
6504 | ; |
6148 | return 0; |
6505 | return 0; |
6149 | } |
6506 | } |
6150 | _ACEOF |
6507 | _ACEOF |
6151 | if ac_fn_cxx_try_link "$LINENO"; then : |
6508 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6509 | then : |
6152 | ac_cv_lib_bsd_gethostbyname=yes |
6510 | ac_cv_lib_bsd_gethostbyname=yes |
6153 | else |
6511 | else $as_nop |
6154 | ac_cv_lib_bsd_gethostbyname=no |
6512 | ac_cv_lib_bsd_gethostbyname=no |
6155 | fi |
6513 | fi |
6156 | rm -f core conftest.err conftest.$ac_objext \ |
6514 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6157 | conftest$ac_exeext conftest.$ac_ext |
6515 | conftest$ac_exeext conftest.$ac_ext |
6158 | LIBS=$ac_check_lib_save_LIBS |
6516 | LIBS=$ac_check_lib_save_LIBS |
6159 | fi |
6517 | fi |
6160 | { $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 |
6161 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
6519 | printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
6162 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
6520 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
|
|
6521 | then : |
6163 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6522 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6164 | fi |
6523 | fi |
6165 | |
6524 | |
6166 | fi |
6525 | fi |
6167 | fi |
6526 | fi |
… | |
… | |
6172 | # on later versions), says Simon Leinen: it contains gethostby* |
6531 | # on later versions), says Simon Leinen: it contains gethostby* |
6173 | # variants that don't use the name server (or something). -lsocket |
6532 | # variants that don't use the name server (or something). -lsocket |
6174 | # 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 |
6175 | # if connect needs -lnsl, so does gethostbyname. |
6534 | # if connect needs -lnsl, so does gethostbyname. |
6176 | ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" |
6535 | ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" |
6177 | if test "x$ac_cv_func_connect" = xyes; then : |
6536 | if test "x$ac_cv_func_connect" = xyes |
|
|
6537 | then : |
6178 | |
6538 | |
6179 | fi |
6539 | fi |
6180 | |
6540 | |
6181 | if test $ac_cv_func_connect = no; then |
6541 | if test $ac_cv_func_connect = no; then |
6182 | { $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 |
6183 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
6543 | printf %s "checking for connect in -lsocket... " >&6; } |
6184 | if ${ac_cv_lib_socket_connect+:} false; then : |
6544 | if test ${ac_cv_lib_socket_connect+y} |
6185 | $as_echo_n "(cached) " >&6 |
6545 | then : |
6186 | else |
6546 | printf %s "(cached) " >&6 |
|
|
6547 | else $as_nop |
6187 | ac_check_lib_save_LIBS=$LIBS |
6548 | ac_check_lib_save_LIBS=$LIBS |
6188 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6549 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6190 | /* end confdefs.h. */ |
6551 | /* end confdefs.h. */ |
6191 | |
6552 | |
6192 | /* Override any GCC internal prototype to avoid an error. |
6553 | namespace conftest { |
6193 | Use char because int might match the return type of a GCC |
6554 | extern "C" int connect (); |
6194 | builtin and then its argument prototype would still apply. */ |
6555 | } |
6195 | #ifdef __cplusplus |
|
|
6196 | extern "C" |
|
|
6197 | #endif |
|
|
6198 | char connect (); |
|
|
6199 | int |
6556 | int |
6200 | main () |
6557 | main (void) |
6201 | { |
6558 | { |
6202 | return connect (); |
6559 | return conftest::connect (); |
6203 | ; |
6560 | ; |
6204 | return 0; |
6561 | return 0; |
6205 | } |
6562 | } |
6206 | _ACEOF |
6563 | _ACEOF |
6207 | if ac_fn_cxx_try_link "$LINENO"; then : |
6564 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6565 | then : |
6208 | ac_cv_lib_socket_connect=yes |
6566 | ac_cv_lib_socket_connect=yes |
6209 | else |
6567 | else $as_nop |
6210 | ac_cv_lib_socket_connect=no |
6568 | ac_cv_lib_socket_connect=no |
6211 | fi |
6569 | fi |
6212 | rm -f core conftest.err conftest.$ac_objext \ |
6570 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6213 | conftest$ac_exeext conftest.$ac_ext |
6571 | conftest$ac_exeext conftest.$ac_ext |
6214 | LIBS=$ac_check_lib_save_LIBS |
6572 | LIBS=$ac_check_lib_save_LIBS |
6215 | fi |
6573 | fi |
6216 | { $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 |
6217 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
6575 | printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
6218 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
6576 | if test "x$ac_cv_lib_socket_connect" = xyes |
|
|
6577 | then : |
6219 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
6578 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
6220 | fi |
6579 | fi |
6221 | |
6580 | |
6222 | fi |
6581 | fi |
6223 | |
6582 | |
6224 | # Guillermo Gomez says -lposix is necessary on A/UX. |
6583 | # Guillermo Gomez says -lposix is necessary on A/UX. |
6225 | ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" |
6584 | ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" |
6226 | if test "x$ac_cv_func_remove" = xyes; then : |
6585 | if test "x$ac_cv_func_remove" = xyes |
|
|
6586 | then : |
6227 | |
6587 | |
6228 | fi |
6588 | fi |
6229 | |
6589 | |
6230 | if test $ac_cv_func_remove = no; then |
6590 | if test $ac_cv_func_remove = no; then |
6231 | { $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 |
6232 | $as_echo_n "checking for remove in -lposix... " >&6; } |
6592 | printf %s "checking for remove in -lposix... " >&6; } |
6233 | if ${ac_cv_lib_posix_remove+:} false; then : |
6593 | if test ${ac_cv_lib_posix_remove+y} |
6234 | $as_echo_n "(cached) " >&6 |
6594 | then : |
6235 | else |
6595 | printf %s "(cached) " >&6 |
|
|
6596 | else $as_nop |
6236 | ac_check_lib_save_LIBS=$LIBS |
6597 | ac_check_lib_save_LIBS=$LIBS |
6237 | LIBS="-lposix $LIBS" |
6598 | LIBS="-lposix $LIBS" |
6238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6239 | /* end confdefs.h. */ |
6600 | /* end confdefs.h. */ |
6240 | |
6601 | |
6241 | /* Override any GCC internal prototype to avoid an error. |
6602 | namespace conftest { |
6242 | Use char because int might match the return type of a GCC |
6603 | extern "C" int remove (); |
6243 | builtin and then its argument prototype would still apply. */ |
6604 | } |
6244 | #ifdef __cplusplus |
|
|
6245 | extern "C" |
|
|
6246 | #endif |
|
|
6247 | char remove (); |
|
|
6248 | int |
6605 | int |
6249 | main () |
6606 | main (void) |
6250 | { |
6607 | { |
6251 | return remove (); |
6608 | return conftest::remove (); |
6252 | ; |
6609 | ; |
6253 | return 0; |
6610 | return 0; |
6254 | } |
6611 | } |
6255 | _ACEOF |
6612 | _ACEOF |
6256 | if ac_fn_cxx_try_link "$LINENO"; then : |
6613 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6614 | then : |
6257 | ac_cv_lib_posix_remove=yes |
6615 | ac_cv_lib_posix_remove=yes |
6258 | else |
6616 | else $as_nop |
6259 | ac_cv_lib_posix_remove=no |
6617 | ac_cv_lib_posix_remove=no |
6260 | fi |
6618 | fi |
6261 | rm -f core conftest.err conftest.$ac_objext \ |
6619 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6262 | conftest$ac_exeext conftest.$ac_ext |
6620 | conftest$ac_exeext conftest.$ac_ext |
6263 | LIBS=$ac_check_lib_save_LIBS |
6621 | LIBS=$ac_check_lib_save_LIBS |
6264 | fi |
6622 | fi |
6265 | { $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 |
6266 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
6624 | printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
6267 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
6625 | if test "x$ac_cv_lib_posix_remove" = xyes |
|
|
6626 | then : |
6268 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
6627 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
6269 | fi |
6628 | fi |
6270 | |
6629 | |
6271 | fi |
6630 | fi |
6272 | |
6631 | |
6273 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
6632 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
6274 | ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
6633 | ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
6275 | if test "x$ac_cv_func_shmat" = xyes; then : |
6634 | if test "x$ac_cv_func_shmat" = xyes |
|
|
6635 | then : |
6276 | |
6636 | |
6277 | fi |
6637 | fi |
6278 | |
6638 | |
6279 | if test $ac_cv_func_shmat = no; then |
6639 | if test $ac_cv_func_shmat = no; then |
6280 | { $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 |
6281 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
6641 | printf %s "checking for shmat in -lipc... " >&6; } |
6282 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
6642 | if test ${ac_cv_lib_ipc_shmat+y} |
6283 | $as_echo_n "(cached) " >&6 |
6643 | then : |
6284 | else |
6644 | printf %s "(cached) " >&6 |
|
|
6645 | else $as_nop |
6285 | ac_check_lib_save_LIBS=$LIBS |
6646 | ac_check_lib_save_LIBS=$LIBS |
6286 | LIBS="-lipc $LIBS" |
6647 | LIBS="-lipc $LIBS" |
6287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6288 | /* end confdefs.h. */ |
6649 | /* end confdefs.h. */ |
6289 | |
6650 | |
6290 | /* Override any GCC internal prototype to avoid an error. |
6651 | namespace conftest { |
6291 | Use char because int might match the return type of a GCC |
6652 | extern "C" int shmat (); |
6292 | builtin and then its argument prototype would still apply. */ |
6653 | } |
6293 | #ifdef __cplusplus |
|
|
6294 | extern "C" |
|
|
6295 | #endif |
|
|
6296 | char shmat (); |
|
|
6297 | int |
6654 | int |
6298 | main () |
6655 | main (void) |
6299 | { |
6656 | { |
6300 | return shmat (); |
6657 | return conftest::shmat (); |
6301 | ; |
6658 | ; |
6302 | return 0; |
6659 | return 0; |
6303 | } |
6660 | } |
6304 | _ACEOF |
6661 | _ACEOF |
6305 | if ac_fn_cxx_try_link "$LINENO"; then : |
6662 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6663 | then : |
6306 | ac_cv_lib_ipc_shmat=yes |
6664 | ac_cv_lib_ipc_shmat=yes |
6307 | else |
6665 | else $as_nop |
6308 | ac_cv_lib_ipc_shmat=no |
6666 | ac_cv_lib_ipc_shmat=no |
6309 | fi |
6667 | fi |
6310 | rm -f core conftest.err conftest.$ac_objext \ |
6668 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6311 | conftest$ac_exeext conftest.$ac_ext |
6669 | conftest$ac_exeext conftest.$ac_ext |
6312 | LIBS=$ac_check_lib_save_LIBS |
6670 | LIBS=$ac_check_lib_save_LIBS |
6313 | fi |
6671 | fi |
6314 | { $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 |
6315 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
6673 | printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
6316 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
6674 | if test "x$ac_cv_lib_ipc_shmat" = xyes |
|
|
6675 | then : |
6317 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6676 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6318 | fi |
6677 | fi |
6319 | |
6678 | |
6320 | fi |
6679 | fi |
6321 | fi |
6680 | fi |
… | |
… | |
6327 | # 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 |
6328 | # 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. |
6329 | # These have to be linked with before -lX11, unlike the other |
6688 | # These have to be linked with before -lX11, unlike the other |
6330 | # libraries we check for below, so use a different variable. |
6689 | # libraries we check for below, so use a different variable. |
6331 | # John Interrante, Karl Berry |
6690 | # John Interrante, Karl Berry |
6332 | { $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 |
6333 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
6692 | printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
6334 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
6693 | if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
6335 | $as_echo_n "(cached) " >&6 |
6694 | then : |
6336 | else |
6695 | printf %s "(cached) " >&6 |
|
|
6696 | else $as_nop |
6337 | ac_check_lib_save_LIBS=$LIBS |
6697 | ac_check_lib_save_LIBS=$LIBS |
6338 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6698 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6340 | /* end confdefs.h. */ |
6700 | /* end confdefs.h. */ |
6341 | |
6701 | |
6342 | /* Override any GCC internal prototype to avoid an error. |
6702 | namespace conftest { |
6343 | Use char because int might match the return type of a GCC |
6703 | extern "C" int IceConnectionNumber (); |
6344 | builtin and then its argument prototype would still apply. */ |
6704 | } |
6345 | #ifdef __cplusplus |
|
|
6346 | extern "C" |
|
|
6347 | #endif |
|
|
6348 | char IceConnectionNumber (); |
|
|
6349 | int |
6705 | int |
6350 | main () |
6706 | main (void) |
6351 | { |
6707 | { |
6352 | return IceConnectionNumber (); |
6708 | return conftest::IceConnectionNumber (); |
6353 | ; |
6709 | ; |
6354 | return 0; |
6710 | return 0; |
6355 | } |
6711 | } |
6356 | _ACEOF |
6712 | _ACEOF |
6357 | if ac_fn_cxx_try_link "$LINENO"; then : |
6713 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6714 | then : |
6358 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6715 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6359 | else |
6716 | else $as_nop |
6360 | ac_cv_lib_ICE_IceConnectionNumber=no |
6717 | ac_cv_lib_ICE_IceConnectionNumber=no |
6361 | fi |
6718 | fi |
6362 | rm -f core conftest.err conftest.$ac_objext \ |
6719 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6363 | conftest$ac_exeext conftest.$ac_ext |
6720 | conftest$ac_exeext conftest.$ac_ext |
6364 | LIBS=$ac_check_lib_save_LIBS |
6721 | LIBS=$ac_check_lib_save_LIBS |
6365 | fi |
6722 | fi |
6366 | { $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 |
6367 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6724 | printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6368 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
6725 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
|
|
6726 | then : |
6369 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6727 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6370 | fi |
6728 | fi |
6371 | |
6729 | |
6372 | LDFLAGS=$ac_save_LDFLAGS |
6730 | LDFLAGS=$ac_save_LDFLAGS |
6373 | |
6731 | |
… | |
… | |
6375 | |
6733 | |
6376 | |
6734 | |
6377 | if test -n "$ac_tool_prefix"; then |
6735 | if test -n "$ac_tool_prefix"; then |
6378 | # 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. |
6379 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
6737 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
6380 | { $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 |
6381 | $as_echo_n "checking for $ac_word... " >&6; } |
6739 | printf %s "checking for $ac_word... " >&6; } |
6382 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
6740 | if test ${ac_cv_path_PKG_CONFIG+y} |
6383 | $as_echo_n "(cached) " >&6 |
6741 | then : |
6384 | else |
6742 | printf %s "(cached) " >&6 |
|
|
6743 | else $as_nop |
6385 | case $PKG_CONFIG in |
6744 | case $PKG_CONFIG in |
6386 | [\\/]* | ?:[\\/]*) |
6745 | [\\/]* | ?:[\\/]*) |
6387 | 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. |
6388 | ;; |
6747 | ;; |
6389 | *) |
6748 | *) |
6390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6391 | for as_dir in $PATH |
6750 | for as_dir in $PATH |
6392 | do |
6751 | do |
6393 | IFS=$as_save_IFS |
6752 | IFS=$as_save_IFS |
6394 | test -z "$as_dir" && as_dir=. |
6753 | case $as_dir in #((( |
|
|
6754 | '') as_dir=./ ;; |
|
|
6755 | */) ;; |
|
|
6756 | *) as_dir=$as_dir/ ;; |
|
|
6757 | esac |
6395 | for ac_exec_ext in '' $ac_executable_extensions; do |
6758 | for ac_exec_ext in '' $ac_executable_extensions; do |
6396 | 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 |
6397 | 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" |
6398 | $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 |
6399 | break 2 |
6762 | break 2 |
6400 | fi |
6763 | fi |
6401 | done |
6764 | done |
6402 | done |
6765 | done |
6403 | IFS=$as_save_IFS |
6766 | IFS=$as_save_IFS |
… | |
… | |
6405 | ;; |
6768 | ;; |
6406 | esac |
6769 | esac |
6407 | fi |
6770 | fi |
6408 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6771 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6409 | if test -n "$PKG_CONFIG"; then |
6772 | if test -n "$PKG_CONFIG"; then |
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6411 | $as_echo "$PKG_CONFIG" >&6; } |
6774 | printf "%s\n" "$PKG_CONFIG" >&6; } |
6412 | else |
6775 | else |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6414 | $as_echo "no" >&6; } |
6777 | printf "%s\n" "no" >&6; } |
6415 | fi |
6778 | fi |
6416 | |
6779 | |
6417 | |
6780 | |
6418 | fi |
6781 | fi |
6419 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
6782 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
6420 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
6783 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
6421 | # 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. |
6422 | set dummy pkg-config; ac_word=$2 |
6785 | set dummy pkg-config; ac_word=$2 |
6423 | { $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 |
6424 | $as_echo_n "checking for $ac_word... " >&6; } |
6787 | printf %s "checking for $ac_word... " >&6; } |
6425 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
6788 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
6426 | $as_echo_n "(cached) " >&6 |
6789 | then : |
6427 | else |
6790 | printf %s "(cached) " >&6 |
|
|
6791 | else $as_nop |
6428 | case $ac_pt_PKG_CONFIG in |
6792 | case $ac_pt_PKG_CONFIG in |
6429 | [\\/]* | ?:[\\/]*) |
6793 | [\\/]* | ?:[\\/]*) |
6430 | 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. |
6431 | ;; |
6795 | ;; |
6432 | *) |
6796 | *) |
6433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6434 | for as_dir in $PATH |
6798 | for as_dir in $PATH |
6435 | do |
6799 | do |
6436 | IFS=$as_save_IFS |
6800 | IFS=$as_save_IFS |
6437 | test -z "$as_dir" && as_dir=. |
6801 | case $as_dir in #((( |
|
|
6802 | '') as_dir=./ ;; |
|
|
6803 | */) ;; |
|
|
6804 | *) as_dir=$as_dir/ ;; |
|
|
6805 | esac |
6438 | for ac_exec_ext in '' $ac_executable_extensions; do |
6806 | for ac_exec_ext in '' $ac_executable_extensions; do |
6439 | 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 |
6440 | 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" |
6441 | $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 |
6442 | break 2 |
6810 | break 2 |
6443 | fi |
6811 | fi |
6444 | done |
6812 | done |
6445 | done |
6813 | done |
6446 | IFS=$as_save_IFS |
6814 | IFS=$as_save_IFS |
… | |
… | |
6448 | ;; |
6816 | ;; |
6449 | esac |
6817 | esac |
6450 | fi |
6818 | fi |
6451 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6819 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6452 | if test -n "$ac_pt_PKG_CONFIG"; then |
6820 | if test -n "$ac_pt_PKG_CONFIG"; then |
6453 | { $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 |
6454 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
6822 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
6455 | else |
6823 | else |
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6457 | $as_echo "no" >&6; } |
6825 | printf "%s\n" "no" >&6; } |
6458 | fi |
6826 | fi |
6459 | |
6827 | |
6460 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6828 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6461 | PKG_CONFIG="no" |
6829 | PKG_CONFIG="no" |
6462 | else |
6830 | else |
6463 | case $cross_compiling:$ac_tool_warned in |
6831 | case $cross_compiling:$ac_tool_warned in |
6464 | yes:) |
6832 | yes:) |
6465 | { $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 |
6466 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6834 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6467 | ac_tool_warned=yes ;; |
6835 | ac_tool_warned=yes ;; |
6468 | esac |
6836 | esac |
6469 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
6837 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
6470 | fi |
6838 | fi |
6471 | else |
6839 | else |
6472 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6840 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6473 | fi |
6841 | fi |
6474 | |
6842 | |
6475 | |
6843 | |
|
|
6844 | |
|
|
6845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty" >&5 |
|
|
6846 | printf %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 |
|
|
6852 | printf "%s\n" "ok" >&6; } |
|
|
6853 | : |
|
|
6854 | else |
|
|
6855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6856 | printf "%s\n" "no" >&6; } |
|
|
6857 | |
|
|
6858 | as_fn_error $? "unable to find libptytty" "$LINENO" 5 |
|
|
6859 | |
|
|
6860 | fi |
|
|
6861 | |
|
|
6862 | |
|
|
6863 | |
|
|
6864 | |
|
|
6865 | |
6476 | image_lib=none |
6866 | image_lib=none |
6477 | |
6867 | |
6478 | PIXBUF_CFLAGS= |
6868 | PIXBUF_CFLAGS= |
6479 | PIXBUF_LIBS= |
6869 | PIXBUF_LIBS= |
6480 | |
6870 | |
6481 | if test x$support_pixbuf = xyes; then |
6871 | if test x$support_pixbuf = xyes; then |
6482 | |
6872 | |
6483 | { $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 |
6484 | $as_echo_n "checking for gdk-pixbuf-2.0... " >&6; } |
6874 | printf %s "checking for gdk-pixbuf-2.0... " >&6; } |
6485 | 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 |
6486 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
6876 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
6487 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
6877 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
6488 | |
6878 | |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6490 | $as_echo "ok" >&6; } |
6880 | printf "%s\n" "ok" >&6; } |
6491 | |
6881 | |
6492 | image_lib=gdk-pixbuf |
6882 | image_lib=gdk-pixbuf |
6493 | |
6883 | |
6494 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
6884 | printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h |
6495 | |
6885 | |
6496 | |
6886 | |
6497 | else |
6887 | else |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6499 | $as_echo "no" >&6; } |
6889 | printf "%s\n" "no" >&6; } |
6500 | : |
6890 | : |
6501 | fi |
6891 | fi |
6502 | |
6892 | |
6503 | fi |
6893 | fi |
6504 | |
6894 | |
… | |
… | |
6508 | STARTUP_NOTIFICATION_CFLAGS= |
6898 | STARTUP_NOTIFICATION_CFLAGS= |
6509 | STARTUP_NOTIFICATION_LIBS= |
6899 | STARTUP_NOTIFICATION_LIBS= |
6510 | |
6900 | |
6511 | if test x$support_startup_notification = xyes; then |
6901 | if test x$support_startup_notification = xyes; then |
6512 | |
6902 | |
6513 | { $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 |
6514 | $as_echo_n "checking for libstartup-notification-1.0... " >&6; } |
6904 | printf %s "checking for libstartup-notification-1.0... " >&6; } |
6515 | 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 |
6516 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
6906 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
6517 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
6907 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
6518 | |
6908 | |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6520 | $as_echo "ok" >&6; } |
6910 | printf "%s\n" "ok" >&6; } |
6521 | |
6911 | |
6522 | |
6912 | |
6523 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6913 | printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6524 | |
6914 | |
6525 | |
6915 | |
6526 | else |
6916 | else |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6528 | $as_echo "no" >&6; } |
6918 | printf "%s\n" "no" >&6; } |
6529 | : |
6919 | : |
6530 | fi |
6920 | fi |
6531 | |
6921 | |
6532 | fi |
6922 | fi |
6533 | |
6923 | |
6534 | |
6924 | |
6535 | |
6925 | |
6536 | |
6926 | |
6537 | if test x$support_frills = xyes; then |
6927 | if test x$support_frills = xyes; then |
6538 | |
6928 | |
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 |
6929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 |
6540 | $as_echo_n "checking for xmu... " >&6; } |
6930 | printf %s "checking for xmu... " >&6; } |
6541 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
6931 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
6542 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
6932 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
6543 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
6933 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
6544 | |
6934 | |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6546 | $as_echo "ok" >&6; } |
6936 | printf "%s\n" "ok" >&6; } |
6547 | |
6937 | |
6548 | X_LIBS="$XMU_LIBS $X_LIBS" |
6938 | X_LIBS="$XMU_LIBS $X_LIBS" |
6549 | CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" |
6939 | CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" |
6550 | |
6940 | |
6551 | $as_echo "#define HAVE_XMU 1" >>confdefs.h |
6941 | printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h |
6552 | |
6942 | |
6553 | |
6943 | |
6554 | else |
6944 | else |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6556 | $as_echo "no" >&6; } |
6946 | printf "%s\n" "no" >&6; } |
6557 | : |
6947 | : |
6558 | fi |
6948 | fi |
6559 | |
6949 | |
6560 | fi |
6950 | fi |
6561 | |
6951 | |
6562 | for ac_header in \ |
6952 | ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default" |
6563 | sys/byteorder.h \ |
6953 | if test "x$ac_cv_header_sys_byteorder_h" = xyes |
6564 | sys/ioctl.h \ |
6954 | then : |
6565 | sys/sockio.h \ |
6955 | printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
6566 | sys/strredir.h \ |
|
|
6567 | stdint.h \ |
|
|
6568 | wchar.h \ |
|
|
6569 | |
6956 | |
6570 | do : |
6957 | fi |
6571 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6572 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6958 | ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
6573 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6959 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
6574 | cat >>confdefs.h <<_ACEOF |
6960 | then : |
6575 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6961 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
6576 | _ACEOF |
|
|
6577 | |
6962 | |
6578 | fi |
6963 | fi |
|
|
6964 | ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
|
|
6965 | if test "x$ac_cv_header_sys_sockio_h" = xyes |
|
|
6966 | then : |
|
|
6967 | printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h |
6579 | |
6968 | |
6580 | done |
6969 | fi |
|
|
6970 | ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default" |
|
|
6971 | if test "x$ac_cv_header_sys_strredir_h" = xyes |
|
|
6972 | then : |
|
|
6973 | printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h |
6581 | |
6974 | |
|
|
6975 | fi |
|
|
6976 | ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
|
|
6977 | if test "x$ac_cv_header_stdint_h" = xyes |
|
|
6978 | then : |
|
|
6979 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
6582 | |
6980 | |
|
|
6981 | fi |
|
|
6982 | ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
|
|
6983 | if test "x$ac_cv_header_wchar_h" = xyes |
|
|
6984 | then : |
|
|
6985 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
|
|
6986 | |
|
|
6987 | fi |
|
|
6988 | |
|
|
6989 | |
6583 | { $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 |
6584 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
6991 | printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
6585 | if ${rxvt_cv_xlib_illegal_access+:} false; then : |
6992 | if test ${rxvt_cv_xlib_illegal_access+y} |
6586 | $as_echo_n "(cached) " >&6 |
6993 | then : |
6587 | else |
6994 | printf %s "(cached) " >&6 |
|
|
6995 | else $as_nop |
6588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6589 | /* end confdefs.h. */ |
6997 | /* end confdefs.h. */ |
6590 | |
6998 | |
6591 | #define XLIB_ILLEGAL_ACCESS |
6999 | #define XLIB_ILLEGAL_ACCESS |
6592 | #include <X11/Xlib.h> |
7000 | #include <X11/Xlib.h> |
6593 | |
7001 | |
6594 | int |
7002 | int |
6595 | main () |
7003 | main (void) |
6596 | { |
7004 | { |
6597 | |
7005 | |
6598 | Display *dpy; |
7006 | Display *dpy; |
6599 | dpy->xdefaults = (char *)0; |
7007 | dpy->xdefaults = (char *)0; |
6600 | |
7008 | |
6601 | ; |
7009 | ; |
6602 | return 0; |
7010 | return 0; |
6603 | } |
7011 | } |
6604 | _ACEOF |
7012 | _ACEOF |
6605 | if ac_fn_cxx_try_compile "$LINENO"; then : |
7013 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7014 | then : |
6606 | rxvt_cv_xlib_illegal_access=yes |
7015 | rxvt_cv_xlib_illegal_access=yes |
|
|
7016 | else $as_nop |
|
|
7017 | rxvt_cv_xlib_illegal_access=no |
|
|
7018 | |
|
|
7019 | fi |
|
|
7020 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7021 | fi |
|
|
7022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
7023 | printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
7024 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
7025 | |
|
|
7026 | printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
7027 | |
|
|
7028 | fi |
|
|
7029 | |
|
|
7030 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
7031 | if test "x$ac_cv_type_mode_t" = xyes |
|
|
7032 | then : |
|
|
7033 | |
|
|
7034 | else $as_nop |
|
|
7035 | |
|
|
7036 | printf "%s\n" "#define mode_t int" >>confdefs.h |
|
|
7037 | |
|
|
7038 | fi |
|
|
7039 | |
|
|
7040 | |
|
|
7041 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
|
|
7042 | " |
|
|
7043 | if test "x$ac_cv_type_pid_t" = xyes |
|
|
7044 | then : |
|
|
7045 | |
|
|
7046 | else $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 | |
|
|
7054 | int |
|
|
7055 | main (void) |
|
|
7056 | { |
|
|
7057 | |
|
|
7058 | ; |
|
|
7059 | return 0; |
|
|
7060 | } |
|
|
7061 | |
|
|
7062 | _ACEOF |
|
|
7063 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7064 | then : |
|
|
7065 | ac_pid_type='int' |
|
|
7066 | else $as_nop |
|
|
7067 | ac_pid_type='__int64' |
|
|
7068 | fi |
|
|
7069 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7070 | |
|
|
7071 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
|
|
7072 | |
|
|
7073 | |
|
|
7074 | fi |
|
|
7075 | |
|
|
7076 | |
|
|
7077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
|
7078 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
|
|
7079 | if test ${ac_cv_path_GREP+y} |
|
|
7080 | then : |
|
|
7081 | printf %s "(cached) " >&6 |
|
|
7082 | else $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 |
|
|
7087 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7088 | do |
|
|
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 |
|
|
7102 | case `"$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;; |
|
|
7126 | esac |
|
|
7127 | |
|
|
7128 | $ac_path_GREP_found && break 3 |
|
|
7129 | done |
|
|
7130 | done |
|
|
7131 | done |
|
|
7132 | IFS=$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 |
6607 | else |
7136 | else |
6608 | rxvt_cv_xlib_illegal_access=no |
7137 | ac_cv_path_GREP=$GREP |
6609 | |
|
|
6610 | fi |
7138 | fi |
6611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6612 | fi |
|
|
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6614 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6615 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6616 | |
7139 | |
6617 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6618 | |
|
|
6619 | fi |
7140 | fi |
|
|
7141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
7142 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
|
|
7143 | GREP="$ac_cv_path_GREP" |
6620 | |
7144 | |
6621 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6622 | if test "x$ac_cv_type_mode_t" = xyes; then : |
|
|
6623 | |
7145 | |
|
|
7146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
7147 | printf %s "checking for egrep... " >&6; } |
|
|
7148 | if test ${ac_cv_path_EGREP+y} |
|
|
7149 | then : |
|
|
7150 | printf %s "(cached) " >&6 |
|
|
7151 | else $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 |
|
|
7159 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7160 | do |
|
|
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 |
|
|
7174 | case `"$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;; |
|
|
7198 | esac |
|
|
7199 | |
|
|
7200 | $ac_path_EGREP_found && break 3 |
|
|
7201 | done |
|
|
7202 | done |
|
|
7203 | done |
|
|
7204 | IFS=$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 |
6624 | else |
7208 | else |
6625 | |
7209 | ac_cv_path_EGREP=$EGREP |
6626 | cat >>confdefs.h <<_ACEOF |
|
|
6627 | #define mode_t int |
|
|
6628 | _ACEOF |
|
|
6629 | |
|
|
6630 | fi |
7210 | fi |
6631 | |
7211 | |
6632 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
7212 | fi |
6633 | if test "x$ac_cv_type_pid_t" = xyes; then : |
|
|
6634 | |
|
|
6635 | else |
|
|
6636 | |
|
|
6637 | cat >>confdefs.h <<_ACEOF |
|
|
6638 | #define pid_t int |
|
|
6639 | _ACEOF |
|
|
6640 | |
|
|
6641 | fi |
7213 | fi |
|
|
7214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
7215 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
|
|
7216 | EGREP="$ac_cv_path_EGREP" |
6642 | |
7217 | |
|
|
7218 | |
6643 | { $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 |
6644 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
7220 | printf %s "checking for uid_t in sys/types.h... " >&6; } |
6645 | if ${ac_cv_type_uid_t+:} false; then : |
7221 | if test ${ac_cv_type_uid_t+y} |
6646 | $as_echo_n "(cached) " >&6 |
7222 | then : |
6647 | else |
7223 | printf %s "(cached) " >&6 |
|
|
7224 | else $as_nop |
6648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6649 | /* end confdefs.h. */ |
7226 | /* end confdefs.h. */ |
6650 | #include <sys/types.h> |
7227 | #include <sys/types.h> |
6651 | |
7228 | |
6652 | _ACEOF |
7229 | _ACEOF |
6653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6654 | $EGREP "uid_t" >/dev/null 2>&1; then : |
7231 | $EGREP "uid_t" >/dev/null 2>&1 |
|
|
7232 | then : |
6655 | ac_cv_type_uid_t=yes |
7233 | ac_cv_type_uid_t=yes |
6656 | else |
7234 | else $as_nop |
6657 | ac_cv_type_uid_t=no |
7235 | ac_cv_type_uid_t=no |
6658 | fi |
7236 | fi |
6659 | rm -f conftest* |
7237 | rm -rf conftest* |
6660 | |
7238 | |
6661 | fi |
7239 | fi |
6662 | { $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 |
6663 | $as_echo "$ac_cv_type_uid_t" >&6; } |
7241 | printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
6664 | if test $ac_cv_type_uid_t = no; then |
7242 | if test $ac_cv_type_uid_t = no; then |
6665 | |
7243 | |
6666 | $as_echo "#define uid_t int" >>confdefs.h |
7244 | printf "%s\n" "#define uid_t int" >>confdefs.h |
6667 | |
7245 | |
6668 | |
7246 | |
6669 | $as_echo "#define gid_t int" >>confdefs.h |
7247 | printf "%s\n" "#define gid_t int" >>confdefs.h |
6670 | |
7248 | |
6671 | fi |
7249 | fi |
6672 | |
7250 | |
6673 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
7251 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
6674 | case $ac_cv_c_int16_t in #( |
7252 | case $ac_cv_c_int16_t in #( |
6675 | no|yes) ;; #( |
7253 | no|yes) ;; #( |
6676 | *) |
7254 | *) |
6677 | |
7255 | |
6678 | cat >>confdefs.h <<_ACEOF |
7256 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
6679 | #define int16_t $ac_cv_c_int16_t |
|
|
6680 | _ACEOF |
|
|
6681 | ;; |
7257 | ;; |
6682 | esac |
7258 | esac |
6683 | |
7259 | |
6684 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
7260 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
6685 | case $ac_cv_c_uint16_t in #( |
7261 | case $ac_cv_c_uint16_t in #( |
6686 | no|yes) ;; #( |
7262 | no|yes) ;; #( |
6687 | *) |
7263 | *) |
6688 | |
7264 | |
6689 | |
7265 | |
6690 | cat >>confdefs.h <<_ACEOF |
7266 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
6691 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6692 | _ACEOF |
|
|
6693 | ;; |
7267 | ;; |
6694 | esac |
7268 | esac |
6695 | |
7269 | |
6696 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
7270 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
6697 | case $ac_cv_c_int32_t in #( |
7271 | case $ac_cv_c_int32_t in #( |
6698 | no|yes) ;; #( |
7272 | no|yes) ;; #( |
6699 | *) |
7273 | *) |
6700 | |
7274 | |
6701 | cat >>confdefs.h <<_ACEOF |
7275 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
6702 | #define int32_t $ac_cv_c_int32_t |
|
|
6703 | _ACEOF |
|
|
6704 | ;; |
7276 | ;; |
6705 | esac |
7277 | esac |
6706 | |
7278 | |
6707 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
7279 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
6708 | case $ac_cv_c_uint32_t in #( |
7280 | case $ac_cv_c_uint32_t in #( |
6709 | no|yes) ;; #( |
7281 | no|yes) ;; #( |
6710 | *) |
7282 | *) |
6711 | |
7283 | |
6712 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
7284 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
6713 | |
7285 | |
6714 | |
7286 | |
6715 | cat >>confdefs.h <<_ACEOF |
7287 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
6716 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6717 | _ACEOF |
|
|
6718 | ;; |
7288 | ;; |
6719 | esac |
7289 | esac |
6720 | |
7290 | |
6721 | |
7291 | |
6722 | for ac_func in unsetenv |
|
|
6723 | do : |
|
|
6724 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
7292 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
6725 | if test "x$ac_cv_func_unsetenv" = xyes; then : |
7293 | if test "x$ac_cv_func_unsetenv" = xyes |
6726 | cat >>confdefs.h <<_ACEOF |
7294 | then : |
6727 | #define HAVE_UNSETENV 1 |
7295 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
6728 | _ACEOF |
|
|
6729 | |
7296 | |
6730 | fi |
|
|
6731 | done |
|
|
6732 | |
|
|
6733 | |
|
|
6734 | |
|
|
6735 | support_utmp=yes |
|
|
6736 | support_wtmp=yes |
|
|
6737 | support_lastlog=yes |
|
|
6738 | |
|
|
6739 | # Check whether --enable-utmp was given. |
|
|
6740 | if test "${enable_utmp+set}" = set; then : |
|
|
6741 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6742 | support_utmp=$enableval |
|
|
6743 | fi |
|
|
6744 | fi |
|
|
6745 | |
|
|
6746 | |
|
|
6747 | # Check whether --enable-wtmp was given. |
|
|
6748 | if test "${enable_wtmp+set}" = set; then : |
|
|
6749 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6750 | support_wtmp=$enableval |
|
|
6751 | fi |
|
|
6752 | fi |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | # Check whether --enable-lastlog was given. |
|
|
6756 | if test "${enable_lastlog+set}" = set; then : |
|
|
6757 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6758 | support_lastlog=$enableval |
|
|
6759 | fi |
|
|
6760 | fi |
|
|
6761 | |
|
|
6762 | |
|
|
6763 | if test x$support_utmp = xyes; then |
|
|
6764 | |
|
|
6765 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6766 | |
|
|
6767 | fi |
|
|
6768 | if test x$support_wtmp = xyes; then |
|
|
6769 | |
|
|
6770 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6771 | |
|
|
6772 | fi |
|
|
6773 | if test x$support_lastlog = xyes; then |
|
|
6774 | |
|
|
6775 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6776 | |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | for ac_func in \ |
|
|
6780 | updwtmp \ |
|
|
6781 | updwtmpx \ |
|
|
6782 | updlastlogx \ |
|
|
6783 | |
|
|
6784 | do : |
|
|
6785 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6786 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6787 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6788 | cat >>confdefs.h <<_ACEOF |
|
|
6789 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6790 | _ACEOF |
|
|
6791 | |
|
|
6792 | fi |
|
|
6793 | done |
|
|
6794 | |
|
|
6795 | |
|
|
6796 | for ac_header in lastlog.h |
|
|
6797 | do : |
|
|
6798 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6799 | if test "x$ac_cv_header_lastlog_h" = xyes; then : |
|
|
6800 | cat >>confdefs.h <<_ACEOF |
|
|
6801 | #define HAVE_LASTLOG_H 1 |
|
|
6802 | _ACEOF |
|
|
6803 | |
|
|
6804 | fi |
|
|
6805 | |
|
|
6806 | done |
|
|
6807 | |
|
|
6808 | |
|
|
6809 | case $host in |
|
|
6810 | *-*-solaris*) |
|
|
6811 | |
|
|
6812 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6813 | |
|
|
6814 | ;; |
|
|
6815 | esac |
|
|
6816 | |
|
|
6817 | |
|
|
6818 | for ac_header in utmp.h |
|
|
6819 | do : |
|
|
6820 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6821 | if test "x$ac_cv_header_utmp_h" = xyes; then : |
|
|
6822 | cat >>confdefs.h <<_ACEOF |
|
|
6823 | #define HAVE_UTMP_H 1 |
|
|
6824 | _ACEOF |
|
|
6825 | |
|
|
6826 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6827 | #include <sys/types.h> |
|
|
6828 | #include <utmp.h> |
|
|
6829 | |
|
|
6830 | " |
|
|
6831 | if test "x$ac_cv_type_struct_utmp" = xyes; then : |
|
|
6832 | |
|
|
6833 | cat >>confdefs.h <<_ACEOF |
|
|
6834 | #define HAVE_STRUCT_UTMP 1 |
|
|
6835 | _ACEOF |
|
|
6836 | |
|
|
6837 | |
|
|
6838 | fi |
|
|
6839 | |
|
|
6840 | |
|
|
6841 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6842 | #include <sys/types.h> |
|
|
6843 | #include <utmp.h> |
|
|
6844 | |
|
|
6845 | " |
|
|
6846 | if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : |
|
|
6847 | |
|
|
6848 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6849 | |
|
|
6850 | fi |
|
|
6851 | |
|
|
6852 | |
|
|
6853 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6854 | #include <sys/types.h> |
|
|
6855 | #include <utmp.h> |
|
|
6856 | |
|
|
6857 | " |
|
|
6858 | if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : |
|
|
6859 | |
|
|
6860 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6861 | |
|
|
6862 | fi |
|
|
6863 | |
|
|
6864 | |
|
|
6865 | fi |
|
|
6866 | |
|
|
6867 | done |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | for ac_header in utmpx.h |
|
|
6871 | do : |
|
|
6872 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6873 | if test "x$ac_cv_header_utmpx_h" = xyes; then : |
|
|
6874 | cat >>confdefs.h <<_ACEOF |
|
|
6875 | #define HAVE_UTMPX_H 1 |
|
|
6876 | _ACEOF |
|
|
6877 | |
|
|
6878 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6879 | #include <sys/types.h> |
|
|
6880 | #include <utmpx.h> |
|
|
6881 | |
|
|
6882 | " |
|
|
6883 | if test "x$ac_cv_type_struct_utmpx" = xyes; then : |
|
|
6884 | |
|
|
6885 | cat >>confdefs.h <<_ACEOF |
|
|
6886 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6887 | _ACEOF |
|
|
6888 | |
|
|
6889 | |
|
|
6890 | fi |
|
|
6891 | |
|
|
6892 | |
|
|
6893 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6894 | #include <sys/types.h> |
|
|
6895 | #include <utmpx.h> |
|
|
6896 | |
|
|
6897 | " |
|
|
6898 | if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then : |
|
|
6899 | |
|
|
6900 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6901 | |
|
|
6902 | fi |
|
|
6903 | |
|
|
6904 | |
|
|
6905 | fi |
|
|
6906 | |
|
|
6907 | done |
|
|
6908 | |
|
|
6909 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6910 | #include <sys/types.h> |
|
|
6911 | #include <utmp.h> |
|
|
6912 | #ifdef HAVE_LASTLOG_H |
|
|
6913 | #include <lastlog.h> |
|
|
6914 | #endif |
|
|
6915 | |
|
|
6916 | " |
|
|
6917 | if test "x$ac_cv_type_struct_lastlog" = xyes; then : |
|
|
6918 | |
|
|
6919 | cat >>confdefs.h <<_ACEOF |
|
|
6920 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6921 | _ACEOF |
|
|
6922 | |
|
|
6923 | |
|
|
6924 | fi |
|
|
6925 | |
|
|
6926 | |
|
|
6927 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6928 | #include <sys/types.h> |
|
|
6929 | #include <utmpx.h> |
|
|
6930 | #ifdef HAVE_LASTLOG_H |
|
|
6931 | #include <lastlog.h> |
|
|
6932 | #endif |
|
|
6933 | |
|
|
6934 | " |
|
|
6935 | if test "x$ac_cv_type_struct_lastlogx" = xyes; then : |
|
|
6936 | |
|
|
6937 | cat >>confdefs.h <<_ACEOF |
|
|
6938 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6939 | _ACEOF |
|
|
6940 | |
|
|
6941 | |
|
|
6942 | fi |
|
|
6943 | |
|
|
6944 | |
|
|
6945 | |
|
|
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6947 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6948 | if ${pt_cv_path_utmp+:} false; then : |
|
|
6949 | $as_echo_n "(cached) " >&6 |
|
|
6950 | else |
|
|
6951 | |
|
|
6952 | if test "$cross_compiling" != yes; then |
|
|
6953 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6954 | if test -f "$file"; then |
|
|
6955 | pt_cv_path_utmp=$file |
|
|
6956 | break |
|
|
6957 | fi |
|
|
6958 | done |
|
|
6959 | fi |
|
|
6960 | fi |
|
|
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6962 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6963 | if test x$pt_cv_path_utmp != x; then |
|
|
6964 | |
|
|
6965 | cat >>confdefs.h <<_ACEOF |
|
|
6966 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6967 | _ACEOF |
|
|
6968 | |
|
|
6969 | elif test "$cross_compiling" = yes; then |
|
|
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6971 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6972 | fi |
|
|
6973 | |
|
|
6974 | |
|
|
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6976 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6977 | if ${pt_cv_path_wtmp+:} false; then : |
|
|
6978 | $as_echo_n "(cached) " >&6 |
|
|
6979 | else |
|
|
6980 | |
|
|
6981 | if test "$cross_compiling" != yes; then |
|
|
6982 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6983 | if test -f "$file"; then |
|
|
6984 | pt_cv_path_wtmp=$file |
|
|
6985 | break |
|
|
6986 | fi |
|
|
6987 | done |
|
|
6988 | fi |
|
|
6989 | fi |
|
|
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6991 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6992 | if test x$pt_cv_path_wtmp != x; then |
|
|
6993 | |
|
|
6994 | cat >>confdefs.h <<_ACEOF |
|
|
6995 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6996 | _ACEOF |
|
|
6997 | |
|
|
6998 | elif test "$cross_compiling" = yes; then |
|
|
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7000 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
7001 | fi |
|
|
7002 | |
|
|
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
7004 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
7005 | if ${pt_cv_path_wtmpx+:} false; then : |
|
|
7006 | $as_echo_n "(cached) " >&6 |
|
|
7007 | else |
|
|
7008 | |
|
|
7009 | if test "$cross_compiling" != yes; then |
|
|
7010 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
7011 | if test -f "$file"; then |
|
|
7012 | pt_cv_path_wtmpx=$file |
|
|
7013 | break |
|
|
7014 | fi |
|
|
7015 | done |
|
|
7016 | fi |
|
|
7017 | fi |
|
|
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7019 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
7020 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7021 | |
|
|
7022 | cat >>confdefs.h <<_ACEOF |
|
|
7023 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
7024 | _ACEOF |
|
|
7025 | |
|
|
7026 | elif test "$cross_compiling" = yes; then |
|
|
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7028 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
7029 | fi |
|
|
7030 | |
|
|
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
7032 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
7033 | if ${pt_cv_path_lastlog+:} false; then : |
|
|
7034 | $as_echo_n "(cached) " >&6 |
|
|
7035 | else |
|
|
7036 | |
|
|
7037 | if test "$cross_compiling" != yes; then |
|
|
7038 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
7039 | if test -f "$file"; then |
|
|
7040 | pt_cv_path_lastlog=$file |
|
|
7041 | break |
|
|
7042 | fi |
|
|
7043 | done |
|
|
7044 | fi |
|
|
7045 | fi |
|
|
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7047 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
7048 | if test x$pt_cv_path_lastlog != x; then |
|
|
7049 | |
|
|
7050 | cat >>confdefs.h <<_ACEOF |
|
|
7051 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
7052 | _ACEOF |
|
|
7053 | |
|
|
7054 | elif test "$cross_compiling" = yes; then |
|
|
7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7056 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
7057 | fi |
|
|
7058 | |
|
|
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
7060 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
7061 | if ${pt_cv_path_lastlogx+:} false; then : |
|
|
7062 | $as_echo_n "(cached) " >&6 |
|
|
7063 | else |
|
|
7064 | |
|
|
7065 | if test "$cross_compiling" != yes; then |
|
|
7066 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
7067 | if test -f "$file"; then |
|
|
7068 | pt_cv_path_lastlogx=$file |
|
|
7069 | break |
|
|
7070 | fi |
|
|
7071 | done |
|
|
7072 | fi |
|
|
7073 | fi |
|
|
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7075 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
7076 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7077 | |
|
|
7078 | cat >>confdefs.h <<_ACEOF |
|
|
7079 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
7080 | _ACEOF |
|
|
7081 | |
|
|
7082 | elif test "$cross_compiling" = yes; then |
|
|
7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7084 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7085 | fi |
7297 | fi |
7086 | |
7298 | |
7087 | |
7299 | |
7088 | |
7300 | |
7089 | |
7301 | |
7090 | save_LIBS=$LIBS |
7302 | save_LIBS=$LIBS |
7091 | save_CXXFLAGS=$CXXFLAGS |
7303 | save_CXXFLAGS=$CXXFLAGS |
7092 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7304 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7093 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7305 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7094 | if test x$support_xim = xyes; then |
7306 | if test x$support_xim = xyes; then |
7095 | { $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 |
7096 | $as_echo_n "checking for working Xlocale... " >&6; } |
7308 | printf %s "checking for working Xlocale... " >&6; } |
7097 | if ${rxvt_cv_func_xlocale+:} false; then : |
7309 | if test ${rxvt_cv_func_xlocale+y} |
7098 | $as_echo_n "(cached) " >&6 |
7310 | then : |
7099 | else |
7311 | printf %s "(cached) " >&6 |
|
|
7312 | else $as_nop |
7100 | if test "$cross_compiling" = yes; then : |
7313 | if test "$cross_compiling" = yes |
|
|
7314 | then : |
7101 | : |
7315 | : |
7102 | else |
7316 | else $as_nop |
7103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7104 | /* end confdefs.h. */ |
7318 | /* end confdefs.h. */ |
7105 | |
7319 | |
7106 | #include <X11/Xlib.h> |
7320 | #include <X11/Xlib.h> |
7107 | #include <stdlib.h> |
7321 | #include <stdlib.h> |
… | |
… | |
7112 | else |
7326 | else |
7113 | exit (1); |
7327 | exit (1); |
7114 | } |
7328 | } |
7115 | |
7329 | |
7116 | _ACEOF |
7330 | _ACEOF |
7117 | if ac_fn_cxx_try_run "$LINENO"; then : |
7331 | if ac_fn_cxx_try_run "$LINENO" |
|
|
7332 | then : |
7118 | rxvt_cv_func_xlocale=yes |
7333 | rxvt_cv_func_xlocale=yes |
7119 | else |
7334 | else $as_nop |
7120 | rxvt_cv_func_xlocale=no |
7335 | rxvt_cv_func_xlocale=no |
7121 | fi |
7336 | fi |
7122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7123 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7338 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7124 | fi |
7339 | fi |
7125 | |
7340 | |
7126 | fi |
7341 | fi |
7127 | { $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 |
7128 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
7343 | printf "%s\n" "$rxvt_cv_func_xlocale" >&6; } |
7129 | if test x$rxvt_cv_func_xlocale = xyes; then |
7344 | if test x$rxvt_cv_func_xlocale = xyes; then |
7130 | |
7345 | |
7131 | $as_echo "#define USE_XIM 1" >>confdefs.h |
7346 | printf "%s\n" "#define USE_XIM 1" >>confdefs.h |
7132 | |
7347 | |
7133 | { $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 |
7134 | $as_echo_n "checking for broken XIM callback... " >&6; } |
7349 | printf %s "checking for broken XIM callback... " >&6; } |
7135 | if ${rxvt_cv_broken_ximcb+:} false; then : |
7350 | if test ${rxvt_cv_broken_ximcb+y} |
7136 | $as_echo_n "(cached) " >&6 |
7351 | then : |
7137 | else |
7352 | printf %s "(cached) " >&6 |
|
|
7353 | else $as_nop |
7138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7139 | /* end confdefs.h. */ |
7355 | /* end confdefs.h. */ |
7140 | |
7356 | |
7141 | #include <X11/Xlib.h> |
7357 | #include <X11/Xlib.h> |
7142 | |
7358 | |
… | |
… | |
7146 | XIMCallback cb; |
7362 | XIMCallback cb; |
7147 | cb.callback = im_destroy_cb; |
7363 | cb.callback = im_destroy_cb; |
7148 | } |
7364 | } |
7149 | |
7365 | |
7150 | _ACEOF |
7366 | _ACEOF |
7151 | if ac_fn_cxx_try_compile "$LINENO"; then : |
7367 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7368 | then : |
7152 | rxvt_cv_broken_ximcb=yes |
7369 | rxvt_cv_broken_ximcb=yes |
7153 | else |
7370 | else $as_nop |
7154 | rxvt_cv_broken_ximcb=no |
7371 | rxvt_cv_broken_ximcb=no |
7155 | fi |
7372 | fi |
7156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7373 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7157 | fi |
7374 | fi |
7158 | { $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 |
7159 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
7376 | printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; } |
7160 | |
7377 | |
7161 | if test x$rxvt_cv_broken_ximcb = xyes; then |
7378 | if test x$rxvt_cv_broken_ximcb = xyes; then |
7162 | |
7379 | |
7163 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
7380 | printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
7164 | |
7381 | |
7165 | fi |
7382 | fi |
7166 | fi |
7383 | fi |
7167 | fi |
7384 | fi |
7168 | |
7385 | |
7169 | { $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 |
7170 | $as_echo_n "checking for working X setlocale... " >&6; } |
7387 | printf %s "checking for working X setlocale... " >&6; } |
7171 | if ${rxvt_cv_func_xsetlocale+:} false; then : |
7388 | if test ${rxvt_cv_func_xsetlocale+y} |
7172 | $as_echo_n "(cached) " >&6 |
7389 | then : |
7173 | else |
7390 | printf %s "(cached) " >&6 |
|
|
7391 | else $as_nop |
7174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7175 | /* end confdefs.h. */ |
7393 | /* end confdefs.h. */ |
7176 | #define X_LOCALE 1 |
7394 | #define X_LOCALE 1 |
7177 | #include <X11/Xlocale.h> |
7395 | #include <X11/Xlocale.h> |
7178 | int |
7396 | int |
7179 | main () |
7397 | main (void) |
7180 | { |
7398 | { |
7181 | setlocale(LC_CTYPE, ""); |
7399 | setlocale(LC_CTYPE, ""); |
7182 | ; |
7400 | ; |
7183 | return 0; |
7401 | return 0; |
7184 | } |
7402 | } |
7185 | _ACEOF |
7403 | _ACEOF |
7186 | if ac_fn_cxx_try_link "$LINENO"; then : |
7404 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7405 | then : |
7187 | rxvt_cv_func_xsetlocale=yes |
7406 | rxvt_cv_func_xsetlocale=yes |
7188 | else |
7407 | else $as_nop |
7189 | rxvt_cv_func_xsetlocale=no |
7408 | rxvt_cv_func_xsetlocale=no |
7190 | fi |
7409 | fi |
7191 | rm -f core conftest.err conftest.$ac_objext \ |
7410 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7192 | conftest$ac_exeext conftest.$ac_ext |
7411 | conftest$ac_exeext conftest.$ac_ext |
7193 | fi |
7412 | fi |
7194 | { $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 |
7195 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
7414 | printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; } |
7196 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
7415 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
7197 | |
7416 | |
7198 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
7417 | printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h |
7199 | |
7418 | |
7200 | fi |
7419 | fi |
7201 | LIBS=$save_LIBS |
7420 | LIBS=$save_LIBS |
7202 | CXXFLAGS=$save_CXXFLAGS |
7421 | CXXFLAGS=$save_CXXFLAGS |
7203 | |
7422 | |
7204 | { $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 |
7205 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
7424 | printf %s "checking for working nl_langinfo... " >&6; } |
7206 | if ${rxvt_cv_func_nl_langinfo+:} false; then : |
7425 | if test ${rxvt_cv_func_nl_langinfo+y} |
7207 | $as_echo_n "(cached) " >&6 |
7426 | then : |
7208 | else |
7427 | printf %s "(cached) " >&6 |
|
|
7428 | else $as_nop |
7209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7210 | /* end confdefs.h. */ |
7430 | /* end confdefs.h. */ |
7211 | #include <langinfo.h> |
7431 | #include <langinfo.h> |
7212 | int |
7432 | int |
7213 | main () |
7433 | main (void) |
7214 | { |
7434 | { |
7215 | nl_langinfo(CODESET); |
7435 | nl_langinfo(CODESET); |
7216 | ; |
7436 | ; |
7217 | return 0; |
7437 | return 0; |
7218 | } |
7438 | } |
7219 | _ACEOF |
7439 | _ACEOF |
7220 | if ac_fn_cxx_try_link "$LINENO"; then : |
7440 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7441 | then : |
7221 | rxvt_cv_func_nl_langinfo=yes |
7442 | rxvt_cv_func_nl_langinfo=yes |
7222 | else |
7443 | else $as_nop |
7223 | rxvt_cv_func_nl_langinfo=no |
7444 | rxvt_cv_func_nl_langinfo=no |
7224 | fi |
7445 | fi |
7225 | rm -f core conftest.err conftest.$ac_objext \ |
7446 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7226 | conftest$ac_exeext conftest.$ac_ext |
7447 | conftest$ac_exeext conftest.$ac_ext |
7227 | fi |
7448 | fi |
7228 | { $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 |
7229 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
7450 | printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
7230 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
7451 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
7231 | |
7452 | |
7232 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7453 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7233 | |
|
|
7234 | fi |
|
|
7235 | |
|
|
7236 | |
|
|
7237 | |
|
|
7238 | case $host in |
|
|
7239 | *-*-solaris*) |
|
|
7240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7241 | /* end confdefs.h. */ |
|
|
7242 | |
|
|
7243 | #if __STDC_VERSION__ >= 199901L |
|
|
7244 | error |
|
|
7245 | #endif |
|
|
7246 | |
|
|
7247 | int |
|
|
7248 | main () |
|
|
7249 | { |
|
|
7250 | |
|
|
7251 | ; |
|
|
7252 | return 0; |
|
|
7253 | } |
|
|
7254 | _ACEOF |
|
|
7255 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
7256 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7257 | |
|
|
7258 | else |
|
|
7259 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
|
|
7260 | |
|
|
7261 | fi |
|
|
7262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7264 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7265 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7266 | $as_echo_n "(cached) " >&6 |
|
|
7267 | else |
|
|
7268 | ac_func_search_save_LIBS=$LIBS |
|
|
7269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7270 | /* end confdefs.h. */ |
|
|
7271 | |
|
|
7272 | /* Override any GCC internal prototype to avoid an error. |
|
|
7273 | Use char because int might match the return type of a GCC |
|
|
7274 | builtin and then its argument prototype would still apply. */ |
|
|
7275 | #ifdef __cplusplus |
|
|
7276 | extern "C" |
|
|
7277 | #endif |
|
|
7278 | char sendmsg (); |
|
|
7279 | int |
|
|
7280 | main () |
|
|
7281 | { |
|
|
7282 | return sendmsg (); |
|
|
7283 | ; |
|
|
7284 | return 0; |
|
|
7285 | } |
|
|
7286 | _ACEOF |
|
|
7287 | for ac_lib in '' socket; do |
|
|
7288 | if test -z "$ac_lib"; then |
|
|
7289 | ac_res="none required" |
|
|
7290 | else |
|
|
7291 | ac_res=-l$ac_lib |
|
|
7292 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7293 | fi |
|
|
7294 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7295 | ac_cv_search_sendmsg=$ac_res |
|
|
7296 | fi |
|
|
7297 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7298 | conftest$ac_exeext |
|
|
7299 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7300 | break |
|
|
7301 | fi |
|
|
7302 | done |
|
|
7303 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7304 | |
|
|
7305 | else |
|
|
7306 | ac_cv_search_sendmsg=no |
|
|
7307 | fi |
|
|
7308 | rm conftest.$ac_ext |
|
|
7309 | LIBS=$ac_func_search_save_LIBS |
|
|
7310 | fi |
|
|
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7312 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7313 | ac_res=$ac_cv_search_sendmsg |
|
|
7314 | if test "$ac_res" != no; then : |
|
|
7315 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7316 | |
|
|
7317 | fi |
|
|
7318 | |
|
|
7319 | ;; |
|
|
7320 | esac |
|
|
7321 | |
|
|
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7323 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7324 | if ${pt_cv_can_pass_fds+:} false; then : |
|
|
7325 | $as_echo_n "(cached) " >&6 |
|
|
7326 | else |
|
|
7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7328 | /* end confdefs.h. */ |
|
|
7329 | |
|
|
7330 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7331 | #include <sys/types.h> |
|
|
7332 | #include <sys/socket.h> |
|
|
7333 | #include <sys/uio.h> |
|
|
7334 | |
|
|
7335 | int |
|
|
7336 | main () |
|
|
7337 | { |
|
|
7338 | |
|
|
7339 | { |
|
|
7340 | msghdr msg; |
|
|
7341 | iovec iov; |
|
|
7342 | char buf [100]; |
|
|
7343 | char data = 0; |
|
|
7344 | |
|
|
7345 | iov.iov_base = &data; |
|
|
7346 | iov.iov_len = 1; |
|
|
7347 | |
|
|
7348 | msg.msg_iov = &iov; |
|
|
7349 | msg.msg_iovlen = 1; |
|
|
7350 | msg.msg_control = buf; |
|
|
7351 | msg.msg_controllen = sizeof buf; |
|
|
7352 | |
|
|
7353 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7354 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7355 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7356 | cmsg->cmsg_len = 100; |
|
|
7357 | |
|
|
7358 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7359 | |
|
|
7360 | return sendmsg (3, &msg, 0); |
|
|
7361 | } |
|
|
7362 | |
|
|
7363 | ; |
|
|
7364 | return 0; |
|
|
7365 | } |
|
|
7366 | _ACEOF |
|
|
7367 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7368 | pt_cv_can_pass_fds=yes |
|
|
7369 | else |
|
|
7370 | pt_cv_can_pass_fds=no |
|
|
7371 | fi |
|
|
7372 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7373 | conftest$ac_exeext conftest.$ac_ext |
|
|
7374 | fi |
|
|
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7376 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7377 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7378 | |
|
|
7379 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7380 | |
|
|
7381 | else |
|
|
7382 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7383 | fi |
|
|
7384 | |
|
|
7385 | |
|
|
7386 | |
|
|
7387 | for ac_header in \ |
|
|
7388 | pty.h \ |
|
|
7389 | util.h \ |
|
|
7390 | libutil.h \ |
|
|
7391 | sys/ioctl.h \ |
|
|
7392 | stropts.h \ |
|
|
7393 | |
|
|
7394 | do : |
|
|
7395 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7396 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7397 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7398 | cat >>confdefs.h <<_ACEOF |
|
|
7399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7400 | _ACEOF |
|
|
7401 | |
|
|
7402 | fi |
|
|
7403 | |
|
|
7404 | done |
|
|
7405 | |
|
|
7406 | |
|
|
7407 | for ac_func in \ |
|
|
7408 | revoke \ |
|
|
7409 | _getpty \ |
|
|
7410 | getpt \ |
|
|
7411 | posix_openpt \ |
|
|
7412 | isastream \ |
|
|
7413 | setuid \ |
|
|
7414 | seteuid \ |
|
|
7415 | setreuid \ |
|
|
7416 | setresuid \ |
|
|
7417 | |
|
|
7418 | do : |
|
|
7419 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7420 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7421 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7422 | cat >>confdefs.h <<_ACEOF |
|
|
7423 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7424 | _ACEOF |
|
|
7425 | |
|
|
7426 | fi |
|
|
7427 | done |
|
|
7428 | |
|
|
7429 | |
|
|
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7431 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7433 | /* end confdefs.h. */ |
|
|
7434 | #include <stdlib.h> |
|
|
7435 | int |
|
|
7436 | main () |
|
|
7437 | { |
|
|
7438 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7439 | ; |
|
|
7440 | return 0; |
|
|
7441 | } |
|
|
7442 | _ACEOF |
|
|
7443 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7444 | unix98_pty=yes |
|
|
7445 | |
|
|
7446 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7447 | |
|
|
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7449 | $as_echo "yes" >&6; } |
|
|
7450 | else |
|
|
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7452 | $as_echo "no" >&6; } |
|
|
7453 | fi |
|
|
7454 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7455 | conftest$ac_exeext conftest.$ac_ext |
|
|
7456 | |
|
|
7457 | if test -z "$unix98_pty"; then |
|
|
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7459 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7460 | if ${ac_cv_search_openpty+:} false; then : |
|
|
7461 | $as_echo_n "(cached) " >&6 |
|
|
7462 | else |
|
|
7463 | ac_func_search_save_LIBS=$LIBS |
|
|
7464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7465 | /* end confdefs.h. */ |
|
|
7466 | |
|
|
7467 | /* Override any GCC internal prototype to avoid an error. |
|
|
7468 | Use char because int might match the return type of a GCC |
|
|
7469 | builtin and then its argument prototype would still apply. */ |
|
|
7470 | #ifdef __cplusplus |
|
|
7471 | extern "C" |
|
|
7472 | #endif |
|
|
7473 | char openpty (); |
|
|
7474 | int |
|
|
7475 | main () |
|
|
7476 | { |
|
|
7477 | return openpty (); |
|
|
7478 | ; |
|
|
7479 | return 0; |
|
|
7480 | } |
|
|
7481 | _ACEOF |
|
|
7482 | for ac_lib in '' util; do |
|
|
7483 | if test -z "$ac_lib"; then |
|
|
7484 | ac_res="none required" |
|
|
7485 | else |
|
|
7486 | ac_res=-l$ac_lib |
|
|
7487 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7488 | fi |
|
|
7489 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7490 | ac_cv_search_openpty=$ac_res |
|
|
7491 | fi |
|
|
7492 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7493 | conftest$ac_exeext |
|
|
7494 | if ${ac_cv_search_openpty+:} false; then : |
|
|
7495 | break |
|
|
7496 | fi |
|
|
7497 | done |
|
|
7498 | if ${ac_cv_search_openpty+:} false; then : |
|
|
7499 | |
|
|
7500 | else |
|
|
7501 | ac_cv_search_openpty=no |
|
|
7502 | fi |
|
|
7503 | rm conftest.$ac_ext |
|
|
7504 | LIBS=$ac_func_search_save_LIBS |
|
|
7505 | fi |
|
|
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7507 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7508 | ac_res=$ac_cv_search_openpty |
|
|
7509 | if test "$ac_res" != no; then : |
|
|
7510 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7511 | |
|
|
7512 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7513 | |
|
|
7514 | fi |
|
|
7515 | |
|
|
7516 | fi |
|
|
7517 | |
|
|
7518 | |
|
|
7519 | |
|
|
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7521 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7522 | if ${pt_cv_tty_group+:} false; then : |
|
|
7523 | $as_echo_n "(cached) " >&6 |
|
|
7524 | else |
|
|
7525 | if test "$cross_compiling" = yes; then : |
|
|
7526 | pt_cv_tty_group=no |
|
|
7527 | else |
|
|
7528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7529 | /* end confdefs.h. */ |
|
|
7530 | |
|
|
7531 | #include <sys/types.h> |
|
|
7532 | #include <sys/stat.h> |
|
|
7533 | #include <unistd.h> |
|
|
7534 | #include <grp.h> |
|
|
7535 | |
|
|
7536 | int main() |
|
|
7537 | { |
|
|
7538 | struct stat st; |
|
|
7539 | struct group *gr; |
|
|
7540 | char *tty; |
|
|
7541 | gr = getgrnam("tty"); |
|
|
7542 | tty = ttyname(0); |
|
|
7543 | if (gr != 0 |
|
|
7544 | && tty != 0 |
|
|
7545 | && (stat(tty, &st)) == 0 |
|
|
7546 | && st.st_gid == gr->gr_gid) |
|
|
7547 | return 0; |
|
|
7548 | else |
|
|
7549 | return 1; |
|
|
7550 | } |
|
|
7551 | _ACEOF |
|
|
7552 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7553 | pt_cv_tty_group=yes |
|
|
7554 | else |
|
|
7555 | pt_cv_tty_group=no |
|
|
7556 | fi |
|
|
7557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7558 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7559 | fi |
|
|
7560 | |
|
|
7561 | fi |
|
|
7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7563 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7564 | if test x$pt_cv_tty_group = xyes; then |
|
|
7565 | |
|
|
7566 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7567 | |
7454 | |
7568 | fi |
7455 | fi |
7569 | |
7456 | |
7570 | support_image=no |
7457 | support_image=no |
7571 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
7458 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
7572 | support_image=yes |
7459 | support_image=yes |
7573 | fi |
7460 | fi |
7574 | if test x$support_xft = xyes || test x$support_image = xyes; then |
7461 | if test x$support_xft = xyes || test x$support_image = xyes; then |
7575 | rxvt_have_xrender=no |
7462 | rxvt_have_xrender=no |
7576 | |
7463 | |
7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 |
7464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 |
7578 | $as_echo_n "checking for xrender... " >&6; } |
7465 | printf %s "checking for xrender... " >&6; } |
7579 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7466 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7580 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
7467 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
7581 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
7468 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
7582 | |
7469 | |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7584 | $as_echo "ok" >&6; } |
7471 | printf "%s\n" "ok" >&6; } |
7585 | |
7472 | |
7586 | X_LIBS="$XRENDER_LIBS $X_LIBS" |
7473 | X_LIBS="$XRENDER_LIBS $X_LIBS" |
7587 | CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" |
7474 | CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" |
7588 | rxvt_have_xrender=yes |
7475 | rxvt_have_xrender=yes |
7589 | |
7476 | |
7590 | save_LIBS="$LIBS" |
7477 | save_LIBS="$LIBS" |
7591 | LIBS="$LIBS $X_LIBS" |
7478 | LIBS="$LIBS $X_LIBS" |
7592 | 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" |
7593 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : |
7480 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes |
|
|
7481 | then : |
7594 | |
7482 | |
7595 | else |
7483 | else $as_nop |
7596 | rxvt_have_xrender=no |
7484 | rxvt_have_xrender=no |
7597 | fi |
7485 | fi |
7598 | |
7486 | |
7599 | |
|
|
7600 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7487 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7601 | if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then : |
7488 | if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes |
|
|
7489 | then : |
7602 | |
7490 | |
7603 | else |
7491 | else $as_nop |
7604 | rxvt_have_xrender=no |
7492 | rxvt_have_xrender=no |
7605 | fi |
7493 | fi |
7606 | |
7494 | |
7607 | LIBS="$save_LIBS" |
7495 | LIBS="$save_LIBS" |
7608 | |
7496 | |
7609 | else |
7497 | else |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7611 | $as_echo "no" >&6; } |
7499 | printf "%s\n" "no" >&6; } |
7612 | : |
7500 | : |
7613 | fi |
7501 | fi |
7614 | |
7502 | |
7615 | fi |
7503 | fi |
7616 | |
7504 | |
7617 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7505 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7618 | |
7506 | |
7619 | { $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 |
7620 | $as_echo_n "checking for fontconfig xft... " >&6; } |
7508 | printf %s "checking for fontconfig xft... " >&6; } |
7621 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
7509 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
7622 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
7510 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
7623 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
7511 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
7624 | |
7512 | |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7513 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7626 | $as_echo "ok" >&6; } |
7514 | printf "%s\n" "ok" >&6; } |
7627 | |
7515 | |
7628 | X_LIBS="$XFT_LIBS $X_LIBS" |
7516 | X_LIBS="$XFT_LIBS $X_LIBS" |
7629 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
7517 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
7630 | |
7518 | |
7631 | else |
7519 | else |
7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7633 | $as_echo "no" >&6; } |
7521 | printf "%s\n" "no" >&6; } |
7634 | |
7522 | |
7635 | # 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. |
7636 | set dummy xft-config; ac_word=$2 |
7524 | set dummy xft-config; ac_word=$2 |
7637 | { $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 |
7638 | $as_echo_n "checking for $ac_word... " >&6; } |
7526 | printf %s "checking for $ac_word... " >&6; } |
7639 | if ${ac_cv_path_XFT_CONFIG+:} false; then : |
7527 | if test ${ac_cv_path_XFT_CONFIG+y} |
7640 | $as_echo_n "(cached) " >&6 |
7528 | then : |
7641 | else |
7529 | printf %s "(cached) " >&6 |
|
|
7530 | else $as_nop |
7642 | case $XFT_CONFIG in |
7531 | case $XFT_CONFIG in |
7643 | [\\/]* | ?:[\\/]*) |
7532 | [\\/]* | ?:[\\/]*) |
7644 | 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. |
7645 | ;; |
7534 | ;; |
7646 | *) |
7535 | *) |
7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7648 | for as_dir in $PATH |
7537 | for as_dir in $PATH |
7649 | do |
7538 | do |
7650 | IFS=$as_save_IFS |
7539 | IFS=$as_save_IFS |
7651 | test -z "$as_dir" && as_dir=. |
7540 | case $as_dir in #((( |
|
|
7541 | '') as_dir=./ ;; |
|
|
7542 | */) ;; |
|
|
7543 | *) as_dir=$as_dir/ ;; |
|
|
7544 | esac |
7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
7545 | for ac_exec_ext in '' $ac_executable_extensions; do |
7653 | 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 |
7654 | 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" |
7655 | $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 |
7656 | break 2 |
7549 | break 2 |
7657 | fi |
7550 | fi |
7658 | done |
7551 | done |
7659 | done |
7552 | done |
7660 | IFS=$as_save_IFS |
7553 | IFS=$as_save_IFS |
… | |
… | |
7663 | ;; |
7556 | ;; |
7664 | esac |
7557 | esac |
7665 | fi |
7558 | fi |
7666 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
7559 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
7667 | if test -n "$XFT_CONFIG"; then |
7560 | if test -n "$XFT_CONFIG"; then |
7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7669 | $as_echo "$XFT_CONFIG" >&6; } |
7562 | printf "%s\n" "$XFT_CONFIG" >&6; } |
7670 | else |
7563 | else |
7671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7672 | $as_echo "no" >&6; } |
7565 | printf "%s\n" "no" >&6; } |
7673 | fi |
7566 | fi |
7674 | |
7567 | |
7675 | |
7568 | |
7676 | if test $XFT_CONFIG != no; then |
7569 | if test $XFT_CONFIG != no; then |
7677 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
7570 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
… | |
… | |
7681 | fi |
7574 | fi |
7682 | |
7575 | |
7683 | |
7576 | |
7684 | save_LIBS="$LIBS" |
7577 | save_LIBS="$LIBS" |
7685 | LIBS="$LIBS $X_LIBS" |
7578 | LIBS="$LIBS $X_LIBS" |
7686 | for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
7579 | for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
7687 | do : |
7580 | do : |
7688 | 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` |
7689 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
7582 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
7690 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7583 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
|
|
7584 | then : |
7691 | cat >>confdefs.h <<_ACEOF |
7585 | cat >>confdefs.h <<_ACEOF |
7692 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7586 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
7693 | _ACEOF |
7587 | _ACEOF |
7694 | |
7588 | |
7695 | else |
7589 | else $as_nop |
7696 | support_xft=no |
7590 | support_xft=no |
7697 | fi |
7591 | fi |
7698 | |
7592 | |
7699 | done |
7593 | done |
7700 | |
7594 | |
7701 | for ac_func in XftDrawString32 FcPatternGet |
7595 | for ac_func in XftDrawString32 FcPatternGet |
7702 | do : |
7596 | do : |
7703 | 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` |
7704 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7598 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7705 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7599 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
|
|
7600 | then : |
7706 | cat >>confdefs.h <<_ACEOF |
7601 | cat >>confdefs.h <<_ACEOF |
7707 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7602 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
7708 | _ACEOF |
7603 | _ACEOF |
7709 | |
7604 | |
7710 | else |
7605 | else $as_nop |
7711 | support_xft=no |
7606 | support_xft=no |
7712 | fi |
7607 | fi |
|
|
7608 | |
7713 | done |
7609 | done |
7714 | |
|
|
7715 | LIBS="$save_LIBS" |
7610 | LIBS="$save_LIBS" |
7716 | |
7611 | |
7717 | if test x$support_xft = xyes; then |
7612 | if test x$support_xft = xyes; then |
7718 | |
7613 | |
7719 | $as_echo "#define XFT 1" >>confdefs.h |
7614 | printf "%s\n" "#define XFT 1" >>confdefs.h |
7720 | |
7615 | |
7721 | fi |
7616 | fi |
7722 | fi |
7617 | fi |
7723 | |
7618 | |
7724 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
7619 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
7725 | { $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 |
7726 | $as_echo_n "checking for Render >= 0.11... " >&6; } |
7621 | printf %s "checking for Render >= 0.11... " >&6; } |
7727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7728 | /* end confdefs.h. */ |
7623 | /* end confdefs.h. */ |
7729 | |
7624 | |
7730 | #include <X11/extensions/Xrender.h> |
7625 | #include <X11/extensions/Xrender.h> |
7731 | #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
7626 | #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
7732 | error |
7627 | error |
7733 | #endif |
7628 | #endif |
7734 | |
7629 | |
7735 | int |
7630 | int |
7736 | main () |
7631 | main (void) |
7737 | { |
7632 | { |
7738 | |
7633 | |
7739 | ; |
7634 | ; |
7740 | return 0; |
7635 | return 0; |
7741 | } |
7636 | } |
7742 | _ACEOF |
7637 | _ACEOF |
7743 | if ac_fn_cxx_try_compile "$LINENO"; then : |
7638 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7639 | then : |
7744 | |
7640 | |
7745 | else |
7641 | else $as_nop |
7746 | support_image=no |
7642 | support_image=no |
7747 | fi |
7643 | fi |
7748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7644 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7749 | if test x$support_image = xyes; then |
7645 | if test x$support_image = xyes; then |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7751 | $as_echo "ok" >&6; } |
7647 | printf "%s\n" "ok" >&6; } |
7752 | LIBS="$LIBS -lm" |
7648 | LIBS="$LIBS -lm" |
7753 | |
7649 | |
7754 | $as_echo "#define XRENDER 1" >>confdefs.h |
7650 | printf "%s\n" "#define XRENDER 1" >>confdefs.h |
7755 | |
7651 | |
7756 | |
7652 | |
7757 | if test x$support_inheritpixmap = xyes; then |
7653 | if test x$support_inheritpixmap = xyes; then |
7758 | |
7654 | |
7759 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
7655 | printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
7760 | |
7656 | |
7761 | fi |
7657 | fi |
7762 | else |
7658 | else |
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7764 | $as_echo "no" >&6; } |
7660 | printf "%s\n" "no" >&6; } |
7765 | fi |
7661 | fi |
7766 | fi |
7662 | fi |
7767 | |
7663 | |
7768 | if test x$support_styles = xyes; then |
7664 | if test x$support_styles = xyes; then |
7769 | |
7665 | |
7770 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7666 | printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h |
7771 | |
7667 | |
7772 | fi |
7668 | fi |
7773 | if test x$support_iso14755 = xyes; then |
7669 | if test x$support_iso14755 = xyes; then |
7774 | |
7670 | |
7775 | $as_echo "#define ISO_14755 1" >>confdefs.h |
7671 | printf "%s\n" "#define ISO_14755 1" >>confdefs.h |
7776 | |
7672 | |
7777 | fi |
7673 | fi |
7778 | if test x$support_8bitctrls = xyes; then |
7674 | if test x$support_8bitctrls = xyes; then |
7779 | |
7675 | |
7780 | $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h |
7676 | printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h |
7781 | |
7677 | |
7782 | fi |
7678 | fi |
7783 | if test x$support_fading = xyes; then |
7679 | if test x$support_fading = xyes; then |
7784 | |
7680 | |
7785 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7681 | printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7786 | |
7682 | |
7787 | fi |
7683 | fi |
7788 | if test x$support_keepscrolling = xno; then |
7684 | if test x$support_keepscrolling = xno; then |
7789 | |
7685 | |
7790 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7686 | printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7791 | |
7687 | |
7792 | fi |
7688 | fi |
7793 | if test x$support_selectionscrolling = xyes; then |
7689 | if test x$support_selectionscrolling = xyes; then |
7794 | |
7690 | |
7795 | $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h |
7691 | printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h |
7796 | |
7692 | |
7797 | fi |
7693 | fi |
7798 | if test x$support_frills = xyes; then |
7694 | if test x$support_frills = xyes; then |
7799 | |
7695 | |
7800 | $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h |
7696 | printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h |
7801 | |
7697 | |
7802 | fi |
7698 | fi |
7803 | if test x$support_mousewheel = xyes; then |
7699 | if test x$support_mousewheel = xyes; then |
7804 | |
7700 | |
7805 | $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h |
7701 | printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h |
7806 | |
7702 | |
7807 | fi |
7703 | fi |
7808 | if test x$support_mouseslipwheel = xyes; then |
7704 | if test x$support_mouseslipwheel = xyes; then |
7809 | |
7705 | |
7810 | $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h |
7706 | printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h |
7811 | |
7707 | |
7812 | fi |
7708 | fi |
7813 | |
7709 | |
7814 | scrolltypes=plain |
7710 | scrolltypes=plain |
7815 | |
7711 | |
7816 | $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h |
7712 | printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h |
7817 | |
7713 | |
7818 | |
7714 | |
7819 | if test x$support_scroll_rxvt = xyes; then |
7715 | if test x$support_scroll_rxvt = xyes; then |
7820 | |
7716 | |
7821 | $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h |
7717 | printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h |
7822 | |
7718 | |
7823 | scrolltypes="$scrolltypes rxvt" |
7719 | scrolltypes="$scrolltypes rxvt" |
7824 | fi |
7720 | fi |
7825 | if test x$support_scroll_next = xyes; then |
7721 | if test x$support_scroll_next = xyes; then |
7826 | |
7722 | |
7827 | $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h |
7723 | printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h |
7828 | |
7724 | |
7829 | scrolltypes="$scrolltypes next" |
7725 | scrolltypes="$scrolltypes next" |
7830 | fi |
7726 | fi |
7831 | if test x$support_scroll_xterm = xyes; then |
7727 | if test x$support_scroll_xterm = xyes; then |
7832 | |
7728 | |
7833 | $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h |
7729 | printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h |
7834 | |
7730 | |
7835 | scrolltypes="$scrolltypes xterm" |
7731 | scrolltypes="$scrolltypes xterm" |
7836 | fi |
7732 | fi |
7837 | if test x$support_pointer_blank = xyes; then |
7733 | if test x$support_pointer_blank = xyes; then |
7838 | |
7734 | |
7839 | $as_echo "#define POINTER_BLANK 1" >>confdefs.h |
7735 | printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h |
7840 | |
7736 | |
7841 | fi |
7737 | fi |
7842 | if test x$support_text_blink = xyes; then |
7738 | if test x$support_text_blink = xyes; then |
7843 | |
7739 | |
7844 | $as_echo "#define TEXT_BLINK 1" >>confdefs.h |
7740 | printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h |
7845 | |
7741 | |
7846 | fi |
7742 | fi |
7847 | if test x$support_unicode3 = xyes; then |
7743 | if test x$support_unicode3 = xyes; then |
7848 | |
7744 | |
7849 | $as_echo "#define UNICODE_3 1" >>confdefs.h |
7745 | printf "%s\n" "#define UNICODE_3 1" >>confdefs.h |
7850 | |
7746 | |
7851 | fi |
7747 | fi |
7852 | if test x$support_combining = xyes; then |
7748 | if test x$support_combining = xyes; then |
7853 | |
7749 | |
7854 | $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h |
7750 | printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h |
7855 | |
7751 | |
7856 | fi |
7752 | fi |
7857 | if test x$codesets = xall; then |
7753 | if test x$codesets = xall; then |
7858 | codesets=jp,jp-ext,kr,zh,zh-ext |
7754 | codesets=jp,jp-ext,kr,zh,zh-ext |
7859 | fi |
7755 | fi |
7860 | |
7756 | |
7861 | $as_echo "#define ENCODING_EU 1" >>confdefs.h |
7757 | printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h |
7862 | |
7758 | |
7863 | |
7759 | |
7864 | $as_echo "#define ENCODING_VN 1" >>confdefs.h |
7760 | printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h |
7865 | |
7761 | |
7866 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
7762 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
7867 | case "$codeset" in |
7763 | case "$codeset" in |
7868 | JP ) |
7764 | JP ) |
7869 | $as_echo "#define ENCODING_JP 1" >>confdefs.h |
7765 | printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h |
7870 | ;; |
7766 | ;; |
7871 | JP_EXT ) |
7767 | JP_EXT ) |
7872 | $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h |
7768 | printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h |
7873 | ;; |
7769 | ;; |
7874 | KR ) |
7770 | KR ) |
7875 | $as_echo "#define ENCODING_KR 1" >>confdefs.h |
7771 | printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h |
7876 | ;; |
7772 | ;; |
7877 | ZH ) |
7773 | ZH ) |
7878 | $as_echo "#define ENCODING_ZH 1" >>confdefs.h |
7774 | printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h |
7879 | ;; |
7775 | ;; |
7880 | ZH_EXT ) |
7776 | ZH_EXT ) |
7881 | $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h |
7777 | printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h |
7882 | ;; |
7778 | ;; |
7883 | esac |
7779 | esac |
7884 | done |
7780 | done |
7885 | |
7781 | |
7886 | IF_PERL=\# |
7782 | IF_PERL=\# |
7887 | if test x$support_perl = xyes; then |
7783 | if test x$support_perl = xyes; then |
7888 | # 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. |
7889 | set dummy perl5; ac_word=$2 |
7785 | set dummy perl5; ac_word=$2 |
7890 | { $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 |
7891 | $as_echo_n "checking for $ac_word... " >&6; } |
7787 | printf %s "checking for $ac_word... " >&6; } |
7892 | if ${ac_cv_path_PERL+:} false; then : |
7788 | if test ${ac_cv_path_PERL+y} |
7893 | $as_echo_n "(cached) " >&6 |
7789 | then : |
7894 | else |
7790 | printf %s "(cached) " >&6 |
|
|
7791 | else $as_nop |
7895 | case $PERL in |
7792 | case $PERL in |
7896 | [\\/]* | ?:[\\/]*) |
7793 | [\\/]* | ?:[\\/]*) |
7897 | 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. |
7898 | ;; |
7795 | ;; |
7899 | *) |
7796 | *) |
7900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7901 | for as_dir in $PATH |
7798 | for as_dir in $PATH |
7902 | do |
7799 | do |
7903 | IFS=$as_save_IFS |
7800 | IFS=$as_save_IFS |
7904 | test -z "$as_dir" && as_dir=. |
7801 | case $as_dir in #((( |
|
|
7802 | '') as_dir=./ ;; |
|
|
7803 | */) ;; |
|
|
7804 | *) as_dir=$as_dir/ ;; |
|
|
7805 | esac |
7905 | for ac_exec_ext in '' $ac_executable_extensions; do |
7806 | for ac_exec_ext in '' $ac_executable_extensions; do |
7906 | 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 |
7907 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
7808 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" |
7908 | $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 |
7909 | break 2 |
7810 | break 2 |
7910 | fi |
7811 | fi |
7911 | done |
7812 | done |
7912 | done |
7813 | done |
7913 | IFS=$as_save_IFS |
7814 | IFS=$as_save_IFS |
… | |
… | |
7916 | ;; |
7817 | ;; |
7917 | esac |
7818 | esac |
7918 | fi |
7819 | fi |
7919 | PERL=$ac_cv_path_PERL |
7820 | PERL=$ac_cv_path_PERL |
7920 | if test -n "$PERL"; then |
7821 | if test -n "$PERL"; then |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
7822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
7922 | $as_echo "$PERL" >&6; } |
7823 | printf "%s\n" "$PERL" >&6; } |
7923 | else |
7824 | else |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7925 | $as_echo "no" >&6; } |
7826 | printf "%s\n" "no" >&6; } |
7926 | fi |
7827 | fi |
7927 | |
7828 | |
7928 | |
7829 | |
7929 | |
7830 | |
7930 | { $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 |
7931 | $as_echo_n "checking for $PERL suitability... " >&6; } |
7832 | printf %s "checking for $PERL suitability... " >&6; } |
7932 | 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 |
7933 | |
7834 | |
7934 | save_CXXFLAGS="$CXXFLAGS" |
7835 | save_CXXFLAGS="$CXXFLAGS" |
7935 | save_LIBS="$LIBS" |
7836 | save_LIBS="$LIBS" |
7936 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
7837 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
… | |
… | |
7941 | #include <EXTERN.h> |
7842 | #include <EXTERN.h> |
7942 | #include <perl.h> |
7843 | #include <perl.h> |
7943 | #include <XSUB.h> |
7844 | #include <XSUB.h> |
7944 | |
7845 | |
7945 | int |
7846 | int |
7946 | main () |
7847 | main (void) |
7947 | { |
7848 | { |
7948 | |
7849 | |
7949 | PerlInterpreter *perl = perl_alloc (); |
7850 | PerlInterpreter *perl = perl_alloc (); |
7950 | |
7851 | |
7951 | ; |
7852 | ; |
7952 | return 0; |
7853 | return 0; |
7953 | } |
7854 | } |
7954 | _ACEOF |
7855 | _ACEOF |
7955 | if ac_fn_cxx_try_link "$LINENO"; then : |
7856 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7857 | then : |
7956 | rxvt_perl_link=yes |
7858 | rxvt_perl_link=yes |
7957 | else |
7859 | else $as_nop |
7958 | rxvt_perl_link=no |
7860 | rxvt_perl_link=no |
7959 | fi |
7861 | fi |
7960 | rm -f core conftest.err conftest.$ac_objext \ |
7862 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7961 | conftest$ac_exeext conftest.$ac_ext |
7863 | conftest$ac_exeext conftest.$ac_ext |
7962 | CXXFLAGS="$save_CXXFLAGS" |
7864 | CXXFLAGS="$save_CXXFLAGS" |
7963 | LIBS="$save_LIBS" |
7865 | LIBS="$save_LIBS" |
7964 | |
7866 | |
7965 | if test x$rxvt_perl_link = xyes; then |
7867 | if test x$rxvt_perl_link = xyes; then |
7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7967 | $as_echo "ok" >&6; } |
7869 | printf "%s\n" "ok" >&6; } |
7968 | |
7870 | |
7969 | $as_echo "#define ENABLE_PERL 1" >>confdefs.h |
7871 | printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h |
7970 | |
7872 | |
7971 | IF_PERL= |
7873 | IF_PERL= |
7972 | PERL_O=rxvtperl.o |
7874 | PERL_O=rxvtperl.o |
7973 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
7875 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
7974 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
7876 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
… | |
… | |
8015 | 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 |
8016 | eval ac_val=\$$ac_var |
7918 | eval ac_val=\$$ac_var |
8017 | case $ac_val in #( |
7919 | case $ac_val in #( |
8018 | *${as_nl}*) |
7920 | *${as_nl}*) |
8019 | case $ac_var in #( |
7921 | case $ac_var in #( |
8020 | *_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 |
8021 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7923 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
8022 | esac |
7924 | esac |
8023 | case $ac_var in #( |
7925 | case $ac_var in #( |
8024 | _ | IFS | as_nl) ;; #( |
7926 | _ | IFS | as_nl) ;; #( |
8025 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7927 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
8026 | *) { eval $ac_var=; unset $ac_var;} ;; |
7928 | *) { eval $ac_var=; unset $ac_var;} ;; |
… | |
… | |
8046 | ) | |
7948 | ) | |
8047 | sed ' |
7949 | sed ' |
8048 | /^ac_cv_env_/b end |
7950 | /^ac_cv_env_/b end |
8049 | t clear |
7951 | t clear |
8050 | :clear |
7952 | :clear |
8051 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7953 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
8052 | t end |
7954 | t end |
8053 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7955 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8054 | :end' >>confcache |
7956 | :end' >>confcache |
8055 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7957 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
8056 | if test -w "$cache_file"; then |
7958 | if test -w "$cache_file"; then |
8057 | if test "x$cache_file" != "x/dev/null"; then |
7959 | if test "x$cache_file" != "x/dev/null"; then |
8058 | { $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 |
8059 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
7961 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
8060 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7962 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
8061 | cat confcache >"$cache_file" |
7963 | cat confcache >"$cache_file" |
8062 | else |
7964 | else |
8063 | case $cache_file in #( |
7965 | case $cache_file in #( |
8064 | */* | ?:*) |
7966 | */* | ?:*) |
… | |
… | |
8068 | mv -f confcache "$cache_file" ;; |
7970 | mv -f confcache "$cache_file" ;; |
8069 | esac |
7971 | esac |
8070 | fi |
7972 | fi |
8071 | fi |
7973 | fi |
8072 | else |
7974 | else |
8073 | { $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 |
8074 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
7976 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
8075 | fi |
7977 | fi |
8076 | fi |
7978 | fi |
8077 | rm -f confcache |
7979 | rm -f confcache |
8078 | |
7980 | |
8079 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7981 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
8086 | ac_ltlibobjs= |
7988 | ac_ltlibobjs= |
8087 | U= |
7989 | U= |
8088 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7990 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8089 | # 1. Remove the extension, and $U if already installed. |
7991 | # 1. Remove the extension, and $U if already installed. |
8090 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7992 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8091 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7993 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
8092 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7994 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8093 | # will be set to the directory where LIBOBJS objects are built. |
7995 | # will be set to the directory where LIBOBJS objects are built. |
8094 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7996 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8095 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
7997 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
8096 | done |
7998 | done |
… | |
… | |
8102 | |
8004 | |
8103 | : "${CONFIG_STATUS=./config.status}" |
8005 | : "${CONFIG_STATUS=./config.status}" |
8104 | ac_write_fail=0 |
8006 | ac_write_fail=0 |
8105 | ac_clean_files_save=$ac_clean_files |
8007 | ac_clean_files_save=$ac_clean_files |
8106 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8008 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8108 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
8010 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
8109 | as_write_fail=0 |
8011 | as_write_fail=0 |
8110 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
8012 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
8111 | #! $SHELL |
8013 | #! $SHELL |
8112 | # Generated by $as_me. |
8014 | # Generated by $as_me. |
8113 | # Run this file to recreate the current configuration. |
8015 | # Run this file to recreate the current configuration. |
… | |
… | |
8126 | ## M4sh Initialization. ## |
8028 | ## M4sh Initialization. ## |
8127 | ## -------------------- ## |
8029 | ## -------------------- ## |
8128 | |
8030 | |
8129 | # Be more Bourne compatible |
8031 | # Be more Bourne compatible |
8130 | DUALCASE=1; export DUALCASE # for MKS sh |
8032 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
8033 | as_nop=: |
8131 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8034 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
8035 | then : |
8132 | emulate sh |
8036 | emulate sh |
8133 | NULLCMD=: |
8037 | NULLCMD=: |
8134 | # 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 |
8135 | # is contrary to our usage. Disable this feature. |
8039 | # is contrary to our usage. Disable this feature. |
8136 | alias -g '${1+"$@"}'='"$@"' |
8040 | alias -g '${1+"$@"}'='"$@"' |
8137 | setopt NO_GLOB_SUBST |
8041 | setopt NO_GLOB_SUBST |
8138 | else |
8042 | else $as_nop |
8139 | case `(set -o) 2>/dev/null` in #( |
8043 | case `(set -o) 2>/dev/null` in #( |
8140 | *posix*) : |
8044 | *posix*) : |
8141 | set -o posix ;; #( |
8045 | set -o posix ;; #( |
8142 | *) : |
8046 | *) : |
8143 | ;; |
8047 | ;; |
8144 | esac |
8048 | esac |
8145 | fi |
8049 | fi |
8146 | |
8050 | |
8147 | |
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. |
8148 | as_nl=' |
8060 | as_nl=' |
8149 | ' |
8061 | ' |
8150 | export as_nl |
8062 | export as_nl |
8151 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
8063 | IFS=" "" $as_nl" |
8152 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
8064 | |
8153 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
8065 | PS1='$ ' |
8154 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
8066 | PS2='> ' |
8155 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
8067 | PS4='+ ' |
8156 | # but without wasting forks for bash or zsh. |
8068 | |
8157 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
8069 | # Ensure predictable behavior from utilities with locale-dependent output. |
8158 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
8070 | LC_ALL=C |
8159 | as_echo='print -r --' |
8071 | export LC_ALL |
8160 | as_echo_n='print -rn --' |
8072 | LANGUAGE=C |
8161 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
8073 | export LANGUAGE |
8162 | as_echo='printf %s\n' |
8074 | |
8163 | as_echo_n='printf %s' |
8075 | # We cannot yet rely on "unset" to work, but we need these variables |
8164 | else |
8076 | # to be unset--not just set to an empty or harmless value--now, to |
8165 | 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 |
8166 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
8078 | # also avoids known problems related to "unset" and subshell syntax |
8167 | as_echo_n='/usr/ucb/echo -n' |
8079 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
8168 | else |
8080 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
8169 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8081 | do eval test \${$as_var+y} \ |
8170 | as_echo_n_body='eval |
8082 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
8171 | arg=$1; |
8083 | done |
8172 | case $arg in #( |
8084 | |
8173 | *"$as_nl"*) |
8085 | # Ensure that fds 0, 1, and 2 are open. |
8174 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
8086 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
8175 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
8087 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
8176 | esac; |
8088 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
8177 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
|
8178 | ' |
|
|
8179 | export as_echo_n_body |
|
|
8180 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|
|
8181 | fi |
|
|
8182 | export as_echo_body |
|
|
8183 | as_echo='sh -c $as_echo_body as_echo' |
|
|
8184 | fi |
|
|
8185 | |
8089 | |
8186 | # The user is always right. |
8090 | # The user is always right. |
8187 | if test "${PATH_SEPARATOR+set}" != set; then |
8091 | if ${PATH_SEPARATOR+false} :; then |
8188 | PATH_SEPARATOR=: |
8092 | PATH_SEPARATOR=: |
8189 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
8093 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
8190 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
8094 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
8191 | PATH_SEPARATOR=';' |
8095 | PATH_SEPARATOR=';' |
8192 | } |
8096 | } |
8193 | fi |
8097 | fi |
8194 | |
8098 | |
8195 | |
|
|
8196 | # IFS |
|
|
8197 | # We need space, tab and new line, in precisely that order. Quoting is |
|
|
8198 | # there to prevent editors from complaining about space-tab. |
|
|
8199 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
8200 | # splitting by setting IFS to empty value.) |
|
|
8201 | IFS=" "" $as_nl" |
|
|
8202 | |
8099 | |
8203 | # 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. |
8204 | as_myself= |
8101 | as_myself= |
8205 | case $0 in #(( |
8102 | case $0 in #(( |
8206 | *[\\/]* ) as_myself=$0 ;; |
8103 | *[\\/]* ) as_myself=$0 ;; |
8207 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8104 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8208 | for as_dir in $PATH |
8105 | for as_dir in $PATH |
8209 | do |
8106 | do |
8210 | IFS=$as_save_IFS |
8107 | IFS=$as_save_IFS |
8211 | test -z "$as_dir" && as_dir=. |
8108 | case $as_dir in #((( |
|
|
8109 | '') as_dir=./ ;; |
|
|
8110 | */) ;; |
|
|
8111 | *) as_dir=$as_dir/ ;; |
|
|
8112 | esac |
8212 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
8113 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
8213 | done |
8114 | done |
8214 | IFS=$as_save_IFS |
8115 | IFS=$as_save_IFS |
8215 | |
8116 | |
8216 | ;; |
8117 | ;; |
8217 | esac |
8118 | esac |
… | |
… | |
8219 | # 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. |
8220 | if test "x$as_myself" = x; then |
8121 | if test "x$as_myself" = x; then |
8221 | as_myself=$0 |
8122 | as_myself=$0 |
8222 | fi |
8123 | fi |
8223 | if test ! -f "$as_myself"; then |
8124 | if test ! -f "$as_myself"; then |
8224 | $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 |
8225 | exit 1 |
8126 | exit 1 |
8226 | fi |
8127 | fi |
8227 | |
8128 | |
8228 | # Unset variables that we do not need and which cause bugs (e.g. in |
|
|
8229 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
|
8230 | # suppresses any "Segmentation fault" message there. '((' could |
|
|
8231 | # trigger a bug in pdksh 5.2.14. |
|
|
8232 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
8233 | do eval test x\${$as_var+set} = xset \ |
|
|
8234 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
8235 | done |
|
|
8236 | PS1='$ ' |
|
|
8237 | PS2='> ' |
|
|
8238 | PS4='+ ' |
|
|
8239 | |
|
|
8240 | # NLS nuisances. |
|
|
8241 | LC_ALL=C |
|
|
8242 | export LC_ALL |
|
|
8243 | LANGUAGE=C |
|
|
8244 | export LANGUAGE |
|
|
8245 | |
|
|
8246 | # CDPATH. |
|
|
8247 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
8248 | |
8129 | |
8249 | |
8130 | |
8250 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8131 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8251 | # ---------------------------------------- |
8132 | # ---------------------------------------- |
8252 | # 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 |
… | |
… | |
8255 | as_fn_error () |
8136 | as_fn_error () |
8256 | { |
8137 | { |
8257 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8138 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8258 | if test "$4"; then |
8139 | if test "$4"; then |
8259 | 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 |
8260 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
8141 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
8261 | fi |
8142 | fi |
8262 | $as_echo "$as_me: error: $2" >&2 |
8143 | printf "%s\n" "$as_me: error: $2" >&2 |
8263 | as_fn_exit $as_status |
8144 | as_fn_exit $as_status |
8264 | } # as_fn_error |
8145 | } # as_fn_error |
|
|
8146 | |
8265 | |
8147 | |
8266 | |
8148 | |
8267 | # as_fn_set_status STATUS |
8149 | # as_fn_set_status STATUS |
8268 | # ----------------------- |
8150 | # ----------------------- |
8269 | # Set $? to STATUS, without forking. |
8151 | # Set $? to STATUS, without forking. |
… | |
… | |
8288 | as_fn_unset () |
8170 | as_fn_unset () |
8289 | { |
8171 | { |
8290 | { eval $1=; unset $1;} |
8172 | { eval $1=; unset $1;} |
8291 | } |
8173 | } |
8292 | as_unset=as_fn_unset |
8174 | as_unset=as_fn_unset |
|
|
8175 | |
8293 | # as_fn_append VAR VALUE |
8176 | # as_fn_append VAR VALUE |
8294 | # ---------------------- |
8177 | # ---------------------- |
8295 | # 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 |
8296 | # advantage of any shell optimizations that allow amortized linear growth over |
8179 | # advantage of any shell optimizations that allow amortized linear growth over |
8297 | # repeated appends, instead of the typical quadratic growth present in naive |
8180 | # repeated appends, instead of the typical quadratic growth present in naive |
8298 | # implementations. |
8181 | # implementations. |
8299 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
8182 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
8183 | then : |
8300 | eval 'as_fn_append () |
8184 | eval 'as_fn_append () |
8301 | { |
8185 | { |
8302 | eval $1+=\$2 |
8186 | eval $1+=\$2 |
8303 | }' |
8187 | }' |
8304 | else |
8188 | else $as_nop |
8305 | as_fn_append () |
8189 | as_fn_append () |
8306 | { |
8190 | { |
8307 | eval $1=\$$1\$2 |
8191 | eval $1=\$$1\$2 |
8308 | } |
8192 | } |
8309 | fi # as_fn_append |
8193 | fi # as_fn_append |
… | |
… | |
8311 | # as_fn_arith ARG... |
8195 | # as_fn_arith ARG... |
8312 | # ------------------ |
8196 | # ------------------ |
8313 | # 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 |
8314 | # 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 |
8315 | # must be portable across $(()) and expr. |
8199 | # must be portable across $(()) and expr. |
8316 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
8200 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
8201 | then : |
8317 | eval 'as_fn_arith () |
8202 | eval 'as_fn_arith () |
8318 | { |
8203 | { |
8319 | as_val=$(( $* )) |
8204 | as_val=$(( $* )) |
8320 | }' |
8205 | }' |
8321 | else |
8206 | else $as_nop |
8322 | as_fn_arith () |
8207 | as_fn_arith () |
8323 | { |
8208 | { |
8324 | as_val=`expr "$@" || test $? -eq 1` |
8209 | as_val=`expr "$@" || test $? -eq 1` |
8325 | } |
8210 | } |
8326 | fi # as_fn_arith |
8211 | fi # as_fn_arith |
… | |
… | |
8347 | |
8232 | |
8348 | as_me=`$as_basename -- "$0" || |
8233 | as_me=`$as_basename -- "$0" || |
8349 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8234 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8350 | X"$0" : 'X\(//\)$' \| \ |
8235 | X"$0" : 'X\(//\)$' \| \ |
8351 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8236 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8352 | $as_echo X/"$0" | |
8237 | printf "%s\n" X/"$0" | |
8353 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8238 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8354 | s//\1/ |
8239 | s//\1/ |
8355 | q |
8240 | q |
8356 | } |
8241 | } |
8357 | /^X\/\(\/\/\)$/{ |
8242 | /^X\/\(\/\/\)$/{ |
… | |
… | |
8369 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
8254 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
8370 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
8255 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
8371 | as_cr_digits='0123456789' |
8256 | as_cr_digits='0123456789' |
8372 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
8257 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
8373 | |
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. |
8374 | ECHO_C= ECHO_N= ECHO_T= |
8263 | ECHO_C= ECHO_N= ECHO_T= |
8375 | case `echo -n x` in #((((( |
8264 | case `echo -n x` in #((((( |
8376 | -n*) |
8265 | -n*) |
8377 | case `echo 'xy\c'` in |
8266 | case `echo 'xy\c'` in |
8378 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
8267 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
… | |
… | |
8381 | ECHO_T=' ';; |
8270 | ECHO_T=' ';; |
8382 | esac;; |
8271 | esac;; |
8383 | *) |
8272 | *) |
8384 | ECHO_N='-n';; |
8273 | ECHO_N='-n';; |
8385 | esac |
8274 | esac |
|
|
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. |
|
|
8279 | as_echo='printf %s\n' |
|
|
8280 | as_echo_n='printf %s' |
8386 | |
8281 | |
8387 | rm -f conf$$ conf$$.exe conf$$.file |
8282 | rm -f conf$$ conf$$.exe conf$$.file |
8388 | if test -d conf$$.dir; then |
8283 | if test -d conf$$.dir; then |
8389 | rm -f conf$$.dir/conf$$.file |
8284 | rm -f conf$$.dir/conf$$.file |
8390 | else |
8285 | else |
… | |
… | |
8423 | esac |
8318 | esac |
8424 | test -d "$as_dir" || eval $as_mkdir_p || { |
8319 | test -d "$as_dir" || eval $as_mkdir_p || { |
8425 | as_dirs= |
8320 | as_dirs= |
8426 | while :; do |
8321 | while :; do |
8427 | case $as_dir in #( |
8322 | case $as_dir in #( |
8428 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
8323 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
8429 | *) as_qdir=$as_dir;; |
8324 | *) as_qdir=$as_dir;; |
8430 | esac |
8325 | esac |
8431 | as_dirs="'$as_qdir' $as_dirs" |
8326 | as_dirs="'$as_qdir' $as_dirs" |
8432 | as_dir=`$as_dirname -- "$as_dir" || |
8327 | as_dir=`$as_dirname -- "$as_dir" || |
8433 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8434 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8329 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8435 | X"$as_dir" : 'X\(//\)$' \| \ |
8330 | X"$as_dir" : 'X\(//\)$' \| \ |
8436 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
8331 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
8437 | $as_echo X"$as_dir" | |
8332 | printf "%s\n" X"$as_dir" | |
8438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8439 | s//\1/ |
8334 | s//\1/ |
8440 | q |
8335 | q |
8441 | } |
8336 | } |
8442 | /^X\(\/\/\)[^/].*/{ |
8337 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
8495 | # 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 |
8496 | # report actual input values of CONFIG_FILES etc. instead of their |
8391 | # report actual input values of CONFIG_FILES etc. instead of their |
8497 | # values after options handling. |
8392 | # values after options handling. |
8498 | ac_log=" |
8393 | ac_log=" |
8499 | This file was extended by $as_me, which was |
8394 | This file was extended by $as_me, which was |
8500 | generated by GNU Autoconf 2.69. Invocation command line was |
8395 | generated by GNU Autoconf 2.71. Invocation command line was |
8501 | |
8396 | |
8502 | CONFIG_FILES = $CONFIG_FILES |
8397 | CONFIG_FILES = $CONFIG_FILES |
8503 | CONFIG_HEADERS = $CONFIG_HEADERS |
8398 | CONFIG_HEADERS = $CONFIG_HEADERS |
8504 | CONFIG_LINKS = $CONFIG_LINKS |
8399 | CONFIG_LINKS = $CONFIG_LINKS |
8505 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
8400 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
… | |
… | |
8553 | $config_headers |
8448 | $config_headers |
8554 | |
8449 | |
8555 | Report bugs to the package provider." |
8450 | Report bugs to the package provider." |
8556 | |
8451 | |
8557 | _ACEOF |
8452 | _ACEOF |
|
|
8453 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
8454 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
8558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8559 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8456 | ac_cs_config='$ac_cs_config_escaped' |
8560 | ac_cs_version="\\ |
8457 | ac_cs_version="\\ |
8561 | config.status |
8458 | config.status |
8562 | configured by $0, generated by GNU Autoconf 2.69, |
8459 | configured by $0, generated by GNU Autoconf 2.71, |
8563 | with options \\"\$ac_cs_config\\" |
8460 | with options \\"\$ac_cs_config\\" |
8564 | |
8461 | |
8565 | Copyright (C) 2012 Free Software Foundation, Inc. |
8462 | Copyright (C) 2021 Free Software Foundation, Inc. |
8566 | This config.status script is free software; the Free Software Foundation |
8463 | This config.status script is free software; the Free Software Foundation |
8567 | gives unlimited permission to copy, distribute and modify it." |
8464 | gives unlimited permission to copy, distribute and modify it." |
8568 | |
8465 | |
8569 | ac_pwd='$ac_pwd' |
8466 | ac_pwd='$ac_pwd' |
8570 | srcdir='$srcdir' |
8467 | srcdir='$srcdir' |
… | |
… | |
8598 | case $ac_option in |
8495 | case $ac_option in |
8599 | # Handling of the options. |
8496 | # Handling of the options. |
8600 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8497 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8601 | ac_cs_recheck=: ;; |
8498 | ac_cs_recheck=: ;; |
8602 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8499 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8603 | $as_echo "$ac_cs_version"; exit ;; |
8500 | printf "%s\n" "$ac_cs_version"; exit ;; |
8604 | --config | --confi | --conf | --con | --co | --c ) |
8501 | --config | --confi | --conf | --con | --co | --c ) |
8605 | $as_echo "$ac_cs_config"; exit ;; |
8502 | printf "%s\n" "$ac_cs_config"; exit ;; |
8606 | --debug | --debu | --deb | --de | --d | -d ) |
8503 | --debug | --debu | --deb | --de | --d | -d ) |
8607 | debug=: ;; |
8504 | debug=: ;; |
8608 | --file | --fil | --fi | --f ) |
8505 | --file | --fil | --fi | --f ) |
8609 | $ac_shift |
8506 | $ac_shift |
8610 | case $ac_optarg in |
8507 | case $ac_optarg in |
8611 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8508 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8612 | '') as_fn_error $? "missing file argument" ;; |
8509 | '') as_fn_error $? "missing file argument" ;; |
8613 | esac |
8510 | esac |
8614 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8511 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8615 | ac_need_defaults=false;; |
8512 | ac_need_defaults=false;; |
8616 | --header | --heade | --head | --hea ) |
8513 | --header | --heade | --head | --hea ) |
8617 | $ac_shift |
8514 | $ac_shift |
8618 | case $ac_optarg in |
8515 | case $ac_optarg in |
8619 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8516 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8620 | esac |
8517 | esac |
8621 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8518 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8622 | ac_need_defaults=false;; |
8519 | ac_need_defaults=false;; |
8623 | --he | --h) |
8520 | --he | --h) |
8624 | # Conflict between --help and --header |
8521 | # Conflict between --help and --header |
8625 | as_fn_error $? "ambiguous option: \`$1' |
8522 | as_fn_error $? "ambiguous option: \`$1' |
8626 | Try \`$0 --help' for more information.";; |
8523 | Try \`$0 --help' for more information.";; |
8627 | --help | --hel | -h ) |
8524 | --help | --hel | -h ) |
8628 | $as_echo "$ac_cs_usage"; exit ;; |
8525 | printf "%s\n" "$ac_cs_usage"; exit ;; |
8629 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8630 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
8527 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
8631 | ac_cs_silent=: ;; |
8528 | ac_cs_silent=: ;; |
8632 | |
8529 | |
8633 | # This is an error. |
8530 | # This is an error. |
… | |
… | |
8651 | _ACEOF |
8548 | _ACEOF |
8652 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8549 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8653 | if \$ac_cs_recheck; then |
8550 | if \$ac_cs_recheck; then |
8654 | 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 |
8655 | shift |
8552 | shift |
8656 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
8553 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
8657 | CONFIG_SHELL='$SHELL' |
8554 | CONFIG_SHELL='$SHELL' |
8658 | export CONFIG_SHELL |
8555 | export CONFIG_SHELL |
8659 | exec "\$@" |
8556 | exec "\$@" |
8660 | fi |
8557 | fi |
8661 | |
8558 | |
… | |
… | |
8665 | { |
8562 | { |
8666 | echo |
8563 | echo |
8667 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
8564 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
8668 | ## Running $as_me. ## |
8565 | ## Running $as_me. ## |
8669 | _ASBOX |
8566 | _ASBOX |
8670 | $as_echo "$ac_log" |
8567 | printf "%s\n" "$ac_log" |
8671 | } >&5 |
8568 | } >&5 |
8672 | |
8569 | |
8673 | _ACEOF |
8570 | _ACEOF |
8674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8571 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8675 | _ACEOF |
8572 | _ACEOF |
… | |
… | |
8693 | # 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, |
8694 | # 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. |
8695 | # 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 |
8696 | # bizarre bug on SunOS 4.1.3. |
8593 | # bizarre bug on SunOS 4.1.3. |
8697 | if $ac_need_defaults; then |
8594 | if $ac_need_defaults; then |
8698 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
8595 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
8699 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
8596 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
8700 | fi |
8597 | fi |
8701 | |
8598 | |
8702 | # 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 |
8703 | # 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, |
8704 | # creating and moving files from /tmp can sometimes cause problems. |
8601 | # creating and moving files from /tmp can sometimes cause problems. |
… | |
… | |
9030 | [\\/$]*) false;; |
8927 | [\\/$]*) false;; |
9031 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
8928 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
9032 | esac || |
8929 | esac || |
9033 | 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;; |
9034 | esac |
8931 | esac |
9035 | 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 |
9036 | as_fn_append ac_file_inputs " '$ac_f'" |
8933 | as_fn_append ac_file_inputs " '$ac_f'" |
9037 | done |
8934 | done |
9038 | |
8935 | |
9039 | # 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 |
9040 | # use $as_me), people would be surprised to read: |
8937 | # use $as_me), people would be surprised to read: |
9041 | # /* config.h. Generated by config.status. */ |
8938 | # /* config.h. Generated by config.status. */ |
9042 | configure_input='Generated from '` |
8939 | configure_input='Generated from '` |
9043 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
8940 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
9044 | `' by configure.' |
8941 | `' by configure.' |
9045 | if test x"$ac_file" != x-; then |
8942 | if test x"$ac_file" != x-; then |
9046 | configure_input="$ac_file. $configure_input" |
8943 | configure_input="$ac_file. $configure_input" |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9048 | $as_echo "$as_me: creating $ac_file" >&6;} |
8945 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
9049 | fi |
8946 | fi |
9050 | # Neutralize special characters interpreted by sed in replacement strings. |
8947 | # Neutralize special characters interpreted by sed in replacement strings. |
9051 | case $configure_input in #( |
8948 | case $configure_input in #( |
9052 | *\&* | *\|* | *\\* ) |
8949 | *\&* | *\|* | *\\* ) |
9053 | ac_sed_conf_input=`$as_echo "$configure_input" | |
8950 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
9054 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
8951 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9055 | *) ac_sed_conf_input=$configure_input;; |
8952 | *) ac_sed_conf_input=$configure_input;; |
9056 | esac |
8953 | esac |
9057 | |
8954 | |
9058 | case $ac_tag in |
8955 | case $ac_tag in |
… | |
… | |
9065 | ac_dir=`$as_dirname -- "$ac_file" || |
8962 | ac_dir=`$as_dirname -- "$ac_file" || |
9066 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8963 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9067 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8964 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
9068 | X"$ac_file" : 'X\(//\)$' \| \ |
8965 | X"$ac_file" : 'X\(//\)$' \| \ |
9069 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8966 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9070 | $as_echo X"$ac_file" | |
8967 | printf "%s\n" X"$ac_file" | |
9071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8968 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9072 | s//\1/ |
8969 | s//\1/ |
9073 | q |
8970 | q |
9074 | } |
8971 | } |
9075 | /^X\(\/\/\)[^/].*/{ |
8972 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
9089 | ac_builddir=. |
8986 | ac_builddir=. |
9090 | |
8987 | |
9091 | case "$ac_dir" in |
8988 | case "$ac_dir" in |
9092 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
8989 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9093 | *) |
8990 | *) |
9094 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
8991 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
9095 | # A ".." for each directory in $ac_dir_suffix. |
8992 | # A ".." for each directory in $ac_dir_suffix. |
9096 | 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|/||'` |
9097 | case $ac_top_builddir_sub in |
8994 | case $ac_top_builddir_sub in |
9098 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
8995 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9099 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
8996 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9100 | esac ;; |
8997 | esac ;; |
9101 | esac |
8998 | esac |
… | |
… | |
9148 | /@localedir@/p |
9045 | /@localedir@/p |
9149 | /@mandir@/p' |
9046 | /@mandir@/p' |
9150 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
9047 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
9151 | *datarootdir*) ac_datarootdir_seen=yes;; |
9048 | *datarootdir*) ac_datarootdir_seen=yes;; |
9152 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9049 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9153 | { $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 |
9154 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9051 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9155 | _ACEOF |
9052 | _ACEOF |
9156 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9157 | ac_datarootdir_hack=' |
9054 | ac_datarootdir_hack=' |
9158 | s&@datadir@&$datadir&g |
9055 | s&@datadir@&$datadir&g |
9159 | s&@docdir@&$docdir&g |
9056 | s&@docdir@&$docdir&g |
… | |
… | |
9192 | |
9089 | |
9193 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9090 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9194 | { 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"; } && |
9195 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
9092 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
9196 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
9093 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
9197 | { $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' |
9198 | which seems to be undefined. Please make sure it is defined" >&5 |
9095 | which seems to be undefined. Please make sure it is defined" >&5 |
9199 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9096 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9200 | which seems to be undefined. Please make sure it is defined" >&2;} |
9097 | which seems to be undefined. Please make sure it is defined" >&2;} |
9201 | |
9098 | |
9202 | rm -f "$ac_tmp/stdin" |
9099 | rm -f "$ac_tmp/stdin" |
9203 | case $ac_file in |
9100 | case $ac_file in |
9204 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9101 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
… | |
… | |
9210 | # |
9107 | # |
9211 | # CONFIG_HEADER |
9108 | # CONFIG_HEADER |
9212 | # |
9109 | # |
9213 | if test x"$ac_file" != x-; then |
9110 | if test x"$ac_file" != x-; then |
9214 | { |
9111 | { |
9215 | $as_echo "/* $configure_input */" \ |
9112 | printf "%s\n" "/* $configure_input */" >&1 \ |
9216 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9113 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9217 | } >"$ac_tmp/config.h" \ |
9114 | } >"$ac_tmp/config.h" \ |
9218 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9115 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9219 | 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 |
9220 | { $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 |
9221 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
9118 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
9222 | else |
9119 | else |
9223 | rm -f "$ac_file" |
9120 | rm -f "$ac_file" |
9224 | mv "$ac_tmp/config.h" "$ac_file" \ |
9121 | mv "$ac_tmp/config.h" "$ac_file" \ |
9225 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9122 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9226 | fi |
9123 | fi |
9227 | else |
9124 | else |
9228 | $as_echo "/* $configure_input */" \ |
9125 | printf "%s\n" "/* $configure_input */" >&1 \ |
9229 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9126 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9230 | || as_fn_error $? "could not create -" "$LINENO" 5 |
9127 | || as_fn_error $? "could not create -" "$LINENO" 5 |
9231 | fi |
9128 | fi |
9232 | ;; |
9129 | ;; |
9233 | |
9130 | |
… | |
… | |
9264 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
9161 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
9265 | # would make configure fail if this is the last instruction. |
9162 | # would make configure fail if this is the last instruction. |
9266 | $ac_cs_success || as_fn_exit 1 |
9163 | $ac_cs_success || as_fn_exit 1 |
9267 | fi |
9164 | fi |
9268 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
9165 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
9269 | { $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 |
9270 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
9167 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
9271 | fi |
9168 | fi |
9272 | |
9169 | |
9273 | |
9170 | |
9274 | echo "Configuration: |
9171 | echo "Configuration: |
9275 | |
9172 | |
… | |
… | |
9304 | fi |
9201 | fi |
9305 | |
9202 | |
9306 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
9203 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
9307 | echo |
9204 | echo |
9308 | |
9205 | |
|
|
9206 | |