Debian Codegraph @

configure

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