Debian Codegraph @

libmowgli-2/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmowgli-2 2.1.3.
4 #
5 # Report bugs to <https://github.com/atheme/libmowgli-2>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
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 test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: https://github.com/atheme/libmowgli-2 about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='libmowgli-2'
582 PACKAGE_TARNAME='libmowgli-2'
583 PACKAGE_VERSION='2.1.3'
584 PACKAGE_STRING='libmowgli-2 2.1.3'
585 PACKAGE_BUGREPORT='https://github.com/atheme/libmowgli-2'
586 PACKAGE_URL=''
587
588 ac_unique_file="src"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 TERM_SETAF6
628 TERM_SETAF4
629 TERM_SETAF3
630 TERM_SETAF2
631 TERM_SETAF1
632 TERM_BOLD
633 TERM_SGR0
634 TERM_EL
635 TPUT
636 EXAMPLES_BUILD
637 OPENSSL_LDFLAGS
638 OPENSSL_LIBS
639 OPENSSL_INCLUDES
640 PKG_CONFIG
641 LIBMOWGLI_MODULE_BUILD
642 LIBMOWGLI_STATIC_MODULES
643 LIBMOWGLI_SHARED_MODULES
644 LIBMOWGLI_OS
645 PTHREAD_CFLAGS
646 PTHREAD_LIBS
647 acx_pthread_config
648 LIBMOWGLI_STATIC_LIB
649 LIBMOWGLI_SHARED_LIB
650 PROG_IMPLIB_LDFLAGS
651 PROG_IMPLIB_NEEDED
652 CLEAN_LIB
653 UNINSTALL_LIB
654 INSTALL_LIB
655 PLUGIN_SUFFIX
656 PLUGIN_LDFLAGS
657 PLUGIN_CFLAGS
658 LDFLAGS_RPATH
659 LIB_SUFFIX
660 LIB_PREFIX
661 LIB_LDFLAGS
662 LIB_CFLAGS
663 LIBMOWGLI_MODULES
664 RANLIB
665 AR
666 EGREP
667 GREP
668 LN_S
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 CPP
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 runstatedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_shared
735 enable_static
736 with_openssl
737 enable_examples
738 enable_heap_allocator
739 '
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 runstatedir='${localstatedir}/run'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -runstatedir | --runstatedir | --runstatedi | --runstated \
1041 | --runstate | --runstat | --runsta | --runst | --runs \
1042 | --run | --ru | --r)
1043 ac_prev=runstatedir ;;
1044 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1045 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1046 | --run=* | --ru=* | --r=*)
1047 runstatedir=$ac_optarg ;;
1048
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1054
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1065
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1070
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1075
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1082
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1087
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1090
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1093
1094 -with-* | --with-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=\$ac_optarg ;;
1109
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=no ;;
1125
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1129
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1136
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1143
1144 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1146 ;;
1147
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154 esac
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1157
1158 *)
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 ;;
1165
1166 esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error $? "missing argument to $ac_option"
1172 fi
1173
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 esac
1180 fi
1181
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir runstatedir
1187 do
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1190 case $ac_val in
1191 */ )
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1194 esac
1195 # Be sure to have absolute directory names.
1196 case $ac_val in
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 esac
1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error $? "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264 else
1265 ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures libmowgli-2 2.1.3 to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking ...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/libmowgli-2]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1353 _ACEOF
1354
1355 cat <<\_ACEOF
1356
1357 System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 --target=TARGET configure for building compilers for TARGET [HOST]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of libmowgli-2 2.1.3:";;
1367 esac
1368 cat <<\_ACEOF
1369
1370 Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --disable-shared do not build shared library
1375 --enable-static build static library
1376 --enable-examples build examples
1377 --disable-heap-allocator
1378 Disable the heap allocator
1379
1380 Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-openssl=DIR root of the OpenSSL directory
1384
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1394
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to <https://github.com/atheme/libmowgli-2>.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
1409 ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 libmowgli-2 configure 2.1.3
1462 generated by GNU Autoconf 2.69
1463
1464 Copyright (C) 2012 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468 exit
1469 fi
1470
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507 fi
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509 as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_cpp LINENO
1514 # ----------------------
1515 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_cpp ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if { { ac_try="$ac_cpp conftest.$ac_ext"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } > conftest.i && {
1535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 }; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_cpp
1549
1550 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1551 # -------------------------------------------------------
1552 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1553 # the include files in INCLUDES and setting the cache variable VAR
1554 # accordingly.
1555 ac_fn_c_check_header_mongrel ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if eval \${$3+:} false; then :
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 $as_echo_n "checking for $2... " >&6; }
1561 if eval \${$3+:} false; then :
1562 $as_echo_n "(cached) " >&6
1563 fi
1564 eval ac_res=\$$3
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566 $as_echo "$ac_res" >&6; }
1567 else
1568 # Is the header compilable?
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1570 $as_echo_n "checking $2 usability... " >&6; }
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h. */
1573 $4
1574 #include <$2>
1575 _ACEOF
1576 if ac_fn_c_try_compile "$LINENO"; then :
1577 ac_header_compiler=yes
1578 else
1579 ac_header_compiler=no
1580 fi
1581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1583 $as_echo "$ac_header_compiler" >&6; }
1584
1585 # Is the header present?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1587 $as_echo_n "checking $2 presence... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 #include <$2>
1591 _ACEOF
1592 if ac_fn_c_try_cpp "$LINENO"; then :
1593 ac_header_preproc=yes
1594 else
1595 ac_header_preproc=no
1596 fi
1597 rm -f conftest.err conftest.i conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1599 $as_echo "$ac_header_preproc" >&6; }
1600
1601 # So? What about this header?
1602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1603 yes:no: )
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1605 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608 ;;
1609 no:yes:* )
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1611 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1613 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1615 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1617 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620 ( $as_echo "## ---------------------------------------------------- ##
1621 ## Report this to https://github.com/atheme/libmowgli-2 ##
1622 ## ---------------------------------------------------- ##"
1623 ) | sed "s/^/$as_me: WARNING: /" >&2
1624 ;;
1625 esac
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 eval "$3=\$ac_header_compiler"
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_mongrel
1640
1641 # ac_fn_c_try_run LINENO
1642 # ----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1644 # that executables *can* be run.
1645 ac_fn_c_try_run ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659 { { case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_try") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; }; }; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: program exited with status $ac_status" >&5
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=$ac_status
1676 fi
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_run
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$3=yes"
1702 else
1703 eval "$3=no"
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 fi
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712 } # ac_fn_c_check_header_compile
1713
1714 # ac_fn_c_try_link LINENO
1715 # -----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_link ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
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 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 test -x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_link
1759
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1776
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1781
1782 #ifdef __STDC__
1783 # include <limits.h>
1784 #else
1785 # include <assert.h>
1786 #endif
1787
1788 #undef $2
1789
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1793 #ifdef __cplusplus
1794 extern "C"
1795 #endif
1796 char $2 ();
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1801 choke me
1802 #endif
1803
1804 int
1805 main ()
1806 {
1807 return $2 ();
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_link "$LINENO"; then :
1813 eval "$3=yes"
1814 else
1815 eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_func
1826 cat >config.log <<_ACEOF
1827 This file contains any messages produced by compilers while
1828 running configure, to aid debugging if configure makes a mistake.
1829
1830 It was created by libmowgli-2 $as_me 2.1.3, which was
1831 generated by GNU Autoconf 2.69. Invocation command line was
1832
1833 $ $0 $@
1834
1835 _ACEOF
1836 exec 5>>config.log
1837 {
1838 cat <<_ASUNAME
1839 ## --------- ##
1840 ## Platform. ##
1841 ## --------- ##
1842
1843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1848
1849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1851
1852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859
1860 _ASUNAME
1861
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 $as_echo "PATH: $as_dir"
1868 done
1869 IFS=$as_save_IFS
1870
1871 } >&5
1872
1873 cat >&5 <<_ACEOF
1874
1875
1876 ## ----------- ##
1877 ## Core tests. ##
1878 ## ----------- ##
1879
1880 _ACEOF
1881
1882
1883 # Keep a trace of the command line.
1884 # Strip out --no-create and --no-recursion so they do not pile up.
1885 # Strip out --silent because we don't want to record it for future runs.
1886 # Also quote any args containing shell meta-characters.
1887 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_configure_args=
1889 ac_configure_args0=
1890 ac_configure_args1=
1891 ac_must_keep_next=false
1892 for ac_pass in 1 2
1893 do
1894 for ac_arg
1895 do
1896 case $ac_arg in
1897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899 | -silent | --silent | --silen | --sile | --sil)
1900 continue ;;
1901 *\'*)
1902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 esac
1904 case $ac_pass in
1905 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1906 2)
1907 as_fn_append ac_configure_args1 " '$ac_arg'"
1908 if test $ac_must_keep_next = true; then
1909 ac_must_keep_next=false # Got value, back to normal.
1910 else
1911 case $ac_arg in
1912 *=* | --config-cache | -C | -disable-* | --disable-* \
1913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1915 | -with-* | --with-* | -without-* | --without-* | --x)
1916 case "$ac_configure_args0 " in
1917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918 esac
1919 ;;
1920 -* ) ac_must_keep_next=true ;;
1921 esac
1922 fi
1923 as_fn_append ac_configure_args " '$ac_arg'"
1924 ;;
1925 esac
1926 done
1927 done
1928 { ac_configure_args0=; unset ac_configure_args0;}
1929 { ac_configure_args1=; unset ac_configure_args1;}
1930
1931 # When interrupted or exit'd, cleanup temporary files, and complete
1932 # config.log. We remove comments because anyway the quotes in there
1933 # would cause problems or look ugly.
1934 # WARNING: Use '\'' to represent an apostrophe within the trap.
1935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1936 trap 'exit_status=$?
1937 # Save into config.log some information that might help in debugging.
1938 {
1939 echo
1940
1941 $as_echo "## ---------------- ##
1942 ## Cache variables. ##
1943 ## ---------------- ##"
1944 echo
1945 # The following way of writing the cache mishandles newlines in values,
1946 (
1947 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948 eval ac_val=\$$ac_var
1949 case $ac_val in #(
1950 *${as_nl}*)
1951 case $ac_var in #(
1952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954 esac
1955 case $ac_var in #(
1956 _ | IFS | as_nl) ;; #(
1957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958 *) { eval $ac_var=; unset $ac_var;} ;;
1959 esac ;;
1960 esac
1961 done
1962 (set) 2>&1 |
1963 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964 *${as_nl}ac_space=\ *)
1965 sed -n \
1966 "s/'\''/'\''\\\\'\'''\''/g;
1967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968 ;; #(
1969 *)
1970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971 ;;
1972 esac |
1973 sort
1974 )
1975 echo
1976
1977 $as_echo "## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##"
1980 echo
1981 for ac_var in $ac_subst_vars
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 $as_echo "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990
1991 if test -n "$ac_subst_files"; then
1992 $as_echo "## ------------------- ##
1993 ## File substitutions. ##
1994 ## ------------------- ##"
1995 echo
1996 for ac_var in $ac_subst_files
1997 do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in
2000 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001 esac
2002 $as_echo "$ac_var='\''$ac_val'\''"
2003 done | sort
2004 echo
2005 fi
2006
2007 if test -s confdefs.h; then
2008 $as_echo "## ----------- ##
2009 ## confdefs.h. ##
2010 ## ----------- ##"
2011 echo
2012 cat confdefs.h
2013 echo
2014 fi
2015 test "$ac_signal" != 0 &&
2016 $as_echo "$as_me: caught signal $ac_signal"
2017 $as_echo "$as_me: exit $exit_status"
2018 } >&5
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 exit $exit_status
2022 ' 0
2023 for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 done
2026 ac_signal=0
2027
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2030
2031 $as_echo "/* confdefs.h */" > confdefs.h
2032
2033 # Predefined preprocessor variables.
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_NAME "$PACKAGE_NAME"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_URL "$PACKAGE_URL"
2057 _ACEOF
2058
2059
2060 # Let the site file select an alternate cache file if it wants to.
2061 # Prefer an explicitly selected file to automatically selected ones.
2062 ac_site_file1=NONE
2063 ac_site_file2=NONE
2064 if test -n "$CONFIG_SITE"; then
2065 # We do not want a PATH search for config.site.
2066 case $CONFIG_SITE in #((
2067 -*) ac_site_file1=./$CONFIG_SITE;;
2068 */*) ac_site_file1=$CONFIG_SITE;;
2069 *) ac_site_file1=./$CONFIG_SITE;;
2070 esac
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074 else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2077 fi
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 do
2080 test "x$ac_site_file" = xNONE && continue
2081 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2085 . "$ac_site_file" \
2086 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 as_fn_error $? "failed to load site script $ac_site_file
2089 See \`config.log' for more details" "$LINENO" 5; }
2090 fi
2091 done
2092
2093 if test -r "$cache_file"; then
2094 # Some versions of bash will fail to source /dev/null (special files
2095 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2096 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2098 $as_echo "$as_me: loading cache $cache_file" >&6;}
2099 case $cache_file in
2100 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2101 *) . "./$cache_file";;
2102 esac
2103 fi
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2106 $as_echo "$as_me: creating cache $cache_file" >&6;}
2107 >$cache_file
2108 fi
2109
2110 # Check that the precious variables saved in the cache have kept the same
2111 # value.
2112 ac_cache_corrupted=false
2113 for ac_var in $ac_precious_vars; do
2114 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2115 eval ac_new_set=\$ac_env_${ac_var}_set
2116 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2117 eval ac_new_val=\$ac_env_${ac_var}_value
2118 case $ac_old_set,$ac_new_set in
2119 set,)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,set)
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2127 ,);;
2128 *)
2129 if test "x$ac_old_val" != "x$ac_new_val"; then
2130 # differences in whitespace do not lead to failure.
2131 ac_old_val_w=`echo x $ac_old_val`
2132 ac_new_val_w=`echo x $ac_new_val`
2133 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2135 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2136 ac_cache_corrupted=:
2137 else
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2139 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2140 eval $ac_var=\$ac_old_val
2141 fi
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2143 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2145 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2146 fi;;
2147 esac
2148 # Pass precious variables to config.status.
2149 if test "$ac_new_set" = set; then
2150 case $ac_new_val in
2151 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 *) ac_arg=$ac_var=$ac_new_val ;;
2153 esac
2154 case " $ac_configure_args " in
2155 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2156 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2157 esac
2158 fi
2159 done
2160 if $ac_cache_corrupted; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2164 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2165 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2166 fi
2167 ## -------------------- ##
2168 ## Main body of script. ##
2169 ## -------------------- ##
2170
2171 ac_ext=c
2172 ac_cpp='$CPP $CPPFLAGS'
2173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176
2177
2178
2179 ac_config_headers="$ac_config_headers src/libmowgli/platform/autoconf.h"
2180
2181
2182
2183
2184
2185
2186
2187 ac_aux_dir=
2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189 if test -f "$ac_dir/install-sh"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/install-sh -c"
2192 break
2193 elif test -f "$ac_dir/install.sh"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/install.sh -c"
2196 break
2197 elif test -f "$ac_dir/shtool"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/shtool install -c"
2200 break
2201 fi
2202 done
2203 if test -z "$ac_aux_dir"; then
2204 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2205 fi
2206
2207 # These three variables are undocumented and unsupported,
2208 # and are intended to be withdrawn in a future Autoconf release.
2209 # They can cause serious problems if a builder's source tree is in a directory
2210 # whose full name contains unusual characters.
2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2214
2215
2216 # Make sure we can run config.sub.
2217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2218 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2219
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2221 $as_echo_n "checking build system type... " >&6; }
2222 if ${ac_cv_build+:} false; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 ac_build_alias=$build_alias
2226 test "x$ac_build_alias" = x &&
2227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2228 test "x$ac_build_alias" = x &&
2229 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2231 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2232
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2235 $as_echo "$ac_cv_build" >&6; }
2236 case $ac_cv_build in
2237 *-*-*) ;;
2238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2239 esac
2240 build=$ac_cv_build
2241 ac_save_IFS=$IFS; IFS='-'
2242 set x $ac_cv_build
2243 shift
2244 build_cpu=$1
2245 build_vendor=$2
2246 shift; shift
2247 # Remember, the first character of IFS is used to create $*,
2248 # except with old shells:
2249 build_os=$*
2250 IFS=$ac_save_IFS
2251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2252
2253
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2255 $as_echo_n "checking host system type... " >&6; }
2256 if ${ac_cv_host+:} false; then :
2257 $as_echo_n "(cached) " >&6
2258 else
2259 if test "x$host_alias" = x; then
2260 ac_cv_host=$ac_cv_build
2261 else
2262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2264 fi
2265
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2268 $as_echo "$ac_cv_host" >&6; }
2269 case $ac_cv_host in
2270 *-*-*) ;;
2271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2272 esac
2273 host=$ac_cv_host
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_host
2276 shift
2277 host_cpu=$1
2278 host_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 host_os=$*
2283 IFS=$ac_save_IFS
2284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2285
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2288 $as_echo_n "checking target system type... " >&6; }
2289 if ${ac_cv_target+:} false; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 if test "x$target_alias" = x; then
2293 ac_cv_target=$ac_cv_host
2294 else
2295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2296 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2297 fi
2298
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2301 $as_echo "$ac_cv_target" >&6; }
2302 case $ac_cv_target in
2303 *-*-*) ;;
2304 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2305 esac
2306 target=$ac_cv_target
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_target
2309 shift
2310 target_cpu=$1
2311 target_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 target_os=$*
2316 IFS=$ac_save_IFS
2317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2318
2319
2320 # The aliases save the names the user supplied, while $host etc.
2321 # will get canonicalized.
2322 test -n "$target_alias" &&
2323 test "$program_prefix$program_suffix$program_transform_name" = \
2324 NONENONEs,x,x, &&
2325 program_prefix=${target_alias}-
2326
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if ${ac_cv_prog_CC+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 $as_echo "$CC" >&6; }
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370 fi
2371 if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2403 $as_echo "$ac_ct_CC" >&6; }
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409 if test "x$ac_ct_CC" = x; then
2410 CC=""
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418 CC=$ac_ct_CC
2419 fi
2420 else
2421 CC="$ac_cv_prog_CC"
2422 fi
2423
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}cc; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_CC+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="${ac_tool_prefix}cc"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456 $as_echo "$CC" >&6; }
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463 fi
2464 fi
2465 if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if ${ac_cv_prog_CC+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 ac_prog_rejected=no
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2486 continue
2487 fi
2488 ac_cv_prog_CC="cc"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2499 shift
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2504 shift
2505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2506 fi
2507 fi
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513 $as_echo "$CC" >&6; }
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519
2520 fi
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 for ac_prog in cl.exe
2524 do
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 test -n "$CC" && break
2563 done
2564 fi
2565 if test -z "$CC"; then
2566 ac_ct_CC=$CC
2567 for ac_prog in cl.exe
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_ac_ct_CC="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2599 $as_echo "$ac_ct_CC" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 test -n "$ac_ct_CC" && break
2607 done
2608
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 CC=$ac_ct_CC
2619 fi
2620 fi
2621
2622 fi
2623
2624
2625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "no acceptable C compiler found in \$PATH
2628 See \`config.log' for more details" "$LINENO" 5; }
2629
2630 # Provide some information about the compiler.
2631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2632 set X $ac_compile
2633 ac_compiler=$2
2634 for ac_option in --version -v -V -qversion; do
2635 { { ac_try="$ac_compiler $ac_option >&5"
2636 case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2643 ac_status=$?
2644 if test -s conftest.err; then
2645 sed '10a\
2646 ... rest of stderr output deleted ...
2647 10q' conftest.err >conftest.er1
2648 cat conftest.er1 >&5
2649 fi
2650 rm -f conftest.er1 conftest.err
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; }
2653 done
2654
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 ac_clean_files_save=$ac_clean_files
2667 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2668 # Try to create an executable without -o first, disregard a.out.
2669 # It will help us diagnose broken compilers, and finding out an intuition
2670 # of exeext.
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2672 $as_echo_n "checking whether the C compiler works... " >&6; }
2673 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674
2675 # The possible output files:
2676 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2677
2678 ac_rmfiles=
2679 for ac_file in $ac_files
2680 do
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2684 esac
2685 done
2686 rm -f $ac_rmfiles
2687
2688 if { { ac_try="$ac_link_default"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link_default") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; then :
2699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2701 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2702 # so that the user can short-circuit this test for compilers unknown to
2703 # Autoconf.
2704 for ac_file in $ac_files ''
2705 do
2706 test -f "$ac_file" || continue
2707 case $ac_file in
2708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2709 ;;
2710 [ab].out )
2711 # We found the default executable, but exeext='' is most
2712 # certainly right.
2713 break;;
2714 *.* )
2715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2716 then :; else
2717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 fi
2719 # We set ac_cv_exeext here because the later test for it is not
2720 # safe: cross compilers may not add the suffix if given an `-o'
2721 # argument, so we may need to know it at that point already.
2722 # Even if this section looks crufty: it has the advantage of
2723 # actually working.
2724 break;;
2725 * )
2726 break;;
2727 esac
2728 done
2729 test "$ac_cv_exeext" = no && ac_cv_exeext=
2730
2731 else
2732 ac_file=''
2733 fi
2734 if test -z "$ac_file"; then :
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 as_fn_error 77 "C compiler cannot create executables
2743 See \`config.log' for more details" "$LINENO" 5; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746 $as_echo "yes" >&6; }
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2749 $as_echo_n "checking for C compiler default output file name... " >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2751 $as_echo "$ac_file" >&6; }
2752 ac_exeext=$ac_cv_exeext
2753
2754 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2755 ac_clean_files=$ac_clean_files_save
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2757 $as_echo_n "checking for suffix of executables... " >&6; }
2758 if { { ac_try="$ac_link"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_link") 2>&5
2766 ac_status=$?
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; then :
2769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2771 # work properly (i.e., refer to `conftest.exe'), while it won't with
2772 # `rm'.
2773 for ac_file in conftest.exe conftest conftest.*; do
2774 test -f "$ac_file" || continue
2775 case $ac_file in
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 break;;
2779 * ) break;;
2780 esac
2781 done
2782 else
2783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2786 See \`config.log' for more details" "$LINENO" 5; }
2787 fi
2788 rm -f conftest conftest$ac_cv_exeext
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2790 $as_echo "$ac_cv_exeext" >&6; }
2791
2792 rm -f conftest.$ac_ext
2793 EXEEXT=$ac_cv_exeext
2794 ac_exeext=$EXEEXT
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2797 #include <stdio.h>
2798 int
2799 main ()
2800 {
2801 FILE *f = fopen ("conftest.out", "w");
2802 return ferror (f) || fclose (f) != 0;
2803
2804 ;
2805 return 0;
2806 }
2807 _ACEOF
2808 ac_clean_files="$ac_clean_files conftest.out"
2809 # Check that the compiler produces executables we can run. If not, either
2810 # the compiler is broken, or we cross compile.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2812 $as_echo_n "checking whether we are cross compiling... " >&6; }
2813 if test "$cross_compiling" != yes; then
2814 { { ac_try="$ac_link"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }
2825 if { ac_try='./conftest$ac_cv_exeext'
2826 { { case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2843 as_fn_error $? "cannot run C compiled programs.
2844 If you meant to cross compile, use \`--host'.
2845 See \`config.log' for more details" "$LINENO" 5; }
2846 fi
2847 fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2850 $as_echo "$cross_compiling" >&6; }
2851
2852 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2853 ac_clean_files=$ac_clean_files_save
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2855 $as_echo_n "checking for suffix of object files... " >&6; }
2856 if ${ac_cv_objext+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861
2862 int
2863 main ()
2864 {
2865
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.o conftest.obj
2871 if { { ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_compile") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2887 break;;
2888 esac
2889 done
2890 else
2891 $as_echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "cannot compute suffix of object files: cannot compile
2897 See \`config.log' for more details" "$LINENO" 5; }
2898 fi
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2902 $as_echo "$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2907 if ${ac_cv_c_compiler_gnu+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912
2913 int
2914 main ()
2915 {
2916 #ifndef __GNUC__
2917 choke me
2918 #endif
2919
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_compiler_gnu=yes
2926 else
2927 ac_compiler_gnu=no
2928 fi
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2931
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2935 if test $ac_compiler_gnu = yes; then
2936 GCC=yes
2937 else
2938 GCC=
2939 fi
2940 ac_test_CFLAGS=${CFLAGS+set}
2941 ac_save_CFLAGS=$CFLAGS
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2944 if ${ac_cv_prog_cc_g+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 ac_save_c_werror_flag=$ac_c_werror_flag
2948 ac_c_werror_flag=yes
2949 ac_cv_prog_cc_g=no
2950 CFLAGS="-g"
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 if ac_fn_c_try_compile "$LINENO"; then :
2963 ac_cv_prog_cc_g=yes
2964 else
2965 CFLAGS=""
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978
2979 else
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2981 CFLAGS="-g"
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984
2985 int
2986 main ()
2987 {
2988
2989 ;
2990 return 0;
2991 }
2992 _ACEOF
2993 if ac_fn_c_try_compile "$LINENO"; then :
2994 ac_cv_prog_cc_g=yes
2995 fi
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 fi
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 fi
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_c_werror_flag=$ac_save_c_werror_flag
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3004 $as_echo "$ac_cv_prog_cc_g" >&6; }
3005 if test "$ac_test_CFLAGS" = set; then
3006 CFLAGS=$ac_save_CFLAGS
3007 elif test $ac_cv_prog_cc_g = yes; then
3008 if test "$GCC" = yes; then
3009 CFLAGS="-g -O2"
3010 else
3011 CFLAGS="-g"
3012 fi
3013 else
3014 if test "$GCC" = yes; then
3015 CFLAGS="-O2"
3016 else
3017 CFLAGS=
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3022 if ${ac_cv_prog_cc_c89+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 ac_cv_prog_cc_c89=no
3026 ac_save_CC=$CC
3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3029 #include <stdarg.h>
3030 #include <stdio.h>
3031 struct stat;
3032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3033 struct buf { int x; };
3034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3035 static char *e (p, i)
3036 char **p;
3037 int i;
3038 {
3039 return p[i];
3040 }
3041 static char *f (char * (*g) (char **, int), char **p, ...)
3042 {
3043 char *s;
3044 va_list v;
3045 va_start (v,p);
3046 s = g (p, va_arg (v,int));
3047 va_end (v);
3048 return s;
3049 }
3050
3051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3052 function prototypes and stuff, but not '\xHH' hex character constants.
3053 These don't provoke an error unfortunately, instead are silently treated
3054 as 'x'. The following induces an error, until -std is added to get
3055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3056 array size at least. It's necessary to write '\x00'==0 to get something
3057 that's true only with -std. */
3058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3059
3060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3061 inside strings and character constants. */
3062 #define FOO(x) 'x'
3063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3064
3065 int test (int i, double x);
3066 struct s1 {int (*f) (int a);};
3067 struct s2 {int (*f) (double a);};
3068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3069 int argc;
3070 char **argv;
3071 int
3072 main ()
3073 {
3074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3081 do
3082 CC="$ac_save_CC $ac_arg"
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_cv_prog_cc_c89=$ac_arg
3085 fi
3086 rm -f core conftest.err conftest.$ac_objext
3087 test "x$ac_cv_prog_cc_c89" != "xno" && break
3088 done
3089 rm -f conftest.$ac_ext
3090 CC=$ac_save_CC
3091
3092 fi
3093 # AC_CACHE_VAL
3094 case "x$ac_cv_prog_cc_c89" in
3095 x)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3097 $as_echo "none needed" >&6; } ;;
3098 xno)
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3100 $as_echo "unsupported" >&6; } ;;
3101 *)
3102 CC="$CC $ac_cv_prog_cc_c89"
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3104 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3105 esac
3106 if test "x$ac_cv_prog_cc_c89" != xno; then :
3107
3108 fi
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3122 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3123 # On Suns, sometimes $CPP names a directory.
3124 if test -n "$CPP" && test -d "$CPP"; then
3125 CPP=
3126 fi
3127 if test -z "$CPP"; then
3128 if ${ac_cv_prog_CPP+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 # Double quotes because CPP needs to be expanded
3132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3133 do
3134 ac_preproc_ok=false
3135 for ac_c_preproc_warn_flag in '' yes
3136 do
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3145 #ifdef __STDC__
3146 # include <limits.h>
3147 #else
3148 # include <assert.h>
3149 #endif
3150 Syntax error
3151 _ACEOF
3152 if ac_fn_c_try_cpp "$LINENO"; then :
3153
3154 else
3155 # Broken: fails on valid input.
3156 continue
3157 fi
3158 rm -f conftest.err conftest.i conftest.$ac_ext
3159
3160 # OK, works on sane cases. Now check whether nonexistent headers
3161 # can be detected and how.
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <ac_nonexistent.h>
3165 _ACEOF
3166 if ac_fn_c_try_cpp "$LINENO"; then :
3167 # Broken: success on invalid input.
3168 continue
3169 else
3170 # Passes both tests.
3171 ac_preproc_ok=:
3172 break
3173 fi
3174 rm -f conftest.err conftest.i conftest.$ac_ext
3175
3176 done
3177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178 rm -f conftest.i conftest.err conftest.$ac_ext
3179 if $ac_preproc_ok; then :
3180 break
3181 fi
3182
3183 done
3184 ac_cv_prog_CPP=$CPP
3185
3186 fi
3187 CPP=$ac_cv_prog_CPP
3188 else
3189 ac_cv_prog_CPP=$CPP
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3192 $as_echo "$CPP" >&6; }
3193 ac_preproc_ok=false
3194 for ac_c_preproc_warn_flag in '' yes
3195 do
3196 # Use a header file that comes with gcc, so configuring glibc
3197 # with a fresh cross-compiler works.
3198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3199 # <limits.h> exists even on freestanding compilers.
3200 # On the NeXT, cc -E runs the code through the compiler's parser,
3201 # not just through cpp. "Syntax error" is here to catch this case.
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204 #ifdef __STDC__
3205 # include <limits.h>
3206 #else
3207 # include <assert.h>
3208 #endif
3209 Syntax error
3210 _ACEOF
3211 if ac_fn_c_try_cpp "$LINENO"; then :
3212
3213 else
3214 # Broken: fails on valid input.
3215 continue
3216 fi
3217 rm -f conftest.err conftest.i conftest.$ac_ext
3218
3219 # OK, works on sane cases. Now check whether nonexistent headers
3220 # can be detected and how.
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223 #include <ac_nonexistent.h>
3224 _ACEOF
3225 if ac_fn_c_try_cpp "$LINENO"; then :
3226 # Broken: success on invalid input.
3227 continue
3228 else
3229 # Passes both tests.
3230 ac_preproc_ok=:
3231 break
3232 fi
3233 rm -f conftest.err conftest.i conftest.$ac_ext
3234
3235 done
3236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3237 rm -f conftest.i conftest.err conftest.$ac_ext
3238 if $ac_preproc_ok; then :
3239
3240 else
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 fi
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253 # Find a good install program. We prefer a C program (faster),
3254 # so one script is as good as another. But avoid the broken or
3255 # incompatible versions:
3256 # SysV /etc/install, /usr/sbin/install
3257 # SunOS /usr/etc/install
3258 # IRIX /sbin/install
3259 # AIX /bin/install
3260 # AmigaOS /C/install, which installs bootblocks on floppy discs
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # OS/2's system install, which has a completely different semantic
3265 # ./install, which can be erroneously created by make from ./install.sh.
3266 # Reject install programs that cannot install multiple files.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3268 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3269 if test -z "$INSTALL"; then
3270 if ${ac_cv_path_install+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 # Account for people who put trailing slashes in PATH elements.
3279 case $as_dir/ in #((
3280 ./ | .// | /[cC]/* | \
3281 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3282 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3283 /usr/ucb/* ) ;;
3284 *)
3285 # OSF1 and SCO ODT 3.0 have their own names for install.
3286 # Don't use installbsd from OSF since it installs stuff as root
3287 # by default.
3288 for ac_prog in ginstall scoinst install; do
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3291 if test $ac_prog = install &&
3292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # AIX install. It has an incompatible calling convention.
3294 :
3295 elif test $ac_prog = install &&
3296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3297 # program-specific install script used by HP pwplus--don't use.
3298 :
3299 else
3300 rm -rf conftest.one conftest.two conftest.dir
3301 echo one > conftest.one
3302 echo two > conftest.two
3303 mkdir conftest.dir
3304 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3305 test -s conftest.one && test -s conftest.two &&
3306 test -s conftest.dir/conftest.one &&
3307 test -s conftest.dir/conftest.two
3308 then
3309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3310 break 3
3311 fi
3312 fi
3313 fi
3314 done
3315 done
3316 ;;
3317 esac
3318
3319 done
3320 IFS=$as_save_IFS
3321
3322 rm -rf conftest.one conftest.two conftest.dir
3323
3324 fi
3325 if test "${ac_cv_path_install+set}" = set; then
3326 INSTALL=$ac_cv_path_install
3327 else
3328 # As a last resort, use the slow shell script. Don't cache a
3329 # value for INSTALL within a source directory, because that will
3330 # break other packages using the cache if that directory is
3331 # removed, or if the value is a relative name.
3332 INSTALL=$ac_install_sh
3333 fi
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3336 $as_echo "$INSTALL" >&6; }
3337
3338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3339 # It thinks the first close brace ends the variable substitution.
3340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3341
3342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3343
3344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3347 $as_echo_n "checking whether ln -s works... " >&6; }
3348 LN_S=$as_ln_s
3349 if test "$LN_S" = "ln -s"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3354 $as_echo "no, using $LN_S" >&6; }
3355 fi
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3360 if ${ac_cv_prog_cc_c99+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 ac_cv_prog_cc_c99=no
3364 ac_save_CC=$CC
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdbool.h>
3369 #include <stdlib.h>
3370 #include <wchar.h>
3371 #include <stdio.h>
3372
3373 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3374 #define debug(...) fprintf (stderr, __VA_ARGS__)
3375 #define showlist(...) puts (#__VA_ARGS__)
3376 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3377 static void
3378 test_varargs_macros (void)
3379 {
3380 int x = 1234;
3381 int y = 5678;
3382 debug ("Flag");
3383 debug ("X = %d\n", x);
3384 showlist (The first, second, and third items.);
3385 report (x>y, "x is %d but y is %d", x, y);
3386 }
3387
3388 // Check long long types.
3389 #define BIG64 18446744073709551615ull
3390 #define BIG32 4294967295ul
3391 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3392 #if !BIG_OK
3393 your preprocessor is broken;
3394 #endif
3395 #if BIG_OK
3396 #else
3397 your preprocessor is broken;
3398 #endif
3399 static long long int bignum = -9223372036854775807LL;
3400 static unsigned long long int ubignum = BIG64;
3401
3402 struct incomplete_array
3403 {
3404 int datasize;
3405 double data[];
3406 };
3407
3408 struct named_init {
3409 int number;
3410 const wchar_t *name;
3411 double average;
3412 };
3413
3414 typedef const char *ccp;
3415
3416 static inline int
3417 test_restrict (ccp restrict text)
3418 {
3419 // See if C++-style comments work.
3420 // Iterate through items via the restricted pointer.
3421 // Also check for declarations in for loops.
3422 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3423 continue;
3424 return 0;
3425 }
3426
3427 // Check varargs and va_copy.
3428 static void
3429 test_varargs (const char *format, ...)
3430 {
3431 va_list args;
3432 va_start (args, format);
3433 va_list args_copy;
3434 va_copy (args_copy, args);
3435
3436 const char *str;
3437 int number;
3438 float fnumber;
3439
3440 while (*format)
3441 {
3442 switch (*format++)
3443 {
3444 case 's': // string
3445 str = va_arg (args_copy, const char *);
3446 break;
3447 case 'd': // int
3448 number = va_arg (args_copy, int);
3449 break;
3450 case 'f': // float
3451 fnumber = va_arg (args_copy, double);
3452 break;
3453 default:
3454 break;
3455 }
3456 }
3457 va_end (args_copy);
3458 va_end (args);
3459 }
3460
3461 int
3462 main ()
3463 {
3464
3465 // Check bool.
3466 _Bool success = false;
3467
3468 // Check restrict.
3469 if (test_restrict ("String literal") == 0)
3470 success = true;
3471 char *restrict newvar = "Another string";
3472
3473 // Check varargs.
3474 test_varargs ("s, d' f .", "string", 65, 34.234);
3475 test_varargs_macros ();
3476
3477 // Check flexible array members.
3478 struct incomplete_array *ia =
3479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3480 ia->datasize = 10;
3481 for (int i = 0; i < ia->datasize; ++i)
3482 ia->data[i] = i * 1.234;
3483
3484 // Check named initializers.
3485 struct named_init ni = {
3486 .number = 34,
3487 .name = L"Test wide string",
3488 .average = 543.34343,
3489 };
3490
3491 ni.number = 58;
3492
3493 int dynamic_array[ni.number];
3494 dynamic_array[ni.number - 1] = 543;
3495
3496 // work around unused variable warnings
3497 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3498 || dynamic_array[ni.number - 1] != 543);
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3505 do
3506 CC="$ac_save_CC $ac_arg"
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_c99=$ac_arg
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c99" != "xno" && break
3512 done
3513 rm -f conftest.$ac_ext
3514 CC=$ac_save_CC
3515
3516 fi
3517 # AC_CACHE_VAL
3518 case "x$ac_cv_prog_cc_c99" in
3519 x)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 $as_echo "none needed" >&6; } ;;
3522 xno)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524 $as_echo "unsupported" >&6; } ;;
3525 *)
3526 CC="$CC $ac_cv_prog_cc_c99"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3528 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3529 esac
3530 if test "x$ac_cv_prog_cc_c99" != xno; then :
3531
3532 fi
3533
3534
3535 if test "x$ac_cv_prog_cc_c99" = "xno"; then :
3536
3537 as_fn_error 1 "C compiler does not support C99" "$LINENO" 5
3538
3539 fi
3540
3541 MORECFLAGS="-pipe -Wall -Wextra -Wno-unused-value -Wno-unused-parameter -Wno-missing-field-initializers"
3542 if test "x$GCC" = "xyes"; then :
3543
3544 CFLAGS="$CFLAGS $MORECFLAGS"
3545
3546 fi
3547
3548
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3551 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3552 if ${ac_cv_path_GREP+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -z "$GREP"; then
3556 ac_path_GREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_prog in grep ggrep; do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3566 as_fn_executable_p "$ac_path_GREP" || continue
3567 # Check for GNU ac_path_GREP and select it if it is found.
3568 # Check for GNU $ac_path_GREP
3569 case `"$ac_path_GREP" --version 2>&1` in
3570 *GNU*)
3571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3572 *)
3573 ac_count=0
3574 $as_echo_n 0123456789 >"conftest.in"
3575 while :
3576 do
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 $as_echo 'GREP' >> "conftest.nl"
3581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583 as_fn_arith $ac_count + 1 && ac_count=$as_val
3584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_GREP="$ac_path_GREP"
3587 ac_path_GREP_max=$ac_count
3588 fi
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3591 done
3592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3593 esac
3594
3595 $ac_path_GREP_found && break 3
3596 done
3597 done
3598 done
3599 IFS=$as_save_IFS
3600 if test -z "$ac_cv_path_GREP"; then
3601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3602 fi
3603 else
3604 ac_cv_path_GREP=$GREP
3605 fi
3606
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3609 $as_echo "$ac_cv_path_GREP" >&6; }
3610 GREP="$ac_cv_path_GREP"
3611
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3614 $as_echo_n "checking for egrep... " >&6; }
3615 if ${ac_cv_path_EGREP+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3619 then ac_cv_path_EGREP="$GREP -E"
3620 else
3621 if test -z "$EGREP"; then
3622 ac_path_EGREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in egrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3632 as_fn_executable_p "$ac_path_EGREP" || continue
3633 # Check for GNU ac_path_EGREP and select it if it is found.
3634 # Check for GNU $ac_path_EGREP
3635 case `"$ac_path_EGREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3638 *)
3639 ac_count=0
3640 $as_echo_n 0123456789 >"conftest.in"
3641 while :
3642 do
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'EGREP' >> "conftest.nl"
3647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_EGREP="$ac_path_EGREP"
3653 ac_path_EGREP_max=$ac_count
3654 fi
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3660
3661 $ac_path_EGREP_found && break 3
3662 done
3663 done
3664 done
3665 IFS=$as_save_IFS
3666 if test -z "$ac_cv_path_EGREP"; then
3667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 fi
3669 else
3670 ac_cv_path_EGREP=$EGREP
3671 fi
3672
3673 fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3676 $as_echo "$ac_cv_path_EGREP" >&6; }
3677 EGREP="$ac_cv_path_EGREP"
3678
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3681 $as_echo_n "checking for ANSI C header files... " >&6; }
3682 if ${ac_cv_header_stdc+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <stdlib.h>
3688 #include <stdarg.h>
3689 #include <string.h>
3690 #include <float.h>
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_header_stdc=yes
3702 else
3703 ac_cv_header_stdc=no
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706
3707 if test $ac_cv_header_stdc = yes; then
3708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 #include <string.h>
3712
3713 _ACEOF
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 $EGREP "memchr" >/dev/null 2>&1; then :
3716
3717 else
3718 ac_cv_header_stdc=no
3719 fi
3720 rm -f conftest*
3721
3722 fi
3723
3724 if test $ac_cv_header_stdc = yes; then
3725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <stdlib.h>
3729
3730 _ACEOF
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "free" >/dev/null 2>&1; then :
3733
3734 else
3735 ac_cv_header_stdc=no
3736 fi
3737 rm -f conftest*
3738
3739 fi
3740
3741 if test $ac_cv_header_stdc = yes; then
3742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3743 if test "$cross_compiling" = yes; then :
3744 :
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <ctype.h>
3749 #include <stdlib.h>
3750 #if ((' ' & 0x0FF) == 0x020)
3751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3753 #else
3754 # define ISLOWER(c) \
3755 (('a' <= (c) && (c) <= 'i') \
3756 || ('j' <= (c) && (c) <= 'r') \
3757 || ('s' <= (c) && (c) <= 'z'))
3758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3759 #endif
3760
3761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3762 int
3763 main ()
3764 {
3765 int i;
3766 for (i = 0; i < 256; i++)
3767 if (XOR (islower (i), ISLOWER (i))
3768 || toupper (i) != TOUPPER (i))
3769 return 2;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_run "$LINENO"; then :
3774
3775 else
3776 ac_cv_header_stdc=no
3777 fi
3778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3779 conftest.$ac_objext conftest.beam conftest.$ac_ext
3780 fi
3781
3782 fi
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3785 $as_echo "$ac_cv_header_stdc" >&6; }
3786 if test $ac_cv_header_stdc = yes; then
3787
3788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3789
3790 fi
3791
3792 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3794 inttypes.h stdint.h unistd.h
3795 do :
3796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3798 "
3799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3800 cat >>confdefs.h <<_ACEOF
3801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802 _ACEOF
3803
3804 fi
3805
3806 done
3807
3808
3809 for ac_header in poll.h winsock2.h sys/epoll.h sys/select.h sys/pstat.h sys/prctl.h
3810 do :
3811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3814 cat >>confdefs.h <<_ACEOF
3815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3816 _ACEOF
3817
3818 fi
3819
3820 done
3821
3822 for ac_func in fcntl kqueue mmap select dispatch_block port_create setproctitle pstat
3823 do :
3824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3826 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3827 cat >>confdefs.h <<_ACEOF
3828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3829 _ACEOF
3830
3831 fi
3832 done
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
3836 $as_echo_n "checking for PS_STRINGS... " >&6; }
3837 if ${pgac_cv_var_PS_STRINGS+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <machine/vmparam.h>
3843 #include <sys/exec.h>
3844
3845 int
3846 main ()
3847 {
3848 PS_STRINGS->ps_nargvstr = 1;
3849 PS_STRINGS->ps_argvstr = "foo";
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_link "$LINENO"; then :
3855 pgac_cv_var_PS_STRINGS=yes
3856 else
3857 pgac_cv_var_PS_STRINGS=no
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
3863 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
3864 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
3865
3866 $as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h
3867
3868 fi
3869
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}ar; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if ${ac_cv_prog_AR+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$AR"; then
3879 ac_cv_prog_AR="$AR" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_AR="${ac_tool_prefix}ar"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 AR=$ac_cv_prog_AR
3899 if test -n "$AR"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3901 $as_echo "$AR" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908 fi
3909 if test -z "$ac_cv_prog_AR"; then
3910 ac_ct_AR=$AR
3911 # Extract the first word of "ar", so it can be a program name with args.
3912 set dummy ar; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$ac_ct_AR"; then
3919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_ac_ct_AR="ar"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3939 if test -n "$ac_ct_AR"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3941 $as_echo "$ac_ct_AR" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947 if test "x$ac_ct_AR" = x; then
3948 AR=""
3949 else
3950 case $cross_compiling:$ac_tool_warned in
3951 yes:)
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954 ac_tool_warned=yes ;;
3955 esac
3956 AR=$ac_ct_AR
3957 fi
3958 else
3959 AR="$ac_cv_prog_AR"
3960 fi
3961
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_RANLIB+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$RANLIB"; then
3971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 RANLIB=$ac_cv_prog_RANLIB
3991 if test -n "$RANLIB"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3993 $as_echo "$RANLIB" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$ac_cv_prog_RANLIB"; then
4002 ac_ct_RANLIB=$RANLIB
4003 # Extract the first word of "ranlib", so it can be a program name with args.
4004 set dummy ranlib; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$ac_ct_RANLIB"; then
4011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_RANLIB="ranlib"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4031 if test -n "$ac_ct_RANLIB"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4033 $as_echo "$ac_ct_RANLIB" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039 if test "x$ac_ct_RANLIB" = x; then
4040 RANLIB=""
4041 else
4042 case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048 RANLIB=$ac_ct_RANLIB
4049 fi
4050 else
4051 RANLIB="$ac_cv_prog_RANLIB"
4052 fi
4053
4054
4055 LIBMOWGLI_MODULES="core base container dns eventloop ext linebuf module object platform thread vio"
4056
4057
4058 LIBMOWGLI_MODULE_BUILD="$(echo && echo x)"
4059 LIBMOWGLI_MODULE_BUILD="${LIBMOWGLI_MODULE_BUILD%x}"
4060
4061 LIBMOWGLI_SHARED_MODULES=""
4062 # Check whether --enable-shared was given.
4063 if test "${enable_shared+set}" = set; then :
4064 enableval=$enable_shared;
4065 fi
4066
4067 if test x"$enable_shared" != x"no"; then :
4068
4069
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
4072 $as_echo_n "checking for shared library system... " >&6; }
4073 case "$host_os" in
4074 darwin*)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
4076 $as_echo "Darwin" >&6; }
4077 LIB_CFLAGS='-fPIC -DPIC'
4078 LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name ${libdir}/$$(i=${SHARED_LIB}; echo $${i%.dylib}).${LIB_MAJOR}.dylib'
4079 LIB_PREFIX='lib'
4080 LIB_SUFFIX='.dylib'
4081 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
4082 PLUGIN_CFLAGS='-fPIC -DPIC'
4083 PLUGIN_LDFLAGS='-bundle -undefined dynamic_lookup'
4084 PLUGIN_SUFFIX='.bundle'
4085 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'
4086 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
4087 CLEAN_LIB=''
4088 ;;
4089 solaris*)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
4091 $as_echo "Solaris" >&6; }
4092 LIB_CFLAGS='-fPIC -DPIC'
4093 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
4094 LIB_PREFIX='lib'
4095 LIB_SUFFIX='.so'
4096 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
4097 PLUGIN_CFLAGS='-fPIC -DPIC'
4098 PLUGIN_LDFLAGS='-shared'
4099 PLUGIN_SUFFIX='.so'
4100 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'
4101 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
4102 CLEAN_LIB=''
4103 ;;
4104 openbsd* | mirbsd*)
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
4106 $as_echo "OpenBSD" >&6; }
4107 LIB_CFLAGS='-fPIC -DPIC'
4108 LIB_LDFLAGS='-shared'
4109 LIB_PREFIX='lib'
4110 LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
4111 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
4112 PLUGIN_CFLAGS='-fPIC -DPIC'
4113 PLUGIN_LDFLAGS='-shared'
4114 PLUGIN_SUFFIX='.so'
4115 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
4116 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i'
4117 CLEAN_LIB=''
4118 ;;
4119 cygwin* | mingw*)
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
4121 $as_echo "Win32" >&6; }
4122 LIB_CFLAGS=''
4123 LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
4124 LIB_PREFIX='lib'
4125 LIB_SUFFIX='.dll'
4126 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
4127 PLUGIN_CFLAGS=''
4128 PLUGIN_LDFLAGS='-shared'
4129 PLUGIN_SUFFIX='.dll'
4130 INSTALL_LIB='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
4131 UNINSTALL_LIB='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
4132 CLEAN_LIB='${SHARED_LIB}.a'
4133 ;;
4134 *)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
4136 $as_echo "GNU" >&6; }
4137 LIB_CFLAGS='-fPIC -DPIC'
4138 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
4139 LIB_PREFIX='lib'
4140 LIB_SUFFIX='.so'
4141 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
4142 PLUGIN_CFLAGS='-fPIC -DPIC'
4143 PLUGIN_LDFLAGS='-shared'
4144 PLUGIN_SUFFIX='.so'
4145 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
4146 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
4147 CLEAN_LIB=''
4148 ;;
4149 esac
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
4166 $as_echo_n "checking whether we need an implib... " >&6; }
4167 case "$host_os" in
4168 cygwin* | mingw*)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170 $as_echo "yes" >&6; }
4171 PROG_IMPLIB_NEEDED='yes'
4172 PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
4173 ;;
4174 *)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 PROG_IMPLIB_NEEDED='no'
4178 PROG_IMPLIB_LDFLAGS=''
4179 ;;
4180 esac
4181
4182
4183
4184
4185 LIBMOWGLI_SHARED_LIB=${LIB_PREFIX}mowgli-2${LIB_SUFFIX}
4186
4187
4188 for i in $LIBMOWGLI_MODULES
4189 do
4190 UPPER="$(echo $i | tr '[:lower:]' '[:upper:]')"
4191 LIBMOWGLI_SHARED_MODULES="$LIBMOWGLI_SHARED_MODULES $i/mowgli.$i.lib.a"
4192 LIBMOWGLI_MODULE_BUILD="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_$UPPER = mowgli.$i.lib.a && echo x)"
4193 LIBMOWGLI_MODULE_BUILD="${LIBMOWGLI_MODULE_BUILD%x}"
4194 done
4195
4196 fi
4197
4198 LIBMOWGLI_STATIC_MODULES=""
4199 # Check whether --enable-static was given.
4200 if test "${enable_static+set}" = set; then :
4201 enableval=$enable_static;
4202 fi
4203
4204 if test x"$enable_static" = x"yes" -o x"$enable_shared" = x"no"; then :
4205
4206 LIBMOWGLI_STATIC_LIB=libmowgli-2.a
4207
4208
4209 for i in $LIBMOWGLI_MODULES
4210 do
4211 UPPER="$(echo $i | tr '[:lower:]' '[:upper:]')"
4212 LIBMOWGLI_STATIC_MODULES="$LIBMOWGLI_STATIC_MODULES $i/mowgli.$i.a"
4213 LIBMOWGLI_MODULE_BUILD="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_$UPPER = mowgli.$i.a && echo x)"
4214 LIBMOWGLI_MODULE_BUILD="${LIBMOWGLI_MODULE_BUILD%x}"
4215 done
4216
4217 fi
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS type" >&5
4220 $as_echo_n "checking OS type... " >&6; }
4221 case "$target" in
4222 *-*-mingw32)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: win32" >&5
4224 $as_echo "win32" >&6; }
4225 LIBMOWGLI_OS="win32"
4226
4227 LIBS="$LIBS -lwsock32 -lws2_32"
4228
4229 if test x"$LIBMOWGLI_SHARED_MODULES" != x""; then :
4230
4231 LIBMOWGLI_SHARED_MODULES="$LIBMOWGLI_SHARED_MODULES platform/win32/mowgli.platform.win32.lib.a"
4232 LIBMOWGLI_MODULE_BUILD="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_PLATFORM_WIN32 = mowgli.platform.win32.lib.a && echo x)"
4233 LIBMOWGLI_MODULE_BUILD="${LIBMOWGLI_MODULE_BUILD%x}"
4234
4235 fi
4236
4237 if test x"$LIBMOWGLI_STATIC_MODULES" != x""; then :
4238
4239 LIBMOWGLI_STATIC_MODULES="$LIBMOWGLI_STATIC_MODULES platform/win32/mowgli.platform.win32.a"
4240 LIBMOWGLI_MODULE_BUILD="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_PLATFORM_WIN32 = mowgli.platform.win32.a && echo x)"
4241 LIBMOWGLI_MODULE_BUILD="${LIBMOWGLI_MODULE_BUILD%x}"
4242
4243 fi
4244 ;;
4245 *)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: posix" >&5
4247 $as_echo "posix" >&6; }
4248 LIBMOWGLI_OS="posix"
4249
4250
4251
4252 acx_pthread_ok=no
4253
4254 # We used to check for pthread.h first, but this fails if pthread.h
4255 # requires special compiler flags (e.g. on True64 or Sequent).
4256 # It gets checked for in the link test anyway.
4257
4258 # First of all, check if the user has set any of the PTHREAD_LIBS,
4259 # etcetera environment variables, and if threads linking works using
4260 # them:
4261 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4262 save_CFLAGS="$CFLAGS"
4263 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4264 save_LIBS="$LIBS"
4265 LIBS="$PTHREAD_LIBS $LIBS"
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4267 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270
4271 /* Override any GCC internal prototype to avoid an error.
4272 Use char because int might match the return type of a GCC
4273 builtin and then its argument prototype would still apply. */
4274 #ifdef __cplusplus
4275 extern "C"
4276 #endif
4277 char pthread_join ();
4278 int
4279 main ()
4280 {
4281 return pthread_join ();
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_link "$LINENO"; then :
4287 acx_pthread_ok=yes
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4292 $as_echo "$acx_pthread_ok" >&6; }
4293 if test x"$acx_pthread_ok" = xno; then
4294 PTHREAD_LIBS=""
4295 PTHREAD_CFLAGS=""
4296 fi
4297 LIBS="$save_LIBS"
4298 CFLAGS="$save_CFLAGS"
4299 fi
4300
4301 # We must check for the threads library under a number of different
4302 # names; the ordering is very important because some systems
4303 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4304 # libraries is broken (non-POSIX).
4305
4306 # Create a list of thread flags to try. Items starting with a "-" are
4307 # C compiler flags, and other items are library names, except for "none"
4308 # which indicates that we try without any flags at all, and "pthread-config"
4309 # which is a program returning the flags for the Pth emulation library.
4310
4311 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4312
4313 # The ordering *is* (sometimes) important. Some notes on the
4314 # individual items follow:
4315
4316 # pthreads: AIX (must check this before -lpthread)
4317 # none: in case threads are in libc; should be tried before -Kthread and
4318 # other compiler flags to prevent continual compiler warnings
4319 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4320 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4321 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4322 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4323 # -pthreads: Solaris/gcc
4324 # -mthreads: Mingw32/gcc, Lynx/gcc
4325 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4326 # doesn't hurt to check since this sometimes defines pthreads too;
4327 # also defines -D_REENTRANT)
4328 # ... -mt is also the pthreads flag for HP/aCC
4329 # pthread: Linux, etcetera
4330 # --thread-safe: KAI C++
4331 # pthread-config: use pthread-config program (for GNU Pth library)
4332
4333 case "${host_cpu}-${host_os}" in
4334 *solaris*)
4335
4336 # On Solaris (at least, for some versions), libc contains stubbed
4337 # (non-functional) versions of the pthreads routines, so link-based
4338 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4339 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4340 # a function called by this macro, so we could check for that, but
4341 # who knows whether they'll stub that too in a future libc.) So,
4342 # we'll just look for -pthreads and -lpthread first:
4343
4344 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
4345 ;;
4346 esac
4347
4348 if test x"$acx_pthread_ok" = xno; then
4349 for flag in $acx_pthread_flags; do
4350
4351 case $flag in
4352 none)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4354 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4355 ;;
4356
4357 -*)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4359 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4360 PTHREAD_CFLAGS="$flag"
4361 PTHREAD_LIBS="$flag"
4362 ;;
4363
4364 pthread-config)
4365 # Extract the first word of "pthread-config", so it can be a program name with args.
4366 set dummy pthread-config; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if ${ac_cv_prog_acx_pthread_config+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test -n "$acx_pthread_config"; then
4373 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_acx_pthread_config="yes"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4391 fi
4392 fi
4393 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4394 if test -n "$acx_pthread_config"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
4396 $as_echo "$acx_pthread_config" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403 if test x"$acx_pthread_config" = xno; then continue; fi
4404 PTHREAD_CFLAGS="`pthread-config --cflags`"
4405 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4406 ;;
4407
4408 *)
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4410 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4411 PTHREAD_LIBS="-l$flag"
4412 ;;
4413 esac
4414
4415 save_LIBS="$LIBS"
4416 save_CFLAGS="$CFLAGS"
4417 LIBS="$PTHREAD_LIBS $LIBS"
4418 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4419
4420 # Check for various functions. We must include pthread.h,
4421 # since some functions may be macros. (On the Sequent, we
4422 # need a special flag -Kthread to make this header compile.)
4423 # We check for pthread_join because it is in -lpthread on IRIX
4424 # while pthread_create is in libc. We check for pthread_attr_init
4425 # due to DEC craziness with -lpthreads. We check for
4426 # pthread_cleanup_push because it is one of the few pthread
4427 # functions on Solaris that doesn't have a non-functional libc stub.
4428 # We try pthread_create on general principles.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <pthread.h>
4432 int
4433 main ()
4434 {
4435 pthread_t th; pthread_join(th, 0);
4436 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4437 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_c_try_link "$LINENO"; then :
4443 acx_pthread_ok=yes
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext \
4446 conftest$ac_exeext conftest.$ac_ext
4447
4448 LIBS="$save_LIBS"
4449 CFLAGS="$save_CFLAGS"
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4452 $as_echo "$acx_pthread_ok" >&6; }
4453 if test "x$acx_pthread_ok" = xyes; then
4454 break;
4455 fi
4456
4457 PTHREAD_LIBS=""
4458 PTHREAD_CFLAGS=""
4459 done
4460 fi
4461
4462 # Various other checks:
4463 if test "x$acx_pthread_ok" = xyes; then
4464 save_LIBS="$LIBS"
4465 LIBS="$PTHREAD_LIBS $LIBS"
4466 save_CFLAGS="$CFLAGS"
4467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4468
4469 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4471 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4472 attr_name=unknown
4473 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <pthread.h>
4477 int
4478 main ()
4479 {
4480 int attr=$attr; return attr;
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_c_try_link "$LINENO"; then :
4486 attr_name=$attr; break
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 done
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4492 $as_echo "$attr_name" >&6; }
4493 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4494
4495 cat >>confdefs.h <<_ACEOF
4496 #define PTHREAD_CREATE_JOINABLE $attr_name
4497 _ACEOF
4498
4499 fi
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4502 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4503 flag=no
4504 case "${host_cpu}-${host_os}" in
4505 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4506 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4507 esac
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4509 $as_echo "${flag}" >&6; }
4510 if test "x$flag" != xno; then
4511 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4512 fi
4513
4514 LIBS="$save_LIBS"
4515 CFLAGS="$save_CFLAGS"
4516 fi
4517
4518
4519
4520
4521 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4522 if test x"$acx_pthread_ok" = xyes; then
4523
4524 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4525
4526 :
4527 else
4528 acx_pthread_ok=no
4529
4530 fi
4531
4532 CPPFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4533 LIBS="$PTHREAD_LIBS $LIBS"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4535 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4536 if ${ac_cv_lib_dl_dlopen+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 ac_check_lib_save_LIBS=$LIBS
4540 LIBS="-ldl $LIBS"
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543
4544 /* Override any GCC internal prototype to avoid an error.
4545 Use char because int might match the return type of a GCC
4546 builtin and then its argument prototype would still apply. */
4547 #ifdef __cplusplus
4548 extern "C"
4549 #endif
4550 char dlopen ();
4551 int
4552 main ()
4553 {
4554 return dlopen ();
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 if ac_fn_c_try_link "$LINENO"; then :
4560 ac_cv_lib_dl_dlopen=yes
4561 else
4562 ac_cv_lib_dl_dlopen=no
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext
4566 LIBS=$ac_check_lib_save_LIBS
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4569 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4570 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4571 LIBS="$LIBS -ldl"
4572 fi
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
4575 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
4576 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 ac_check_lib_save_LIBS=$LIBS
4580 LIBS="-lrt $LIBS"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583
4584 /* Override any GCC internal prototype to avoid an error.
4585 Use char because int might match the return type of a GCC
4586 builtin and then its argument prototype would still apply. */
4587 #ifdef __cplusplus
4588 extern "C"
4589 #endif
4590 char clock_gettime ();
4591 int
4592 main ()
4593 {
4594 return clock_gettime ();
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_link "$LINENO"; then :
4600 ac_cv_lib_rt_clock_gettime=yes
4601 else
4602 ac_cv_lib_rt_clock_gettime=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext \
4605 conftest$ac_exeext conftest.$ac_ext
4606 LIBS=$ac_check_lib_save_LIBS
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
4609 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
4610 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
4611 LIBS="$LIBS -lrt"
4612 fi
4613
4614 ;;
4615 esac
4616
4617
4618
4619
4620
4621 OPENSSL="no"
4622
4623 found=false
4624 skip=false
4625 founddir=
4626 ssldirs=
4627
4628 # Check whether --with-openssl was given.
4629 if test "${with_openssl+set}" = set; then :
4630 withval=$with_openssl;
4631 case "$withval" in
4632 n | no | N | NO)
4633 skip=true
4634 ;;
4635 y | ye | yes | Y | YE | YES | "")
4636 ;;
4637 *)
4638 ssldirs="$withval"
4639 ;;
4640 esac
4641
4642 fi
4643
4644
4645 # if pkg-config is installed and openssl has installed a .pc file,
4646 # then use that information and don't search ssldirs
4647 # Extract the first word of "pkg-config", so it can be a program name with args.
4648 set dummy pkg-config; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 case $PKG_CONFIG in
4655 [\\/]* | ?:[\\/]*)
4656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4657 ;;
4658 *)
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 ;;
4675 esac
4676 fi
4677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4678 if test -n "$PKG_CONFIG"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4680 $as_echo "$PKG_CONFIG" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 if test x"$ssldirs" = x"" && test x"$PKG_CONFIG" != x""; then
4688 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
4689 if test $? = 0; then
4690 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
4691 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
4692 founddir=`$PKG_CONFIG openssl --variable=includedir 2>/dev/null`
4693 found=true
4694 fi
4695 fi
4696
4697 # no such luck; use some default ssldirs
4698 if ! $found; then
4699 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
4700 fi
4701
4702 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
4703 # an 'openssl' subdirectory
4704
4705 if ! $found && ! $skip; then
4706 OPENSSL_INCLUDES=
4707 for ssldir in $ssldirs; do
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
4709 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
4710 if test -f "$ssldir/include/openssl/ssl.h"; then
4711 OPENSSL_INCLUDES="-I$ssldir/include"
4712 OPENSSL_LDFLAGS="-L$ssldir/lib"
4713 OPENSSL_LIBS="-lssl -lcrypto"
4714 founddir="$ssldir/include"
4715 found=true
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4717 $as_echo "yes" >&6; }
4718 break
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723 done
4724 fi
4725
4726 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
4727 # it will just work!
4728
4729 # try the preprocessor and linker with our new flags,
4730 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
4731
4732 if ! $skip; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
4734 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
4735 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
4736 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
4737
4738 save_LIBS="$LIBS"
4739 save_LDFLAGS="$LDFLAGS"
4740 save_CPPFLAGS="$CPPFLAGS"
4741 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
4742 LIBS="$OPENSSL_LIBS $LIBS"
4743 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <openssl/ssl.h>
4747 int
4748 main ()
4749 {
4750 SSL_new(NULL)
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_link "$LINENO"; then :
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }
4759
4760 OPENSSL="yes"
4761
4762 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
4763
4764
4765
4766 else
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770
4771
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 CPPFLAGS="$save_CPPFLAGS"
4776 LDFLAGS="$save_LDFLAGS"
4777 LIBS="$save_LIBS"
4778
4779 if test -f "$founddir/openssl/ec.h"; then
4780
4781 $as_echo "#define OPENSSL_EC_AVAILABLE 1" >>confdefs.h
4782
4783 fi
4784
4785
4786
4787
4788 fi
4789
4790 if test x"$OPENSSL" = x"yes"; then :
4791
4792 LIBS="$LIBS $OPENSSL_LIBS"
4793 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
4794 CPPFLAGS="$CPPFLAGS $OPENSSL_INCLUDES"
4795
4796 fi
4797
4798 EXAMPLES_BUILD=""
4799 EXAMPLES="no"
4800 # Check whether --enable-examples was given.
4801 if test "${enable_examples+set}" = set; then :
4802 enableval=$enable_examples;
4803 fi
4804
4805 if test x"$enable_examples" = x"yes"; then :
4806
4807 EXAMPLES_BUILD="examples"
4808 EXAMPLES="yes"
4809
4810 fi
4811
4812
4813
4814 # Check whether --enable-heap-allocator was given.
4815 if test "${enable_heap_allocator+set}" = set; then :
4816 enableval=$enable_heap_allocator; if test x"$enable_heap_allocator" = x"no"; then :
4817
4818
4819 $as_echo "#define DISABLE_HEAP_ALLOCATOR 1" >>confdefs.h
4820
4821 fi
4822
4823 else
4824 enable_heap_allocator="yes"
4825 fi
4826
4827
4828
4829 # Extract the first word of "tput", so it can be a program name with args.
4830 set dummy tput; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_path_TPUT+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 case $TPUT in
4837 [\\/]* | ?:[\\/]*)
4838 ac_cv_path_TPUT="$TPUT" # Let the user override the test with a path.
4839 ;;
4840 *)
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848 ac_cv_path_TPUT="$as_dir/$ac_word$ac_exec_ext"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4851 fi
4852 done
4853 done
4854 IFS=$as_save_IFS
4855
4856 ;;
4857 esac
4858 fi
4859 TPUT=$ac_cv_path_TPUT
4860 if test -n "$TPUT"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
4862 $as_echo "$TPUT" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867
4868
4869
4870 if test x"$TPUT" != x""; then :
4871
4872 if x=$($TPUT el 2>/dev/null); then
4873 TERM_EL="$x"
4874
4875 else
4876 TERM_EL="$($TPUT ce 2>/dev/null)"
4877
4878 fi
4879
4880 if x=$($TPUT sgr0 2>/dev/null); then
4881 TERM_SGR0="$x"
4882
4883 else
4884 TERM_SGR0="$($TPUT me 2>/dev/null)"
4885
4886 fi
4887
4888 if x=$($TPUT bold 2>/dev/null); then
4889 TERM_BOLD="$x"
4890
4891 else
4892 TERM_BOLD="$($TPUT md 2>/dev/null)"
4893
4894 fi
4895
4896 if x=$($TPUT setaf 1 2>/dev/null); then
4897 TERM_SETAF1="$x"
4898
4899 TERM_SETAF2="$($TPUT setaf 2 2>/dev/null)"
4900
4901 TERM_SETAF3="$($TPUT setaf 3 2>/dev/null)"
4902
4903 TERM_SETAF4="$($TPUT setaf 4 2>/dev/null)"
4904
4905 TERM_SETAF6="$($TPUT setaf 6 2>/dev/null)"
4906
4907 else
4908 TERM_SETAF1="$($TPUT AF 1 2>/dev/null)"
4909
4910 TERM_SETAF2="$($TPUT AF 2 2>/dev/null)"
4911
4912 TERM_SETAF3="$($TPUT AF 3 2>/dev/null)"
4913
4914 TERM_SETAF4="$($TPUT AF 4 2>/dev/null)"
4915
4916 TERM_SETAF6="$($TPUT AF 6 2>/dev/null)"
4917
4918 fi
4919
4920 else
4921
4922 TERM_EL='\033\133K'
4923
4924 TERM_SGR0='\033\133m'
4925
4926 TERM_BOLD='\033\1331m'
4927
4928 TERM_SETAF1='\033\13331m'
4929
4930 TERM_SETAF2='\033\13332m'
4931
4932 TERM_SETAF3='\033\13333m'
4933
4934 TERM_SETAF4='\033\13334m'
4935
4936 TERM_SETAF6='\033\13336m'
4937
4938
4939 fi
4940
4941
4942 ${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
4943 for i in $(find . -name Makefile); do
4944 DEPSFILE="$(dirname $i)/.deps"
4945 test -f "$DEPSFILE" && rm "$DEPSFILE"
4946 touch -t 0001010000 "$DEPSFILE"
4947 done
4948
4949
4950 ac_config_files="$ac_config_files buildsys.mk extra.mk libmowgli-2.pc"
4951
4952 cat >confcache <<\_ACEOF
4953 # This file is a shell script that caches the results of configure
4954 # tests run on this system so they can be shared between configure
4955 # scripts and configure runs, see configure's option --config-cache.
4956 # It is not useful on other systems. If it contains results you don't
4957 # want to keep, you may remove or edit it.
4958 #
4959 # config.status only pays attention to the cache file if you give it
4960 # the --recheck option to rerun configure.
4961 #
4962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4964 # following values.
4965
4966 _ACEOF
4967
4968 # The following way of writing the cache mishandles newlines in values,
4969 # but we know of no workaround that is simple, portable, and efficient.
4970 # So, we kill variables containing newlines.
4971 # Ultrix sh set writes to stderr and can't be redirected directly,
4972 # and sets the high bit in the cache file unless we assign to the vars.
4973 (
4974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4975 eval ac_val=\$$ac_var
4976 case $ac_val in #(
4977 *${as_nl}*)
4978 case $ac_var in #(
4979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4981 esac
4982 case $ac_var in #(
4983 _ | IFS | as_nl) ;; #(
4984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4985 *) { eval $ac_var=; unset $ac_var;} ;;
4986 esac ;;
4987 esac
4988 done
4989
4990 (set) 2>&1 |
4991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4992 *${as_nl}ac_space=\ *)
4993 # `set' does not quote correctly, so add quotes: double-quote
4994 # substitution turns \\\\ into \\, and sed turns \\ into \.
4995 sed -n \
4996 "s/'/'\\\\''/g;
4997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4998 ;; #(
4999 *)
5000 # `set' quotes correctly as required by POSIX, so do not add quotes.
5001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5002 ;;
5003 esac |
5004 sort
5005 ) |
5006 sed '
5007 /^ac_cv_env_/b end
5008 t clear
5009 :clear
5010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5011 t end
5012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5013 :end' >>confcache
5014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5015 if test -w "$cache_file"; then
5016 if test "x$cache_file" != "x/dev/null"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5018 $as_echo "$as_me: updating cache $cache_file" >&6;}
5019 if test ! -f "$cache_file" || test -h "$cache_file"; then
5020 cat confcache >"$cache_file"
5021 else
5022 case $cache_file in #(
5023 */* | ?:*)
5024 mv -f confcache "$cache_file"$$ &&
5025 mv -f "$cache_file"$$ "$cache_file" ;; #(
5026 *)
5027 mv -f confcache "$cache_file" ;;
5028 esac
5029 fi
5030 fi
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5033 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5034 fi
5035 fi
5036 rm -f confcache
5037
5038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5039 # Let make expand exec_prefix.
5040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5041
5042 DEFS=-DHAVE_CONFIG_H
5043
5044 ac_libobjs=
5045 ac_ltlibobjs=
5046 U=
5047 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5048 # 1. Remove the extension, and $U if already installed.
5049 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5050 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5052 # will be set to the directory where LIBOBJS objects are built.
5053 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5054 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5055 done
5056 LIBOBJS=$ac_libobjs
5057
5058 LTLIBOBJS=$ac_ltlibobjs
5059
5060
5061
5062 : "${CONFIG_STATUS=./config.status}"
5063 ac_write_fail=0
5064 ac_clean_files_save=$ac_clean_files
5065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5068 as_write_fail=0
5069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5070 #! $SHELL
5071 # Generated by $as_me.
5072 # Run this file to recreate the current configuration.
5073 # Compiler output produced by configure, useful for debugging
5074 # configure, is in config.log if it exists.
5075
5076 debug=false
5077 ac_cs_recheck=false
5078 ac_cs_silent=false
5079
5080 SHELL=\${CONFIG_SHELL-$SHELL}
5081 export SHELL
5082 _ASEOF
5083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5084 ## -------------------- ##
5085 ## M4sh Initialization. ##
5086 ## -------------------- ##
5087
5088 # Be more Bourne compatible
5089 DUALCASE=1; export DUALCASE # for MKS sh
5090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5091 emulate sh
5092 NULLCMD=:
5093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5094 # is contrary to our usage. Disable this feature.
5095 alias -g '${1+"$@"}'='"$@"'
5096 setopt NO_GLOB_SUBST
5097 else
5098 case `(set -o) 2>/dev/null` in #(
5099 *posix*) :
5100 set -o posix ;; #(
5101 *) :
5102 ;;
5103 esac
5104 fi
5105
5106
5107 as_nl='
5108 '
5109 export as_nl
5110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5111 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5114 # Prefer a ksh shell builtin over an external printf program on Solaris,
5115 # but without wasting forks for bash or zsh.
5116 if test -z "$BASH_VERSION$ZSH_VERSION" \
5117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5118 as_echo='print -r --'
5119 as_echo_n='print -rn --'
5120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5121 as_echo='printf %s\n'
5122 as_echo_n='printf %s'
5123 else
5124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5125 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5126 as_echo_n='/usr/ucb/echo -n'
5127 else
5128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5129 as_echo_n_body='eval
5130 arg=$1;
5131 case $arg in #(
5132 *"$as_nl"*)
5133 expr "X$arg" : "X\\(.*\\)$as_nl";
5134 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5135 esac;
5136 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5137 '
5138 export as_echo_n_body
5139 as_echo_n='sh -c $as_echo_n_body as_echo'
5140 fi
5141 export as_echo_body
5142 as_echo='sh -c $as_echo_body as_echo'
5143 fi
5144
5145 # The user is always right.
5146 if test "${PATH_SEPARATOR+set}" != set; then
5147 PATH_SEPARATOR=:
5148 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5149 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5150 PATH_SEPARATOR=';'
5151 }
5152 fi
5153
5154
5155 # IFS
5156 # We need space, tab and new line, in precisely that order. Quoting is
5157 # there to prevent editors from complaining about space-tab.
5158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5159 # splitting by setting IFS to empty value.)
5160 IFS=" "" $as_nl"
5161
5162 # Find who we are. Look in the path if we contain no directory separator.
5163 as_myself=
5164 case $0 in #((
5165 *[\\/]* ) as_myself=$0 ;;
5166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5172 done
5173 IFS=$as_save_IFS
5174
5175 ;;
5176 esac
5177 # We did not find ourselves, most probably we were run as `sh COMMAND'
5178 # in which case we are not to be found in the path.
5179 if test "x$as_myself" = x; then
5180 as_myself=$0
5181 fi
5182 if test ! -f "$as_myself"; then
5183 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5184 exit 1
5185 fi
5186
5187 # Unset variables that we do not need and which cause bugs (e.g. in
5188 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5189 # suppresses any "Segmentation fault" message there. '((' could
5190 # trigger a bug in pdksh 5.2.14.
5191 for as_var in BASH_ENV ENV MAIL MAILPATH
5192 do eval test x\${$as_var+set} = xset \
5193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5194 done
5195 PS1='$ '
5196 PS2='> '
5197 PS4='+ '
5198
5199 # NLS nuisances.
5200 LC_ALL=C
5201 export LC_ALL
5202 LANGUAGE=C
5203 export LANGUAGE
5204
5205 # CDPATH.
5206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5207
5208
5209 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5210 # ----------------------------------------
5211 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5212 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5213 # script with STATUS, using 1 if that was 0.
5214 as_fn_error ()
5215 {
5216 as_status=$1; test $as_status -eq 0 && as_status=1
5217 if test "$4"; then
5218 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5219 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5220 fi
5221 $as_echo "$as_me: error: $2" >&2
5222 as_fn_exit $as_status
5223 } # as_fn_error
5224
5225
5226 # as_fn_set_status STATUS
5227 # -----------------------
5228 # Set $? to STATUS, without forking.
5229 as_fn_set_status ()
5230 {
5231 return $1
5232 } # as_fn_set_status
5233
5234 # as_fn_exit STATUS
5235 # -----------------
5236 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5237 as_fn_exit ()
5238 {
5239 set +e
5240 as_fn_set_status $1
5241 exit $1
5242 } # as_fn_exit
5243
5244 # as_fn_unset VAR
5245 # ---------------
5246 # Portably unset VAR.
5247 as_fn_unset ()
5248 {
5249 { eval $1=; unset $1;}
5250 }
5251 as_unset=as_fn_unset
5252 # as_fn_append VAR VALUE
5253 # ----------------------
5254 # Append the text in VALUE to the end of the definition contained in VAR. Take
5255 # advantage of any shell optimizations that allow amortized linear growth over
5256 # repeated appends, instead of the typical quadratic growth present in naive
5257 # implementations.
5258 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5259 eval 'as_fn_append ()
5260 {
5261 eval $1+=\$2
5262 }'
5263 else
5264 as_fn_append ()
5265 {
5266 eval $1=\$$1\$2
5267 }
5268 fi # as_fn_append
5269
5270 # as_fn_arith ARG...
5271 # ------------------
5272 # Perform arithmetic evaluation on the ARGs, and store the result in the
5273 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5274 # must be portable across $(()) and expr.
5275 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5276 eval 'as_fn_arith ()
5277 {
5278 as_val=$(( $* ))
5279 }'
5280 else
5281 as_fn_arith ()
5282 {
5283 as_val=`expr "$@" || test $? -eq 1`
5284 }
5285 fi # as_fn_arith
5286
5287
5288 if expr a : '\(a\)' >/dev/null 2>&1 &&
5289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5290 as_expr=expr
5291 else
5292 as_expr=false
5293 fi
5294
5295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5296 as_basename=basename
5297 else
5298 as_basename=false
5299 fi
5300
5301 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5302 as_dirname=dirname
5303 else
5304 as_dirname=false
5305 fi
5306
5307 as_me=`$as_basename -- "$0" ||
5308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5309 X"$0" : 'X\(//\)$' \| \
5310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5311 $as_echo X/"$0" |
5312 sed '/^.*\/\([^/][^/]*\)\/*$/{
5313 s//\1/
5314 q
5315 }
5316 /^X\/\(\/\/\)$/{
5317 s//\1/
5318 q
5319 }
5320 /^X\/\(\/\).*/{
5321 s//\1/
5322 q
5323 }
5324 s/.*/./; q'`
5325
5326 # Avoid depending upon Character Ranges.
5327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5330 as_cr_digits='0123456789'
5331 as_cr_alnum=$as_cr_Letters$as_cr_digits
5332
5333 ECHO_C= ECHO_N= ECHO_T=
5334 case `echo -n x` in #(((((
5335 -n*)
5336 case `echo 'xy\c'` in
5337 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5338 xy) ECHO_C='\c';;
5339 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5340 ECHO_T=' ';;
5341 esac;;
5342 *)
5343 ECHO_N='-n';;
5344 esac
5345
5346 rm -f conf$$ conf$$.exe conf$$.file
5347 if test -d conf$$.dir; then
5348 rm -f conf$$.dir/conf$$.file
5349 else
5350 rm -f conf$$.dir
5351 mkdir conf$$.dir 2>/dev/null
5352 fi
5353 if (echo >conf$$.file) 2>/dev/null; then
5354 if ln -s conf$$.file conf$$ 2>/dev/null; then
5355 as_ln_s='ln -s'
5356 # ... but there are two gotchas:
5357 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5358 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5359 # In both cases, we have to default to `cp -pR'.
5360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5361 as_ln_s='cp -pR'
5362 elif ln conf$$.file conf$$ 2>/dev/null; then
5363 as_ln_s=ln
5364 else
5365 as_ln_s='cp -pR'
5366 fi
5367 else
5368 as_ln_s='cp -pR'
5369 fi
5370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5371 rmdir conf$$.dir 2>/dev/null
5372
5373
5374 # as_fn_mkdir_p
5375 # -------------
5376 # Create "$as_dir" as a directory, including parents if necessary.
5377 as_fn_mkdir_p ()
5378 {
5379
5380 case $as_dir in #(
5381 -*) as_dir=./$as_dir;;
5382 esac
5383 test -d "$as_dir" || eval $as_mkdir_p || {
5384 as_dirs=
5385 while :; do
5386 case $as_dir in #(
5387 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5388 *) as_qdir=$as_dir;;
5389 esac
5390 as_dirs="'$as_qdir' $as_dirs"
5391 as_dir=`$as_dirname -- "$as_dir" ||
5392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5393 X"$as_dir" : 'X\(//\)[^/]' \| \
5394 X"$as_dir" : 'X\(//\)$' \| \
5395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5396 $as_echo X"$as_dir" |
5397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5398 s//\1/
5399 q
5400 }
5401 /^X\(\/\/\)[^/].*/{
5402 s//\1/
5403 q
5404 }
5405 /^X\(\/\/\)$/{
5406 s//\1/
5407 q
5408 }
5409 /^X\(\/\).*/{
5410 s//\1/
5411 q
5412 }
5413 s/.*/./; q'`
5414 test -d "$as_dir" && break
5415 done
5416 test -z "$as_dirs" || eval "mkdir $as_dirs"
5417 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5418
5419
5420 } # as_fn_mkdir_p
5421 if mkdir -p . 2>/dev/null; then
5422 as_mkdir_p='mkdir -p "$as_dir"'
5423 else
5424 test -d ./-p && rmdir ./-p
5425 as_mkdir_p=false
5426 fi
5427
5428
5429 # as_fn_executable_p FILE
5430 # -----------------------
5431 # Test if FILE is an executable regular file.
5432 as_fn_executable_p ()
5433 {
5434 test -f "$1" && test -x "$1"
5435 } # as_fn_executable_p
5436 as_test_x='test -x'
5437 as_executable_p=as_fn_executable_p
5438
5439 # Sed expression to map a string onto a valid CPP name.
5440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5441
5442 # Sed expression to map a string onto a valid variable name.
5443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5444
5445
5446 exec 6>&1
5447 ## ----------------------------------- ##
5448 ## Main body of $CONFIG_STATUS script. ##
5449 ## ----------------------------------- ##
5450 _ASEOF
5451 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5452
5453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5454 # Save the log message, to keep $0 and so on meaningful, and to
5455 # report actual input values of CONFIG_FILES etc. instead of their
5456 # values after options handling.
5457 ac_log="
5458 This file was extended by libmowgli-2 $as_me 2.1.3, which was
5459 generated by GNU Autoconf 2.69. Invocation command line was
5460
5461 CONFIG_FILES = $CONFIG_FILES
5462 CONFIG_HEADERS = $CONFIG_HEADERS
5463 CONFIG_LINKS = $CONFIG_LINKS
5464 CONFIG_COMMANDS = $CONFIG_COMMANDS
5465 $ $0 $@
5466
5467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5468 "
5469
5470 _ACEOF
5471
5472 case $ac_config_files in *"
5473 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5474 esac
5475
5476 case $ac_config_headers in *"
5477 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5478 esac
5479
5480
5481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5482 # Files that config.status was made for.
5483 config_files="$ac_config_files"
5484 config_headers="$ac_config_headers"
5485
5486 _ACEOF
5487
5488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5489 ac_cs_usage="\
5490 \`$as_me' instantiates files and other configuration actions
5491 from templates according to the current configuration. Unless the files
5492 and actions are specified as TAGs, all are instantiated by default.
5493
5494 Usage: $0 [OPTION]... [TAG]...
5495
5496 -h, --help print this help, then exit
5497 -V, --version print version number and configuration settings, then exit
5498 --config print configuration, then exit
5499 -q, --quiet, --silent
5500 do not print progress messages
5501 -d, --debug don't remove temporary files
5502 --recheck update $as_me by reconfiguring in the same conditions
5503 --file=FILE[:TEMPLATE]
5504 instantiate the configuration file FILE
5505 --header=FILE[:TEMPLATE]
5506 instantiate the configuration header FILE
5507
5508 Configuration files:
5509 $config_files
5510
5511 Configuration headers:
5512 $config_headers
5513
5514 Report bugs to <https://github.com/atheme/libmowgli-2>."
5515
5516 _ACEOF
5517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5518 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5519 ac_cs_version="\\
5520 libmowgli-2 config.status 2.1.3
5521 configured by $0, generated by GNU Autoconf 2.69,
5522 with options \\"\$ac_cs_config\\"
5523
5524 Copyright (C) 2012 Free Software Foundation, Inc.
5525 This config.status script is free software; the Free Software Foundation
5526 gives unlimited permission to copy, distribute and modify it."
5527
5528 ac_pwd='$ac_pwd'
5529 srcdir='$srcdir'
5530 INSTALL='$INSTALL'
5531 test -n "\$AWK" || AWK=awk
5532 _ACEOF
5533
5534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5535 # The default lists apply if the user does not specify any file.
5536 ac_need_defaults=:
5537 while test $# != 0
5538 do
5539 case $1 in
5540 --*=?*)
5541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5543 ac_shift=:
5544 ;;
5545 --*=)
5546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5547 ac_optarg=
5548 ac_shift=:
5549 ;;
5550 *)
5551 ac_option=$1
5552 ac_optarg=$2
5553 ac_shift=shift
5554 ;;
5555 esac
5556
5557 case $ac_option in
5558 # Handling of the options.
5559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5560 ac_cs_recheck=: ;;
5561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5562 $as_echo "$ac_cs_version"; exit ;;
5563 --config | --confi | --conf | --con | --co | --c )
5564 $as_echo "$ac_cs_config"; exit ;;
5565 --debug | --debu | --deb | --de | --d | -d )
5566 debug=: ;;
5567 --file | --fil | --fi | --f )
5568 $ac_shift
5569 case $ac_optarg in
5570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5571 '') as_fn_error $? "missing file argument" ;;
5572 esac
5573 as_fn_append CONFIG_FILES " '$ac_optarg'"
5574 ac_need_defaults=false;;
5575 --header | --heade | --head | --hea )
5576 $ac_shift
5577 case $ac_optarg in
5578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5579 esac
5580 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5581 ac_need_defaults=false;;
5582 --he | --h)
5583 # Conflict between --help and --header
5584 as_fn_error $? "ambiguous option: \`$1'
5585 Try \`$0 --help' for more information.";;
5586 --help | --hel | -h )
5587 $as_echo "$ac_cs_usage"; exit ;;
5588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5590 ac_cs_silent=: ;;
5591
5592 # This is an error.
5593 -*) as_fn_error $? "unrecognized option: \`$1'
5594 Try \`$0 --help' for more information." ;;
5595
5596 *) as_fn_append ac_config_targets " $1"
5597 ac_need_defaults=false ;;
5598
5599 esac
5600 shift
5601 done
5602
5603 ac_configure_extra_args=
5604
5605 if $ac_cs_silent; then
5606 exec 6>/dev/null
5607 ac_configure_extra_args="$ac_configure_extra_args --silent"
5608 fi
5609
5610 _ACEOF
5611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5612 if \$ac_cs_recheck; then
5613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5614 shift
5615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5616 CONFIG_SHELL='$SHELL'
5617 export CONFIG_SHELL
5618 exec "\$@"
5619 fi
5620
5621 _ACEOF
5622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5623 exec 5>>config.log
5624 {
5625 echo
5626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5627 ## Running $as_me. ##
5628 _ASBOX
5629 $as_echo "$ac_log"
5630 } >&5
5631
5632 _ACEOF
5633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5634 _ACEOF
5635
5636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5637
5638 # Handling of arguments.
5639 for ac_config_target in $ac_config_targets
5640 do
5641 case $ac_config_target in
5642 "src/libmowgli/platform/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libmowgli/platform/autoconf.h" ;;
5643 "buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
5644 "extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
5645 "libmowgli-2.pc") CONFIG_FILES="$CONFIG_FILES libmowgli-2.pc" ;;
5646
5647 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5648 esac
5649 done
5650
5651
5652 # If the user did not use the arguments to specify the items to instantiate,
5653 # then the envvar interface is used. Set only those that are not.
5654 # We use the long form for the default assignment because of an extremely
5655 # bizarre bug on SunOS 4.1.3.
5656 if $ac_need_defaults; then
5657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5659 fi
5660
5661 # Have a temporary directory for convenience. Make it in the build tree
5662 # simply because there is no reason against having it here, and in addition,
5663 # creating and moving files from /tmp can sometimes cause problems.
5664 # Hook for its removal unless debugging.
5665 # Note that there is a small window in which the directory will not be cleaned:
5666 # after its creation but before its name has been assigned to `$tmp'.
5667 $debug ||
5668 {
5669 tmp= ac_tmp=
5670 trap 'exit_status=$?
5671 : "${ac_tmp:=$tmp}"
5672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5673 ' 0
5674 trap 'as_fn_exit 1' 1 2 13 15
5675 }
5676 # Create a (secure) tmp directory for tmp files.
5677
5678 {
5679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5680 test -d "$tmp"
5681 } ||
5682 {
5683 tmp=./conf$$-$RANDOM
5684 (umask 077 && mkdir "$tmp")
5685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5686 ac_tmp=$tmp
5687
5688 # Set up the scripts for CONFIG_FILES section.
5689 # No need to generate them if there are no CONFIG_FILES.
5690 # This happens for instance with `./config.status config.h'.
5691 if test -n "$CONFIG_FILES"; then
5692
5693
5694 ac_cr=`echo X | tr X '\015'`
5695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5696 # But we know of no other shell where ac_cr would be empty at this
5697 # point, so we can use a bashism as a fallback.
5698 if test "x$ac_cr" = x; then
5699 eval ac_cr=\$\'\\r\'
5700 fi
5701 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5703 ac_cs_awk_cr='\\r'
5704 else
5705 ac_cs_awk_cr=$ac_cr
5706 fi
5707
5708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5709 _ACEOF
5710
5711
5712 {
5713 echo "cat >conf$$subs.awk <<_ACEOF" &&
5714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5715 echo "_ACEOF"
5716 } >conf$$subs.sh ||
5717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5719 ac_delim='%!_!# '
5720 for ac_last_try in false false false false false :; do
5721 . ./conf$$subs.sh ||
5722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5723
5724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5725 if test $ac_delim_n = $ac_delim_num; then
5726 break
5727 elif $ac_last_try; then
5728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5729 else
5730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5731 fi
5732 done
5733 rm -f conf$$subs.sh
5734
5735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5736 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5737 _ACEOF
5738 sed -n '
5739 h
5740 s/^/S["/; s/!.*/"]=/
5741 p
5742 g
5743 s/^[^!]*!//
5744 :repl
5745 t repl
5746 s/'"$ac_delim"'$//
5747 t delim
5748 :nl
5749 h
5750 s/\(.\{148\}\)..*/\1/
5751 t more1
5752 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5753 p
5754 n
5755 b repl
5756 :more1
5757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5758 p
5759 g
5760 s/.\{148\}//
5761 t nl
5762 :delim
5763 h
5764 s/\(.\{148\}\)..*/\1/
5765 t more2
5766 s/["\\]/\\&/g; s/^/"/; s/$/"/
5767 p
5768 b
5769 :more2
5770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5771 p
5772 g
5773 s/.\{148\}//
5774 t delim
5775 ' <conf$$subs.awk | sed '
5776 /^[^""]/{
5777 N
5778 s/\n//
5779 }
5780 ' >>$CONFIG_STATUS || ac_write_fail=1
5781 rm -f conf$$subs.awk
5782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5783 _ACAWK
5784 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5785 for (key in S) S_is_set[key] = 1
5786 FS = ""
5787
5788 }
5789 {
5790 line = $ 0
5791 nfields = split(line, field, "@")
5792 substed = 0
5793 len = length(field[1])
5794 for (i = 2; i < nfields; i++) {
5795 key = field[i]
5796 keylen = length(key)
5797 if (S_is_set[key]) {
5798 value = S[key]
5799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5800 len += length(value) + length(field[++i])
5801 substed = 1
5802 } else
5803 len += 1 + keylen
5804 }
5805
5806 print line
5807 }
5808
5809 _ACAWK
5810 _ACEOF
5811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5814 else
5815 cat
5816 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5818 _ACEOF
5819
5820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5822 # trailing colons and then remove the whole line if VPATH becomes empty
5823 # (actually we leave an empty line to preserve line numbers).
5824 if test "x$srcdir" = x.; then
5825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5826 h
5827 s///
5828 s/^/:/
5829 s/[ ]*$/:/
5830 s/:\$(srcdir):/:/g
5831 s/:\${srcdir}:/:/g
5832 s/:@srcdir@:/:/g
5833 s/^:*//
5834 s/:*$//
5835 x
5836 s/\(=[ ]*\).*/\1/
5837 G
5838 s/\n//
5839 s/^[^=]*=[ ]*$//
5840 }'
5841 fi
5842
5843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5844 fi # test -n "$CONFIG_FILES"
5845
5846 # Set up the scripts for CONFIG_HEADERS section.
5847 # No need to generate them if there are no CONFIG_HEADERS.
5848 # This happens for instance with `./config.status Makefile'.
5849 if test -n "$CONFIG_HEADERS"; then
5850 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5851 BEGIN {
5852 _ACEOF
5853
5854 # Transform confdefs.h into an awk script `defines.awk', embedded as
5855 # here-document in config.status, that substitutes the proper values into
5856 # config.h.in to produce config.h.
5857
5858 # Create a delimiter string that does not exist in confdefs.h, to ease
5859 # handling of long lines.
5860 ac_delim='%!_!# '
5861 for ac_last_try in false false :; do
5862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5863 if test -z "$ac_tt"; then
5864 break
5865 elif $ac_last_try; then
5866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5867 else
5868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5869 fi
5870 done
5871
5872 # For the awk script, D is an array of macro values keyed by name,
5873 # likewise P contains macro parameters if any. Preserve backslash
5874 # newline sequences.
5875
5876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5877 sed -n '
5878 s/.\{148\}/&'"$ac_delim"'/g
5879 t rset
5880 :rset
5881 s/^[ ]*#[ ]*define[ ][ ]*/ /
5882 t def
5883 d
5884 :def
5885 s/\\$//
5886 t bsnl
5887 s/["\\]/\\&/g
5888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5889 D["\1"]=" \3"/p
5890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5891 d
5892 :bsnl
5893 s/["\\]/\\&/g
5894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5895 D["\1"]=" \3\\\\\\n"\\/p
5896 t cont
5897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5898 t cont
5899 d
5900 :cont
5901 n
5902 s/.\{148\}/&'"$ac_delim"'/g
5903 t clear
5904 :clear
5905 s/\\$//
5906 t bsnlc
5907 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5908 d
5909 :bsnlc
5910 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5911 b cont
5912 ' <confdefs.h | sed '
5913 s/'"$ac_delim"'/"\\\
5914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5915
5916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5917 for (key in D) D_is_set[key] = 1
5918 FS = ""
5919 }
5920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5921 line = \$ 0
5922 split(line, arg, " ")
5923 if (arg[1] == "#") {
5924 defundef = arg[2]
5925 mac1 = arg[3]
5926 } else {
5927 defundef = substr(arg[1], 2)
5928 mac1 = arg[2]
5929 }
5930 split(mac1, mac2, "(") #)
5931 macro = mac2[1]
5932 prefix = substr(line, 1, index(line, defundef) - 1)
5933 if (D_is_set[macro]) {
5934 # Preserve the white space surrounding the "#".
5935 print prefix "define", macro P[macro] D[macro]
5936 next
5937 } else {
5938 # Replace #undef with comments. This is necessary, for example,
5939 # in the case of _POSIX_SOURCE, which is predefined and required
5940 # on some systems where configure will not decide to define it.
5941 if (defundef == "undef") {
5942 print "/*", prefix defundef, macro, "*/"
5943 next
5944 }
5945 }
5946 }
5947 { print }
5948 _ACAWK
5949 _ACEOF
5950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5952 fi # test -n "$CONFIG_HEADERS"
5953
5954
5955 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5956 shift
5957 for ac_tag
5958 do
5959 case $ac_tag in
5960 :[FHLC]) ac_mode=$ac_tag; continue;;
5961 esac
5962 case $ac_mode$ac_tag in
5963 :[FHL]*:*);;
5964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5965 :[FH]-) ac_tag=-:-;;
5966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5967 esac
5968 ac_save_IFS=$IFS
5969 IFS=:
5970 set x $ac_tag
5971 IFS=$ac_save_IFS
5972 shift
5973 ac_file=$1
5974 shift
5975
5976 case $ac_mode in
5977 :L) ac_source=$1;;
5978 :[FH])
5979 ac_file_inputs=
5980 for ac_f
5981 do
5982 case $ac_f in
5983 -) ac_f="$ac_tmp/stdin";;
5984 *) # Look for the file first in the build tree, then in the source tree
5985 # (if the path is not absolute). The absolute path cannot be DOS-style,
5986 # because $ac_f cannot contain `:'.
5987 test -f "$ac_f" ||
5988 case $ac_f in
5989 [\\/$]*) false;;
5990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5991 esac ||
5992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5993 esac
5994 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5995 as_fn_append ac_file_inputs " '$ac_f'"
5996 done
5997
5998 # Let's still pretend it is `configure' which instantiates (i.e., don't
5999 # use $as_me), people would be surprised to read:
6000 # /* config.h. Generated by config.status. */
6001 configure_input='Generated from '`
6002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6003 `' by configure.'
6004 if test x"$ac_file" != x-; then
6005 configure_input="$ac_file. $configure_input"
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6007 $as_echo "$as_me: creating $ac_file" >&6;}
6008 fi
6009 # Neutralize special characters interpreted by sed in replacement strings.
6010 case $configure_input in #(
6011 *\&* | *\|* | *\\* )
6012 ac_sed_conf_input=`$as_echo "$configure_input" |
6013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6014 *) ac_sed_conf_input=$configure_input;;
6015 esac
6016
6017 case $ac_tag in
6018 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6020 esac
6021 ;;
6022 esac
6023
6024 ac_dir=`$as_dirname -- "$ac_file" ||
6025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6026 X"$ac_file" : 'X\(//\)[^/]' \| \
6027 X"$ac_file" : 'X\(//\)$' \| \
6028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6029 $as_echo X"$ac_file" |
6030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6031 s//\1/
6032 q
6033 }
6034 /^X\(\/\/\)[^/].*/{
6035 s//\1/
6036 q
6037 }
6038 /^X\(\/\/\)$/{
6039 s//\1/
6040 q
6041 }
6042 /^X\(\/\).*/{
6043 s//\1/
6044 q
6045 }
6046 s/.*/./; q'`
6047 as_dir="$ac_dir"; as_fn_mkdir_p
6048 ac_builddir=.
6049
6050 case "$ac_dir" in
6051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6052 *)
6053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6054 # A ".." for each directory in $ac_dir_suffix.
6055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6056 case $ac_top_builddir_sub in
6057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6059 esac ;;
6060 esac
6061 ac_abs_top_builddir=$ac_pwd
6062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6063 # for backward compatibility:
6064 ac_top_builddir=$ac_top_build_prefix
6065
6066 case $srcdir in
6067 .) # We are building in place.
6068 ac_srcdir=.
6069 ac_top_srcdir=$ac_top_builddir_sub
6070 ac_abs_top_srcdir=$ac_pwd ;;
6071 [\\/]* | ?:[\\/]* ) # Absolute name.
6072 ac_srcdir=$srcdir$ac_dir_suffix;
6073 ac_top_srcdir=$srcdir
6074 ac_abs_top_srcdir=$srcdir ;;
6075 *) # Relative name.
6076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6077 ac_top_srcdir=$ac_top_build_prefix$srcdir
6078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6079 esac
6080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6081
6082
6083 case $ac_mode in
6084 :F)
6085 #
6086 # CONFIG_FILE
6087 #
6088
6089 case $INSTALL in
6090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6092 esac
6093 _ACEOF
6094
6095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6096 # If the template does not know about datarootdir, expand it.
6097 # FIXME: This hack should be removed a few years after 2.60.
6098 ac_datarootdir_hack=; ac_datarootdir_seen=
6099 ac_sed_dataroot='
6100 /datarootdir/ {
6101 p
6102 q
6103 }
6104 /@datadir@/p
6105 /@docdir@/p
6106 /@infodir@/p
6107 /@localedir@/p
6108 /@mandir@/p'
6109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6110 *datarootdir*) ac_datarootdir_seen=yes;;
6111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6114 _ACEOF
6115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6116 ac_datarootdir_hack='
6117 s&@datadir@&$datadir&g
6118 s&@docdir@&$docdir&g
6119 s&@infodir@&$infodir&g
6120 s&@localedir@&$localedir&g
6121 s&@mandir@&$mandir&g
6122 s&\\\${datarootdir}&$datarootdir&g' ;;
6123 esac
6124 _ACEOF
6125
6126 # Neutralize VPATH when `$srcdir' = `.'.
6127 # Shell code in configure.ac might set extrasub.
6128 # FIXME: do we really want to maintain this feature?
6129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130 ac_sed_extra="$ac_vpsub
6131 $extrasub
6132 _ACEOF
6133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6134 :t
6135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6136 s|@configure_input@|$ac_sed_conf_input|;t t
6137 s&@top_builddir@&$ac_top_builddir_sub&;t t
6138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6139 s&@srcdir@&$ac_srcdir&;t t
6140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6141 s&@top_srcdir@&$ac_top_srcdir&;t t
6142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6143 s&@builddir@&$ac_builddir&;t t
6144 s&@abs_builddir@&$ac_abs_builddir&;t t
6145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6146 s&@INSTALL@&$ac_INSTALL&;t t
6147 $ac_datarootdir_hack
6148 "
6149 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6150 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6151
6152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6153 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6155 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6157 which seems to be undefined. Please make sure it is defined" >&5
6158 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6159 which seems to be undefined. Please make sure it is defined" >&2;}
6160
6161 rm -f "$ac_tmp/stdin"
6162 case $ac_file in
6163 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6164 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6165 esac \
6166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6167 ;;
6168 :H)
6169 #
6170 # CONFIG_HEADER
6171 #
6172 if test x"$ac_file" != x-; then
6173 {
6174 $as_echo "/* $configure_input */" \
6175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6176 } >"$ac_tmp/config.h" \
6177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6178 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6180 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6181 else
6182 rm -f "$ac_file"
6183 mv "$ac_tmp/config.h" "$ac_file" \
6184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6185 fi
6186 else
6187 $as_echo "/* $configure_input */" \
6188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6189 || as_fn_error $? "could not create -" "$LINENO" 5
6190 fi
6191 ;;
6192
6193
6194 esac
6195
6196 done # for ac_tag
6197
6198
6199 as_fn_exit 0
6200 _ACEOF
6201 ac_clean_files=$ac_clean_files_save
6202
6203 test $ac_write_fail = 0 ||
6204 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6205
6206
6207 # configure is writing to config.log, and then calls config.status.
6208 # config.status does its own redirection, appending to config.log.
6209 # Unfortunately, on DOS this fails, as config.log is still kept open
6210 # by configure, so config.status won't be able to write to it; its
6211 # output is simply discarded. So we exec the FD to /dev/null,
6212 # effectively closing config.log, so it can be properly (re)opened and
6213 # appended to by config.status. When coming back to configure, we
6214 # need to make the FD available again.
6215 if test "$no_create" != yes; then
6216 ac_cs_success=:
6217 ac_config_status_args=
6218 test "$silent" = yes &&
6219 ac_config_status_args="$ac_config_status_args --quiet"
6220 exec 5>/dev/null
6221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6222 exec 5>>config.log
6223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6224 # would make configure fail if this is the last instruction.
6225 $ac_cs_success || as_fn_exit 1
6226 fi
6227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6229 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6230 fi
6231
6232
6233 cat << _EOF_
6234
6235 Configuration:
6236 OpenSSL support: ${OPENSSL}
6237 Heap allocator: ${enable_heap_allocator}
6238 Examples: ${EXAMPLES}
6239
6240 Now type "make" to build, and "make install" to install.
6241 Thank you for using libmowgli.
6242
6243 _EOF_