Fix missing ).
[mingw-w64/xnox.git] / configure
blobb52ada767ff0999e17083a5e567f9baa35d035d0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for mingw-w64 1.0b.
5 # Report bugs to <mingw-w64-public@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: mingw-w64-public@lists.sourceforge.net about your
234 $0: system, including any error possibly output before this
235 $0: message. Then install a modern shell, or manually run
236 $0: the script under such a shell if you do have one."
238 exit 1
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
256 { eval $1=; unset $1;}
258 as_unset=as_fn_unset
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
265 return $1
266 } # as_fn_set_status
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
273 set +e
274 as_fn_set_status $1
275 exit $1
276 } # as_fn_exit
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
309 /^X\(\/\/\)$/{
310 s//\1/
313 /^X\(\/\).*/{
314 s//\1/
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
334 eval $1+=\$2
336 else
337 as_fn_append ()
339 eval $1=\$$1\$2
341 fi # as_fn_append
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
351 as_val=$(( $* ))
353 else
354 as_fn_arith ()
356 as_val=`expr "$@" || test $? -eq 1`
358 fi # as_fn_arith
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375 } # as_fn_error
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380 else
381 as_expr=false
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386 else
387 as_basename=false
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392 else
393 as_dirname=false
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
405 /^X\/\(\/\/\)$/{
406 s//\1/
409 /^X\/\(\/\).*/{
410 s//\1/
413 s/.*/./; q'`
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
436 :lineno
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
464 ECHO_N='-n';;
465 esac
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470 else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
488 else
489 as_ln_s='cp -p'
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496 else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
534 # Name of the host.
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 # Initializations.
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
551 # Identity of this package.
552 PACKAGE_NAME='mingw-w64'
553 PACKAGE_TARNAME='mingw-w64'
554 PACKAGE_VERSION='1.0b'
555 PACKAGE_STRING='mingw-w64 1.0b'
556 PACKAGE_BUGREPORT='mingw-w64-public@lists.sourceforge.net'
557 PACKAGE_URL=''
559 ac_unique_file="AUTHORS"
560 enable_option_checking=no
561 ac_subst_vars='LTLIBOBJS
562 LIBOBJS
563 TOOLS_GENIDL_FALSE
564 TOOLS_GENIDL_TRUE
565 TOOLS_GENDEF_FALSE
566 TOOLS_GENDEF_TRUE
567 LIBRARIES_PSEH_FALSE
568 LIBRARIES_PSEH_TRUE
569 LIBRARIES_MANGLE_FALSE
570 LIBRARIES_MANGLE_TRUE
571 CRT_FALSE
572 CRT_TRUE
573 HEADER_FALSE
574 HEADER_TRUE
575 subdirs
576 host_os
577 host_vendor
578 host_cpu
579 host
580 build_os
581 build_vendor
582 build_cpu
583 build
584 am__untar
585 am__tar
586 AMTAR
587 am__leading_dot
588 SET_MAKE
590 mkdir_p
591 MKDIR_P
592 INSTALL_STRIP_PROGRAM
593 STRIP
594 install_sh
595 MAKEINFO
596 AUTOHEADER
597 AUTOMAKE
598 AUTOCONF
599 ACLOCAL
600 VERSION
601 PACKAGE
602 CYGPATH_W
603 am__isrc
604 INSTALL_DATA
605 INSTALL_SCRIPT
606 INSTALL_PROGRAM
607 MAINT
608 MAINTAINER_MODE_FALSE
609 MAINTAINER_MODE_TRUE
610 target_alias
611 host_alias
612 build_alias
613 LIBS
614 ECHO_T
615 ECHO_N
616 ECHO_C
617 DEFS
618 mandir
619 localedir
620 libdir
621 psdir
622 pdfdir
623 dvidir
624 htmldir
625 infodir
626 docdir
627 oldincludedir
628 includedir
629 localstatedir
630 sharedstatedir
631 sysconfdir
632 datadir
633 datarootdir
634 libexecdir
635 sbindir
636 bindir
637 program_transform_name
638 prefix
639 exec_prefix
640 PACKAGE_URL
641 PACKAGE_BUGREPORT
642 PACKAGE_STRING
643 PACKAGE_VERSION
644 PACKAGE_TARNAME
645 PACKAGE_NAME
646 PATH_SEPARATOR
647 SHELL'
648 ac_subst_files=''
649 ac_user_opts='
650 enable_option_checking
651 enable_maintainer_mode
652 with_headers
653 with_crt
654 with_libraries
655 with_tools
657 ac_precious_vars='build_alias
658 host_alias
659 target_alias'
660 ac_subdirs_all='mingw-w64-headers
661 mingw-w64-crt
662 mingw-w64-libraries/libmangle
663 mingw-w64-libraries/pseh
664 mingw-w64-tools/gendef
665 mingw-w64-tools/genidl'
667 # Initialize some variables set by options.
668 ac_init_help=
669 ac_init_version=false
670 ac_unrecognized_opts=
671 ac_unrecognized_sep=
672 # The variables have the same names as the options, with
673 # dashes changed to underlines.
674 cache_file=/dev/null
675 exec_prefix=NONE
676 no_create=
677 no_recursion=
678 prefix=NONE
679 program_prefix=NONE
680 program_suffix=NONE
681 program_transform_name=s,x,x,
682 silent=
683 site=
684 srcdir=
685 verbose=
686 x_includes=NONE
687 x_libraries=NONE
689 # Installation directory options.
690 # These are left unexpanded so users can "make install exec_prefix=/foo"
691 # and all the variables that are supposed to be based on exec_prefix
692 # by default will actually change.
693 # Use braces instead of parens because sh, perl, etc. also accept them.
694 # (The list follows the same order as the GNU Coding Standards.)
695 bindir='${exec_prefix}/bin'
696 sbindir='${exec_prefix}/sbin'
697 libexecdir='${exec_prefix}/libexec'
698 datarootdir='${prefix}/share'
699 datadir='${datarootdir}'
700 sysconfdir='${prefix}/etc'
701 sharedstatedir='${prefix}/com'
702 localstatedir='${prefix}/var'
703 includedir='${prefix}/include'
704 oldincludedir='/usr/include'
705 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
706 infodir='${datarootdir}/info'
707 htmldir='${docdir}'
708 dvidir='${docdir}'
709 pdfdir='${docdir}'
710 psdir='${docdir}'
711 libdir='${exec_prefix}/lib'
712 localedir='${datarootdir}/locale'
713 mandir='${datarootdir}/man'
715 ac_prev=
716 ac_dashdash=
717 for ac_option
719 # If the previous option needs an argument, assign it.
720 if test -n "$ac_prev"; then
721 eval $ac_prev=\$ac_option
722 ac_prev=
723 continue
726 case $ac_option in
727 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
728 *) ac_optarg=yes ;;
729 esac
731 # Accept the important Cygnus configure options, so we can diagnose typos.
733 case $ac_dashdash$ac_option in
735 ac_dashdash=yes ;;
737 -bindir | --bindir | --bindi | --bind | --bin | --bi)
738 ac_prev=bindir ;;
739 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
740 bindir=$ac_optarg ;;
742 -build | --build | --buil | --bui | --bu)
743 ac_prev=build_alias ;;
744 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
745 build_alias=$ac_optarg ;;
747 -cache-file | --cache-file | --cache-fil | --cache-fi \
748 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
749 ac_prev=cache_file ;;
750 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
751 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
752 cache_file=$ac_optarg ;;
754 --config-cache | -C)
755 cache_file=config.cache ;;
757 -datadir | --datadir | --datadi | --datad)
758 ac_prev=datadir ;;
759 -datadir=* | --datadir=* | --datadi=* | --datad=*)
760 datadir=$ac_optarg ;;
762 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
763 | --dataroo | --dataro | --datar)
764 ac_prev=datarootdir ;;
765 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
766 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
767 datarootdir=$ac_optarg ;;
769 -disable-* | --disable-*)
770 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
771 # Reject names that are not valid shell variable names.
772 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
773 as_fn_error "invalid feature name: $ac_useropt"
774 ac_useropt_orig=$ac_useropt
775 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
776 case $ac_user_opts in
778 "enable_$ac_useropt"
779 "*) ;;
780 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
781 ac_unrecognized_sep=', ';;
782 esac
783 eval enable_$ac_useropt=no ;;
785 -docdir | --docdir | --docdi | --doc | --do)
786 ac_prev=docdir ;;
787 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
788 docdir=$ac_optarg ;;
790 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
791 ac_prev=dvidir ;;
792 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
793 dvidir=$ac_optarg ;;
795 -enable-* | --enable-*)
796 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
804 "enable_$ac_useropt"
805 "*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=\$ac_optarg ;;
811 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
812 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
813 | --exec | --exe | --ex)
814 ac_prev=exec_prefix ;;
815 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
816 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
817 | --exec=* | --exe=* | --ex=*)
818 exec_prefix=$ac_optarg ;;
820 -gas | --gas | --ga | --g)
821 # Obsolete; use --with-gas.
822 with_gas=yes ;;
824 -help | --help | --hel | --he | -h)
825 ac_init_help=long ;;
826 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
827 ac_init_help=recursive ;;
828 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
829 ac_init_help=short ;;
831 -host | --host | --hos | --ho)
832 ac_prev=host_alias ;;
833 -host=* | --host=* | --hos=* | --ho=*)
834 host_alias=$ac_optarg ;;
836 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
837 ac_prev=htmldir ;;
838 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
839 | --ht=*)
840 htmldir=$ac_optarg ;;
842 -includedir | --includedir | --includedi | --included | --include \
843 | --includ | --inclu | --incl | --inc)
844 ac_prev=includedir ;;
845 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
846 | --includ=* | --inclu=* | --incl=* | --inc=*)
847 includedir=$ac_optarg ;;
849 -infodir | --infodir | --infodi | --infod | --info | --inf)
850 ac_prev=infodir ;;
851 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
852 infodir=$ac_optarg ;;
854 -libdir | --libdir | --libdi | --libd)
855 ac_prev=libdir ;;
856 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 libdir=$ac_optarg ;;
859 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
860 | --libexe | --libex | --libe)
861 ac_prev=libexecdir ;;
862 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
863 | --libexe=* | --libex=* | --libe=*)
864 libexecdir=$ac_optarg ;;
866 -localedir | --localedir | --localedi | --localed | --locale)
867 ac_prev=localedir ;;
868 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
869 localedir=$ac_optarg ;;
871 -localstatedir | --localstatedir | --localstatedi | --localstated \
872 | --localstate | --localstat | --localsta | --localst | --locals)
873 ac_prev=localstatedir ;;
874 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
875 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
876 localstatedir=$ac_optarg ;;
878 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
879 ac_prev=mandir ;;
880 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881 mandir=$ac_optarg ;;
883 -nfp | --nfp | --nf)
884 # Obsolete; use --without-fp.
885 with_fp=no ;;
887 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
888 | --no-cr | --no-c | -n)
889 no_create=yes ;;
891 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
892 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 no_recursion=yes ;;
895 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
896 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
897 | --oldin | --oldi | --old | --ol | --o)
898 ac_prev=oldincludedir ;;
899 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
900 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
901 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
902 oldincludedir=$ac_optarg ;;
904 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
905 ac_prev=prefix ;;
906 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 prefix=$ac_optarg ;;
909 -program-prefix | --program-prefix | --program-prefi | --program-pref \
910 | --program-pre | --program-pr | --program-p)
911 ac_prev=program_prefix ;;
912 -program-prefix=* | --program-prefix=* | --program-prefi=* \
913 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
914 program_prefix=$ac_optarg ;;
916 -program-suffix | --program-suffix | --program-suffi | --program-suff \
917 | --program-suf | --program-su | --program-s)
918 ac_prev=program_suffix ;;
919 -program-suffix=* | --program-suffix=* | --program-suffi=* \
920 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
921 program_suffix=$ac_optarg ;;
923 -program-transform-name | --program-transform-name \
924 | --program-transform-nam | --program-transform-na \
925 | --program-transform-n | --program-transform- \
926 | --program-transform | --program-transfor \
927 | --program-transfo | --program-transf \
928 | --program-trans | --program-tran \
929 | --progr-tra | --program-tr | --program-t)
930 ac_prev=program_transform_name ;;
931 -program-transform-name=* | --program-transform-name=* \
932 | --program-transform-nam=* | --program-transform-na=* \
933 | --program-transform-n=* | --program-transform-=* \
934 | --program-transform=* | --program-transfor=* \
935 | --program-transfo=* | --program-transf=* \
936 | --program-trans=* | --program-tran=* \
937 | --progr-tra=* | --program-tr=* | --program-t=*)
938 program_transform_name=$ac_optarg ;;
940 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
941 ac_prev=pdfdir ;;
942 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 pdfdir=$ac_optarg ;;
945 -psdir | --psdir | --psdi | --psd | --ps)
946 ac_prev=psdir ;;
947 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 psdir=$ac_optarg ;;
950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
951 | -silent | --silent | --silen | --sile | --sil)
952 silent=yes ;;
954 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
955 ac_prev=sbindir ;;
956 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
957 | --sbi=* | --sb=*)
958 sbindir=$ac_optarg ;;
960 -sharedstatedir | --sharedstatedir | --sharedstatedi \
961 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
962 | --sharedst | --shareds | --shared | --share | --shar \
963 | --sha | --sh)
964 ac_prev=sharedstatedir ;;
965 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
966 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
967 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
968 | --sha=* | --sh=*)
969 sharedstatedir=$ac_optarg ;;
971 -site | --site | --sit)
972 ac_prev=site ;;
973 -site=* | --site=* | --sit=*)
974 site=$ac_optarg ;;
976 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
977 ac_prev=srcdir ;;
978 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 srcdir=$ac_optarg ;;
981 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
982 | --syscon | --sysco | --sysc | --sys | --sy)
983 ac_prev=sysconfdir ;;
984 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
985 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
986 sysconfdir=$ac_optarg ;;
988 -target | --target | --targe | --targ | --tar | --ta | --t)
989 ac_prev=target_alias ;;
990 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
991 target_alias=$ac_optarg ;;
993 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 verbose=yes ;;
996 -version | --version | --versio | --versi | --vers | -V)
997 ac_init_version=: ;;
999 -with-* | --with-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid package name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "with_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval with_$ac_useropt=\$ac_optarg ;;
1015 -without-* | --without-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error "invalid package name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "with_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval with_$ac_useropt=no ;;
1031 --x)
1032 # Obsolete; use --with-x.
1033 with_x=yes ;;
1035 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036 | --x-incl | --x-inc | --x-in | --x-i)
1037 ac_prev=x_includes ;;
1038 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040 x_includes=$ac_optarg ;;
1042 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044 ac_prev=x_libraries ;;
1045 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047 x_libraries=$ac_optarg ;;
1049 -*) as_fn_error "unrecognized option: \`$ac_option'
1050 Try \`$0 --help' for more information."
1053 *=*)
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 case $ac_envvar in #(
1057 '' | [0-9]* | *[!_$as_cr_alnum]* )
1058 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1059 esac
1060 eval $ac_envvar=\$ac_optarg
1061 export $ac_envvar ;;
1064 # FIXME: should be removed in autoconf 3.0.
1065 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071 esac
1072 done
1074 if test -n "$ac_prev"; then
1075 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076 as_fn_error "missing argument to $ac_option"
1079 if test -n "$ac_unrecognized_opts"; then
1080 case $enable_option_checking in
1081 no) ;;
1082 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1083 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1084 esac
1087 # Check all directory arguments for consistency.
1088 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1089 datadir sysconfdir sharedstatedir localstatedir includedir \
1090 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1091 libdir localedir mandir
1093 eval ac_val=\$$ac_var
1094 # Remove trailing slashes.
1095 case $ac_val in
1096 */ )
1097 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1098 eval $ac_var=\$ac_val;;
1099 esac
1100 # Be sure to have absolute directory names.
1101 case $ac_val in
1102 [\\/$]* | ?:[\\/]* ) continue;;
1103 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104 esac
1105 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1106 done
1108 # There might be people who depend on the old broken behavior: `$host'
1109 # used to hold the argument of --host etc.
1110 # FIXME: To remove some day.
1111 build=$build_alias
1112 host=$host_alias
1113 target=$target_alias
1115 # FIXME: To remove some day.
1116 if test "x$host_alias" != x; then
1117 if test "x$build_alias" = x; then
1118 cross_compiling=maybe
1119 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120 If a cross compiler is detected then cross compile mode will be used." >&2
1121 elif test "x$build_alias" != "x$host_alias"; then
1122 cross_compiling=yes
1126 ac_tool_prefix=
1127 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1129 test "$silent" = yes && exec 6>/dev/null
1132 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133 ac_ls_di=`ls -di .` &&
1134 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135 as_fn_error "working directory cannot be determined"
1136 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1137 as_fn_error "pwd does not report name of working directory"
1140 # Find the source files, if location was not specified.
1141 if test -z "$srcdir"; then
1142 ac_srcdir_defaulted=yes
1143 # Try the directory containing this script, then the parent directory.
1144 ac_confdir=`$as_dirname -- "$as_myself" ||
1145 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146 X"$as_myself" : 'X\(//\)[^/]' \| \
1147 X"$as_myself" : 'X\(//\)$' \| \
1148 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1149 $as_echo X"$as_myself" |
1150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151 s//\1/
1154 /^X\(\/\/\)[^/].*/{
1155 s//\1/
1158 /^X\(\/\/\)$/{
1159 s//\1/
1162 /^X\(\/\).*/{
1163 s//\1/
1166 s/.*/./; q'`
1167 srcdir=$ac_confdir
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1169 srcdir=..
1171 else
1172 ac_srcdir_defaulted=no
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1178 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1179 ac_abs_confdir=`(
1180 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1181 pwd)`
1182 # When building in place, set srcdir=.
1183 if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 srcdir=.
1186 # Remove unnecessary trailing slashes from srcdir.
1187 # Double slashes in file names in object file debugging info
1188 # mess up M-x gdb in Emacs.
1189 case $srcdir in
1190 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1191 esac
1192 for ac_var in $ac_precious_vars; do
1193 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1194 eval ac_env_${ac_var}_value=\$${ac_var}
1195 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1196 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1197 done
1200 # Report the --help message.
1202 if test "$ac_init_help" = "long"; then
1203 # Omit some internal or obsolete options to make the list less imposing.
1204 # This message is too long to be a string in the A/UX 3.1 sh.
1205 cat <<_ACEOF
1206 \`configure' configures mingw-w64 1.0b to adapt to many kinds of systems.
1208 Usage: $0 [OPTION]... [VAR=VALUE]...
1210 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1211 VAR=VALUE. See below for descriptions of some of the useful variables.
1213 Defaults for the options are specified in brackets.
1215 Configuration:
1216 -h, --help display this help and exit
1217 --help=short display options specific to this package
1218 --help=recursive display the short help of all the included packages
1219 -V, --version display version information and exit
1220 -q, --quiet, --silent do not print \`checking...' messages
1221 --cache-file=FILE cache test results in FILE [disabled]
1222 -C, --config-cache alias for \`--cache-file=config.cache'
1223 -n, --no-create do not create output files
1224 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1226 Installation directories:
1227 --prefix=PREFIX install architecture-independent files in PREFIX
1228 [$ac_default_prefix]
1229 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 [PREFIX]
1232 By default, \`make install' will install all the files in
1233 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1234 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1235 for instance \`--prefix=\$HOME'.
1237 For better control, use the options below.
1239 Fine tuning of the installation directories:
1240 --bindir=DIR user executables [EPREFIX/bin]
1241 --sbindir=DIR system admin executables [EPREFIX/sbin]
1242 --libexecdir=DIR program executables [EPREFIX/libexec]
1243 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1244 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1245 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1246 --libdir=DIR object code libraries [EPREFIX/lib]
1247 --includedir=DIR C header files [PREFIX/include]
1248 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1249 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1250 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1251 --infodir=DIR info documentation [DATAROOTDIR/info]
1252 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1253 --mandir=DIR man documentation [DATAROOTDIR/man]
1254 --docdir=DIR documentation root [DATAROOTDIR/doc/mingw-w64]
1255 --htmldir=DIR html documentation [DOCDIR]
1256 --dvidir=DIR dvi documentation [DOCDIR]
1257 --pdfdir=DIR pdf documentation [DOCDIR]
1258 --psdir=DIR ps documentation [DOCDIR]
1259 _ACEOF
1261 cat <<\_ACEOF
1263 Program names:
1264 --program-prefix=PREFIX prepend PREFIX to installed program names
1265 --program-suffix=SUFFIX append SUFFIX to installed program names
1266 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1268 System types:
1269 --build=BUILD configure for building on BUILD [guessed]
1270 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1271 _ACEOF
1274 if test -n "$ac_init_help"; then
1275 case $ac_init_help in
1276 short | recursive ) echo "Configuration of mingw-w64 1.0b:";;
1277 esac
1278 cat <<\_ACEOF
1280 Optional Features:
1281 --disable-option-checking ignore unrecognized --enable/--with options
1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 --enable-maintainer-mode enable make rules and dependencies not useful
1285 (and sometimes confusing) to the casual installer
1287 Optional Packages:
1288 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1289 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1290 --without-headers Skip building the mingw-w64 headers
1291 --without-crt Skip building the mingw-w64 crt
1292 --with-libraries=ARG Build the extra mingw-w64 libs, where ARG is one of
1293 libmangle, pseh, or all
1294 --with-tools=ARG Build the extra mingw-w64 tools, where ARG is one of
1295 gendef, genidl, or all
1297 Report bugs to <mingw-w64-public@lists.sourceforge.net>.
1298 _ACEOF
1299 ac_status=$?
1302 if test "$ac_init_help" = "recursive"; then
1303 # If there are subdirs, report their specific --help.
1304 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1305 test -d "$ac_dir" ||
1306 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1307 continue
1308 ac_builddir=.
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 mingw-w64 configure 1.0b
1361 generated by GNU Autoconf 2.65
1363 Copyright (C) 2009 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1366 _ACEOF
1367 exit
1370 ## ------------------------ ##
1371 ## Autoconf initialization. ##
1372 ## ------------------------ ##
1373 cat >config.log <<_ACEOF
1374 This file contains any messages produced by compilers while
1375 running configure, to aid debugging if configure makes a mistake.
1377 It was created by mingw-w64 $as_me 1.0b, which was
1378 generated by GNU Autoconf 2.65. Invocation command line was
1380 $ $0 $@
1382 _ACEOF
1383 exec 5>>config.log
1385 cat <<_ASUNAME
1386 ## --------- ##
1387 ## Platform. ##
1388 ## --------- ##
1390 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1391 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1392 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1393 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1394 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1396 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1397 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1399 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1400 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1401 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1402 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1403 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1404 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1405 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1407 _ASUNAME
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 for as_dir in $PATH
1412 IFS=$as_save_IFS
1413 test -z "$as_dir" && as_dir=.
1414 $as_echo "PATH: $as_dir"
1415 done
1416 IFS=$as_save_IFS
1418 } >&5
1420 cat >&5 <<_ACEOF
1423 ## ----------- ##
1424 ## Core tests. ##
1425 ## ----------- ##
1427 _ACEOF
1430 # Keep a trace of the command line.
1431 # Strip out --no-create and --no-recursion so they do not pile up.
1432 # Strip out --silent because we don't want to record it for future runs.
1433 # Also quote any args containing shell meta-characters.
1434 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_configure_args=
1436 ac_configure_args0=
1437 ac_configure_args1=
1438 ac_must_keep_next=false
1439 for ac_pass in 1 2
1441 for ac_arg
1443 case $ac_arg in
1444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1446 | -silent | --silent | --silen | --sile | --sil)
1447 continue ;;
1448 *\'*)
1449 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1450 esac
1451 case $ac_pass in
1452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1454 as_fn_append ac_configure_args1 " '$ac_arg'"
1455 if test $ac_must_keep_next = true; then
1456 ac_must_keep_next=false # Got value, back to normal.
1457 else
1458 case $ac_arg in
1459 *=* | --config-cache | -C | -disable-* | --disable-* \
1460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1462 | -with-* | --with-* | -without-* | --without-* | --x)
1463 case "$ac_configure_args0 " in
1464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1465 esac
1467 -* ) ac_must_keep_next=true ;;
1468 esac
1470 as_fn_append ac_configure_args " '$ac_arg'"
1472 esac
1473 done
1474 done
1475 { ac_configure_args0=; unset ac_configure_args0;}
1476 { ac_configure_args1=; unset ac_configure_args1;}
1478 # When interrupted or exit'd, cleanup temporary files, and complete
1479 # config.log. We remove comments because anyway the quotes in there
1480 # would cause problems or look ugly.
1481 # WARNING: Use '\'' to represent an apostrophe within the trap.
1482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1483 trap 'exit_status=$?
1484 # Save into config.log some information that might help in debugging.
1486 echo
1488 cat <<\_ASBOX
1489 ## ---------------- ##
1490 ## Cache variables. ##
1491 ## ---------------- ##
1492 _ASBOX
1493 echo
1494 # The following way of writing the cache mishandles newlines in values,
1496 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1497 eval ac_val=\$$ac_var
1498 case $ac_val in #(
1499 *${as_nl}*)
1500 case $ac_var in #(
1501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1503 esac
1504 case $ac_var in #(
1505 _ | IFS | as_nl) ;; #(
1506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1507 *) { eval $ac_var=; unset $ac_var;} ;;
1508 esac ;;
1509 esac
1510 done
1511 (set) 2>&1 |
1512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1513 *${as_nl}ac_space=\ *)
1514 sed -n \
1515 "s/'\''/'\''\\\\'\'''\''/g;
1516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1517 ;; #(
1519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1521 esac |
1522 sort
1524 echo
1526 cat <<\_ASBOX
1527 ## ----------------- ##
1528 ## Output variables. ##
1529 ## ----------------- ##
1530 _ASBOX
1531 echo
1532 for ac_var in $ac_subst_vars
1534 eval ac_val=\$$ac_var
1535 case $ac_val in
1536 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1537 esac
1538 $as_echo "$ac_var='\''$ac_val'\''"
1539 done | sort
1540 echo
1542 if test -n "$ac_subst_files"; then
1543 cat <<\_ASBOX
1544 ## ------------------- ##
1545 ## File substitutions. ##
1546 ## ------------------- ##
1547 _ASBOX
1548 echo
1549 for ac_var in $ac_subst_files
1551 eval ac_val=\$$ac_var
1552 case $ac_val in
1553 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 esac
1555 $as_echo "$ac_var='\''$ac_val'\''"
1556 done | sort
1557 echo
1560 if test -s confdefs.h; then
1561 cat <<\_ASBOX
1562 ## ----------- ##
1563 ## confdefs.h. ##
1564 ## ----------- ##
1565 _ASBOX
1566 echo
1567 cat confdefs.h
1568 echo
1570 test "$ac_signal" != 0 &&
1571 $as_echo "$as_me: caught signal $ac_signal"
1572 $as_echo "$as_me: exit $exit_status"
1573 } >&5
1574 rm -f core *.core core.conftest.* &&
1575 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1576 exit $exit_status
1578 for ac_signal in 1 2 13 15; do
1579 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1580 done
1581 ac_signal=0
1583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1584 rm -f -r conftest* confdefs.h
1586 $as_echo "/* confdefs.h */" > confdefs.h
1588 # Predefined preprocessor variables.
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_NAME "$PACKAGE_NAME"
1592 _ACEOF
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1596 _ACEOF
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1600 _ACEOF
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 _ACEOF
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1608 _ACEOF
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_URL "$PACKAGE_URL"
1612 _ACEOF
1615 # Let the site file select an alternate cache file if it wants to.
1616 # Prefer an explicitly selected file to automatically selected ones.
1617 ac_site_file1=NONE
1618 ac_site_file2=NONE
1619 if test -n "$CONFIG_SITE"; then
1620 ac_site_file1=$CONFIG_SITE
1621 elif test "x$prefix" != xNONE; then
1622 ac_site_file1=$prefix/share/config.site
1623 ac_site_file2=$prefix/etc/config.site
1624 else
1625 ac_site_file1=$ac_default_prefix/share/config.site
1626 ac_site_file2=$ac_default_prefix/etc/config.site
1628 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1630 test "x$ac_site_file" = xNONE && continue
1631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1633 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1634 sed 's/^/| /' "$ac_site_file" >&5
1635 . "$ac_site_file"
1637 done
1639 if test -r "$cache_file"; then
1640 # Some versions of bash will fail to source /dev/null (special files
1641 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1642 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1644 $as_echo "$as_me: loading cache $cache_file" >&6;}
1645 case $cache_file in
1646 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1647 *) . "./$cache_file";;
1648 esac
1650 else
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1652 $as_echo "$as_me: creating cache $cache_file" >&6;}
1653 >$cache_file
1656 # Check that the precious variables saved in the cache have kept the same
1657 # value.
1658 ac_cache_corrupted=false
1659 for ac_var in $ac_precious_vars; do
1660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1661 eval ac_new_set=\$ac_env_${ac_var}_set
1662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1663 eval ac_new_val=\$ac_env_${ac_var}_value
1664 case $ac_old_set,$ac_new_set in
1665 set,)
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1667 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1668 ac_cache_corrupted=: ;;
1669 ,set)
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1671 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1672 ac_cache_corrupted=: ;;
1673 ,);;
1675 if test "x$ac_old_val" != "x$ac_new_val"; then
1676 # differences in whitespace do not lead to failure.
1677 ac_old_val_w=`echo x $ac_old_val`
1678 ac_new_val_w=`echo x $ac_new_val`
1679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1682 ac_cache_corrupted=:
1683 else
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1686 eval $ac_var=\$ac_old_val
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1689 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1692 fi;;
1693 esac
1694 # Pass precious variables to config.status.
1695 if test "$ac_new_set" = set; then
1696 case $ac_new_val in
1697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 *) ac_arg=$ac_var=$ac_new_val ;;
1699 esac
1700 case " $ac_configure_args " in
1701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1703 esac
1705 done
1706 if $ac_cache_corrupted; then
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1711 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1713 ## -------------------- ##
1714 ## Main body of script. ##
1715 ## -------------------- ##
1717 ac_ext=c
1718 ac_cpp='$CPP $CPPFLAGS'
1719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1724 ac_aux_dir=
1725 for ac_dir in build-aux "$srcdir"/build-aux; do
1726 for ac_t in install-sh install.sh shtool; do
1727 if test -f "$ac_dir/$ac_t"; then
1728 ac_aux_dir=$ac_dir
1729 ac_install_sh="$ac_aux_dir/$ac_t -c"
1730 break 2
1732 done
1733 done
1734 if test -z "$ac_aux_dir"; then
1735 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1738 # These three variables are undocumented and unsupported,
1739 # and are intended to be withdrawn in a future Autoconf release.
1740 # They can cause serious problems if a builder's source tree is in a directory
1741 # whose full name contains unusual characters.
1742 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1743 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1744 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1748 ac_config_headers="$ac_config_headers config.h"
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
1753 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1754 # Check whether --enable-maintainer-mode was given.
1755 if test "${enable_maintainer_mode+set}" = set; then :
1756 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1757 else
1758 USE_MAINTAINER_MODE=no
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
1762 $as_echo "$USE_MAINTAINER_MODE" >&6; }
1763 if test $USE_MAINTAINER_MODE = yes; then
1764 MAINTAINER_MODE_TRUE=
1765 MAINTAINER_MODE_FALSE='#'
1766 else
1767 MAINTAINER_MODE_TRUE='#'
1768 MAINTAINER_MODE_FALSE=
1771 MAINT=$MAINTAINER_MODE_TRUE
1774 am__api_version='1.11'
1776 # Find a good install program. We prefer a C program (faster),
1777 # so one script is as good as another. But avoid the broken or
1778 # incompatible versions:
1779 # SysV /etc/install, /usr/sbin/install
1780 # SunOS /usr/etc/install
1781 # IRIX /sbin/install
1782 # AIX /bin/install
1783 # AmigaOS /C/install, which installs bootblocks on floppy discs
1784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1787 # OS/2's system install, which has a completely different semantic
1788 # ./install, which can be erroneously created by make from ./install.sh.
1789 # Reject install programs that cannot install multiple files.
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1792 if test -z "$INSTALL"; then
1793 if test "${ac_cv_path_install+set}" = set; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 # Account for people who put trailing slashes in PATH elements.
1802 case $as_dir/ in #((
1803 ./ | .// | /[cC]/* | \
1804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1806 /usr/ucb/* ) ;;
1808 # OSF1 and SCO ODT 3.0 have their own names for install.
1809 # Don't use installbsd from OSF since it installs stuff as root
1810 # by default.
1811 for ac_prog in ginstall scoinst install; do
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1814 if test $ac_prog = install &&
1815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816 # AIX install. It has an incompatible calling convention.
1818 elif test $ac_prog = install &&
1819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1820 # program-specific install script used by HP pwplus--don't use.
1822 else
1823 rm -rf conftest.one conftest.two conftest.dir
1824 echo one > conftest.one
1825 echo two > conftest.two
1826 mkdir conftest.dir
1827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1828 test -s conftest.one && test -s conftest.two &&
1829 test -s conftest.dir/conftest.one &&
1830 test -s conftest.dir/conftest.two
1831 then
1832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1833 break 3
1837 done
1838 done
1840 esac
1842 done
1843 IFS=$as_save_IFS
1845 rm -rf conftest.one conftest.two conftest.dir
1848 if test "${ac_cv_path_install+set}" = set; then
1849 INSTALL=$ac_cv_path_install
1850 else
1851 # As a last resort, use the slow shell script. Don't cache a
1852 # value for INSTALL within a source directory, because that will
1853 # break other packages using the cache if that directory is
1854 # removed, or if the value is a relative name.
1855 INSTALL=$ac_install_sh
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1859 $as_echo "$INSTALL" >&6; }
1861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1862 # It thinks the first close brace ends the variable substitution.
1863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1870 $as_echo_n "checking whether build environment is sane... " >&6; }
1871 # Just in case
1872 sleep 1
1873 echo timestamp > conftest.file
1874 # Reject unsafe characters in $srcdir or the absolute working directory
1875 # name. Accept space and tab only in the latter.
1876 am_lf='
1878 case `pwd` in
1879 *[\\\"\#\$\&\'\`$am_lf]*)
1880 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
1881 esac
1882 case $srcdir in
1883 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1884 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1885 esac
1887 # Do `set' in a subshell so we don't clobber the current shell's
1888 # arguments. Must try -L first in case configure is actually a
1889 # symlink; some systems play weird games with the mod time of symlinks
1890 # (eg FreeBSD returns the mod time of the symlink's containing
1891 # directory).
1892 if (
1893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1894 if test "$*" = "X"; then
1895 # -L didn't work.
1896 set X `ls -t "$srcdir/configure" conftest.file`
1898 rm -f conftest.file
1899 if test "$*" != "X $srcdir/configure conftest.file" \
1900 && test "$*" != "X conftest.file $srcdir/configure"; then
1902 # If neither matched, then we have a broken ls. This can happen
1903 # if, for instance, CONFIG_SHELL is bash and it inherits a
1904 # broken ls alias from the environment. This has actually
1905 # happened. Such a system could not be considered "sane".
1906 as_fn_error "ls -t appears to fail. Make sure there is not a broken
1907 alias in your environment" "$LINENO" 5
1910 test "$2" = conftest.file
1912 then
1913 # Ok.
1915 else
1916 as_fn_error "newly created file is older than distributed files!
1917 Check your system clock" "$LINENO" 5
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1920 $as_echo "yes" >&6; }
1921 test "$program_prefix" != NONE &&
1922 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1923 # Use a double $ so make ignores it.
1924 test "$program_suffix" != NONE &&
1925 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1926 # Double any \ or $.
1927 # By default was `s,x,x', remove it if useless.
1928 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1929 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1931 # expand $ac_aux_dir to an absolute path
1932 am_aux_dir=`cd $ac_aux_dir && pwd`
1934 if test x"${MISSING+set}" != xset; then
1935 case $am_aux_dir in
1936 *\ * | *\ *)
1937 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1939 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1940 esac
1942 # Use eval to expand $SHELL
1943 if eval "$MISSING --run true"; then
1944 am_missing_run="$MISSING --run "
1945 else
1946 am_missing_run=
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1948 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1951 if test x"${install_sh}" != xset; then
1952 case $am_aux_dir in
1953 *\ * | *\ *)
1954 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1956 install_sh="\${SHELL} $am_aux_dir/install-sh"
1957 esac
1960 # Installed binaries are usually stripped using `strip' when the user
1961 # run `make install-strip'. However `strip' might not be the right
1962 # tool to use in cross-compilation environments, therefore Automake
1963 # will honor the `STRIP' environment variable to overrule this program.
1964 if test "$cross_compiling" != no; then
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}strip; ac_word=$2
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1969 $as_echo_n "checking for $ac_word... " >&6; }
1970 if test "${ac_cv_prog_STRIP+set}" = set; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 if test -n "$STRIP"; then
1974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1987 done
1988 done
1989 IFS=$as_save_IFS
1993 STRIP=$ac_cv_prog_STRIP
1994 if test -n "$STRIP"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
1996 $as_echo "$STRIP" >&6; }
1997 else
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1999 $as_echo "no" >&6; }
2004 if test -z "$ac_cv_prog_STRIP"; then
2005 ac_ct_STRIP=$STRIP
2006 # Extract the first word of "strip", so it can be a program name with args.
2007 set dummy strip; ac_word=$2
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 if test -n "$ac_ct_STRIP"; then
2014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_STRIP="strip"
2024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2029 IFS=$as_save_IFS
2033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2034 if test -n "$ac_ct_STRIP"; then
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2036 $as_echo "$ac_ct_STRIP" >&6; }
2037 else
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2039 $as_echo "no" >&6; }
2042 if test "x$ac_ct_STRIP" = x; then
2043 STRIP=":"
2044 else
2045 case $cross_compiling:$ac_tool_warned in
2046 yes:)
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2049 ac_tool_warned=yes ;;
2050 esac
2051 STRIP=$ac_ct_STRIP
2053 else
2054 STRIP="$ac_cv_prog_STRIP"
2058 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2061 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2062 if test -z "$MKDIR_P"; then
2063 if test "${ac_cv_path_mkdir+set}" = set; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_prog in mkdir gmkdir; do
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2074 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2075 'mkdir (GNU coreutils) '* | \
2076 'mkdir (coreutils) '* | \
2077 'mkdir (fileutils) '4.1*)
2078 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2079 break 3;;
2080 esac
2081 done
2082 done
2083 done
2084 IFS=$as_save_IFS
2088 test -d ./--version && rmdir ./--version
2089 if test "${ac_cv_path_mkdir+set}" = set; then
2090 MKDIR_P="$ac_cv_path_mkdir -p"
2091 else
2092 # As a last resort, use the slow shell script. Don't cache a
2093 # value for MKDIR_P within a source directory, because that will
2094 # break other packages using the cache if that directory is
2095 # removed, or if the value is a relative name.
2096 MKDIR_P="$ac_install_sh -d"
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2100 $as_echo "$MKDIR_P" >&6; }
2102 mkdir_p="$MKDIR_P"
2103 case $mkdir_p in
2104 [\\/$]* | ?:[\\/]*) ;;
2105 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2106 esac
2108 for ac_prog in gawk mawk nawk awk
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_AWK+set}" = set; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test -n "$AWK"; then
2118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_AWK="$ac_prog"
2128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 AWK=$ac_cv_prog_AWK
2138 if test -n "$AWK"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2140 $as_echo "$AWK" >&6; }
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 $as_echo "no" >&6; }
2147 test -n "$AWK" && break
2148 done
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2151 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2152 set x ${MAKE-make}
2153 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2154 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 cat >conftest.make <<\_ACEOF
2158 SHELL = /bin/sh
2159 all:
2160 @echo '@@@%%%=$(MAKE)=@@@%%%'
2161 _ACEOF
2162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2164 *@@@%%%=?*=@@@%%%*)
2165 eval ac_cv_prog_make_${ac_make}_set=yes;;
2167 eval ac_cv_prog_make_${ac_make}_set=no;;
2168 esac
2169 rm -f conftest.make
2171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2173 $as_echo "yes" >&6; }
2174 SET_MAKE=
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2177 $as_echo "no" >&6; }
2178 SET_MAKE="MAKE=${MAKE-make}"
2181 rm -rf .tst 2>/dev/null
2182 mkdir .tst 2>/dev/null
2183 if test -d .tst; then
2184 am__leading_dot=.
2185 else
2186 am__leading_dot=_
2188 rmdir .tst 2>/dev/null
2190 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2192 # is not polluted with repeated "-I."
2193 am__isrc=' -I$(srcdir)'
2194 # test to see if srcdir already configured
2195 if test -f $srcdir/config.status; then
2196 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2200 # test whether we have cygpath
2201 if test -z "$CYGPATH_W"; then
2202 if (cygpath --version) >/dev/null 2>/dev/null; then
2203 CYGPATH_W='cygpath -w'
2204 else
2205 CYGPATH_W=echo
2210 # Define the identity of the package.
2211 PACKAGE='mingw-w64'
2212 VERSION='1.0b'
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE "$PACKAGE"
2217 _ACEOF
2220 cat >>confdefs.h <<_ACEOF
2221 #define VERSION "$VERSION"
2222 _ACEOF
2224 # Some tools Automake needs.
2226 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2229 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2232 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2235 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2238 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2240 # We need awk for the "check" target. The system "awk" is bad on
2241 # some platforms.
2242 # Always define AMTAR for backward compatibility.
2244 AMTAR=${AMTAR-"${am_missing_run}tar"}
2246 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2253 # Make sure we can run config.sub.
2254 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2258 $as_echo_n "checking build system type... " >&6; }
2259 if test "${ac_cv_build+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 ac_build_alias=$build_alias
2263 test "x$ac_build_alias" = x &&
2264 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2265 test "x$ac_build_alias" = x &&
2266 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2267 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2268 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2272 $as_echo "$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2276 esac
2277 build=$ac_cv_build
2278 ac_save_IFS=$IFS; IFS='-'
2279 set x $ac_cv_build
2280 shift
2281 build_cpu=$1
2282 build_vendor=$2
2283 shift; shift
2284 # Remember, the first character of IFS is used to create $*,
2285 # except with old shells:
2286 build_os=$*
2287 IFS=$ac_save_IFS
2288 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298 else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2327 # Checks for programs.
2329 # Checks for libraries.
2331 # Checks for header files.
2333 # Checks for typedefs, structures, and compiler characteristics.
2335 # Checks for library functions.
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the headers" >&5
2338 $as_echo_n "checking whether to build the headers... " >&6; }
2340 # Check whether --with-headers was given.
2341 if test "${with_headers+set}" = set; then :
2342 withval=$with_headers;
2343 else
2344 with_headers=yes
2349 case $with_headers in #(
2350 yes) :
2351 subdirs="$subdirs mingw-w64-headers"
2352 ;; #(
2353 no) :
2354 ;; #(
2355 *) :
2356 as_fn_error "Invalid argument to --with-headers: $with_headers" "$LINENO" 5 ;;
2357 esac
2358 if test "x$with_headers" = xyes; then
2359 HEADER_TRUE=
2360 HEADER_FALSE='#'
2361 else
2362 HEADER_TRUE='#'
2363 HEADER_FALSE=
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_headers" >&5
2367 $as_echo "$with_headers" >&6; }
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the crt" >&5
2370 $as_echo_n "checking whether to build the crt... " >&6; }
2372 # Check whether --with-crt was given.
2373 if test "${with_crt+set}" = set; then :
2374 withval=$with_crt;
2375 else
2376 with_crt=yes
2379 case $with_crt in #(
2380 yes) :
2381 subdirs="$subdirs mingw-w64-crt"
2382 ;; #(
2383 no) :
2384 ;; #(
2385 *) :
2386 as_fn_error "Invalid argument to --with-crt: $with_crt" "$LINENO" 5 ;;
2387 esac
2388 if test "x$with_crt" = xyes; then
2389 CRT_TRUE=
2390 CRT_FALSE='#'
2391 else
2392 CRT_TRUE='#'
2393 CRT_FALSE=
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_crt" >&5
2397 $as_echo "$with_crt" >&6; }
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional libraries" >&5
2400 $as_echo_n "checking whether to build the optional libraries... " >&6; }
2402 # Check whether --with-libraries was given.
2403 if test "${with_libraries+set}" = set; then :
2404 withval=$with_libraries;
2405 else
2406 with_libraries=no
2409 case $with_libraries in #(
2410 yes|all) :
2412 with_libraries="libmangle,pseh"
2413 with_libraries_mangle=yes
2414 with_libraries_pseh=yes ;; #(
2415 libmangle) :
2417 with_libraries="libmangle"
2418 with_libraries_mangle=yes
2419 with_libraries_pseh=no ;; #(
2420 pseh) :
2422 with_libraries="pseh"
2423 with_libraries_mangle=no
2424 with_libraries_pseh=yes ;; #(
2425 no) :
2427 with_libraries_mangle=no
2428 with_libraries_pseh=no ;; #(
2429 *) :
2430 as_fn_error "Invalid argument to --with-libraries: $with_libraries" "$LINENO" 5 ;;
2431 esac
2432 if test "x$with_libraries_mangle" = xyes; then
2433 LIBRARIES_MANGLE_TRUE=
2434 LIBRARIES_MANGLE_FALSE='#'
2435 else
2436 LIBRARIES_MANGLE_TRUE='#'
2437 LIBRARIES_MANGLE_FALSE=
2440 if test "x$with_libraries_pseh" = xyes; then
2441 LIBRARIES_PSEH_TRUE=
2442 LIBRARIES_PSEH_FALSE='#'
2443 else
2444 LIBRARIES_PSEH_TRUE='#'
2445 LIBRARIES_PSEH_FALSE=
2448 if test "x$with_libraries_mangle" = xyes; then
2449 subdirs="$subdirs mingw-w64-libraries/libmangle"
2452 if test "x$with_libraries_pseh" = xyes; then
2453 subdirs="$subdirs mingw-w64-libraries/pseh"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libraries" >&5
2457 $as_echo "$with_libraries" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional tools" >&5
2460 $as_echo_n "checking whether to build the optional tools... " >&6; }
2462 # Check whether --with-tools was given.
2463 if test "${with_tools+set}" = set; then :
2464 withval=$with_tools;
2465 else
2466 with_tools=no
2469 case $with_tools in #(
2470 yes|all) :
2472 with_tools="gendef,genidl"
2473 with_tools_gendef=yes
2474 with_tools_genidl=yes ;; #(
2475 gendef) :
2477 with_tools="gendef"
2478 with_tools_gendef=yes
2479 with_tools_genidl=no ;; #(
2480 genidl) :
2482 with_tools="genidl"
2483 with_tools_gendef=no
2484 with_tools_genidl=yes ;; #(
2485 no) :
2487 with_tools_gendef=no
2488 with_tools_genidl=no ;; #(
2489 *) :
2490 as_fn_error "Invalid argument to --with-tools: $with_tools" "$LINENO" 5 ;;
2491 esac
2492 if test "x$with_tools_gendef" = xyes; then
2493 TOOLS_GENDEF_TRUE=
2494 TOOLS_GENDEF_FALSE='#'
2495 else
2496 TOOLS_GENDEF_TRUE='#'
2497 TOOLS_GENDEF_FALSE=
2500 if test "x$with_tools_genidl" = xyes; then
2501 TOOLS_GENIDL_TRUE=
2502 TOOLS_GENIDL_FALSE='#'
2503 else
2504 TOOLS_GENIDL_TRUE='#'
2505 TOOLS_GENIDL_FALSE=
2508 if test "x$with_tools_gendef" = xyes; then
2509 subdirs="$subdirs mingw-w64-tools/gendef"
2512 if test "x$with_tools_genidl" = xyes; then
2513 subdirs="$subdirs mingw-w64-tools/genidl"
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tools" >&5
2517 $as_echo "$with_tools" >&6; }
2519 ac_config_files="$ac_config_files Makefile"
2521 cat >confcache <<\_ACEOF
2522 # This file is a shell script that caches the results of configure
2523 # tests run on this system so they can be shared between configure
2524 # scripts and configure runs, see configure's option --config-cache.
2525 # It is not useful on other systems. If it contains results you don't
2526 # want to keep, you may remove or edit it.
2528 # config.status only pays attention to the cache file if you give it
2529 # the --recheck option to rerun configure.
2531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2533 # following values.
2535 _ACEOF
2537 # The following way of writing the cache mishandles newlines in values,
2538 # but we know of no workaround that is simple, portable, and efficient.
2539 # So, we kill variables containing newlines.
2540 # Ultrix sh set writes to stderr and can't be redirected directly,
2541 # and sets the high bit in the cache file unless we assign to the vars.
2543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2544 eval ac_val=\$$ac_var
2545 case $ac_val in #(
2546 *${as_nl}*)
2547 case $ac_var in #(
2548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550 esac
2551 case $ac_var in #(
2552 _ | IFS | as_nl) ;; #(
2553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554 *) { eval $ac_var=; unset $ac_var;} ;;
2555 esac ;;
2556 esac
2557 done
2559 (set) 2>&1 |
2560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2561 *${as_nl}ac_space=\ *)
2562 # `set' does not quote correctly, so add quotes: double-quote
2563 # substitution turns \\\\ into \\, and sed turns \\ into \.
2564 sed -n \
2565 "s/'/'\\\\''/g;
2566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2567 ;; #(
2569 # `set' quotes correctly as required by POSIX, so do not add quotes.
2570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2572 esac |
2573 sort
2575 sed '
2576 /^ac_cv_env_/b end
2577 t clear
2578 :clear
2579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2580 t end
2581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2582 :end' >>confcache
2583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2584 if test -w "$cache_file"; then
2585 test "x$cache_file" != "x/dev/null" &&
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2587 $as_echo "$as_me: updating cache $cache_file" >&6;}
2588 cat confcache >$cache_file
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2594 rm -f confcache
2596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2597 # Let make expand exec_prefix.
2598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2600 DEFS=-DHAVE_CONFIG_H
2602 ac_libobjs=
2603 ac_ltlibobjs=
2604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2605 # 1. Remove the extension, and $U if already installed.
2606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2609 # will be set to the directory where LIBOBJS objects are built.
2610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2612 done
2613 LIBOBJS=$ac_libobjs
2615 LTLIBOBJS=$ac_ltlibobjs
2618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
2619 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
2620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2623 if test -z "${HEADER_TRUE}" && test -z "${HEADER_FALSE}"; then
2624 as_fn_error "conditional \"HEADER\" was never defined.
2625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2627 if test -z "${CRT_TRUE}" && test -z "${CRT_FALSE}"; then
2628 as_fn_error "conditional \"CRT\" was never defined.
2629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2631 if test -z "${LIBRARIES_MANGLE_TRUE}" && test -z "${LIBRARIES_MANGLE_FALSE}"; then
2632 as_fn_error "conditional \"LIBRARIES_MANGLE\" was never defined.
2633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2635 if test -z "${LIBRARIES_PSEH_TRUE}" && test -z "${LIBRARIES_PSEH_FALSE}"; then
2636 as_fn_error "conditional \"LIBRARIES_PSEH\" was never defined.
2637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2639 if test -z "${TOOLS_GENDEF_TRUE}" && test -z "${TOOLS_GENDEF_FALSE}"; then
2640 as_fn_error "conditional \"TOOLS_GENDEF\" was never defined.
2641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2643 if test -z "${TOOLS_GENIDL_TRUE}" && test -z "${TOOLS_GENIDL_FALSE}"; then
2644 as_fn_error "conditional \"TOOLS_GENIDL\" was never defined.
2645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2648 : ${CONFIG_STATUS=./config.status}
2649 ac_write_fail=0
2650 ac_clean_files_save=$ac_clean_files
2651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2654 as_write_fail=0
2655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2656 #! $SHELL
2657 # Generated by $as_me.
2658 # Run this file to recreate the current configuration.
2659 # Compiler output produced by configure, useful for debugging
2660 # configure, is in config.log if it exists.
2662 debug=false
2663 ac_cs_recheck=false
2664 ac_cs_silent=false
2666 SHELL=\${CONFIG_SHELL-$SHELL}
2667 export SHELL
2668 _ASEOF
2669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2670 ## -------------------- ##
2671 ## M4sh Initialization. ##
2672 ## -------------------- ##
2674 # Be more Bourne compatible
2675 DUALCASE=1; export DUALCASE # for MKS sh
2676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2677 emulate sh
2678 NULLCMD=:
2679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2680 # is contrary to our usage. Disable this feature.
2681 alias -g '${1+"$@"}'='"$@"'
2682 setopt NO_GLOB_SUBST
2683 else
2684 case `(set -o) 2>/dev/null` in #(
2685 *posix*) :
2686 set -o posix ;; #(
2687 *) :
2689 esac
2693 as_nl='
2695 export as_nl
2696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2700 # Prefer a ksh shell builtin over an external printf program on Solaris,
2701 # but without wasting forks for bash or zsh.
2702 if test -z "$BASH_VERSION$ZSH_VERSION" \
2703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2704 as_echo='print -r --'
2705 as_echo_n='print -rn --'
2706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2707 as_echo='printf %s\n'
2708 as_echo_n='printf %s'
2709 else
2710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2712 as_echo_n='/usr/ucb/echo -n'
2713 else
2714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2715 as_echo_n_body='eval
2716 arg=$1;
2717 case $arg in #(
2718 *"$as_nl"*)
2719 expr "X$arg" : "X\\(.*\\)$as_nl";
2720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2721 esac;
2722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2724 export as_echo_n_body
2725 as_echo_n='sh -c $as_echo_n_body as_echo'
2727 export as_echo_body
2728 as_echo='sh -c $as_echo_body as_echo'
2731 # The user is always right.
2732 if test "${PATH_SEPARATOR+set}" != set; then
2733 PATH_SEPARATOR=:
2734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2736 PATH_SEPARATOR=';'
2741 # IFS
2742 # We need space, tab and new line, in precisely that order. Quoting is
2743 # there to prevent editors from complaining about space-tab.
2744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2745 # splitting by setting IFS to empty value.)
2746 IFS=" "" $as_nl"
2748 # Find who we are. Look in the path if we contain no directory separator.
2749 case $0 in #((
2750 *[\\/]* ) as_myself=$0 ;;
2751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2757 done
2758 IFS=$as_save_IFS
2761 esac
2762 # We did not find ourselves, most probably we were run as `sh COMMAND'
2763 # in which case we are not to be found in the path.
2764 if test "x$as_myself" = x; then
2765 as_myself=$0
2767 if test ! -f "$as_myself"; then
2768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2769 exit 1
2772 # Unset variables that we do not need and which cause bugs (e.g. in
2773 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2774 # suppresses any "Segmentation fault" message there. '((' could
2775 # trigger a bug in pdksh 5.2.14.
2776 for as_var in BASH_ENV ENV MAIL MAILPATH
2777 do eval test x\${$as_var+set} = xset \
2778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2779 done
2780 PS1='$ '
2781 PS2='> '
2782 PS4='+ '
2784 # NLS nuisances.
2785 LC_ALL=C
2786 export LC_ALL
2787 LANGUAGE=C
2788 export LANGUAGE
2790 # CDPATH.
2791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2794 # as_fn_error ERROR [LINENO LOG_FD]
2795 # ---------------------------------
2796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2798 # script with status $?, using 1 if that was 0.
2799 as_fn_error ()
2801 as_status=$?; test $as_status -eq 0 && as_status=1
2802 if test "$3"; then
2803 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2806 $as_echo "$as_me: error: $1" >&2
2807 as_fn_exit $as_status
2808 } # as_fn_error
2811 # as_fn_set_status STATUS
2812 # -----------------------
2813 # Set $? to STATUS, without forking.
2814 as_fn_set_status ()
2816 return $1
2817 } # as_fn_set_status
2819 # as_fn_exit STATUS
2820 # -----------------
2821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2822 as_fn_exit ()
2824 set +e
2825 as_fn_set_status $1
2826 exit $1
2827 } # as_fn_exit
2829 # as_fn_unset VAR
2830 # ---------------
2831 # Portably unset VAR.
2832 as_fn_unset ()
2834 { eval $1=; unset $1;}
2836 as_unset=as_fn_unset
2837 # as_fn_append VAR VALUE
2838 # ----------------------
2839 # Append the text in VALUE to the end of the definition contained in VAR. Take
2840 # advantage of any shell optimizations that allow amortized linear growth over
2841 # repeated appends, instead of the typical quadratic growth present in naive
2842 # implementations.
2843 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2844 eval 'as_fn_append ()
2846 eval $1+=\$2
2848 else
2849 as_fn_append ()
2851 eval $1=\$$1\$2
2853 fi # as_fn_append
2855 # as_fn_arith ARG...
2856 # ------------------
2857 # Perform arithmetic evaluation on the ARGs, and store the result in the
2858 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2859 # must be portable across $(()) and expr.
2860 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2861 eval 'as_fn_arith ()
2863 as_val=$(( $* ))
2865 else
2866 as_fn_arith ()
2868 as_val=`expr "$@" || test $? -eq 1`
2870 fi # as_fn_arith
2873 if expr a : '\(a\)' >/dev/null 2>&1 &&
2874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2875 as_expr=expr
2876 else
2877 as_expr=false
2880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2881 as_basename=basename
2882 else
2883 as_basename=false
2886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2887 as_dirname=dirname
2888 else
2889 as_dirname=false
2892 as_me=`$as_basename -- "$0" ||
2893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2894 X"$0" : 'X\(//\)$' \| \
2895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2896 $as_echo X/"$0" |
2897 sed '/^.*\/\([^/][^/]*\)\/*$/{
2898 s//\1/
2901 /^X\/\(\/\/\)$/{
2902 s//\1/
2905 /^X\/\(\/\).*/{
2906 s//\1/
2909 s/.*/./; q'`
2911 # Avoid depending upon Character Ranges.
2912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2915 as_cr_digits='0123456789'
2916 as_cr_alnum=$as_cr_Letters$as_cr_digits
2918 ECHO_C= ECHO_N= ECHO_T=
2919 case `echo -n x` in #(((((
2920 -n*)
2921 case `echo 'xy\c'` in
2922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2923 xy) ECHO_C='\c';;
2924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2925 ECHO_T=' ';;
2926 esac;;
2928 ECHO_N='-n';;
2929 esac
2931 rm -f conf$$ conf$$.exe conf$$.file
2932 if test -d conf$$.dir; then
2933 rm -f conf$$.dir/conf$$.file
2934 else
2935 rm -f conf$$.dir
2936 mkdir conf$$.dir 2>/dev/null
2938 if (echo >conf$$.file) 2>/dev/null; then
2939 if ln -s conf$$.file conf$$ 2>/dev/null; then
2940 as_ln_s='ln -s'
2941 # ... but there are two gotchas:
2942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2944 # In both cases, we have to default to `cp -p'.
2945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2946 as_ln_s='cp -p'
2947 elif ln conf$$.file conf$$ 2>/dev/null; then
2948 as_ln_s=ln
2949 else
2950 as_ln_s='cp -p'
2952 else
2953 as_ln_s='cp -p'
2955 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2956 rmdir conf$$.dir 2>/dev/null
2959 # as_fn_mkdir_p
2960 # -------------
2961 # Create "$as_dir" as a directory, including parents if necessary.
2962 as_fn_mkdir_p ()
2965 case $as_dir in #(
2966 -*) as_dir=./$as_dir;;
2967 esac
2968 test -d "$as_dir" || eval $as_mkdir_p || {
2969 as_dirs=
2970 while :; do
2971 case $as_dir in #(
2972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2973 *) as_qdir=$as_dir;;
2974 esac
2975 as_dirs="'$as_qdir' $as_dirs"
2976 as_dir=`$as_dirname -- "$as_dir" ||
2977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2978 X"$as_dir" : 'X\(//\)[^/]' \| \
2979 X"$as_dir" : 'X\(//\)$' \| \
2980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2981 $as_echo X"$as_dir" |
2982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2983 s//\1/
2986 /^X\(\/\/\)[^/].*/{
2987 s//\1/
2990 /^X\(\/\/\)$/{
2991 s//\1/
2994 /^X\(\/\).*/{
2995 s//\1/
2998 s/.*/./; q'`
2999 test -d "$as_dir" && break
3000 done
3001 test -z "$as_dirs" || eval "mkdir $as_dirs"
3002 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3005 } # as_fn_mkdir_p
3006 if mkdir -p . 2>/dev/null; then
3007 as_mkdir_p='mkdir -p "$as_dir"'
3008 else
3009 test -d ./-p && rmdir ./-p
3010 as_mkdir_p=false
3013 if test -x / >/dev/null 2>&1; then
3014 as_test_x='test -x'
3015 else
3016 if ls -dL / >/dev/null 2>&1; then
3017 as_ls_L_option=L
3018 else
3019 as_ls_L_option=
3021 as_test_x='
3022 eval sh -c '\''
3023 if test -d "$1"; then
3024 test -d "$1/.";
3025 else
3026 case $1 in #(
3027 -*)set "./$1";;
3028 esac;
3029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3030 ???[sx]*):;;*)false;;esac;fi
3031 '\'' sh
3034 as_executable_p=$as_test_x
3036 # Sed expression to map a string onto a valid CPP name.
3037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3039 # Sed expression to map a string onto a valid variable name.
3040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3043 exec 6>&1
3044 ## ----------------------------------- ##
3045 ## Main body of $CONFIG_STATUS script. ##
3046 ## ----------------------------------- ##
3047 _ASEOF
3048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3051 # Save the log message, to keep $0 and so on meaningful, and to
3052 # report actual input values of CONFIG_FILES etc. instead of their
3053 # values after options handling.
3054 ac_log="
3055 This file was extended by mingw-w64 $as_me 1.0b, which was
3056 generated by GNU Autoconf 2.65. Invocation command line was
3058 CONFIG_FILES = $CONFIG_FILES
3059 CONFIG_HEADERS = $CONFIG_HEADERS
3060 CONFIG_LINKS = $CONFIG_LINKS
3061 CONFIG_COMMANDS = $CONFIG_COMMANDS
3062 $ $0 $@
3064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3067 _ACEOF
3069 case $ac_config_files in *"
3070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3071 esac
3073 case $ac_config_headers in *"
3074 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3075 esac
3078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3079 # Files that config.status was made for.
3080 config_files="$ac_config_files"
3081 config_headers="$ac_config_headers"
3083 _ACEOF
3085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3086 ac_cs_usage="\
3087 \`$as_me' instantiates files and other configuration actions
3088 from templates according to the current configuration. Unless the files
3089 and actions are specified as TAGs, all are instantiated by default.
3091 Usage: $0 [OPTION]... [TAG]...
3093 -h, --help print this help, then exit
3094 -V, --version print version number and configuration settings, then exit
3095 --config print configuration, then exit
3096 -q, --quiet, --silent
3097 do not print progress messages
3098 -d, --debug don't remove temporary files
3099 --recheck update $as_me by reconfiguring in the same conditions
3100 --file=FILE[:TEMPLATE]
3101 instantiate the configuration file FILE
3102 --header=FILE[:TEMPLATE]
3103 instantiate the configuration header FILE
3105 Configuration files:
3106 $config_files
3108 Configuration headers:
3109 $config_headers
3111 Report bugs to <mingw-w64-public@lists.sourceforge.net>."
3113 _ACEOF
3114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3115 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3116 ac_cs_version="\\
3117 mingw-w64 config.status 1.0b
3118 configured by $0, generated by GNU Autoconf 2.65,
3119 with options \\"\$ac_cs_config\\"
3121 Copyright (C) 2009 Free Software Foundation, Inc.
3122 This config.status script is free software; the Free Software Foundation
3123 gives unlimited permission to copy, distribute and modify it."
3125 ac_pwd='$ac_pwd'
3126 srcdir='$srcdir'
3127 INSTALL='$INSTALL'
3128 MKDIR_P='$MKDIR_P'
3129 AWK='$AWK'
3130 test -n "\$AWK" || AWK=awk
3131 _ACEOF
3133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3134 # The default lists apply if the user does not specify any file.
3135 ac_need_defaults=:
3136 while test $# != 0
3138 case $1 in
3139 --*=*)
3140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3141 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3142 ac_shift=:
3145 ac_option=$1
3146 ac_optarg=$2
3147 ac_shift=shift
3149 esac
3151 case $ac_option in
3152 # Handling of the options.
3153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3154 ac_cs_recheck=: ;;
3155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3156 $as_echo "$ac_cs_version"; exit ;;
3157 --config | --confi | --conf | --con | --co | --c )
3158 $as_echo "$ac_cs_config"; exit ;;
3159 --debug | --debu | --deb | --de | --d | -d )
3160 debug=: ;;
3161 --file | --fil | --fi | --f )
3162 $ac_shift
3163 case $ac_optarg in
3164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3165 esac
3166 as_fn_append CONFIG_FILES " '$ac_optarg'"
3167 ac_need_defaults=false;;
3168 --header | --heade | --head | --hea )
3169 $ac_shift
3170 case $ac_optarg in
3171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3172 esac
3173 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3174 ac_need_defaults=false;;
3175 --he | --h)
3176 # Conflict between --help and --header
3177 as_fn_error "ambiguous option: \`$1'
3178 Try \`$0 --help' for more information.";;
3179 --help | --hel | -h )
3180 $as_echo "$ac_cs_usage"; exit ;;
3181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3183 ac_cs_silent=: ;;
3185 # This is an error.
3186 -*) as_fn_error "unrecognized option: \`$1'
3187 Try \`$0 --help' for more information." ;;
3189 *) as_fn_append ac_config_targets " $1"
3190 ac_need_defaults=false ;;
3192 esac
3193 shift
3194 done
3196 ac_configure_extra_args=
3198 if $ac_cs_silent; then
3199 exec 6>/dev/null
3200 ac_configure_extra_args="$ac_configure_extra_args --silent"
3203 _ACEOF
3204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3205 if \$ac_cs_recheck; then
3206 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3207 shift
3208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3209 CONFIG_SHELL='$SHELL'
3210 export CONFIG_SHELL
3211 exec "\$@"
3214 _ACEOF
3215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3216 exec 5>>config.log
3218 echo
3219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3220 ## Running $as_me. ##
3221 _ASBOX
3222 $as_echo "$ac_log"
3223 } >&5
3225 _ACEOF
3226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3227 _ACEOF
3229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3231 # Handling of arguments.
3232 for ac_config_target in $ac_config_targets
3234 case $ac_config_target in
3235 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3238 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3239 esac
3240 done
3243 # If the user did not use the arguments to specify the items to instantiate,
3244 # then the envvar interface is used. Set only those that are not.
3245 # We use the long form for the default assignment because of an extremely
3246 # bizarre bug on SunOS 4.1.3.
3247 if $ac_need_defaults; then
3248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3252 # Have a temporary directory for convenience. Make it in the build tree
3253 # simply because there is no reason against having it here, and in addition,
3254 # creating and moving files from /tmp can sometimes cause problems.
3255 # Hook for its removal unless debugging.
3256 # Note that there is a small window in which the directory will not be cleaned:
3257 # after its creation but before its name has been assigned to `$tmp'.
3258 $debug ||
3260 tmp=
3261 trap 'exit_status=$?
3262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3264 trap 'as_fn_exit 1' 1 2 13 15
3266 # Create a (secure) tmp directory for tmp files.
3269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3270 test -n "$tmp" && test -d "$tmp"
3271 } ||
3273 tmp=./conf$$-$RANDOM
3274 (umask 077 && mkdir "$tmp")
3275 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3277 # Set up the scripts for CONFIG_FILES section.
3278 # No need to generate them if there are no CONFIG_FILES.
3279 # This happens for instance with `./config.status config.h'.
3280 if test -n "$CONFIG_FILES"; then
3283 ac_cr=`echo X | tr X '\015'`
3284 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3285 # But we know of no other shell where ac_cr would be empty at this
3286 # point, so we can use a bashism as a fallback.
3287 if test "x$ac_cr" = x; then
3288 eval ac_cr=\$\'\\r\'
3290 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3291 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3292 ac_cs_awk_cr='\r'
3293 else
3294 ac_cs_awk_cr=$ac_cr
3297 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3298 _ACEOF
3302 echo "cat >conf$$subs.awk <<_ACEOF" &&
3303 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3304 echo "_ACEOF"
3305 } >conf$$subs.sh ||
3306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3307 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3308 ac_delim='%!_!# '
3309 for ac_last_try in false false false false false :; do
3310 . ./conf$$subs.sh ||
3311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3313 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3314 if test $ac_delim_n = $ac_delim_num; then
3315 break
3316 elif $ac_last_try; then
3317 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3318 else
3319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3321 done
3322 rm -f conf$$subs.sh
3324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3325 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3326 _ACEOF
3327 sed -n '
3329 s/^/S["/; s/!.*/"]=/
3332 s/^[^!]*!//
3333 :repl
3334 t repl
3335 s/'"$ac_delim"'$//
3336 t delim
3339 s/\(.\{148\}\)..*/\1/
3340 t more1
3341 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3344 b repl
3345 :more1
3346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3349 s/.\{148\}//
3350 t nl
3351 :delim
3353 s/\(.\{148\}\)..*/\1/
3354 t more2
3355 s/["\\]/\\&/g; s/^/"/; s/$/"/
3358 :more2
3359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3362 s/.\{148\}//
3363 t delim
3364 ' <conf$$subs.awk | sed '
3365 /^[^""]/{
3367 s/\n//
3369 ' >>$CONFIG_STATUS || ac_write_fail=1
3370 rm -f conf$$subs.awk
3371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3372 _ACAWK
3373 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3374 for (key in S) S_is_set[key] = 1
3375 FS = "\a"
3379 line = $ 0
3380 nfields = split(line, field, "@")
3381 substed = 0
3382 len = length(field[1])
3383 for (i = 2; i < nfields; i++) {
3384 key = field[i]
3385 keylen = length(key)
3386 if (S_is_set[key]) {
3387 value = S[key]
3388 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3389 len += length(value) + length(field[++i])
3390 substed = 1
3391 } else
3392 len += 1 + keylen
3395 print line
3398 _ACAWK
3399 _ACEOF
3400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3401 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3403 else
3405 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3406 || as_fn_error "could not setup config files machinery" "$LINENO" 5
3407 _ACEOF
3409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3411 # trailing colons and then remove the whole line if VPATH becomes empty
3412 # (actually we leave an empty line to preserve line numbers).
3413 if test "x$srcdir" = x.; then
3414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3415 s/:*\$(srcdir):*/:/
3416 s/:*\${srcdir}:*/:/
3417 s/:*@srcdir@:*/:/
3418 s/^\([^=]*=[ ]*\):*/\1/
3419 s/:*$//
3420 s/^[^=]*=[ ]*$//
3424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3425 fi # test -n "$CONFIG_FILES"
3427 # Set up the scripts for CONFIG_HEADERS section.
3428 # No need to generate them if there are no CONFIG_HEADERS.
3429 # This happens for instance with `./config.status Makefile'.
3430 if test -n "$CONFIG_HEADERS"; then
3431 cat >"$tmp/defines.awk" <<\_ACAWK ||
3432 BEGIN {
3433 _ACEOF
3435 # Transform confdefs.h into an awk script `defines.awk', embedded as
3436 # here-document in config.status, that substitutes the proper values into
3437 # config.h.in to produce config.h.
3439 # Create a delimiter string that does not exist in confdefs.h, to ease
3440 # handling of long lines.
3441 ac_delim='%!_!# '
3442 for ac_last_try in false false :; do
3443 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
3444 if test -z "$ac_t"; then
3445 break
3446 elif $ac_last_try; then
3447 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
3448 else
3449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3451 done
3453 # For the awk script, D is an array of macro values keyed by name,
3454 # likewise P contains macro parameters if any. Preserve backslash
3455 # newline sequences.
3457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3458 sed -n '
3459 s/.\{148\}/&'"$ac_delim"'/g
3460 t rset
3461 :rset
3462 s/^[ ]*#[ ]*define[ ][ ]*/ /
3463 t def
3465 :def
3466 s/\\$//
3467 t bsnl
3468 s/["\\]/\\&/g
3469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3470 D["\1"]=" \3"/p
3471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
3473 :bsnl
3474 s/["\\]/\\&/g
3475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3476 D["\1"]=" \3\\\\\\n"\\/p
3477 t cont
3478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3479 t cont
3481 :cont
3483 s/.\{148\}/&'"$ac_delim"'/g
3484 t clear
3485 :clear
3486 s/\\$//
3487 t bsnlc
3488 s/["\\]/\\&/g; s/^/"/; s/$/"/p
3490 :bsnlc
3491 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3492 b cont
3493 ' <confdefs.h | sed '
3494 s/'"$ac_delim"'/"\\\
3495 "/g' >>$CONFIG_STATUS || ac_write_fail=1
3497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3498 for (key in D) D_is_set[key] = 1
3499 FS = "\a"
3501 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
3502 line = \$ 0
3503 split(line, arg, " ")
3504 if (arg[1] == "#") {
3505 defundef = arg[2]
3506 mac1 = arg[3]
3507 } else {
3508 defundef = substr(arg[1], 2)
3509 mac1 = arg[2]
3511 split(mac1, mac2, "(") #)
3512 macro = mac2[1]
3513 prefix = substr(line, 1, index(line, defundef) - 1)
3514 if (D_is_set[macro]) {
3515 # Preserve the white space surrounding the "#".
3516 print prefix "define", macro P[macro] D[macro]
3517 next
3518 } else {
3519 # Replace #undef with comments. This is necessary, for example,
3520 # in the case of _POSIX_SOURCE, which is predefined and required
3521 # on some systems where configure will not decide to define it.
3522 if (defundef == "undef") {
3523 print "/*", prefix defundef, macro, "*/"
3524 next
3528 { print }
3529 _ACAWK
3530 _ACEOF
3531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3532 as_fn_error "could not setup config headers machinery" "$LINENO" 5
3533 fi # test -n "$CONFIG_HEADERS"
3536 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
3537 shift
3538 for ac_tag
3540 case $ac_tag in
3541 :[FHLC]) ac_mode=$ac_tag; continue;;
3542 esac
3543 case $ac_mode$ac_tag in
3544 :[FHL]*:*);;
3545 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3546 :[FH]-) ac_tag=-:-;;
3547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3548 esac
3549 ac_save_IFS=$IFS
3550 IFS=:
3551 set x $ac_tag
3552 IFS=$ac_save_IFS
3553 shift
3554 ac_file=$1
3555 shift
3557 case $ac_mode in
3558 :L) ac_source=$1;;
3559 :[FH])
3560 ac_file_inputs=
3561 for ac_f
3563 case $ac_f in
3564 -) ac_f="$tmp/stdin";;
3565 *) # Look for the file first in the build tree, then in the source tree
3566 # (if the path is not absolute). The absolute path cannot be DOS-style,
3567 # because $ac_f cannot contain `:'.
3568 test -f "$ac_f" ||
3569 case $ac_f in
3570 [\\/$]*) false;;
3571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3572 esac ||
3573 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3574 esac
3575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3576 as_fn_append ac_file_inputs " '$ac_f'"
3577 done
3579 # Let's still pretend it is `configure' which instantiates (i.e., don't
3580 # use $as_me), people would be surprised to read:
3581 # /* config.h. Generated by config.status. */
3582 configure_input='Generated from '`
3583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3584 `' by configure.'
3585 if test x"$ac_file" != x-; then
3586 configure_input="$ac_file. $configure_input"
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3588 $as_echo "$as_me: creating $ac_file" >&6;}
3590 # Neutralize special characters interpreted by sed in replacement strings.
3591 case $configure_input in #(
3592 *\&* | *\|* | *\\* )
3593 ac_sed_conf_input=`$as_echo "$configure_input" |
3594 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3595 *) ac_sed_conf_input=$configure_input;;
3596 esac
3598 case $ac_tag in
3599 *:-:* | *:-) cat >"$tmp/stdin" \
3600 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3601 esac
3603 esac
3605 ac_dir=`$as_dirname -- "$ac_file" ||
3606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3607 X"$ac_file" : 'X\(//\)[^/]' \| \
3608 X"$ac_file" : 'X\(//\)$' \| \
3609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3610 $as_echo X"$ac_file" |
3611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3612 s//\1/
3615 /^X\(\/\/\)[^/].*/{
3616 s//\1/
3619 /^X\(\/\/\)$/{
3620 s//\1/
3623 /^X\(\/\).*/{
3624 s//\1/
3627 s/.*/./; q'`
3628 as_dir="$ac_dir"; as_fn_mkdir_p
3629 ac_builddir=.
3631 case "$ac_dir" in
3632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3635 # A ".." for each directory in $ac_dir_suffix.
3636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3637 case $ac_top_builddir_sub in
3638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3640 esac ;;
3641 esac
3642 ac_abs_top_builddir=$ac_pwd
3643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3644 # for backward compatibility:
3645 ac_top_builddir=$ac_top_build_prefix
3647 case $srcdir in
3648 .) # We are building in place.
3649 ac_srcdir=.
3650 ac_top_srcdir=$ac_top_builddir_sub
3651 ac_abs_top_srcdir=$ac_pwd ;;
3652 [\\/]* | ?:[\\/]* ) # Absolute name.
3653 ac_srcdir=$srcdir$ac_dir_suffix;
3654 ac_top_srcdir=$srcdir
3655 ac_abs_top_srcdir=$srcdir ;;
3656 *) # Relative name.
3657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3658 ac_top_srcdir=$ac_top_build_prefix$srcdir
3659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3660 esac
3661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3664 case $ac_mode in
3667 # CONFIG_FILE
3670 case $INSTALL in
3671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3673 esac
3674 ac_MKDIR_P=$MKDIR_P
3675 case $MKDIR_P in
3676 [\\/$]* | ?:[\\/]* ) ;;
3677 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
3678 esac
3679 _ACEOF
3681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3682 # If the template does not know about datarootdir, expand it.
3683 # FIXME: This hack should be removed a few years after 2.60.
3684 ac_datarootdir_hack=; ac_datarootdir_seen=
3685 ac_sed_dataroot='
3686 /datarootdir/ {
3690 /@datadir@/p
3691 /@docdir@/p
3692 /@infodir@/p
3693 /@localedir@/p
3694 /@mandir@/p'
3695 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3696 *datarootdir*) ac_datarootdir_seen=yes;;
3697 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3699 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3700 _ACEOF
3701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3702 ac_datarootdir_hack='
3703 s&@datadir@&$datadir&g
3704 s&@docdir@&$docdir&g
3705 s&@infodir@&$infodir&g
3706 s&@localedir@&$localedir&g
3707 s&@mandir@&$mandir&g
3708 s&\\\${datarootdir}&$datarootdir&g' ;;
3709 esac
3710 _ACEOF
3712 # Neutralize VPATH when `$srcdir' = `.'.
3713 # Shell code in configure.ac might set extrasub.
3714 # FIXME: do we really want to maintain this feature?
3715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3716 ac_sed_extra="$ac_vpsub
3717 $extrasub
3718 _ACEOF
3719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3722 s|@configure_input@|$ac_sed_conf_input|;t t
3723 s&@top_builddir@&$ac_top_builddir_sub&;t t
3724 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3725 s&@srcdir@&$ac_srcdir&;t t
3726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3727 s&@top_srcdir@&$ac_top_srcdir&;t t
3728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3729 s&@builddir@&$ac_builddir&;t t
3730 s&@abs_builddir@&$ac_abs_builddir&;t t
3731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3732 s&@INSTALL@&$ac_INSTALL&;t t
3733 s&@MKDIR_P@&$ac_MKDIR_P&;t t
3734 $ac_datarootdir_hack
3736 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3737 || as_fn_error "could not create $ac_file" "$LINENO" 5
3739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3743 which seems to be undefined. Please make sure it is defined." >&5
3744 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3745 which seems to be undefined. Please make sure it is defined." >&2;}
3747 rm -f "$tmp/stdin"
3748 case $ac_file in
3749 -) cat "$tmp/out" && rm -f "$tmp/out";;
3750 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3751 esac \
3752 || as_fn_error "could not create $ac_file" "$LINENO" 5
3756 # CONFIG_HEADER
3758 if test x"$ac_file" != x-; then
3760 $as_echo "/* $configure_input */" \
3761 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
3762 } >"$tmp/config.h" \
3763 || as_fn_error "could not create $ac_file" "$LINENO" 5
3764 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3766 $as_echo "$as_me: $ac_file is unchanged" >&6;}
3767 else
3768 rm -f "$ac_file"
3769 mv "$tmp/config.h" "$ac_file" \
3770 || as_fn_error "could not create $ac_file" "$LINENO" 5
3772 else
3773 $as_echo "/* $configure_input */" \
3774 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
3775 || as_fn_error "could not create -" "$LINENO" 5
3777 # Compute "$ac_file"'s index in $config_headers.
3778 _am_arg="$ac_file"
3779 _am_stamp_count=1
3780 for _am_header in $config_headers :; do
3781 case $_am_header in
3782 $_am_arg | $_am_arg:* )
3783 break ;;
3785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
3786 esac
3787 done
3788 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
3789 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3790 X"$_am_arg" : 'X\(//\)[^/]' \| \
3791 X"$_am_arg" : 'X\(//\)$' \| \
3792 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
3793 $as_echo X"$_am_arg" |
3794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3795 s//\1/
3798 /^X\(\/\/\)[^/].*/{
3799 s//\1/
3802 /^X\(\/\/\)$/{
3803 s//\1/
3806 /^X\(\/\).*/{
3807 s//\1/
3810 s/.*/./; q'`/stamp-h$_am_stamp_count
3814 esac
3816 done # for ac_tag
3819 as_fn_exit 0
3820 _ACEOF
3821 ac_clean_files=$ac_clean_files_save
3823 test $ac_write_fail = 0 ||
3824 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
3827 # configure is writing to config.log, and then calls config.status.
3828 # config.status does its own redirection, appending to config.log.
3829 # Unfortunately, on DOS this fails, as config.log is still kept open
3830 # by configure, so config.status won't be able to write to it; its
3831 # output is simply discarded. So we exec the FD to /dev/null,
3832 # effectively closing config.log, so it can be properly (re)opened and
3833 # appended to by config.status. When coming back to configure, we
3834 # need to make the FD available again.
3835 if test "$no_create" != yes; then
3836 ac_cs_success=:
3837 ac_config_status_args=
3838 test "$silent" = yes &&
3839 ac_config_status_args="$ac_config_status_args --quiet"
3840 exec 5>/dev/null
3841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3842 exec 5>>config.log
3843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3844 # would make configure fail if this is the last instruction.
3845 $ac_cs_success || as_fn_exit $?
3849 # CONFIG_SUBDIRS section.
3851 if test "$no_recursion" != yes; then
3853 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
3854 # so they do not pile up.
3855 ac_sub_configure_args=
3856 ac_prev=
3857 eval "set x $ac_configure_args"
3858 shift
3859 for ac_arg
3861 if test -n "$ac_prev"; then
3862 ac_prev=
3863 continue
3865 case $ac_arg in
3866 -cache-file | --cache-file | --cache-fil | --cache-fi \
3867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3868 ac_prev=cache_file ;;
3869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
3871 | --c=*)
3873 --config-cache | -C)
3875 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3876 ac_prev=srcdir ;;
3877 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3879 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3880 ac_prev=prefix ;;
3881 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3883 --disable-option-checking)
3886 case $ac_arg in
3887 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3888 esac
3889 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
3890 esac
3891 done
3893 # Always prepend --prefix to ensure using the same prefix
3894 # in subdir configurations.
3895 ac_arg="--prefix=$prefix"
3896 case $ac_arg in
3897 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3898 esac
3899 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
3901 # Pass --silent
3902 if test "$silent" = yes; then
3903 ac_sub_configure_args="--silent $ac_sub_configure_args"
3906 # Always prepend --disable-option-checking to silence warnings, since
3907 # different subdirs can have different --enable and --with options.
3908 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
3910 ac_popdir=`pwd`
3911 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
3913 # Do not complain, so a configure script can configure whichever
3914 # parts of a large source tree are present.
3915 test -d "$srcdir/$ac_dir" || continue
3917 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
3919 $as_echo "$ac_msg" >&6
3920 as_dir="$ac_dir"; as_fn_mkdir_p
3921 ac_builddir=.
3923 case "$ac_dir" in
3924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3927 # A ".." for each directory in $ac_dir_suffix.
3928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3929 case $ac_top_builddir_sub in
3930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3932 esac ;;
3933 esac
3934 ac_abs_top_builddir=$ac_pwd
3935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3936 # for backward compatibility:
3937 ac_top_builddir=$ac_top_build_prefix
3939 case $srcdir in
3940 .) # We are building in place.
3941 ac_srcdir=.
3942 ac_top_srcdir=$ac_top_builddir_sub
3943 ac_abs_top_srcdir=$ac_pwd ;;
3944 [\\/]* | ?:[\\/]* ) # Absolute name.
3945 ac_srcdir=$srcdir$ac_dir_suffix;
3946 ac_top_srcdir=$srcdir
3947 ac_abs_top_srcdir=$srcdir ;;
3948 *) # Relative name.
3949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3950 ac_top_srcdir=$ac_top_build_prefix$srcdir
3951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3952 esac
3953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3956 cd "$ac_dir"
3958 # Check for guested configure; otherwise get Cygnus style configure.
3959 if test -f "$ac_srcdir/configure.gnu"; then
3960 ac_sub_configure=$ac_srcdir/configure.gnu
3961 elif test -f "$ac_srcdir/configure"; then
3962 ac_sub_configure=$ac_srcdir/configure
3963 elif test -f "$ac_srcdir/configure.in"; then
3964 # This should be Cygnus configure.
3965 ac_sub_configure=$ac_aux_dir/configure
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
3968 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
3969 ac_sub_configure=
3972 # The recursion is here.
3973 if test -n "$ac_sub_configure"; then
3974 # Make the cache file name correct relative to the subdirectory.
3975 case $cache_file in
3976 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
3977 *) # Relative name.
3978 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
3979 esac
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
3982 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
3983 # The eval makes quoting arguments work.
3984 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
3985 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
3986 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
3989 cd "$ac_popdir"
3990 done
3992 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3994 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}