]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcody/configure
libcody: fix --enable-checking=... follow-up [PR98311]
[thirdparty/gcc.git] / libcody / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for codylib 0.0.
4 #
5 # Report bugs to <github.com/urnathan/libcody>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: github.com/urnathan/libcody about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511 *)
512 ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567 #
568 # Initializations.
569 #
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='codylib'
581 PACKAGE_TARNAME='codylib'
582 PACKAGE_VERSION='0.0'
583 PACKAGE_STRING='codylib 0.0'
584 PACKAGE_BUGREPORT='github.com/urnathan/libcody'
585 PACKAGE_URL=''
586
587 ac_unique_file="cody.hh"
588 ac_subst_vars='LTLIBOBJS
589 LIBOBJS
590 ALOY
591 DOXYGEN
592 AR
593 EXCEPTIONS
594 CONFIG_FILES
595 SUBDIRS
596 configure_args
597 OBJEXT
598 EXEEXT
599 ac_ct_CXX
600 CPPFLAGS
601 LDFLAGS
602 CXXFLAGS
603 CXX
604 MAINTAINER
605 NUM_CPUS
606 tools
607 host_os
608 host_vendor
609 host_cpu
610 host
611 build_os
612 build_vendor
613 build_cpu
614 build
615 target_alias
616 host_alias
617 build_alias
618 LIBS
619 ECHO_T
620 ECHO_N
621 ECHO_C
622 DEFS
623 mandir
624 localedir
625 libdir
626 psdir
627 pdfdir
628 dvidir
629 htmldir
630 infodir
631 docdir
632 oldincludedir
633 includedir
634 localstatedir
635 sharedstatedir
636 sysconfdir
637 datadir
638 datarootdir
639 libexecdir
640 sbindir
641 bindir
642 program_transform_name
643 prefix
644 exec_prefix
645 PACKAGE_URL
646 PACKAGE_BUGREPORT
647 PACKAGE_STRING
648 PACKAGE_VERSION
649 PACKAGE_TARNAME
650 PACKAGE_NAME
651 PATH_SEPARATOR
652 SHELL'
653 ac_subst_files=''
654 ac_user_opts='
655 enable_option_checking
656 with_tools
657 enable_maintainer_mode
658 with_compiler
659 with_bugurl
660 enable_checking
661 enable_exceptions
662 '
663 ac_precious_vars='build_alias
664 host_alias
665 target_alias
666 CXX
667 CXXFLAGS
668 LDFLAGS
669 LIBS
670 CPPFLAGS
671 CCC'
672
673
674 # Initialize some variables set by options.
675 ac_init_help=
676 ac_init_version=false
677 ac_unrecognized_opts=
678 ac_unrecognized_sep=
679 # The variables have the same names as the options, with
680 # dashes changed to underlines.
681 cache_file=/dev/null
682 exec_prefix=NONE
683 no_create=
684 no_recursion=
685 prefix=NONE
686 program_prefix=NONE
687 program_suffix=NONE
688 program_transform_name=s,x,x,
689 silent=
690 site=
691 srcdir=
692 verbose=
693 x_includes=NONE
694 x_libraries=NONE
695
696 # Installation directory options.
697 # These are left unexpanded so users can "make install exec_prefix=/foo"
698 # and all the variables that are supposed to be based on exec_prefix
699 # by default will actually change.
700 # Use braces instead of parens because sh, perl, etc. also accept them.
701 # (The list follows the same order as the GNU Coding Standards.)
702 bindir='${exec_prefix}/bin'
703 sbindir='${exec_prefix}/sbin'
704 libexecdir='${exec_prefix}/libexec'
705 datarootdir='${prefix}/share'
706 datadir='${datarootdir}'
707 sysconfdir='${prefix}/etc'
708 sharedstatedir='${prefix}/com'
709 localstatedir='${prefix}/var'
710 includedir='${prefix}/include'
711 oldincludedir='/usr/include'
712 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
713 infodir='${datarootdir}/info'
714 htmldir='${docdir}'
715 dvidir='${docdir}'
716 pdfdir='${docdir}'
717 psdir='${docdir}'
718 libdir='${exec_prefix}/lib'
719 localedir='${datarootdir}/locale'
720 mandir='${datarootdir}/man'
721
722 ac_prev=
723 ac_dashdash=
724 for ac_option
725 do
726 # If the previous option needs an argument, assign it.
727 if test -n "$ac_prev"; then
728 eval $ac_prev=\$ac_option
729 ac_prev=
730 continue
731 fi
732
733 case $ac_option in
734 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
735 *=) ac_optarg= ;;
736 *) ac_optarg=yes ;;
737 esac
738
739 # Accept the important Cygnus configure options, so we can diagnose typos.
740
741 case $ac_dashdash$ac_option in
742 --)
743 ac_dashdash=yes ;;
744
745 -bindir | --bindir | --bindi | --bind | --bin | --bi)
746 ac_prev=bindir ;;
747 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
748 bindir=$ac_optarg ;;
749
750 -build | --build | --buil | --bui | --bu)
751 ac_prev=build_alias ;;
752 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
753 build_alias=$ac_optarg ;;
754
755 -cache-file | --cache-file | --cache-fil | --cache-fi \
756 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
757 ac_prev=cache_file ;;
758 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
759 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
760 cache_file=$ac_optarg ;;
761
762 --config-cache | -C)
763 cache_file=config.cache ;;
764
765 -datadir | --datadir | --datadi | --datad)
766 ac_prev=datadir ;;
767 -datadir=* | --datadir=* | --datadi=* | --datad=*)
768 datadir=$ac_optarg ;;
769
770 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
771 | --dataroo | --dataro | --datar)
772 ac_prev=datarootdir ;;
773 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
774 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
775 datarootdir=$ac_optarg ;;
776
777 -disable-* | --disable-*)
778 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
781 as_fn_error $? "invalid feature name: $ac_useropt"
782 ac_useropt_orig=$ac_useropt
783 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
784 case $ac_user_opts in
785 *"
786 "enable_$ac_useropt"
787 "*) ;;
788 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
789 ac_unrecognized_sep=', ';;
790 esac
791 eval enable_$ac_useropt=no ;;
792
793 -docdir | --docdir | --docdi | --doc | --do)
794 ac_prev=docdir ;;
795 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
796 docdir=$ac_optarg ;;
797
798 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
799 ac_prev=dvidir ;;
800 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
801 dvidir=$ac_optarg ;;
802
803 -enable-* | --enable-*)
804 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
805 # Reject names that are not valid shell variable names.
806 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
807 as_fn_error $? "invalid feature name: $ac_useropt"
808 ac_useropt_orig=$ac_useropt
809 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
810 case $ac_user_opts in
811 *"
812 "enable_$ac_useropt"
813 "*) ;;
814 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
815 ac_unrecognized_sep=', ';;
816 esac
817 eval enable_$ac_useropt=\$ac_optarg ;;
818
819 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821 | --exec | --exe | --ex)
822 ac_prev=exec_prefix ;;
823 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825 | --exec=* | --exe=* | --ex=*)
826 exec_prefix=$ac_optarg ;;
827
828 -gas | --gas | --ga | --g)
829 # Obsolete; use --with-gas.
830 with_gas=yes ;;
831
832 -help | --help | --hel | --he | -h)
833 ac_init_help=long ;;
834 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835 ac_init_help=recursive ;;
836 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837 ac_init_help=short ;;
838
839 -host | --host | --hos | --ho)
840 ac_prev=host_alias ;;
841 -host=* | --host=* | --hos=* | --ho=*)
842 host_alias=$ac_optarg ;;
843
844 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
845 ac_prev=htmldir ;;
846 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
847 | --ht=*)
848 htmldir=$ac_optarg ;;
849
850 -includedir | --includedir | --includedi | --included | --include \
851 | --includ | --inclu | --incl | --inc)
852 ac_prev=includedir ;;
853 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854 | --includ=* | --inclu=* | --incl=* | --inc=*)
855 includedir=$ac_optarg ;;
856
857 -infodir | --infodir | --infodi | --infod | --info | --inf)
858 ac_prev=infodir ;;
859 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860 infodir=$ac_optarg ;;
861
862 -libdir | --libdir | --libdi | --libd)
863 ac_prev=libdir ;;
864 -libdir=* | --libdir=* | --libdi=* | --libd=*)
865 libdir=$ac_optarg ;;
866
867 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868 | --libexe | --libex | --libe)
869 ac_prev=libexecdir ;;
870 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871 | --libexe=* | --libex=* | --libe=*)
872 libexecdir=$ac_optarg ;;
873
874 -localedir | --localedir | --localedi | --localed | --locale)
875 ac_prev=localedir ;;
876 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877 localedir=$ac_optarg ;;
878
879 -localstatedir | --localstatedir | --localstatedi | --localstated \
880 | --localstate | --localstat | --localsta | --localst | --locals)
881 ac_prev=localstatedir ;;
882 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
883 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
884 localstatedir=$ac_optarg ;;
885
886 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
887 ac_prev=mandir ;;
888 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889 mandir=$ac_optarg ;;
890
891 -nfp | --nfp | --nf)
892 # Obsolete; use --without-fp.
893 with_fp=no ;;
894
895 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896 | --no-cr | --no-c | -n)
897 no_create=yes ;;
898
899 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
901 no_recursion=yes ;;
902
903 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905 | --oldin | --oldi | --old | --ol | --o)
906 ac_prev=oldincludedir ;;
907 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910 oldincludedir=$ac_optarg ;;
911
912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
913 ac_prev=prefix ;;
914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
915 prefix=$ac_optarg ;;
916
917 -program-prefix | --program-prefix | --program-prefi | --program-pref \
918 | --program-pre | --program-pr | --program-p)
919 ac_prev=program_prefix ;;
920 -program-prefix=* | --program-prefix=* | --program-prefi=* \
921 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922 program_prefix=$ac_optarg ;;
923
924 -program-suffix | --program-suffix | --program-suffi | --program-suff \
925 | --program-suf | --program-su | --program-s)
926 ac_prev=program_suffix ;;
927 -program-suffix=* | --program-suffix=* | --program-suffi=* \
928 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929 program_suffix=$ac_optarg ;;
930
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 ac_prev=program_transform_name ;;
939 -program-transform-name=* | --program-transform-name=* \
940 | --program-transform-nam=* | --program-transform-na=* \
941 | --program-transform-n=* | --program-transform-=* \
942 | --program-transform=* | --program-transfor=* \
943 | --program-transfo=* | --program-transf=* \
944 | --program-trans=* | --program-tran=* \
945 | --progr-tra=* | --program-tr=* | --program-t=*)
946 program_transform_name=$ac_optarg ;;
947
948 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
949 ac_prev=pdfdir ;;
950 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
951 pdfdir=$ac_optarg ;;
952
953 -psdir | --psdir | --psdi | --psd | --ps)
954 ac_prev=psdir ;;
955 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
956 psdir=$ac_optarg ;;
957
958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959 | -silent | --silent | --silen | --sile | --sil)
960 silent=yes ;;
961
962 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
963 ac_prev=sbindir ;;
964 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
965 | --sbi=* | --sb=*)
966 sbindir=$ac_optarg ;;
967
968 -sharedstatedir | --sharedstatedir | --sharedstatedi \
969 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970 | --sharedst | --shareds | --shared | --share | --shar \
971 | --sha | --sh)
972 ac_prev=sharedstatedir ;;
973 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
976 | --sha=* | --sh=*)
977 sharedstatedir=$ac_optarg ;;
978
979 -site | --site | --sit)
980 ac_prev=site ;;
981 -site=* | --site=* | --sit=*)
982 site=$ac_optarg ;;
983
984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985 ac_prev=srcdir ;;
986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987 srcdir=$ac_optarg ;;
988
989 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990 | --syscon | --sysco | --sysc | --sys | --sy)
991 ac_prev=sysconfdir ;;
992 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994 sysconfdir=$ac_optarg ;;
995
996 -target | --target | --targe | --targ | --tar | --ta | --t)
997 ac_prev=target_alias ;;
998 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999 target_alias=$ac_optarg ;;
1000
1001 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1002 verbose=yes ;;
1003
1004 -version | --version | --versio | --versi | --vers | -V)
1005 ac_init_version=: ;;
1006
1007 -with-* | --with-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid package name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "with_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval with_$ac_useropt=\$ac_optarg ;;
1022
1023 -without-* | --without-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid package name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032 "with_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval with_$ac_useropt=no ;;
1038
1039 --x)
1040 # Obsolete; use --with-x.
1041 with_x=yes ;;
1042
1043 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1044 | --x-incl | --x-inc | --x-in | --x-i)
1045 ac_prev=x_includes ;;
1046 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1047 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1048 x_includes=$ac_optarg ;;
1049
1050 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1051 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1052 ac_prev=x_libraries ;;
1053 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1054 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1055 x_libraries=$ac_optarg ;;
1056
1057 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1058 Try \`$0 --help' for more information"
1059 ;;
1060
1061 *=*)
1062 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1063 # Reject names that are not valid shell variable names.
1064 case $ac_envvar in #(
1065 '' | [0-9]* | *[!_$as_cr_alnum]* )
1066 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1067 esac
1068 eval $ac_envvar=\$ac_optarg
1069 export $ac_envvar ;;
1070
1071 *)
1072 # FIXME: should be removed in autoconf 3.0.
1073 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1074 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1076 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1077 ;;
1078
1079 esac
1080 done
1081
1082 if test -n "$ac_prev"; then
1083 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1084 as_fn_error $? "missing argument to $ac_option"
1085 fi
1086
1087 if test -n "$ac_unrecognized_opts"; then
1088 case $enable_option_checking in
1089 no) ;;
1090 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1091 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1092 esac
1093 fi
1094
1095 # Check all directory arguments for consistency.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1100 do
1101 eval ac_val=\$$ac_var
1102 # Remove trailing slashes.
1103 case $ac_val in
1104 */ )
1105 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1106 eval $ac_var=\$ac_val;;
1107 esac
1108 # Be sure to have absolute directory names.
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1114 done
1115
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1122
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 elif test "x$build_alias" != "x$host_alias"; then
1128 cross_compiling=yes
1129 fi
1130 fi
1131
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135 test "$silent" = yes && exec 6>/dev/null
1136
1137
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 as_fn_error $? "working directory cannot be determined"
1142 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1143 as_fn_error $? "pwd does not report name of working directory"
1144
1145
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148 ac_srcdir_defaulted=yes
1149 # Try the directory containing this script, then the parent directory.
1150 ac_confdir=`$as_dirname -- "$as_myself" ||
1151 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152 X"$as_myself" : 'X\(//\)[^/]' \| \
1153 X"$as_myself" : 'X\(//\)$' \| \
1154 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1155 $as_echo X"$as_myself" |
1156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157 s//\1/
1158 q
1159 }
1160 /^X\(\/\/\)[^/].*/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\).*/{
1169 s//\1/
1170 q
1171 }
1172 s/.*/./; q'`
1173 srcdir=$ac_confdir
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 srcdir=..
1176 fi
1177 else
1178 ac_srcdir_defaulted=no
1179 fi
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1182 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1187 pwd)`
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1190 srcdir=.
1191 fi
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1195 case $srcdir in
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 esac
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1203 done
1204
1205 #
1206 # Report the --help message.
1207 #
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1211 cat <<_ACEOF
1212 \`configure' configures codylib 0.0 to adapt to many kinds of systems.
1213
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1215
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1218
1219 Defaults for the options are specified in brackets.
1220
1221 Configuration:
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking ...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1236 [PREFIX]
1237
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1242
1243 For better control, use the options below.
1244
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/codylib]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1265 _ACEOF
1266
1267 cat <<\_ACEOF
1268
1269 System types:
1270 --build=BUILD configure for building on BUILD [guessed]
1271 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1272 _ACEOF
1273 fi
1274
1275 if test -n "$ac_init_help"; then
1276 case $ac_init_help in
1277 short | recursive ) echo "Configuration of codylib 0.0:";;
1278 esac
1279 cat <<\_ACEOF
1280
1281 Optional Features:
1282 --disable-option-checking ignore unrecognized --enable/--with options
1283 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1284 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1285 --enable-maintainer-mode
1286 enable maintainer mode. Add rules to rebuild
1287 configurey bits
1288 --enable-checking[=LIST]
1289 enable expensive run-time checks. With LIST, enable
1290 only specific categories of checks. Categories are:
1291 yes,no,all,none,release. Flags are: misc,valgrind or
1292 other strings
1293 --enable-exceptions enable exceptions & rtti
1294
1295 Optional Packages:
1296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1298 --with-tools=DIR tool directory
1299 --with-compiler=NAME which compiler to use
1300 --with-bugurl=URL where to report bugs
1301
1302 Some influential environment variables:
1303 CXX C++ compiler command
1304 CXXFLAGS C++ compiler flags
1305 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1306 nonstandard directory <lib dir>
1307 LIBS libraries to pass to the linker, e.g. -l<library>
1308 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1309 you have headers in a nonstandard directory <include dir>
1310
1311 Use these variables to override the choices made by `configure' or to help
1312 it to find libraries and programs with nonstandard names/locations.
1313
1314 Report bugs to <github.com/urnathan/libcody>.
1315 _ACEOF
1316 ac_status=$?
1317 fi
1318
1319 if test "$ac_init_help" = "recursive"; then
1320 # If there are subdirs, report their specific --help.
1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1322 test -d "$ac_dir" ||
1323 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1324 continue
1325 ac_builddir=.
1326
1327 case "$ac_dir" in
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *)
1330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1336 esac ;;
1337 esac
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1342
1343 case $srcdir in
1344 .) # We are building in place.
1345 ac_srcdir=.
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
1349 ac_srcdir=$srcdir$ac_dir_suffix;
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1352 *) # Relative name.
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 esac
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1365 echo &&
1366 $SHELL "$ac_srcdir/configure" --help=recursive
1367 else
1368 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 fi || ac_status=$?
1370 cd "$ac_pwd" || { ac_status=$?; break; }
1371 done
1372 fi
1373
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1376 cat <<\_ACEOF
1377 codylib configure 0.0
1378 generated by GNU Autoconf 2.69
1379
1380 Copyright (C) 2012 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1383 _ACEOF
1384 exit
1385 fi
1386
1387 ## ------------------------ ##
1388 ## Autoconf initialization. ##
1389 ## ------------------------ ##
1390
1391 # ac_fn_cxx_try_compile LINENO
1392 # ----------------------------
1393 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1394 ac_fn_cxx_try_compile ()
1395 {
1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397 rm -f conftest.$ac_objext
1398 if { { ac_try="$ac_compile"
1399 case "(($ac_try" in
1400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1401 *) ac_try_echo=$ac_try;;
1402 esac
1403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1404 $as_echo "$ac_try_echo"; } >&5
1405 (eval "$ac_compile") 2>conftest.err
1406 ac_status=$?
1407 if test -s conftest.err; then
1408 grep -v '^ *+' conftest.err >conftest.er1
1409 cat conftest.er1 >&5
1410 mv -f conftest.er1 conftest.err
1411 fi
1412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1413 test $ac_status = 0; } && {
1414 test -z "$ac_cxx_werror_flag" ||
1415 test ! -s conftest.err
1416 } && test -s conftest.$ac_objext; then :
1417 ac_retval=0
1418 else
1419 $as_echo "$as_me: failed program was:" >&5
1420 sed 's/^/| /' conftest.$ac_ext >&5
1421
1422 ac_retval=1
1423 fi
1424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1425 as_fn_set_status $ac_retval
1426
1427 } # ac_fn_cxx_try_compile
1428
1429 # ac_fn_cxx_try_link LINENO
1430 # -------------------------
1431 # Try to link conftest.$ac_ext, and return whether this succeeded.
1432 ac_fn_cxx_try_link ()
1433 {
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext conftest$ac_exeext
1436 if { { ac_try="$ac_link"
1437 case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440 esac
1441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442 $as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_link") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_cxx_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest$ac_exeext && {
1455 test "$cross_compiling" = yes ||
1456 test -x conftest$ac_exeext
1457 }; then :
1458 ac_retval=0
1459 else
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1462
1463 ac_retval=1
1464 fi
1465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1467 # interfere with the next link command; also delete a directory that is
1468 # left behind by Apple's compiler. We do this before executing the actions.
1469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1471 as_fn_set_status $ac_retval
1472
1473 } # ac_fn_cxx_try_link
1474 cat >config.log <<_ACEOF
1475 This file contains any messages produced by compilers while
1476 running configure, to aid debugging if configure makes a mistake.
1477
1478 It was created by codylib $as_me 0.0, which was
1479 generated by GNU Autoconf 2.69. Invocation command line was
1480
1481 $ $0 $@
1482
1483 _ACEOF
1484 exec 5>>config.log
1485 {
1486 cat <<_ASUNAME
1487 ## --------- ##
1488 ## Platform. ##
1489 ## --------- ##
1490
1491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496
1497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1499
1500 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1501 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1504 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1506 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1507
1508 _ASUNAME
1509
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 $as_echo "PATH: $as_dir"
1516 done
1517 IFS=$as_save_IFS
1518
1519 } >&5
1520
1521 cat >&5 <<_ACEOF
1522
1523
1524 ## ----------- ##
1525 ## Core tests. ##
1526 ## ----------- ##
1527
1528 _ACEOF
1529
1530
1531 # Keep a trace of the command line.
1532 # Strip out --no-create and --no-recursion so they do not pile up.
1533 # Strip out --silent because we don't want to record it for future runs.
1534 # Also quote any args containing shell meta-characters.
1535 # Make two passes to allow for proper duplicate-argument suppression.
1536 ac_configure_args=
1537 ac_configure_args0=
1538 ac_configure_args1=
1539 ac_must_keep_next=false
1540 for ac_pass in 1 2
1541 do
1542 for ac_arg
1543 do
1544 case $ac_arg in
1545 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547 | -silent | --silent | --silen | --sile | --sil)
1548 continue ;;
1549 *\'*)
1550 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551 esac
1552 case $ac_pass in
1553 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1554 2)
1555 as_fn_append ac_configure_args1 " '$ac_arg'"
1556 if test $ac_must_keep_next = true; then
1557 ac_must_keep_next=false # Got value, back to normal.
1558 else
1559 case $ac_arg in
1560 *=* | --config-cache | -C | -disable-* | --disable-* \
1561 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563 | -with-* | --with-* | -without-* | --without-* | --x)
1564 case "$ac_configure_args0 " in
1565 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566 esac
1567 ;;
1568 -* ) ac_must_keep_next=true ;;
1569 esac
1570 fi
1571 as_fn_append ac_configure_args " '$ac_arg'"
1572 ;;
1573 esac
1574 done
1575 done
1576 { ac_configure_args0=; unset ac_configure_args0;}
1577 { ac_configure_args1=; unset ac_configure_args1;}
1578
1579 # When interrupted or exit'd, cleanup temporary files, and complete
1580 # config.log. We remove comments because anyway the quotes in there
1581 # would cause problems or look ugly.
1582 # WARNING: Use '\'' to represent an apostrophe within the trap.
1583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584 trap 'exit_status=$?
1585 # Save into config.log some information that might help in debugging.
1586 {
1587 echo
1588
1589 $as_echo "## ---------------- ##
1590 ## Cache variables. ##
1591 ## ---------------- ##"
1592 echo
1593 # The following way of writing the cache mishandles newlines in values,
1594 (
1595 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in #(
1598 *${as_nl}*)
1599 case $ac_var in #(
1600 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1601 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1602 esac
1603 case $ac_var in #(
1604 _ | IFS | as_nl) ;; #(
1605 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1606 *) { eval $ac_var=; unset $ac_var;} ;;
1607 esac ;;
1608 esac
1609 done
1610 (set) 2>&1 |
1611 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 *${as_nl}ac_space=\ *)
1613 sed -n \
1614 "s/'\''/'\''\\\\'\'''\''/g;
1615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1616 ;; #(
1617 *)
1618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ;;
1620 esac |
1621 sort
1622 )
1623 echo
1624
1625 $as_echo "## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##"
1628 echo
1629 for ac_var in $ac_subst_vars
1630 do
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 $as_echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1638
1639 if test -n "$ac_subst_files"; then
1640 $as_echo "## ------------------- ##
1641 ## File substitutions. ##
1642 ## ------------------- ##"
1643 echo
1644 for ac_var in $ac_subst_files
1645 do
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 $as_echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1653 fi
1654
1655 if test -s confdefs.h; then
1656 $as_echo "## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##"
1659 echo
1660 cat confdefs.h
1661 echo
1662 fi
1663 test "$ac_signal" != 0 &&
1664 $as_echo "$as_me: caught signal $ac_signal"
1665 $as_echo "$as_me: exit $exit_status"
1666 } >&5
1667 rm -f core *.core core.conftest.* &&
1668 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1669 exit $exit_status
1670 ' 0
1671 for ac_signal in 1 2 13 15; do
1672 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1673 done
1674 ac_signal=0
1675
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1678
1679 $as_echo "/* confdefs.h */" > confdefs.h
1680
1681 # Predefined preprocessor variables.
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 _ACEOF
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 _ACEOF
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701 _ACEOF
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_URL "$PACKAGE_URL"
1705 _ACEOF
1706
1707
1708 # Let the site file select an alternate cache file if it wants to.
1709 # Prefer an explicitly selected file to automatically selected ones.
1710 ac_site_file1=NONE
1711 ac_site_file2=NONE
1712 if test -n "$CONFIG_SITE"; then
1713 # We do not want a PATH search for config.site.
1714 case $CONFIG_SITE in #((
1715 -*) ac_site_file1=./$CONFIG_SITE;;
1716 */*) ac_site_file1=$CONFIG_SITE;;
1717 *) ac_site_file1=./$CONFIG_SITE;;
1718 esac
1719 elif test "x$prefix" != xNONE; then
1720 ac_site_file1=$prefix/share/config.site
1721 ac_site_file2=$prefix/etc/config.site
1722 else
1723 ac_site_file1=$ac_default_prefix/share/config.site
1724 ac_site_file2=$ac_default_prefix/etc/config.site
1725 fi
1726 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1727 do
1728 test "x$ac_site_file" = xNONE && continue
1729 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1731 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1732 sed 's/^/| /' "$ac_site_file" >&5
1733 . "$ac_site_file" \
1734 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1736 as_fn_error $? "failed to load site script $ac_site_file
1737 See \`config.log' for more details" "$LINENO" 5; }
1738 fi
1739 done
1740
1741 if test -r "$cache_file"; then
1742 # Some versions of bash will fail to source /dev/null (special files
1743 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1744 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1746 $as_echo "$as_me: loading cache $cache_file" >&6;}
1747 case $cache_file in
1748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749 *) . "./$cache_file";;
1750 esac
1751 fi
1752 else
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1754 $as_echo "$as_me: creating cache $cache_file" >&6;}
1755 >$cache_file
1756 fi
1757
1758 # Check that the precious variables saved in the cache have kept the same
1759 # value.
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
1764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
1766 case $ac_old_set,$ac_new_set in
1767 set,)
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,set)
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,);;
1776 *)
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 # differences in whitespace do not lead to failure.
1779 ac_old_val_w=`echo x $ac_old_val`
1780 ac_new_val_w=`echo x $ac_new_val`
1781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 ac_cache_corrupted=:
1785 else
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1788 eval $ac_var=\$ac_old_val
1789 fi
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1794 fi;;
1795 esac
1796 # Pass precious variables to config.status.
1797 if test "$ac_new_set" = set; then
1798 case $ac_new_val in
1799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1800 *) ac_arg=$ac_var=$ac_new_val ;;
1801 esac
1802 case " $ac_configure_args " in
1803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1805 esac
1806 fi
1807 done
1808 if $ac_cache_corrupted; then
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1813 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1814 fi
1815 ## -------------------- ##
1816 ## Main body of script. ##
1817 ## -------------------- ##
1818
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824
1825
1826
1827 # Nathan's Common Config -*- mode:autoconf -*-
1828 # Copyright (C) 2020 Nathan Sidwell, nathan@acm.org
1829 # License: Apache v2.0
1830
1831 # Note: VAR+=... is not dashing, despite its looks
1832
1833
1834
1835 # thanks to Zack Weinberg for fixing this!
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867 ac_aux_dir=
1868 for ac_dir in build-aux "$srcdir"/build-aux; do
1869 if test -f "$ac_dir/install-sh"; then
1870 ac_aux_dir=$ac_dir
1871 ac_install_sh="$ac_aux_dir/install-sh -c"
1872 break
1873 elif test -f "$ac_dir/install.sh"; then
1874 ac_aux_dir=$ac_dir
1875 ac_install_sh="$ac_aux_dir/install.sh -c"
1876 break
1877 elif test -f "$ac_dir/shtool"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/shtool install -c"
1880 break
1881 fi
1882 done
1883 if test -z "$ac_aux_dir"; then
1884 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1885 fi
1886
1887 # These three variables are undocumented and unsupported,
1888 # and are intended to be withdrawn in a future Autoconf release.
1889 # They can cause serious problems if a builder's source tree is in a directory
1890 # whose full name contains unusual characters.
1891 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1892 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1893 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1894
1895
1896
1897
1898 if test -e configure ; then
1899 as_fn_error $? "Do not build in the source tree. Reasons" "$LINENO" 5
1900 fi
1901 # Make sure we can run config.sub.
1902 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1904
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1906 $as_echo_n "checking build system type... " >&6; }
1907 if ${ac_cv_build+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 ac_build_alias=$build_alias
1911 test "x$ac_build_alias" = x &&
1912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1913 test "x$ac_build_alias" = x &&
1914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1917
1918 fi
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1920 $as_echo "$ac_cv_build" >&6; }
1921 case $ac_cv_build in
1922 *-*-*) ;;
1923 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1924 esac
1925 build=$ac_cv_build
1926 ac_save_IFS=$IFS; IFS='-'
1927 set x $ac_cv_build
1928 shift
1929 build_cpu=$1
1930 build_vendor=$2
1931 shift; shift
1932 # Remember, the first character of IFS is used to create $*,
1933 # except with old shells:
1934 build_os=$*
1935 IFS=$ac_save_IFS
1936 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1937
1938
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1940 $as_echo_n "checking host system type... " >&6; }
1941 if ${ac_cv_host+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 if test "x$host_alias" = x; then
1945 ac_cv_host=$ac_cv_build
1946 else
1947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1949 fi
1950
1951 fi
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1953 $as_echo "$ac_cv_host" >&6; }
1954 case $ac_cv_host in
1955 *-*-*) ;;
1956 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1957 esac
1958 host=$ac_cv_host
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_host
1961 shift
1962 host_cpu=$1
1963 host_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 host_os=$*
1968 IFS=$ac_save_IFS
1969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970
1971
1972
1973
1974
1975 # Check whether --with-tools was given.
1976 if test "${with_tools+set}" = set; then :
1977 withval=$with_tools; case $withval in #(
1978 yes) :
1979 as_fn_error $? "--with-tools requires an argument" "$LINENO" 5 ;; #(
1980 no) :
1981 : ;; #(
1982 *) :
1983 tools="${withval%/bin}" ;;
1984 esac
1985 fi
1986
1987
1988 if test -n "$tools" ; then
1989 if test -d "$tools/bin"; then
1990 PATH="$tools/bin:$PATH"
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using tools in $tools" >&5
1992 $as_echo "$as_me: Using tools in $tools" >&6;}
1993 else
1994 as_fn_error $? "tool location does not exist" "$LINENO" 5
1995 fi
1996 fi
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of CPUs" >&5
1998 $as_echo_n "checking number of CPUs... " >&6; }
1999 case $build in #(
2000 *-*-darwin*) :
2001 NUM_CPUS=$(sysctl -n hw.ncpu 2>/dev/null) ;; #(
2002 *) :
2003 NUM_CPUS=$(grep -c '^processor' /proc/cpuinfo 2>/dev/null) ;;
2004 esac
2005 test "$NUM_CPUS" = 0 && NUM_CPUS=
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NUM_CPUS:-unknown}" >&5
2007 $as_echo "${NUM_CPUS:-unknown}" >&6; }
2008 test "$NUM_CPUS" = 1 && NUM_CPUS=
2009
2010 # Check whether --enable-maintainer-mode was given.
2011 if test "${enable_maintainer_mode+set}" = set; then :
2012 enableval=$enable_maintainer_mode;
2013 else
2014 enable_maintainer_mode=no
2015 fi
2016
2017 case $enable_maintainer_mode in #(
2018 yes) :
2019 maintainer_mode=yes ;; #(
2020 no) :
2021 maintainer=no ;; #(
2022 *) :
2023 as_fn_error $? "unknown maintainer mode $enable_maintainer_mode" "$LINENO" 5 ;;
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer-mode" >&5
2026 $as_echo_n "checking maintainer-mode... " >&6; }
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2028 $as_echo "$maintainer_mode" >&6; }
2029 test "$maintainer_mode" = yes && MAINTAINER=yes
2030
2031
2032 # Check whether --with-compiler was given.
2033 if test "${with_compiler+set}" = set; then :
2034 withval=$with_compiler; { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler" >&5
2035 $as_echo_n "checking C++ compiler... " >&6; }
2036 if test "$withval" = "yes" ; then
2037 as_fn_error $? "NAME not specified" "$LINENO" 5
2038 elif test "$withval" = "no" ; then
2039 as_fn_error $? "Gonna need a C++ compiler!" "$LINENO" 5
2040 else
2041 CXX="${withval}"
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2043 $as_echo "$CXX" >&6; }
2044 fi
2045 fi
2046
2047 ac_ext=cpp
2048 ac_cpp='$CXXCPP $CPPFLAGS'
2049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2052
2053 ac_ext=cpp
2054 ac_cpp='$CXXCPP $CPPFLAGS'
2055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2058 if test -z "$CXX"; then
2059 if test -n "$CCC"; then
2060 CXX=$CCC
2061 else
2062 if test -n "$ac_tool_prefix"; then
2063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2064 do
2065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2068 $as_echo_n "checking for $ac_word... " >&6; }
2069 if ${ac_cv_prog_CXX+:} false; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 if test -n "$CXX"; then
2073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 CXX=$ac_cv_prog_CXX
2093 if test -n "$CXX"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2095 $as_echo "$CXX" >&6; }
2096 else
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2098 $as_echo "no" >&6; }
2099 fi
2100
2101
2102 test -n "$CXX" && break
2103 done
2104 fi
2105 if test -z "$CXX"; then
2106 ac_ct_CXX=$CXX
2107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2108 do
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2112 $as_echo_n "checking for $ac_word... " >&6; }
2113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 if test -n "$ac_ct_CXX"; then
2117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_ac_ct_CXX="$ac_prog"
2127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2137 if test -n "$ac_ct_CXX"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2139 $as_echo "$ac_ct_CXX" >&6; }
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2142 $as_echo "no" >&6; }
2143 fi
2144
2145
2146 test -n "$ac_ct_CXX" && break
2147 done
2148
2149 if test "x$ac_ct_CXX" = x; then
2150 CXX="g++"
2151 else
2152 case $cross_compiling:$ac_tool_warned in
2153 yes:)
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2156 ac_tool_warned=yes ;;
2157 esac
2158 CXX=$ac_ct_CXX
2159 fi
2160 fi
2161
2162 fi
2163 fi
2164 # Provide some information about the compiler.
2165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2166 set X $ac_compile
2167 ac_compiler=$2
2168 for ac_option in --version -v -V -qversion; do
2169 { { ac_try="$ac_compiler $ac_option >&5"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 sed '10a\
2180 ... rest of stderr output deleted ...
2181 10q' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 fi
2184 rm -f conftest.er1 conftest.err
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; }
2187 done
2188
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191
2192 int
2193 main ()
2194 {
2195
2196 ;
2197 return 0;
2198 }
2199 _ACEOF
2200 ac_clean_files_save=$ac_clean_files
2201 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2202 # Try to create an executable without -o first, disregard a.out.
2203 # It will help us diagnose broken compilers, and finding out an intuition
2204 # of exeext.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2206 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2207 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208
2209 # The possible output files:
2210 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2211
2212 ac_rmfiles=
2213 for ac_file in $ac_files
2214 do
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2217 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2218 esac
2219 done
2220 rm -f $ac_rmfiles
2221
2222 if { { ac_try="$ac_link_default"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_link_default") 2>&5
2230 ac_status=$?
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; }; then :
2233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2234 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2235 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2236 # so that the user can short-circuit this test for compilers unknown to
2237 # Autoconf.
2238 for ac_file in $ac_files ''
2239 do
2240 test -f "$ac_file" || continue
2241 case $ac_file in
2242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2243 ;;
2244 [ab].out )
2245 # We found the default executable, but exeext='' is most
2246 # certainly right.
2247 break;;
2248 *.* )
2249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2250 then :; else
2251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 fi
2253 # We set ac_cv_exeext here because the later test for it is not
2254 # safe: cross compilers may not add the suffix if given an `-o'
2255 # argument, so we may need to know it at that point already.
2256 # Even if this section looks crufty: it has the advantage of
2257 # actually working.
2258 break;;
2259 * )
2260 break;;
2261 esac
2262 done
2263 test "$ac_cv_exeext" = no && ac_cv_exeext=
2264
2265 else
2266 ac_file=''
2267 fi
2268 if test -z "$ac_file"; then :
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2270 $as_echo "no" >&6; }
2271 $as_echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 as_fn_error 77 "C++ compiler cannot create executables
2277 See \`config.log' for more details" "$LINENO" 5; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2280 $as_echo "yes" >&6; }
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2283 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2285 $as_echo "$ac_file" >&6; }
2286 ac_exeext=$ac_cv_exeext
2287
2288 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2289 ac_clean_files=$ac_clean_files_save
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2291 $as_echo_n "checking for suffix of executables... " >&6; }
2292 if { { ac_try="$ac_link"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_link") 2>&5
2300 ac_status=$?
2301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2302 test $ac_status = 0; }; then :
2303 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2305 # work properly (i.e., refer to `conftest.exe'), while it won't with
2306 # `rm'.
2307 for ac_file in conftest.exe conftest conftest.*; do
2308 test -f "$ac_file" || continue
2309 case $ac_file in
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 break;;
2313 * ) break;;
2314 esac
2315 done
2316 else
2317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details" "$LINENO" 5; }
2321 fi
2322 rm -f conftest conftest$ac_cv_exeext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2324 $as_echo "$ac_cv_exeext" >&6; }
2325
2326 rm -f conftest.$ac_ext
2327 EXEEXT=$ac_cv_exeext
2328 ac_exeext=$EXEEXT
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 #include <stdio.h>
2332 int
2333 main ()
2334 {
2335 FILE *f = fopen ("conftest.out", "w");
2336 return ferror (f) || fclose (f) != 0;
2337
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 ac_clean_files="$ac_clean_files conftest.out"
2343 # Check that the compiler produces executables we can run. If not, either
2344 # the compiler is broken, or we cross compile.
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2346 $as_echo_n "checking whether we are cross compiling... " >&6; }
2347 if test "$cross_compiling" != yes; then
2348 { { ac_try="$ac_link"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; }
2359 if { ac_try='./conftest$ac_cv_exeext'
2360 { { case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_try") 2>&5
2367 ac_status=$?
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; }; }; then
2370 cross_compiling=no
2371 else
2372 if test "$cross_compiling" = maybe; then
2373 cross_compiling=yes
2374 else
2375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $? "cannot run C++ compiled programs.
2378 If you meant to cross compile, use \`--host'.
2379 See \`config.log' for more details" "$LINENO" 5; }
2380 fi
2381 fi
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2384 $as_echo "$cross_compiling" >&6; }
2385
2386 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2387 ac_clean_files=$ac_clean_files_save
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2389 $as_echo_n "checking for suffix of object files... " >&6; }
2390 if ${ac_cv_objext+:} false; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395
2396 int
2397 main ()
2398 {
2399
2400 ;
2401 return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.o conftest.obj
2405 if { { ac_try="$ac_compile"
2406 case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409 esac
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 $as_echo "$ac_try_echo"; } >&5
2412 (eval "$ac_compile") 2>&5
2413 ac_status=$?
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; }; then :
2416 for ac_file in conftest.o conftest.obj conftest.*; do
2417 test -f "$ac_file" || continue;
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2421 break;;
2422 esac
2423 done
2424 else
2425 $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "cannot compute suffix of object files: cannot compile
2431 See \`config.log' for more details" "$LINENO" 5; }
2432 fi
2433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2436 $as_echo "$ac_cv_objext" >&6; }
2437 OBJEXT=$ac_cv_objext
2438 ac_objext=$OBJEXT
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2440 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2441 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446
2447 int
2448 main ()
2449 {
2450 #ifndef __GNUC__
2451 choke me
2452 #endif
2453
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 if ac_fn_cxx_try_compile "$LINENO"; then :
2459 ac_compiler_gnu=yes
2460 else
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2468 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2469 if test $ac_compiler_gnu = yes; then
2470 GXX=yes
2471 else
2472 GXX=
2473 fi
2474 ac_test_CXXFLAGS=${CXXFLAGS+set}
2475 ac_save_CXXFLAGS=$CXXFLAGS
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2477 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2478 if ${ac_cv_prog_cxx_g+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2482 ac_cxx_werror_flag=yes
2483 ac_cv_prog_cxx_g=no
2484 CXXFLAGS="-g"
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487
2488 int
2489 main ()
2490 {
2491
2492 ;
2493 return 0;
2494 }
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497 ac_cv_prog_cxx_g=yes
2498 else
2499 CXXFLAGS=""
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502
2503 int
2504 main ()
2505 {
2506
2507 ;
2508 return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512
2513 else
2514 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2515 CXXFLAGS="-g"
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2518
2519 int
2520 main ()
2521 {
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 ac_cv_prog_cxx_g=yes
2529 fi
2530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2538 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2539 if test "$ac_test_CXXFLAGS" = set; then
2540 CXXFLAGS=$ac_save_CXXFLAGS
2541 elif test $ac_cv_prog_cxx_g = yes; then
2542 if test "$GXX" = yes; then
2543 CXXFLAGS="-g -O2"
2544 else
2545 CXXFLAGS="-g"
2546 fi
2547 else
2548 if test "$GXX" = yes; then
2549 CXXFLAGS="-O2"
2550 else
2551 CXXFLAGS=
2552 fi
2553 fi
2554 ac_ext=cpp
2555 ac_cpp='$CXXCPP $CPPFLAGS'
2556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2559
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is for C++11" >&5
2562 $as_echo_n "checking whether $CXX is for C++11... " >&6; }
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565
2566 #if __cplusplus != 201103
2567 #error "C++11 is required"
2568 #endif
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_cxx_try_compile "$LINENO"; then :
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580 $as_echo "yes" >&6; }
2581 else
2582 CXX_ORIG="$CXX"
2583 CXX="$CXX -std=c++11"
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586
2587 #if __cplusplus != 201103
2588 #error "C++11 is required"
2589 #endif
2590
2591 int
2592 main ()
2593 {
2594
2595 ;
2596 return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_cxx_try_compile "$LINENO"; then :
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -std=c++11" >&5
2601 $as_echo "adding -std=c++11" >&6; }
2602 else
2603 CXX="$CXX_ORIG"
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606
2607 #if __cplusplus > 201103
2608 #error "C++11 is required"
2609 #endif
2610
2611 int
2612 main ()
2613 {
2614
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 if ac_fn_cxx_try_compile "$LINENO"; then :
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: > C++11" >&5
2621 $as_echo "> C++11" >&6; }
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 as_fn_error $? "C++11 is required" "$LINENO" 5
2626 fi
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 unset CXX_ORIG
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 if test "$tools" && test -d "$tools/include" ; then
2634 CXX="$CXX -I$tools/include"
2635 fi
2636 if test "$tools" && test -d "$tools/lib" ; then
2637 toollib="$tools/lib"
2638 if os=$(CXX -print-multi-os-directory 2>/dev/null) ; then
2639 toollib="$toollib/${os}"
2640 fi
2641 LDFLAGS="$LDFLAGS -L $toollib"
2642 unset toollib
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking adding -Wl,--no-undefined to linker" >&5
2645 $as_echo_n "checking adding -Wl,--no-undefined to linker... " >&6; }
2646 ORIG_LDFLAGS="$LDFLAGS"
2647 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2650
2651 int
2652 main ()
2653 {
2654
2655 ;
2656 return 0;
2657 }
2658 _ACEOF
2659 if ac_fn_cxx_try_link "$LINENO"; then :
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2661 $as_echo "ok" >&6; }
2662 else
2663 LDFLAGS="$ORIG_LDFLAGS"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667 rm -f core conftest.err conftest.$ac_objext \
2668 conftest$ac_exeext conftest.$ac_ext
2669 unset ORIG_LDFLAGS
2670 CONFIG_FILES="Makefile gdbinit dox.cfg"
2671 SUBDIRS=""
2672 for generated in config.h.in configure ; do
2673 if test $srcdir/configure.ac -nt $srcdir/$generated ; then
2674 touch $srcdir/$generated
2675 fi
2676 done
2677 for dir in . $SUBDIRS
2678 do
2679 CONFIG_FILES="$CONFIG_FILES $dir/Makesub"
2680 test -f ${srcdir}/$dir/tests/Makesub.in && CONFIG_FILES="$CONFIG_FILES $dir/tests/Makesub"
2681 done
2682 ac_config_files="$ac_config_files $CONFIG_FILES"
2683
2684 configure_args=$ac_configure_args
2685
2686
2687
2688
2689 # Enable expensive internal checks
2690 is_release=
2691 if test -d $srcdir/../gcc \
2692 && test -f $srcdir/../gcc/DEV-PHASE \
2693 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
2694 is_release=yes
2695 fi
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bugurl" >&5
2698 $as_echo_n "checking bugurl... " >&6; }
2699
2700 # Check whether --with-bugurl was given.
2701 if test "${with_bugurl+set}" = set; then :
2702 withval=$with_bugurl; case "$withval" in #(
2703 yes) :
2704 as_fn_error $? "--with-bugurl requires an argument" "$LINENO" 5 ;; #(
2705 no) :
2706 BUGURL="" ;; #(
2707 *) :
2708 BUGURL="${withval}" ;;
2709 esac
2710 else
2711 BUGURL="${PACKAGE_BUGREPORT}"
2712 fi
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUGURL" >&5
2715 $as_echo "$BUGURL" >&6; }
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define BUGURL "$BUGURL"
2719 _ACEOF
2720
2721 # Check whether --enable-checking was given.
2722 if test "${enable_checking+set}" = set; then :
2723 enableval=$enable_checking; ac_checking_flags="${enableval}"
2724 else
2725
2726 # Determine the default checks.
2727 if test x$is_release = x ; then
2728 ac_checking_flags=yes
2729 else
2730 ac_checking_flags=release
2731 fi
2732 fi
2733
2734 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2735 for check in release $ac_checking_flags
2736 do
2737 case $check in
2738 yes|all|misc) ac_checking=1 ;;
2739 no|none|release) ac_checking= ;;
2740 # accept
2741 *) ;;
2742 esac
2743 done
2744 IFS="$ac_save_IFS"
2745
2746 if test x$ac_checking != x ; then
2747
2748 $as_echo "#define NMS_CHECKING 1" >>confdefs.h
2749
2750 else
2751 $as_echo "#define NMS_CHECKING 0" >>confdefs.h
2752
2753 fi
2754
2755
2756 # Check whether --enable-exceptions was given.
2757 if test "${enable_exceptions+set}" = set; then :
2758 enableval=$enable_exceptions;
2759 else
2760 enable_exceptions="no"
2761 fi
2762
2763 case $enable_exceptions in #(
2764 yes) :
2765 nms_exceptions=yes ;; #(
2766 no) :
2767 nms_exceptions=no ;; #(
2768 *) :
2769 as_fn_error $? "unknown exceptions $enable_exceptions" "$LINENO" 5 ;;
2770 esac
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking exceptions" >&5
2772 $as_echo_n "checking exceptions... " >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nms_exceptions" >&5
2774 $as_echo "$nms_exceptions" >&6; }
2775 if test "$nms_exceptions" != no ; then
2776 EXCEPTIONS=yes
2777 fi
2778
2779
2780 ac_config_headers="$ac_config_headers config.h"
2781
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}ar; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_AR+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$AR"; then
2791 ac_cv_prog_AR="$AR" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_AR="${ac_tool_prefix}ar"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 AR=$ac_cv_prog_AR
2811 if test -n "$AR"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2813 $as_echo "$AR" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820 fi
2821 if test -z "$ac_cv_prog_AR"; then
2822 ac_ct_AR=$AR
2823 # Extract the first word of "ar", so it can be a program name with args.
2824 set dummy ar; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_AR"; then
2831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_AR="ar"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2851 if test -n "$ac_ct_AR"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2853 $as_echo "$ac_ct_AR" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859 if test "x$ac_ct_AR" = x; then
2860 AR=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 AR=$ac_ct_AR
2869 fi
2870 else
2871 AR="$ac_cv_prog_AR"
2872 fi
2873
2874 # Extract the first word of "doxygen", so it can be a program name with args.
2875 set dummy doxygen; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_DOXYGEN+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$DOXYGEN"; then
2882 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_DOXYGEN="doxygen"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=": NOTdoxygen"
2900 fi
2901 fi
2902 DOXYGEN=$ac_cv_prog_DOXYGEN
2903 if test -n "$DOXYGEN"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
2905 $as_echo "$DOXYGEN" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 # Extract the first word of "aloy", so it can be a program name with args.
2913 set dummy aloy; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ALOY+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$ALOY"; then
2920 ac_cv_prog_ALOY="$ALOY" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ALOY="aloy"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 test -z "$ac_cv_prog_ALOY" && ac_cv_prog_ALOY=": Joust testsuite missing"
2938 fi
2939 fi
2940 ALOY=$ac_cv_prog_ALOY
2941 if test -n "$ALOY"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALOY" >&5
2943 $as_echo "$ALOY" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950
2951
2952
2953 cat >confcache <<\_ACEOF
2954 # This file is a shell script that caches the results of configure
2955 # tests run on this system so they can be shared between configure
2956 # scripts and configure runs, see configure's option --config-cache.
2957 # It is not useful on other systems. If it contains results you don't
2958 # want to keep, you may remove or edit it.
2959 #
2960 # config.status only pays attention to the cache file if you give it
2961 # the --recheck option to rerun configure.
2962 #
2963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2965 # following values.
2966
2967 _ACEOF
2968
2969 # The following way of writing the cache mishandles newlines in values,
2970 # but we know of no workaround that is simple, portable, and efficient.
2971 # So, we kill variables containing newlines.
2972 # Ultrix sh set writes to stderr and can't be redirected directly,
2973 # and sets the high bit in the cache file unless we assign to the vars.
2974 (
2975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2976 eval ac_val=\$$ac_var
2977 case $ac_val in #(
2978 *${as_nl}*)
2979 case $ac_var in #(
2980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2982 esac
2983 case $ac_var in #(
2984 _ | IFS | as_nl) ;; #(
2985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2986 *) { eval $ac_var=; unset $ac_var;} ;;
2987 esac ;;
2988 esac
2989 done
2990
2991 (set) 2>&1 |
2992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2993 *${as_nl}ac_space=\ *)
2994 # `set' does not quote correctly, so add quotes: double-quote
2995 # substitution turns \\\\ into \\, and sed turns \\ into \.
2996 sed -n \
2997 "s/'/'\\\\''/g;
2998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2999 ;; #(
3000 *)
3001 # `set' quotes correctly as required by POSIX, so do not add quotes.
3002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3003 ;;
3004 esac |
3005 sort
3006 ) |
3007 sed '
3008 /^ac_cv_env_/b end
3009 t clear
3010 :clear
3011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3012 t end
3013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3014 :end' >>confcache
3015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3016 if test -w "$cache_file"; then
3017 if test "x$cache_file" != "x/dev/null"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3019 $as_echo "$as_me: updating cache $cache_file" >&6;}
3020 if test ! -f "$cache_file" || test -h "$cache_file"; then
3021 cat confcache >"$cache_file"
3022 else
3023 case $cache_file in #(
3024 */* | ?:*)
3025 mv -f confcache "$cache_file"$$ &&
3026 mv -f "$cache_file"$$ "$cache_file" ;; #(
3027 *)
3028 mv -f confcache "$cache_file" ;;
3029 esac
3030 fi
3031 fi
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3034 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3035 fi
3036 fi
3037 rm -f confcache
3038
3039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3040 # Let make expand exec_prefix.
3041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3042
3043 DEFS=-DHAVE_CONFIG_H
3044
3045 ac_libobjs=
3046 ac_ltlibobjs=
3047 U=
3048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3049 # 1. Remove the extension, and $U if already installed.
3050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3053 # will be set to the directory where LIBOBJS objects are built.
3054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3056 done
3057 LIBOBJS=$ac_libobjs
3058
3059 LTLIBOBJS=$ac_ltlibobjs
3060
3061
3062
3063 : "${CONFIG_STATUS=./config.status}"
3064 ac_write_fail=0
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3068 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3069 as_write_fail=0
3070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3071 #! $SHELL
3072 # Generated by $as_me.
3073 # Run this file to recreate the current configuration.
3074 # Compiler output produced by configure, useful for debugging
3075 # configure, is in config.log if it exists.
3076
3077 debug=false
3078 ac_cs_recheck=false
3079 ac_cs_silent=false
3080
3081 SHELL=\${CONFIG_SHELL-$SHELL}
3082 export SHELL
3083 _ASEOF
3084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3085 ## -------------------- ##
3086 ## M4sh Initialization. ##
3087 ## -------------------- ##
3088
3089 # Be more Bourne compatible
3090 DUALCASE=1; export DUALCASE # for MKS sh
3091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3092 emulate sh
3093 NULLCMD=:
3094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3095 # is contrary to our usage. Disable this feature.
3096 alias -g '${1+"$@"}'='"$@"'
3097 setopt NO_GLOB_SUBST
3098 else
3099 case `(set -o) 2>/dev/null` in #(
3100 *posix*) :
3101 set -o posix ;; #(
3102 *) :
3103 ;;
3104 esac
3105 fi
3106
3107
3108 as_nl='
3109 '
3110 export as_nl
3111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3115 # Prefer a ksh shell builtin over an external printf program on Solaris,
3116 # but without wasting forks for bash or zsh.
3117 if test -z "$BASH_VERSION$ZSH_VERSION" \
3118 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3119 as_echo='print -r --'
3120 as_echo_n='print -rn --'
3121 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3122 as_echo='printf %s\n'
3123 as_echo_n='printf %s'
3124 else
3125 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3126 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3127 as_echo_n='/usr/ucb/echo -n'
3128 else
3129 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3130 as_echo_n_body='eval
3131 arg=$1;
3132 case $arg in #(
3133 *"$as_nl"*)
3134 expr "X$arg" : "X\\(.*\\)$as_nl";
3135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3136 esac;
3137 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3138 '
3139 export as_echo_n_body
3140 as_echo_n='sh -c $as_echo_n_body as_echo'
3141 fi
3142 export as_echo_body
3143 as_echo='sh -c $as_echo_body as_echo'
3144 fi
3145
3146 # The user is always right.
3147 if test "${PATH_SEPARATOR+set}" != set; then
3148 PATH_SEPARATOR=:
3149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3151 PATH_SEPARATOR=';'
3152 }
3153 fi
3154
3155
3156 # IFS
3157 # We need space, tab and new line, in precisely that order. Quoting is
3158 # there to prevent editors from complaining about space-tab.
3159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3160 # splitting by setting IFS to empty value.)
3161 IFS=" "" $as_nl"
3162
3163 # Find who we are. Look in the path if we contain no directory separator.
3164 as_myself=
3165 case $0 in #((
3166 *[\\/]* ) as_myself=$0 ;;
3167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3173 done
3174 IFS=$as_save_IFS
3175
3176 ;;
3177 esac
3178 # We did not find ourselves, most probably we were run as `sh COMMAND'
3179 # in which case we are not to be found in the path.
3180 if test "x$as_myself" = x; then
3181 as_myself=$0
3182 fi
3183 if test ! -f "$as_myself"; then
3184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3185 exit 1
3186 fi
3187
3188 # Unset variables that we do not need and which cause bugs (e.g. in
3189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3190 # suppresses any "Segmentation fault" message there. '((' could
3191 # trigger a bug in pdksh 5.2.14.
3192 for as_var in BASH_ENV ENV MAIL MAILPATH
3193 do eval test x\${$as_var+set} = xset \
3194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3195 done
3196 PS1='$ '
3197 PS2='> '
3198 PS4='+ '
3199
3200 # NLS nuisances.
3201 LC_ALL=C
3202 export LC_ALL
3203 LANGUAGE=C
3204 export LANGUAGE
3205
3206 # CDPATH.
3207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3208
3209
3210 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3211 # ----------------------------------------
3212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3214 # script with STATUS, using 1 if that was 0.
3215 as_fn_error ()
3216 {
3217 as_status=$1; test $as_status -eq 0 && as_status=1
3218 if test "$4"; then
3219 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3221 fi
3222 $as_echo "$as_me: error: $2" >&2
3223 as_fn_exit $as_status
3224 } # as_fn_error
3225
3226
3227 # as_fn_set_status STATUS
3228 # -----------------------
3229 # Set $? to STATUS, without forking.
3230 as_fn_set_status ()
3231 {
3232 return $1
3233 } # as_fn_set_status
3234
3235 # as_fn_exit STATUS
3236 # -----------------
3237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3238 as_fn_exit ()
3239 {
3240 set +e
3241 as_fn_set_status $1
3242 exit $1
3243 } # as_fn_exit
3244
3245 # as_fn_unset VAR
3246 # ---------------
3247 # Portably unset VAR.
3248 as_fn_unset ()
3249 {
3250 { eval $1=; unset $1;}
3251 }
3252 as_unset=as_fn_unset
3253 # as_fn_append VAR VALUE
3254 # ----------------------
3255 # Append the text in VALUE to the end of the definition contained in VAR. Take
3256 # advantage of any shell optimizations that allow amortized linear growth over
3257 # repeated appends, instead of the typical quadratic growth present in naive
3258 # implementations.
3259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3260 eval 'as_fn_append ()
3261 {
3262 eval $1+=\$2
3263 }'
3264 else
3265 as_fn_append ()
3266 {
3267 eval $1=\$$1\$2
3268 }
3269 fi # as_fn_append
3270
3271 # as_fn_arith ARG...
3272 # ------------------
3273 # Perform arithmetic evaluation on the ARGs, and store the result in the
3274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3275 # must be portable across $(()) and expr.
3276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3277 eval 'as_fn_arith ()
3278 {
3279 as_val=$(( $* ))
3280 }'
3281 else
3282 as_fn_arith ()
3283 {
3284 as_val=`expr "$@" || test $? -eq 1`
3285 }
3286 fi # as_fn_arith
3287
3288
3289 if expr a : '\(a\)' >/dev/null 2>&1 &&
3290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3291 as_expr=expr
3292 else
3293 as_expr=false
3294 fi
3295
3296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3297 as_basename=basename
3298 else
3299 as_basename=false
3300 fi
3301
3302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3303 as_dirname=dirname
3304 else
3305 as_dirname=false
3306 fi
3307
3308 as_me=`$as_basename -- "$0" ||
3309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3310 X"$0" : 'X\(//\)$' \| \
3311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3312 $as_echo X/"$0" |
3313 sed '/^.*\/\([^/][^/]*\)\/*$/{
3314 s//\1/
3315 q
3316 }
3317 /^X\/\(\/\/\)$/{
3318 s//\1/
3319 q
3320 }
3321 /^X\/\(\/\).*/{
3322 s//\1/
3323 q
3324 }
3325 s/.*/./; q'`
3326
3327 # Avoid depending upon Character Ranges.
3328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3331 as_cr_digits='0123456789'
3332 as_cr_alnum=$as_cr_Letters$as_cr_digits
3333
3334 ECHO_C= ECHO_N= ECHO_T=
3335 case `echo -n x` in #(((((
3336 -n*)
3337 case `echo 'xy\c'` in
3338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3339 xy) ECHO_C='\c';;
3340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3341 ECHO_T=' ';;
3342 esac;;
3343 *)
3344 ECHO_N='-n';;
3345 esac
3346
3347 rm -f conf$$ conf$$.exe conf$$.file
3348 if test -d conf$$.dir; then
3349 rm -f conf$$.dir/conf$$.file
3350 else
3351 rm -f conf$$.dir
3352 mkdir conf$$.dir 2>/dev/null
3353 fi
3354 if (echo >conf$$.file) 2>/dev/null; then
3355 if ln -s conf$$.file conf$$ 2>/dev/null; then
3356 as_ln_s='ln -s'
3357 # ... but there are two gotchas:
3358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3360 # In both cases, we have to default to `cp -pR'.
3361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3362 as_ln_s='cp -pR'
3363 elif ln conf$$.file conf$$ 2>/dev/null; then
3364 as_ln_s=ln
3365 else
3366 as_ln_s='cp -pR'
3367 fi
3368 else
3369 as_ln_s='cp -pR'
3370 fi
3371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3372 rmdir conf$$.dir 2>/dev/null
3373
3374
3375 # as_fn_mkdir_p
3376 # -------------
3377 # Create "$as_dir" as a directory, including parents if necessary.
3378 as_fn_mkdir_p ()
3379 {
3380
3381 case $as_dir in #(
3382 -*) as_dir=./$as_dir;;
3383 esac
3384 test -d "$as_dir" || eval $as_mkdir_p || {
3385 as_dirs=
3386 while :; do
3387 case $as_dir in #(
3388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3389 *) as_qdir=$as_dir;;
3390 esac
3391 as_dirs="'$as_qdir' $as_dirs"
3392 as_dir=`$as_dirname -- "$as_dir" ||
3393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3394 X"$as_dir" : 'X\(//\)[^/]' \| \
3395 X"$as_dir" : 'X\(//\)$' \| \
3396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3397 $as_echo X"$as_dir" |
3398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3399 s//\1/
3400 q
3401 }
3402 /^X\(\/\/\)[^/].*/{
3403 s//\1/
3404 q
3405 }
3406 /^X\(\/\/\)$/{
3407 s//\1/
3408 q
3409 }
3410 /^X\(\/\).*/{
3411 s//\1/
3412 q
3413 }
3414 s/.*/./; q'`
3415 test -d "$as_dir" && break
3416 done
3417 test -z "$as_dirs" || eval "mkdir $as_dirs"
3418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3419
3420
3421 } # as_fn_mkdir_p
3422 if mkdir -p . 2>/dev/null; then
3423 as_mkdir_p='mkdir -p "$as_dir"'
3424 else
3425 test -d ./-p && rmdir ./-p
3426 as_mkdir_p=false
3427 fi
3428
3429
3430 # as_fn_executable_p FILE
3431 # -----------------------
3432 # Test if FILE is an executable regular file.
3433 as_fn_executable_p ()
3434 {
3435 test -f "$1" && test -x "$1"
3436 } # as_fn_executable_p
3437 as_test_x='test -x'
3438 as_executable_p=as_fn_executable_p
3439
3440 # Sed expression to map a string onto a valid CPP name.
3441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3442
3443 # Sed expression to map a string onto a valid variable name.
3444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3445
3446
3447 exec 6>&1
3448 ## ----------------------------------- ##
3449 ## Main body of $CONFIG_STATUS script. ##
3450 ## ----------------------------------- ##
3451 _ASEOF
3452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3453
3454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3455 # Save the log message, to keep $0 and so on meaningful, and to
3456 # report actual input values of CONFIG_FILES etc. instead of their
3457 # values after options handling.
3458 ac_log="
3459 This file was extended by codylib $as_me 0.0, which was
3460 generated by GNU Autoconf 2.69. Invocation command line was
3461
3462 CONFIG_FILES = $CONFIG_FILES
3463 CONFIG_HEADERS = $CONFIG_HEADERS
3464 CONFIG_LINKS = $CONFIG_LINKS
3465 CONFIG_COMMANDS = $CONFIG_COMMANDS
3466 $ $0 $@
3467
3468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3469 "
3470
3471 _ACEOF
3472
3473 case $ac_config_files in *"
3474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3475 esac
3476
3477 case $ac_config_headers in *"
3478 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3479 esac
3480
3481
3482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3483 # Files that config.status was made for.
3484 config_files="$ac_config_files"
3485 config_headers="$ac_config_headers"
3486
3487 _ACEOF
3488
3489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3490 ac_cs_usage="\
3491 \`$as_me' instantiates files and other configuration actions
3492 from templates according to the current configuration. Unless the files
3493 and actions are specified as TAGs, all are instantiated by default.
3494
3495 Usage: $0 [OPTION]... [TAG]...
3496
3497 -h, --help print this help, then exit
3498 -V, --version print version number and configuration settings, then exit
3499 --config print configuration, then exit
3500 -q, --quiet, --silent
3501 do not print progress messages
3502 -d, --debug don't remove temporary files
3503 --recheck update $as_me by reconfiguring in the same conditions
3504 --file=FILE[:TEMPLATE]
3505 instantiate the configuration file FILE
3506 --header=FILE[:TEMPLATE]
3507 instantiate the configuration header FILE
3508
3509 Configuration files:
3510 $config_files
3511
3512 Configuration headers:
3513 $config_headers
3514
3515 Report bugs to <github.com/urnathan/libcody>."
3516
3517 _ACEOF
3518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3519 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3520 ac_cs_version="\\
3521 codylib config.status 0.0
3522 configured by $0, generated by GNU Autoconf 2.69,
3523 with options \\"\$ac_cs_config\\"
3524
3525 Copyright (C) 2012 Free Software Foundation, Inc.
3526 This config.status script is free software; the Free Software Foundation
3527 gives unlimited permission to copy, distribute and modify it."
3528
3529 ac_pwd='$ac_pwd'
3530 srcdir='$srcdir'
3531 test -n "\$AWK" || AWK=awk
3532 _ACEOF
3533
3534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3535 # The default lists apply if the user does not specify any file.
3536 ac_need_defaults=:
3537 while test $# != 0
3538 do
3539 case $1 in
3540 --*=?*)
3541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3543 ac_shift=:
3544 ;;
3545 --*=)
3546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3547 ac_optarg=
3548 ac_shift=:
3549 ;;
3550 *)
3551 ac_option=$1
3552 ac_optarg=$2
3553 ac_shift=shift
3554 ;;
3555 esac
3556
3557 case $ac_option in
3558 # Handling of the options.
3559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3560 ac_cs_recheck=: ;;
3561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3562 $as_echo "$ac_cs_version"; exit ;;
3563 --config | --confi | --conf | --con | --co | --c )
3564 $as_echo "$ac_cs_config"; exit ;;
3565 --debug | --debu | --deb | --de | --d | -d )
3566 debug=: ;;
3567 --file | --fil | --fi | --f )
3568 $ac_shift
3569 case $ac_optarg in
3570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3571 '') as_fn_error $? "missing file argument" ;;
3572 esac
3573 as_fn_append CONFIG_FILES " '$ac_optarg'"
3574 ac_need_defaults=false;;
3575 --header | --heade | --head | --hea )
3576 $ac_shift
3577 case $ac_optarg in
3578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3579 esac
3580 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3581 ac_need_defaults=false;;
3582 --he | --h)
3583 # Conflict between --help and --header
3584 as_fn_error $? "ambiguous option: \`$1'
3585 Try \`$0 --help' for more information.";;
3586 --help | --hel | -h )
3587 $as_echo "$ac_cs_usage"; exit ;;
3588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3590 ac_cs_silent=: ;;
3591
3592 # This is an error.
3593 -*) as_fn_error $? "unrecognized option: \`$1'
3594 Try \`$0 --help' for more information." ;;
3595
3596 *) as_fn_append ac_config_targets " $1"
3597 ac_need_defaults=false ;;
3598
3599 esac
3600 shift
3601 done
3602
3603 ac_configure_extra_args=
3604
3605 if $ac_cs_silent; then
3606 exec 6>/dev/null
3607 ac_configure_extra_args="$ac_configure_extra_args --silent"
3608 fi
3609
3610 _ACEOF
3611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3612 if \$ac_cs_recheck; then
3613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3614 shift
3615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3616 CONFIG_SHELL='$SHELL'
3617 export CONFIG_SHELL
3618 exec "\$@"
3619 fi
3620
3621 _ACEOF
3622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3623 exec 5>>config.log
3624 {
3625 echo
3626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3627 ## Running $as_me. ##
3628 _ASBOX
3629 $as_echo "$ac_log"
3630 } >&5
3631
3632 _ACEOF
3633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3634 _ACEOF
3635
3636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3637
3638 # Handling of arguments.
3639 for ac_config_target in $ac_config_targets
3640 do
3641 case $ac_config_target in
3642 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
3643 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3644
3645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3646 esac
3647 done
3648
3649
3650 # If the user did not use the arguments to specify the items to instantiate,
3651 # then the envvar interface is used. Set only those that are not.
3652 # We use the long form for the default assignment because of an extremely
3653 # bizarre bug on SunOS 4.1.3.
3654 if $ac_need_defaults; then
3655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3657 fi
3658
3659 # Have a temporary directory for convenience. Make it in the build tree
3660 # simply because there is no reason against having it here, and in addition,
3661 # creating and moving files from /tmp can sometimes cause problems.
3662 # Hook for its removal unless debugging.
3663 # Note that there is a small window in which the directory will not be cleaned:
3664 # after its creation but before its name has been assigned to `$tmp'.
3665 $debug ||
3666 {
3667 tmp= ac_tmp=
3668 trap 'exit_status=$?
3669 : "${ac_tmp:=$tmp}"
3670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3671 ' 0
3672 trap 'as_fn_exit 1' 1 2 13 15
3673 }
3674 # Create a (secure) tmp directory for tmp files.
3675
3676 {
3677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3678 test -d "$tmp"
3679 } ||
3680 {
3681 tmp=./conf$$-$RANDOM
3682 (umask 077 && mkdir "$tmp")
3683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3684 ac_tmp=$tmp
3685
3686 # Set up the scripts for CONFIG_FILES section.
3687 # No need to generate them if there are no CONFIG_FILES.
3688 # This happens for instance with `./config.status config.h'.
3689 if test -n "$CONFIG_FILES"; then
3690
3691
3692 ac_cr=`echo X | tr X '\015'`
3693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3694 # But we know of no other shell where ac_cr would be empty at this
3695 # point, so we can use a bashism as a fallback.
3696 if test "x$ac_cr" = x; then
3697 eval ac_cr=\$\'\\r\'
3698 fi
3699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3701 ac_cs_awk_cr='\\r'
3702 else
3703 ac_cs_awk_cr=$ac_cr
3704 fi
3705
3706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3707 _ACEOF
3708
3709
3710 {
3711 echo "cat >conf$$subs.awk <<_ACEOF" &&
3712 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3713 echo "_ACEOF"
3714 } >conf$$subs.sh ||
3715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3717 ac_delim='%!_!# '
3718 for ac_last_try in false false false false false :; do
3719 . ./conf$$subs.sh ||
3720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3721
3722 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3723 if test $ac_delim_n = $ac_delim_num; then
3724 break
3725 elif $ac_last_try; then
3726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3727 else
3728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3729 fi
3730 done
3731 rm -f conf$$subs.sh
3732
3733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3735 _ACEOF
3736 sed -n '
3737 h
3738 s/^/S["/; s/!.*/"]=/
3739 p
3740 g
3741 s/^[^!]*!//
3742 :repl
3743 t repl
3744 s/'"$ac_delim"'$//
3745 t delim
3746 :nl
3747 h
3748 s/\(.\{148\}\)..*/\1/
3749 t more1
3750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3751 p
3752 n
3753 b repl
3754 :more1
3755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3756 p
3757 g
3758 s/.\{148\}//
3759 t nl
3760 :delim
3761 h
3762 s/\(.\{148\}\)..*/\1/
3763 t more2
3764 s/["\\]/\\&/g; s/^/"/; s/$/"/
3765 p
3766 b
3767 :more2
3768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3769 p
3770 g
3771 s/.\{148\}//
3772 t delim
3773 ' <conf$$subs.awk | sed '
3774 /^[^""]/{
3775 N
3776 s/\n//
3777 }
3778 ' >>$CONFIG_STATUS || ac_write_fail=1
3779 rm -f conf$$subs.awk
3780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3781 _ACAWK
3782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3783 for (key in S) S_is_set[key] = 1
3784 FS = "\a"
3785
3786 }
3787 {
3788 line = $ 0
3789 nfields = split(line, field, "@")
3790 substed = 0
3791 len = length(field[1])
3792 for (i = 2; i < nfields; i++) {
3793 key = field[i]
3794 keylen = length(key)
3795 if (S_is_set[key]) {
3796 value = S[key]
3797 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3798 len += length(value) + length(field[++i])
3799 substed = 1
3800 } else
3801 len += 1 + keylen
3802 }
3803
3804 print line
3805 }
3806
3807 _ACAWK
3808 _ACEOF
3809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3812 else
3813 cat
3814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3816 _ACEOF
3817
3818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3820 # trailing colons and then remove the whole line if VPATH becomes empty
3821 # (actually we leave an empty line to preserve line numbers).
3822 if test "x$srcdir" = x.; then
3823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3824 h
3825 s///
3826 s/^/:/
3827 s/[ ]*$/:/
3828 s/:\$(srcdir):/:/g
3829 s/:\${srcdir}:/:/g
3830 s/:@srcdir@:/:/g
3831 s/^:*//
3832 s/:*$//
3833 x
3834 s/\(=[ ]*\).*/\1/
3835 G
3836 s/\n//
3837 s/^[^=]*=[ ]*$//
3838 }'
3839 fi
3840
3841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3842 fi # test -n "$CONFIG_FILES"
3843
3844 # Set up the scripts for CONFIG_HEADERS section.
3845 # No need to generate them if there are no CONFIG_HEADERS.
3846 # This happens for instance with `./config.status Makefile'.
3847 if test -n "$CONFIG_HEADERS"; then
3848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3849 BEGIN {
3850 _ACEOF
3851
3852 # Transform confdefs.h into an awk script `defines.awk', embedded as
3853 # here-document in config.status, that substitutes the proper values into
3854 # config.h.in to produce config.h.
3855
3856 # Create a delimiter string that does not exist in confdefs.h, to ease
3857 # handling of long lines.
3858 ac_delim='%!_!# '
3859 for ac_last_try in false false :; do
3860 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3861 if test -z "$ac_tt"; then
3862 break
3863 elif $ac_last_try; then
3864 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3865 else
3866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3867 fi
3868 done
3869
3870 # For the awk script, D is an array of macro values keyed by name,
3871 # likewise P contains macro parameters if any. Preserve backslash
3872 # newline sequences.
3873
3874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3875 sed -n '
3876 s/.\{148\}/&'"$ac_delim"'/g
3877 t rset
3878 :rset
3879 s/^[ ]*#[ ]*define[ ][ ]*/ /
3880 t def
3881 d
3882 :def
3883 s/\\$//
3884 t bsnl
3885 s/["\\]/\\&/g
3886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3887 D["\1"]=" \3"/p
3888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
3889 d
3890 :bsnl
3891 s/["\\]/\\&/g
3892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3893 D["\1"]=" \3\\\\\\n"\\/p
3894 t cont
3895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3896 t cont
3897 d
3898 :cont
3899 n
3900 s/.\{148\}/&'"$ac_delim"'/g
3901 t clear
3902 :clear
3903 s/\\$//
3904 t bsnlc
3905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
3906 d
3907 :bsnlc
3908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3909 b cont
3910 ' <confdefs.h | sed '
3911 s/'"$ac_delim"'/"\\\
3912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
3913
3914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3915 for (key in D) D_is_set[key] = 1
3916 FS = "\a"
3917 }
3918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
3919 line = \$ 0
3920 split(line, arg, " ")
3921 if (arg[1] == "#") {
3922 defundef = arg[2]
3923 mac1 = arg[3]
3924 } else {
3925 defundef = substr(arg[1], 2)
3926 mac1 = arg[2]
3927 }
3928 split(mac1, mac2, "(") #)
3929 macro = mac2[1]
3930 prefix = substr(line, 1, index(line, defundef) - 1)
3931 if (D_is_set[macro]) {
3932 # Preserve the white space surrounding the "#".
3933 print prefix "define", macro P[macro] D[macro]
3934 next
3935 } else {
3936 # Replace #undef with comments. This is necessary, for example,
3937 # in the case of _POSIX_SOURCE, which is predefined and required
3938 # on some systems where configure will not decide to define it.
3939 if (defundef == "undef") {
3940 print "/*", prefix defundef, macro, "*/"
3941 next
3942 }
3943 }
3944 }
3945 { print }
3946 _ACAWK
3947 _ACEOF
3948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3949 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
3950 fi # test -n "$CONFIG_HEADERS"
3951
3952
3953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
3954 shift
3955 for ac_tag
3956 do
3957 case $ac_tag in
3958 :[FHLC]) ac_mode=$ac_tag; continue;;
3959 esac
3960 case $ac_mode$ac_tag in
3961 :[FHL]*:*);;
3962 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3963 :[FH]-) ac_tag=-:-;;
3964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3965 esac
3966 ac_save_IFS=$IFS
3967 IFS=:
3968 set x $ac_tag
3969 IFS=$ac_save_IFS
3970 shift
3971 ac_file=$1
3972 shift
3973
3974 case $ac_mode in
3975 :L) ac_source=$1;;
3976 :[FH])
3977 ac_file_inputs=
3978 for ac_f
3979 do
3980 case $ac_f in
3981 -) ac_f="$ac_tmp/stdin";;
3982 *) # Look for the file first in the build tree, then in the source tree
3983 # (if the path is not absolute). The absolute path cannot be DOS-style,
3984 # because $ac_f cannot contain `:'.
3985 test -f "$ac_f" ||
3986 case $ac_f in
3987 [\\/$]*) false;;
3988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3989 esac ||
3990 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3991 esac
3992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3993 as_fn_append ac_file_inputs " '$ac_f'"
3994 done
3995
3996 # Let's still pretend it is `configure' which instantiates (i.e., don't
3997 # use $as_me), people would be surprised to read:
3998 # /* config.h. Generated by config.status. */
3999 configure_input='Generated from '`
4000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4001 `' by configure.'
4002 if test x"$ac_file" != x-; then
4003 configure_input="$ac_file. $configure_input"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4005 $as_echo "$as_me: creating $ac_file" >&6;}
4006 fi
4007 # Neutralize special characters interpreted by sed in replacement strings.
4008 case $configure_input in #(
4009 *\&* | *\|* | *\\* )
4010 ac_sed_conf_input=`$as_echo "$configure_input" |
4011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4012 *) ac_sed_conf_input=$configure_input;;
4013 esac
4014
4015 case $ac_tag in
4016 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4018 esac
4019 ;;
4020 esac
4021
4022 ac_dir=`$as_dirname -- "$ac_file" ||
4023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4024 X"$ac_file" : 'X\(//\)[^/]' \| \
4025 X"$ac_file" : 'X\(//\)$' \| \
4026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4027 $as_echo X"$ac_file" |
4028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4029 s//\1/
4030 q
4031 }
4032 /^X\(\/\/\)[^/].*/{
4033 s//\1/
4034 q
4035 }
4036 /^X\(\/\/\)$/{
4037 s//\1/
4038 q
4039 }
4040 /^X\(\/\).*/{
4041 s//\1/
4042 q
4043 }
4044 s/.*/./; q'`
4045 as_dir="$ac_dir"; as_fn_mkdir_p
4046 ac_builddir=.
4047
4048 case "$ac_dir" in
4049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4050 *)
4051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4052 # A ".." for each directory in $ac_dir_suffix.
4053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4054 case $ac_top_builddir_sub in
4055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4057 esac ;;
4058 esac
4059 ac_abs_top_builddir=$ac_pwd
4060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4061 # for backward compatibility:
4062 ac_top_builddir=$ac_top_build_prefix
4063
4064 case $srcdir in
4065 .) # We are building in place.
4066 ac_srcdir=.
4067 ac_top_srcdir=$ac_top_builddir_sub
4068 ac_abs_top_srcdir=$ac_pwd ;;
4069 [\\/]* | ?:[\\/]* ) # Absolute name.
4070 ac_srcdir=$srcdir$ac_dir_suffix;
4071 ac_top_srcdir=$srcdir
4072 ac_abs_top_srcdir=$srcdir ;;
4073 *) # Relative name.
4074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4075 ac_top_srcdir=$ac_top_build_prefix$srcdir
4076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4077 esac
4078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4079
4080
4081 case $ac_mode in
4082 :F)
4083 #
4084 # CONFIG_FILE
4085 #
4086
4087 _ACEOF
4088
4089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4090 # If the template does not know about datarootdir, expand it.
4091 # FIXME: This hack should be removed a few years after 2.60.
4092 ac_datarootdir_hack=; ac_datarootdir_seen=
4093 ac_sed_dataroot='
4094 /datarootdir/ {
4095 p
4096 q
4097 }
4098 /@datadir@/p
4099 /@docdir@/p
4100 /@infodir@/p
4101 /@localedir@/p
4102 /@mandir@/p'
4103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4104 *datarootdir*) ac_datarootdir_seen=yes;;
4105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4108 _ACEOF
4109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4110 ac_datarootdir_hack='
4111 s&@datadir@&$datadir&g
4112 s&@docdir@&$docdir&g
4113 s&@infodir@&$infodir&g
4114 s&@localedir@&$localedir&g
4115 s&@mandir@&$mandir&g
4116 s&\\\${datarootdir}&$datarootdir&g' ;;
4117 esac
4118 _ACEOF
4119
4120 # Neutralize VPATH when `$srcdir' = `.'.
4121 # Shell code in configure.ac might set extrasub.
4122 # FIXME: do we really want to maintain this feature?
4123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4124 ac_sed_extra="$ac_vpsub
4125 $extrasub
4126 _ACEOF
4127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4128 :t
4129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4130 s|@configure_input@|$ac_sed_conf_input|;t t
4131 s&@top_builddir@&$ac_top_builddir_sub&;t t
4132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4133 s&@srcdir@&$ac_srcdir&;t t
4134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4135 s&@top_srcdir@&$ac_top_srcdir&;t t
4136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4137 s&@builddir@&$ac_builddir&;t t
4138 s&@abs_builddir@&$ac_abs_builddir&;t t
4139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4140 $ac_datarootdir_hack
4141 "
4142 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4143 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4144
4145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4146 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4148 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4150 which seems to be undefined. Please make sure it is defined" >&5
4151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4152 which seems to be undefined. Please make sure it is defined" >&2;}
4153
4154 rm -f "$ac_tmp/stdin"
4155 case $ac_file in
4156 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4157 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4158 esac \
4159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4160 ;;
4161 :H)
4162 #
4163 # CONFIG_HEADER
4164 #
4165 if test x"$ac_file" != x-; then
4166 {
4167 $as_echo "/* $configure_input */" \
4168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4169 } >"$ac_tmp/config.h" \
4170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4171 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4174 else
4175 rm -f "$ac_file"
4176 mv "$ac_tmp/config.h" "$ac_file" \
4177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4178 fi
4179 else
4180 $as_echo "/* $configure_input */" \
4181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4182 || as_fn_error $? "could not create -" "$LINENO" 5
4183 fi
4184 ;;
4185
4186
4187 esac
4188
4189 done # for ac_tag
4190
4191
4192 as_fn_exit 0
4193 _ACEOF
4194 ac_clean_files=$ac_clean_files_save
4195
4196 test $ac_write_fail = 0 ||
4197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4198
4199
4200 # configure is writing to config.log, and then calls config.status.
4201 # config.status does its own redirection, appending to config.log.
4202 # Unfortunately, on DOS this fails, as config.log is still kept open
4203 # by configure, so config.status won't be able to write to it; its
4204 # output is simply discarded. So we exec the FD to /dev/null,
4205 # effectively closing config.log, so it can be properly (re)opened and
4206 # appended to by config.status. When coming back to configure, we
4207 # need to make the FD available again.
4208 if test "$no_create" != yes; then
4209 ac_cs_success=:
4210 ac_config_status_args=
4211 test "$silent" = yes &&
4212 ac_config_status_args="$ac_config_status_args --quiet"
4213 exec 5>/dev/null
4214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4215 exec 5>>config.log
4216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4217 # would make configure fail if this is the last instruction.
4218 $ac_cs_success || as_fn_exit 1
4219 fi
4220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4223 fi
4224