Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ObjFW 1.5.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if testscip-shell system . . test. ${ZSH_VERSION+y} && (emulate sh) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then :; else exec 0</dev/nullscip-shell filesystem . . `/dev/null`.; fi
74 if (exec 3>&1) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then :; else exec 1>/dev/nullscip-shell filesystem . . `/dev/null`.; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/nullscip-shell filesystem . . `/dev/null`.; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/binscip-shell filesystem . . `/bin;/bin`.'; FPATH=$PATH; shscip-shell system . . sh. -c :) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && {
81 (PATH='/bin:/binscip-shell filesystem . . `/bin:/bin`.'; FPATH=$PATH; shscip-shell system . . sh. -c :) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 testscip-shell system . . test. -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if testscip-shell system . . test. "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if testscip-shell system . . test. ! -f "$as_myself"; then
112 printfscip-shell system . . printf. "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if testscip-shell system . . test. x"${_as_can_reexec}" != xno && testscip-shell system . . test. "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/nullscip-shell filesystem . . `/dev/null`.
126 ENV=/dev/nullscip-shell filesystem . . `/dev/null`.
127 (unset BASH_ENV) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printfscip-shell system . . printf. "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if testscip-shell system . . test. "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if testscip-shell system . . test. x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { testscip-shell system . . test. -f "$as_shell" || testscip-shell system . . test. -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/nullscip-shell filesystem . . `/dev/null`.
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/nullscip-shell filesystem . . `/dev/null`.
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { testscip-shell system . . test. -f "$SHELL" || testscip-shell system . . test. -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/nullscip-shell filesystem . . `/dev/null`.
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if testscip-shell system . . test. "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/nullscip-shell filesystem . . `/dev/null`.
250 ENV=/dev/nullscip-shell filesystem . . `/dev/null`.
251 (unset BASH_ENV) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printfscip-shell system . . printf. "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if testscip-shell system . . test. x$as_have_required = xno
266 then :
267 printfscip-shell system . . printf. "%s\n" "$0: This script requires a shell more modern than all"
268 printfscip-shell system . . printf. "%s\n" "$0: the shells that I found on your system."
269 if testscip-shell system . . test. ${ZSH_VERSION+y} ; then
270 printfscip-shell system . . printf. "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printfscip-shell system . . printf. "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printfscip-shell system . . printf. "%s\n" "$0: Please tell [email protected] and [email protected] about
274 $0: your system, including any error possibly output before
275 $0: this message. Then install a modern shell, or manually
276 $0: run the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unsetscip-shell shell shell-project 0.0.0 as_fn_unset(). ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). ()
314 {
315 set +e
316 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_pscip-shell shell shell-project 0.0.0 as_fn_mkdir_p(). ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 testscip-shell system . . test. -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printfscip-shell system . . printf. "%s\n" "$as_dir" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. ||
342 printfscip-shell system . . printf. "%s\n" X"$as_dir" |
343 sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 testscip-shell system . . test. -d "$as_dir" && break
361 done
362 testscip-shell system . . test. -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || testscip-shell system . . test. -d "$as_dir" || as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). ()
372 {
373 testscip-shell system . . test. -f "$1" && testscip-shell system . . test. -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). ()
408 {
409 as_val=`exprscip-shell system . . expr. "$@" || testscip-shell system . . test. $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). ()
421 {
422 as_status=$1; testscip-shell system . . test. $as_status -eq 0 && as_status=1
423 if testscip-shell system . . test. "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printfscip-shell system . . printf. "%s\n" "$as_me: error: $2" >&2
428 as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). $as_status
429 } # as_fn_error
430
431 if exprscip-shell system . . expr. a : '\(a\)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 &&
432 testscip-shell system . . test. "X`exprscip-shell system . . expr. 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basenamescip-shell system . . basename. -- /scip-shell filesystem . . `/`.) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && testscip-shell system . . test. "X`basenamescip-shell system . . basename. -- /scip-shell filesystem . . `/`. 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirnamescip-shell system . . dirname. -- /scip-shell filesystem . . `/`.` && testscip-shell system . . test. "X$as_dir" = X/) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. ||
454 printfscip-shell system . . printf. "%s\n" X/"$0" |
455 sedscip-shell system . . sed. '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sedscip-shell system . . sed. -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sedscip-shell system . . sed. '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmodscip-shell system . . chmod. +x "$as_me.lineno" ||
500 { printfscip-shell system . . printf. "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echoscip-shell system . . echo. -n x` in #(((((
520 -n*)
521 case `echoscip-shell system . . echo. 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echoscip-shell system . . echo. `echoscip-shell system . . echo. ksh88 bug on AIX 6.1` > /dev/nullscip-shell filesystem . . `/dev/null`.
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file
538 if testscip-shell system . . test. -d conf$$.dir; then
539 rmscip-shell system . . rm. -f conf$$.dir/conf$$.file
540 else
541 rmscip-shell system . . rm. -f conf$$.dir
542 mkdirscip-shell system . . mkdir. conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`.
543 fi
544 if (echoscip-shell system . . echo. >conf$$.file) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
545 if lnscip-shell system . . ln. -s conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 lnscip-shell system . . ln. -s conf$$.file conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`. && testscip-shell system . . test. ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif lnscip-shell system . . ln. conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdirscip-shell system . . rmdir. conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`.
563
564 if mkdirscip-shell system . . mkdir. -p . 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 testscip-shell system . . test. -d ./-p && rmdirscip-shell system . . rmdir. ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 testscip-shell system . . test. -n "$DJDIR" || exec 7<&0 </dev/nullscip-shell filesystem . . `/dev/null`.
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/localscip-shell filesystem . . `/usr/local`.
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='ObjFW'
605 PACKAGE_TARNAME='objfw'
606 PACKAGE_VERSION='1.5.7'
607 PACKAGE_STRING='ObjFW 1.5.7'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL='https://objfw.nil.im/'
610
611 ac_unique_file="src"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_objc_list=
644 ac_subst_vars='MAKEFLAGS_SILENT
645 SILENT
646 DEP_OBJCXXFLAGS
647 DEP_OBJCFLAGS
648 DEP_CXXFLAGS
649 DEP_CFLAGS
650 LTLIBOBJS
651 LIBOBJS
652 TESTS_LIBS
653 HID_STATIC_LIBS
654 HID_FRAMEWORK_LIBS
655 HID_LIBS
656 OBJFW_LIBS
657 OBJFW_LDFLAGS
658 OBJFW_OBJCFLAGS
659 OBJFW_CPPFLAGS
660 DEP_ASFLAGS
661 ASFLAGS
662 AS
663 CPP
664 wiiload
665 WRAPPER
666 WINE
667 BIN_PREFIX
668 USE_SRCS_GCF
669 USE_SRCS_XINPUT
670 OFGCTESTER
671 USE_SRCS_EVDEV
672 OF_BLOCK_TESTS_M
673 OBJFWBRIDGE_FRAMEWORK
674 OBJFWBRIDGE_STATIC_LIB
675 OBJFWBRIDGE_SHARED_LIB
676 BRIDGE
677 SUBPROCESS
678 USE_SRCS_SUBPROCESSES
679 OFHTTP_LIBS
680 OFHTTP
681 OFDNS
682 OF_HTTP_CLIENT_TESTS_M
683 OBJFWTLS_FRAMEWORK
684 OBJFWTLS_STATIC_LIB
685 OBJFWTLS_SHARED_LIB
686 TLS_STATIC_LIBS
687 TLS_FRAMEWORK_LIBS
688 TLS_LIBS
689 TLS_CPPFLAGS
690 TLS
691 USE_SRCS_MBEDTLS
692 USE_SRCS_GNUTLS
693 gnutls_LIBS
694 gnutls_CFLAGS
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 USE_SRCS_OPENSSL
699 OF_SELECT_KERNEL_EVENT_OBSERVER_M
700 OF_POLL_KERNEL_EVENT_OBSERVER_M
701 OF_EPOLL_KERNEL_EVENT_OBSERVER_M
702 OF_KQUEUE_KERNEL_EVENT_OBSERVER_M
703 USE_SRCS_APPLETALK
704 USE_SRCS_IPX
705 USE_SRCS_UNIX_SOCKETS
706 USE_SRCS_SCTP
707 USE_SRCS_SOCKETS
708 OFHASH
709 OFARC
710 OBJFW_NEW
711 USE_SRCS_FILES
712 USE_INCLUDES_ATOMIC
713 OBJC_SYNC
714 USE_SRCS_THREADS
715 ENCODINGS_A
716 ENCODINGS_LIB_A
717 ENCODINGS_SRCS
718 UNICODE_M
719 RUNTIME_ARC_TESTS_M
720 TESTS_STATIC_LIB
721 REEXPORT_RUNTIME_FRAMEWORK
722 REEXPORT_RUNTIME
723 LDFLAGS_REEXPORT
724 RUNTIME_ARC_M
725 RUNTIME_ASSOCIATION_M
726 RUNTIME_INSTANCE_M
727 AUTORELEASE_FOUNDATION_M
728 RUNTIME_STATIC_LIBS
729 LIBOBJFWRT_DEP_LVL2
730 LIBOBJFWRT_DEP
731 RUNTIME_LIBS
732 RUNTIME_FRAMEWORK_LIBS
733 OBJFWRT_FRAMEWORK
734 LOOKUP_ASM_A
735 OBJFWRT_STATIC_LIB
736 OBJFWRT_SHARED_LIB
737 RUNTIME
738 USE_SRCS_TAGGED_POINTERS
739 LINKLIB
740 TESTPLUGIN_LIBS
741 TESTPLUGIN
742 USE_SRCS_MODULES
743 LOOKUP_ASM_AMIGALIB_A
744 OBJFWHID_STATIC_LIB
745 FORWARDING_A
746 EXCEPTIONS_A
747 OBJFW_STATIC_LIB
748 LIBOBJFWHID_DEP_LVL2
749 LIBOBJFWHID_DEP
750 LIBOBJFW_DEP_LVL2
751 LIBOBJFW_DEP
752 TESTPLUGIN_PLUGIN
753 TESTPLUGIN_BUNDLE
754 LINK_BUNDLE
755 OBJFWHID_FRAMEWORK
756 OBJFW_FRAMEWORK
757 FRAMEWORK_LIBS
758 FRAMEWORK_LDFLAGS_INSTALL_NAME
759 FRAMEWORK_LDFLAGS
760 OBJFWHID_SHARED_LIB
761 LOOKUP_ASM_LIB_A
762 FORWARDING_LIB_A
763 EXCEPTIONS_LIB_A
764 OBJFW_SHARED_LIB
765 PIE_LDFLAGS
766 PIE_CFLAGS
767 PLUGIN_SUFFIX
768 PLUGIN_LDFLAGS
769 PLUGIN_CFLAGS
770 CLEAN_LIB
771 UNINSTALL_LIB
772 INSTALL_LIB
773 LDFLAGS_RPATH
774 LINK_LIB
775 LIB_SUFFIX
776 LIB_PREFIX
777 LIB_LDFLAGS_INSTALL_NAME
778 LIB_LDFLAGS
779 LIB_CFLAGS
780 RELRO_LDFLAGS
781 STACK_PROTECTOR_LDFLAGS
782 STACK_PROTECTOR_CFLAGS
783 RC
784 RANLIB
785 AR
786 USE_SRCS_NINTENDO_SWITCH
787 USE_SRCS_NINTENDO_3DS
788 USE_SRCS_NINTENDO_DS
789 WII_U_TESTS_LIBS
790 USE_SRCS_WII
791 CODESIGN
792 HOST_IS_IOS
793 LN_S
794 SED
795 EGREP
796 GREP
797 OBJCPP
798 OBJEXT
799 EXEEXT
800 ac_ct_OBJC
801 CPPFLAGS
802 LDFLAGS
803 OBJCFLAGS
804 OBJC
805 MAP_LDFLAGS
806 USE_SRCS_WINDOWS
807 AMIGA_LIB_LDFLAGS
808 AMIGA_LIB_CFLAGS
809 OBJFWRT_AMIGA_LIB
810 LIBBASES_M
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 BUILD_AND_HOST_ARE_DARWIN
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 BUNDLE_SHORT_VERSION
824 BUNDLE_VERSION
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 runstatedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_rpath
868 enable_silent_rules
869 with_wii
870 with_wii_u
871 with_nds
872 with_3ds
873 with_nintendo_switch
874 enable_amiga_lib
875 enable_shared
876 enable_static
877 enable_runtime
878 enable_seluid24
879 enable_unicode_tables
880 enable_codepage_437
881 enable_codepage_850
882 enable_codepage_852
883 enable_codepage_858
884 enable_iso_8859_2
885 enable_iso_8859_3
886 enable_iso_8859_15
887 enable_koi8_r
888 enable_koi8_u
889 enable_mac_roman
890 enable_windows_1250
891 enable_windows_1251
892 enable_windows_1252
893 enable_threads
894 enable_compiler_tls
895 enable_files
896 enable_sockets
897 with_tls
898 enable_werror
899 '
900 ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 OBJC
904 OBJCFLAGS
905 LDFLAGS
906 LIBS
907 CPPFLAGS
908 OBJCPP
909 PKG_CONFIG
910 PKG_CONFIG_PATH
911 PKG_CONFIG_LIBDIR
912 gnutls_CFLAGS
913 gnutls_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/nullscip-shell filesystem . . `/dev/null`.
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 runstatedir='${localstatedir}/run'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/includescip-shell filesystem . . `/usr/include`.'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969 # If the previous option needs an argument, assign it.
970 if testscip-shell system . . test. -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
972 ac_prev=
973 continue
974 fi
975
976 case $ac_option in
977 *=?*) ac_optarg=`exprscip-shell system . . expr. "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 *=) ac_optarg= ;;
979 *) ac_optarg=yes ;;
980 esac
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
1022 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid feature name: '$ac_useropt'"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
1048 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid feature name: '$ac_useropt'"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -runstatedir | --runstatedir | --runstatedi | --runstated \
1204 | --runstate | --runstat | --runsta | --runst | --runs \
1205 | --run | --ru | --r)
1206 ac_prev=runstatedir ;;
1207 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1208 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1209 | --run=* | --ru=* | --r=*)
1210 runstatedir=$ac_optarg ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1256
1257 -with-* | --with-*)
1258 ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
1261 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid package name: '$ac_useropt'"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=\$ac_optarg ;;
1272
1273 -without-* | --without-*)
1274 ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
1277 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid package name: '$ac_useropt'"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
1288
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1292
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1299
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1306
1307 -*) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unrecognized option: '$ac_option'
1308 Try '$0 --help' for more information"
1309 ;;
1310
1311 *=*)
1312 ac_envvar=`exprscip-shell system . . expr. "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid variable name: '$ac_envvar'" ;;
1317 esac
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1320
1321 *)
1322 # FIXME: should be removed in autoconf 3.0.
1323 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 exprscip-shell system . . expr. "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
1325 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327 ;;
1328
1329 esac
1330 done
1331
1332 if testscip-shell system . . test. -n "$ac_prev"; then
1333 ac_option=--`echoscip-shell system . . echo. $ac_prev | sedscip-shell system . . sed. 's/_/-/g'`
1334 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "missing argument to $ac_option"
1335 fi
1336
1337 if testscip-shell system . . test. -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1339 no) ;;
1340 fatal) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 esac
1343 fi
1344
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir runstatedir
1350 do
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1353 case $ac_val in
1354 */ )
1355 ac_val=`exprscip-shell system . . expr. "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1357 esac
1358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
1363 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1365
1366 # There might be people who depend on the old broken behavior: '$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1372
1373 # FIXME: To remove some day.
1374 if testscip-shell system . . test. "x$host_alias" != x; then
1375 if testscip-shell system . . test. "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 elif testscip-shell system . . test. "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380 fi
1381
1382 ac_tool_prefix=
1383 testscip-shell system . . test. -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 testscip-shell system . . test. "$silent" = yes && exec 6>/dev/nullscip-shell filesystem . . `/dev/null`.
1386
1387
1388 ac_pwd=`pwdscip-shell system . . pwd.` && testscip-shell system . . test. -n "$ac_pwd" &&
1389 ac_ls_di=`lsscip-shell system . . ls. -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && lsscip-shell system . . ls. -di .` ||
1391 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "working directory cannot be determined"
1392 testscip-shell system . . test. "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "pwd does not report name of working directory"
1394
1395
1396 # Find the source files, if location was not specified.
1397 if testscip-shell system . . test. -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. ||
1405 printfscip-shell system . . printf. "%s\n" X"$as_myself" |
1406 sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427 else
1428 ac_srcdir_defaulted=no
1429 fi
1430 if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then
1431 testscip-shell system . . test. "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 fi
1434 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436 cd "$srcdir" && testscip-shell system . . test. -r "./$ac_unique_file" || as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$ac_msg"
1437 pwdscip-shell system . . pwd.)`
1438 # When building in place, set srcdir=.
1439 if testscip-shell system . . test. "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`exprscip-shell system . . expr. "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if testscip-shell system . . test. "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 catscip-shell system . . cat. <<_ACEOF
1462 'configure' configures ObjFW 1.5.7 to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print 'checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for '--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or '..']
1481
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 [PREFIX]
1487
1488 By default, 'make install' will install all the files in
1489 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than '$ac_default_prefix' using '--prefix',
1491 for instance '--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/objfw]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1517
1518 catscip-shell system . . cat. <<\_ACEOF
1519
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1524 fi
1525
1526 if testscip-shell system . . test. -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echoscip-shell system . . echo. "Configuration of ObjFW 1.5.7:";;
1529 esac
1530 catscip-shell system . . cat. <<\_ACEOF
1531
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --disable-rpath do not use rpath
1537 --disable-silent-rules print executed commands during build
1538 --disable-amiga-lib do not build Amiga library
1539 --disable-shared do not build shared library
1540 --enable-static build static library
1541 --enable-runtime use the included runtime
1542 --enable-seluid24 use 24 bit instead of 16 bit for selector UIDs
1543 --disable-unicode-tables
1544 Disable Unicode tables
1545 --disable-codepage-437 Disables support for Codepage 437
1546 --disable-codepage-850 Disables support for Codepage 850
1547 --disable-codepage-852 Disables support for Codepage 852
1548 --disable-codepage-858 Disables support for Codepage 858
1549 --disable-iso-8859-2 Disables support for ISO 8859-2
1550 --disable-iso-8859-3 Disables support for ISO 8859-3
1551 --disable-iso-8859-15 Disables support for ISO 8859-15
1552 --disable-koi8-r Disables support for KOI8-R
1553 --disable-koi8-u Disables support for KOI8-U
1554 --disable-mac-roman Disables support for Mac Roman encoding
1555 --disable-windows-1250 Disables support for Windows-1250
1556 --disable-windows-1251 Disables support for Windows-1251
1557 --disable-windows-1252 Disables support for Windows-1252
1558 --disable-threads disable thread support
1559 --disable-compiler-tls disable compiler thread local storage
1560 --disable-files disable file support
1561 --disable-sockets disable socket support
1562 --enable-werror build with -Werror
1563
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-wii build for Wii
1568 --with-wii-u build for Wii U
1569 --with-nds build for Nintendo DS
1570 --with-3ds build for Nintendo 3DS
1571 --with-nintendo-switch build for Nintendo Switch
1572 --with-tls enable TLS support using the specified library (yes,
1573 openssl, gnutls, mbedtls or no)
1574
1575 Some influential environment variables:
1576 OBJC Objective C compiler command
1577 OBJCFLAGS Objective C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 OBJCPP Objective C preprocessor
1584 PKG_CONFIG path to pkg-config utility
1585 PKG_CONFIG_PATH
1586 directories to add to pkg-config's search path
1587 PKG_CONFIG_LIBDIR
1588 path overriding pkg-config's built-in search path
1589 gnutls_CFLAGS
1590 C compiler flags for gnutls, overriding pkg-config
1591 gnutls_LIBS linker flags for gnutls, overriding pkg-config
1592
1593 Use these variables to override the choices made by 'configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <[email protected]>.
1597 ObjFW home page: <https://objfw.nil.im/>.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if testscip-shell system . . test. "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do testscip-shell system . . test. "x$ac_dir" = x: && continue
1605 testscip-shell system . . test. -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwdscip-shell system . . pwd.` && srcdir=. && testscip-shell system . . test. -d "$ac_dir"; } ||
1607 continue
1608 ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613 ac_dir_suffix=/`printfscip-shell system . . printf. "%s\n" "$ac_dir" | sedscip-shell system . . sed. 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`printfscip-shell system . . printf. "%s\n" "$ac_dir_suffix" | sedscip-shell system . . sed. 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627 .) # We are building in place.
1628 ac_srcdir=.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for configure.gnu first; this name is used for a wrapper for
1644 # Metaconfig's "Configure" on case-insensitive file systems.
1645 if testscip-shell system . . test. -f "$ac_srcdir/configure.gnu"; then
1646 echoscip-shell system . . echo. &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif testscip-shell system . . test. -f "$ac_srcdir/configure"; then
1649 echoscip-shell system . . echo. &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656 fi
1657
1658 testscip-shell system . . test. -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 catscip-shell system . . cat. <<\_ACEOF
1661 ObjFW configure 1.5.7
1662 generated by GNU Autoconf 2.72
1663
1664 Copyright (C) 2023 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668 exit
1669 fi
1670
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1674
1675 # ac_fn_objc_try_compile LINENO
1676 # -----------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rmscip-shell system . . rm. -f conftest.$ac_objext conftest.beam
1682 if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if testscip-shell system . . test. -s conftest.err; then
1692 grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1
1693 catscip-shell system . . cat. conftest.er1 >&5
1694 mvscip-shell system . . mv. -f conftest.er1 conftest.err
1695 fi
1696 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 testscip-shell system . . test. $ac_status = 0; } && {
1698 testscip-shell system . . test. -z "$ac_objc_werror_flag" ||
1699 testscip-shell system . . test. ! -s conftest.err
1700 } && testscip-shell system . . test. -s conftest.$ac_objext
1701 then :
1702 ac_retval=0
1703 else case e in #(
1704 e) printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
1705 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1 ;;
1708 esac
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval
1712
1713 } # ac_fn_objc_try_compile
1714
1715 # ac_fn_objc_try_cpp LINENO
1716 # -------------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_objc_try_cppscip-shell shell shell-project 0.0.0 ac_fn_objc_try_cpp(). ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if testscip-shell system . . test. -s conftest.err; then
1731 grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1
1732 catscip-shell system . . cat. conftest.er1 >&5
1733 mvscip-shell system . . mv. -f conftest.er1 conftest.err
1734 fi
1735 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 testscip-shell system . . test. $ac_status = 0; } > conftest.i && {
1737 testscip-shell system . . test. -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
1738 testscip-shell system . . test. ! -s conftest.err
1739 }
1740 then :
1741 ac_retval=0
1742 else case e in #(
1743 e) printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
1744 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1 ;;
1747 esac
1748 fi
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval
1751
1752 } # ac_fn_objc_try_cpp
1753
1754 # ac_fn_objc_try_link LINENO
1755 # --------------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rmscip-shell system . . rm. -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1761 if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>conftest.err
1769 ac_status=$?
1770 if testscip-shell system . . test. -s conftest.err; then
1771 grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1
1772 catscip-shell system . . cat. conftest.er1 >&5
1773 mvscip-shell system . . mv. -f conftest.er1 conftest.err
1774 fi
1775 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 testscip-shell system . . test. $ac_status = 0; } && {
1777 testscip-shell system . . test. -z "$ac_objc_werror_flag" ||
1778 testscip-shell system . . test. ! -s conftest.err
1779 } && testscip-shell system . . test. -s conftest$ac_exeext && {
1780 testscip-shell system . . test. "$cross_compiling" = yes ||
1781 testscip-shell system . . test. -x conftest$ac_exeext
1782 }
1783 then :
1784 ac_retval=0
1785 else case e in #(
1786 e) printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
1787 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1 ;;
1790 esac
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rmscip-shell system . . rm. -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval
1799
1800 } # ac_fn_objc_try_link
1801
1802 # ac_fn_objc_check_header_compile LINENO HEADER VAR INCLUDES
1803 # ----------------------------------------------------------
1804 # Tests whether HEADER exists and can be compiled using the include files in
1805 # INCLUDES, setting the cache variable VAR accordingly.
1806 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 printfscip-shell system . . printf. %s "checking for $2... " >&6; }
1811 if eval test \${$3+y}
1812 then :
1813 printfscip-shell system . . printf. %s "(cached) " >&6
1814 else case e in #(
1815 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
1821 then :
1822 eval "$3=yes"
1823 else case e in #(
1824 e) eval "$3=no" ;;
1825 esac
1826 fi
1827 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1828 esac
1829 fi
1830 eval ac_res=\$$3
1831 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_objc_check_header_compile
1836
1837 # ac_fn_objc_check_func LINENO FUNC VAR
1838 # -------------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printfscip-shell system . . printf. %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847 printfscip-shell system . . printf. %s "(cached) " >&6
1848 else case e in #(
1849 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (void); below. */
1857
1858 #include <limits.h>
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 (void);
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main (void)
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
1884 then :
1885 eval "$3=yes"
1886 else case e in #(
1887 e) eval "$3=no" ;;
1888 esac
1889 fi
1890 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
1891 conftest$ac_exeext conftest.$ac_ext ;;
1892 esac
1893 fi
1894 eval ac_res=\$$3
1895 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_objc_check_func
1900
1901 # ac_fn_objc_try_run LINENO
1902 # -------------------------
1903 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1904 # executables *can* be run.
1905 ac_fn_objc_try_runscip-shell shell shell-project 0.0.0 ac_fn_objc_try_run(). ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1916 ac_status=$?
1917 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 testscip-shell system . . test. $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1926 ac_status=$?
1927 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 testscip-shell system . . test. $ac_status = 0; }; }
1929 then :
1930 ac_retval=0
1931 else case e in #(
1932 e) printfscip-shell system . . printf. "%s\n" "$as_me: program exited with status $ac_status" >&5
1933 printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
1934 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_retval=$ac_status ;;
1937 esac
1938 fi
1939 rmscip-shell system . . rm. -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval
1942
1943 } # ac_fn_objc_try_run
1944
1945 # ac_fn_objc_compute_int LINENO EXPR VAR INCLUDES
1946 # -----------------------------------------------
1947 # Tries to find the compile-time value of EXPR in a program that includes
1948 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1949 # computed
1950 ac_fn_objc_compute_intscip-shell shell shell-project 0.0.0 ac_fn_objc_compute_int(). ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if testscip-shell system . . test. "$cross_compiling" = yes; then
1954 # Depending upon the size, compute the lo and hi bounds.
1955 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main (void)
1960 {
1961 static int test_array [1 - 2 * !(($2) >= 0)];
1962 test_array [0] = 0;
1963 return test_array [0];
1964
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
1970 then :
1971 ac_lo=0 ac_mid=0
1972 while :; do
1973 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main (void)
1978 {
1979 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
1988 then :
1989 ac_hi=$ac_mid; break
1990 else case e in #(
1991 e) as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_mid + 1 && ac_lo=$as_val
1992 if testscip-shell system . . test. $ac_lo -le $ac_mid; then
1993 ac_lo= ac_hi=
1994 break
1995 fi
1996 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1997 esac
1998 fi
1999 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2000 done
2001 else case e in #(
2002 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main (void)
2007 {
2008 static int test_array [1 - 2 * !(($2) < 0)];
2009 test_array [0] = 0;
2010 return test_array [0];
2011
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2017 then :
2018 ac_hi=-1 ac_mid=-1
2019 while :; do
2020 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main (void)
2025 {
2026 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2027 test_array [0] = 0;
2028 return test_array [0];
2029
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2035 then :
2036 ac_lo=$ac_mid; break
2037 else case e in #(
2038 e) as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_mid ')' - 1 && ac_hi=$as_val
2039 if testscip-shell system . . test. $ac_mid -le $ac_hi; then
2040 ac_lo= ac_hi=
2041 break
2042 fi
2043 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). 2 '*' $ac_mid && ac_mid=$as_val ;;
2044 esac
2045 fi
2046 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 done
2048 else case e in #(
2049 e) ac_lo= ac_hi= ;;
2050 esac
2051 fi
2052 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2053 esac
2054 fi
2055 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2056 # Binary search between lo and hi bounds.
2057 while testscip-shell system . . test. "x$ac_lo" != "x$ac_hi"; do
2058 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_hi - $ac_lo ')' /scip-shell filesystem . . `/`. 2 + $ac_lo && ac_mid=$as_val
2059 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main (void)
2064 {
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0;
2067 return test_array [0];
2068
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2074 then :
2075 ac_hi=$ac_mid
2076 else case e in #(
2077 e) as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2078 esac
2079 fi
2080 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2081 done
2082 case $ac_lo in #((
2083 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2084 '') ac_retval=1 ;;
2085 esac
2086 else
2087 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 static long int longval (void) { return $2; }
2091 static unsigned long int ulongval (void) { return $2; }
2092 #include <stdio.h>
2093 #include <stdlib.h>
2094 int
2095 main (void)
2096 {
2097
2098 FILE *f = fopen ("conftest.val", "w");
2099 if (! f)
2100 return 1;
2101 if (($2) < 0)
2102 {
2103 long int i = longval ();
2104 if (i != ($2))
2105 return 1;
2106 fprintf (f, "%ld", i);
2107 }
2108 else
2109 {
2110 unsigned long int i = ulongval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%lu", i);
2114 }
2115 /* Do not output a trailing newline, as this causes \r\n confusion
2116 on some platforms. */
2117 return ferror (f) || fclose (f) != 0;
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_objc_try_runscip-shell shell shell-project 0.0.0 ac_fn_objc_try_run(). "$LINENO"
2124 then :
2125 echoscip-shell system . . echo. >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 else case e in #(
2127 e) ac_retval=1 ;;
2128 esac
2129 fi
2130 rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rmscip-shell system . . rm. -f conftest.val
2133
2134 fi
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval
2137
2138 } # ac_fn_objc_compute_int
2139
2140 # ac_fn_objc_check_type LINENO TYPE VAR INCLUDES
2141 # ----------------------------------------------
2142 # Tests whether TYPE exists after having included INCLUDES, setting cache
2143 # variable VAR accordingly.
2144 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 printfscip-shell system . . printf. %s "checking for $2... " >&6; }
2149 if eval test \${$3+y}
2150 then :
2151 printfscip-shell system . . printf. %s "(cached) " >&6
2152 else case e in #(
2153 e) eval "$3=no"
2154 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main (void)
2159 {
2160 if (sizeof ($2))
2161 return 0;
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2167 then :
2168 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main (void)
2173 {
2174 if (sizeof (($2)))
2175 return 0;
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2181 then :
2182
2183 else case e in #(
2184 e) eval "$3=yes" ;;
2185 esac
2186 fi
2187 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2188 fi
2189 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2190 esac
2191 fi
2192 eval ac_res=\$$3
2193 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197 } # ac_fn_objc_check_type
2198
2199 # ac_fn_objc_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). ()
2204 {
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 printfscip-shell system . . printf. %s "checking for $2.$3... " >&6; }
2208 if eval test \${$4+y}
2209 then :
2210 printfscip-shell system . . printf. %s "(cached) " >&6
2211 else case e in #(
2212 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $5
2215 int
2216 main (void)
2217 {
2218 static $2 ac_aggr;
2219 if (ac_aggr.$3)
2220 return 0;
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2226 then :
2227 eval "$4=yes"
2228 else case e in #(
2229 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $5
2232 int
2233 main (void)
2234 {
2235 static $2 ac_aggr;
2236 if (sizeof ac_aggr.$3)
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
2243 then :
2244 eval "$4=yes"
2245 else case e in #(
2246 e) eval "$4=no" ;;
2247 esac
2248 fi
2249 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2250 esac
2251 fi
2252 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2253 esac
2254 fi
2255 eval ac_res=\$$4
2256 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259
2260 } # ac_fn_objc_check_member
2261 ac_configure_args_raw=
2262 for ac_arg
2263 do
2264 case $ac_arg in
2265 *\'*)
2266 ac_arg=`printfscip-shell system . . printf. "%s\n" "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;;
2267 esac
2268 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args_raw " '$ac_arg'"
2269 done
2270
2271 case $ac_configure_args_raw in
2272 *$as_nl*)
2273 ac_safe_unquote= ;;
2274 *)
2275 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2276 ac_unsafe_a="$ac_unsafe_z#~"
2277 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2278 ac_configure_args_raw=` printfscip-shell system . . printf. "%s\n" "$ac_configure_args_raw" | sedscip-shell system . . sed. "$ac_safe_unquote"`;;
2279 esac
2280
2281 catscip-shell system . . cat. >config.log <<_ACEOF
2282 This file contains any messages produced by compilers while
2283 running configure, to aid debugging if configure makes a mistake.
2284
2285 It was created by ObjFW $as_me 1.5.7, which was
2286 generated by GNU Autoconf 2.72. Invocation command line was
2287
2288 $ $0$ac_configure_args_raw
2289
2290 _ACEOF
2291 exec 5>>config.log
2292 {
2293 catscip-shell system . . cat. <<_ASUNAME
2294 ## --------- ##
2295 ## Platform. ##
2296 ## --------- ##
2297
2298 hostname = `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`
2299 uname -m = `(unamescip-shell system . . uname. -m) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2300 uname -r = `(unamescip-shell system . . uname. -r) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2301 uname -s = `(unamescip-shell system . . uname. -s) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2302 uname -v = `(unamescip-shell system . . uname. -v) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2303
2304 /usr/bin/uname -p = `(/usr/bin/unamescip-shell filesystem . . `/usr/bin/uname`. -p) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2305 /bin/uname -X = `(/bin/unamescip-shell filesystem . . `/bin/uname`. -X) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2306
2307 /bin/arch = `(/bin/archscip-shell filesystem . . `/bin/arch`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2308 /usr/bin/arch -k = `(/usr/bin/archscip-shell filesystem . . `/usr/bin/arch`. -k) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2309 /usr/convex/getsysinfo = `(/usr/convex/getsysinfoscip-shell filesystem . . `/usr/convex/getsysinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2310 /usr/bin/hostinfo = `(/usr/bin/hostinfoscip-shell filesystem . . `/usr/bin/hostinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2311 /bin/machine = `(/bin/machinescip-shell filesystem . . `/bin/machine`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2312 /usr/bin/oslevel = `(/usr/bin/oslevelscip-shell filesystem . . `/usr/bin/oslevel`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2313 /bin/universe = `(/bin/universescip-shell filesystem . . `/bin/universe`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
2314
2315 _ASUNAME
2316
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 case $as_dir in #(((
2322 '') as_dir=./ ;;
2323 */) ;;
2324 *) as_dir=$as_dir/ ;;
2325 esac
2326 printfscip-shell system . . printf. "%s\n" "PATH: $as_dir"
2327 done
2328 IFS=$as_save_IFS
2329
2330 } >&5
2331
2332 catscip-shell system . . cat. >&5 <<_ACEOF
2333
2334
2335 ## ----------- ##
2336 ## Core tests. ##
2337 ## ----------- ##
2338
2339 _ACEOF
2340
2341
2342 # Keep a trace of the command line.
2343 # Strip out --no-create and --no-recursion so they do not pile up.
2344 # Strip out --silent because we don't want to record it for future runs.
2345 # Also quote any args containing shell meta-characters.
2346 # Make two passes to allow for proper duplicate-argument suppression.
2347 ac_configure_args=
2348 ac_configure_args0=
2349 ac_configure_args1=
2350 ac_must_keep_next=false
2351 for ac_pass in 1 2
2352 do
2353 for ac_arg
2354 do
2355 case $ac_arg in
2356 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2358 | -silent | --silent | --silen | --sile | --sil)
2359 continue ;;
2360 *\'*)
2361 ac_arg=`printfscip-shell system . . printf. "%s\n" "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;;
2362 esac
2363 case $ac_pass in
2364 1) as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args0 " '$ac_arg'" ;;
2365 2)
2366 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args1 " '$ac_arg'"
2367 if testscip-shell system . . test. $ac_must_keep_next = true; then
2368 ac_must_keep_next=false # Got value, back to normal.
2369 else
2370 case $ac_arg in
2371 *=* | --config-cache | -C | -disable-* | --disable-* \
2372 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2373 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2374 | -with-* | --with-* | -without-* | --without-* | --x)
2375 case "$ac_configure_args0 " in
2376 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377 esac
2378 ;;
2379 -* ) ac_must_keep_next=true ;;
2380 esac
2381 fi
2382 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args " '$ac_arg'"
2383 ;;
2384 esac
2385 done
2386 done
2387 { ac_configure_args0=; unset ac_configure_args0;}
2388 { ac_configure_args1=; unset ac_configure_args1;}
2389
2390 # When interrupted or exit'd, cleanup temporary files, and complete
2391 # config.log. We remove comments because anyway the quotes in there
2392 # would cause problems or look ugly.
2393 # WARNING: Use '\'' to represent an apostrophe within the trap.
2394 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2395 trap 'exit_status=$?
2396 # Sanitize IFS.
2397 IFS=" "" $as_nl"
2398 # Save into config.log some information that might help in debugging.
2399 {
2400 echo
2401
2402 printf "%s\n" "## ---------------- ##
2403 ## Cache variables. ##
2404 ## ---------------- ##"
2405 echo
2406 # The following way of writing the cache mishandles newlines in values,
2407 (
2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409 eval ac_val=\$$ac_var
2410 case $ac_val in #(
2411 *${as_nl}*)
2412 case $ac_var in #(
2413 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415 esac
2416 case $ac_var in #(
2417 _ | IFS | as_nl) ;; #(
2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419 *) { eval $ac_var=; unset $ac_var;} ;;
2420 esac ;;
2421 esac
2422 done
2423 (set) 2>&1 |
2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425 *${as_nl}ac_space=\ *)
2426 sed -n \
2427 "s/'\''/'\''\\\\'\'''\''/g;
2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429 ;; #(
2430 *)
2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2432 ;;
2433 esac |
2434 sort
2435 )
2436 echo
2437
2438 printf "%s\n" "## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##"
2441 echo
2442 for ac_var in $ac_subst_vars
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 printf "%s\n" "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451
2452 if test -n "$ac_subst_files"; then
2453 printf "%s\n" "## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##"
2456 echo
2457 for ac_var in $ac_subst_files
2458 do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 printf "%s\n" "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2466 fi
2467
2468 if test -s confdefs.h; then
2469 printf "%s\n" "## ----------- ##
2470 ## confdefs.h. ##
2471 ## ----------- ##"
2472 echo
2473 cat confdefs.h
2474 echo
2475 fi
2476 test "$ac_signal" != 0 &&
2477 printf "%s\n" "$as_me: caught signal $ac_signal"
2478 printf "%s\n" "$as_me: exit $exit_status"
2479 } >&5
2480 rm -f core *.core core.conftest.* &&
2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482 exit $exit_status
2483 ' 0
2484 for ac_signal in 1 2 13 15; do
2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2486 done
2487 ac_signal=0
2488
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rmscip-shell system . . rm. -f -r conftest* confdefs.h
2491
2492 printfscip-shell system . . printf. "%s\n" "/* confdefs.h */" > confdefs.h
2493
2494 # Predefined preprocessor variables.
2495
2496 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2497
2498 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2499
2500 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2501
2502 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2503
2504 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2505
2506 printfscip-shell system . . printf. "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2507
2508
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2511 if testscip-shell system . . test. -n "$CONFIG_SITE"; then
2512 ac_site_files="$CONFIG_SITE"
2513 elif testscip-shell system . . test. "x$prefix" != xNONE; then
2514 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2515 else
2516 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2517 fi
2518
2519 for ac_site_file in $ac_site_files
2520 do
2521 case $ac_site_file in #(
2522 */*) :
2523 ;; #(
2524 *) :
2525 ac_site_file=./$ac_site_file ;;
2526 esac
2527 if testscip-shell system . . test. -f "$ac_site_file" && testscip-shell system . . test. -r "$ac_site_file"; then
2528 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 printfscip-shell system . . printf. "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2530 sedscip-shell system . . sed. 's/^/| /' "$ac_site_file" >&5
2531 . "$ac_site_file" \
2532 || { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2533 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2534 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "failed to load site script $ac_site_file
2535 See 'config.log' for more details" "$LINENO" 5; }
2536 fi
2537 done
2538
2539 if testscip-shell system . . test. -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if testscip-shell system . . test. /dev/nullscip-shell filesystem . . `/dev/null`. != "$cache_file" && testscip-shell system . . test. -f "$cache_file"; then
2543 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 printfscip-shell system . . printf. "%s\n" "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2549 fi
2550 else
2551 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 printfscip-shell system . . printf. "%s\n" "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2554 fi
2555
2556 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " stdio.h stdio_h HAVE_STDIO_H"
2557 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2558 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " string.h string_h HAVE_STRING_H"
2559 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2560 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " stdint.h stdint_h HAVE_STDINT_H"
2561 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " strings.h strings_h HAVE_STRINGS_H"
2562 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2563 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2564 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " unistd.h unistd_h HAVE_UNISTD_H"
2565 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " dlfcn.h dlfcn_h HAVE_DLFCN_H"
2566 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " complex.h complex_h HAVE_COMPLEX_H"
2567 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H"
2568 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_objc_list " sys/ttycom.h sys_ttycom_h HAVE_SYS_TTYCOM_H"
2569
2570 # Auxiliary files required by this configure script.
2571 ac_aux_files="install-sh config.guess config.sub"
2572
2573 # Locations in which to look for auxiliary files.
2574 ac_aux_dir_candidates="${srcdir}/build-aux"
2575
2576 # Search for a directory containing all of the required auxiliary files,
2577 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2578 # If we don't find one directory that contains all the files we need,
2579 # we report the set of missing files from the *first* directory in
2580 # $ac_aux_dir_candidates and give up.
2581 ac_missing_aux_files=""
2582 ac_first_candidate=:
2583 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 as_found=false
2586 for as_dir in $ac_aux_dir_candidates
2587 do
2588 IFS=$as_save_IFS
2589 case $as_dir in #(((
2590 '') as_dir=./ ;;
2591 */) ;;
2592 *) as_dir=$as_dir/ ;;
2593 esac
2594 as_found=:
2595
2596 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2597 ac_aux_dir_found=yes
2598 ac_install_sh=
2599 for ac_aux in $ac_aux_files
2600 do
2601 # As a special case, if "install-sh" is required, that requirement
2602 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2603 # and $ac_install_sh is set appropriately for whichever one is found.
2604 if testscip-shell system . . test. x"$ac_aux" = x"install-sh"
2605 then
2606 if testscip-shell system . . test. -f "${as_dir}install-sh"; then
2607 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2608 ac_install_sh="${as_dir}install-sh -c"
2609 elif testscip-shell system . . test. -f "${as_dir}install.sh"; then
2610 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2611 ac_install_sh="${as_dir}install.sh -c"
2612 elif testscip-shell system . . test. -f "${as_dir}shtool"; then
2613 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2614 ac_install_sh="${as_dir}shtool install -c"
2615 else
2616 ac_aux_dir_found=no
2617 if $ac_first_candidate; then
2618 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2619 else
2620 break
2621 fi
2622 fi
2623 else
2624 if testscip-shell system . . test. -f "${as_dir}${ac_aux}"; then
2625 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2626 else
2627 ac_aux_dir_found=no
2628 if $ac_first_candidate; then
2629 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2630 else
2631 break
2632 fi
2633 fi
2634 fi
2635 done
2636 if testscip-shell system . . test. "$ac_aux_dir_found" = yes; then
2637 ac_aux_dir="$as_dir"
2638 break
2639 fi
2640 ac_first_candidate=false
2641
2642 as_found=false
2643 done
2644 IFS=$as_save_IFS
2645 if $as_found
2646 then :
2647
2648 else case e in #(
2649 e) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2650 esac
2651 fi
2652
2653
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 if testscip-shell system . . test. -f "${ac_aux_dir}config.guess"; then
2659 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2660 fi
2661 if testscip-shell system . . test. -f "${ac_aux_dir}config.sub"; then
2662 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2663 fi
2664 if testscip-shell system . . test. -f "$ac_aux_dir/configure"; then
2665 ac_configure="$SHELL ${ac_aux_dir}configure"
2666 fi
2667
2668 # Check that the precious variables saved in the cache have kept the same
2669 # value.
2670 ac_cache_corrupted=false
2671 for ac_var in $ac_precious_vars; do
2672 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2673 eval ac_new_set=\$ac_env_${ac_var}_set
2674 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2675 eval ac_new_val=\$ac_env_${ac_var}_value
2676 case $ac_old_set,$ac_new_set in
2677 set,)
2678 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2679 printfscip-shell system . . printf. "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2681 ,set)
2682 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2683 printfscip-shell system . . printf. "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2685 ,);;
2686 *)
2687 if testscip-shell system . . test. "x$ac_old_val" != "x$ac_new_val"; then
2688 # differences in whitespace do not lead to failure.
2689 ac_old_val_w=`echoscip-shell system . . echo. x $ac_old_val`
2690 ac_new_val_w=`echoscip-shell system . . echo. x $ac_new_val`
2691 if testscip-shell system . . test. "$ac_old_val_w" != "$ac_new_val_w"; then
2692 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2693 printfscip-shell system . . printf. "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2694 ac_cache_corrupted=:
2695 else
2696 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2697 printfscip-shell system . . printf. "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2698 eval $ac_var=\$ac_old_val
2699 fi
2700 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2701 printfscip-shell system . . printf. "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2702 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2703 printfscip-shell system . . printf. "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2704 fi;;
2705 esac
2706 # Pass precious variables to config.status.
2707 if testscip-shell system . . test. "$ac_new_set" = set; then
2708 case $ac_new_val in
2709 *\'*) ac_arg=$ac_var=`printfscip-shell system . . printf. "%s\n" "$ac_new_val" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;;
2710 *) ac_arg=$ac_var=$ac_new_val ;;
2711 esac
2712 case " $ac_configure_args " in
2713 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2714 *) as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args " '$ac_arg'" ;;
2715 esac
2716 fi
2717 done
2718 if $ac_cache_corrupted; then
2719 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2720 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2721 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2722 printfscip-shell system . . printf. "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2723 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2724 and start over" "$LINENO" 5
2725 fi
2726 ## -------------------- ##
2727 ## Main body of script. ##
2728 ## -------------------- ##
2729
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736
2737
2738
2739
2740
2741 objfw_version_major=1
2742 objfw_version_minor=5
2743
2744 printfscip-shell system . . printf. "%s\n" "#define OBJFW_VERSION_MAJOR $objfw_version_major" >>confdefs.h
2745
2746
2747 printfscip-shell system . . printf. "%s\n" "#define OBJFW_VERSION_MINOR $objfw_version_minor" >>confdefs.h
2748
2749 BUNDLE_VERSION=1.5.7
2750
2751 BUNDLE_SHORT_VERSION=1.5
2752
2753
2754 for i in configure.ac build-aux/m4/*; do
2755 if testscip-shell system . . test. $i -nt configure
2756 then :
2757
2758 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$i is newer than configure! Run ./autogen.sh!" "$LINENO" 5
2759
2760 fi
2761 done
2762
2763
2764
2765
2766 # Make sure we can run config.sub.
2767 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ||
2768 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2769
2770 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 printfscip-shell system . . printf. %s "checking build system type... " >&6; }
2772 if testscip-shell system . . test. ${ac_cv_build+y}
2773 then :
2774 printfscip-shell system . . printf. %s "(cached) " >&6
2775 else case e in #(
2776 e) ac_build_alias=$build_alias
2777 testscip-shell system . . test. "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2779 testscip-shell system . . test. "x$ac_build_alias" = x &&
2780 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot guess build type; you must specify one" "$LINENO" 5
2781 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2782 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2783 ;;
2784 esac
2785 fi
2786 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2787 printfscip-shell system . . printf. "%s\n" "$ac_cv_build" >&6; }
2788 case $ac_cv_build in
2789 *-*-*) ;;
2790 *) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid value of canonical build" "$LINENO" 5;;
2791 esac
2792 build=$ac_cv_build
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_build
2795 shift
2796 build_cpu=$1
2797 build_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 build_os=$*
2802 IFS=$ac_save_IFS
2803 case $build_os in *\ *) build_os=`echoscip-shell system . . echo. "$build_os" | sedscip-shell system . . sed. 's/ /-/g'`;; esac
2804
2805
2806 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2807 printfscip-shell system . . printf. %s "checking host system type... " >&6; }
2808 if testscip-shell system . . test. ${ac_cv_host+y}
2809 then :
2810 printfscip-shell system . . printf. %s "(cached) " >&6
2811 else case e in #(
2812 e) if testscip-shell system . . test. "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2814 else
2815 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2816 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2817 fi
2818 ;;
2819 esac
2820 fi
2821 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 printfscip-shell system . . printf. "%s\n" "$ac_cv_host" >&6; }
2823 case $ac_cv_host in
2824 *-*-*) ;;
2825 *) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid value of canonical host" "$LINENO" 5;;
2826 esac
2827 host=$ac_cv_host
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_host
2830 shift
2831 host_cpu=$1
2832 host_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 host_os=$*
2837 IFS=$ac_save_IFS
2838 case $host_os in *\ *) host_os=`echoscip-shell system . . echo. "$host_os" | sedscip-shell system . . sed. 's/ /-/g'`;; esac
2839
2840
2841
2842 # Find a good install program. We prefer a C program (faster),
2843 # so one script is as good as another. But avoid the broken or
2844 # incompatible versions:
2845 # SysV /etc/install, /usr/sbin/install
2846 # SunOS /usr/etc/install
2847 # IRIX /sbin/install
2848 # AIX /bin/install
2849 # AmigaOS /C/install, which installs bootblocks on floppy discs
2850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2853 # OS/2's system install, which has a completely different semantic
2854 # ./install, which can be erroneously created by make from ./install.sh.
2855 # Reject install programs that cannot install multiple files.
2856 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2857 printfscip-shell system . . printf. %s "checking for a BSD-compatible install... " >&6; }
2858 if testscip-shell system . . test. -z "$INSTALL"; then
2859 if testscip-shell system . . test. ${ac_cv_path_install+y}
2860 then :
2861 printfscip-shell system . . printf. %s "(cached) " >&6
2862 else case e in #(
2863 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 case $as_dir in #(((
2868 '') as_dir=./ ;;
2869 */) ;;
2870 *) as_dir=$as_dir/ ;;
2871 esac
2872 # Account for fact that we put trailing slashes in our PATH walk.
2873 case $as_dir in #((
2874 ./ | /[cC]/* | \
2875 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2876 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2877 /usr/ucb/* ) ;;
2878 *)
2879 # OSF1 and SCO ODT 3.0 have their own names for install.
2880 # Don't use installbsd from OSF since it installs stuff as root
2881 # by default.
2882 for ac_prog in ginstall scoinst install; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_prog$ac_exec_ext"; then
2885 if testscip-shell system . . test. $ac_prog = install &&
2886 grepscip-shell system . . grep. dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
2887 # AIX install. It has an incompatible calling convention.
2888 :
2889 elif testscip-shell system . . test. $ac_prog = install &&
2890 grepscip-shell system . . grep. pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
2891 # program-specific install script used by HP pwplus--don't use.
2892 :
2893 else
2894 rmscip-shell system . . rm. -rf conftest.one conftest.two conftest.dir
2895 echoscip-shell system . . echo. one > conftest.one
2896 echoscip-shell system . . echo. two > conftest.two
2897 mkdirscip-shell system . . mkdir. conftest.dir
2898 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwdscip-shell system . . pwd.`/conftest.dir/" &&
2899 testscip-shell system . . test. -s conftest.one && testscip-shell system . . test. -s conftest.two &&
2900 testscip-shell system . . test. -s conftest.dir/conftest.one &&
2901 testscip-shell system . . test. -s conftest.dir/conftest.two
2902 then
2903 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2904 break 3
2905 fi
2906 fi
2907 fi
2908 done
2909 done
2910 ;;
2911 esac
2912
2913 done
2914 IFS=$as_save_IFS
2915
2916 rmscip-shell system . . rm. -rf conftest.one conftest.two conftest.dir
2917 ;;
2918 esac
2919 fi
2920 if testscip-shell system . . test. ${ac_cv_path_install+y}; then
2921 INSTALL=$ac_cv_path_install
2922 else
2923 # As a last resort, use the slow shell script. Don't cache a
2924 # value for INSTALL within a source directory, because that will
2925 # break other packages using the cache if that directory is
2926 # removed, or if the value is a relative name.
2927 INSTALL=$ac_install_sh
2928 fi
2929 fi
2930 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2931 printfscip-shell system . . printf. "%s\n" "$INSTALL" >&6; }
2932
2933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2934 # It thinks the first close brace ends the variable substitution.
2935 testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2936
2937 testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2938
2939 testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2940
2941
2942
2943
2944
2945 # Check whether --enable-rpath was given.
2946 if testscip-shell system . . test. ${enable_rpath+y}
2947 then :
2948 enableval=$enable_rpath;
2949 fi
2950
2951
2952 # Check whether --enable-silent-rules was given.
2953 if testscip-shell system . . test. ${enable_silent_rules+y}
2954 then :
2955 enableval=$enable_silent_rules;
2956 fi
2957
2958
2959 case "$build_os" in
2960 darwin*)
2961 case "$host_os" in
2962 darwin*)
2963 BUILD_AND_HOST_ARE_DARWIN=yes
2964
2965 ;;
2966 esac
2967 ;;
2968 esac
2969
2970
2971 case "$INSTALL" in
2972 ./build-aux/install-sh*)
2973 INSTALL="$PWD/$INSTALL"
2974 ;;
2975 esac
2976
2977
2978
2979
2980
2981
2982 check_pedantic="yes"
2983
2984 case "$host" in
2985 arm-*-riscos*)
2986 if testscip-shell system . . test. x"$OBJCFLAGS" = x""
2987 then :
2988 OBJCFLAGS="-O2 -g"
2989 fi
2990 flags="-mfloat-abi=softfp -mfpu=vfp -mlibscl"
2991 ASFLAGS="$ASFLAGS -mfloat-abi=softfp -mfpu=vfp"
2992 OBJCFLAGS="$OBJCFLAGS $flags"
2993 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
2994 LDFLAGS="$LDFLAGS $flags"
2995 OBJFW_LDFLAGS="$OBJFW_LDFLAGS $flags"
2996
2997 enable_shared="no"
2998 enable_threads="no"
2999 enable_sockets="no"
3000 enable_files="no"
3001 ;;
3002 m68k-*-amigaos*)
3003 if testscip-shell system . . test. x"$OBJCFLAGS" = x""
3004 then :
3005 OBJCFLAGS="-O0 -g"
3006 fi
3007 OBJCFLAGS="$OBJCFLAGS -noixemul"
3008 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
3009 CPPFLAGS="$CPPFLAGS -D__NO_NET_API"
3010 LDFLAGS="$LDFLAGS -noixemul"
3011 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -noixemul"
3012 LIBS="-ldebug $LIBS"
3013 OBJFW_LIBS="-ldebug $OBJFW_LIBS"
3014
3015 enable_files="yes" # Required for reading ENV:
3016 enable_shared="no"
3017 with_tls="no"
3018
3019 LIBBASES_M=libbases.m
3020
3021 ;;
3022 powerpc-*-amigaos*)
3023 CPPFLAGS="$CPPFLAGS -D__USE_INLINE__"
3024 LDFLAGS="$LDFLAGS -athread=native"
3025 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -athread=native"
3026 LIBS="-ldebug $LIBS"
3027 OBJFW_LIBS="-ldebug $OBJFW_LIBS"
3028
3029 enable_files="yes" # Required for reading ENV:
3030 enable_shared="no"
3031 with_tls="no"
3032
3033 LIBBASES_M=libbases.m
3034
3035 ;;
3036 *-morphos*)
3037 if testscip-shell system . . test. x"$OBJCFLAGS" = x""
3038 then :
3039 OBJCFLAGS="-O2 -g"
3040 fi
3041 OBJCFLAGS="$OBJCFLAGS -noixemul"
3042 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
3043 LDFLAGS="$LDFLAGS -noixemul"
3044 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -noixemul"
3045 LIBS="-ldebug $LIBS"
3046 OBJFW_LIBS="-ldebug $OBJFW_LIBS"
3047
3048 enable_files="yes" # Required for reading ENV:
3049 enable_shared="no"
3050 supports_amiga_lib="yes"
3051
3052 if testscip-shell system . . test. x"$enable_amiga_lib" != x"no"
3053 then :
3054
3055 OBJFWRT_AMIGA_LIB=objfwrt.library
3056
3057 t="-mresident32 -ffreestanding -noixemul"
3058 AMIGA_LIB_CFLAGS=$t
3059
3060 t="-mresident32 -nostartfiles -nodefaultlibs -noixemul"
3061 t="$t -laboxstubs -labox -lmath -ldebug -lc"
3062 AMIGA_LIB_LDFLAGS=$t
3063
3064
3065 fi
3066
3067 LIBBASES_M=libbases.m
3068
3069 ;;
3070 *-msdosdjgpp*)
3071 enable_shared="no"
3072 enable_threads="no"
3073 enable_sockets="no"
3074 ;;
3075 *-*-mingw*)
3076 LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition"
3077 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -Wl,--allow-multiple-definition"
3078 LIBS="-lversion $LIBS"
3079 OBJFW_LIBS="-lversion $OBJFW_LIBS"
3080
3081 USE_SRCS_WINDOWS='${SRCS_WINDOWS}'
3082
3083 ;;
3084 *-psp-*)
3085 if testscip-shell system . . test. x"$DEVKITPSP" = x""
3086 then :
3087
3088 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPSP is not set! Please set DEVKITPSP." "$LINENO" 5
3089
3090 fi
3091
3092 if testscip-shell system . . test. x"$OBJCFLAGS" = x""
3093 then :
3094 OBJCFLAGS="-O2"
3095 fi
3096 OBJCFLAGS="$OBJCFLAGS -G0"
3097 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -G0"
3098 CPPFLAGS="$CPPFLAGS -I$DEVKITPSP/psp/sdk/include"
3099 LDFLAGS="$LDFLAGS -G0"
3100 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -G0"
3101 tmp="-L$DEVKITPSP/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl"
3102 tmp="$tmp -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl"
3103 tmp="$tmp -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -lgcc"
3104 tmp="$tmp -lpsplibc"
3105 LIBS="$tmp $LIBS"
3106 OBJFW_LIBS="$tmp $OBJFW_LIBS"
3107 enable_shared="no"
3108 enable_threads="no" # TODO
3109 enable_sockets="no" # TODO
3110 check_pedantic="no"
3111
3112 MAP_LDFLAGS='-Wl,-Map,[email protected]'
3113
3114 ;;
3115 hppa*-*-hpux*)
3116 if testscip-shell system . . test. x"$OBJCFLAGS" = x""
3117 then :
3118 OBJCFLAGS="-O2"
3119 fi
3120 OBJCFLAGS="$OBJCFLAGS -include inttypes.h"
3121 LIBS="-latomic $LIBS"
3122 OBJFW_LIBS="-latomic $OBJFW_LIBS"
3123 ;;
3124 *-*-mint*)
3125 enable_shared="no"
3126 enable_threads="no" # TODO
3127 with_tls="no"
3128 ;;
3129 *-apple-macos*)
3130 enable_shared="no"
3131 enable_threads="no" # TODO
3132 enable_sockets="no" # TODO
3133
3134
3135 printfscip-shell system . . printf. "%s\n" "#define OF_CLASSIC_MACOS 1" >>confdefs.h
3136
3137 ;;
3138 esac
3139
3140 if testscip-shell system . . test. x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"
3141 then :
3142
3143 : ${AR:=ar.exe}
3144 : ${GREP:=grep.exe}
3145 : ${RANLIB:=ranlib.exe}
3146
3147 fi
3148
3149 ac_ext=m
3150 ac_cpp='$OBJCPP $CPPFLAGS'
3151 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3154
3155 case "$host_os" in
3156 morphos*)
3157 potential_compilers="gcc"
3158 ;;
3159 *)
3160 potential_compilers="clang egcc gcc"
3161 ;;
3162 esac
3163 ac_ext=m
3164 ac_cpp='$OBJCPP $CPPFLAGS'
3165 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3168 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
3169 for ac_prog in $potential_compilers
3170 do
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
3175 if testscip-shell system . . test. ${ac_cv_prog_OBJC+y}
3176 then :
3177 printfscip-shell system . . printf. %s "(cached) " >&6
3178 else case e in #(
3179 e) if testscip-shell system . . test. -n "$OBJC"; then
3180 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 case $as_dir in #(((
3187 '') as_dir=./ ;;
3188 */) ;;
3189 *) as_dir=$as_dir/ ;;
3190 esac
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
3194 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi ;;
3202 esac
3203 fi
3204 OBJC=$ac_cv_prog_OBJC
3205 if testscip-shell system . . test. -n "$OBJC"; then
3206 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
3207 printfscip-shell system . . printf. "%s\n" "$OBJC" >&6; }
3208 else
3209 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printfscip-shell system . . printf. "%s\n" "no" >&6; }
3211 fi
3212
3213
3214 testscip-shell system . . test. -n "$OBJC" && break
3215 done
3216 fi
3217 if testscip-shell system . . test. -z "$OBJC"; then
3218 ac_ct_OBJC=$OBJC
3219 for ac_prog in $potential_compilers
3220 do
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
3225 if testscip-shell system . . test. ${ac_cv_prog_ac_ct_OBJC+y}
3226 then :
3227 printfscip-shell system . . printf. %s "(cached) " >&6
3228 else case e in #(
3229 e) if testscip-shell system . . test. -n "$ac_ct_OBJC"; then
3230 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 case $as_dir in #(((
3237 '') as_dir=./ ;;
3238 */) ;;
3239 *) as_dir=$as_dir/ ;;
3240 esac
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_ac_ct_OBJC="$ac_prog"
3244 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi ;;
3252 esac
3253 fi
3254 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
3255 if testscip-shell system . . test. -n "$ac_ct_OBJC"; then
3256 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
3257 printfscip-shell system . . printf. "%s\n" "$ac_ct_OBJC" >&6; }
3258 else
3259 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printfscip-shell system . . printf. "%s\n" "no" >&6; }
3261 fi
3262
3263
3264 testscip-shell system . . test. -n "$ac_ct_OBJC" && break
3265 done
3266
3267 if testscip-shell system . . test. "x$ac_ct_OBJC" = x; then
3268 OBJC="gcc"
3269 else
3270 case $cross_compiling:$ac_tool_warned in
3271 yes:)
3272 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3273 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3274 ac_tool_warned=yes ;;
3275 esac
3276 OBJC=$ac_ct_OBJC
3277 fi
3278 fi
3279
3280 # Provide some information about the compiler.
3281 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
3282 set X $ac_compile
3283 ac_compiler=$2
3284 for ac_option in --version -v -V -qversion; do
3285 { { ac_try="$ac_compiler $ac_option >&5"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 ac_status=$?
3294 if testscip-shell system . . test. -s conftest.err; then
3295 sedscip-shell system . . sed. '10a\
3296 ... rest of stderr output deleted ...
3297 10q' conftest.err >conftest.er1
3298 catscip-shell system . . cat. conftest.er1 >&5
3299 fi
3300 rmscip-shell system . . rm. -f conftest.er1 conftest.err
3301 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 testscip-shell system . . test. $ac_status = 0; }
3303 done
3304
3305 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3307
3308 int
3309 main (void)
3310 {
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 ac_clean_files_save=$ac_clean_files
3317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318 # Try to create an executable without -o first, disregard a.out.
3319 # It will help us diagnose broken compilers, and finding out an intuition
3320 # of exeext.
3321 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Objective C compiler works" >&5
3322 printfscip-shell system . . printf. %s "checking whether the Objective C compiler works... " >&6; }
3323 ac_link_default=`printfscip-shell system . . printf. "%s\n" "$ac_link" | sedscip-shell system . . sed. 's/ -o *conftest[^ ]*//'`
3324
3325 # The possible output files:
3326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
3328 ac_rmfiles=
3329 for ac_file in $ac_files
3330 do
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334 esac
3335 done
3336 rmscip-shell system . . rm. -f $ac_rmfiles
3337
3338 if { { ac_try="$ac_link_default"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3345 (eval "$ac_link_default") 2>&5
3346 ac_status=$?
3347 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 testscip-shell system . . test. $ac_status = 0; }
3349 then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3351 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3354 # Autoconf.
3355 for ac_file in $ac_files ''
3356 do
3357 testscip-shell system . . test. -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 ;;
3361 [ab].out )
3362 # We found the default executable, but exeext='' is most
3363 # certainly right.
3364 break;;
3365 *.* )
3366 if testscip-shell system . . test. ${ac_cv_exeext+y} && testscip-shell system . . test. "$ac_cv_exeext" != no;
3367 then :; else
3368 ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'`
3369 fi
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an '-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3374 # actually working.
3375 break;;
3376 * )
3377 break;;
3378 esac
3379 done
3380 testscip-shell system . . test. "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382 else case e in #(
3383 e) ac_file='' ;;
3384 esac
3385 fi
3386 if testscip-shell system . . test. -z "$ac_file"
3387 then :
3388 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printfscip-shell system . . printf. "%s\n" "no" >&6; }
3390 printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
3391 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
3392
3393 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3394 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3395 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "Objective C compiler cannot create executables
3396 See 'config.log' for more details" "$LINENO" 5; }
3397 else case e in #(
3398 e) { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399 printfscip-shell system . . printf. "%s\n" "yes" >&6; } ;;
3400 esac
3401 fi
3402 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler default output file name" >&5
3403 printfscip-shell system . . printf. %s "checking for Objective C compiler default output file name... " >&6; }
3404 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3405 printfscip-shell system . . printf. "%s\n" "$ac_file" >&6; }
3406 ac_exeext=$ac_cv_exeext
3407
3408 rmscip-shell system . . rm. -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3409 ac_clean_files=$ac_clean_files_save
3410 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3411 printfscip-shell system . . printf. %s "checking for suffix of executables... " >&6; }
3412 if { { ac_try="$ac_link"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3420 ac_status=$?
3421 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 testscip-shell system . . test. $ac_status = 0; }
3423 then :
3424 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3425 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3426 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3427 # 'rm'.
3428 for ac_file in conftest.exe conftest conftest.*; do
3429 testscip-shell system . . test. -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 *.* ) ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'`
3433 break;;
3434 * ) break;;
3435 esac
3436 done
3437 else case e in #(
3438 e) { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3439 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3440 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot compute suffix of executables: cannot compile and link
3441 See 'config.log' for more details" "$LINENO" 5; } ;;
3442 esac
3443 fi
3444 rmscip-shell system . . rm. -f conftest conftest$ac_cv_exeext
3445 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3446 printfscip-shell system . . printf. "%s\n" "$ac_cv_exeext" >&6; }
3447
3448 rmscip-shell system . . rm. -f conftest.$ac_ext
3449 EXEEXT=$ac_cv_exeext
3450 ac_exeext=$EXEEXT
3451 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453 #include <stdio.h>
3454 int
3455 main (void)
3456 {
3457 FILE *f = fopen ("conftest.out", "w");
3458 if (!f)
3459 return 1;
3460 return ferror (f) || fclose (f) != 0;
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 ac_clean_files="$ac_clean_files conftest.out"
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470 printfscip-shell system . . printf. %s "checking whether we are cross compiling... " >&6; }
3471 if testscip-shell system . . test. "$cross_compiling" != yes; then
3472 { { ac_try="$ac_link"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3480 ac_status=$?
3481 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 testscip-shell system . . test. $ac_status = 0; }
3483 if { ac_try='./conftest$ac_cv_exeext'
3484 { { case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3490 (eval "$ac_try") 2>&5
3491 ac_status=$?
3492 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 testscip-shell system . . test. $ac_status = 0; }; }; then
3494 cross_compiling=no
3495 else
3496 if testscip-shell system . . test. "$cross_compiling" = maybe; then
3497 cross_compiling=yes
3498 else
3499 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3500 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3501 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "cannot run Objective C compiled programs.
3502 If you meant to cross compile, use '--host'.
3503 See 'config.log' for more details" "$LINENO" 5; }
3504 fi
3505 fi
3506 fi
3507 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3508 printfscip-shell system . . printf. "%s\n" "$cross_compiling" >&6; }
3509
3510 rmscip-shell system . . rm. -f conftest.$ac_ext conftest$ac_cv_exeext \
3511 conftest.o conftest.obj conftest.out
3512 ac_clean_files=$ac_clean_files_save
3513 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3514 printfscip-shell system . . printf. %s "checking for suffix of object files... " >&6; }
3515 if testscip-shell system . . test. ${ac_cv_objext+y}
3516 then :
3517 printfscip-shell system . . printf. %s "(cached) " >&6
3518 else case e in #(
3519 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main (void)
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rmscip-shell system . . rm. -f conftest.o conftest.obj
3531 if { { ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 testscip-shell system . . test. $ac_status = 0; }
3542 then :
3543 for ac_file in conftest.o conftest.obj conftest.*; do
3544 testscip-shell system . . test. -f "$ac_file" || continue;
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3547 *) ac_cv_objext=`exprscip-shell system . . expr. "$ac_file" : '.*\.\(.*\)'`
3548 break;;
3549 esac
3550 done
3551 else case e in #(
3552 e) printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5
3553 sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5
3554
3555 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3556 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3557 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot compute suffix of object files: cannot compile
3558 See 'config.log' for more details" "$LINENO" 5; } ;;
3559 esac
3560 fi
3561 rmscip-shell system . . rm. -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3562 esac
3563 fi
3564 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 printfscip-shell system . . printf. "%s\n" "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3567 ac_objext=$OBJEXT
3568 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Objective C" >&5
3569 printfscip-shell system . . printf. %s "checking whether the compiler supports GNU Objective C... " >&6; }
3570 if testscip-shell system . . test. ${ac_cv_objc_compiler_gnu+y}
3571 then :
3572 printfscip-shell system . . printf. %s "(cached) " >&6
3573 else case e in #(
3574 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main (void)
3579 {
3580 #ifndef __GNUC__
3581 choke me
3582 #endif
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
3589 then :
3590 ac_compiler_gnu=yes
3591 else case e in #(
3592 e) ac_compiler_gnu=no ;;
3593 esac
3594 fi
3595 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3596 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
3597 ;;
3598 esac
3599 fi
3600 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
3601 printfscip-shell system . . printf. "%s\n" "$ac_cv_objc_compiler_gnu" >&6; }
3602 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3603
3604 if testscip-shell system . . test. $ac_compiler_gnu = yes; then
3605 GOBJC=yes
3606 else
3607 GOBJC=
3608 fi
3609 ac_test_OBJCFLAGS=${OBJCFLAGS+y}
3610 ac_save_OBJCFLAGS=$OBJCFLAGS
3611 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
3612 printfscip-shell system . . printf. %s "checking whether $OBJC accepts -g... " >&6; }
3613 if testscip-shell system . . test. ${ac_cv_prog_objc_g+y}
3614 then :
3615 printfscip-shell system . . printf. %s "(cached) " >&6
3616 else case e in #(
3617 e) ac_save_objc_werror_flag=$ac_objc_werror_flag
3618 ac_objc_werror_flag=yes
3619 ac_cv_prog_objc_g=no
3620 OBJCFLAGS="-g"
3621 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623
3624 int
3625 main (void)
3626 {
3627
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
3633 then :
3634 ac_cv_prog_objc_g=yes
3635 else case e in #(
3636 e) OBJCFLAGS=""
3637 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main (void)
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
3649 then :
3650
3651 else case e in #(
3652 e) ac_objc_werror_flag=$ac_save_objc_werror_flag
3653 OBJCFLAGS="-g"
3654 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main (void)
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
3666 then :
3667 ac_cv_prog_objc_g=yes
3668 fi
3669 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3670 esac
3671 fi
3672 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3673 esac
3674 fi
3675 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3676 ac_objc_werror_flag=$ac_save_objc_werror_flag ;;
3677 esac
3678 fi
3679 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
3680 printfscip-shell system . . printf. "%s\n" "$ac_cv_prog_objc_g" >&6; }
3681 if testscip-shell system . . test. $ac_test_OBJCFLAGS; then
3682 OBJCFLAGS=$ac_save_OBJCFLAGS
3683 elif testscip-shell system . . test. $ac_cv_prog_objc_g = yes; then
3684 if testscip-shell system . . test. "$GOBJC" = yes; then
3685 OBJCFLAGS="-g -O2"
3686 else
3687 OBJCFLAGS="-g"
3688 fi
3689 else
3690 if testscip-shell system . . test. "$GOBJC" = yes; then
3691 OBJCFLAGS="-O2"
3692 else
3693 OBJCFLAGS=
3694 fi
3695 fi
3696 ac_ext=m
3697 ac_cpp='$OBJCPP $CPPFLAGS'
3698 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3701
3702 ac_ext=m
3703 ac_cpp='$OBJCPP $CPPFLAGS'
3704 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3707 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the Objective C preprocessor" >&5
3708 printfscip-shell system . . printf. %s "checking how to run the Objective C preprocessor... " >&6; }
3709 if testscip-shell system . . test. -z "$OBJCPP"; then
3710 if testscip-shell system . . test. ${ac_cv_prog_OBJCPP+y}
3711 then :
3712 printfscip-shell system . . printf. %s "(cached) " >&6
3713 else case e in #(
3714 e) # Double quotes because $OBJC needs to be expanded
3715 for OBJCPP in "$OBJC -E" cpp /lib/cppscip-shell filesystem . . `/lib/cpp`.
3716 do
3717 ac_preproc_ok=false
3718 for ac_objc_preproc_warn_flag in '' yes
3719 do
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # On the NeXT, cc -E runs the code through the compiler's parser,
3723 # not just through cpp. "Syntax error" is here to catch this case.
3724 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <limits.h>
3727 Syntax error
3728 _ACEOF
3729 if ac_fn_objc_try_cppscip-shell shell shell-project 0.0.0 ac_fn_objc_try_cpp(). "$LINENO"
3730 then :
3731
3732 else case e in #(
3733 e) # Broken: fails on valid input.
3734 continue ;;
3735 esac
3736 fi
3737 rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext
3738
3739 # OK, works on sane cases. Now check whether nonexistent headers
3740 # can be detected and how.
3741 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743 #include <ac_nonexistent.h>
3744 _ACEOF
3745 if ac_fn_objc_try_cppscip-shell shell shell-project 0.0.0 ac_fn_objc_try_cpp(). "$LINENO"
3746 then :
3747 # Broken: success on invalid input.
3748 continue
3749 else case e in #(
3750 e) # Passes both tests.
3751 ac_preproc_ok=:
3752 break ;;
3753 esac
3754 fi
3755 rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext
3756
3757 done
3758 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rmscip-shell system . . rm. -f conftest.i conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok
3761 then :
3762 break
3763 fi
3764
3765 done
3766 ac_cv_prog_OBJCPP=$OBJCPP
3767 ;;
3768 esac
3769 fi
3770 OBJCPP=$ac_cv_prog_OBJCPP
3771 else
3772 ac_cv_prog_OBJCPP=$OBJCPP
3773 fi
3774 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCPP" >&5
3775 printfscip-shell system . . printf. "%s\n" "$OBJCPP" >&6; }
3776 ac_preproc_ok=false
3777 for ac_objc_preproc_warn_flag in '' yes
3778 do
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # On the NeXT, cc -E runs the code through the compiler's parser,
3782 # not just through cpp. "Syntax error" is here to catch this case.
3783 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #include <limits.h>
3786 Syntax error
3787 _ACEOF
3788 if ac_fn_objc_try_cppscip-shell shell shell-project 0.0.0 ac_fn_objc_try_cpp(). "$LINENO"
3789 then :
3790
3791 else case e in #(
3792 e) # Broken: fails on valid input.
3793 continue ;;
3794 esac
3795 fi
3796 rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext
3797
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3803 _ACEOF
3804 if ac_fn_objc_try_cppscip-shell shell shell-project 0.0.0 ac_fn_objc_try_cpp(). "$LINENO"
3805 then :
3806 # Broken: success on invalid input.
3807 continue
3808 else case e in #(
3809 e) # Passes both tests.
3810 ac_preproc_ok=:
3811 break ;;
3812 esac
3813 fi
3814 rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext
3815
3816 done
3817 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3818 rmscip-shell system . . rm. -f conftest.i conftest.err conftest.$ac_ext
3819 if $ac_preproc_ok
3820 then :
3821
3822 else case e in #(
3823 e) { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3824 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3825 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Objective C preprocessor \"$OBJCPP\" fails sanity check
3826 See 'config.log' for more details" "$LINENO" 5; } ;;
3827 esac
3828 fi
3829
3830 ac_ext=m
3831 ac_cpp='$OBJCPP $CPPFLAGS'
3832 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3835
3836 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3837 printfscip-shell system . . printf. %s "checking for grep that handles long lines and -e... " >&6; }
3838 if testscip-shell system . . test. ${ac_cv_path_GREP+y}
3839 then :
3840 printfscip-shell system . . printf. %s "(cached) " >&6
3841 else case e in #(
3842 e) if testscip-shell system . . test. -z "$GREP"; then
3843 ac_path_GREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848 IFS=$as_save_IFS
3849 case $as_dir in #(((
3850 '') as_dir=./ ;;
3851 */) ;;
3852 *) as_dir=$as_dir/ ;;
3853 esac
3854 for ac_prog in grep ggrep
3855 do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3858 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_GREP" || continue
3859 # Check for GNU ac_path_GREP and select it if it is found.
3860 # Check for GNU $ac_path_GREP
3861 case `"$ac_path_GREP" --version 2>&1` in #(
3862 *GNU*)
3863 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3864 #(
3865 *)
3866 ac_count=0
3867 printfscip-shell system . . printf. %s 0123456789 >"conftest.in"
3868 while :
3869 do
3870 catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp"
3871 mvscip-shell system . . mv. "conftest.tmp" "conftest.in"
3872 cpscip-shell system . . cp. "conftest.in" "conftest.nl"
3873 printfscip-shell system . . printf. "%s\n" 'GREP' >> "conftest.nl"
3874 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break
3875 diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break
3876 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val
3877 if testscip-shell system . . test. $ac_count -gt ${ac_path_GREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_GREP="$ac_path_GREP"
3880 ac_path_GREP_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 testscip-shell system . . test. $ac_count -gt 10 && break
3884 done
3885 rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 esac
3887
3888 $ac_path_GREP_found && break 3
3889 done
3890 done
3891 done
3892 IFS=$as_save_IFS
3893 if testscip-shell system . . test. -z "$ac_cv_path_GREP"; then
3894 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895 fi
3896 else
3897 ac_cv_path_GREP=$GREP
3898 fi
3899 ;;
3900 esac
3901 fi
3902 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3903 printfscip-shell system . . printf. "%s\n" "$ac_cv_path_GREP" >&6; }
3904 GREP="$ac_cv_path_GREP"
3905
3906
3907 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3908 printfscip-shell system . . printf. %s "checking for egrep... " >&6; }
3909 if testscip-shell system . . test. ${ac_cv_path_EGREP+y}
3910 then :
3911 printfscip-shell system . . printf. %s "(cached) " >&6
3912 else case e in #(
3913 e) if echoscip-shell system . . echo. a | $GREP -E '(a|b)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
3914 then ac_cv_path_EGREP="$GREP -E"
3915 else
3916 if testscip-shell system . . test. -z "$EGREP"; then
3917 ac_path_EGREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 case $as_dir in #(((
3924 '') as_dir=./ ;;
3925 */) ;;
3926 *) as_dir=$as_dir/ ;;
3927 esac
3928 for ac_prog in egrep
3929 do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3932 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_EGREP" || continue
3933 # Check for GNU ac_path_EGREP and select it if it is found.
3934 # Check for GNU $ac_path_EGREP
3935 case `"$ac_path_EGREP" --version 2>&1` in #(
3936 *GNU*)
3937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3938 #(
3939 *)
3940 ac_count=0
3941 printfscip-shell system . . printf. %s 0123456789 >"conftest.in"
3942 while :
3943 do
3944 catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp"
3945 mvscip-shell system . . mv. "conftest.tmp" "conftest.in"
3946 cpscip-shell system . . cp. "conftest.in" "conftest.nl"
3947 printfscip-shell system . . printf. "%s\n" 'EGREP' >> "conftest.nl"
3948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break
3949 diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break
3950 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val
3951 if testscip-shell system . . test. $ac_count -gt ${ac_path_EGREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_EGREP="$ac_path_EGREP"
3954 ac_path_EGREP_max=$ac_count
3955 fi
3956 # 10*(2^10) chars as input seems more than enough
3957 testscip-shell system . . test. $ac_count -gt 10 && break
3958 done
3959 rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 esac
3961
3962 $ac_path_EGREP_found && break 3
3963 done
3964 done
3965 done
3966 IFS=$as_save_IFS
3967 if testscip-shell system . . test. -z "$ac_cv_path_EGREP"; then
3968 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3969 fi
3970 else
3971 ac_cv_path_EGREP=$EGREP
3972 fi
3973
3974 fi ;;
3975 esac
3976 fi
3977 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3978 printfscip-shell system . . printf. "%s\n" "$ac_cv_path_EGREP" >&6; }
3979 EGREP="$ac_cv_path_EGREP"
3980
3981 EGREP_TRADITIONAL=$EGREP
3982 ac_cv_path_EGREP_TRADITIONAL=$EGREP
3983
3984 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3985 printfscip-shell system . . printf. %s "checking for a sed that does not truncate output... " >&6; }
3986 if testscip-shell system . . test. ${ac_cv_path_SED+y}
3987 then :
3988 printfscip-shell system . . printf. %s "(cached) " >&6
3989 else case e in #(
3990 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3991 for ac_i in 1 2 3 4 5 6 7; do
3992 ac_script="$ac_script$as_nl$ac_script"
3993 done
3994 echoscip-shell system . . echo. "$ac_script" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 99q >conftest.sed
3995 { ac_script=; unset ac_script;}
3996 if testscip-shell system . . test. -z "$SED"; then
3997 ac_path_SED_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 case $as_dir in #(((
4004 '') as_dir=./ ;;
4005 */) ;;
4006 *) as_dir=$as_dir/ ;;
4007 esac
4008 for ac_prog in sed gsed
4009 do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4012 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_SED" || continue
4013 # Check for GNU ac_path_SED and select it if it is found.
4014 # Check for GNU $ac_path_SED
4015 case `"$ac_path_SED" --version 2>&1` in #(
4016 *GNU*)
4017 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4018 #(
4019 *)
4020 ac_count=0
4021 printfscip-shell system . . printf. %s 0123456789 >"conftest.in"
4022 while :
4023 do
4024 catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp"
4025 mvscip-shell system . . mv. "conftest.tmp" "conftest.in"
4026 cpscip-shell system . . cp. "conftest.in" "conftest.nl"
4027 printfscip-shell system . . printf. "%s\n" '' >> "conftest.nl"
4028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break
4029 diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break
4030 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val
4031 if testscip-shell system . . test. $ac_count -gt ${ac_path_SED_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_SED="$ac_path_SED"
4034 ac_path_SED_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 testscip-shell system . . test. $ac_count -gt 10 && break
4038 done
4039 rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4041
4042 $ac_path_SED_found && break 3
4043 done
4044 done
4045 done
4046 IFS=$as_save_IFS
4047 if testscip-shell system . . test. -z "$ac_cv_path_SED"; then
4048 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4049 fi
4050 else
4051 ac_cv_path_SED=$SED
4052 fi
4053 ;;
4054 esac
4055 fi
4056 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4057 printfscip-shell system . . printf. "%s\n" "$ac_cv_path_SED" >&6; }
4058 SED="$ac_cv_path_SED"
4059 rmscip-shell system . . rm. -f conftest.sed
4060
4061 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4062 printfscip-shell system . . printf. %s "checking whether ln -s works... " >&6; }
4063 LN_S=$as_ln_s
4064 if testscip-shell system . . test. "$LN_S" = "ln -s"; then
4065 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4066 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
4067 else
4068 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4069 printfscip-shell system . . printf. "%s\n" "no, using $LN_S" >&6; }
4070 fi
4071
4072
4073
4074
4075 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
4076 printfscip-shell system . . printf. %s "checking for egrep -e... " >&6; }
4077 if testscip-shell system . . test. ${ac_cv_path_EGREP_TRADITIONAL+y}
4078 then :
4079 printfscip-shell system . . printf. %s "(cached) " >&6
4080 else case e in #(
4081 e) if testscip-shell system . . test. -z "$EGREP_TRADITIONAL"; then
4082 ac_path_EGREP_TRADITIONAL_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086 do
4087 IFS=$as_save_IFS
4088 case $as_dir in #(((
4089 '') as_dir=./ ;;
4090 */) ;;
4091 *) as_dir=$as_dir/ ;;
4092 esac
4093 for ac_prog in grep ggrep
4094 do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
4097 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_EGREP_TRADITIONAL" || continue
4098 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
4099 # Check for GNU $ac_path_EGREP_TRADITIONAL
4100 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
4101 *GNU*)
4102 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
4103 #(
4104 *)
4105 ac_count=0
4106 printfscip-shell system . . printf. %s 0123456789 >"conftest.in"
4107 while :
4108 do
4109 catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp"
4110 mvscip-shell system . . mv. "conftest.tmp" "conftest.in"
4111 cpscip-shell system . . cp. "conftest.in" "conftest.nl"
4112 printfscip-shell system . . printf. "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
4113 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break
4114 diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break
4115 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val
4116 if testscip-shell system . . test. $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
4119 ac_path_EGREP_TRADITIONAL_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 testscip-shell system . . test. $ac_count -gt 10 && break
4123 done
4124 rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_EGREP_TRADITIONAL_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if testscip-shell system . . test. -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4133 :
4134 fi
4135 else
4136 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4137 fi
4138
4139 if testscip-shell system . . test. "$ac_cv_path_EGREP_TRADITIONAL"
4140 then :
4141 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
4142 else case e in #(
4143 e) if testscip-shell system . . test. -z "$EGREP_TRADITIONAL"; then
4144 ac_path_EGREP_TRADITIONAL_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 do
4149 IFS=$as_save_IFS
4150 case $as_dir in #(((
4151 '') as_dir=./ ;;
4152 */) ;;
4153 *) as_dir=$as_dir/ ;;
4154 esac
4155 for ac_prog in egrep
4156 do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
4159 as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_EGREP_TRADITIONAL" || continue
4160 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
4161 # Check for GNU $ac_path_EGREP_TRADITIONAL
4162 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
4163 *GNU*)
4164 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
4165 #(
4166 *)
4167 ac_count=0
4168 printfscip-shell system . . printf. %s 0123456789 >"conftest.in"
4169 while :
4170 do
4171 catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp"
4172 mvscip-shell system . . mv. "conftest.tmp" "conftest.in"
4173 cpscip-shell system . . cp. "conftest.in" "conftest.nl"
4174 printfscip-shell system . . printf. "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
4175 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break
4176 diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break
4177 as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val
4178 if testscip-shell system . . test. $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
4179 # Best one so far, save it but keep looking for a better one
4180 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
4181 ac_path_EGREP_TRADITIONAL_max=$ac_count
4182 fi
4183 # 10*(2^10) chars as input seems more than enough
4184 testscip-shell system . . test. $ac_count -gt 10 && break
4185 done
4186 rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187 esac
4188
4189 $ac_path_EGREP_TRADITIONAL_found && break 3
4190 done
4191 done
4192 done
4193 IFS=$as_save_IFS
4194 if testscip-shell system . . test. -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4195 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196 fi
4197 else
4198 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4199 fi
4200 ;;
4201 esac
4202 fi ;;
4203 esac
4204 fi
4205 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
4206 printfscip-shell system . . printf. "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
4207 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
4208
4209
4210 case "$host_os" in
4211 darwin*)
4212 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether host is iOS" >&5
4213 printfscip-shell system . . printf. %s "checking whether host is iOS... " >&6; }
4214 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 #include <TargetConditionals.h>
4218
4219 #if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || \
4220 (defined(TARGET_OS_SIMULATOR) && \
4221 TARGET_OS_SIMULATOR)
4222 yes
4223 #endif
4224
4225 _ACEOF
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP_TRADITIONAL "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
4228 then :
4229
4230 host_is_ios="yes"
4231 HOST_IS_IOS=yes
4232
4233
4234 else case e in #(
4235 e)
4236 host_is_ios="no"
4237 ;;
4238 esac
4239 fi
4240 rmscip-shell system . . rm. -rf conftest*
4241
4242 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host_is_ios" >&5
4243 printfscip-shell system . . printf. "%s\n" "$host_is_ios" >&6; }
4244 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}codesign", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}codesign; ac_word=$2
4247 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
4249 if testscip-shell system . . test. ${ac_cv_prog_CODESIGN+y}
4250 then :
4251 printfscip-shell system . . printf. %s "(cached) " >&6
4252 else case e in #(
4253 e) if testscip-shell system . . test. -n "$CODESIGN"; then
4254 ac_cv_prog_CODESIGN="$CODESIGN" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259 IFS=$as_save_IFS
4260 case $as_dir in #(((
4261 '') as_dir=./ ;;
4262 */) ;;
4263 *) as_dir=$as_dir/ ;;
4264 esac
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CODESIGN="${ac_tool_prefix}codesign"
4268 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4269 break 2
4270 fi
4271 done
4272 done
4273 IFS=$as_save_IFS
4274
4275 fi ;;
4276 esac
4277 fi
4278 CODESIGN=$ac_cv_prog_CODESIGN
4279 if testscip-shell system . . test. -n "$CODESIGN"; then
4280 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
4281 printfscip-shell system . . printf. "%s\n" "$CODESIGN" >&6; }
4282 else
4283 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 printfscip-shell system . . printf. "%s\n" "no" >&6; }
4285 fi
4286
4287
4288 fi
4289 if testscip-shell system . . test. -z "$ac_cv_prog_CODESIGN"; then
4290 ac_ct_CODESIGN=$CODESIGN
4291 # Extract the first word of "codesign", so it can be a program name with args.
4292 set dummy codesign; ac_word=$2
4293 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
4295 if testscip-shell system . . test. ${ac_cv_prog_ac_ct_CODESIGN+y}
4296 then :
4297 printfscip-shell system . . printf. %s "(cached) " >&6
4298 else case e in #(
4299 e) if testscip-shell system . . test. -n "$ac_ct_CODESIGN"; then
4300 ac_cv_prog_ac_ct_CODESIGN="$ac_ct_CODESIGN" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 case $as_dir in #(((
4307 '') as_dir=./ ;;
4308 */) ;;
4309 *) as_dir=$as_dir/ ;;
4310 esac
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_ac_ct_CODESIGN="codesign"
4314 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi ;;
4322 esac
4323 fi
4324 ac_ct_CODESIGN=$ac_cv_prog_ac_ct_CODESIGN
4325 if testscip-shell system . . test. -n "$ac_ct_CODESIGN"; then
4326 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CODESIGN" >&5
4327 printfscip-shell system . . printf. "%s\n" "$ac_ct_CODESIGN" >&6; }
4328 else
4329 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 printfscip-shell system . . printf. "%s\n" "no" >&6; }
4331 fi
4332
4333 if testscip-shell system . . test. "x$ac_ct_CODESIGN" = x; then
4334 CODESIGN=""
4335 else
4336 case $cross_compiling:$ac_tool_warned in
4337 yes:)
4338 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4339 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4340 ac_tool_warned=yes ;;
4341 esac
4342 CODESIGN=$ac_ct_CODESIGN
4343 fi
4344 else
4345 CODESIGN="$ac_cv_prog_CODESIGN"
4346 fi
4347
4348 ;;
4349 esac
4350
4351
4352
4353 # Check whether --with-wii was given.
4354 if testscip-shell system . . test. ${with_wii+y}
4355 then :
4356 withval=$with_wii;
4357 fi
4358
4359 if testscip-shell system . . test. x"$with_wii" = x"yes"
4360 then :
4361
4362 if testscip-shell system . . test. x"$DEVKITPRO" = x""
4363 then :
4364
4365 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPRO is not set! Please set DEVKITPRO." "$LINENO" 5
4366
4367 fi
4368
4369 flags="-mrvl -mcpu=750 -meabi -mhard-float"
4370 OBJCFLAGS="$OBJCFLAGS $flags"
4371 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4372 CPPFLAGS="$CPPFLAGS -DGEKKO -I$DEVKITPRO/libogc/include"
4373 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -DGEKKO -I\$DEVKITPRO/libogc/include"
4374 LDFLAGS="$LDFLAGS -mrvl -mcpu=750 -meabi -mhard-float"
4375 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -mrvl -mcpu=750 -meabi -mhard-float"
4376 LIBS="-L$DEVKITPRO/libogc/lib/wii -lfat -logc $LIBS"
4377 OBJFW_LIBS="-L$DEVKITPRO/libogc/lib/wii -lfat -logc $OBJFW_LIBS"
4378 HID_STATIC_LIBS="-lwiiuse -lbte $HID_LIBS"
4379 HID_LIBS="-lwiiuse -lbte $HID_LIBS"
4380 enable_shared="no"
4381 enable_threads="no" # TODO
4382 with_tls="no"
4383
4384
4385 printfscip-shell system . . printf. "%s\n" "#define OF_WII 1" >>confdefs.h
4386
4387 USE_SRCS_WII='${SRCS_WII}'
4388
4389 MAP_LDFLAGS='-Wl,-Map,[email protected]'
4390
4391
4392 fi
4393
4394
4395 # Check whether --with-wii-u was given.
4396 if testscip-shell system . . test. ${with_wii_u+y}
4397 then :
4398 withval=$with_wii_u;
4399 fi
4400
4401 if testscip-shell system . . test. x"$with_wii_u" = x"yes"
4402 then :
4403
4404 if testscip-shell system . . test. x"$DEVKITPRO" = x""
4405 then :
4406
4407 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPRO is not set! Please set DEVKITPRO." "$LINENO" 5
4408
4409 fi
4410
4411 flags="-mcpu=750 -meabi -mhard-float"
4412 OBJCFLAGS="$OBJCFLAGS $flags"
4413 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4414 CPPFLAGS="-isystem $DEVKITPRO/wut/include -D__WIIU__ -D__WUT__"
4415 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -isystem \$DEVKITPRO/wut/include"
4416 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -D__WIIU__ -D__WUT__"
4417 LDFLAGS="$LDFLAGS -specs=$DEVKITPRO/wut/share/wut.specs"
4418 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -specs=$DEVKITPRO/wut/share/wut.specs"
4419 tmp="-L$DEVKITPRO/wut/lib -L$DEVKITPRO/wut/lib/stubs -lwut"
4420 LIBS="$tmp $LIBS"
4421 OBJFW_LIBS="$tmp $OBJFW_LIBS"
4422 enable_files="no" # TODO
4423 enable_shared="no" # TODO
4424 enable_threads="no" # TODO
4425 enable_sockets="no" # TODO
4426
4427
4428 printfscip-shell system . . printf. "%s\n" "#define OF_WII_U 1" >>confdefs.h
4429
4430 MAP_LDFLAGS='-Wl,-Map,[email protected]'
4431
4432 # Repetition of libraries is required for Wii U, as otherwise it cannot
4433 # find main. Just moving -lobjfwtest later doesn't work either, as then
4434 # the linker cannot find ObjFW symbols. So the only solution is to list
4435 # everything twice, but hide it behind a variable because listing it
4436 # twice causes a warning on macOS.
4437 WII_U_TESTS_LIBS='-lobjfwtest ${TESTS_LIBS} ${LIBS}'
4438
4439
4440 fi
4441
4442
4443 # Check whether --with-nds was given.
4444 if testscip-shell system . . test. ${with_nds+y}
4445 then :
4446 withval=$with_nds;
4447 fi
4448
4449 if testscip-shell system . . test. x"$with_nds" = x"yes"
4450 then :
4451
4452 if testscip-shell system . . test. x"$DEVKITPRO" = x""
4453 then :
4454
4455 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPRO is not set! Please set DEVKITPRO." "$LINENO" 5
4456
4457 fi
4458
4459 flags="-march=armv5te -mtune=arm946e-s -mthumb -mthumb-interwork"
4460 OBJCFLAGS="$OBJCFLAGS $flags"
4461 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4462 CPPFLAGS="$CPPFLAGS -DARM9 -D__NDS__ -I$DEVKITPRO/libnds/include"
4463 CPPFLAGS="$CPPFLAGS -I$DEVKITPRO/calico/include"
4464 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -DARM9 -D__NDS__"
4465 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -I\$DEVKITPRO/libnds/include"
4466 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -I\$DEVKITPRO/calico/include"
4467 ASFLAGS="$ASFLAGS -march=armv5te"
4468 LDFLAGS="$LDFLAGS -specs=$DEVKITPRO/calico/share/ds9.specs"
4469 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -specs=\$DEVKITPRO/calico/share/ds9.specs"
4470 tmp="-L$DEVKITPRO/libnds/lib -L$DEVKITPRO/calico/lib"
4471 tmp="$tmp -lfilesystem -lfat -lnds9 -lcalico_ds9"
4472 LIBS="$tmp $LIBS"
4473 tmp="-L\$DEVKITPRO/libnds/lib -L\$DEVKITPRO/calico/lib"
4474 tmp="$tmp -lfilesystem -lfat -lnds9 -lcalico_ds9"
4475 OBJFW_LIBS="$tmp $OBJFW_LIBS"
4476 enable_shared="no"
4477 enable_threads="no" # TODO
4478 enable_sockets="no" # TODO
4479 check_pedantic="no"
4480
4481
4482 printfscip-shell system . . printf. "%s\n" "#define OF_NINTENDO_DS 1" >>confdefs.h
4483
4484 USE_SRCS_NINTENDO_DS='${SRCS_NINTENDO_DS}'
4485
4486 MAP_LDFLAGS='-Wl,-Map,[email protected]'
4487
4488
4489 fi
4490
4491
4492 # Check whether --with-3ds was given.
4493 if testscip-shell system . . test. ${with_3ds+y}
4494 then :
4495 withval=$with_3ds;
4496 fi
4497
4498 if testscip-shell system . . test. x"$with_3ds" = x"yes"
4499 then :
4500
4501 if testscip-shell system . . test. x"$DEVKITPRO" = x""
4502 then :
4503
4504 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPRO is not set! Please set DEVKITPRO." "$LINENO" 5
4505
4506 fi
4507
4508 flags="-march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft"
4509 flags="$flags -mword-relocations"
4510 OBJCFLAGS="$OBJCFLAGS $flags"
4511 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4512 CPPFLAGS="$CPPFLAGS -DARM11 -I$DEVKITPRO/libctru/include"
4513 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -DARM11 -I\$DEVKITPRO/libctru/include"
4514 ASFLAGS="$ASFLAGS -march=armv6k"
4515 tmp="-specs=3dsx.specs -march=armv6k -mtune=mpcore -mfloat-abi=hard"
4516 tmp="$tmp -mtp=soft -mword-relocations"
4517 LDFLAGS="$LDFLAGS $tmp"
4518 OBJFW_LDFLAGS="$OBJFW_LDFLAGS $tmp"
4519 LIBS="-L$DEVKITPRO/libctru/lib -lctru $LIBS"
4520 OBJFW_LIBS="-L$DEVKITPRO/libctru/lib -lctru $OBJFW_LIBS"
4521 enable_shared="no"
4522 enable_threads="no" # TODO
4523 with_tls="no"
4524 check_pedantic="no"
4525
4526
4527 printfscip-shell system . . printf. "%s\n" "#define OF_NINTENDO_3DS 1" >>confdefs.h
4528
4529 USE_SRCS_NINTENDO_3DS='${SRCS_NINTENDO_3DS}'
4530
4531 MAP_LDFLAGS='-Wl,-Map,[email protected]'
4532
4533
4534 fi
4535
4536
4537 # Check whether --with-nintendo-switch was given.
4538 if testscip-shell system . . test. ${with_nintendo_switch+y}
4539 then :
4540 withval=$with_nintendo_switch;
4541 fi
4542
4543 if testscip-shell system . . test. x"$with_nintendo_switch" = x"yes"
4544 then :
4545
4546 if testscip-shell system . . test. x"$DEVKITPRO" = x""
4547 then :
4548
4549 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "DEVKITPRO is not set! Please set DEVKITPRO." "$LINENO" 5
4550
4551 fi
4552
4553 flags="-march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE"
4554 OBJCFLAGS="$OBJCFLAGS $flags"
4555 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4556 CPPFLAGS="$CPPFLAGS -D__SWITCH__ -I$DEVKITPRO/libnx/include"
4557 OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -D__SWITCH__ -I$DEVKITPRO/libnx/include"
4558 ASFLAGS="$ASFLAGS $flags"
4559 LDFLAGS="$LDFLAGS -specs=$DEVKITPRO/libnx/switch.specs $flags"
4560 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -specs=$DEVKITPRO/libnx/switch.specs"
4561 OBJFW_LDFLAGS="$OBJFW_LDFLAGS $flags"
4562 LIBS="-L$DEVKITPRO/libnx/lib -lnx $LIBS"
4563 OBJFW_LIBS="-L$DEVKITPRO/libnx/lib -lnx $OBJFW_LIBS"
4564 enable_shared="no"
4565 enable_threads="yes"
4566 enable_sockets="no" # TODO
4567 check_pedantic="no"
4568
4569
4570 printfscip-shell system . . printf. "%s\n" "#define OF_NINTENDO_SWITCH 1" >>confdefs.h
4571
4572 USE_SRCS_NINTENDO_SWITCH='${SRCS_NINTENDO_SWITCH}'
4573
4574
4575 fi
4576
4577 CPP="$OBJCPP"
4578 CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS -DOF_COMPILING_OBJFW"
4579 CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
4580 flags="-fexceptions -fobjc-exceptions -funwind-tables"
4581 flags="$flags -fconstant-string-class=OFConstantString"
4582 OBJCFLAGS="$OBJCFLAGS -Wall $flags"
4583 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
4584 LDFLAGS="$LDFLAGS -fexceptions"
4585 OBJFW_LDFLAGS="$OBJFW_LDFLAGS -fexceptions"
4586
4587 case "$OBJC" in
4588 *clang*)
4589 case "$host" in
4590 mips*-*-*)
4591 ASFLAGS="$ASFLAGS -no-integrated-as"
4592 OBJCFLAGS="$OBJCFLAGS -integrated-as"
4593 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -integrated-as"
4594 ;;
4595 i?86-*-darwin* | x86_64-*-darwin*)
4596 ;;
4597 sparc64-*-*openbsd*)
4598 flag="-integrated-as"
4599 OBJCFLAGS="$OBJCFLAGS $flag"
4600 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
4601 ;;
4602 esac
4603 ;;
4604 esac
4605
4606 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -std=gnu11" >&5
4607 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -std=gnu11... " >&6; }
4608 if testscip-shell system . . test. ${ax_cv_objc_flags__std_gnu11+y}
4609 then :
4610 printfscip-shell system . . printf. %s "(cached) " >&6
4611 else case e in #(
4612 e)
4613 ax_save_FLAGS=$OBJCFLAGS
4614 OBJCFLAGS="-std=gnu11"
4615 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617
4618 int
4619 main (void)
4620 {
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4627 then :
4628 ax_cv_objc_flags__std_gnu11=yes
4629 else case e in #(
4630 e) ax_cv_objc_flags__std_gnu11=no ;;
4631 esac
4632 fi
4633 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 OBJCFLAGS=$ax_save_FLAGS ;;
4635 esac
4636 fi
4637
4638 eval ax_check_compiler_flags=$ax_cv_objc_flags__std_gnu11
4639 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4640 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4641 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4642
4643 OBJCFLAGS="$OBJCFLAGS -std=gnu11"
4644
4645 else
4646
4647 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -std=gnu1x" >&5
4648 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -std=gnu1x... " >&6; }
4649 if testscip-shell system . . test. ${ax_cv_objc_flags__std_gnu1x+y}
4650 then :
4651 printfscip-shell system . . printf. %s "(cached) " >&6
4652 else case e in #(
4653 e)
4654 ax_save_FLAGS=$OBJCFLAGS
4655 OBJCFLAGS="-std=gnu1x"
4656 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main (void)
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4668 then :
4669 ax_cv_objc_flags__std_gnu1x=yes
4670 else case e in #(
4671 e) ax_cv_objc_flags__std_gnu1x=no ;;
4672 esac
4673 fi
4674 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4675 OBJCFLAGS=$ax_save_FLAGS ;;
4676 esac
4677 fi
4678
4679 eval ax_check_compiler_flags=$ax_cv_objc_flags__std_gnu1x
4680 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4681 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4682 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4683
4684 OBJCFLAGS="$OBJCFLAGS -std=gnu1x"
4685
4686 else
4687
4688 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -std=gnu99" >&5
4689 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -std=gnu99... " >&6; }
4690 if testscip-shell system . . test. ${ax_cv_objc_flags__std_gnu99+y}
4691 then :
4692 printfscip-shell system . . printf. %s "(cached) " >&6
4693 else case e in #(
4694 e)
4695 ax_save_FLAGS=$OBJCFLAGS
4696 OBJCFLAGS="-std=gnu99"
4697 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main (void)
4702 {
4703
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4709 then :
4710 ax_cv_objc_flags__std_gnu99=yes
4711 else case e in #(
4712 e) ax_cv_objc_flags__std_gnu99=no ;;
4713 esac
4714 fi
4715 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 OBJCFLAGS=$ax_save_FLAGS ;;
4717 esac
4718 fi
4719
4720 eval ax_check_compiler_flags=$ax_cv_objc_flags__std_gnu99
4721 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4722 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4723 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4724 OBJCFLAGS="$OBJCFLAGS -std=gnu99"
4725 else
4726 :
4727 fi
4728
4729
4730 fi
4731
4732
4733 fi
4734
4735
4736 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -pipe" >&5
4737 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -pipe... " >&6; }
4738 if testscip-shell system . . test. ${ax_cv_objc_flags__pipe+y}
4739 then :
4740 printfscip-shell system . . printf. %s "(cached) " >&6
4741 else case e in #(
4742 e)
4743 ax_save_FLAGS=$OBJCFLAGS
4744 OBJCFLAGS="-pipe"
4745 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main (void)
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4757 then :
4758 ax_cv_objc_flags__pipe=yes
4759 else case e in #(
4760 e) ax_cv_objc_flags__pipe=no ;;
4761 esac
4762 fi
4763 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4764 OBJCFLAGS=$ax_save_FLAGS ;;
4765 esac
4766 fi
4767
4768 eval ax_check_compiler_flags=$ax_cv_objc_flags__pipe
4769 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4770 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4771 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4772 OBJCFLAGS="$OBJCFLAGS -pipe"
4773 else
4774 :
4775 fi
4776
4777 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -fno-common" >&5
4778 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -fno-common... " >&6; }
4779 if testscip-shell system . . test. ${ax_cv_objc_flags__fno_common+y}
4780 then :
4781 printfscip-shell system . . printf. %s "(cached) " >&6
4782 else case e in #(
4783 e)
4784 ax_save_FLAGS=$OBJCFLAGS
4785 OBJCFLAGS="-fno-common"
4786 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788
4789 int
4790 main (void)
4791 {
4792
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4798 then :
4799 ax_cv_objc_flags__fno_common=yes
4800 else case e in #(
4801 e) ax_cv_objc_flags__fno_common=no ;;
4802 esac
4803 fi
4804 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4805 OBJCFLAGS=$ax_save_FLAGS ;;
4806 esac
4807 fi
4808
4809 eval ax_check_compiler_flags=$ax_cv_objc_flags__fno_common
4810 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4811 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4812 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4813 OBJCFLAGS="$OBJCFLAGS -fno-common"
4814 else
4815 :
4816 fi
4817
4818 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Xclang -fno-constant-cfstrings" >&5
4819 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Xclang -fno-constant-cfstrings... " >&6; }
4820 if testscip-shell system . . test. ${ax_cv_objc_flags__Xclang__fno_constant_cfstrings+y}
4821 then :
4822 printfscip-shell system . . printf. %s "(cached) " >&6
4823 else case e in #(
4824 e)
4825 ax_save_FLAGS=$OBJCFLAGS
4826 OBJCFLAGS="-Xclang -fno-constant-cfstrings"
4827 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829
4830 int
4831 main (void)
4832 {
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4839 then :
4840 ax_cv_objc_flags__Xclang__fno_constant_cfstrings=yes
4841 else case e in #(
4842 e) ax_cv_objc_flags__Xclang__fno_constant_cfstrings=no ;;
4843 esac
4844 fi
4845 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 OBJCFLAGS=$ax_save_FLAGS ;;
4847 esac
4848 fi
4849
4850 eval ax_check_compiler_flags=$ax_cv_objc_flags__Xclang__fno_constant_cfstrings
4851 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4852 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4853 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4854
4855 flag="-Xclang -fno-constant-cfstrings"
4856 OBJCFLAGS="$OBJCFLAGS $flag"
4857 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
4858
4859 else
4860 :
4861 fi
4862
4863 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Xclang -fno-constant-nsnumber-literals" >&5
4864 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Xclang -fno-constant-nsnumber-literals... " >&6; }
4865 if testscip-shell system . . test. ${ax_cv_objc_flags__Xclang__fno_constant_nsnumber_literals+y}
4866 then :
4867 printfscip-shell system . . printf. %s "(cached) " >&6
4868 else case e in #(
4869 e)
4870 ax_save_FLAGS=$OBJCFLAGS
4871 OBJCFLAGS="-Xclang -fno-constant-nsnumber-literals"
4872 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874
4875 int
4876 main (void)
4877 {
4878
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4884 then :
4885 ax_cv_objc_flags__Xclang__fno_constant_nsnumber_literals=yes
4886 else case e in #(
4887 e) ax_cv_objc_flags__Xclang__fno_constant_nsnumber_literals=no ;;
4888 esac
4889 fi
4890 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4891 OBJCFLAGS=$ax_save_FLAGS ;;
4892 esac
4893 fi
4894
4895 eval ax_check_compiler_flags=$ax_cv_objc_flags__Xclang__fno_constant_nsnumber_literals
4896 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4897 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4898 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4899
4900 flag="-Xclang -fno-constant-nsnumber-literals"
4901 OBJCFLAGS="$OBJCFLAGS $flag"
4902 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
4903
4904 else
4905 :
4906 fi
4907
4908 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Xclang -fno-constant-nsarray-literals" >&5
4909 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Xclang -fno-constant-nsarray-literals... " >&6; }
4910 if testscip-shell system . . test. ${ax_cv_objc_flags__Xclang__fno_constant_nsarray_literals+y}
4911 then :
4912 printfscip-shell system . . printf. %s "(cached) " >&6
4913 else case e in #(
4914 e)
4915 ax_save_FLAGS=$OBJCFLAGS
4916 OBJCFLAGS="-Xclang -fno-constant-nsarray-literals"
4917 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919
4920 int
4921 main (void)
4922 {
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4929 then :
4930 ax_cv_objc_flags__Xclang__fno_constant_nsarray_literals=yes
4931 else case e in #(
4932 e) ax_cv_objc_flags__Xclang__fno_constant_nsarray_literals=no ;;
4933 esac
4934 fi
4935 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4936 OBJCFLAGS=$ax_save_FLAGS ;;
4937 esac
4938 fi
4939
4940 eval ax_check_compiler_flags=$ax_cv_objc_flags__Xclang__fno_constant_nsarray_literals
4941 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4942 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4943 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4944
4945 flag="-Xclang -fno-constant-nsarray-literals"
4946 OBJCFLAGS="$OBJCFLAGS $flag"
4947 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
4948
4949 else
4950 :
4951 fi
4952
4953 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Xclang -fno-constant-nsdictionary-literals" >&5
4954 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Xclang -fno-constant-nsdictionary-literals... " >&6; }
4955 if testscip-shell system . . test. ${ax_cv_objc_flags__Xclang__fno_constant_nsdictionary_literals+y}
4956 then :
4957 printfscip-shell system . . printf. %s "(cached) " >&6
4958 else case e in #(
4959 e)
4960 ax_save_FLAGS=$OBJCFLAGS
4961 OBJCFLAGS="-Xclang -fno-constant-nsdictionary-literals"
4962 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964
4965 int
4966 main (void)
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
4974 then :
4975 ax_cv_objc_flags__Xclang__fno_constant_nsdictionary_literals=yes
4976 else case e in #(
4977 e) ax_cv_objc_flags__Xclang__fno_constant_nsdictionary_literals=no ;;
4978 esac
4979 fi
4980 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4981 OBJCFLAGS=$ax_save_FLAGS ;;
4982 esac
4983 fi
4984
4985 eval ax_check_compiler_flags=$ax_cv_objc_flags__Xclang__fno_constant_nsdictionary_literals
4986 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4987 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
4988 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
4989
4990 flag="-Xclang -fno-constant-nsdictionary-literals"
4991 OBJCFLAGS="$OBJCFLAGS $flag"
4992 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
4993
4994 else
4995 :
4996 fi
4997
4998
4999 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wsign-compare -Werror" >&5
5000 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wsign-compare -Werror... " >&6; }
5001 if testscip-shell system . . test. ${ax_cv_objc_flags__Wsign_compare__Werror+y}
5002 then :
5003 printfscip-shell system . . printf. %s "(cached) " >&6
5004 else case e in #(
5005 e)
5006 ax_save_FLAGS=$OBJCFLAGS
5007 OBJCFLAGS="-Wsign-compare -Werror"
5008 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int
5012 main (void)
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5020 then :
5021 ax_cv_objc_flags__Wsign_compare__Werror=yes
5022 else case e in #(
5023 e) ax_cv_objc_flags__Wsign_compare__Werror=no ;;
5024 esac
5025 fi
5026 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5027 OBJCFLAGS=$ax_save_FLAGS ;;
5028 esac
5029 fi
5030
5031 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wsign_compare__Werror
5032 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5033 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5034 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5035 OBJCFLAGS="$OBJCFLAGS -Wsign-compare"
5036 else
5037 :
5038 fi
5039
5040 if testscip-shell system . . test. x"$with_nds" != x"yes"
5041 then :
5042
5043 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wshadow -Werror" >&5
5044 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wshadow -Werror... " >&6; }
5045 if testscip-shell system . . test. ${ax_cv_objc_flags__Wshadow__Werror+y}
5046 then :
5047 printfscip-shell system . . printf. %s "(cached) " >&6
5048 else case e in #(
5049 e)
5050 ax_save_FLAGS=$OBJCFLAGS
5051 OBJCFLAGS="-Wshadow -Werror"
5052 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054
5055 int
5056 main (void)
5057 {
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5064 then :
5065 ax_cv_objc_flags__Wshadow__Werror=yes
5066 else case e in #(
5067 e) ax_cv_objc_flags__Wshadow__Werror=no ;;
5068 esac
5069 fi
5070 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5071 OBJCFLAGS=$ax_save_FLAGS ;;
5072 esac
5073 fi
5074
5075 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wshadow__Werror
5076 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5077 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5078 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5079 OBJCFLAGS="$OBJCFLAGS -Wshadow"
5080 else
5081 :
5082 fi
5083
5084
5085 fi
5086 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wshorten-64-to-32 -Werror" >&5
5087 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wshorten-64-to-32 -Werror... " >&6; }
5088 if testscip-shell system . . test. ${ax_cv_objc_flags__Wshorten_64_to_32__Werror+y}
5089 then :
5090 printfscip-shell system . . printf. %s "(cached) " >&6
5091 else case e in #(
5092 e)
5093 ax_save_FLAGS=$OBJCFLAGS
5094 OBJCFLAGS="-Wshorten-64-to-32 -Werror"
5095 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097
5098 int
5099 main (void)
5100 {
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5107 then :
5108 ax_cv_objc_flags__Wshorten_64_to_32__Werror=yes
5109 else case e in #(
5110 e) ax_cv_objc_flags__Wshorten_64_to_32__Werror=no ;;
5111 esac
5112 fi
5113 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5114 OBJCFLAGS=$ax_save_FLAGS ;;
5115 esac
5116 fi
5117
5118 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wshorten_64_to_32__Werror
5119 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5120 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5121 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5122 OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"
5123 else
5124 :
5125 fi
5126
5127 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wundeclared-selector -Werror" >&5
5128 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wundeclared-selector -Werror... " >&6; }
5129 if testscip-shell system . . test. ${ax_cv_objc_flags__Wundeclared_selector__Werror+y}
5130 then :
5131 printfscip-shell system . . printf. %s "(cached) " >&6
5132 else case e in #(
5133 e)
5134 ax_save_FLAGS=$OBJCFLAGS
5135 OBJCFLAGS="-Wundeclared-selector -Werror"
5136 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main (void)
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5148 then :
5149 ax_cv_objc_flags__Wundeclared_selector__Werror=yes
5150 else case e in #(
5151 e) ax_cv_objc_flags__Wundeclared_selector__Werror=no ;;
5152 esac
5153 fi
5154 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 OBJCFLAGS=$ax_save_FLAGS ;;
5156 esac
5157 fi
5158
5159 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wundeclared_selector__Werror
5160 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5161 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5162 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5163 OBJCFLAGS="$OBJCFLAGS -Wundeclared-selector"
5164 else
5165 :
5166 fi
5167
5168 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wsemicolon-before-method-body -Werror" >&5
5169 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wsemicolon-before-method-body -Werror... " >&6; }
5170 if testscip-shell system . . test. ${ax_cv_objc_flags__Wsemicolon_before_method_body__Werror+y}
5171 then :
5172 printfscip-shell system . . printf. %s "(cached) " >&6
5173 else case e in #(
5174 e)
5175 ax_save_FLAGS=$OBJCFLAGS
5176 OBJCFLAGS="-Wsemicolon-before-method-body -Werror"
5177 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179
5180 int
5181 main (void)
5182 {
5183
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5189 then :
5190 ax_cv_objc_flags__Wsemicolon_before_method_body__Werror=yes
5191 else case e in #(
5192 e) ax_cv_objc_flags__Wsemicolon_before_method_body__Werror=no ;;
5193 esac
5194 fi
5195 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5196 OBJCFLAGS=$ax_save_FLAGS ;;
5197 esac
5198 fi
5199
5200 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wsemicolon_before_method_body__Werror
5201 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5202 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5203 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5204 OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"
5205 else
5206 :
5207 fi
5208
5209 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wobjc-missing-property-synthesis -Werror" >&5
5210 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wobjc-missing-property-synthesis -Werror... " >&6; }
5211 if testscip-shell system . . test. ${ax_cv_objc_flags__Wobjc_missing_property_synthesis__Werror+y}
5212 then :
5213 printfscip-shell system . . printf. %s "(cached) " >&6
5214 else case e in #(
5215 e)
5216 ax_save_FLAGS=$OBJCFLAGS
5217 OBJCFLAGS="-Wobjc-missing-property-synthesis -Werror"
5218 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220
5221 int
5222 main (void)
5223 {
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5230 then :
5231 ax_cv_objc_flags__Wobjc_missing_property_synthesis__Werror=yes
5232 else case e in #(
5233 e) ax_cv_objc_flags__Wobjc_missing_property_synthesis__Werror=no ;;
5234 esac
5235 fi
5236 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5237 OBJCFLAGS=$ax_save_FLAGS ;;
5238 esac
5239 fi
5240
5241 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wobjc_missing_property_synthesis__Werror
5242 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5243 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5244 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5245 OBJCFLAGS="$OBJCFLAGS -Wobjc-missing-property-synthesis"
5246 else
5247 :
5248 fi
5249
5250 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wmissing-method-return-type -Werror" >&5
5251 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wmissing-method-return-type -Werror... " >&6; }
5252 if testscip-shell system . . test. ${ax_cv_objc_flags__Wmissing_method_return_type__Werror+y}
5253 then :
5254 printfscip-shell system . . printf. %s "(cached) " >&6
5255 else case e in #(
5256 e)
5257 ax_save_FLAGS=$OBJCFLAGS
5258 OBJCFLAGS="-Wmissing-method-return-type -Werror"
5259 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261
5262 int
5263 main (void)
5264 {
5265
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5271 then :
5272 ax_cv_objc_flags__Wmissing_method_return_type__Werror=yes
5273 else case e in #(
5274 e) ax_cv_objc_flags__Wmissing_method_return_type__Werror=no ;;
5275 esac
5276 fi
5277 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 OBJCFLAGS=$ax_save_FLAGS ;;
5279 esac
5280 fi
5281
5282 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wmissing_method_return_type__Werror
5283 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5284 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5285 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5286 OBJCFLAGS="$OBJCFLAGS -Wmissing-method-return-type"
5287 else
5288 :
5289 fi
5290
5291
5292 if testscip-shell system . . test. x"$host_cpu" = x"powerpc64"
5293 then :
5294
5295 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wno-overlength-strings -Werror" >&5
5296 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wno-overlength-strings -Werror... " >&6; }
5297 if testscip-shell system . . test. ${ax_cv_objc_flags__Wno_overlength_strings__Werror+y}
5298 then :
5299 printfscip-shell system . . printf. %s "(cached) " >&6
5300 else case e in #(
5301 e)
5302 ax_save_FLAGS=$OBJCFLAGS
5303 OBJCFLAGS="-Wno-overlength-strings -Werror"
5304 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306
5307 int
5308 main (void)
5309 {
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5316 then :
5317 ax_cv_objc_flags__Wno_overlength_strings__Werror=yes
5318 else case e in #(
5319 e) ax_cv_objc_flags__Wno_overlength_strings__Werror=no ;;
5320 esac
5321 fi
5322 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5323 OBJCFLAGS=$ax_save_FLAGS ;;
5324 esac
5325 fi
5326
5327 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wno_overlength_strings__Werror
5328 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5329 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
5330 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
5331 OBJCFLAGS="$OBJCFLAGS -Wno-overlength-strings"
5332 else
5333 :
5334 fi
5335
5336
5337 fi
5338
5339 case "$host" in
5340 m68k-*-amigaos*)
5341 OBJCFLAGS="$OBJCFLAGS -Wno-pointer-sign"
5342 ;;
5343 esac
5344
5345 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler supports properties" >&5
5346 printfscip-shell system . . printf. %s "checking whether Objective C compiler supports properties... " >&6; }
5347 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349
5350
5351 #ifdef __has_attribute
5352 # if __has_attribute(objc_root_class)
5353 __attribute__((__objc_root_class__))
5354 # endif
5355 #endif
5356 @interface Foo
5357 {
5358 id bar;
5359 }
5360
5361 @property (nonatomic, retain) id bar;
5362 @end
5363
5364 int
5365 main (void)
5366 {
5367
5368 Foo *foo = (id)0;
5369 [foo setBar: (id)0];
5370 foo = [foo bar];
5371
5372 ;
5373 return 0;
5374 }
5375
5376 _ACEOF
5377 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
5378 then :
5379
5380 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5381 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
5382
5383 else case e in #(
5384 e)
5385 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5387 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Compiler does not support properties!" "$LINENO" 5
5388 ;;
5389 esac
5390 fi
5391 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5392
5393 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}ar; ac_word=$2
5396 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5398 if testscip-shell system . . test. ${ac_cv_prog_AR+y}
5399 then :
5400 printfscip-shell system . . printf. %s "(cached) " >&6
5401 else case e in #(
5402 e) if testscip-shell system . . test. -n "$AR"; then
5403 ac_cv_prog_AR="$AR" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 case $as_dir in #(((
5410 '') as_dir=./ ;;
5411 */) ;;
5412 *) as_dir=$as_dir/ ;;
5413 esac
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_AR="${ac_tool_prefix}ar"
5417 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi ;;
5425 esac
5426 fi
5427 AR=$ac_cv_prog_AR
5428 if testscip-shell system . . test. -n "$AR"; then
5429 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5430 printfscip-shell system . . printf. "%s\n" "$AR" >&6; }
5431 else
5432 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5434 fi
5435
5436
5437 fi
5438 if testscip-shell system . . test. -z "$ac_cv_prog_AR"; then
5439 ac_ct_AR=$AR
5440 # Extract the first word of "ar", so it can be a program name with args.
5441 set dummy ar; ac_word=$2
5442 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5444 if testscip-shell system . . test. ${ac_cv_prog_ac_ct_AR+y}
5445 then :
5446 printfscip-shell system . . printf. %s "(cached) " >&6
5447 else case e in #(
5448 e) if testscip-shell system . . test. -n "$ac_ct_AR"; then
5449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454 IFS=$as_save_IFS
5455 case $as_dir in #(((
5456 '') as_dir=./ ;;
5457 */) ;;
5458 *) as_dir=$as_dir/ ;;
5459 esac
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_AR="ar"
5463 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5469
5470 fi ;;
5471 esac
5472 fi
5473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474 if testscip-shell system . . test. -n "$ac_ct_AR"; then
5475 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476 printfscip-shell system . . printf. "%s\n" "$ac_ct_AR" >&6; }
5477 else
5478 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5480 fi
5481
5482 if testscip-shell system . . test. "x$ac_ct_AR" = x; then
5483 AR=""
5484 else
5485 case $cross_compiling:$ac_tool_warned in
5486 yes:)
5487 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489 ac_tool_warned=yes ;;
5490 esac
5491 AR=$ac_ct_AR
5492 fi
5493 else
5494 AR="$ac_cv_prog_AR"
5495 fi
5496
5497 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5500 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5502 if testscip-shell system . . test. ${ac_cv_prog_RANLIB+y}
5503 then :
5504 printfscip-shell system . . printf. %s "(cached) " >&6
5505 else case e in #(
5506 e) if testscip-shell system . . test. -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 case $as_dir in #(((
5514 '') as_dir=./ ;;
5515 */) ;;
5516 *) as_dir=$as_dir/ ;;
5517 esac
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5521 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi ;;
5529 esac
5530 fi
5531 RANLIB=$ac_cv_prog_RANLIB
5532 if testscip-shell system . . test. -n "$RANLIB"; then
5533 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5534 printfscip-shell system . . printf. "%s\n" "$RANLIB" >&6; }
5535 else
5536 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5538 fi
5539
5540
5541 fi
5542 if testscip-shell system . . test. -z "$ac_cv_prog_RANLIB"; then
5543 ac_ct_RANLIB=$RANLIB
5544 # Extract the first word of "ranlib", so it can be a program name with args.
5545 set dummy ranlib; ac_word=$2
5546 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5548 if testscip-shell system . . test. ${ac_cv_prog_ac_ct_RANLIB+y}
5549 then :
5550 printfscip-shell system . . printf. %s "(cached) " >&6
5551 else case e in #(
5552 e) if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then
5553 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 case $as_dir in #(((
5560 '') as_dir=./ ;;
5561 */) ;;
5562 *) as_dir=$as_dir/ ;;
5563 esac
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_ac_ct_RANLIB="ranlib"
5567 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi ;;
5575 esac
5576 fi
5577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5578 if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then
5579 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5580 printfscip-shell system . . printf. "%s\n" "$ac_ct_RANLIB" >&6; }
5581 else
5582 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5584 fi
5585
5586 if testscip-shell system . . test. "x$ac_ct_RANLIB" = x; then
5587 RANLIB=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590 yes:)
5591 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593 ac_tool_warned=yes ;;
5594 esac
5595 RANLIB=$ac_ct_RANLIB
5596 fi
5597 else
5598 RANLIB="$ac_cv_prog_RANLIB"
5599 fi
5600
5601
5602 case "$host_os" in
5603 mingw*)
5604 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}windres; ac_word=$2
5607 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5609 if testscip-shell system . . test. ${ac_cv_prog_RC+y}
5610 then :
5611 printfscip-shell system . . printf. %s "(cached) " >&6
5612 else case e in #(
5613 e) if testscip-shell system . . test. -n "$RC"; then
5614 ac_cv_prog_RC="$RC" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619 IFS=$as_save_IFS
5620 case $as_dir in #(((
5621 '') as_dir=./ ;;
5622 */) ;;
5623 *) as_dir=$as_dir/ ;;
5624 esac
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_RC="${ac_tool_prefix}windres"
5628 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi ;;
5636 esac
5637 fi
5638 RC=$ac_cv_prog_RC
5639 if testscip-shell system . . test. -n "$RC"; then
5640 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
5641 printfscip-shell system . . printf. "%s\n" "$RC" >&6; }
5642 else
5643 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5645 fi
5646
5647
5648 fi
5649 if testscip-shell system . . test. -z "$ac_cv_prog_RC"; then
5650 ac_ct_RC=$RC
5651 # Extract the first word of "windres", so it can be a program name with args.
5652 set dummy windres; ac_word=$2
5653 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
5655 if testscip-shell system . . test. ${ac_cv_prog_ac_ct_RC+y}
5656 then :
5657 printfscip-shell system . . printf. %s "(cached) " >&6
5658 else case e in #(
5659 e) if testscip-shell system . . test. -n "$ac_ct_RC"; then
5660 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 case $as_dir in #(((
5667 '') as_dir=./ ;;
5668 */) ;;
5669 *) as_dir=$as_dir/ ;;
5670 esac
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_RC="windres"
5674 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi ;;
5682 esac
5683 fi
5684 ac_ct_RC=$ac_cv_prog_ac_ct_RC
5685 if testscip-shell system . . test. -n "$ac_ct_RC"; then
5686 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
5687 printfscip-shell system . . printf. "%s\n" "$ac_ct_RC" >&6; }
5688 else
5689 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5691 fi
5692
5693 if testscip-shell system . . test. "x$ac_ct_RC" = x; then
5694 RC=""
5695 else
5696 case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702 RC=$ac_ct_RC
5703 fi
5704 else
5705 RC="$ac_cv_prog_RC"
5706 fi
5707
5708 ;;
5709 esac
5710
5711
5712
5713
5714 case "$host" in
5715 m68k-*-amigaos* | *-*-morphos*)
5716 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Stack Protector" >&5
5717 printfscip-shell system . . printf. %s "checking for Stack Protector... " >&6; }
5718 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5720 ;;
5721 *)
5722
5723
5724 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Stack Protector" >&5
5725 printfscip-shell system . . printf. %s "checking for Stack Protector... " >&6; }
5726
5727 old_CFLAGS="$CFLAGS"
5728 old_CXXFLAGS="$CXXFLAGS"
5729 old_OBJCFLAGS="$OBJCFLAGS"
5730 old_OBJCXXFLAGS="$OBJCXXFLAGS"
5731 old_LDFLAGS="$LDFLAGS"
5732
5733 CFLAGS="$CFLAGS -fstack-protector-strong"
5734 CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
5735 OBJCFLAGS="$OBJCFLAGS -fstack-protector-strong"
5736 OBJCXXFLAGS="$OBJCXXFLAGS -fstack-protector-strong"
5737 LDFLAGS="$LDFLAGS -fstack-protector-strong"
5738
5739 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741
5742
5743 #include <stdio.h>
5744
5745 int
5746 main (void)
5747 {
5748
5749 char buf16;
5750
5751 puts("Stack Protector test");
5752
5753 ;
5754 return 0;
5755 }
5756
5757 _ACEOF
5758 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
5759 then :
5760
5761 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: strong" >&5
5762 printfscip-shell system . . printf. "%s\n" "strong" >&6; }
5763 STACK_PROTECTOR_CFLAGS=-fstack-protector-strong
5764
5765 STACK_PROTECTOR_LDFLAGS=-fstack-protector-strong
5766
5767
5768 else case e in #(
5769 e)
5770 CFLAGS="$old_CFLAGS -fstack-protector"
5771 CXXFLAGS="$old_CXXFLAGS -fstack-protector"
5772 OBJCFLAGS="$old_OBJCFLAGS -fstack-protector"
5773 OBJCXXFLAGS="$old_OBJCXXFLAGS -fstack-protector"
5774 LDFLAGS="$old_LDFLAGS -fstack-protector"
5775
5776 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778
5779
5780 #include <stdio.h>
5781
5782 int
5783 main (void)
5784 {
5785
5786 char buf16;
5787
5788 puts("Stack Protector test");
5789
5790 ;
5791 return 0;
5792 }
5793
5794 _ACEOF
5795 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
5796 then :
5797
5798 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
5800 STACK_PROTECTOR_CFLAGS=-fstack-protector
5801
5802 STACK_PROTECTOR_LDFLAGS=-fstack-protector
5803
5804
5805 else case e in #(
5806 e)
5807 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5809 ;;
5810 esac
5811 fi
5812 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
5813 conftest$ac_exeext conftest.$ac_ext
5814 ;;
5815 esac
5816 fi
5817 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
5818 conftest$ac_exeext conftest.$ac_ext
5819
5820 CFLAGS="$old_CFLAGS"
5821 CXXFLAGS="$old_CXXFLAGS"
5822 OBJCFLAGS="$old_OBJCFLAGS"
5823 OBJCXXFLAGS="$old_OBJCXXFLAGS"
5824 LDFLAGS="$old_LDFLAGS"
5825
5826 ;;
5827 esac
5828
5829
5830
5831 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RELRO support" >&5
5832 printfscip-shell system . . printf. %s "checking for RELRO support... " >&6; }
5833
5834 case "$host_os" in
5835 morphos*)
5836 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5838 ;;
5839 *)
5840 old_LDFLAGS="$LDFLAGS"
5841 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5842 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844
5845
5846 #include <stdio.h>
5847
5848 int
5849 main (void)
5850 {
5851
5852 puts("RELRO test");
5853
5854 ;
5855 return 0;
5856 }
5857
5858 _ACEOF
5859 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
5860 then :
5861
5862 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
5864 RELRO_LDFLAGS=-Wl,-z,relro,-z,now
5865
5866
5867 else case e in #(
5868 e)
5869 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 printfscip-shell system . . printf. "%s\n" "no" >&6; }
5871 ;;
5872 esac
5873 fi
5874 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
5875 conftest$ac_exeext conftest.$ac_ext
5876
5877 LDFLAGS="$old_LDFLAGS"
5878 ;;
5879 esac
5880
5881 OBJCFLAGS="$OBJCFLAGS $STACK_PROTECTOR_CFLAGS"
5882 LDFLAGS="$LDFLAGS $STACK_PROTECTOR_LDFLAGS $RELRO_LDFLAGS"
5883 OBJFW_LDFLAGS="$OBJFW_LDFLAGS $STACK_PROTECTOR_LDFLAGS $RELRO_LDFLAGS"
5884
5885 # Check whether --enable-amiga-lib was given.
5886 if testscip-shell system . . test. ${enable_amiga_lib+y}
5887 then :
5888 enableval=$enable_amiga_lib;
5889 fi
5890
5891 if testscip-shell system . . test. x"$supports_amiga_lib" != x"yes"
5892 then :
5893 enable_amiga_lib="no"
5894 fi
5895
5896 # Check whether --enable-shared was given.
5897 if testscip-shell system . . test. ${enable_shared+y}
5898 then :
5899 enableval=$enable_shared;
5900 fi
5901
5902 if testscip-shell system . . test. x"$enable_shared" != x"no"
5903 then :
5904
5905
5906
5907
5908 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library type" >&5
5909 printfscip-shell system . . printf. %s "checking for shared library type... " >&6; }
5910
5911 case "$host" in
5912 *-*-darwin*)
5913 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
5914 printfscip-shell system . . printf. "%s\n" "Darwin" >&6; }
5915 LIB_CFLAGS='-fPIC -DPIC'
5916 LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR}'
5917 LIB_LDFLAGS_INSTALL_NAME='-Wl,-install_name,${libdir}/$${out%.dylib}.${LIB_MAJOR}.dylib'
5918 LIB_PREFIX='lib'
5919 LIB_SUFFIX='.dylib'
5920 if testscip-shell system . . test. x"$enable_rpath" != x"no"
5921 then :
5922
5923 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
5924
5925 fi
5926 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
5927 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
5928 CLEAN_LIB=''
5929 ;;
5930 *-*-mingw* | *-*-cygwin*)
5931 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: MinGW / Cygwin" >&5
5932 printfscip-shell system . . printf. "%s\n" "MinGW / Cygwin" >&6; }
5933 LIB_CFLAGS=''
5934 LIB_LDFLAGS='-shared -Wl,--export-all-symbols'
5935 LIB_LDFLAGS_INSTALL_NAME=''
5936 LIB_PREFIX=''
5937 LIB_SUFFIX='${LIB_MAJOR}.dll'
5938 LINK_LIB='&& rm -f lib$${out%${LIB_SUFFIX}}.dll.a && ${LN_S} $$out lib$${out%${LIB_SUFFIX}}.dll.a'
5939 INSTALL_LIB='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 lib$${i%${LIB_SUFFIX}}.dll.a ${DESTDIR}${libdir}/lib$${i%${LIB_SUFFIX}}.dll.a'
5940 UNINSTALL_LIB='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/lib$${i%${LIB_SUFFIX}}.dll.a'
5941 CLEAN_LIB='${SHARED_LIB}.a ${SHARED_LIB_NOINST}.a'
5942 ;;
5943 *-*-openbsd* | *-*-mirbsd*)
5944 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
5945 printfscip-shell system . . printf. "%s\n" "OpenBSD" >&6; }
5946 LIB_CFLAGS='-fPIC -DPIC'
5947 LIB_LDFLAGS='-shared'
5948 LIB_LDFLAGS_INSTALL_NAME=''
5949 LIB_PREFIX='lib'
5950 LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
5951 if testscip-shell system . . test. x"$enable_rpath" != x"no"
5952 then :
5953
5954 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
5955
5956 fi
5957 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
5958 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i'
5959 CLEAN_LIB=''
5960 ;;
5961 *-*-solaris*)
5962 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
5963 printfscip-shell system . . printf. "%s\n" "Solaris" >&6; }
5964 LIB_CFLAGS='-fPIC -DPIC'
5965 LIB_LDFLAGS='-shared -Wl,-soname=$$out.${LIB_MAJOR}.${LIB_MINOR}'
5966 LIB_LDFLAGS_INSTALL_NAME=''
5967 LIB_PREFIX='lib'
5968 LIB_SUFFIX='.so'
5969 if testscip-shell system . . test. x"$enable_rpath" != x"no"
5970 then :
5971
5972 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
5973
5974 fi
5975 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
5976 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
5977 CLEAN_LIB=''
5978 ;;
5979 *-*-android*)
5980 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: Android" >&5
5981 printfscip-shell system . . printf. "%s\n" "Android" >&6; }
5982 LIB_CFLAGS='-fPIC -DPIC'
5983 LIB_LDFLAGS='-shared -Wl,-soname=$$out.${LIB_MAJOR}'
5984 LIB_LDFLAGS_INSTALL_NAME=''
5985 LIB_PREFIX='lib'
5986 LIB_SUFFIX='.so'
5987 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} ${DESTDIR}${libdir}/$$i'
5988 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH}'
5989 CLEAN_LIB=''
5990 ;;
5991 hppa*-*-hpux*)
5992 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP-UX (PA-RISC)" >&5
5993 printfscip-shell system . . printf. "%s\n" "HP-UX (PA-RISC)" >&6; }
5994 LIB_CFLAGS='-fPIC -DPIC'
5995 LIB_LDFLAGS='-shared -Wl,+h,$$out'
5996 LIB_LDFLAGS_INSTALL_NAME=''
5997 LIB_PREFIX='lib'
5998 LIB_SUFFIX='.${LIB_MAJOR}'
5999 LINK_LIB='&& rm -f $${out%%.*}.sl && ${LN_S} $$out $${out%%.*}.sl'
6000 if testscip-shell system . . test. x"$enable_rpath" != x"no"
6001 then :
6002
6003 LDFLAGS_RPATH='-Wl,+b,${libdir}'
6004
6005 fi
6006 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i && ${LN_S} -f $$i ${DESTDIR}${libdir}/$${i%%.*}.sl'
6007 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%%.*}.sl'
6008 CLEAN_LIB=''
6009 ;;
6010 ia64*-*-hpux*)
6011 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP-UX (Itanium)" >&5
6012 printfscip-shell system . . printf. "%s\n" "HP-UX (Itanium)" >&6; }
6013 LIB_CFLAGS='-fPIC -DPIC'
6014 LIB_LDFLAGS='-shared -Wl,+h,$$out'
6015 LIB_LDFLAGS_INSTALL_NAME=''
6016 LIB_PREFIX='lib'
6017 LIB_SUFFIX='.${LIB_MAJOR}'
6018 LINK_LIB='&& rm -f $${out%%.*}.so && ${LN_S} $$out $${out%%.*}.so'
6019 if testscip-shell system . . test. x"$enable_rpath" != x"no"
6020 then :
6021
6022 LDFLAGS_RPATH='-Wl,+b,${libdir}'
6023
6024 fi
6025 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i && ${LN_S} -f $$i ${DESTDIR}${libdir}/$${i%%.*}.so'
6026 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%%.*}.so'
6027 CLEAN_LIB=''
6028 ;;
6029 *)
6030 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: ELF" >&5
6031 printfscip-shell system . . printf. "%s\n" "ELF" >&6; }
6032 LIB_CFLAGS='-fPIC -DPIC'
6033 LIB_LDFLAGS='-shared -Wl,-soname=$$out.${LIB_MAJOR}'
6034 LIB_LDFLAGS_INSTALL_NAME=''
6035 LIB_PREFIX='lib'
6036 LIB_SUFFIX='.so'
6037 if testscip-shell system . . test. x"$enable_rpath" != x"no"
6038 then :
6039
6040 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
6041
6042 fi
6043 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH} ${DESTDIR}${libdir}/$$i'
6044 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.${LIB_PATCH}'
6045 CLEAN_LIB=''
6046 ;;
6047 esac
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for plugin type" >&5
6064 printfscip-shell system . . printf. %s "checking for plugin type... " >&6; }
6065
6066 case "$host" in
6067 *-*-darwin*)
6068 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6069 printfscip-shell system . . printf. "%s\n" "Darwin" >&6; }
6070 PLUGIN_CFLAGS='-fPIC -DPIC'
6071 PLUGIN_LDFLAGS='-bundle'
6072 PLUGIN_SUFFIX='.dylib'
6073 ;;
6074 *-*-mingw* | *-*-cygwin*)
6075 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: MinGW / Cygwin" >&5
6076 printfscip-shell system . . printf. "%s\n" "MinGW / Cygwin" >&6; }
6077 PLUGIN_CFLAGS=''
6078 PLUGIN_LDFLAGS='-shared -Wl,--export-all-symbols'
6079 PLUGIN_SUFFIX='.dll'
6080 ;;
6081 hppa*-*-hpux*)
6082 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP-UX (PA-RISC)" >&5
6083 printfscip-shell system . . printf. "%s\n" "HP-UX (PA-RISC)" >&6; }
6084 PLUGIN_CFLAGS='-fPIC -DPIC'
6085 PLUGIN_LDFLAGS='-shared'
6086 PLUGIN_SUFFIX='.sl'
6087 ;;
6088 *)
6089 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: ELF" >&5
6090 printfscip-shell system . . printf. "%s\n" "ELF" >&6; }
6091 PLUGIN_CFLAGS='-fPIC -DPIC'
6092 PLUGIN_LDFLAGS='-shared'
6093 PLUGIN_SUFFIX='.so'
6094 ;;
6095 esac
6096
6097
6098
6099
6100
6101
6102
6103 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Position Independent Executable support" >&5
6104 printfscip-shell system . . printf. %s "checking for Position Independent Executable support... " >&6; }
6105
6106 old_CFLAGS="$CFLAGS"
6107 old_CXXFLAGS="$CXXFLAGS"
6108 old_OBJCFLAGS="$OBJCFLAGS"
6109 old_OBJCXXFLAGS="$OBJCXXFLAGS"
6110 old_LDFLAGS="$LDFLAGS"
6111
6112 CFLAGS="$CFLAGS -fPIE"
6113 CXXFLAGS="$CXXFLAGS -fPIE"
6114 OBJCFLAGS="$OBJCFLAGS -fPIE"
6115 OBJCXXFLAGS="$OBJCXXFLAGS -fPIE"
6116 LDFLAGS="$LDFLAGS -Wl,-pie"
6117
6118 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120
6121
6122 #include <stdio.h>
6123
6124 int
6125 main (void)
6126 {
6127
6128 puts("PIE test");
6129
6130 ;
6131 return 0;
6132 }
6133
6134 _ACEOF
6135 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
6136 then :
6137
6138 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
6140 PIE_CFLAGS=-fPIE
6141
6142 PIE_LDFLAGS=-Wl,-pie
6143
6144
6145 else case e in #(
6146 e)
6147 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 printfscip-shell system . . printf. "%s\n" "no" >&6; }
6149 ;;
6150 esac
6151 fi
6152 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
6153 conftest$ac_exeext conftest.$ac_ext
6154
6155 CFLAGS="$old_CFLAGS"
6156 CXXFLAGS="$old_CXXFLAGS"
6157 OBJCFLAGS="$old_OBJCFLAGS"
6158 OBJCXXFLAGS="$old_OBJCXXFLAGS"
6159 LDFLAGS="$old_LDFLAGS"
6160
6161
6162 OBJFW_SHARED_LIB='${LIB_PREFIX}objfw${LIB_SUFFIX}'
6163
6164 EXCEPTIONS_LIB_A="exceptions.lib.a"
6165
6166 FORWARDING_LIB_A="forwarding.lib.a"
6167
6168 LOOKUP_ASM_LIB_A="lookup-asm.lib.a"
6169
6170
6171 OBJFWHID_SHARED_LIB='${LIB_PREFIX}objfwhid${LIB_SUFFIX}'
6172
6173
6174
6175
6176
6177
6178
6179 case "$host_os" in
6180 darwin*)
6181 FRAMEWORK_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR}'
6182 if testscip-shell system . . test. x"$host_is_ios" = x"yes"
6183 then :
6184
6185 FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/Frameworks/$$out/$${out%.framework}'
6186
6187 else case e in #(
6188 e)
6189 FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/../Frameworks/$$out/$${out%.framework}'
6190 ;;
6191 esac
6192 fi
6193
6194
6195
6196
6197
6198
6199 OBJFW_FRAMEWORK="ObjFW.framework"
6200
6201 OBJFWHID_FRAMEWORK="ObjFWHID.framework"
6202
6203 build_framework="yes"
6204
6205 ;;
6206 *)
6207
6208 ;;
6209 esac
6210
6211
6212
6213
6214
6215
6216
6217 case "$host_os" in
6218 darwin*)
6219 if testscip-shell system . . test. x"$host_is_ios" = x"yes"
6220 then :
6221
6222 LINK_BUNDLE='${MKDIR_P} $$out && ${INSTALL} -m 644 Info.plist $$out/Info.plist && ${LD} -o $$out/$${out%.bundle} ${PLUGIN_OBJS} ${PLUGIN_OBJS_EXTRA} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}'
6223
6224 else case e in #(
6225 e)
6226 LINK_BUNDLE='${MKDIR_P} $$out/Contents/MacOS && ${INSTALL} -m 644 Info.plist $$out/Contents/Info.plist && ${LD} -o $$out/Contents/MacOS/$${out%.bundle} ${PLUGIN_OBJS} ${PLUGIN_OBJS_EXTRA} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}'
6227 ;;
6228 esac
6229 fi
6230
6231
6232
6233
6234 TESTPLUGIN_BUNDLE="TestPlugin.bundle"
6235
6236
6237 ;;
6238 *)
6239
6240 TESTPLUGIN_PLUGIN='TestPlugin${PLUGIN_SUFFIX}'
6241
6242
6243 ;;
6244 esac
6245
6246
6247 else case e in #(
6248 e)
6249
6250 printfscip-shell system . . printf. "%s\n" "#define OF_NO_SHARED 1" >>confdefs.h
6251
6252 LIBOBJFW_DEP="../src/libobjfw.a"
6253
6254 LIBOBJFW_DEP_LVL2="../../src/libobjfw.a"
6255
6256 LIBOBJFWHID_DEP="../src/hid/libobjfwhid.a"
6257
6258 LIBOBJFWHID_DEP_LVL2="../../src/hid/libobjfwhid.a"
6259
6260 ;;
6261 esac
6262 fi
6263
6264 if testscip-shell system . . test. x"$build_framework" = x"yes"
6265 then :
6266
6267 TESTS_LIBS="-framework ObjFW \${RUNTIME_FRAMEWORK_LIBS} $TESTS_LIBS"
6268 TESTS_LIBS="-framework ObjFWHID \${HID_FRAMEWORK_LIBS} $TESTS_LIBS"
6269 TESTS_LIBS="-F../src/hid -F../src/bridge $TESTS_LIBS"
6270 TESTS_LIBS="-F../src -F../src/runtime $TESTS_LIBS"
6271
6272 else case e in #(
6273 e)
6274 TESTS_LIBS="-lobjfw \${RUNTIME_LIBS} $TESTS_LIBS"
6275 TESTS_LIBS="-lobjfwhid \${HID_LIBS} $TESTS_LIBS"
6276 TESTS_LIBS="-L../src/hid -L../src/bridge $TESTS_LIBS"
6277 TESTS_LIBS="-L../src/runtime -L../src/runtime/linklib $TESTS_LIBS"
6278 TESTS_LIBS="-L../src $TESTS_LIBS"
6279 ;;
6280 esac
6281 fi
6282
6283 # Check whether --enable-static was given.
6284 if testscip-shell system . . test. ${enable_static+y}
6285 then :
6286 enableval=$enable_static;
6287 fi
6288
6289 if testscip-shell system . . test. x"$enable_shared" = x"no" -a x"$enable_amiga_lib" = x"no"
6290 then :
6291
6292 enable_static="yes"
6293
6294 fi
6295 if testscip-shell system . . test. x"$enable_static" = x"yes" -o x"$enable_amiga_lib" != x"no"
6296 then :
6297
6298 OBJFW_STATIC_LIB="libobjfw.a"
6299
6300 EXCEPTIONS_A="exceptions.a"
6301
6302 FORWARDING_A="forwarding.a"
6303
6304
6305 OBJFWHID_STATIC_LIB="libobjfwhid.a"
6306
6307
6308 fi
6309
6310 if testscip-shell system . . test. x"$enable_amiga_lib" != x"no"
6311 then :
6312
6313 LOOKUP_ASM_AMIGALIB_A="lookup-asm.amigalib.a"
6314
6315
6316 fi
6317
6318
6319 printfscip-shell system . . printf. "%s\n" "#define PLUGIN_SUFFIX \"$PLUGIN_SUFFIX\"" >>confdefs.h
6320
6321 if testscip-shell system . . test. x"$enable_files" != x"no" -a x"$PLUGIN_SUFFIX" != x""
6322 then :
6323
6324 USE_SRCS_MODULES='${SRCS_MODULES}'
6325
6326 TESTPLUGIN="plugin"
6327
6328
6329 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_MODULES 1" >>confdefs.h
6330
6331
6332 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_PLUGINS 1" >>confdefs.h
6333
6334 ac_config_files="$ac_config_files tests/plugin/Info.plist"
6335
6336
6337 if testscip-shell system . . test. x"$build_framework" = x"yes"
6338 then :
6339
6340 TESTPLUGIN_LIBS="-F../../src -F../../src/runtime"
6341 TESTPLUGIN_LIBS="$TESTPLUGIN_LIBS -framework ObjFW"
6342 TESTPLUGIN_LIBS="$TESTPLUGIN_LIBS \${RUNTIME_FRAMEWORK_LIBS}"
6343
6344 else case e in #(
6345 e)
6346 TESTPLUGIN_LIBS="-L../../src -L../../src/runtime"
6347 TESTPLUGIN_LIBS="$TESTPLUGIN_LIBS -lobjfw \${RUNTIME_LIBS}"
6348 ;;
6349 esac
6350 fi
6351
6352
6353 fi
6354
6355 if testscip-shell system . . test. x"$enable_amiga_lib" != x"no"
6356 then :
6357
6358 LINKLIB=linklib
6359
6360
6361 fi
6362
6363 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE" >&5
6364 printfscip-shell system . . printf. %s "checking whether we need -D_GNU_SOURCE... " >&6; }
6365 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368 #include <stdlib.h>
6369
6370 #if defined(__GLIBC__) || defined(__MINGW32__) || \
6371 defined(__NEWLIB__) || defined(__MORPHOS__) || defined(__MINT__)
6372 egrep_cpp_yes
6373 #endif
6374
6375 _ACEOF
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
6378 then :
6379
6380 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
6382 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 $CPPFLAGS"
6383 CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
6384 gnu_source="yes"
6385
6386 else case e in #(
6387 e)
6388 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 printfscip-shell system . . printf. "%s\n" "no" >&6; }
6390 ;;
6391 esac
6392 fi
6393 rmscip-shell system . . rm. -rf conftest*
6394
6395
6396 case "$host_os" in
6397 solaris*)
6398 CPPFLAGS="-D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS"
6399 ;;
6400 esac
6401
6402 objc_runtime="ObjFW runtime"
6403 ac_header= ac_cache=
6404 for ac_item in $ac_header_objc_list
6405 do
6406 if testscip-shell system . . test. $ac_cache; then
6407 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6408 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6409 printfscip-shell system . . printf. "%s\n" "#define $ac_item 1" >> confdefs.h
6410 fi
6411 ac_header= ac_cache=
6412 elif testscip-shell system . . test. $ac_header; then
6413 ac_cache=$ac_item
6414 else
6415 ac_header=$ac_item
6416 fi
6417 done
6418
6419
6420
6421
6422
6423
6424
6425
6426 if testscip-shell system . . test. $ac_cv_header_stdlib_h = yes && testscip-shell system . . test. $ac_cv_header_string_h = yes
6427 then :
6428
6429 printfscip-shell system . . printf. "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6430
6431 fi
6432 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "objc/objc.h" "ac_cv_header_objc_objc_h" "$ac_includes_default"
6433 if testscip-shell system . . test. "x$ac_cv_header_objc_objc_h" = xyes
6434 then :
6435
6436 fi
6437
6438 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking which Objective C runtime to use" >&5
6439 printfscip-shell system . . printf. %s "checking which Objective C runtime to use... " >&6; }
6440 # Check whether --enable-runtime was given.
6441 if testscip-shell system . . test. ${enable_runtime+y}
6442 then :
6443 enableval=$enable_runtime;
6444 fi
6445
6446 # Check whether --enable-seluid24 was given.
6447 if testscip-shell system . . test. ${enable_seluid24+y}
6448 then :
6449 enableval=$enable_seluid24;
6450 fi
6451
6452 if testscip-shell system . . test. x"$enable_runtime" != x"yes"
6453 then :
6454
6455 if testscip-shell system . . test. x"$ac_cv_header_objc_objc_h" = x"yes"
6456 then :
6457
6458 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460
6461 #import <objc/objc.h>
6462
6463 #ifdef OBJC_EXPORT
6464 egrep_cpp_yes
6465 #endif
6466
6467 _ACEOF
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
6470 then :
6471
6472 objc_runtime="Apple runtime"
6473
6474 else case e in #(
6475 e)
6476 :
6477 ;;
6478 esac
6479 fi
6480 rmscip-shell system . . rm. -rf conftest*
6481
6482
6483 fi
6484
6485 fi
6486 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $objc_runtime" >&5
6487 printfscip-shell system . . printf. "%s\n" "$objc_runtime" >&6; }
6488
6489 case "$objc_runtime" in
6490 "ObjFW runtime")
6491
6492 printfscip-shell system . . printf. "%s\n" "#define OF_OBJFW_RUNTIME 1" >>confdefs.h
6493
6494 USE_SRCS_TAGGED_POINTERS='${SRCS_TAGGED_POINTERS}'
6495
6496
6497 runtime_name="objfw-${objfw_version_major}.${objfw_version_minor}"
6498 runtime_flag="-fobjc-runtime=$runtime_name"
6499 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $runtime_flag is supported" >&5
6500 printfscip-shell system . . printf. %s "checking whether $runtime_flag is supported... " >&6; }
6501
6502 old_OBJCFLAGS="$OBJCFLAGS"
6503 OBJCFLAGS="$OBJCFLAGS -Xclang $runtime_flag"
6504 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506
6507
6508 #ifdef __has_attribute
6509 # if __has_attribute(objc_root_class)
6510 __attribute__((__objc_root_class__))
6511 # endif
6512 #endif
6513 @interface Test
6514 + (void)test;
6515 @end
6516
6517 @implementation Test
6518 + (void)test
6519 {
6520 }
6521 @end
6522
6523 void *
6524 objc_msg_lookup(void *obj, void *sel)
6525 {
6526 return (void *)0;
6527 }
6528
6529 void
6530 __objc_exec_class(void *module)
6531 {
6532 }
6533
6534 int
6535 main (void)
6536 {
6537
6538 [Test test];
6539
6540 ;
6541 return 0;
6542 }
6543
6544 _ACEOF
6545 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
6546 then :
6547
6548 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -Xclang $runtime_flag"
6549 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
6551
6552 else case e in #(
6553 e)
6554 OBJCFLAGS="$old_OBJCFLAGS -fgnu-runtime"
6555 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -fgnu-runtime"
6556 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 printfscip-shell system . . printf. "%s\n" "no" >&6; }
6558 old_compiler="yes"
6559 ;;
6560 esac
6561 fi
6562 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
6563 conftest$ac_exeext conftest.$ac_ext
6564
6565 RUNTIME="runtime"
6566
6567 ac_config_files="$ac_config_files src/runtime/Info.plist"
6568
6569
6570 if testscip-shell system . . test. x"$enable_shared" != x"no"
6571 then :
6572
6573 OBJFWRT_SHARED_LIB='${LIB_PREFIX}objfwrt${LIB_SUFFIX}'
6574
6575
6576 fi
6577
6578 if testscip-shell system . . test. x"$enable_static" = x"yes"
6579 then :
6580
6581 OBJFWRT_STATIC_LIB="libobjfwrt.a"
6582
6583 LOOKUP_ASM_A="lookup-asm.a"
6584
6585
6586 fi
6587
6588 if testscip-shell system . . test. x"$build_framework" = x"yes"
6589 then :
6590
6591 OBJFWRT_FRAMEWORK="ObjFWRT.framework"
6592
6593 RUNTIME_FRAMEWORK_LIBS="-framework ObjFWRT"
6594
6595
6596 fi
6597
6598 if testscip-shell system . . test. x"$enable_amiga_lib" != x"no"
6599 then :
6600
6601 RUNTIME_LIBS="-lobjfwrt.library"
6602
6603 tmp="../src/runtime/linklib/libobjfwrt.library.a"
6604 LIBOBJFWRT_DEP="$tmp"
6605
6606 LIBOBJFWRT_DEP_LVL2="../$tmp"
6607
6608
6609 else case e in #(
6610 e)
6611 RUNTIME_LIBS="-lobjfwrt"
6612
6613 ;;
6614 esac
6615 fi
6616 RUNTIME_STATIC_LIBS='${libdir}/libobjfwrt.a'
6617
6618
6619 if testscip-shell system . . test. x"$enable_shared" = x"no" \
6620 -a x"$enable_amiga_lib" = x"no"
6621 then :
6622
6623 LIBOBJFWRT_DEP="../src/runtime/libobjfwrt.a"
6624
6625 LIBOBJFWRT_DEP_LVL2="../../src/runtime/libobjfwrt.a"
6626
6627
6628 fi
6629
6630 if testscip-shell system . . test. x"$enable_seluid24" = x"yes"
6631 then :
6632
6633
6634 printfscip-shell system . . printf. "%s\n" "#define OF_SELUID24 1" >>confdefs.h
6635
6636
6637 fi
6638
6639 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exception type" >&5
6640 printfscip-shell system . . printf. %s "checking for exception type... " >&6; }
6641 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643
6644 #ifdef __SEH__
6645 egrep_cpp_yes
6646 #endif
6647
6648 _ACEOF
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
6651 then :
6652
6653 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: SEH" >&5
6654 printfscip-shell system . . printf. "%s\n" "SEH" >&6; }
6655 exception_type="SEH"
6656 raise_exception="_Unwind_RaiseException"
6657
6658 else case e in #(
6659 e)
6660 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662
6663 #ifdef __USING_SJLJ_EXCEPTIONS__
6664 egrep_cpp_yes
6665 #endif
6666
6667 _ACEOF
6668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6669 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
6670 then :
6671
6672 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: SjLj" >&5
6673 printfscip-shell system . . printf. "%s\n" "SjLj" >&6; }
6674 exception_type="SjLj"
6675 raise_exception="_Unwind_SjLj_RaiseException"
6676
6677 else case e in #(
6678 e)
6679 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: DWARF" >&5
6680 printfscip-shell system . . printf. "%s\n" "DWARF" >&6; }
6681 exception_type="DWARF"
6682 raise_exception="_Unwind_RaiseException"
6683 ;;
6684 esac
6685 fi
6686 rmscip-shell system . . rm. -rf conftest*
6687
6688 ;;
6689 esac
6690 fi
6691 rmscip-shell system . . rm. -rf conftest*
6692
6693
6694 as_ac_Search=`printfscip-shell system . . printf. "%s\n" "ac_cv_search_$raise_exception" | sedscip-shell system . . sed. "$as_sed_sh"`
6695 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $raise_exception" >&5
6696 printfscip-shell system . . printf. %s "checking for library containing $raise_exception... " >&6; }
6697 if eval test \${$as_ac_Search+y}
6698 then :
6699 printfscip-shell system . . printf. %s "(cached) " >&6
6700 else case e in #(
6701 e) ac_func_search_save_LIBS=$LIBS
6702 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704
6705 /* Override any GCC internal prototype to avoid an error.
6706 Use char because int might match the return type of a GCC
6707 builtin and then its argument prototype would still apply.
6708 The 'extern "C"' is for builds by C++ compilers;
6709 although this is not generally supported in C code supporting it here
6710 has little cost and some practical benefit (sr 110532). */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 char $raise_exception (void);
6715 int
6716 main (void)
6717 {
6718 return $raise_exception ();
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 for ac_lib in '' c++abi gcc_s gcc unwind
6724 do
6725 if testscip-shell system . . test. -z "$ac_lib"; then
6726 ac_res="none required"
6727 else
6728 ac_res=-l$ac_lib
6729 LIBS="-l$ac_lib -lpthread $ac_func_search_save_LIBS"
6730 fi
6731 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
6732 then :
6733 eval "$as_ac_Search=\$ac_res"
6734 fi
6735 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
6736 conftest$ac_exeext
6737 if eval test \${$as_ac_Search+y}
6738 then :
6739 break
6740 fi
6741 done
6742 if eval test \${$as_ac_Search+y}
6743 then :
6744
6745 else case e in #(
6746 e) eval "$as_ac_Search=no" ;;
6747 esac
6748 fi
6749 rmscip-shell system . . rm. conftest.$ac_ext
6750 LIBS=$ac_func_search_save_LIBS ;;
6751 esac
6752 fi
6753 eval ac_res=\$$as_ac_Search
6754 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6755 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
6756 eval ac_res=\$$as_ac_Search
6757 if testscip-shell system . . test. "$ac_res" != no
6758 then :
6759 testscip-shell system . . test. "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6760
6761 if testscip-shell system . . test. x"$ac_lib" = x"c++abi"
6762 then :
6763
6764 LIBS="-lpthread $LIBS"
6765 OBJFW_LIBS="-lpthread $OBJFW_LIBS"
6766
6767 fi
6768
6769 else case e in #(
6770 e)
6771 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$raise_exception missing!" "$LINENO" 5
6772 ;;
6773 esac
6774 fi
6775
6776
6777 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "_Unwind_GetDataRelBase" "ac_cv_func__Unwind_GetDataRelBase"
6778 if testscip-shell system . . test. "x$ac_cv_func__Unwind_GetDataRelBase" = xyes
6779 then :
6780 printfscip-shell system . . printf. "%s\n" "#define HAVE__UNWIND_GETDATARELBASE 1" >>confdefs.h
6781
6782 fi
6783 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "_Unwind_GetTextRelBase" "ac_cv_func__Unwind_GetTextRelBase"
6784 if testscip-shell system . . test. "x$ac_cv_func__Unwind_GetTextRelBase" = xyes
6785 then :
6786 printfscip-shell system . . printf. "%s\n" "#define HAVE__UNWIND_GETTEXTRELBASE 1" >>confdefs.h
6787
6788 fi
6789
6790 ;;
6791 "Apple runtime")
6792
6793 printfscip-shell system . . printf. "%s\n" "#define OF_APPLE_RUNTIME 1" >>confdefs.h
6794
6795
6796 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objc_msgSend in -lobjc" >&5
6797 printfscip-shell system . . printf. %s "checking for objc_msgSend in -lobjc... " >&6; }
6798 if testscip-shell system . . test. ${ac_cv_lib_objc_objc_msgSend+y}
6799 then :
6800 printfscip-shell system . . printf. %s "(cached) " >&6
6801 else case e in #(
6802 e) ac_check_lib_save_LIBS=$LIBS
6803 LIBS="-lobjc $LIBS"
6804 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806
6807 /* Override any GCC internal prototype to avoid an error.
6808 Use char because int might match the return type of a GCC
6809 builtin and then its argument prototype would still apply.
6810 The 'extern "C"' is for builds by C++ compilers;
6811 although this is not generally supported in C code supporting it here
6812 has little cost and some practical benefit (sr 110532). */
6813 #ifdef __cplusplus
6814 extern "C"
6815 #endif
6816 char objc_msgSend (void);
6817 int
6818 main (void)
6819 {
6820 return objc_msgSend ();
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
6826 then :
6827 ac_cv_lib_objc_objc_msgSend=yes
6828 else case e in #(
6829 e) ac_cv_lib_objc_objc_msgSend=no ;;
6830 esac
6831 fi
6832 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
6833 conftest$ac_exeext conftest.$ac_ext
6834 LIBS=$ac_check_lib_save_LIBS ;;
6835 esac
6836 fi
6837 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_objc_objc_msgSend" >&5
6838 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_objc_objc_msgSend" >&6; }
6839 if testscip-shell system . . test. "x$ac_cv_lib_objc_objc_msgSend" = xyes
6840 then :
6841
6842 RUNTIME_LIBS="-lobjc"
6843
6844 RUNTIME_FRAMEWORK_LIBS="-lobjc"
6845
6846 RUNTIME_STATIC_LIBS="-lobjc"
6847
6848
6849 else case e in #(
6850 e)
6851 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "libobjc not found!" "$LINENO" 5
6852 ;;
6853 esac
6854 fi
6855
6856
6857 old_OBJCFLAGS="$OBJCFLAGS"
6858 OBJCFLAGS="$OBJCFLAGS -lobjc"
6859
6860 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "objc_autoreleasePoolPush" "ac_cv_func_objc_autoreleasePoolPush"
6861 if testscip-shell system . . test. "x$ac_cv_func_objc_autoreleasePoolPush" = xyes
6862 then :
6863
6864 else case e in #(
6865 e)
6866 AUTORELEASE_FOUNDATION_M="autorelease-foundation.m"
6867
6868 LIBS="-framework Foundation"
6869 FRAMEWORK_LIBS="-framework Foundation"
6870 ;;
6871 esac
6872 fi
6873
6874 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "objc_constructInstance" "ac_cv_func_objc_constructInstance"
6875 if testscip-shell system . . test. "x$ac_cv_func_objc_constructInstance" = xyes
6876 then :
6877
6878 else case e in #(
6879 e)
6880 RUNTIME_INSTANCE_M="runtime/instance.m"
6881
6882
6883 printfscip-shell system . . printf. "%s\n" "#define OF_DECLARE_CONSTRUCT_INSTANCE 1" >>confdefs.h
6884
6885 ;;
6886 esac
6887 fi
6888
6889
6890 for ac_func in objc_setAssociatedObject
6891 do :
6892 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "objc_setAssociatedObject" "ac_cv_func_objc_setAssociatedObject"
6893 if testscip-shell system . . test. "x$ac_cv_func_objc_setAssociatedObject" = xyes
6894 then :
6895 printfscip-shell system . . printf. "%s\n" "#define HAVE_OBJC_SETASSOCIATEDOBJECT 1" >>confdefs.h
6896
6897 else case e in #(
6898 e)
6899 RUNTIME_ASSOCIATION_M="runtime/association.m"
6900
6901
6902 printfscip-shell system . . printf. "%s\n" "#define OF_DECLARE_SET_ASSOCIATED_OBJECT 1" >>confdefs.h
6903
6904 ;;
6905 esac
6906 fi
6907
6908 done
6909
6910 for ac_func in objc_retain
6911 do :
6912 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "objc_retain" "ac_cv_func_objc_retain"
6913 if testscip-shell system . . test. "x$ac_cv_func_objc_retain" = xyes
6914 then :
6915 printfscip-shell system . . printf. "%s\n" "#define HAVE_OBJC_RETAIN 1" >>confdefs.h
6916
6917 else case e in #(
6918 e)
6919 RUNTIME_ARC_M="runtime/arc.m"
6920
6921 ;;
6922 esac
6923 fi
6924
6925 done
6926
6927 OBJCFLAGS="$old_OBJCFLAGS"
6928 ;;
6929 esac
6930
6931 case "$host_os" in
6932 mint*)
6933 ;;
6934 hpux*)
6935 ;;
6936 *)
6937 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
6938 if testscip-shell system . . test. "x$ac_cv_func__Unwind_Backtrace" = xyes
6939 then :
6940 printfscip-shell system . . printf. "%s\n" "#define HAVE__UNWIND_BACKTRACE 1" >>confdefs.h
6941
6942 fi
6943
6944 ;;
6945 esac
6946
6947 case "$host_os" in
6948 darwin*)
6949 LDFLAGS_REEXPORT="-Wl,-reexport-lobjfw"
6950
6951
6952 if testscip-shell system . . test. x"$objc_runtime" = x"Apple runtime"
6953 then :
6954
6955 REEXPORT_RUNTIME="-Wl,-reexport-lobjc"
6956
6957 REEXPORT_RUNTIME_FRAMEWORK="-Wl,-reexport-lobjc"
6958
6959
6960 fi
6961
6962 if testscip-shell system . . test. x"$objc_runtime" = x"ObjFW runtime"
6963 then :
6964
6965 REEXPORT_RUNTIME="-Wl,-reexport-lobjfwrt"
6966
6967 REEXPORT_RUNTIME_FRAMEWORK="-Wl,-reexport_framework,ObjFWRT"
6968
6969
6970 fi
6971
6972 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sysdir.h" "ac_cv_header_sysdir_h" "$ac_includes_default"
6973 if testscip-shell system . . test. "x$ac_cv_header_sysdir_h" = xyes
6974 then :
6975 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYSDIR_H 1" >>confdefs.h
6976
6977 fi
6978
6979 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "sysdir_start_search_path_enumeration" "ac_cv_func_sysdir_start_search_path_enumeration"
6980 if testscip-shell system . . test. "x$ac_cv_func_sysdir_start_search_path_enumeration" = xyes
6981 then :
6982 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYSDIR_START_SEARCH_PATH_ENUMERATION 1" >>confdefs.h
6983
6984 fi
6985
6986
6987 if testscip-shell system . . test. x"$host_is_ios" = x"yes"
6988 then :
6989
6990 TESTS_STATIC_LIB=tests.a
6991
6992 TESTS_LIBS="$TESTS_LIBS -framework CoreFoundation"
6993
6994 fi
6995 ;;
6996 esac
6997
6998 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler supports ARC" >&5
6999 printfscip-shell system . . printf. %s "checking whether Objective C compiler supports ARC... " >&6; }
7000 old_OBJCFLAGS="$OBJCFLAGS"
7001 OBJCFLAGS="$OBJCFLAGS -fobjc-arc -fobjc-arc-exceptions"
7002 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005
7006 #ifdef __has_attribute
7007 # if __has_attribute(objc_root_class)
7008 __attribute__((__objc_root_class__))
7009 # endif
7010 #endif
7011 @interface Foo
7012 {
7013 struct objc_class *_isa;
7014 }
7015
7016 + (id)alloc;
7017 @end
7018
7019 @implementation Foo
7020 + (id)alloc
7021 {
7022 return (id)0;
7023 }
7024 @end
7025
7026 int
7027 main (void)
7028 {
7029
7030 __weak id foo = [Foo alloc];
7031 (void)foo;
7032
7033 ;
7034 return 0;
7035 }
7036
7037 _ACEOF
7038 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7039 then :
7040
7041 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7042 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7043 RUNTIME_ARC_TESTS_M=RuntimeARCTests.m
7044
7045
7046 else case e in #(
7047 e)
7048 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7050 ;;
7051 esac
7052 fi
7053 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7054 OBJCFLAGS="$old_OBJCFLAGS"
7055
7056 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7057 printfscip-shell system . . printf. %s "checking whether byte ordering is bigendian... " >&6; }
7058 if testscip-shell system . . test. ${ac_cv_c_bigendian+y}
7059 then :
7060 printfscip-shell system . . printf. %s "(cached) " >&6
7061 else case e in #(
7062 e) ac_cv_c_bigendian=unknown
7063 # See if we're dealing with a universal compiler.
7064 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #ifndef __APPLE_CC__
7067 not a universal capable compiler
7068 #endif
7069 typedef int dummy;
7070
7071 _ACEOF
7072 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7073 then :
7074
7075 # Check for potential -arch flags. It is not universal unless
7076 # there are at least two -arch flags with different values.
7077 ac_arch=
7078 ac_prev=
7079 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7080 if testscip-shell system . . test. -n "$ac_prev"; then
7081 case $ac_word in
7082 i?86 | x86_64 | ppc | ppc64)
7083 if testscip-shell system . . test. -z "$ac_arch" || testscip-shell system . . test. "$ac_arch" = "$ac_word"; then
7084 ac_arch=$ac_word
7085 else
7086 ac_cv_c_bigendian=universal
7087 break
7088 fi
7089 ;;
7090 esac
7091 ac_prev=
7092 elif testscip-shell system . . test. "x$ac_word" = "x-arch"; then
7093 ac_prev=arch
7094 fi
7095 done
7096 fi
7097 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7098 if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then
7099 # See if sys/param.h defines the BYTE_ORDER macro.
7100 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 #include <sys/types.h>
7103 #include <sys/param.h>
7104
7105 int
7106 main (void)
7107 {
7108 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
7109 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
7110 && LITTLE_ENDIAN)
7111 bogus endian macros
7112 #endif
7113
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7119 then :
7120 # It does; now see whether it defined to BIG_ENDIAN or not.
7121 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <sys/types.h>
7124 #include <sys/param.h>
7125
7126 int
7127 main (void)
7128 {
7129 #if BYTE_ORDER != BIG_ENDIAN
7130 not big endian
7131 #endif
7132
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7138 then :
7139 ac_cv_c_bigendian=yes
7140 else case e in #(
7141 e) ac_cv_c_bigendian=no ;;
7142 esac
7143 fi
7144 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7145 fi
7146 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7147 fi
7148 if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then
7149 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7150 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <limits.h>
7153
7154 int
7155 main (void)
7156 {
7157 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7158 bogus endian macros
7159 #endif
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7166 then :
7167 # It does; now see whether it defined to _BIG_ENDIAN or not.
7168 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #include <limits.h>
7171
7172 int
7173 main (void)
7174 {
7175 #ifndef _BIG_ENDIAN
7176 not big endian
7177 #endif
7178
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7184 then :
7185 ac_cv_c_bigendian=yes
7186 else case e in #(
7187 e) ac_cv_c_bigendian=no ;;
7188 esac
7189 fi
7190 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7191 fi
7192 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7193 fi
7194 if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then
7195 # Compile a test program.
7196 if testscip-shell system . . test. "$cross_compiling" = yes
7197 then :
7198 # Try to guess by grepping values from an object file.
7199 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 unsigned short int ascii_mm[] =
7202 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7203 unsigned short int ascii_ii[] =
7204 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7205 int use_ascii (int i) {
7206 return ascii_mm[i] + ascii_ii[i];
7207 }
7208 unsigned short int ebcdic_ii[] =
7209 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7210 unsigned short int ebcdic_mm[] =
7211 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7212 int use_ebcdic (int i) {
7213 return ebcdic_mm[i] + ebcdic_ii[i];
7214 }
7215 int
7216 main (int argc, char **argv)
7217 {
7218 /* Intimidate the compiler so that it does not
7219 optimize the arrays away. */
7220 char *p = argv[0];
7221 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
7222 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
7223 return use_ascii (argc) == use_ebcdic (*p);
7224 }
7225 _ACEOF
7226 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
7227 then :
7228 if grepscip-shell system . . grep. BIGenDianSyS conftest$ac_exeext >/dev/nullscip-shell filesystem . . `/dev/null`.; then
7229 ac_cv_c_bigendian=yes
7230 fi
7231 if grepscip-shell system . . grep. LiTTleEnDian conftest$ac_exeext >/dev/nullscip-shell filesystem . . `/dev/null`. ; then
7232 if testscip-shell system . . test. "$ac_cv_c_bigendian" = unknown; then
7233 ac_cv_c_bigendian=no
7234 else
7235 # finding both strings is unlikely to happen, but who knows?
7236 ac_cv_c_bigendian=unknown
7237 fi
7238 fi
7239 fi
7240 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
7241 conftest$ac_exeext conftest.$ac_ext
7242 else case e in #(
7243 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 int
7247 main (void)
7248 {
7249
7250 /* Are we little or big endian? From Harbison&Steele. */
7251 union
7252 {
7253 long int l;
7254 char c[sizeof (long int)];
7255 } u;
7256 u.l = 1;
7257 return u.c[sizeof (long int) - 1] == 1;
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_objc_try_runscip-shell shell shell-project 0.0.0 ac_fn_objc_try_run(). "$LINENO"
7264 then :
7265 ac_cv_c_bigendian=no
7266 else case e in #(
7267 e) ac_cv_c_bigendian=yes ;;
7268 esac
7269 fi
7270 rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7271 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7272 esac
7273 fi
7274
7275 fi ;;
7276 esac
7277 fi
7278 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7279 printfscip-shell system . . printf. "%s\n" "$ac_cv_c_bigendian" >&6; }
7280 case $ac_cv_c_bigendian in #(
7281 yes)
7282
7283
7284 printfscip-shell system . . printf. "%s\n" "#define OF_BIG_ENDIAN 1" >>confdefs.h
7285
7286 ;; #(
7287 no)
7288 ;; #(
7289 universal)
7290
7291 printfscip-shell system . . printf. "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7292
7293 ;; #(
7294 *)
7295 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unknown endianness
7296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7297 esac
7298
7299 if testscip-shell system . . test. x"$ac_cv_c_bigendian" = x"universal"
7300 then :
7301
7302
7303 printfscip-shell system . . printf. "%s\n" "#define OF_UNIVERSAL 1" >>confdefs.h
7304
7305
7306 fi
7307
7308 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSIZE_MAX" >&5
7309 printfscip-shell system . . printf. %s "checking for SSIZE_MAX... " >&6; }
7310 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 #include <stdint.h>
7314 #include <limits.h>
7315
7316 #ifdef SSIZE_MAX
7317 egrep_cpp_yes
7318 #endif
7319
7320 _ACEOF
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
7323 then :
7324
7325 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7327
7328 else case e in #(
7329 e)
7330 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7332
7333 printfscip-shell system . . printf. "%s\n" "#define SSIZE_MAX (SIZE_MAX / 2)" >>confdefs.h
7334
7335 ;;
7336 esac
7337 fi
7338 rmscip-shell system . . rm. -rf conftest*
7339
7340 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UINTPTR_MAX" >&5
7341 printfscip-shell system . . printf. %s "checking for UINTPTR_MAX... " >&6; }
7342 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344
7345 #include <stdint.h>
7346 #include <limits.h>
7347
7348 #ifdef UINTPTR_MAX
7349 egrep_cpp_yes
7350 #endif
7351
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
7355 then :
7356
7357 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7359
7360 else case e in #(
7361 e)
7362 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7364 # The cast to long int works around a bug in the HP C Compiler
7365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7366 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7367 # This bug is HP SR number 8606223364.
7368 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
7369 printfscip-shell system . . printf. %s "checking size of uintptr_t... " >&6; }
7370 if testscip-shell system . . test. ${ac_cv_sizeof_uintptr_t+y}
7371 then :
7372 printfscip-shell system . . printf. %s "(cached) " >&6
7373 else case e in #(
7374 e) if ac_fn_objc_compute_intscip-shell shell shell-project 0.0.0 ac_fn_objc_compute_int(). "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
7375 then :
7376
7377 else case e in #(
7378 e) if testscip-shell system . . test. "$ac_cv_type_uintptr_t" = yes; then
7379 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7380 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7381 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "cannot compute sizeof (uintptr_t)
7382 See 'config.log' for more details" "$LINENO" 5; }
7383 else
7384 ac_cv_sizeof_uintptr_t=0
7385 fi ;;
7386 esac
7387 fi
7388 ;;
7389 esac
7390 fi
7391 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
7392 printfscip-shell system . . printf. "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
7393
7394
7395
7396 printfscip-shell system . . printf. "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
7397
7398
7399 case "$ac_cv_sizeof_uintptr_t" in
7400 4)
7401 uintptr_max="0xFFFFFFFF"
7402 ;;
7403 8)
7404 uintptr_max="0xFFFFFFFFFFFFFFFF"
7405 ;;
7406 *)
7407 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not determine UINTPTR_MAX!" "$LINENO" 5
7408 ;;
7409 esac
7410
7411
7412 printfscip-shell system . . printf. "%s\n" "#define UINTPTR_MAX $uintptr_max" >>confdefs.h
7413
7414 ;;
7415 esac
7416 fi
7417 rmscip-shell system . . rm. -rf conftest*
7418
7419
7420 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7421 if testscip-shell system . . test. "x$ac_cv_header_inttypes_h" = xyes
7422 then :
7423
7424 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_INTTYPES_H 1" >>confdefs.h
7425
7426 fi
7427
7428
7429 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
7430 if testscip-shell system . . test. "x$ac_cv_header_sys_types_h" = xyes
7431 then :
7432
7433 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SYS_TYPES_H 1" >>confdefs.h
7434
7435 fi
7436
7437
7438 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
7439 if testscip-shell system . . test. "x$ac_cv_header_stdnoreturn_h" = xyes
7440 then :
7441
7442 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_STDNORETURN_H 1" >>confdefs.h
7443
7444 fi
7445
7446
7447 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7448 if testscip-shell system . . test. "x$ac_cv_type_wchar_t" = xyes
7449 then :
7450
7451 printfscip-shell system . . printf. "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
7452
7453
7454 fi
7455
7456 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7457 if testscip-shell system . . test. "x$ac_cv_header_wchar_h" = xyes
7458 then :
7459 printfscip-shell system . . printf. "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
7460
7461 fi
7462
7463
7464 # The cast to long int works around a bug in the HP C Compiler
7465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7466 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7467 # This bug is HP SR number 8606223364.
7468 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7469 printfscip-shell system . . printf. %s "checking size of float... " >&6; }
7470 if testscip-shell system . . test. ${ac_cv_sizeof_float+y}
7471 then :
7472 printfscip-shell system . . printf. %s "(cached) " >&6
7473 else case e in #(
7474 e) if ac_fn_objc_compute_intscip-shell shell shell-project 0.0.0 ac_fn_objc_compute_int(). "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
7475 then :
7476
7477 else case e in #(
7478 e) if testscip-shell system . . test. "$ac_cv_type_float" = yes; then
7479 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7480 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7481 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "cannot compute sizeof (float)
7482 See 'config.log' for more details" "$LINENO" 5; }
7483 else
7484 ac_cv_sizeof_float=0
7485 fi ;;
7486 esac
7487 fi
7488 ;;
7489 esac
7490 fi
7491 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7492 printfscip-shell system . . printf. "%s\n" "$ac_cv_sizeof_float" >&6; }
7493
7494
7495
7496 printfscip-shell system . . printf. "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
7497
7498
7499 # The cast to long int works around a bug in the HP C Compiler
7500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7501 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7502 # This bug is HP SR number 8606223364.
7503 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7504 printfscip-shell system . . printf. %s "checking size of double... " >&6; }
7505 if testscip-shell system . . test. ${ac_cv_sizeof_double+y}
7506 then :
7507 printfscip-shell system . . printf. %s "(cached) " >&6
7508 else case e in #(
7509 e) if ac_fn_objc_compute_intscip-shell shell shell-project 0.0.0 ac_fn_objc_compute_int(). "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
7510 then :
7511
7512 else case e in #(
7513 e) if testscip-shell system . . test. "$ac_cv_type_double" = yes; then
7514 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7515 printfscip-shell system . . printf. "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7516 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "cannot compute sizeof (double)
7517 See 'config.log' for more details" "$LINENO" 5; }
7518 else
7519 ac_cv_sizeof_double=0
7520 fi ;;
7521 esac
7522 fi
7523 ;;
7524 esac
7525 fi
7526 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7527 printfscip-shell system . . printf. "%s\n" "$ac_cv_sizeof_double" >&6; }
7528
7529
7530
7531 printfscip-shell system . . printf. "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
7532
7533
7534 if testscip-shell system . . test. x"$ac_cv_sizeof_float" != x"4" -o x"$ac_cv_sizeof_double" != x"8"
7535 then :
7536 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Floating point implementation does not conform to IEEE 754!" "$LINENO" 5
7537 fi
7538
7539 case "$host_os" in
7540 mingw*)
7541 ;;
7542 *)
7543 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working _Float16" >&5
7544 printfscip-shell system . . printf. %s "checking for working _Float16... " >&6; }
7545 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548
7549 _Float16 f16;
7550 float f32;
7551
7552 int
7553 main (void)
7554 {
7555
7556 f32 = f16;
7557
7558 ;
7559 return 0;
7560 }
7561
7562 _ACEOF
7563 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
7564 then :
7565
7566 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7567 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7568
7569 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE__FLOAT16 1" >>confdefs.h
7570
7571
7572 else case e in #(
7573 e)
7574 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7576 ;;
7577 esac
7578 fi
7579 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
7580 conftest$ac_exeext conftest.$ac_ext
7581 esac
7582
7583 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floating point endianness" >&5
7584 printfscip-shell system . . printf. %s "checking for floating point endianness... " >&6; }
7585 fp_endianness="unknown"
7586 if testscip-shell system . . test. x"$ac_cv_c_bigendian" != x"universal"
7587 then :
7588
7589 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591
7592
7593 double endianness = 2.993700760838795055656993580068609688772747263874402942272934826871811872228512759832626847251963763755836687759498519784550143745834860002945223766052808125982053455555265216112722718870586961456110693379343178124592311441022662940307099598578775368547768968914916965731708568179631324904813506101190853720749196062963892799499230635163056742330563321122389331703618066046034494287335316842529021563862331183541255013987734473643350285400060357711238514186776429325214739886098119655678483017894951556639821088508565036657794343031121375178126860889964700274558728491825977274341798997758923017217660272136611938897932105874133412726223468780517578125e-259;
7594
7595
7596 _ACEOF
7597 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7598 then :
7599
7600 if $SED 's/[^[:print:]]//g' <conftest.$ac_objext | \
7601 $EGREP BigEnd >/dev/nullscip-shell filesystem . . `/dev/null`.
7602 then :
7603
7604
7605 printfscip-shell system . . printf. "%s\n" "#define OF_FLOAT_BIG_ENDIAN 1" >>confdefs.h
7606
7607 fp_endianness="big endian"
7608
7609 else case e in #(
7610 e)
7611 if $SED 's/[^[:print:]]//g' \
7612 <conftest.$ac_objext | $EGREP dnEgiB >/dev/nullscip-shell filesystem . . `/dev/null`.
7613 then :
7614
7615 fp_endianness="little endian"
7616
7617 fi
7618 ;;
7619 esac
7620 fi
7621
7622 fi
7623 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7624
7625 else case e in #(
7626 e)
7627 fp_endianness="universal"
7628 ;;
7629 esac
7630 fi
7631 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fp_endianness" >&5
7632 printfscip-shell system . . printf. "%s\n" "$fp_endianness" >&6; }
7633 if testscip-shell system . . test. x"$fp_endianness" = x"unknown"
7634 then :
7635
7636 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Floating point implementation does not conform to IEEE 754!" "$LINENO" 5
7637 fi
7638
7639 case "$host_cpu" in
7640 arm* | earm*)
7641 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blx" >&5
7642 printfscip-shell system . . printf. %s "checking for blx... " >&6; }
7643 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645
7646
7647 int
7648 main (void)
7649 {
7650
7651 #if !defined(__arm64__) && !defined(__arch64__) && \
7652 !defined(__ARM64_ARCH_8__)
7653 __asm__ __volatile__ (
7654 "blx r12"
7655 );
7656 #endif
7657
7658 ;
7659 return 0;
7660 }
7661
7662 _ACEOF
7663 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7664 then :
7665
7666
7667 printfscip-shell system . . printf. "%s\n" "#define HAVE_BLX 1" >>confdefs.h
7668
7669 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7670 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7671
7672 else case e in #(
7673 e)
7674 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7676 ;;
7677 esac
7678 fi
7679 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7680
7681 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VFP2 or above" >&5
7682 printfscip-shell system . . printf. %s "checking for VFP2 or above... " >&6; }
7683 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685
7686
7687 int
7688 main (void)
7689 {
7690
7691 #if !defined(__arm64__) && !defined(__aarch64__) && \
7692 !defined(__ARM64_ARCH_8__)
7693 __asm__ __volatile__ (
7694 "vstmdb sp!, {d0-d7}"
7695 );
7696 #endif
7697
7698 ;
7699 return 0;
7700 }
7701
7702 _ACEOF
7703 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7704 then :
7705
7706
7707 printfscip-shell system . . printf. "%s\n" "#define HAVE_VFP2 1" >>confdefs.h
7708
7709 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7710 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7711
7712 else case e in #(
7713 e)
7714 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7716 ;;
7717 esac
7718 fi
7719 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7720 ;;
7721 aarch64* | arm64*)
7722 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bti" >&5
7723 printfscip-shell system . . printf. %s "checking for bti... " >&6; }
7724 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726
7727
7728 int
7729 main (void)
7730 {
7731
7732 __asm__ __volatile__ ("bti c");
7733
7734 ;
7735 return 0;
7736 }
7737
7738 _ACEOF
7739 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
7740 then :
7741
7742
7743 printfscip-shell system . . printf. "%s\n" "#define HAVE_BTI 1" >>confdefs.h
7744
7745 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
7747
7748 else case e in #(
7749 e)
7750 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 printfscip-shell system . . printf. "%s\n" "no" >&6; }
7752 ;;
7753 esac
7754 fi
7755 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7756 ;;
7757 i?86 | x86_64)
7758 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "cet.h" "ac_cv_header_cet_h" "$ac_includes_default"
7759 if testscip-shell system . . test. "x$ac_cv_header_cet_h" = xyes
7760 then :
7761 printfscip-shell system . . printf. "%s\n" "#define HAVE_CET_H 1" >>confdefs.h
7762
7763 fi
7764
7765 ;;
7766 esac
7767
7768 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
7769 printfscip-shell system . . printf. %s "checking for fmod in -lm... " >&6; }
7770 if testscip-shell system . . test. ${ac_cv_lib_m_fmod+y}
7771 then :
7772 printfscip-shell system . . printf. %s "(cached) " >&6
7773 else case e in #(
7774 e) ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lm $LIBS"
7776 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 /* Override any GCC internal prototype to avoid an error.
7780 Use char because int might match the return type of a GCC
7781 builtin and then its argument prototype would still apply.
7782 The 'extern "C"' is for builds by C++ compilers;
7783 although this is not generally supported in C code supporting it here
7784 has little cost and some practical benefit (sr 110532). */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 char fmod (void);
7789 int
7790 main (void)
7791 {
7792 return fmod ();
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
7798 then :
7799 ac_cv_lib_m_fmod=yes
7800 else case e in #(
7801 e) ac_cv_lib_m_fmod=no ;;
7802 esac
7803 fi
7804 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS ;;
7807 esac
7808 fi
7809 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
7810 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_m_fmod" >&6; }
7811 if testscip-shell system . . test. "x$ac_cv_lib_m_fmod" = xyes
7812 then :
7813
7814 LIBS="-lm $LIBS"
7815 OBJFW_LIBS="-lm $OBJFW_LIBS"
7816
7817 fi
7818
7819 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for creal in -lcomplex" >&5
7820 printfscip-shell system . . printf. %s "checking for creal in -lcomplex... " >&6; }
7821 if testscip-shell system . . test. ${ac_cv_lib_complex_creal+y}
7822 then :
7823 printfscip-shell system . . printf. %s "(cached) " >&6
7824 else case e in #(
7825 e) ac_check_lib_save_LIBS=$LIBS
7826 LIBS="-lcomplex $LIBS"
7827 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829
7830 /* Override any GCC internal prototype to avoid an error.
7831 Use char because int might match the return type of a GCC
7832 builtin and then its argument prototype would still apply.
7833 The 'extern "C"' is for builds by C++ compilers;
7834 although this is not generally supported in C code supporting it here
7835 has little cost and some practical benefit (sr 110532). */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 char creal (void);
7840 int
7841 main (void)
7842 {
7843 return creal ();
7844 ;
7845 return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
7849 then :
7850 ac_cv_lib_complex_creal=yes
7851 else case e in #(
7852 e) ac_cv_lib_complex_creal=no ;;
7853 esac
7854 fi
7855 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS ;;
7858 esac
7859 fi
7860 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_complex_creal" >&5
7861 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_complex_creal" >&6; }
7862 if testscip-shell system . . test. "x$ac_cv_lib_complex_creal" = xyes
7863 then :
7864 TESTS_LIBS="-lcomplex $TESTS_LIBS"
7865 fi
7866
7867
7868 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "strtof" "ac_cv_func_strtof"
7869 if testscip-shell system . . test. "x$ac_cv_func_strtof" = xyes
7870 then :
7871 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
7872
7873 fi
7874 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "truncf" "ac_cv_func_truncf"
7875 if testscip-shell system . . test. "x$ac_cv_func_truncf" = xyes
7876 then :
7877 printfscip-shell system . . printf. "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
7878
7879 fi
7880
7881
7882 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "asprintf" "ac_cv_func_asprintf"
7883 if testscip-shell system . . test. "x$ac_cv_func_asprintf" = xyes
7884 then :
7885
7886 case "$host" in
7887 *-*-mint*)
7888 have_asprintf="no"
7889 ;;
7890 *-*-mingw*)
7891 have_asprintf="no"
7892 ;;
7893 *-psp-*)
7894 have_asprintf="no"
7895 ;;
7896 *)
7897 have_asprintf="yes"
7898
7899 printfscip-shell system . . printf. "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
7900
7901 ;;
7902 esac
7903
7904 else case e in #(
7905 e)
7906 have_asprintf="no"
7907 ;;
7908 esac
7909 fi
7910
7911
7912 # Check whether --enable-unicode-tables was given.
7913 if testscip-shell system . . test. ${enable_unicode_tables+y}
7914 then :
7915 enableval=$enable_unicode_tables;
7916 fi
7917
7918 if testscip-shell system . . test. x"$enable_unicode_tables" != x"no"
7919 then :
7920
7921
7922 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_UNICODE_TABLES 1" >>confdefs.h
7923
7924 UNICODE_M="unicode.m"
7925
7926
7927 fi
7928
7929 ENCODINGS_SRCS=""
7930
7931
7932 # Check whether --enable-codepage-437 was given.
7933 if testscip-shell system . . test. ${enable_codepage_437+y}
7934 then :
7935 enableval=$enable_codepage_437;
7936 fi
7937
7938 if testscip-shell system . . test. x"$enable_codepage_437" != x"no"
7939 then :
7940
7941
7942 printfscip-shell system . . printf. "%s\n" "#define HAVE_CODEPAGE_437 1" >>confdefs.h
7943
7944 ENCODINGS_SRCS="$ENCODINGS_SRCS codepage-437.m"
7945
7946 fi
7947
7948
7949 # Check whether --enable-codepage-850 was given.
7950 if testscip-shell system . . test. ${enable_codepage_850+y}
7951 then :
7952 enableval=$enable_codepage_850;
7953 fi
7954
7955 if testscip-shell system . . test. x"$enable_codepage_850" != x"no"
7956 then :
7957
7958
7959 printfscip-shell system . . printf. "%s\n" "#define HAVE_CODEPAGE_850 1" >>confdefs.h
7960
7961 ENCODINGS_SRCS="$ENCODINGS_SRCS codepage-850.m"
7962
7963 fi
7964
7965
7966 # Check whether --enable-codepage-852 was given.
7967 if testscip-shell system . . test. ${enable_codepage_852+y}
7968 then :
7969 enableval=$enable_codepage_852;
7970 fi
7971
7972 if testscip-shell system . . test. x"$enable_codepage_852" != x"no"
7973 then :
7974
7975
7976 printfscip-shell system . . printf. "%s\n" "#define HAVE_CODEPAGE_852 1" >>confdefs.h
7977
7978 ENCODINGS_SRCS="$ENCODINGS_SRCS codepage-852.m"
7979
7980 fi
7981
7982
7983 # Check whether --enable-codepage-858 was given.
7984 if testscip-shell system . . test. ${enable_codepage_858+y}
7985 then :
7986 enableval=$enable_codepage_858;
7987 fi
7988
7989 if testscip-shell system . . test. x"$enable_codepage_858" != x"no"
7990 then :
7991
7992
7993 printfscip-shell system . . printf. "%s\n" "#define HAVE_CODEPAGE_858 1" >>confdefs.h
7994
7995 ENCODINGS_SRCS="$ENCODINGS_SRCS codepage-858.m"
7996
7997 fi
7998
7999
8000 # Check whether --enable-iso-8859-2 was given.
8001 if testscip-shell system . . test. ${enable_iso_8859_2+y}
8002 then :
8003 enableval=$enable_iso_8859_2;
8004 fi
8005
8006 if testscip-shell system . . test. x"$enable_iso_8859_2" != x"no"
8007 then :
8008
8009
8010 printfscip-shell system . . printf. "%s\n" "#define HAVE_ISO_8859_2 1" >>confdefs.h
8011
8012 ENCODINGS_SRCS="$ENCODINGS_SRCS iso-8859-2.m"
8013
8014 fi
8015
8016
8017 # Check whether --enable-iso-8859-3 was given.
8018 if testscip-shell system . . test. ${enable_iso_8859_3+y}
8019 then :
8020 enableval=$enable_iso_8859_3;
8021 fi
8022
8023 if testscip-shell system . . test. x"$enable_iso_8859_3" != x"no"
8024 then :
8025
8026
8027 printfscip-shell system . . printf. "%s\n" "#define HAVE_ISO_8859_3 1" >>confdefs.h
8028
8029 ENCODINGS_SRCS="$ENCODINGS_SRCS iso-8859-3.m"
8030
8031 fi
8032
8033
8034 # Check whether --enable-iso-8859-15 was given.
8035 if testscip-shell system . . test. ${enable_iso_8859_15+y}
8036 then :
8037 enableval=$enable_iso_8859_15;
8038 fi
8039
8040 if testscip-shell system . . test. x"$enable_iso_8859_15" != x"no"
8041 then :
8042
8043
8044 printfscip-shell system . . printf. "%s\n" "#define HAVE_ISO_8859_15 1" >>confdefs.h
8045
8046 ENCODINGS_SRCS="$ENCODINGS_SRCS iso-8859-15.m"
8047
8048 fi
8049
8050
8051 # Check whether --enable-koi8-r was given.
8052 if testscip-shell system . . test. ${enable_koi8_r+y}
8053 then :
8054 enableval=$enable_koi8_r;
8055 fi
8056
8057 if testscip-shell system . . test. x"$enable_koi8_r" != x"no"
8058 then :
8059
8060
8061 printfscip-shell system . . printf. "%s\n" "#define HAVE_KOI8_R 1" >>confdefs.h
8062
8063 ENCODINGS_SRCS="$ENCODINGS_SRCS koi8-r.m"
8064
8065 fi
8066
8067
8068 # Check whether --enable-koi8-u was given.
8069 if testscip-shell system . . test. ${enable_koi8_u+y}
8070 then :
8071 enableval=$enable_koi8_u;
8072 fi
8073
8074 if testscip-shell system . . test. x"$enable_koi8_u" != x"no"
8075 then :
8076
8077
8078 printfscip-shell system . . printf. "%s\n" "#define HAVE_KOI8_U 1" >>confdefs.h
8079
8080 ENCODINGS_SRCS="$ENCODINGS_SRCS koi8-u.m"
8081
8082 fi
8083
8084
8085 # Check whether --enable-mac-roman was given.
8086 if testscip-shell system . . test. ${enable_mac_roman+y}
8087 then :
8088 enableval=$enable_mac_roman;
8089 fi
8090
8091 if testscip-shell system . . test. x"$enable_mac_roman" != x"no"
8092 then :
8093
8094
8095 printfscip-shell system . . printf. "%s\n" "#define HAVE_MAC_ROMAN 1" >>confdefs.h
8096
8097 ENCODINGS_SRCS="$ENCODINGS_SRCS mac-roman.m"
8098
8099 fi
8100
8101
8102 # Check whether --enable-windows-1250 was given.
8103 if testscip-shell system . . test. ${enable_windows_1250+y}
8104 then :
8105 enableval=$enable_windows_1250;
8106 fi
8107
8108 if testscip-shell system . . test. x"$enable_windows_1250" != x"no"
8109 then :
8110
8111
8112 printfscip-shell system . . printf. "%s\n" "#define HAVE_WINDOWS_1250 1" >>confdefs.h
8113
8114 ENCODINGS_SRCS="$ENCODINGS_SRCS windows-1250.m"
8115
8116 fi
8117
8118
8119 # Check whether --enable-windows-1251 was given.
8120 if testscip-shell system . . test. ${enable_windows_1251+y}
8121 then :
8122 enableval=$enable_windows_1251;
8123 fi
8124
8125 if testscip-shell system . . test. x"$enable_windows_1251" != x"no"
8126 then :
8127
8128
8129 printfscip-shell system . . printf. "%s\n" "#define HAVE_WINDOWS_1251 1" >>confdefs.h
8130
8131 ENCODINGS_SRCS="$ENCODINGS_SRCS windows-1251.m"
8132
8133 fi
8134
8135
8136 # Check whether --enable-windows-1252 was given.
8137 if testscip-shell system . . test. ${enable_windows_1252+y}
8138 then :
8139 enableval=$enable_windows_1252;
8140 fi
8141
8142 if testscip-shell system . . test. x"$enable_windows_1252" != x"no"
8143 then :
8144
8145
8146 printfscip-shell system . . printf. "%s\n" "#define HAVE_WINDOWS_1252 1" >>confdefs.h
8147
8148 ENCODINGS_SRCS="$ENCODINGS_SRCS windows-1252.m"
8149
8150 fi
8151
8152
8153 if testscip-shell system . . test. x"$ENCODINGS_SRCS" = x""
8154 then :
8155
8156 ENCODINGS_SRCS="dummy.m"
8157
8158 fi
8159
8160 if testscip-shell system . . test. x"$enable_shared" != x"no"
8161 then :
8162
8163 ENCODINGS_LIB_A="encodings.lib.a"
8164
8165
8166 fi
8167 if testscip-shell system . . test. x"$enable_static" = x"yes" -o x"$enable_shared" = x"no"
8168 then :
8169
8170 ENCODINGS_A="encodings.a"
8171
8172
8173 fi
8174
8175
8176 for ac_func in arc4random arc4random_buf getrandom random
8177 do :
8178 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
8179 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
8180 if eval test \"x\$"$as_ac_var"\" = x"yes"
8181 then :
8182 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
8183 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
8184 _ACEOF
8185 break
8186 fi
8187
8188 done
8189
8190 if testscip-shell system . . test. x"$host_os" != x"morphos"
8191 then :
8192
8193 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8194 printfscip-shell system . . printf. %s "checking for dlopen in -ldl... " >&6; }
8195 if testscip-shell system . . test. ${ac_cv_lib_dl_dlopen+y}
8196 then :
8197 printfscip-shell system . . printf. %s "(cached) " >&6
8198 else case e in #(
8199 e) ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldl $LIBS"
8201 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203
8204 /* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply.
8207 The 'extern "C"' is for builds by C++ compilers;
8208 although this is not generally supported in C code supporting it here
8209 has little cost and some practical benefit (sr 110532). */
8210 #ifdef __cplusplus
8211 extern "C"
8212 #endif
8213 char dlopen (void);
8214 int
8215 main (void)
8216 {
8217 return dlopen ();
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8223 then :
8224 ac_cv_lib_dl_dlopen=yes
8225 else case e in #(
8226 e) ac_cv_lib_dl_dlopen=no ;;
8227 esac
8228 fi
8229 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS ;;
8232 esac
8233 fi
8234 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8235 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
8236 if testscip-shell system . . test. "x$ac_cv_lib_dl_dlopen" = xyes
8237 then :
8238
8239 LIBS="-ldl $LIBS"
8240 OBJFW_LIBS="-ldl $OBJFW_LIBS"
8241
8242 fi
8243
8244
8245 fi
8246
8247
8248 case "$host_os" in
8249 netbsd*)
8250 ;;
8251 morphos*)
8252 ;;
8253 *)
8254 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "dladdr" "ac_cv_func_dladdr"
8255 if testscip-shell system . . test. "x$ac_cv_func_dladdr" = xyes
8256 then :
8257 printfscip-shell system . . printf. "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
8258
8259 fi
8260
8261 ;;
8262 esac
8263
8264 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
8265 if testscip-shell system . . test. "x$ac_cv_header_sys_mman_h" = xyes
8266 then :
8267 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
8268
8269 fi
8270
8271 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "mmap" "ac_cv_func_mmap"
8272 if testscip-shell system . . test. "x$ac_cv_func_mmap" = xyes
8273 then :
8274 printfscip-shell system . . printf. "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8275
8276 fi
8277 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "mlock" "ac_cv_func_mlock"
8278 if testscip-shell system . . test. "x$ac_cv_func_mlock" = xyes
8279 then :
8280 printfscip-shell system . . printf. "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
8281
8282 fi
8283
8284
8285 # Check whether --enable-threads was given.
8286 if testscip-shell system . . test. ${enable_threads+y}
8287 then :
8288 enableval=$enable_threads;
8289 fi
8290
8291 if testscip-shell system . . test. x"$enable_threads" != x"no"
8292 then :
8293
8294 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threads" >&5
8295 printfscip-shell system . . printf. %s "checking for threads... " >&6; }
8296
8297 case "$host_os" in
8298 amigaos* | morphos*)
8299 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: Amiga" >&5
8300 printfscip-shell system . . printf. "%s\n" "Amiga" >&6; }
8301 have_amiga_threads="yes"
8302 ;;
8303 mingw*)
8304 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: WinAPI" >&5
8305 printfscip-shell system . . printf. "%s\n" "WinAPI" >&6; }
8306 ;;
8307 *)
8308 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: POSIX" >&5
8309 printfscip-shell system . . printf. "%s\n" "POSIX" >&6; }
8310
8311 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler accepts -Wp,-pthread" >&5
8312 printfscip-shell system . . printf. %s "checking whether Objective C compiler accepts -Wp,-pthread... " >&6; }
8313 if testscip-shell system . . test. ${ax_cv_objc_flags__Wp+y}
8314 then :
8315 printfscip-shell system . . printf. %s "(cached) " >&6
8316 else case e in #(
8317 e)
8318 ax_save_FLAGS=$OBJCFLAGS
8319 OBJCFLAGS="-Wp,-pthread"
8320 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322
8323 int
8324 main (void)
8325 {
8326
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
8332 then :
8333 ax_cv_objc_flags__Wp=yes
8334 else case e in #(
8335 e) ax_cv_objc_flags__Wp=no ;;
8336 esac
8337 fi
8338 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8339 OBJCFLAGS=$ax_save_FLAGS ;;
8340 esac
8341 fi
8342
8343 eval ax_check_compiler_flags=$ax_cv_objc_flags__Wp
8344 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
8345 printfscip-shell system . . printf. "%s\n" "$ax_check_compiler_flags" >&6; }
8346 if testscip-shell system . . test. "x$ax_check_compiler_flags" = xyes; then
8347
8348 CPPFLAGS="$CPPFLAGS -Wp,-pthread"
8349
8350 else
8351
8352 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"
8353
8354 fi
8355
8356
8357 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
8358 printfscip-shell system . . printf. %s "checking for main in -lpthread... " >&6; }
8359 if testscip-shell system . . test. ${ac_cv_lib_pthread_main+y}
8360 then :
8361 printfscip-shell system . . printf. %s "(cached) " >&6
8362 else case e in #(
8363 e) ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lpthread $LIBS"
8365 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367
8368
8369 int
8370 main (void)
8371 {
8372 return main ();
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8378 then :
8379 ac_cv_lib_pthread_main=yes
8380 else case e in #(
8381 e) ac_cv_lib_pthread_main=no ;;
8382 esac
8383 fi
8384 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS ;;
8387 esac
8388 fi
8389 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
8390 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_pthread_main" >&6; }
8391 if testscip-shell system . . test. "x$ac_cv_lib_pthread_main" = xyes
8392 then :
8393
8394 LIBS="-lpthread $LIBS"
8395 OBJFW_LIBS="-lpthread $OBJFW_LIBS"
8396
8397 fi
8398
8399
8400 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402
8403
8404 #include <pthread.h>
8405
8406 int
8407 main (void)
8408 {
8409
8410 pthread_create(NULL, NULL, NULL, NULL);
8411
8412 ;
8413 return 0;
8414 }
8415
8416 _ACEOF
8417 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8418 then :
8419
8420 else case e in #(
8421 e)
8422 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "No supported threads found!" "$LINENO" 5
8423 ;;
8424 esac
8425 fi
8426 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8427 conftest$ac_exeext conftest.$ac_ext
8428
8429
8430 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_PTHREADS 1" >>confdefs.h
8431
8432
8433 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435
8436
8437 #include <pthread.h>
8438
8439 int
8440 main (void)
8441 {
8442
8443 pthread_mutexattr_t attr;
8444 pthread_mutexattr_settype(&attr,
8445 PTHREAD_MUTEX_RECURSIVE);
8446
8447 ;
8448 return 0;
8449 }
8450
8451 _ACEOF
8452 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
8453 then :
8454
8455
8456 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_RECURSIVE_PTHREAD_MUTEXES 1" >>confdefs.h
8457
8458
8459 fi
8460 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461
8462 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
8463 if testscip-shell system . . test. "x$ac_cv_func_pthread_spin_lock" = xyes
8464 then :
8465
8466 have_spinlocks="yes"
8467
8468 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_PTHREAD_SPINLOCKS 1" >>confdefs.h
8469
8470
8471 fi
8472
8473
8474 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
8475 if testscip-shell system . . test. "x$ac_cv_func_sched_yield" = xyes
8476 then :
8477
8478
8479 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SCHED_YIELD 1" >>confdefs.h
8480
8481
8482 fi
8483
8484
8485 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "pthread_attr_getschedpolicy" "ac_cv_func_pthread_attr_getschedpolicy"
8486 if testscip-shell system . . test. "x$ac_cv_func_pthread_attr_getschedpolicy" = xyes
8487 then :
8488 printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_ATTR_GETSCHEDPOLICY 1" >>confdefs.h
8489
8490 fi
8491
8492
8493 old_OBJCFLAGS="$OBJCFLAGS"
8494 OBJCFLAGS="$OBJCFLAGS -Werror"
8495 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setinheritsched" >&5
8496 printfscip-shell system . . printf. %s "checking for pthread_attr_setinheritsched... " >&6; }
8497 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499
8500
8501 #include <pthread.h>
8502
8503 int
8504 main (void)
8505 {
8506
8507 pthread_attr_setinheritsched(
8508 (pthread_attr_t *)-1, 0);
8509
8510 ;
8511 return 0;
8512 }
8513
8514 _ACEOF
8515 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
8516 then :
8517
8518 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8520
8521 printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1" >>confdefs.h
8522
8523
8524 else case e in #(
8525 e)
8526 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8528 ;;
8529 esac
8530 fi
8531 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8532 OBJCFLAGS="$old_OBJCFLAGS"
8533
8534 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
8535 "
8536 if testscip-shell system . . test. "x$ac_cv_header_pthread_np_h" = xyes
8537 then :
8538 printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
8539
8540 fi
8541
8542
8543 for ac_func in pthread_set_name_np pthread_setname_np
8544 do :
8545 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
8546 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
8547 if eval test \"x\$"$as_ac_var"\" = x"yes"
8548 then :
8549 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
8550 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
8551 _ACEOF
8552 break
8553 fi
8554
8555 done
8556 ;;
8557 esac
8558
8559
8560 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_THREADS 1" >>confdefs.h
8561
8562 USE_SRCS_THREADS='${SRCS_THREADS}'
8563
8564 OBJC_SYNC=objc_sync
8565
8566
8567 # Check whether --enable-compiler-tls was given.
8568 if testscip-shell system . . test. ${enable_compiler_tls+y}
8569 then :
8570 enableval=$enable_compiler_tls;
8571 fi
8572
8573
8574 case "$host" in
8575 aarch64*-*-android*)
8576 enable_compiler_tls="no"
8577 ;;
8578 m68k-*-amigaos* | powerpc-*-amigaos*)
8579 enable_compiler_tls="no"
8580 ;;
8581 *-*-mingw*)
8582 enable_compiler_tls="no"
8583 ;;
8584 *-*-morphos*)
8585 enable_compiler_tls="no"
8586 ;;
8587 esac
8588
8589 if testscip-shell system . . test. x"$enable_compiler_tls" != x"no"
8590 then :
8591
8592 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
8593 if testscip-shell system . . test. "x$ac_cv_header_threads_h" = xyes
8594 then :
8595
8596
8597 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_THREADS_H 1" >>confdefs.h
8598
8599
8600 fi
8601
8602
8603 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _Thread_local works" >&5
8604 printfscip-shell system . . printf. %s "checking whether _Thread_local works... " >&6; }
8605 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607
8608
8609 static _Thread_local int x = 0;
8610
8611 int
8612 main (void)
8613 {
8614
8615 x++;
8616
8617 ;
8618 return 0;
8619 }
8620
8621 _ACEOF
8622 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8623 then :
8624
8625 if testscip-shell system . . test. x"$enable_shared" != x"no"
8626 then :
8627
8628 old_OBJCFLAGS="$OBJCFLAGS"
8629 OBJCFLAGS="$OBJCFLAGS -fPIC"
8630 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632
8633
8634 static _Thread_local int x = 0;
8635
8636 int
8637 main (void)
8638 {
8639
8640 x++;
8641
8642 ;
8643 return 0;
8644 }
8645
8646 _ACEOF
8647 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
8648 then :
8649
8650 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8651 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8652
8653 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE__THREAD_LOCAL 1" >>confdefs.h
8654
8655 have_thread_local="yes"
8656
8657 else case e in #(
8658 e)
8659 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8661 ;;
8662 esac
8663 fi
8664 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8665 OBJCFLAGS="$old_OBJCFLAGS"
8666
8667 else case e in #(
8668 e)
8669 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8670 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8671
8672 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE__THREAD_LOCAL 1" >>confdefs.h
8673
8674 have_thread_local="yes"
8675 ;;
8676 esac
8677 fi
8678
8679 else case e in #(
8680 e)
8681 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8683 ;;
8684 esac
8685 fi
8686 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8687 conftest$ac_exeext conftest.$ac_ext
8688
8689 if testscip-shell system . . test. x"$have_thread_local" != x"yes"
8690 then :
8691
8692 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __thread works" >&5
8693 printfscip-shell system . . printf. %s "checking whether __thread works... " >&6; }
8694 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696
8697
8698 /*
8699 * It seems __thread is buggy with
8700 * GCC 4.1
8701 */
8702 #if __GNUC__ == 4 && __GNUC_MINOR__ < 2
8703 # error buggy
8704 #endif
8705
8706 __thread int x = 0;
8707
8708 int
8709 main (void)
8710 {
8711
8712 x++;
8713
8714 ;
8715 return 0;
8716 }
8717
8718 _ACEOF
8719 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8720 then :
8721
8722 if testscip-shell system . . test. x"$enable_shared" != x"no"
8723 then :
8724
8725 old_OBJCFLAGS="$OBJCFLAGS"
8726 OBJCFLAGS="$OBJCFLAGS -fPIC"
8727 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730
8731 __thread int x = 0;
8732
8733 int
8734 main (void)
8735 {
8736
8737 x++;
8738
8739 ;
8740 return 0;
8741 }
8742
8743 _ACEOF
8744 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
8745 then :
8746
8747 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8748 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8749
8750 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE___THREAD 1" >>confdefs.h
8751
8752
8753 else case e in #(
8754 e)
8755 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8757 ;;
8758 esac
8759 fi
8760 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 OBJCFLAGS="$old_OBJCFLAGS"
8762
8763 else case e in #(
8764 e)
8765 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8766 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8767
8768 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE___THREAD 1" >>confdefs.h
8769
8770 ;;
8771 esac
8772 fi
8773
8774 else case e in #(
8775 e)
8776 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8778 ;;
8779 esac
8780 fi
8781 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8782 conftest$ac_exeext conftest.$ac_ext
8783
8784 fi
8785
8786 fi
8787
8788 atomic_ops="none"
8789
8790 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an atomic ops assembly implementation" >&5
8791 printfscip-shell system . . printf. %s "checking whether we have an atomic ops assembly implementation... " >&6; }
8792 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794
8795 #if defined(__GNUC__) && (defined(__i386__) || \
8796 defined(__x86_64__) || defined(__amd64__)) || \
8797 ((defined(__ppc__) || defined(__PPC__) || \
8798 defined(__powerpc__)) && !defined(__APPLE_CC__))
8799 egrep_cpp_yes
8800 #endif
8801
8802 _ACEOF
8803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8804 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
8805 then :
8806
8807 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8809 atomic_ops="assembly implementation"
8810
8811 else case e in #(
8812 e)
8813 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8815 ;;
8816 esac
8817 fi
8818 rmscip-shell system . . rm. -rf conftest*
8819
8820
8821 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __atomic_* works" >&5
8822 printfscip-shell system . . printf. %s "checking whether __atomic_* works... " >&6; }
8823 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825
8826
8827 #include <stdbool.h>
8828 #include <stdint.h>
8829
8830 int
8831 main (void)
8832 {
8833
8834 int32_t i, j;
8835 if (__atomic_add_fetch(&i, 1, __ATOMIC_RELAXED))
8836 j = __atomic_sub_fetch(&i, 1, __ATOMIC_RELAXED);
8837 while (!__atomic_compare_exchange_n(&i, &j, 1, false,
8838 __ATOMIC_RELAXED, __ATOMIC_RELAXED));
8839 __atomic_thread_fence(__ATOMIC_SEQ_CST);
8840
8841 ;
8842 return 0;
8843 }
8844
8845 _ACEOF
8846 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8847 then :
8848
8849 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8851 testscip-shell system . . test. x"$atomic_ops" = x"none" && \
8852 atomic_ops="__atomic_* builtins"
8853
8854 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
8855
8856
8857 else case e in #(
8858 e)
8859 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8861 ;;
8862 esac
8863 fi
8864 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8865 conftest$ac_exeext conftest.$ac_ext
8866
8867 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __sync_* works" >&5
8868 printfscip-shell system . . printf. %s "checking whether __sync_* works... " >&6; }
8869 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871
8872
8873 #include <stdint.h>
8874
8875 int
8876 main (void)
8877 {
8878
8879 int32_t i, j;
8880 if (__sync_add_and_fetch(&i, 1))
8881 j = __sync_sub_and_fetch(&i, 1);
8882 while (!__sync_bool_compare_and_swap(&i, 0, 1));
8883
8884 ;
8885 return 0;
8886 }
8887
8888 _ACEOF
8889 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
8890 then :
8891
8892 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8893 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
8894 testscip-shell system . . test. x"$atomic_ops" = x"none" && \
8895 atomic_ops="__sync_* builtins"
8896
8897 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SYNC_BUILTINS 1" >>confdefs.h
8898
8899
8900 else case e in #(
8901 e)
8902 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 printfscip-shell system . . printf. "%s\n" "no" >&6; }
8904 ;;
8905 esac
8906 fi
8907 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
8908 conftest$ac_exeext conftest.$ac_ext
8909
8910 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
8911 if testscip-shell system . . test. "x$ac_cv_header_libkern_OSAtomic_h" = xyes
8912 then :
8913
8914 testscip-shell system . . test. x"$atomic_ops" = x"none" && atomic_ops="libkern/OSAtomic.h"
8915
8916 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_OSATOMIC 1" >>confdefs.h
8917
8918
8919 fi
8920
8921
8922 else case e in #(
8923 e)
8924 atomic_ops="not needed"
8925 ;;
8926 esac
8927 fi
8928
8929 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic operations" >&5
8930 printfscip-shell system . . printf. %s "checking for atomic operations... " >&6; }
8931 if testscip-shell system . . test. x"$atomic_ops" != x"none"
8932 then :
8933
8934
8935 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_ATOMIC_OPS 1" >>confdefs.h
8936
8937 USE_INCLUDES_ATOMIC='${INCLUDES_ATOMIC}'
8938
8939
8940 fi
8941 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $atomic_ops" >&5
8942 printfscip-shell system . . printf. "%s\n" "$atomic_ops" >&6; }
8943
8944 # Check whether --enable-files was given.
8945 if testscip-shell system . . test. ${enable_files+y}
8946 then :
8947 enableval=$enable_files;
8948 fi
8949
8950 if testscip-shell system . . test. x"$enable_files" != x"no"
8951 then :
8952
8953
8954 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_FILES 1" >>confdefs.h
8955
8956 USE_SRCS_FILES='${SRCS_FILES}'
8957
8958 OBJFW_NEW="objfw-new"
8959
8960 OFARC="ofarc"
8961
8962 OFHASH="ofhash"
8963
8964
8965 case "$host_os" in
8966 msdosdjgpp*)
8967 ;;
8968 *)
8969 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
8970 if testscip-shell system . . test. "x$ac_cv_type_off64_t" = xyes
8971 then :
8972
8973
8974 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_OFF64_T 1" >>confdefs.h
8975
8976 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "lseek64" "ac_cv_func_lseek64"
8977 if testscip-shell system . . test. "x$ac_cv_func_lseek64" = xyes
8978 then :
8979 printfscip-shell system . . printf. "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
8980
8981 fi
8982 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "lstat64" "ac_cv_func_lstat64"
8983 if testscip-shell system . . test. "x$ac_cv_func_lstat64" = xyes
8984 then :
8985 printfscip-shell system . . printf. "%s\n" "#define HAVE_LSTAT64 1" >>confdefs.h
8986
8987 fi
8988 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "open64" "ac_cv_func_open64"
8989 if testscip-shell system . . test. "x$ac_cv_func_open64" = xyes
8990 then :
8991 printfscip-shell system . . printf. "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
8992
8993 fi
8994 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "stat64" "ac_cv_func_stat64"
8995 if testscip-shell system . . test. "x$ac_cv_func_stat64" = xyes
8996 then :
8997 printfscip-shell system . . printf. "%s\n" "#define HAVE_STAT64 1" >>confdefs.h
8998
8999 fi
9000
9001
9002 fi
9003
9004 ;;
9005 esac
9006
9007 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
9008 if testscip-shell system . . test. "x$ac_cv_header_pwd_h" = xyes
9009 then :
9010 printfscip-shell system . . printf. "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
9011
9012 fi
9013 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
9014 if testscip-shell system . . test. "x$ac_cv_header_grp_h" = xyes
9015 then :
9016 printfscip-shell system . . printf. "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
9017
9018 fi
9019
9020 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "chmod" "ac_cv_func_chmod"
9021 if testscip-shell system . . test. "x$ac_cv_func_chmod" = xyes
9022 then :
9023
9024
9025 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_CHMOD 1" >>confdefs.h
9026
9027
9028 fi
9029
9030 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "chown" "ac_cv_func_chown"
9031 if testscip-shell system . . test. "x$ac_cv_func_chown" = xyes
9032 then :
9033
9034
9035 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_CHOWN 1" >>confdefs.h
9036
9037
9038 fi
9039
9040 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "link" "ac_cv_func_link"
9041 if testscip-shell system . . test. "x$ac_cv_func_link" = xyes
9042 then :
9043
9044
9045 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_LINK 1" >>confdefs.h
9046
9047
9048 fi
9049
9050 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "symlink" "ac_cv_func_symlink"
9051 if testscip-shell system . . test. "x$ac_cv_func_symlink" = xyes
9052 then :
9053
9054
9055 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SYMLINK 1" >>confdefs.h
9056
9057
9058 fi
9059
9060 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "lstat" "ac_cv_func_lstat"
9061 if testscip-shell system . . test. "x$ac_cv_func_lstat" = xyes
9062 then :
9063 printfscip-shell system . . printf. "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
9064
9065 fi
9066 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "lutimes" "ac_cv_func_lutimes"
9067 if testscip-shell system . . test. "x$ac_cv_func_lutimes" = xyes
9068 then :
9069 printfscip-shell system . . printf. "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
9070
9071 fi
9072 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "utimensat" "ac_cv_func_utimensat"
9073 if testscip-shell system . . test. "x$ac_cv_func_utimensat" = xyes
9074 then :
9075 printfscip-shell system . . printf. "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
9076
9077 fi
9078
9079 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "
9080 #include <sys/stat.h>
9081
9082 "
9083 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atim" = xyes
9084 then :
9085
9086 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
9087
9088
9089 fi
9090 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "
9091 #include <sys/stat.h>
9092
9093 "
9094 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_mtim" = xyes
9095 then :
9096
9097 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
9098
9099
9100 fi
9101 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "
9102 #include <sys/stat.h>
9103
9104 "
9105 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_ctim" = xyes
9106 then :
9107
9108 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIM 1" >>confdefs.h
9109
9110
9111 fi
9112 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "
9113 #include <sys/stat.h>
9114
9115 "
9116 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_birthtime" = xyes
9117 then :
9118
9119 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
9120
9121
9122 fi
9123 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "
9124 #include <sys/stat.h>
9125
9126 "
9127 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atimespec" = xyes
9128 then :
9129
9130 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1" >>confdefs.h
9131
9132
9133 fi
9134 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "
9135 #include <sys/stat.h>
9136
9137 "
9138 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
9139 then :
9140
9141 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h
9142
9143
9144 fi
9145 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "
9146 #include <sys/stat.h>
9147
9148 "
9149 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_ctimespec" = xyes
9150 then :
9151
9152 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIMESPEC 1" >>confdefs.h
9153
9154
9155 fi
9156 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "
9157 #include <sys/stat.h>
9158
9159 "
9160 if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes
9161 then :
9162
9163 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1" >>confdefs.h
9164
9165
9166 fi
9167
9168
9169 fi
9170
9171 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
9172 if testscip-shell system . . test. "x$ac_cv_header_dirent_h" = xyes
9173 then :
9174 printfscip-shell system . . printf. "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
9175
9176 fi
9177
9178 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "sysconf" "ac_cv_func_sysconf"
9179 if testscip-shell system . . test. "x$ac_cv_func_sysconf" = xyes
9180 then :
9181 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
9182
9183 fi
9184 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
9185 if testscip-shell system . . test. "x$ac_cv_func_clock_gettime" = xyes
9186 then :
9187 printfscip-shell system . . printf. "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9188
9189 fi
9190 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
9191 if testscip-shell system . . test. "x$ac_cv_func_gmtime_r" = xyes
9192 then :
9193 printfscip-shell system . . printf. "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
9194
9195 fi
9196 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
9197 if testscip-shell system . . test. "x$ac_cv_func_localtime_r" = xyes
9198 then :
9199 printfscip-shell system . . printf. "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
9200
9201 fi
9202
9203
9204 case "$host_os" in
9205 amigaos* | morphos*)
9206 ;;
9207 *)
9208 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
9209 if testscip-shell system . . test. "x$ac_cv_header_fcntl_h" = xyes
9210 then :
9211 printfscip-shell system . . printf. "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
9212
9213 fi
9214
9215 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "fcntl" "ac_cv_func_fcntl"
9216 if testscip-shell system . . test. "x$ac_cv_func_fcntl" = xyes
9217 then :
9218 printfscip-shell system . . printf. "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
9219
9220 fi
9221 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
9222 if testscip-shell system . . test. "x$ac_cv_func_nanosleep" = xyes
9223 then :
9224 printfscip-shell system . . printf. "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
9225
9226 fi
9227
9228 ;;
9229 esac
9230
9231 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
9232 if testscip-shell system . . test. "x$ac_cv_header_xlocale_h" = xyes
9233 then :
9234 printfscip-shell system . . printf. "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
9235
9236 fi
9237
9238 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "newlocale" "ac_cv_func_newlocale"
9239 if testscip-shell system . . test. "x$ac_cv_func_newlocale" = xyes
9240 then :
9241 printfscip-shell system . . printf. "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
9242
9243 fi
9244 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "uselocale" "ac_cv_func_uselocale"
9245 if testscip-shell system . . test. "x$ac_cv_func_uselocale" = xyes
9246 then :
9247 printfscip-shell system . . printf. "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
9248
9249 fi
9250 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
9251 if testscip-shell system . . test. "x$ac_cv_func_strtod_l" = xyes
9252 then :
9253 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRTOD_L 1" >>confdefs.h
9254
9255 fi
9256 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "strtof_l" "ac_cv_func_strtof_l"
9257 if testscip-shell system . . test. "x$ac_cv_func_strtof_l" = xyes
9258 then :
9259 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRTOF_L 1" >>confdefs.h
9260
9261 fi
9262 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "asprintf_l" "ac_cv_func_asprintf_l"
9263 if testscip-shell system . . test. "x$ac_cv_func_asprintf_l" = xyes
9264 then :
9265 printfscip-shell system . . printf. "%s\n" "#define HAVE_ASPRINTF_L 1" >>confdefs.h
9266
9267 fi
9268
9269 if tescip-shell system . . test.stscip-shell system . . test. x"$gnu_source" != x"yes" -a \( \
9270 x"$ac_cv_func_strtod_l" = x"yes" -o x"$ac_cv_func_strtof_l" = x"yes" -o \
9271 x"$ac_cv_func_asprintf_l" = x"yes" \)
9272 then :
9273
9274 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether *_l functions need _GNU_SOURCE" >&5
9275 printfscip-shell system . . printf. %s "checking whether *_l functions need _GNU_SOURCE... " >&6; }
9276 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278
9279
9280 #include <stdlib.h>
9281 #include <stdio.h>
9282
9283 #include <locale.h>
9284 #ifdef HAVE_XLOCALE_H
9285 # include <xlocale.h>
9286 #endif
9287
9288 int
9289 main (void)
9290 {
9291
9292 #ifdef HAVE_STRTOD_L
9293 (void)strtod_l;
9294 #endif
9295 #ifdef HAVE_STRTOF_L
9296 (void)strtof_l;
9297 #endif
9298 #ifdef HAVE_ASPRINTF_L
9299 (void)asprintf_l;
9300 #endif
9301
9302 ;
9303 return 0;
9304 }
9305
9306 _ACEOF
9307 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
9308 then :
9309
9310 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 printfscip-shell system . . printf. "%s\n" "no" >&6; }
9312
9313 else case e in #(
9314 e)
9315 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
9317 CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
9318 ;;
9319 esac
9320 fi
9321 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9322
9323 fi
9324
9325
9326 for ac_func in strerror_r
9327 do :
9328 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9329 if testscip-shell system . . test. "x$ac_cv_func_strerror_r" = xyes
9330 then :
9331 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
9332
9333 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for return type of strerror_r" >&5
9334 printfscip-shell system . . printf. %s "checking for return type of strerror_r... " >&6; }
9335 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337
9338
9339 #include <stdio.h>
9340 #include <string.h>
9341
9342 int
9343 main (void)
9344 {
9345
9346 switch (strerror_r(0, NULL, 0)) {
9347 case 0:;
9348 }
9349
9350 ;
9351 return 0;
9352 }
9353
9354 _ACEOF
9355 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
9356 then :
9357
9358 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
9359 printfscip-shell system . . printf. "%s\n" "int" >&6; }
9360
9361 else case e in #(
9362 e)
9363 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: char *" >&5
9364 printfscip-shell system . . printf. "%s\n" "char *" >&6; }
9365
9366 printfscip-shell system . . printf. "%s\n" "#define STRERROR_R_RETURNS_CHARP 1" >>confdefs.h
9367
9368 ;;
9369 esac
9370 fi
9371 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9372
9373 fi
9374
9375 done
9376
9377 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
9378 if testscip-shell system . . test. "x$ac_cv_header_sys_utsname_h" = xyes
9379 then :
9380 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
9381
9382 fi
9383
9384 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "uname" "ac_cv_func_uname"
9385 if testscip-shell system . . test. "x$ac_cv_func_uname" = xyes
9386 then :
9387 printfscip-shell system . . printf. "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
9388
9389 fi
9390
9391
9392 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "pipe" "ac_cv_func_pipe"
9393 if testscip-shell system . . test. "x$ac_cv_func_pipe" = xyes
9394 then :
9395
9396
9397 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_PIPE 1" >>confdefs.h
9398
9399
9400 fi
9401
9402
9403 # Check whether --enable-sockets was given.
9404 if testscip-shell system . . test. ${enable_sockets+y}
9405 then :
9406 enableval=$enable_sockets;
9407 fi
9408
9409
9410
9411
9412
9413
9414
9415
9416 if testscip-shell system . . test. "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9417 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
9418 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9419 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9420 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
9422 if testscip-shell system . . test. ${ac_cv_path_PKG_CONFIG+y}
9423 then :
9424 printfscip-shell system . . printf. %s "(cached) " >&6
9425 else case e in #(
9426 e) case $PKG_CONFIG in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9429 ;;
9430 *)
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9433 do
9434 IFS=$as_save_IFS
9435 case $as_dir in #(((
9436 '') as_dir=./ ;;
9437 */) ;;
9438 *) as_dir=$as_dir/ ;;
9439 esac
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
9442 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9443 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9444 break 2
9445 fi
9446 done
9447 done
9448 IFS=$as_save_IFS
9449
9450 ;;
9451 esac ;;
9452 esac
9453 fi
9454 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9455 if testscip-shell system . . test. -n "$PKG_CONFIG"; then
9456 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9457 printfscip-shell system . . printf. "%s\n" "$PKG_CONFIG" >&6; }
9458 else
9459 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 printfscip-shell system . . printf. "%s\n" "no" >&6; }
9461 fi
9462
9463
9464 fi
9465 if testscip-shell system . . test. -z "$ac_cv_path_PKG_CONFIG"; then
9466 ac_pt_PKG_CONFIG=$PKG_CONFIG
9467 # Extract the first word of "pkg-config", so it can be a program name with args.
9468 set dummy pkg-config; ac_word=$2
9469 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
9471 if testscip-shell system . . test. ${ac_cv_path_ac_pt_PKG_CONFIG+y}
9472 then :
9473 printfscip-shell system . . printf. %s "(cached) " >&6
9474 else case e in #(
9475 e) case $ac_pt_PKG_CONFIG in
9476 [\\/]* | ?:[\\/]*)
9477 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9478 ;;
9479 *)
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9482 do
9483 IFS=$as_save_IFS
9484 case $as_dir in #(((
9485 '') as_dir=./ ;;
9486 */) ;;
9487 *) as_dir=$as_dir/ ;;
9488 esac
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
9491 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9492 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9493 break 2
9494 fi
9495 done
9496 done
9497 IFS=$as_save_IFS
9498
9499 ;;
9500 esac ;;
9501 esac
9502 fi
9503 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9504 if testscip-shell system . . test. -n "$ac_pt_PKG_CONFIG"; then
9505 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9506 printfscip-shell system . . printf. "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
9507 else
9508 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 printfscip-shell system . . printf. "%s\n" "no" >&6; }
9510 fi
9511
9512 if testscip-shell system . . test. "x$ac_pt_PKG_CONFIG" = x; then
9513 PKG_CONFIG=""
9514 else
9515 case $cross_compiling:$ac_tool_warned in
9516 yes:)
9517 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9518 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9519 ac_tool_warned=yes ;;
9520 esac
9521 PKG_CONFIG=$ac_pt_PKG_CONFIG
9522 fi
9523 else
9524 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9525 fi
9526
9527 fi
9528 if testscip-shell system . . test. -n "$PKG_CONFIG"; then
9529 _pkg_min_version=0.9.0
9530 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9531 printfscip-shell system . . printf. %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9532 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9533 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9534 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
9535 else
9536 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 printfscip-shell system . . printf. "%s\n" "no" >&6; }
9538 PKG_CONFIG=""
9539 fi
9540 fi
9541 if testscip-shell system . . test. x"$enable_sockets" != x"no"
9542 then :
9543
9544
9545 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SOCKETS 1" >>confdefs.h
9546
9547 USE_SRCS_SOCKETS='${SRCS_SOCKETS}'
9548
9549
9550 case "$host_os" in
9551 amigaos* | morphos*)
9552 ;;
9553 haiku*)
9554 LIBS="-lnetwork $LIBS"
9555 OBJFW_LIBS="-lnetwork $OBJFW_LIBS"
9556 ;;
9557 mingw*)
9558 LIBS="-lws2_32 -liphlpapi $LIBS"
9559 OBJFW_LIBS="-lws2_32 -liphlpapi $OBJFW_LIBS"
9560 ;;
9561 *)
9562 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9563 printfscip-shell system . . printf. %s "checking for socket in -lsocket... " >&6; }
9564 if testscip-shell system . . test. ${ac_cv_lib_socket_socket+y}
9565 then :
9566 printfscip-shell system . . printf. %s "(cached) " >&6
9567 else case e in #(
9568 e) ac_check_lib_save_LIBS=$LIBS
9569 LIBS="-lsocket $LIBS"
9570 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply.
9576 The 'extern "C"' is for builds by C++ compilers;
9577 although this is not generally supported in C code supporting it here
9578 has little cost and some practical benefit (sr 110532). */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char socket (void);
9583 int
9584 main (void)
9585 {
9586 return socket ();
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
9592 then :
9593 ac_cv_lib_socket_socket=yes
9594 else case e in #(
9595 e) ac_cv_lib_socket_socket=no ;;
9596 esac
9597 fi
9598 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS ;;
9601 esac
9602 fi
9603 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9604 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_socket_socket" >&6; }
9605 if testscip-shell system . . test. "x$ac_cv_lib_socket_socket" = xyes
9606 then :
9607
9608 LIBS="-lsocket $LIBS"
9609 OBJFW_LIBS="-lsocket $OBJFW_LIBS"
9610
9611 fi
9612
9613 ;;
9614 esac
9615
9616 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9617 if testscip-shell system . . test. "x$ac_cv_header_sys_socket_h" = xyes
9618 then :
9619
9620
9621 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SYS_SOCKET_H 1" >>confdefs.h
9622
9623
9624 fi
9625
9626 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
9627 #ifdef OF_HAVE_SYS_TYPES_H
9628 # include <sys/types.h>
9629 #endif
9630 #ifdef OF_HAVE_SYS_SOCKET_H
9631 # include <sys/socket.h>
9632 #endif
9633 #ifdef _WIN32
9634 # include <winsock2.h>
9635 #endif
9636
9637 "
9638 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
9639 then :
9640
9641 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
9642
9643
9644 fi
9645
9646 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9647 #ifdef OF_HAVE_SYS_TYPES_H
9648 # include <sys/types.h>
9649 #endif
9650 #ifdef OF_HAVE_SYS_SOCKET_H
9651 # include <sys/socket.h>
9652 #endif
9653 #ifdef _WIN32
9654 # include <winsock2.h>
9655 #endif
9656
9657 "
9658 if testscip-shell system . . test. "x$ac_cv_type_struct_sockaddr_storage" = xyes
9659 then :
9660
9661
9662 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
9663
9664
9665 fi
9666
9667
9668 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9669 if testscip-shell system . . test. "x$ac_cv_header_netinet_in_h" = xyes
9670 then :
9671
9672
9673 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETINET_IN_H 1" >>confdefs.h
9674
9675
9676 fi
9677
9678 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
9679 if testscip-shell system . . test. "x$ac_cv_header_netinet_tcp_h" = xyes
9680 then :
9681
9682
9683 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETINET_TCP_H 1" >>confdefs.h
9684
9685
9686 fi
9687
9688 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "
9689 #ifdef OF_HAVE_SYS_SOCKET_H
9690 # include <sys/socket.h>
9691 #endif
9692
9693 "
9694 if testscip-shell system . . test. "x$ac_cv_header_netinet_sctp_h" = xyes
9695 then :
9696
9697
9698 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SCTP 1" >>confdefs.h
9699
9700
9701 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETINET_SCTP_H 1" >>confdefs.h
9702
9703 USE_SRCS_SCTP='${SRCS_SCTP}'
9704
9705
9706 fi
9707
9708 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9709 if testscip-shell system . . test. "x$ac_cv_header_arpa_inet_h" = xyes
9710 then :
9711 printfscip-shell system . . printf. "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
9712
9713 fi
9714 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9715 if testscip-shell system . . test. "x$ac_cv_header_netdb_h" = xyes
9716 then :
9717 printfscip-shell system . . printf. "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
9718
9719 fi
9720 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
9721 if testscip-shell system . . test. "x$ac_cv_header_sys_sockio_h" = xyes
9722 then :
9723 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
9724
9725 fi
9726
9727 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9728 #ifdef HAVE_SYS_TYPES_H
9729 # include <sys/types.h>
9730 #endif
9731 #ifdef OF_HAVE_SYS_SOCKET_H
9732 # include <sys/socket.h>
9733 #endif
9734
9735 "
9736 if testscip-shell system . . test. "x$ac_cv_header_net_if_h" = xyes
9737 then :
9738 printfscip-shell system . . printf. "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
9739
9740 fi
9741
9742 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "
9743 #ifdef HAVE_SYS_TYPES_H
9744 # include <sys/types.h>
9745 #endif
9746 #ifdef OF_HAVE_SYS_SOCKET_H
9747 # include <sys/socket.h>
9748 #endif
9749 #ifdef HAVE_NET_IF_H
9750 # include <net/if.h>
9751 #endif
9752
9753 "
9754 if testscip-shell system . . test. "x$ac_cv_header_net_if_arp_h" = xyes
9755 then :
9756 printfscip-shell system . . printf. "%s\n" "#define HAVE_NET_IF_ARP_H 1" >>confdefs.h
9757
9758 fi
9759 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "
9760 #ifdef HAVE_SYS_TYPES_H
9761 # include <sys/types.h>
9762 #endif
9763 #ifdef OF_HAVE_SYS_SOCKET_H
9764 # include <sys/socket.h>
9765 #endif
9766 #ifdef HAVE_NET_IF_H
9767 # include <net/if.h>
9768 #endif
9769
9770 "
9771 if testscip-shell system . . test. "x$ac_cv_header_net_if_dl_h" = xyes
9772 then :
9773 printfscip-shell system . . printf. "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
9774
9775 fi
9776 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "
9777 #ifdef HAVE_SYS_TYPES_H
9778 # include <sys/types.h>
9779 #endif
9780 #ifdef OF_HAVE_SYS_SOCKET_H
9781 # include <sys/socket.h>
9782 #endif
9783 #ifdef HAVE_NET_IF_H
9784 # include <net/if.h>
9785 #endif
9786
9787 "
9788 if testscip-shell system . . test. "x$ac_cv_header_net_if_types_h" = xyes
9789 then :
9790 printfscip-shell system . . printf. "%s\n" "#define HAVE_NET_IF_TYPES_H 1" >>confdefs.h
9791
9792 fi
9793
9794 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname"
9795 if testscip-shell system . . test. "x$ac_cv_func_if_indextoname" = xyes
9796 then :
9797 printfscip-shell system . . printf. "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h
9798
9799 fi
9800 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
9801 if testscip-shell system . . test. "x$ac_cv_func_if_nametoindex" = xyes
9802 then :
9803 printfscip-shell system . . printf. "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
9804
9805 fi
9806 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
9807 if testscip-shell system . . test. "x$ac_cv_func_if_nameindex" = xyes
9808 then :
9809 printfscip-shell system . . printf. "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
9810
9811 fi
9812
9813 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "
9814 #ifdef HAVE_SYS_TYPES_H
9815 # include <sys/types.h>
9816 #endif
9817 #ifdef OF_HAVE_SYS_SOCKET_H
9818 # include <sys/socket.h>
9819 #endif
9820 #ifdef HAVE_NET_IF_H
9821 # include <net/if.h>
9822 #endif
9823 #ifdef HAVE_NET_IF_DL_H
9824 # include <net/if_dl.h>
9825 #endif
9826
9827 "
9828 if testscip-shell system . . test. "x$ac_cv_type_struct_sockaddr_dl" = xyes
9829 then :
9830
9831 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_SOCKADDR_DL 1" >>confdefs.h
9832
9833
9834 fi
9835
9836 ac_fn_objc_check_typescip-shell shell shell-project 0.0.0 ac_fn_objc_check_type(). "$LINENO" "struct lifconf" "ac_cv_type_struct_lifconf" "
9837 #ifdef HAVE_SYS_TYPES_H
9838 # include <sys/types.h>
9839 #endif
9840 #ifdef OF_HAVE_SYS_SOCKET_H
9841 # include <sys/socket.h>
9842 #endif
9843 #ifdef HAVE_NET_IF_H
9844 # include <net/if.h>
9845 #endif
9846
9847 "
9848 if testscip-shell system . . test. "x$ac_cv_type_struct_lifconf" = xyes
9849 then :
9850
9851 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h
9852
9853
9854 fi
9855
9856 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "
9857 #ifdef HAVE_SYS_TYPES_H
9858 # include <sys/types.h>
9859 #endif
9860 #ifdef OF_HAVE_SYS_SOCKET_H
9861 # include <sys/socket.h>
9862 #endif
9863 #ifdef HAVE_NET_IF_H
9864 # include <net/if.h>
9865 #endif
9866
9867 "
9868 if testscip-shell system . . test. "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
9869 then :
9870
9871 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1" >>confdefs.h
9872
9873
9874 fi
9875
9876 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
9877 if testscip-shell system . . test. "x$ac_cv_header_sys_un_h" = xyes
9878 then :
9879
9880
9881 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SYS_UN_H 1" >>confdefs.h
9882
9883
9884 fi
9885
9886 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_in6" "sin6_addr" "ac_cv_member_struct_sockaddr_in6_sin6_addr" "
9887 #ifdef _WIN32
9888 typedef int BOOL;
9889 #endif
9890
9891 #ifdef OF_HAVE_NETINET_IN_H
9892 # include <netinet/in.h>
9893 #endif
9894
9895 #ifdef _WIN32
9896 # ifdef __MINGW32__
9897 # include <_mingw.h>
9898 # ifdef __MINGW64_VERSION_MAJOR
9899 # include <winsock2.h>
9900 # endif
9901 # endif
9902 # include <windows.h>
9903 # include <ws2tcpip.h>
9904 #endif
9905
9906 "
9907 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_in6_sin6_addr" = xyes
9908 then :
9909
9910 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912
9913 #ifdef _WIN32
9914 typedef int BOOL;
9915 #endif
9916
9917 #ifdef OF_HAVE_SYS_SOCKET_H
9918 # include <sys/socket.h>
9919 #endif
9920
9921 #ifdef _WIN32
9922 # ifdef __MINGW32__
9923 # include <_mingw.h>
9924 # ifdef __MINGW64_VERSION_MAJOR
9925 # include <winsock2.h>
9926 # endif
9927 # endif
9928 # include <windows.h>
9929 # include <ws2tcpip.h>
9930 #endif
9931
9932 #ifdef AF_INET6
9933 egrep_cpp_yes
9934 #endif
9935
9936 _ACEOF
9937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9938 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
9939 then :
9940
9941
9942 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_IPV6 1" >>confdefs.h
9943
9944
9945 fi
9946 rmscip-shell system . . rm. -rf conftest*
9947
9948
9949 else case e in #(
9950 e)
9951 :
9952 ;;
9953 esac
9954 fi
9955
9956
9957 for ac_header in afunix.h
9958 do :
9959 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "
9960 #ifdef _WIN32
9961 # include <winsock2.h>
9962 #endif
9963
9964 "
9965 if testscip-shell system . . test. "x$ac_cv_header_afunix_h" = xyes
9966 then :
9967 printfscip-shell system . . printf. "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h
9968
9969
9970 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_AFUNIX_H 1" >>confdefs.h
9971
9972
9973 fi
9974
9975 done
9976 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
9977 #ifdef OF_HAVE_SYS_TYPES_H
9978 # include <sys/types.h>
9979 #endif
9980 #ifdef OF_HAVE_SYS_UN_H
9981 # include <sys/un.h>
9982 #endif
9983 #ifdef _WIN32
9984 # include <winsock2.h>
9985 #endif
9986 #ifdef HAVE_AFUNIX_H
9987 # include <afunix.h>
9988 #endif
9989
9990 #ifdef __morphos__
9991 # error MorphOS has the struct but does not support it
9992 #endif
9993
9994 #ifdef __MINT__
9995 # error Gives invalid argument at runtime
9996 #endif
9997
9998 "
9999 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
10000 then :
10001
10002
10003 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_UNIX_SOCKETS 1" >>confdefs.h
10004
10005 USE_SRCS_UNIX_SOCKETS='${SRCS_UNIX_SOCKETS}'
10006
10007
10008 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
10009 #ifdef OF_HAVE_SYS_TYPES_H
10010 # include <sys/types.h>
10011 #endif
10012 #ifdef OF_HAVE_SYS_UN_H
10013 # include <sys/un.h>
10014 #endif
10015 #ifdef _WIN32
10016 # include <winsock2.h>
10017 #endif
10018 #ifdef HAVE_AFUNIX_H
10019 # include <afunix.h>
10020 #endif
10021
10022 "
10023 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
10024 then :
10025
10026 printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
10027
10028
10029 fi
10030
10031
10032 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
10033 if testscip-shell system . . test. "x$ac_cv_func_getpeereid" = xyes
10034 then :
10035 printfscip-shell system . . printf. "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
10036
10037 fi
10038
10039
10040 fi
10041
10042
10043 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netipx/ipx.h" "ac_cv_header_netipx_ipx_h" "$ac_includes_default"
10044 if testscip-shell system . . test. "x$ac_cv_header_netipx_ipx_h" = xyes
10045 then :
10046
10047
10048 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETIPX_IPX_H 1" >>confdefs.h
10049
10050
10051 fi
10052
10053 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_ipx" "sipx_network" "ac_cv_member_struct_sockaddr_ipx_sipx_network" "
10054 #ifdef _WIN32
10055 typedef int BOOL;
10056 #endif
10057
10058 #ifdef HAVE_SYS_TYPES_H
10059 # include <sys/types.h>
10060 #endif
10061
10062 #ifdef OF_HAVE_NETIPX_IPX_H
10063 # include <netipx/ipx.h>
10064 #endif
10065
10066 #ifdef _WIN32
10067 # ifdef __MINGW32__
10068 # include <_mingw.h>
10069 # ifdef __MINGW64_VERSION_MAJOR
10070 # include <winsock2.h>
10071 # endif
10072 # endif
10073 # include <windows.h>
10074 # include <wsipx.h>
10075 #endif
10076
10077 "
10078 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_ipx_sipx_network" = xyes
10079 then :
10080
10081 else case e in #(
10082 e)
10083 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_ipx" "sa_netnum" "ac_cv_member_struct_sockaddr_ipx_sa_netnum" "
10084 #ifdef _WIN32
10085 typedef int BOOL;
10086 #endif
10087
10088 #ifdef HAVE_SYS_TYPES_H
10089 # include <sys/types.h>
10090 #endif
10091
10092 #ifdef OF_HAVE_NETIPX_IPX_H
10093 # include <netipx/ipx.h>
10094 #endif
10095
10096 #ifdef _WIN32
10097 # ifdef __MINGW32__
10098 # include <_mingw.h>
10099 # ifdef __MINGW64_VERSION_MAJOR
10100 # include <winsock2.h>
10101 # endif
10102 # endif
10103 # include <windows.h>
10104 # include <wsipx.h>
10105 #endif
10106
10107 "
10108 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_ipx_sa_netnum" = xyes
10109 then :
10110
10111 else case e in #(
10112 e)
10113 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_ipx" "sipx_addr.x_port" "ac_cv_member_struct_sockaddr_ipx_sipx_addr_x_port" "
10114 #ifdef HAVE_SYS_TYPES_H
10115 # include <sys/types.h>
10116 #endif
10117
10118 #ifdef OF_HAVE_NETIPX_IPX_H
10119 # include <netipx/ipx.h>
10120 #endif
10121
10122 "
10123 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_ipx_sipx_addr_x_port" = xyes
10124 then :
10125
10126 fi
10127
10128 ;;
10129 esac
10130 fi
10131
10132 ;;
10133 esac
10134 fi
10135
10136 if testscip-shell system . . test. x"$ac_cv_member_struct_sockaddr_ipx_sipx_network" = x"yes" \
10137 -o x"$ac_cv_member_struct_sockaddr_ipx_sa_netnum" = x"yes" -o \
10138 x"$ac_cv_member_struct_sockaddr_ipx_sipx_addr_x_port" = x"yes"
10139 then :
10140
10141 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143
10144 #ifdef _WIN32
10145 typedef int BOOL;
10146 #endif
10147
10148 #ifdef OF_HAVE_SYS_SOCKET_H
10149 # include <sys/socket.h>
10150 #endif
10151
10152 #ifdef _WIN32
10153 # ifdef __MINGW32__
10154 # include <_mingw.h>
10155 # ifdef __MINGW64_VERSION_MAJOR
10156 # include <winsock2.h>
10157 # endif
10158 # endif
10159 # include <windows.h>
10160 # include <wsipx.h>
10161 #endif
10162
10163 #ifdef AF_IPX
10164 egrep_cpp_yes
10165 #endif
10166
10167 _ACEOF
10168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10169 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
10170 then :
10171
10172
10173 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_IPX 1" >>confdefs.h
10174
10175 USE_SRCS_IPX='${SRCS_IPX}'
10176
10177
10178 fi
10179 rmscip-shell system . . rm. -rf conftest*
10180
10181
10182 fi
10183
10184 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netat/appletalk.h" "ac_cv_header_netat_appletalk_h" "$ac_includes_default"
10185 if testscip-shell system . . test. "x$ac_cv_header_netat_appletalk_h" = xyes
10186 then :
10187
10188
10189 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETAT_APPLETALK_H 1" >>confdefs.h
10190
10191
10192 fi
10193
10194 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "netatalk/at.h" "ac_cv_header_netatalk_at_h" "$ac_includes_default"
10195 if testscip-shell system . . test. "x$ac_cv_header_netatalk_at_h" = xyes
10196 then :
10197
10198
10199 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_NETATALK_AT_H 1" >>confdefs.h
10200
10201
10202 fi
10203
10204 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_at" "sat_addr" "ac_cv_member_struct_sockaddr_at_sat_addr" "
10205 #ifdef _WIN32
10206 typedef int BOOL;
10207 #endif
10208
10209 #ifdef OF_HAVE_SYS_TYPES_H
10210 # include <sys/types.h>
10211 #endif
10212 #if defined(OF_HAVE_NETAT_APPLETALK_H)
10213 # include <netat/appletalk.h>
10214 #elif defined(OF_HAVE_NETATALK_AT_H)
10215 # include <netatalk/at.h>
10216 #endif
10217
10218 #ifdef _WIN32
10219 # ifdef __MINGW32__
10220 # include <_mingw.h>
10221 # ifdef __MINGW64_VERSION_MAJOR
10222 # include <winsock2.h>
10223 # endif
10224 # endif
10225 # include <windows.h>
10226 # include <atalkwsh.h>
10227 #endif
10228
10229 "
10230 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_at_sat_addr" = xyes
10231 then :
10232
10233 else case e in #(
10234 e)
10235 ac_fn_objc_check_memberscip-shell shell shell-project 0.0.0 ac_fn_objc_check_member(). "$LINENO" "struct sockaddr_at" "sat_net" "ac_cv_member_struct_sockaddr_at_sat_net" "
10236 #ifdef _WIN32
10237 typedef int BOOL;
10238 #endif
10239
10240 #ifdef OF_HAVE_SYS_TYPES_H
10241 # include <sys/types.h>
10242 #endif
10243 #if defined(OF_HAVE_NETAT_APPLETALK_H)
10244 # include <netat/appletalk.h>
10245 #elif defined(OF_HAVE_NETATALK_AT_H)
10246 # include <netatalk/at.h>
10247 #endif
10248
10249 #ifdef _WIN32
10250 # ifdef __MINGW32__
10251 # include <_mingw.h>
10252 # ifdef __MINGW64_VERSION_MAJOR
10253 # include <winsock2.h>
10254 # endif
10255 # endif
10256 # include <windows.h>
10257 # include <atalkwsh.h>
10258 #endif
10259
10260 "
10261 if testscip-shell system . . test. "x$ac_cv_member_struct_sockaddr_at_sat_net" = xyes
10262 then :
10263
10264 fi
10265
10266 ;;
10267 esac
10268 fi
10269
10270 if testscip-shell system . . test. x"$ac_cv_member_struct_sockaddr_at_sat_addr" = x"yes" \
10271 -o x"$ac_cv_member_struct_sockaddr_at_sat_net" = x"yes"
10272 then :
10273
10274 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276
10277 #ifdef _WIN32
10278 typedef int BOOL;
10279 #endif
10280
10281 #ifdef OF_HAVE_SYS_SOCKET_H
10282 # include <sys/socket.h>
10283 #endif
10284
10285 #ifdef _WIN32
10286 # ifdef __MINGW32__
10287 # include <_mingw.h>
10288 # ifdef __MINGW64_VERSION_MAJOR
10289 # include <winsock2.h>
10290 # endif
10291 # endif
10292 # include <windows.h>
10293 # include <atalkwsh.h>
10294 #endif
10295
10296 #ifdef AF_APPLETALK
10297 egrep_cpp_yes
10298 #endif
10299
10300 _ACEOF
10301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10302 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
10303 then :
10304
10305
10306 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_APPLETALK 1" >>confdefs.h
10307
10308 USE_SRCS_APPLETALK='${SRCS_APPLETALK}'
10309
10310
10311 fi
10312 rmscip-shell system . . rm. -rf conftest*
10313
10314
10315 fi
10316
10317
10318 for ac_func in paccept accept4
10319 do :
10320 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
10321 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
10322 if eval test \"x\$"$as_ac_var"\" = x"yes"
10323 then :
10324 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
10325 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
10326 _ACEOF
10327 break
10328 fi
10329
10330 done
10331
10332
10333 for ac_func in kqueue1 kqueue
10334 do :
10335 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
10336 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
10337 if eval test \"x\$"$as_ac_var"\" = x"yes"
10338 then :
10339 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
10340 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
10341 _ACEOF
10342
10343
10344 printfscip-shell system . . printf. "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
10345
10346 OF_KQUEUE_KERNEL_EVENT_OBSERVER_M="OFKqueueKernelEventObserver.m"
10347
10348 break
10349
10350 fi
10351
10352 done
10353
10354 for ac_func in epoll_create1 epoll_create
10355 do :
10356 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
10357 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
10358 if eval test \"x\$"$as_ac_var"\" = x"yes"
10359 then :
10360 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
10361 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
10362 _ACEOF
10363
10364
10365 printfscip-shell system . . printf. "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
10366
10367 OF_EPOLL_KERNEL_EVENT_OBSERVER_M="OFEpollKernelEventObserver.m"
10368
10369 break
10370
10371 fi
10372
10373 done
10374
10375 case "$host_os" in
10376 amigaos*)
10377 ;;
10378 *)
10379 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10380 if testscip-shell system . . test. "x$ac_cv_header_poll_h" = xyes
10381 then :
10382 printfscip-shell system . . printf. "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
10383
10384 fi
10385
10386 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "poll" "ac_cv_func_poll"
10387 if testscip-shell system . . test. "x$ac_cv_func_poll" = xyes
10388 then :
10389
10390
10391 printfscip-shell system . . printf. "%s\n" "#define HAVE_POLL 1" >>confdefs.h
10392
10393 OF_POLL_KERNEL_EVENT_OBSERVER_M="OFPollKernelEventObserver.m"
10394
10395
10396 fi
10397
10398 ;;
10399 esac
10400
10401 case "$host_os" in
10402 amigaos* | mingw* | morphos*)
10403
10404 printfscip-shell system . . printf. "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
10405
10406 OF_SELECT_KERNEL_EVENT_OBSERVER_M="OFSelectKernelEventObserver.m"
10407
10408 ;;
10409 *)
10410 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
10411 if testscip-shell system . . test. "x$ac_cv_header_sys_select_h" = xyes
10412 then :
10413 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
10414
10415 fi
10416
10417 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "select" "ac_cv_func_select"
10418 if testscip-shell system . . test. "x$ac_cv_func_select" = xyes
10419 then :
10420
10421
10422 printfscip-shell system . . printf. "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
10423
10424 OF_SELECT_KERNEL_EVENT_OBSERVER_M="OFSelectKernelEventObserver.m"
10425
10426
10427 fi
10428
10429 ;;
10430 esac
10431
10432
10433 # Check whether --with-tls was given.
10434 if testscip-shell system . . test. ${with_tls+y}
10435 then :
10436 withval=$with_tls;
10437 fi
10438
10439 if testscip-shell system . . test. x"$with_tls" = x""
10440 then :
10441 with_tls="yes"
10442 fi
10443 tls_support="no"
10444
10445 if testscip-shell system . . test. x"$with_tls" = x"openssl" \
10446 -o \( x"$with_tls" = x"yes" -a x"$tls_support" = x"no" \)
10447 then :
10448
10449 case "$host_os" in
10450 morphos*)
10451 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL4Base in -lssl_shared" >&5
10452 printfscip-shell system . . printf. %s "checking for OpenSSL4Base in -lssl_shared... " >&6; }
10453 if testscip-shell system . . test. ${ac_cv_lib_ssl_shared_OpenSSL4Base+y}
10454 then :
10455 printfscip-shell system . . printf. %s "(cached) " >&6
10456 else case e in #(
10457 e) ac_check_lib_save_LIBS=$LIBS
10458 LIBS="-lssl_shared $LIBS"
10459 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461
10462 /* Override any GCC internal prototype to avoid an error.
10463 Use char because int might match the return type of a GCC
10464 builtin and then its argument prototype would still apply.
10465 The 'extern "C"' is for builds by C++ compilers;
10466 although this is not generally supported in C code supporting it here
10467 has little cost and some practical benefit (sr 110532). */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char OpenSSL4Base (void);
10472 int
10473 main (void)
10474 {
10475 return OpenSSL4Base ();
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10481 then :
10482 ac_cv_lib_ssl_shared_OpenSSL4Base=yes
10483 else case e in #(
10484 e) ac_cv_lib_ssl_shared_OpenSSL4Base=no ;;
10485 esac
10486 fi
10487 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS ;;
10490 esac
10491 fi
10492 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_shared_OpenSSL4Base" >&5
10493 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_ssl_shared_OpenSSL4Base" >&6; }
10494 if testscip-shell system . . test. "x$ac_cv_lib_ssl_shared_OpenSSL4Base" = xyes
10495 then :
10496
10497 ssl="ssl_shared"
10498 crypto="crypto_shared"
10499
10500 else case e in #(
10501 e)
10502 ssl="ssl"
10503 crypto="crypto"
10504 ;;
10505 esac
10506 fi
10507
10508 TLS_LIBS="-pthread -latomic $TLS_LIBS"
10509 ;;
10510 mingw*)
10511 ssl="ssl"
10512 crypto="crypto"
10513 TLS_LIBS="-lcrypt32 -lpathcch $TLS_LIBS"
10514 ;;
10515 *)
10516 ssl="ssl"
10517 crypto="crypto"
10518 ;;
10519 esac
10520
10521 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10522 if testscip-shell system . . test. "x$ac_cv_header_openssl_ssl_h" = xyes
10523 then :
10524
10525 as_ac_Lib=`printfscip-shell system . . printf. "%s\n" "ac_cv_lib_$ssl""_SSL_set1_host" | sedscip-shell system . . sed. "$as_sed_sh"`
10526 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_set1_host in -l$ssl" >&5
10527 printfscip-shell system . . printf. %s "checking for SSL_set1_host in -l$ssl... " >&6; }
10528 if eval test \${$as_ac_Lib+y}
10529 then :
10530 printfscip-shell system . . printf. %s "(cached) " >&6
10531 else case e in #(
10532 e) ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-l$ssl -l$crypto $TLS_LIBS $LIBS"
10534 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536
10537 /* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply.
10540 The 'extern "C"' is for builds by C++ compilers;
10541 although this is not generally supported in C code supporting it here
10542 has little cost and some practical benefit (sr 110532). */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char SSL_set1_host (void);
10547 int
10548 main (void)
10549 {
10550 return SSL_set1_host ();
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10556 then :
10557 eval "$as_ac_Lib=yes"
10558 else case e in #(
10559 e) eval "$as_ac_Lib=no" ;;
10560 esac
10561 fi
10562 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS ;;
10565 esac
10566 fi
10567 eval ac_res=\$$as_ac_Lib
10568 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10569 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
10570 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
10571 then :
10572
10573 tls_support="OpenSSL"
10574 tmp="-l$ssl -l$crypto"
10575 TLS_LIBS="$tmp $TLS_LIBS"
10576 TLS_FRAMEWORK_LIBS="$tmp $TLS_FRAMEWORK_LIBS"
10577
10578 else case e in #(
10579 e)
10580 as_ac_Lib=`printfscip-shell system . . printf. "%s\n" "ac_cv_lib_$ssl""_SSL_set1_host" | sedscip-shell system . . sed. "$as_sed_sh"`
10581 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_set1_host in -l$ssl" >&5
10582 printfscip-shell system . . printf. %s "checking for SSL_set1_host in -l$ssl... " >&6; }
10583 if eval test \${$as_ac_Lib+y}
10584 then :
10585 printfscip-shell system . . printf. %s "(cached) " >&6
10586 else case e in #(
10587 e) ac_check_lib_save_LIBS=$LIBS
10588 LIBS="-l$ssl -l$crypto -lz $TLS_LIBS $LIBS"
10589 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591
10592 /* Override any GCC internal prototype to avoid an error.
10593 Use char because int might match the return type of a GCC
10594 builtin and then its argument prototype would still apply.
10595 The 'extern "C"' is for builds by C++ compilers;
10596 although this is not generally supported in C code supporting it here
10597 has little cost and some practical benefit (sr 110532). */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char SSL_set1_host (void);
10602 int
10603 main (void)
10604 {
10605 return SSL_set1_host ();
10606 ;
10607 return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10611 then :
10612 eval "$as_ac_Lib=yes"
10613 else case e in #(
10614 e) eval "$as_ac_Lib=no" ;;
10615 esac
10616 fi
10617 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS ;;
10620 esac
10621 fi
10622 eval ac_res=\$$as_ac_Lib
10623 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10624 printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; }
10625 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
10626 then :
10627
10628 tls_support="OpenSSL"
10629 tmp="-l$ssl -l$crypto -lz"
10630 TLS_LIBS="$tmp $TLS_LIBS"
10631 tmp="$tmp $TLS_FRAMEWORK_LIBS"
10632 TLS_FRAMEWORK_LIBS="$tmp"
10633
10634 fi
10635
10636 ;;
10637 esac
10638 fi
10639
10640
10641 if testscip-shell system . . test. x"$tls_support" = x"OpenSSL"
10642 then :
10643
10644 USE_SRCS_OPENSSL='${SRCS_OPENSSL}'
10645
10646
10647 fi
10648
10649 fi
10650
10651
10652 fi
10653
10654 if testscip-shell system . . test. x"$with_tls" = x"gnutls" \
10655 -o \( x"$with_tls" = x"yes" -a x"$tls_support" = x"no" \)
10656 then :
10657
10658
10659 pkg_failed=no
10660 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls" >&5
10661 printfscip-shell system . . printf. %s "checking for gnutls... " >&6; }
10662
10663 if testscip-shell system . . test. -n "$gnutls_CFLAGS"; then
10664 pkg_cv_gnutls_CFLAGS="$gnutls_CFLAGS"
10665 elif testscip-shell system . . test. -n "$PKG_CONFIG"; then
10666 if testscip-shell system . . test. -n "$PKG_CONFIG" && \
10667 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.5.0\""; } >&5
10668 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.5.0") 2>&5
10669 ac_status=$?
10670 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10671 testscip-shell system . . test. $ac_status = 0; }; then
10672 pkg_cv_gnutls_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.5.0" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
10673 testscip-shell system . . test. "x$?" != "x0" && pkg_failed=yes
10674 else
10675 pkg_failed=yes
10676 fi
10677 else
10678 pkg_failed=untried
10679 fi
10680 if testscip-shell system . . test. -n "$gnutls_LIBS"; then
10681 pkg_cv_gnutls_LIBS="$gnutls_LIBS"
10682 elif testscip-shell system . . test. -n "$PKG_CONFIG"; then
10683 if testscip-shell system . . test. -n "$PKG_CONFIG" && \
10684 { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.5.0\""; } >&5
10685 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.5.0") 2>&5
10686 ac_status=$?
10687 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688 testscip-shell system . . test. $ac_status = 0; }; then
10689 pkg_cv_gnutls_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.5.0" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
10690 testscip-shell system . . test. "x$?" != "x0" && pkg_failed=yes
10691 else
10692 pkg_failed=yes
10693 fi
10694 else
10695 pkg_failed=untried
10696 fi
10697
10698
10699
10700 if testscip-shell system . . test. $pkg_failed = yes; then
10701 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 printfscip-shell system . . printf. "%s\n" "no" >&6; }
10703
10704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10705 _pkg_short_errors_supported=yes
10706 else
10707 _pkg_short_errors_supported=no
10708 fi
10709 if testscip-shell system . . test. $_pkg_short_errors_supported = yes; then
10710 gnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.5.0" 2>&1`
10711 else
10712 gnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.5.0" 2>&1`
10713 fi
10714 # Put the nasty error message in config.log where it belongs
10715 echoscip-shell system . . echo. "$gnutls_PKG_ERRORS" >&5
10716
10717
10718 :
10719
10720 elif testscip-shell system . . test. $pkg_failed = untried; then
10721 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 printfscip-shell system . . printf. "%s\n" "no" >&6; }
10723
10724 :
10725
10726 else
10727 gnutls_CFLAGS=$pkg_cv_gnutls_CFLAGS
10728 gnutls_LIBS=$pkg_cv_gnutls_LIBS
10729 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10730 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
10731
10732 tls_support="GnuTLS"
10733 TLS_CPPFLAGS="$gnutls_CFLAGS $TLS_CPPFLAGS"
10734 TLS_LIBS="$gnutls_LIBS $TLS_LIBS"
10735 TLS_FRAMEWORK_LIBS="$gnutls_LIBS $TLS_FRAMEWORK_LIBS"
10736
10737 USE_SRCS_GNUTLS='${SRCS_GNUTLS}'
10738
10739
10740 fi
10741
10742 fi
10743
10744 if testscip-shell system . . test. x"$with_tls" = x"mbedtls"
10745 then :
10746
10747 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_net_init in -lmbedtls" >&5
10748 printfscip-shell system . . printf. %s "checking for mbedtls_net_init in -lmbedtls... " >&6; }
10749 if testscip-shell system . . test. ${ac_cv_lib_mbedtls_mbedtls_net_init+y}
10750 then :
10751 printfscip-shell system . . printf. %s "(cached) " >&6
10752 else case e in #(
10753 e) ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
10755 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757
10758 /* Override any GCC internal prototype to avoid an error.
10759 Use char because int might match the return type of a GCC
10760 builtin and then its argument prototype would still apply.
10761 The 'extern "C"' is for builds by C++ compilers;
10762 although this is not generally supported in C code supporting it here
10763 has little cost and some practical benefit (sr 110532). */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 char mbedtls_net_init (void);
10768 int
10769 main (void)
10770 {
10771 return mbedtls_net_init ();
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10777 then :
10778 ac_cv_lib_mbedtls_mbedtls_net_init=yes
10779 else case e in #(
10780 e) ac_cv_lib_mbedtls_mbedtls_net_init=no ;;
10781 esac
10782 fi
10783 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS ;;
10786 esac
10787 fi
10788 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_net_init" >&5
10789 printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_mbedtls_mbedtls_net_init" >&6; }
10790 if testscip-shell system . . test. "x$ac_cv_lib_mbedtls_mbedtls_net_init" = xyes
10791 then :
10792
10793 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "mbedtls/ssl.h" "ac_cv_header_mbedtls_ssl_h" "$ac_includes_default"
10794 if testscip-shell system . . test. "x$ac_cv_header_mbedtls_ssl_h" = xyes
10795 then :
10796
10797 tls_support="Mbed TLS"
10798 tmp="-lmbedtls -lmbedx509 -lmbedcrypto"
10799 TLS_LIBS="$tmp $TLS_LIBS"
10800 TLS_FRAMEWORK_LIBS="$tmp $TLS_FRAMEWORK_LIBS"
10801
10802 USE_SRCS_MBEDTLS='${SRCS_MBEDTLS}'
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810
10811 fi
10812
10813 if testscip-shell system . . test. x"$tls_support" != x"no"
10814 then :
10815
10816 TLS="tls"
10817
10818
10819
10820
10821
10822
10823 printfscip-shell system . . printf. "%s\n" "#define HAVE_TLS_SUPPORT 1" >>confdefs.h
10824
10825 ac_config_files="$ac_config_files src/tls/ObjFWTLS.oc src/tls/Info.plist"
10826
10827
10828 OFARC_LIBS="-lobjfwtls $TLS_LIBS $OFARC_LIBS"
10829 OFHASH_LIBS="-lobjfwtls $TLS_LIBS $OFHASH_LIBS"
10830 OFHTTP_LIBS="-lobjfwtls $TLS_LIBS $OFHTTP_LIBS"
10831
10832 if testscip-shell system . . test. x"$enable_shared" != x"no"
10833 then :
10834
10835 OBJFWTLS_SHARED_LIB='${LIB_PREFIX}objfwtls${LIB_SUFFIX}'
10836
10837
10838 fi
10839 if testscip-shell system . . test. x"$enable_static" = x"yes" \
10840 -o x"$enable_shared" = x"no"
10841 then :
10842
10843 OBJFWTLS_STATIC_LIB="libobjfwtls.a"
10844
10845
10846 fi
10847 if testscip-shell system . . test. x"$build_framework" = x"yes"
10848 then :
10849
10850 OBJFWTLS_FRAMEWORK="ObjFWTLS.framework"
10851
10852
10853 fi
10854
10855 fi
10856
10857 if testscip-shell system . . test. x"$with_tls" != x"no" -a x"$tls_support" = x"no"
10858 then :
10859
10860 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "No TLS implementation was found. Please install OpenSSL, GnuTLS, Mbed TLS or use --without-tls." "$LINENO" 5
10861
10862 fi
10863
10864 if testscip-shell system . . test. x"$enable_threads" != x"no"
10865 then :
10866
10867 OF_HTTP_CLIENT_TESTS_M="OFHTTPClientTests.m"
10868
10869
10870 fi
10871
10872 OFDNS="ofdns"
10873
10874 if testscip-shell system . . test. x"$enable_files" != x"no"
10875 then :
10876
10877 OFHTTP="ofhttp"
10878
10879
10880
10881 fi
10882
10883 fi
10884
10885
10886
10887 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
10888 printfscip-shell system . . printf. %s "checking for __builtin_bswap16... " >&6; }
10889 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891
10892
10893 #include <stdint.h>
10894 #include <stdio.h>
10895 #include <errno.h>
10896
10897 int
10898 main (void)
10899 {
10900
10901 uint16_t i = errno;
10902 printf("%d", (int)__builtin_bswap16(i));
10903
10904 ;
10905 return 0;
10906 }
10907
10908 _ACEOF
10909 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10910 then :
10911
10912 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
10914
10915 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_BUILTIN_BSWAP16 1" >>confdefs.h
10916
10917
10918 else case e in #(
10919 e)
10920 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 printfscip-shell system . . printf. "%s\n" "no" >&6; }
10922 ;;
10923 esac
10924 fi
10925 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10926 conftest$ac_exeext conftest.$ac_ext
10927
10928
10929 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
10930 printfscip-shell system . . printf. %s "checking for __builtin_bswap32... " >&6; }
10931 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933
10934
10935 #include <stdint.h>
10936 #include <stdio.h>
10937 #include <errno.h>
10938
10939 int
10940 main (void)
10941 {
10942
10943 uint32_t i = errno;
10944 printf("%d", (int)__builtin_bswap32(i));
10945
10946 ;
10947 return 0;
10948 }
10949
10950 _ACEOF
10951 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10952 then :
10953
10954 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
10956
10957 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
10958
10959
10960 else case e in #(
10961 e)
10962 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 printfscip-shell system . . printf. "%s\n" "no" >&6; }
10964 ;;
10965 esac
10966 fi
10967 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
10968 conftest$ac_exeext conftest.$ac_ext
10969
10970
10971 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
10972 printfscip-shell system . . printf. %s "checking for __builtin_bswap64... " >&6; }
10973 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975
10976
10977 #include <stdint.h>
10978 #include <stdio.h>
10979 #include <errno.h>
10980
10981 int
10982 main (void)
10983 {
10984
10985 uint64_t i = errno;
10986 printf("%d", (int)__builtin_bswap64(i));
10987
10988 ;
10989 return 0;
10990 }
10991
10992 _ACEOF
10993 if ac_fn_objc_try_linkscip-shell shell shell-project 0.0.0 ac_fn_objc_try_link(). "$LINENO"
10994 then :
10995
10996 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10997 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
10998
10999 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
11000
11001
11002 else case e in #(
11003 e)
11004 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11006 ;;
11007 esac
11008 fi
11009 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \
11010 conftest$ac_exeext conftest.$ac_ext
11011
11012
11013 case "$host_os" in
11014 darwin*)
11015 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are compiling for macOS" >&5
11016 printfscip-shell system . . printf. %s "checking whether we are compiling for macOS... " >&6; }
11017 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 #include <TargetConditionals.h>
11021
11022 #if (!defined(TARGET_OS_IPHONE) || !TARGET_OS_IPHONE) && \
11023 (!defined(TARGET_OS_SIMULATOR) || !TARGET_OS_SIMULATOR)
11024 egrep_cpp_yes
11025 #endif
11026
11027 _ACEOF
11028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11029 $EGREP_TRADITIONAL "egrep_cpp_yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
11030 then :
11031
11032 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11034
11035 else case e in #(
11036 e)
11037 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11039 have_subprocesses="no"
11040 ;;
11041 esac
11042 fi
11043 rmscip-shell system . . rm. -rf conftest*
11044
11045 ;;
11046 mingw*)
11047 have_subprocesses="yes"
11048 ;;
11049 msdosdjgpp*)
11050 have_subprocesses="no"
11051 ;;
11052 esac
11053 if testscip-shell system . . test. x"$have_subprocesses" = x""
11054 then :
11055
11056 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11057 printfscip-shell system . . printf. %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11058 if testscip-shell system . . test. ${ac_cv_header_sys_wait_h+y}
11059 then :
11060 printfscip-shell system . . printf. %s "(cached) " >&6
11061 else case e in #(
11062 e) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064 #include <sys/types.h>
11065 #include <sys/wait.h>
11066 #ifndef WEXITSTATUS
11067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11068 #endif
11069 #ifndef WIFEXITED
11070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11071 #endif
11072
11073 int
11074 main (void)
11075 {
11076 int s;
11077 wait (&s);
11078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11079 ;
11080 return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11084 then :
11085 ac_cv_header_sys_wait_h=yes
11086 else case e in #(
11087 e) ac_cv_header_sys_wait_h=no ;;
11088 esac
11089 fi
11090 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11091 esac
11092 fi
11093 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11094 printfscip-shell system . . printf. "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
11095 if testscip-shell system . . test. $ac_cv_header_sys_wait_h = yes; then
11096
11097 printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11098
11099 fi
11100
11101 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "kill" "ac_cv_func_kill"
11102 if testscip-shell system . . test. "x$ac_cv_func_kill" = xyes
11103 then :
11104 printfscip-shell system . . printf. "%s\n" "#define HAVE_KILL 1" >>confdefs.h
11105
11106 fi
11107
11108
11109
11110 for ac_func in posix_spawnp
11111 do :
11112 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
11113 if testscip-shell system . . test. "x$ac_cv_func_posix_spawnp" = xyes
11114 then :
11115 printfscip-shell system . . printf. "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
11116
11117 if testscip-shell system . . test. x"$ac_cv_func_kill" = x"yes"
11118 then :
11119
11120 for ac_header in spawn.h
11121 do :
11122 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
11123 if testscip-shell system . . test. "x$ac_cv_header_spawn_h" = xyes
11124 then :
11125 printfscip-shell system . . printf. "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
11126 have_subprocesses="yes"
11127 fi
11128
11129 done
11130
11131 fi
11132
11133 fi
11134
11135 done
11136
11137 if testscip-shell system . . test. x"$have_subprocesses" = x""
11138 then :
11139
11140
11141 for ac_func in vfork dup2 execvp _exit
11142 do :
11143 as_ac_var=`printfscip-shell system . . printf. "%s\n" "ac_cv_func_$ac_func" | sedscip-shell system . . sed. "$as_sed_sh"`
11144 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "$ac_func" "$as_ac_var"
11145 if eval test \"x\$"$as_ac_var"\" = x"yes"
11146 then :
11147 catscip-shell system . . cat. >>confdefs.h <<_ACEOF
11148 #define `printfscip-shell system . . printf. "%s\n" "HAVE_$ac_func" | sedscip-shell system . . sed. "$as_sed_cpp"` 1
11149 _ACEOF
11150
11151 if testscip-shell system . . test. x"$ac_cv_func_vfork" = x"yes" \
11152 -a x"$ac_cv_func_pipe" = x"yes" \
11153 -a x"$ac_cv_func_dup2" = x"yes" \
11154 -a x"$ac_cv_func_execvp" = x"yes" \
11155 -a x"$ac_cv_func_kill" = x"yes" \
11156 -a x"$ac_cv_func__exit" = x"yes"
11157 then :
11158
11159 have_subprocesses="yes"
11160
11161 fi
11162
11163 else case e in #(
11164 e)
11165 break
11166 ;;
11167 esac
11168 fi
11169
11170 done
11171
11172 fi
11173
11174 fi
11175 if testscip-shell system . . test. x"$have_subprocesses" = x"yes"
11176 then :
11177
11178 USE_SRCS_SUBPROCESSES='${SRCS_SUBPROCESSES}'
11179
11180 SUBPROCESS="subprocess"
11181
11182
11183 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_SUBPROCESSES 1" >>confdefs.h
11184
11185
11186 fi
11187
11188
11189
11190
11191
11192 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "ioctl" "ac_cv_func_ioctl"
11193 if testscip-shell system . . test. "x$ac_cv_func_ioctl" = xyes
11194 then :
11195 printfscip-shell system . . printf. "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
11196
11197 fi
11198 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "isatty" "ac_cv_func_isatty"
11199 if testscip-shell system . . test. "x$ac_cv_func_isatty" = xyes
11200 then :
11201 printfscip-shell system . . printf. "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
11202
11203 fi
11204
11205
11206 ac_fn_objc_check_funcscip-shell shell shell-project 0.0.0 ac_fn_objc_check_func(). "$LINENO" "pledge" "ac_cv_func_pledge"
11207 if testscip-shell system . . test. "x$ac_cv_func_pledge" = xyes
11208 then :
11209
11210
11211 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_PLEDGE 1" >>confdefs.h
11212
11213
11214 fi
11215
11216
11217 if testscip-shell system . . test. x"$objc_runtime" = x"Apple runtime"
11218 then :
11219
11220 ac_fn_objc_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_check_header_compile(). "$LINENO" "Foundation/NSObject.h" "ac_cv_header_Foundation_NSObject_h" "$ac_includes_default"
11221 if testscip-shell system . . test. "x$ac_cv_header_Foundation_NSObject_h" = xyes
11222 then :
11223
11224 BRIDGE="bridge"
11225
11226 ac_config_files="$ac_config_files src/bridge/Info.plist"
11227
11228
11229 if testscip-shell system . . test. x"$enable_shared" != x"no"
11230 then :
11231
11232 OBJFWBRIDGE_SHARED_LIB='${LIB_PREFIX}objfwbridge${LIB_SUFFIX}'
11233
11234
11235 fi
11236 if testscip-shell system . . test. x"$enable_static" = x"yes" \
11237 -o x"$enable_shared" = x"no"
11238 then :
11239
11240 OBJFWBRIDGE_STATIC_LIB="libobjfwbridge.a"
11241
11242
11243 fi
11244 if testscip-shell system . . test. x"$build_framework" = x"yes"
11245 then :
11246
11247 OBJFWBRIDGE_FRAMEWORK="ObjFWBridge.framework"
11248
11249
11250 fi
11251
11252 fi
11253
11254
11255 fi
11256
11257 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Objective C compiler supports blocks" >&5
11258 printfscip-shell system . . printf. %s "checking whether Objective C compiler supports blocks... " >&6; }
11259 old_OBJCFLAGS="$OBJCFLAGS"
11260 OBJCFLAGS="$OBJCFLAGS -Xclang -fblocks"
11261 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11263
11264
11265 int
11266 main (void)
11267 {
11268
11269 int (^foo)(int bar);
11270 foo = ^ (int bar) { return 0; }
11271
11272 ;
11273 return 0;
11274 }
11275
11276 _ACEOF
11277 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11278 then :
11279
11280 OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -Xclang -fblocks"
11281 OF_BLOCK_TESTS_M="OFBlockTests.m"
11282
11283 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11285
11286 else case e in #(
11287 e)
11288 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11290 OBJCFLAGS="$old_OBJCFLAGS"
11291 ;;
11292 esac
11293 fi
11294 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11295
11296 if testscip-shell system . . test. x"$GOBJC" = x"yes"
11297 then :
11298
11299 OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith"
11300
11301 # Check whether --enable-werror was given.
11302 if testscip-shell system . . test. ${enable_werror+y}
11303 then :
11304 enableval=$enable_werror;
11305 fi
11306
11307 if testscip-shell system . . test. x"$enable_werror" = x"yes"
11308 then :
11309
11310 OBJCFLAGS="$OBJCFLAGS -Werror"
11311
11312 fi
11313
11314 old_OBJCFLAGS="$OBJCFLAGS"
11315 OBJCFLAGS="$OBJCFLAGS -Werror"
11316 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -Wno-strict-aliasing due to GCC bugs" >&5
11317 printfscip-shell system . . printf. %s "checking whether we need -Wno-strict-aliasing due to GCC bugs... " >&6; }
11318 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320
11321
11322 #ifdef __has_attribute
11323 # if __has_attribute(objc_root_class)
11324 __attribute__((__objc_root_class__))
11325 # endif
11326 #endif
11327 @interface Foo
11328 {
11329 struct objc_class *_isa;
11330 }
11331 @end
11332
11333 static struct {
11334 struct objc_class *_isa;
11335 } object;
11336
11337 int
11338 main (void)
11339 {
11340
11341 Foo *test = (Foo *)&object;
11342 (void)test; /* Get rid of unused variable warning */
11343
11344 ;
11345 return 0;
11346 }
11347
11348 _ACEOF
11349 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11350 then :
11351
11352 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11354 OBJCFLAGS="$old_OBJCFLAGS"
11355
11356 else case e in #(
11357 e)
11358 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11360 OBJCFLAGS="$old_OBJCFLAGS -Wno-strict-aliasing"
11361 ;;
11362 esac
11363 fi
11364 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11365
11366 old_OBJCFLAGS="$OBJCFLAGS"
11367 OBJCFLAGS="$OBJCFLAGS -Werror"
11368 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -Wno-unused-property-ivar due to Clang bugs" >&5
11369 printfscip-shell system . . printf. %s "checking whether we need -Wno-unused-property-ivar due to Clang bugs... " >&6; }
11370 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372
11373
11374 #ifdef __has_attribute
11375 # if __has_attribute(objc_root_class)
11376 __attribute__((__objc_root_class__))
11377 # endif
11378 #endif
11379 @interface Foo
11380 {
11381 struct objc_class *_isa;
11382 Foo *_foo;
11383 }
11384
11385 @property (readonly, nonatomic) Foo *foo;
11386
11387 + (Foo *)foo;
11388 @end
11389
11390 @implementation Foo
11391 @synthesize foo = _foo;
11392
11393 + (Foo *)foo
11394 {
11395 return (Foo *)0;
11396 }
11397 @end
11398
11399
11400 _ACEOF
11401 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11402 then :
11403
11404 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11406 OBJCFLAGS="$old_OBJCFLAGS"
11407
11408 else case e in #(
11409 e)
11410 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11412 OBJCFLAGS="$old_OBJCFLAGS -Wno-unused-property-ivar"
11413 ;;
11414 esac
11415 fi
11416 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11417
11418 old_OBJCFLAGS="$OBJCFLAGS"
11419 OBJCFLAGS="$OBJCFLAGS -Wcast-align -Werror"
11420 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wcast-align is buggy" >&5
11421 printfscip-shell system . . printf. %s "checking whether -Wcast-align is buggy... " >&6; }
11422 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424
11425
11426 #ifdef __has_attribute
11427 # if __has_attribute(objc_root_class)
11428 __attribute__((__objc_root_class__))
11429 # endif
11430 #endif
11431 @interface Foo
11432 {
11433 struct objc_class *_isa;
11434 }
11435 @end
11436
11437 @implementation Foo
11438 - (void)foo
11439 {
11440 struct objc_class *c = _isa;
11441 (void)c;
11442 }
11443 @end
11444
11445
11446 _ACEOF
11447 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11448 then :
11449
11450 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11452 OBJCFLAGS="$old_OBJCFLAGS -Wcast-align"
11453
11454 else case e in #(
11455 e)
11456 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11458 OBJCFLAGS="$old_OBJCFLAGS"
11459 ;;
11460 esac
11461 fi
11462 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11463
11464 old_OBJCFLAGS="$OBJCFLAGS"
11465 OBJCFLAGS="$OBJCFLAGS -Wunreachable-code -Werror"
11466 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code can be used" >&5
11467 printfscip-shell system . . printf. %s "checking whether -Wunreachable-code can be used... " >&6; }
11468 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470
11471
11472 #include <stdlib.h>
11473
11474 struct objc_selector;
11475 typedef const struct objc_selector *SEL;
11476
11477 #ifdef __has_attribute
11478 # if __has_attribute(objc_root_class)
11479 __attribute__((__objc_root_class__))
11480 # endif
11481 #endif
11482 @interface Object
11483 - (void)doesNotRecognizeSelector: (SEL)selector
11484 #ifdef __clang__
11485 __attribute__((__noreturn__))
11486 #endif
11487 ;
11488 - (void)dealloc;
11489 @end
11490
11491 @interface Foo: Object
11492 @end
11493
11494 void
11495 test(void)
11496 {
11497 if (sizeof(int) == 4)
11498 __asm__ ("");
11499 else if (sizeof(int) == 8)
11500 __asm__ ("");
11501 else
11502 abort();
11503 }
11504
11505 /*
11506 * Unfortunately, this cannot be shorter, as it only
11507 * works when it is used inside a macro.
11508 */
11509 #ifdef __clang__
11510 # define OF_DEALLOC_UNSUPPORTED \
11511 [self doesNotRecognizeSelector: _cmd]; \
11512 \
11513 abort(); \
11514 \
11515 _Pragma("clang diagnostic push"); \
11516 _Pragma("clang diagnostic ignored \
11517 \"-Wunreachable-code\""); \
11518 [super dealloc]; \
11519 _Pragma("clang diagnostic pop");
11520 #else
11521 # define OF_DEALLOC_UNSUPPORTED \
11522 [self doesNotRecognizeSelector: _cmd]; \
11523 \
11524 abort(); \
11525 \
11526 [super dealloc];
11527 #endif
11528
11529 @implementation Foo
11530 - (void)dealloc
11531 {
11532 OF_DEALLOC_UNSUPPORTED
11533 }
11534 @end
11535
11536
11537 _ACEOF
11538 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11539 then :
11540
11541 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11543 OBJCFLAGS="$old_OBJCFLAGS -Wunreachable-code"
11544
11545 else case e in #(
11546 e)
11547 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11549 OBJCFLAGS="$old_OBJCFLAGS"
11550 ;;
11551 esac
11552 fi
11553 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11554
11555 old_OBJCFLAGS="$OBJCFLAGS"
11556 OBJCFLAGS="$OBJCFLAGS -Wdocumentation -Werror"
11557 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation works correctly" >&5
11558 printfscip-shell system . . printf. %s "checking whether -Wdocumentation works correctly... " >&6; }
11559 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562
11563 /**
11564 * @class Test conftest.m conftest.m
11565 */
11566 #ifdef __has_attribute
11567 # if __has_attribute(objc_root_class)
11568 __attribute__((__objc_root_class__))
11569 # endif
11570 #endif
11571 @interface Test
11572 @end
11573
11574 /**
11575 * @struct Foo conftest.m conftest.m
11576 */
11577 typedef struct {} Foo;
11578
11579
11580 _ACEOF
11581 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11582 then :
11583
11584 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11586 OBJCFLAGS="$old_OBJCFLAGS -Wdocumentation"
11587
11588 else case e in #(
11589 e)
11590 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11592 OBJCFLAGS="$old_OBJCFLAGS"
11593 ;;
11594 esac
11595 fi
11596 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11597
11598 if testscip-shell system . . test. x"$check_pedantic" = x"yes"
11599 then :
11600
11601 old_OBJCFLAGS="$OBJCFLAGS"
11602 OBJCFLAGS="$OBJCFLAGS -pedantic -Werror"
11603 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -pedantic is buggy" >&5
11604 printfscip-shell system . . printf. %s "checking whether -pedantic is buggy... " >&6; }
11605 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608
11609 #include <stdlib.h>
11610
11611 #include <assert.h>
11612
11613 #ifdef __has_attribute
11614 # if __has_attribute(objc_root_class)
11615 __attribute__((__objc_root_class__))
11616 # endif
11617 #endif
11618 @interface Foo
11619 {
11620 void *foo;
11621 }
11622 @end
11623
11624 @interface Bar: Foo
11625 - (void)assert;
11626 @end
11627
11628 @implementation Bar
11629 - (void)assert
11630 {
11631 /*
11632 * Some versions of glibc break with
11633 * -pedantic when using assert.
11634 */
11635 assert(1);
11636 }
11637 @end
11638
11639
11640 _ACEOF
11641 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11642 then :
11643
11644 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11646 OBJCFLAGS="$old_OBJCFLAGS -pedantic"
11647
11648 else case e in #(
11649 e)
11650 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11652 OBJCFLAGS="$old_OBJCFLAGS"
11653 ;;
11654 esac
11655 fi
11656 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11657
11658 fi
11659
11660 old_OBJCFLAGS="$OBJCFLAGS"
11661 OBJCFLAGS="$OBJCFLAGS -Werror"
11662 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -Wno-strict-prototypes" >&5
11663 printfscip-shell system . . printf. %s "checking whether we need -Wno-strict-prototypes... " >&6; }
11664 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666
11667
11668 #include <signal.h>
11669
11670 int
11671 main (void)
11672 {
11673
11674 signal(SIGINT, SIG_DFL);
11675
11676 ;
11677 return 0;
11678 }
11679
11680 _ACEOF
11681 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11682 then :
11683
11684 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11686 OBJCFLAGS="$old_OBJCFLAGS"
11687
11688 else case e in #(
11689 e)
11690 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11691 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11692 OBJCFLAGS="$old_OBJCFLAGS -Wno-strict-prototypes"
11693 ;;
11694 esac
11695 fi
11696 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11697
11698 if testscip-shell system . . test. x"$ac_cv_header_complex_h" = x"yes"
11699 then :
11700
11701 old_OBJCFLAGS="$OBJCFLAGS"
11702 OBJCFLAGS="$OBJCFLAGS -Werror"
11703 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -Wno-gnu-imaginary-constant" >&5
11704 printfscip-shell system . . printf. %s "checking whether we need -Wno-gnu-imaginary-constant... " >&6; }
11705 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11707
11708
11709 #include <complex.h>
11710
11711 int
11712 main (void)
11713 {
11714
11715 complex float f = 0.5 + 0.5 * I;
11716 (void)f;
11717
11718 ;
11719 return 0;
11720 }
11721
11722 _ACEOF
11723 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11724 then :
11725
11726 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11728 OBJCFLAGS="$old_OBJCFLAGS"
11729
11730 else case e in #(
11731 e)
11732 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11734 OBJCFLAGS="$old_OBJCFLAGS -Wno-gnu-imaginary-constant"
11735 ;;
11736 esac
11737 fi
11738 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11739
11740 fi
11741
11742 fi
11743
11744 case "$host_os" in
11745 linux*)
11746 if testscip-shell system . . test. x"$enable_files" != x"no"
11747 then :
11748
11749 USE_SRCS_EVDEV='${SRCS_EVDEV}'
11750
11751 OFGCTESTER=ofgctester
11752
11753
11754 fi
11755 ;;
11756 mingw*)
11757 USE_SRCS_XINPUT='${SRCS_XINPUT}'
11758
11759 OFGCTESTER=ofgctester
11760
11761 ;;
11762 darwin*)
11763 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new enough GameController.framework" >&5
11764 printfscip-shell system . . printf. %s "checking for new enough GameController.framework... " >&6; }
11765 catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767
11768
11769 #import <GameController/GameController.h>
11770
11771 int
11772 main (void)
11773 {
11774
11775 if (@available(macOS 14.0, iOS 17.0, *)) {
11776 GCController *controller =
11777 GCController.controllers[0];
11778 (void)controller.input;
11779 }
11780
11781 ;
11782 return 0;
11783 }
11784
11785 _ACEOF
11786 if ac_fn_objc_try_compilescip-shell shell shell-project 0.0.0 ac_fn_objc_try_compile(). "$LINENO"
11787 then :
11788
11789 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11790 printfscip-shell system . . printf. "%s\n" "yes" >&6; }
11791 USE_SRCS_GCF='${SRCS_GCF}'
11792
11793 OFGCTESTER=ofgctester
11794
11795
11796 printfscip-shell system . . printf. "%s\n" "#define OF_HAVE_GCF 1" >>confdefs.h
11797
11798 tmp="-framework GameController"
11799 HID_STATIC_LIBS="$tmp \${libdir}/libobjfwbridge.a $HID_LIBS"
11800 HID_LIBS="$tmp -lobjfwbridge $HID_LIBS"
11801 tmp="$tmp -framework ObjFWBridge"
11802 HID_FRAMEWORK_LIBS="$tmp $HID_FRAMEWORK_LIBS"
11803
11804 else case e in #(
11805 e)
11806 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11808 ;;
11809 esac
11810 fi
11811 rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11812 ;;
11813 esac
11814
11815 if testscip-shell system . . test. x"$cross_compiling" = x"yes"
11816 then :
11817
11818 BIN_PREFIX="${host_alias}-"
11819
11820
11821 case "$host" in
11822 i?86-*-mingw*)
11823 # Extract the first word of "wine", so it can be a program name with args.
11824 set dummy wine; ac_word=$2
11825 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
11827 if testscip-shell system . . test. ${ac_cv_prog_WINE+y}
11828 then :
11829 printfscip-shell system . . printf. %s "(cached) " >&6
11830 else case e in #(
11831 e) if testscip-shell system . . test. -n "$WINE"; then
11832 ac_cv_prog_WINE="$WINE" # Let the user override the test.
11833 else
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11836 do
11837 IFS=$as_save_IFS
11838 case $as_dir in #(((
11839 '') as_dir=./ ;;
11840 */) ;;
11841 *) as_dir=$as_dir/ ;;
11842 esac
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_WINE="wine"
11846 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849 done
11850 done
11851 IFS=$as_save_IFS
11852
11853 fi ;;
11854 esac
11855 fi
11856 WINE=$ac_cv_prog_WINE
11857 if testscip-shell system . . test. -n "$WINE"; then
11858 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
11859 printfscip-shell system . . printf. "%s\n" "$WINE" >&6; }
11860 else
11861 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11863 fi
11864
11865
11866 ;;
11867 x86_64-*-mingw*)
11868 # Extract the first word of "wine64", so it can be a program name with args.
11869 set dummy wine64; ac_word=$2
11870 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
11872 if testscip-shell system . . test. ${ac_cv_prog_WINE+y}
11873 then :
11874 printfscip-shell system . . printf. %s "(cached) " >&6
11875 else case e in #(
11876 e) if testscip-shell system . . test. -n "$WINE"; then
11877 ac_cv_prog_WINE="$WINE" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882 IFS=$as_save_IFS
11883 case $as_dir in #(((
11884 '') as_dir=./ ;;
11885 */) ;;
11886 *) as_dir=$as_dir/ ;;
11887 esac
11888 for ac_exec_ext in '' $ac_executable_extensions; do
11889 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
11890 ac_cv_prog_WINE="wine64"
11891 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11892 break 2
11893 fi
11894 done
11895 done
11896 IFS=$as_save_IFS
11897
11898 fi ;;
11899 esac
11900 fi
11901 WINE=$ac_cv_prog_WINE
11902 if testscip-shell system . . test. -n "$WINE"; then
11903 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
11904 printfscip-shell system . . printf. "%s\n" "$WINE" >&6; }
11905 else
11906 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11908 fi
11909
11910
11911 ;;
11912 esac
11913 if testscip-shell system . . test. x"$WINE" != x""
11914 then :
11915 WRAPPER="$WINE"
11916
11917 fi
11918
11919 if testscip-shell system . . test. x"$with_wii" = x"yes"
11920 then :
11921
11922 # Extract the first word of "wiiload", so it can be a program name with args.
11923 set dummy wiiload; ac_word=$2
11924 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; }
11926 if testscip-shell system . . test. ${ac_cv_prog_wiiload+y}
11927 then :
11928 printfscip-shell system . . printf. %s "(cached) " >&6
11929 else case e in #(
11930 e) if testscip-shell system . . test. -n "$wiiload"; then
11931 ac_cv_prog_wiiload="$wiiload" # Let the user override the test.
11932 else
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11935 do
11936 IFS=$as_save_IFS
11937 case $as_dir in #(((
11938 '') as_dir=./ ;;
11939 */) ;;
11940 *) as_dir=$as_dir/ ;;
11941 esac
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_wiiload="wiiload"
11945 printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948 done
11949 done
11950 IFS=$as_save_IFS
11951
11952 fi ;;
11953 esac
11954 fi
11955 wiiload=$ac_cv_prog_wiiload
11956 if testscip-shell system . . test. -n "$wiiload"; then
11957 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $wiiload" >&5
11958 printfscip-shell system . . printf. "%s\n" "$wiiload" >&6; }
11959 else
11960 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 printfscip-shell system . . printf. "%s\n" "no" >&6; }
11962 fi
11963
11964
11965
11966 if testscip-shell system . . test. x"$wiiload" != x""
11967 then :
11968
11969 WRAPPER="$wiiload"
11970
11971
11972 fi
11973
11974 fi
11975
11976 fi
11977
11978
11979
11980 AS=$OBJC
11981
11982
11983 DEP_ASFLAGS='${DEP_OBJCFLAGS}'
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996 ac_config_files="$ac_config_files buildsys.mk extra.mk misc/ObjFWConfig.cmake misc/ObjFWConfigVersion.cmake src/Info.plist src/hid/Info.plist src/hid/ObjFWHID.oc tests/Info.plist utils/objfw-config"
11997
11998 ac_config_headers="$ac_config_headers config.h src/objfw-defs.h"
11999
12000 catscip-shell system . . cat. >confcache <<\_ACEOF
12001 # This file is a shell script that caches the results of configure
12002 # tests run on this system so they can be shared between configure
12003 # scripts and configure runs, see configure's option --config-cache.
12004 # It is not useful on other systems. If it contains results you don't
12005 # want to keep, you may remove or edit it.
12006 #
12007 # config.status only pays attention to the cache file if you give it
12008 # the --recheck option to rerun configure.
12009 #
12010 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12011 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12012 # following values.
12013
12014 _ACEOF
12015
12016 # The following way of writing the cache mishandles newlines in values,
12017 # but we know of no workaround that is simple, portable, and efficient.
12018 # So, we kill variables containing newlines.
12019 # Ultrix sh set writes to stderr and can't be redirected directly,
12020 # and sets the high bit in the cache file unless we assign to the vars.
12021 (
12022 for ac_var in `(set) 2>&1 | sedscip-shell system . . sed. -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12023 eval ac_val=\$$ac_var
12024 case $ac_val in #(
12025 *${as_nl}*)
12026 case $ac_var in #(
12027 *_cv_*) { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12028 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12029 esac
12030 case $ac_var in #(
12031 _ | IFS | as_nl) ;; #(
12032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12033 *) { eval $ac_var=; unset $ac_var;} ;;
12034 esac ;;
12035 esac
12036 done
12037
12038 (set) 2>&1 |
12039 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12040 *${as_nl}ac_space=\ *)
12041 # 'set' does not quote correctly, so add quotes: double-quote
12042 # substitution turns \\\\ into \\, and sed turns \\ into \.
12043 sedscip-shell system . . sed. -n \
12044 "s/'/'\\\\''/g;
12045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12046 ;; #(
12047 *)
12048 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12049 sedscip-shell system . . sed. -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12050 ;;
12051 esac |
12052 sortscip-shell system . . sort.
12053 ) |
12054 sedscip-shell system . . sed. '
12055 /^ac_cv_env_/b end
12056 t clear
12057 :clear
12058 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12059 t end
12060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12061 :end' >>confcache
12062 if diffscip-shell system . . diff. "$cache_file" confcache >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else
12063 if testscip-shell system . . test. -w "$cache_file"; then
12064 if testscip-shell system . . test. "x$cache_file" != "x/dev/null"; then
12065 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12066 printfscip-shell system . . printf. "%s\n" "$as_me: updating cache $cache_file" >&6;}
12067 if testscip-shell system . . test. ! -f "$cache_file" || testscip-shell system . . test. -h "$cache_file"; then
12068 catscip-shell system . . cat. confcache >"$cache_file"
12069 else
12070 case $cache_file in #(
12071 */* | ?:*)
12072 mvscip-shell system . . mv. -f confcache "$cache_file"$$ &&
12073 mvscip-shell system . . mv. -f "$cache_file"$$ "$cache_file" ;; #(
12074 *)
12075 mvscip-shell system . . mv. -f confcache "$cache_file" ;;
12076 esac
12077 fi
12078 fi
12079 else
12080 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12081 printfscip-shell system . . printf. "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12082 fi
12083 fi
12084 rmscip-shell system . . rm. -f confcache
12085
12086 testscip-shell system . . test. "x$prefix" = xNONE && prefix=$ac_default_prefix
12087 # Let make expand exec_prefix.
12088 testscip-shell system . . test. "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12089
12090 DEFS=-DHAVE_CONFIG_H
12091
12092 ac_libobjs=
12093 ac_ltlibobjs=
12094 U=
12095 for ac_i in : $LIBOBJS; do testscip-shell system . . test. "x$ac_i" = x: && continue
12096 # 1. Remove the extension, and $U if already installed.
12097 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12098 ac_i=`printfscip-shell system . . printf. "%s\n" "$ac_i" | sedscip-shell system . . sed. "$ac_script"`
12099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12100 # will be set to the directory where LIBOBJS objects are built.
12101 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12102 as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12103 done
12104 LIBOBJS=$ac_libobjs
12105
12106 LTLIBOBJS=$ac_ltlibobjs
12107
12108
12109
12110 if testscip-shell system . . test. x"$GCC" = x"yes"
12111 then :
12112 DEP_CFLAGS='-MD -MF $${out%.o}.dep'
12113
12114 fi
12115 if testscip-shell system . . test. x"$GXX" = x"yes"
12116 then :
12117 DEP_CXXFLAGS='-MD -MF $${out%.o}.dep'
12118
12119 fi
12120 if testscip-shell system . . test. x"$GOBJC" = x"yes"
12121 then :
12122 DEP_OBJCFLAGS='-MD -MF $${out%.o}.dep'
12123
12124 fi
12125 if testscip-shell system . . test. x"$GOBJCXX" = x"yes"
12126 then :
12127 DEP_OBJCXXFLAGS='-MD -MF $${out%.o}.dep'
12128
12129 fi
12130
12131
12132
12133
12134 if testscip-shell system . . test. x"$enable_silent_rules" != x"no"
12135 then :
12136
12137 SILENT='.SILENT:'
12138
12139 MAKEFLAGS_SILENT='-s'
12140
12141
12142 fi
12143
12144
12145
12146 : "${CONFIG_STATUS=./config.status}"
12147 ac_write_fail=0
12148 ac_clean_files_save=$ac_clean_files
12149 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12150 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12151 printfscip-shell system . . printf. "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12152 as_write_fail=0
12153 catscip-shell system . . cat. >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12154 #! $SHELL
12155 # Generated by $as_me.
12156 # Run this file to recreate the current configuration.
12157 # Compiler output produced by configure, useful for debugging
12158 # configure, is in config.log if it exists.
12159
12160 debug=false
12161 ac_cs_recheck=false
12162 ac_cs_silent=false
12163
12164 SHELL=\${CONFIG_SHELL-$SHELL}
12165 export SHELL
12166 _ASEOF
12167 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12168 ## -------------------- ##
12169 ## M4sh Initialization. ##
12170 ## -------------------- ##
12171
12172 # Be more Bourne compatible
12173 DUALCASE=1; export DUALCASE # for MKS sh
12174 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12175 then :
12176 emulate sh
12177 NULLCMD=:
12178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12179 # is contrary to our usage. Disable this feature.
12180 alias -g '${1+"$@"}'='"$@"'
12181 setopt NO_GLOB_SUBST
12182 else case e in #(
12183 e) case `(set -o) 2>/dev/null` in #(
12184 *posix*) :
12185 set -o posix ;; #(
12186 *) :
12187 ;;
12188 esac ;;
12189 esac
12190 fi
12191
12192
12193
12194 # Reset variables that may have inherited troublesome values from
12195 # the environment.
12196
12197 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12198 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12199 # side effect of setting IFS to empty, thus disabling word splitting.)
12200 # Quoting is to prevent editors from complaining about space-tab.
12201 as_nl='
12202 '
12203 export as_nl
12204 IFS=" "" $as_nl"
12205
12206 PS1='$ '
12207 PS2='> '
12208 PS4='+ '
12209
12210 # Ensure predictable behavior from utilities with locale-dependent output.
12211 LC_ALL=C
12212 export LC_ALL
12213 LANGUAGE=C
12214 export LANGUAGE
12215
12216 # We cannot yet rely on "unset" to work, but we need these variables
12217 # to be unset--not just set to an empty or harmless value--now, to
12218 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12219 # also avoids known problems related to "unset" and subshell syntax
12220 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12221 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12222 do eval test \${$as_var+y} \
12223 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12224 done
12225
12226 # Ensure that fds 0, 1, and 2 are open.
12227 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12228 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12229 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12230
12231 # The user is always right.
12232 if ${PATH_SEPARATOR+false} :; then
12233 PATH_SEPARATOR=:
12234 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12235 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12236 PATH_SEPARATOR=';'
12237 }
12238 fi
12239
12240
12241 # Find who we are. Look in the path if we contain no directory separator.
12242 as_myself=
12243 case $0 in #((
12244 *[\\/]* ) as_myself=$0 ;;
12245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248 IFS=$as_save_IFS
12249 case $as_dir in #(((
12250 '') as_dir=./ ;;
12251 */) ;;
12252 *) as_dir=$as_dir/ ;;
12253 esac
12254 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12255 done
12256 IFS=$as_save_IFS
12257
12258 ;;
12259 esac
12260 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12261 # in which case we are not to be found in the path.
12262 if test "x$as_myself" = x; then
12263 as_myself=$0
12264 fi
12265 if test ! -f "$as_myself"; then
12266 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12267 exit 1
12268 fi
12269
12270
12271
12272 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12273 # ----------------------------------------
12274 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12275 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12276 # script with STATUS, using 1 if that was 0.
12277 as_fn_error ()
12278 {
12279 as_status=$1; test $as_status -eq 0 && as_status=1
12280 if test "$4"; then
12281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12283 fi
12284 printf "%s\n" "$as_me: error: $2" >&2
12285 as_fn_exit $as_status
12286 } # as_fn_error
12287
12288
12289 # as_fn_set_status STATUS
12290 # -----------------------
12291 # Set $? to STATUS, without forking.
12292 as_fn_set_status ()
12293 {
12294 return $1
12295 } # as_fn_set_status
12296
12297 # as_fn_exit STATUS
12298 # -----------------
12299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12300 as_fn_exit ()
12301 {
12302 set +e
12303 as_fn_set_status $1
12304 exit $1
12305 } # as_fn_exit
12306
12307 # as_fn_unset VAR
12308 # ---------------
12309 # Portably unset VAR.
12310 as_fn_unset ()
12311 {
12312 { eval $1=; unset $1;}
12313 }
12314 as_unset=as_fn_unset
12315
12316 # as_fn_append VAR VALUE
12317 # ----------------------
12318 # Append the text in VALUE to the end of the definition contained in VAR. Take
12319 # advantage of any shell optimizations that allow amortized linear growth over
12320 # repeated appends, instead of the typical quadratic growth present in naive
12321 # implementations.
12322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12323 then :
12324 eval 'as_fn_append ()
12325 {
12326 eval $1+=\$2
12327 }'
12328 else case e in #(
12329 e) as_fn_append ()
12330 {
12331 eval $1=\$$1\$2
12332 } ;;
12333 esac
12334 fi # as_fn_append
12335
12336 # as_fn_arith ARG...
12337 # ------------------
12338 # Perform arithmetic evaluation on the ARGs, and store the result in the
12339 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12340 # must be portable across $(()) and expr.
12341 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12342 then :
12343 eval 'as_fn_arith ()
12344 {
12345 as_val=$(( $* ))
12346 }'
12347 else case e in #(
12348 e) as_fn_arith ()
12349 {
12350 as_val=`expr "$@" || test $? -eq 1`
12351 } ;;
12352 esac
12353 fi # as_fn_arith
12354
12355
12356 if expr a : '\(a\)' >/dev/null 2>&1 &&
12357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12358 as_expr=expr
12359 else
12360 as_expr=false
12361 fi
12362
12363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12364 as_basename=basename
12365 else
12366 as_basename=false
12367 fi
12368
12369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12370 as_dirname=dirname
12371 else
12372 as_dirname=false
12373 fi
12374
12375 as_me=`$as_basename -- "$0" ||
12376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12377 X"$0" : 'X\(//\)$' \| \
12378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12379 printf "%s\n" X/"$0" |
12380 sed '/^.*\/\([^/][^/]*\)\/*$/{
12381 s//\1/
12382 q
12383 }
12384 /^X\/\(\/\/\)$/{
12385 s//\1/
12386 q
12387 }
12388 /^X\/\(\/\).*/{
12389 s//\1/
12390 q
12391 }
12392 s/.*/./; q'`
12393
12394 # Avoid depending upon Character Ranges.
12395 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12396 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12397 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12398 as_cr_digits='0123456789'
12399 as_cr_alnum=$as_cr_Letters$as_cr_digits
12400
12401
12402 # Determine whether it's possible to make 'echo' print without a newline.
12403 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12404 # for compatibility with existing Makefiles.
12405 ECHO_C= ECHO_N= ECHO_T=
12406 case `echo -n x` in #(((((
12407 -n*)
12408 case `echo 'xy\c'` in
12409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12410 xy) ECHO_C='\c';;
12411 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12412 ECHO_T=' ';;
12413 esac;;
12414 *)
12415 ECHO_N='-n';;
12416 esac
12417
12418 # For backward compatibility with old third-party macros, we provide
12419 # the shell variables $as_echo and $as_echo_n. New code should use
12420 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12421 as_echo='printf %s\n'
12422 as_echo_n='printf %s'
12423
12424 rm -f conf$$ conf$$.exe conf$$.file
12425 if test -d conf$$.dir; then
12426 rm -f conf$$.dir/conf$$.file
12427 else
12428 rm -f conf$$.dir
12429 mkdir conf$$.dir 2>/dev/null
12430 fi
12431 if (echo >conf$$.file) 2>/dev/null; then
12432 if ln -s conf$$.file conf$$ 2>/dev/null; then
12433 as_ln_s='ln -s'
12434 # ... but there are two gotchas:
12435 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12436 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12437 # In both cases, we have to default to 'cp -pR'.
12438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12439 as_ln_s='cp -pR'
12440 elif ln conf$$.file conf$$ 2>/dev/null; then
12441 as_ln_s=ln
12442 else
12443 as_ln_s='cp -pR'
12444 fi
12445 else
12446 as_ln_s='cp -pR'
12447 fi
12448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12449 rmdir conf$$.dir 2>/dev/null
12450
12451
12452 # as_fn_mkdir_p
12453 # -------------
12454 # Create "$as_dir" as a directory, including parents if necessary.
12455 as_fn_mkdir_p ()
12456 {
12457
12458 case $as_dir in #(
12459 -*) as_dir=./$as_dir;;
12460 esac
12461 test -d "$as_dir" || eval $as_mkdir_p || {
12462 as_dirs=
12463 while :; do
12464 case $as_dir in #(
12465 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12466 *) as_qdir=$as_dir;;
12467 esac
12468 as_dirs="'$as_qdir' $as_dirs"
12469 as_dir=`$as_dirname -- "$as_dir" ||
12470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12471 X"$as_dir" : 'X\(//\)[^/]' \| \
12472 X"$as_dir" : 'X\(//\)$' \| \
12473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12474 printf "%s\n" X"$as_dir" |
12475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12476 s//\1/
12477 q
12478 }
12479 /^X\(\/\/\)[^/].*/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\/\)$/{
12484 s//\1/
12485 q
12486 }
12487 /^X\(\/\).*/{
12488 s//\1/
12489 q
12490 }
12491 s/.*/./; q'`
12492 test -d "$as_dir" && break
12493 done
12494 test -z "$as_dirs" || eval "mkdir $as_dirs"
12495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12496
12497
12498 } # as_fn_mkdir_p
12499 if mkdir -p . 2>/dev/null; then
12500 as_mkdir_p='mkdir -p "$as_dir"'
12501 else
12502 test -d ./-p && rmdir ./-p
12503 as_mkdir_p=false
12504 fi
12505
12506
12507 # as_fn_executable_p FILE
12508 # -----------------------
12509 # Test if FILE is an executable regular file.
12510 as_fn_executable_p ()
12511 {
12512 test -f "$1" && test -x "$1"
12513 } # as_fn_executable_p
12514 as_test_x='test -x'
12515 as_executable_p=as_fn_executable_p
12516
12517 # Sed expression to map a string onto a valid CPP name.
12518 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12519 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12520
12521 # Sed expression to map a string onto a valid variable name.
12522 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12523 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12524
12525
12526 exec 6>&1
12527 ## ----------------------------------- ##
12528 ## Main body of $CONFIG_STATUS script. ##
12529 ## ----------------------------------- ##
12530 _ASEOF
12531 testscip-shell system . . test. $as_write_fail = 0 && chmodscip-shell system . . chmod. +x $CONFIG_STATUS || ac_write_fail=1
12532
12533 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12534 # Save the log message, to keep $0 and so on meaningful, and to
12535 # report actual input values of CONFIG_FILES etc. instead of their
12536 # values after options handling.
12537 ac_log="
12538 This file was extended by ObjFW $as_me 1.5.7, which was
12539 generated by GNU Autoconf 2.72. Invocation command line was
12540
12541 CONFIG_FILES = $CONFIG_FILES
12542 CONFIG_HEADERS = $CONFIG_HEADERS
12543 CONFIG_LINKS = $CONFIG_LINKS
12544 CONFIG_COMMANDS = $CONFIG_COMMANDS
12545 $ $0 $@
12546
12547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12548 "
12549
12550 _ACEOF
12551
12552 case $ac_config_files in *"
12553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12554 esac
12555
12556 case $ac_config_headers in *"
12557 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12558 esac
12559
12560
12561 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12562 # Files that config.status was made for.
12563 config_files="$ac_config_files"
12564 config_headers="$ac_config_headers"
12565
12566 _ACEOF
12567
12568 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569 ac_cs_usage="\
12570 '$as_me' instantiates files and other configuration actions
12571 from templates according to the current configuration. Unless the files
12572 and actions are specified as TAGs, all are instantiated by default.
12573
12574 Usage: $0 [OPTION]... [TAG]...
12575
12576 -h, --help print this help, then exit
12577 -V, --version print version number and configuration settings, then exit
12578 --config print configuration, then exit
12579 -q, --quiet, --silent
12580 do not print progress messages
12581 -d, --debug don't remove temporary files
12582 --recheck update $as_me by reconfiguring in the same conditions
12583 --file=FILE[:TEMPLATE]
12584 instantiate the configuration file FILE
12585 --header=FILE[:TEMPLATE]
12586 instantiate the configuration header FILE
12587
12588 Configuration files:
12589 $config_files
12590
12591 Configuration headers:
12592 $config_headers
12593
12594 Report bugs to <[email protected]>.
12595 ObjFW home page: <https://objfw.nil.im/>."
12596
12597 _ACEOF
12598 ac_cs_config=`printfscip-shell system . . printf. "%s\n" "$ac_configure_args" | sedscip-shell system . . sed. "$ac_safe_unquote"`
12599 ac_cs_config_escaped=`printfscip-shell system . . printf. "%s\n" "$ac_cs_config" | sedscip-shell system . . sed. "s/^ //; s/'/'\\\\\\\\''/g"`
12600 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12601 ac_cs_config='$ac_cs_config_escaped'
12602 ac_cs_version="\\
12603 ObjFW config.status 1.5.7
12604 configured by $0, generated by GNU Autoconf 2.72,
12605 with options \\"\$ac_cs_config\\"
12606
12607 Copyright (C) 2023 Free Software Foundation, Inc.
12608 This config.status script is free software; the Free Software Foundation
12609 gives unlimited permission to copy, distribute and modify it."
12610
12611 ac_pwd='$ac_pwd'
12612 srcdir='$srcdir'
12613 INSTALL='$INSTALL'
12614 test -n "\$AWK" || AWK=awk
12615 _ACEOF
12616
12617 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12618 # The default lists apply if the user does not specify any file.
12619 ac_need_defaults=:
12620 while test $# != 0
12621 do
12622 case $1 in
12623 --*=?*)
12624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12626 ac_shift=:
12627 ;;
12628 --*=)
12629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12630 ac_optarg=
12631 ac_shift=:
12632 ;;
12633 *)
12634 ac_option=$1
12635 ac_optarg=$2
12636 ac_shift=shift
12637 ;;
12638 esac
12639
12640 case $ac_option in
12641 # Handling of the options.
12642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12643 ac_cs_recheck=: ;;
12644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12645 printf "%s\n" "$ac_cs_version"; exit ;;
12646 --config | --confi | --conf | --con | --co | --c )
12647 printf "%s\n" "$ac_cs_config"; exit ;;
12648 --debug | --debu | --deb | --de | --d | -d )
12649 debug=: ;;
12650 --file | --fil | --fi | --f )
12651 $ac_shift
12652 case $ac_optarg in
12653 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12654 '') as_fn_error $? "missing file argument" ;;
12655 esac
12656 as_fn_append CONFIG_FILES " '$ac_optarg'"
12657 ac_need_defaults=false;;
12658 --header | --heade | --head | --hea )
12659 $ac_shift
12660 case $ac_optarg in
12661 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12662 esac
12663 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12664 ac_need_defaults=false;;
12665 --he | --h)
12666 # Conflict between --help and --header
12667 as_fn_error $? "ambiguous option: '$1'
12668 Try '$0 --help' for more information.";;
12669 --help | --hel | -h )
12670 printf "%s\n" "$ac_cs_usage"; exit ;;
12671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12672 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12673 ac_cs_silent=: ;;
12674
12675 # This is an error.
12676 -*) as_fn_error $? "unrecognized option: '$1'
12677 Try '$0 --help' for more information." ;;
12678
12679 *) as_fn_append ac_config_targets " $1"
12680 ac_need_defaults=false ;;
12681
12682 esac
12683 shift
12684 done
12685
12686 ac_configure_extra_args=
12687
12688 if $ac_cs_silent; then
12689 exec 6>/dev/null
12690 ac_configure_extra_args="$ac_configure_extra_args --silent"
12691 fi
12692
12693 _ACEOF
12694 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12695 if \$ac_cs_recheck; then
12696 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12697 shift
12698 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12699 CONFIG_SHELL='$SHELL'
12700 export CONFIG_SHELL
12701 exec "\$@"
12702 fi
12703
12704 _ACEOF
12705 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12706 exec 5>>config.log
12707 {
12708 echo
12709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12710 ## Running $as_me. ##
12711 _ASBOX
12712 printf "%s\n" "$ac_log"
12713 } >&5
12714
12715 _ACEOF
12716 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12717 _ACEOF
12718
12719 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12720
12721 # Handling of arguments.
12722 for ac_config_target in $ac_config_targets
12723 do
12724 case $ac_config_target in
12725 "tests/plugin/Info.plist") CONFIG_FILES="$CONFIG_FILES tests/plugin/Info.plist" ;;
12726 "src/runtime/Info.plist") CONFIG_FILES="$CONFIG_FILES src/runtime/Info.plist" ;;
12727 "src/tls/ObjFWTLS.oc") CONFIG_FILES="$CONFIG_FILES src/tls/ObjFWTLS.oc" ;;
12728 "src/tls/Info.plist") CONFIG_FILES="$CONFIG_FILES src/tls/Info.plist" ;;
12729 "src/bridge/Info.plist") CONFIG_FILES="$CONFIG_FILES src/bridge/Info.plist" ;;
12730 "buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
12731 "extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
12732 "misc/ObjFWConfig.cmake") CONFIG_FILES="$CONFIG_FILES misc/ObjFWConfig.cmake" ;;
12733 "misc/ObjFWConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES misc/ObjFWConfigVersion.cmake" ;;
12734 "src/Info.plist") CONFIG_FILES="$CONFIG_FILES src/Info.plist" ;;
12735 "src/hid/Info.plist") CONFIG_FILES="$CONFIG_FILES src/hid/Info.plist" ;;
12736 "src/hid/ObjFWHID.oc") CONFIG_FILES="$CONFIG_FILES src/hid/ObjFWHID.oc" ;;
12737 "tests/Info.plist") CONFIG_FILES="$CONFIG_FILES tests/Info.plist" ;;
12738 "utils/objfw-config") CONFIG_FILES="$CONFIG_FILES utils/objfw-config" ;;
12739 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12740 "src/objfw-defs.h") CONFIG_HEADERS="$CONFIG_HEADERS src/objfw-defs.h" ;;
12741
12742 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12743 esac
12744 done
12745
12746
12747 # If the user did not use the arguments to specify the items to instantiate,
12748 # then the envvar interface is used. Set only those that are not.
12749 # We use the long form for the default assignment because of an extremely
12750 # bizarre bug on SunOS 4.1.3.
12751 if $ac_need_defaults; then
12752 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12753 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12754 fi
12755
12756 # Have a temporary directory for convenience. Make it in the build tree
12757 # simply because there is no reason against having it here, and in addition,
12758 # creating and moving files from /tmp can sometimes cause problems.
12759 # Hook for its removal unless debugging.
12760 # Note that there is a small window in which the directory will not be cleaned:
12761 # after its creation but before its name has been assigned to '$tmp'.
12762 $debug ||
12763 {
12764 tmp= ac_tmp=
12765 trap 'exit_status=$?
12766 : "${ac_tmp:=$tmp}"
12767 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12768 ' 0
12769 trap 'as_fn_exit 1' 1 2 13 15
12770 }
12771 # Create a (secure) tmp directory for tmp files.
12772
12773 {
12774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12775 test -d "$tmp"
12776 } ||
12777 {
12778 tmp=./conf$$-$RANDOM
12779 (umask 077 && mkdir "$tmp")
12780 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12781 ac_tmp=$tmp
12782
12783 # Set up the scripts for CONFIG_FILES section.
12784 # No need to generate them if there are no CONFIG_FILES.
12785 # This happens for instance with './config.status config.h'.
12786 if test -n "$CONFIG_FILES"; then
12787
12788
12789 ac_cr=`echo X | tr X '\015'`
12790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12791 # But we know of no other shell where ac_cr would be empty at this
12792 # point, so we can use a bashism as a fallback.
12793 if test "x$ac_cr" = x; then
12794 eval ac_cr=\$\'\\r\'
12795 fi
12796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12798 ac_cs_awk_cr='\\r'
12799 else
12800 ac_cs_awk_cr=$ac_cr
12801 fi
12802
12803 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12804 _ACEOF
12805
12806
12807 {
12808 echoscip-shell system . . echo. "cat >conf$$subs.awk <<_ACEOF" &&
12809 echoscip-shell system . . echo. "$ac_subst_vars" | sedscip-shell system . . sed. 's/.*/&!$&$ac_delim/' &&
12810 echoscip-shell system . . echo. "_ACEOF"
12811 } >conf$$subs.sh ||
12812 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5
12813 ac_delim_num=`echoscip-shell system . . echo. "$ac_subst_vars" | grepscip-shell system . . grep. -c '^'`
12814 ac_delim='%!_!# '
12815 for ac_last_try in false false false false false :; do
12816 . ./conf$$subs.sh ||
12817 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5
12818
12819 ac_delim_n=`sedscip-shell system . . sed. -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grepscip-shell system . . grep. -c X`
12820 if testscip-shell system . . test. $ac_delim_n = $ac_delim_num; then
12821 break
12822 elif $ac_last_try; then
12823 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5
12824 else
12825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12826 fi
12827 done
12828 rmscip-shell system . . rm. -f conf$$subs.sh
12829
12830 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12831 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12832 _ACEOF
12833 sedscip-shell system . . sed. -n '
12834 h
12835 s/^/S["/; s/!.*/"]=/
12836 p
12837 g
12838 s/^[^!]*!//
12839 :repl
12840 t repl
12841 s/'"$ac_delim"'$//
12842 t delim
12843 :nl
12844 h
12845 s/\(.\{148\}\)..*/\1/
12846 t more1
12847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12848 p
12849 n
12850 b repl
12851 :more1
12852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12853 p
12854 g
12855 s/.\{148\}//
12856 t nl
12857 :delim
12858 h
12859 s/\(.\{148\}\)..*/\1/
12860 t more2
12861 s/["\\]/\\&/g; s/^/"/; s/$/"/
12862 p
12863 b
12864 :more2
12865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12866 p
12867 g
12868 s/.\{148\}//
12869 t delim
12870 ' <conf$$subs.awk | sedscip-shell system . . sed. '
12871 /^[^""]/{
12872 N
12873 s/\n//
12874 }
12875 ' >>$CONFIG_STATUS || ac_write_fail=1
12876 rmscip-shell system . . rm. -f conf$$subs.awk
12877 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12878 _ACAWK
12879 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12880 for (key in S) S_is_set[key] = 1
12881 FS = ""
12882
12883 }
12884 {
12885 line = $ 0
12886 nfields = split(line, field, "@")
12887 substed = 0
12888 len = length(field[1])
12889 for (i = 2; i < nfields; i++) {
12890 key = field[i]
12891 keylen = length(key)
12892 if (S_is_set[key]) {
12893 value = S[key]
12894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12895 len += length(value) + length(field[++i])
12896 substed = 1
12897 } else
12898 len += 1 + keylen
12899 }
12900
12901 print line
12902 }
12903
12904 _ACAWK
12905 _ACEOF
12906 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12909 else
12910 cat
12911 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12913 _ACEOF
12914
12915 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12916 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12917 # trailing colons and then remove the whole line if VPATH becomes empty
12918 # (actually we leave an empty line to preserve line numbers).
12919 if testscip-shell system . . test. "x$srcdir" = x.; then
12920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12921 h
12922 s///
12923 s/^/:/
12924 s/[ ]*$/:/
12925 s/:\$(srcdir):/:/g
12926 s/:\${srcdir}:/:/g
12927 s/:@srcdir@:/:/g
12928 s/^:*//
12929 s/:*$//
12930 x
12931 s/\(=[ ]*\).*/\1/
12932 G
12933 s/\n//
12934 s/^[^=]*=[ ]*$//
12935 }'
12936 fi
12937
12938 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12939 fi # test -n "$CONFIG_FILES"
12940
12941 # Set up the scripts for CONFIG_HEADERS section.
12942 # No need to generate them if there are no CONFIG_HEADERS.
12943 # This happens for instance with './config.status Makefile'.
12944 if test -n "$CONFIG_HEADERS"; then
12945 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12946 BEGIN {
12947 _ACEOF
12948
12949 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12950 # here-document in config.status, that substitutes the proper values into
12951 # config.h.in to produce config.h.
12952
12953 # Create a delimiter string that does not exist in confdefs.h, to ease
12954 # handling of long lines.
12955 ac_delim='%!_!# '
12956 for ac_last_try in false false :; do
12957 ac_tt=`sedscip-shell system . . sed. -n "/$ac_delim/p" confdefs.h`
12958 if testscip-shell system . . test. -z "$ac_tt"; then
12959 break
12960 elif $ac_last_try; then
12961 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12962 else
12963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12964 fi
12965 done
12966
12967 # For the awk script, D is an array of macro values keyed by name,
12968 # likewise P contains macro parameters if any. Preserve backslash
12969 # newline sequences.
12970
12971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12972 sedscip-shell system . . sed. -n '
12973 s/.\{148\}/&'"$ac_delim"'/g
12974 t rset
12975 :rset
12976 s/^[ ]*#[ ]*define[ ][ ]*/ /
12977 t def
12978 d
12979 :def
12980 s/\\$//
12981 t bsnl
12982 s/["\\]/\\&/g
12983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12984 D["\1"]=" \3"/p
12985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12986 d
12987 :bsnl
12988 s/["\\]/\\&/g
12989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12990 D["\1"]=" \3\\\\\\n"\\/p
12991 t cont
12992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12993 t cont
12994 d
12995 :cont
12996 n
12997 s/.\{148\}/&'"$ac_delim"'/g
12998 t clear
12999 :clear
13000 s/\\$//
13001 t bsnlc
13002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13003 d
13004 :bsnlc
13005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13006 b cont
13007 ' <confdefs.h | sedscip-shell system . . sed. '
13008 s/'"$ac_delim"'/"\\\
13009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13010
13011 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012 for (key in D) D_is_set[key] = 1
13013 FS = ""
13014 }
13015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13016 line = \$ 0
13017 split(line, arg, " ")
13018 if (arg[1] == "#") {
13019 defundef = arg[2]
13020 mac1 = arg[3]
13021 } else {
13022 defundef = substr(arg[1], 2)
13023 mac1 = arg[2]
13024 }
13025 split(mac1, mac2, "(") #)
13026 macro = mac2[1]
13027 prefix = substr(line, 1, index(line, defundef) - 1)
13028 if (D_is_set[macro]) {
13029 # Preserve the white space surrounding the "#".
13030 print prefix "define", macro P[macro] D[macro]
13031 next
13032 } else {
13033 # Replace #undef with comments. This is necessary, for example,
13034 # in the case of _POSIX_SOURCE, which is predefined and required
13035 # on some systems where configure will not decide to define it.
13036 if (defundef == "undef") {
13037 print "/*", prefix defundef, macro, "*/"
13038 next
13039 }
13040 }
13041 }
13042 { print }
13043 _ACAWK
13044 _ACEOF
13045 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13047 fi # test -n "$CONFIG_HEADERS"
13048
13049
13050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13051 shift
13052 for ac_tag
13053 do
13054 case $ac_tag in
13055 :[FHLC]) ac_mode=$ac_tag; continue;;
13056 esac
13057 case $ac_mode$ac_tag in
13058 :[FHL]*:*);;
13059 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13060 :[FH]-) ac_tag=-:-;;
13061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13062 esac
13063 ac_save_IFS=$IFS
13064 IFS=:
13065 set x $ac_tag
13066 IFS=$ac_save_IFS
13067 shift
13068 ac_file=$1
13069 shift
13070
13071 case $ac_mode in
13072 :L) ac_source=$1;;
13073 :[FH])
13074 ac_file_inputs=
13075 for ac_f
13076 do
13077 case $ac_f in
13078 -) ac_f="$ac_tmp/stdin";;
13079 *) # Look for the file first in the build tree, then in the source tree
13080 # (if the path is not absolute). The absolute path cannot be DOS-style,
13081 # because $ac_f cannot contain ':'.
13082 test -f "$ac_f" ||
13083 case $ac_f in
13084 [\\/$]*) false;;
13085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13086 esac ||
13087 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13088 esac
13089 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13090 as_fn_append ac_file_inputs " '$ac_f'"
13091 done
13092
13093 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13094 # use $as_me), people would be surprised to read:
13095 # /* config.h. Generated by config.status. */
13096 configure_input='Generated from '`
13097 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13098 `' by configure.'
13099 if test x"$ac_file" != x-; then
13100 configure_input="$ac_file. $configure_input"
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13102 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13103 fi
13104 # Neutralize special characters interpreted by sed in replacement strings.
13105 case $configure_input in #(
13106 *\&* | *\|* | *\\* )
13107 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13109 *) ac_sed_conf_input=$configure_input;;
13110 esac
13111
13112 case $ac_tag in
13113 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13115 esac
13116 ;;
13117 esac
13118
13119 ac_dir=`$as_dirname -- "$ac_file" ||
13120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13121 X"$ac_file" : 'X\(//\)[^/]' \| \
13122 X"$ac_file" : 'X\(//\)$' \| \
13123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13124 printf "%s\n" X"$ac_file" |
13125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13126 s//\1/
13127 q
13128 }
13129 /^X\(\/\/\)[^/].*/{
13130 s//\1/
13131 q
13132 }
13133 /^X\(\/\/\)$/{
13134 s//\1/
13135 q
13136 }
13137 /^X\(\/\).*/{
13138 s//\1/
13139 q
13140 }
13141 s/.*/./; q'`
13142 as_dir="$ac_dir"; as_fn_mkdir_p
13143 ac_builddir=.
13144
13145 case "$ac_dir" in
13146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13147 *)
13148 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13149 # A ".." for each directory in $ac_dir_suffix.
13150 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13151 case $ac_top_builddir_sub in
13152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13154 esac ;;
13155 esac
13156 ac_abs_top_builddir=$ac_pwd
13157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13158 # for backward compatibility:
13159 ac_top_builddir=$ac_top_build_prefix
13160
13161 case $srcdir in
13162 .) # We are building in place.
13163 ac_srcdir=.
13164 ac_top_srcdir=$ac_top_builddir_sub
13165 ac_abs_top_srcdir=$ac_pwd ;;
13166 [\\/]* | ?:[\\/]* ) # Absolute name.
13167 ac_srcdir=$srcdir$ac_dir_suffix;
13168 ac_top_srcdir=$srcdir
13169 ac_abs_top_srcdir=$srcdir ;;
13170 *) # Relative name.
13171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13172 ac_top_srcdir=$ac_top_build_prefix$srcdir
13173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13174 esac
13175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13176
13177
13178 case $ac_mode in
13179 :F)
13180 #
13181 # CONFIG_FILE
13182 #
13183
13184 case $INSTALL in
13185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13187 esac
13188 _ACEOF
13189
13190 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191 # If the template does not know about datarootdir, expand it.
13192 # FIXME: This hack should be removed a few years after 2.60.
13193 ac_datarootdir_hack=; ac_datarootdir_seen=
13194 ac_sed_dataroot='
13195 /datarootdir/ {
13196 p
13197 q
13198 }
13199 /@datadir@/p
13200 /@docdir@/p
13201 /@infodir@/p
13202 /@localedir@/p
13203 /@mandir@/p'
13204 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13205 *datarootdir*) ac_datarootdir_seen=yes;;
13206 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13208 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13209 _ACEOF
13210 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13211 ac_datarootdir_hack='
13212 s&@datadir@&$datadir&g
13213 s&@docdir@&$docdir&g
13214 s&@infodir@&$infodir&g
13215 s&@localedir@&$localedir&g
13216 s&@mandir@&$mandir&g
13217 s&\\\${datarootdir}&$datarootdir&g' ;;
13218 esac
13219 _ACEOF
13220
13221 # Neutralize VPATH when '$srcdir' = '.'.
13222 # Shell code in configure.ac might set extrasub.
13223 # FIXME: do we really want to maintain this feature?
13224 catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13225 ac_sed_extra="$ac_vpsub
13226 $extrasub
13227 _ACEOF
13228 catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13229 :t
13230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13231 s|@configure_input@|$ac_sed_conf_input|;t t
13232 s&@top_builddir@&$ac_top_builddir_sub&;t t
13233 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13234 s&@srcdir@&$ac_srcdir&;t t
13235 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13236 s&@top_srcdir@&$ac_top_srcdir&;t t
13237 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13238 s&@builddir@&$ac_builddir&;t t
13239 s&@abs_builddir@&$ac_abs_builddir&;t t
13240 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13241 s&@INSTALL@&$ac_INSTALL&;t t
13242 $ac_datarootdir_hack
13243 "
13244 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13245 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13246
13247 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13248 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13249 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13250 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13252 which seems to be undefined. Please make sure it is defined" >&5
13253 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13254 which seems to be undefined. Please make sure it is defined" >&2;}
13255
13256 rm -f "$ac_tmp/stdin"
13257 case $ac_file in
13258 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13259 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13260 esac \
13261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13262 ;;
13263 :H)
13264 #
13265 # CONFIG_HEADER
13266 #
13267 if test x"$ac_file" != x-; then
13268 {
13269 printf "%s\n" "/* $configure_input */" >&1 \
13270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13271 } >"$ac_tmp/config.h" \
13272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13273 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13275 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13276 else
13277 rm -f "$ac_file"
13278 mv "$ac_tmp/config.h" "$ac_file" \
13279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13280 fi
13281 else
13282 printf "%s\n" "/* $configure_input */" >&1 \
13283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13284 || as_fn_error $? "could not create -" "$LINENO" 5
13285 fi
13286 ;;
13287
13288
13289 esac
13290
13291 done # for ac_tag
13292
13293
13294 as_fn_exit 0
13295 _ACEOF
13296 ac_clean_files=$ac_clean_files_save
13297
13298 testscip-shell system . . test. $ac_write_fail = 0 ||
13299 as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13300
13301
13302 # configure is writing to config.log, and then calls config.status.
13303 # config.status does its own redirection, appending to config.log.
13304 # Unfortunately, on DOS this fails, as config.log is still kept open
13305 # by configure, so config.status won't be able to write to it; its
13306 # output is simply discarded. So we exec the FD to /dev/null,
13307 # effectively closing config.log, so it can be properly (re)opened and
13308 # appended to by config.status. When coming back to configure, we
13309 # need to make the FD available again.
13310 if testscip-shell system . . test. "$no_create" != yes; then
13311 ac_cs_success=:
13312 ac_config_status_args=
13313 testscip-shell system . . test. "$silent" = yes &&
13314 ac_config_status_args="$ac_config_status_args --quiet"
13315 exec 5>/dev/nullscip-shell filesystem . . `/dev/null`.
13316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13317 exec 5>>config.log
13318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13319 # would make configure fail if this is the last instruction.
13320 $ac_cs_success || as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). 1
13321 fi
13322 if testscip-shell system . . test. -n "$ac_unrecognized_opts" && testscip-shell system . . test. "$enable_option_checking" != no; then
13323 { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13324 printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13325 fi
13326
13327
13328 if testscip-shell system . . test. x"$old_compiler" = x"yes"
13329 then :
13330
13331 echoscip-shell system . . echo.
13332 printfscip-shell system . . printf. " ** Note: Your compiler does not seem to "
13333 echoscip-shell system . . echo. "accept -fobjc-runtime=objfw."
13334 printfscip-shell system . . printf. " ** To get optimal performance, you should install "
13335 echoscip-shell system . . echo. "Clang >= 3.2"
13336 printfscip-shell system . . printf. " ** (or the latest Clang release to be able to use all "
13337 echoscip-shell system . . echo. "features)."
13338 echoscip-shell system . . echo.
13339
13340 fi
13341
13342 if testscip-shell system . . test. x"$enable_threads" != x"no" -a x"$atomic_ops" = x"none" \
13343 -a x"$have_spinlocks" != x"yes" -a x"$have_amiga_threads" != x"yes"
13344 then :
13345
13346 echoscip-shell system . . echo.
13347 printfscip-shell system . . printf. " ** Warning: You have enabled threads, but neither atomic "
13348 echoscip-shell system . . echo. "operations nor"
13349 printfscip-shell system . . printf. " ** spinlocks are available. Expect *very* poor performance, "
13350 echoscip-shell system . . echo. "as a mutex will"
13351 printfscip-shell system . . printf. " ** be locked for every retain and release! If you don't "
13352 echoscip-shell system . . echo. "need threads, try"
13353 echoscip-shell system . . echo. " ** --disable-threads to work around this problem."
13354 echoscip-shell system . . echo.
13355
13356 fi
13357