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