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