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