2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Photos C++ Interface 3.3.
5 # Report bugs to <tomasz.przedzinski@uj.edu.pl >.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Photos C++ Interface'
271 PACKAGE_TARNAME='photos-c---interface'
272 PACKAGE_VERSION='3.3'
273 PACKAGE_STRING='Photos C++ Interface 3.3'
274 PACKAGE_BUGREPORT='tomasz.przedzinski@uj.edu.pl '
276 ac_default_prefix=`pwd`
277 ac_unique_file="src/photosCInterfaces/Photos.cxx"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 CPP DIRECT_CPP CXXCPP EGREP LIBOBJS with_hepmc with_photos pythia8data with_tauola with_pythia8 with_mc_tester LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CXX_set=${CXX+set}
773 ac_env_CXX_value=$CXX
774 ac_cv_env_CXX_set=${CXX+set}
775 ac_cv_env_CXX_value=$CXX
776 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_env_CXXFLAGS_value=$CXXFLAGS
778 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780 ac_env_F77_set=${F77+set}
781 ac_env_F77_value=$F77
782 ac_cv_env_F77_set=${F77+set}
783 ac_cv_env_F77_value=$F77
784 ac_env_FFLAGS_set=${FFLAGS+set}
785 ac_env_FFLAGS_value=$FFLAGS
786 ac_cv_env_FFLAGS_set=${FFLAGS+set}
787 ac_cv_env_FFLAGS_value=$FFLAGS
788 ac_env_CPP_set=${CPP+set}
789 ac_env_CPP_value=$CPP
790 ac_cv_env_CPP_set=${CPP+set}
791 ac_cv_env_CPP_value=$CPP
792 ac_env_CXXCPP_set=${CXXCPP+set}
793 ac_env_CXXCPP_value=$CXXCPP
794 ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 ac_cv_env_CXXCPP_value=$CXXCPP
798 # Report the --help message.
800 if test "$ac_init_help" = "long"; then
801 # Omit some internal or obsolete options to make the list less imposing.
802 # This message is too long to be a string in the A/UX 3.1 sh.
804 \`configure' configures Photos C++ Interface 3.3 to adapt to many kinds of systems.
806 Usage: $0 [OPTION]... [VAR=VALUE]...
808 To assign environment variables (e.g., CC, CFLAGS...), specify them as
809 VAR=VALUE. See below for descriptions of some of the useful variables.
811 Defaults for the options are specified in brackets.
814 -h, --help display this help and exit
815 --help=short display options specific to this package
816 --help=recursive display the short help of all the included packages
817 -V, --version display version information and exit
818 -q, --quiet, --silent do not print \`checking...' messages
819 --cache-file=FILE cache test results in FILE [disabled]
820 -C, --config-cache alias for \`--cache-file=config.cache'
821 -n, --no-create do not create output files
822 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 Installation directories:
828 --prefix=PREFIX install architecture-independent files in PREFIX
830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
833 By default, \`make install' will install all the files in
834 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836 for instance \`--prefix=\$HOME'.
838 For better control, use the options below.
840 Fine tuning of the installation directories:
841 --bindir=DIR user executables [EPREFIX/bin]
842 --sbindir=DIR system admin executables [EPREFIX/sbin]
843 --libexecdir=DIR program executables [EPREFIX/libexec]
844 --datadir=DIR read-only architecture-independent data [PREFIX/share]
845 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848 --libdir=DIR object code libraries [EPREFIX/lib]
849 --includedir=DIR C header files [PREFIX/include]
850 --oldincludedir=DIR C header files for non-gcc [/usr/include]
851 --infodir=DIR info documentation [PREFIX/info]
852 --mandir=DIR man documentation [PREFIX/man]
859 if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of Photos C++ Interface 3.3:";;
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-debug Enable debug flags
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-hepmc Path to HepMC 2.xx (use --without-hepmc to compile
875 --with-mc-tester Path to MC-TESTER 1.23 or later (used by examples
877 --with-pythia8 Path to Pythia 8.1 or later (used by examples only)
878 --with-tauola Path to Tauola C++ interface v1.0.5 or later (used
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 F77 Fortran 77 compiler command
891 FFLAGS Fortran 77 compiler flags
893 CXXCPP C++ preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <tomasz.przedzinski@uj.edu.pl >.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
994 Photos C++ Interface configure 3.3
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by Photos C++ Interface $as_me 3.3, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h; then
1178 sed "/^$/d" confdefs.h | sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_cpp='$CXXCPP $CPPFLAGS'
1346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1354 ##############################################################################
1355 # Process command line options
1357 if test "$AFS_PATHS" == "yes"; then
1358 with_hepmc=$HEPMCLOCATION
1359 with_tauola=$TAUOLALOCATION
1360 with_mc_tester=$MCTESTERLOCATION
1361 with_pythia8=$PYTHIALOCATION
1362 pythia8data=$PYTHIA8DATA
1367 echo "$as_me:$LINENO: checking if HepMC location defined" >&5
1368 echo $ECHO_N "checking if HepMC location defined... $ECHO_C" >&6
1370 # Check whether --with-hepmc or --without-hepmc was given.
1371 if test "${with_hepmc+set}" = set; then
1372 withval="$with_hepmc"
1373 echo "$as_me:$LINENO: result: $with_hepmc" >&5
1374 echo "${ECHO_T}$with_hepmc" >&6
1376 echo "$as_me:$LINENO: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1381 echo "$as_me:$LINENO: checking if MC-TESTER location defined" >&5
1382 echo $ECHO_N "checking if MC-TESTER location defined... $ECHO_C" >&6
1384 # Check whether --with-mc-tester or --without-mc-tester was given.
1385 if test "${with_mc_tester+set}" = set; then
1386 withval="$with_mc_tester"
1387 echo "$as_me:$LINENO: result: $with_mc_tester" >&5
1388 echo "${ECHO_T}$with_mc_tester" >&6
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1395 echo "$as_me:$LINENO: checking if Pythia 8 location defined" >&5
1396 echo $ECHO_N "checking if Pythia 8 location defined... $ECHO_C" >&6
1398 # Check whether --with-pythia8 or --without-pythia8 was given.
1399 if test "${with_pythia8+set}" = set; then
1400 withval="$with_pythia8"
1401 echo "$as_me:$LINENO: result: $with_pythia8" >&5
1402 echo "${ECHO_T}$with_pythia8" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1409 echo "$as_me:$LINENO: checking if Tauola location defined" >&5
1410 echo $ECHO_N "checking if Tauola location defined... $ECHO_C" >&6
1412 # Check whether --with-tauola or --without-tauola was given.
1413 if test "${with_tauola+set}" = set; then
1414 withval="$with_tauola"
1415 echo "$as_me:$LINENO: result: $with_tauola" >&5
1416 echo "${ECHO_T}$with_tauola" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1423 # Check for debug flags
1424 echo "$as_me:$LINENO: checking if debug flags are enabled" >&5
1425 echo $ECHO_N "checking if debug flags are enabled... $ECHO_C" >&6
1426 # Check whether --enable-debug or --disable-debug was given.
1427 if test "${enable_debug+set}" = set; then
1428 enableval="$enable_debug"
1430 echo "$as_me:$LINENO: result: $enable_debug" >&5
1431 echo "${ECHO_T}$enable_debug" >&6 ;
1437 echo "$as_me:$LINENO: result: no" >&5
1438 echo "${ECHO_T}no" >&6 ;
1447 ##############################################################################
1448 # Check for programs
1449 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1450 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1451 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1452 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 cat >conftest.make <<\_ACEOF
1457 @echo 'ac_maketemp="$(MAKE)"'
1459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1460 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1461 if test -n "$ac_maketemp"; then
1462 eval ac_cv_prog_make_${ac_make}_set=yes
1464 eval ac_cv_prog_make_${ac_make}_set=no
1468 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1469 echo "$as_me:$LINENO: result: yes" >&5
1470 echo "${ECHO_T}yes" >&6
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 SET_MAKE="MAKE=${MAKE-make}"
1478 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1479 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1481 if test "$LN_S" = "ln -s"; then
1482 echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1485 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1486 echo "${ECHO_T}no, using $LN_S" >&6
1490 ac_cpp='$CPP $CPPFLAGS'
1491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 if test -n "$ac_tool_prefix"; then
1495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 if test -n "$CC"; then
1503 ac_cv_prog_CC="$CC" # Let the user override the test.
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 test -z "$as_dir" && as_dir=.
1510 for ac_exec_ext in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 if test -n "$CC"; then
1523 echo "$as_me:$LINENO: result: $CC" >&5
1524 echo "${ECHO_T}$CC" >&6
1526 echo "$as_me:$LINENO: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1531 if test -z "$ac_cv_prog_CC"; then
1533 # Extract the first word of "gcc", so it can be a program name with args.
1534 set dummy gcc; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$ac_ct_CC"; then
1541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_ac_ct_CC="gcc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560 if test -n "$ac_ct_CC"; then
1561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1562 echo "${ECHO_T}$ac_ct_CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1573 if test -z "$CC"; then
1574 if test -n "$ac_tool_prefix"; then
1575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1576 set dummy ${ac_tool_prefix}cc; ac_word=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 if test -n "$CC"; then
1583 ac_cv_prog_CC="$CC" # Let the user override the test.
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_CC="${ac_tool_prefix}cc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 if test -n "$CC"; then
1603 echo "$as_me:$LINENO: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1611 if test -z "$ac_cv_prog_CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 if test -n "$ac_ct_CC"; then
1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_ac_ct_CC="cc"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640 if test -n "$ac_ct_CC"; then
1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642 echo "${ECHO_T}$ac_ct_CC" >&6
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 # Extract the first word of "cc", so it can be a program name with args.
1656 set dummy cc; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1674 ac_prog_rejected=yes
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 if test $ac_prog_rejected = yes; then
1685 # We found a bogon in the path, so make sure we never use it.
1686 set dummy $ac_cv_prog_CC
1688 if test $# != 0; then
1689 # We chose a different compiler from the bogus one.
1690 # However, it has the same basename, so the bogon will be chosen
1691 # first if we set CC to just the basename; use the full file name.
1693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1699 if test -n "$CC"; then
1700 echo "$as_me:$LINENO: result: $CC" >&5
1701 echo "${ECHO_T}$CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1708 if test -z "$CC"; then
1709 if test -n "$ac_tool_prefix"; then
1712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$CC"; then
1720 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 if test -n "$CC"; then
1740 echo "$as_me:$LINENO: result: $CC" >&5
1741 echo "${ECHO_T}$CC" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$CC" && break
1750 if test -z "$CC"; then
1754 # Extract the first word of "$ac_prog", so it can be a program name with args.
1755 set dummy $ac_prog; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="$ac_prog"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1789 test -n "$ac_ct_CC" && break
1798 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: no acceptable C compiler found in \$PATH
1801 See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1804 # Provide some information about the compiler.
1805 echo "$as_me:$LINENO:" \
1806 "checking for C compiler version" >&5
1807 ac_compiler=`set X $ac_compile; echo $2`
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1809 (eval $ac_compiler --version </dev/null >&5) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1814 (eval $ac_compiler -v </dev/null >&5) 2>&5
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1818 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1819 (eval $ac_compiler -V </dev/null >&5) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }
1824 cat >conftest.$ac_ext <<_ACEOF
1827 cat confdefs.h >>conftest.$ac_ext
1828 cat >>conftest.$ac_ext <<_ACEOF
1829 /* end confdefs.h. */
1839 ac_clean_files_save=$ac_clean_files
1840 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1841 # Try to create an executable without -o first, disregard a.out.
1842 # It will help us diagnose broken compilers, and finding out an intuition
1844 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1845 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1846 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1847 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1848 (eval $ac_link_default) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; then
1852 # Find the output, starting from the most likely. This scheme is
1853 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856 # Be careful to initialize this variable, since it used to be cached.
1857 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1859 # b.out is created by i960 compilers.
1860 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1862 test -f "$ac_file" || continue
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867 # This is the source file.
1870 # We found the default executable, but exeext='' is most
1874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 # FIXME: I believe we export ac_cv_exeext for Libtool,
1876 # but it would be cool to find out if it's true. Does anybody
1877 # maintain Libtool? --akim.
1885 echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889 See \`config.log' for more details." >&5
1890 echo "$as_me: error: C compiler cannot create executables
1891 See \`config.log' for more details." >&2;}
1892 { (exit 77); exit 77; }; }
1895 ac_exeext=$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_file" >&5
1897 echo "${ECHO_T}$ac_file" >&6
1899 # Check the compiler produces executables we can run. If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904 # If not cross compiling, check that we can run a simple program.
1905 if test "$cross_compiling" != yes; then
1906 if { ac_try='./$ac_file'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1914 if test "$cross_compiling" = maybe; then
1917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'.
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1927 echo "$as_me:$LINENO: result: yes" >&5
1928 echo "${ECHO_T}yes" >&6
1930 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1931 ac_clean_files=$ac_clean_files_save
1932 # Check the compiler produces executables we can run. If not, either
1933 # the compiler is broken, or we cross compile.
1934 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1936 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1937 echo "${ECHO_T}$cross_compiling" >&6
1939 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1942 (eval $ac_link) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1947 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1948 # work properly (i.e., refer to `conftest.exe'), while it won't with
1950 for ac_file in conftest.exe conftest conftest.*; do
1951 test -f "$ac_file" || continue
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&2;}
1965 { (exit 1); exit 1; }; }
1968 rm -f conftest$ac_cv_exeext
1969 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1970 echo "${ECHO_T}$ac_cv_exeext" >&6
1972 rm -f conftest.$ac_ext
1973 EXEEXT=$ac_cv_exeext
1975 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1976 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1977 if test "${ac_cv_objext+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 cat >conftest.$ac_ext <<_ACEOF
1983 cat confdefs.h >>conftest.$ac_ext
1984 cat >>conftest.$ac_ext <<_ACEOF
1985 /* end confdefs.h. */
1995 rm -f conftest.o conftest.obj
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2015 See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2019 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2021 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2022 echo "${ECHO_T}$ac_cv_objext" >&6
2023 OBJEXT=$ac_cv_objext
2025 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2026 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2027 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 cat >conftest.$ac_ext <<_ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2082 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2083 GCC=`test $ac_compiler_gnu = yes && echo yes`
2084 ac_test_CFLAGS=${CFLAGS+set}
2085 ac_save_CFLAGS=$CFLAGS
2087 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2088 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2089 if test "${ac_cv_prog_cc_g+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 cat >conftest.$ac_ext <<_ACEOF
2095 cat confdefs.h >>conftest.$ac_ext
2096 cat >>conftest.$ac_ext <<_ACEOF
2097 /* end confdefs.h. */
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2111 grep -v '^ *+' conftest.er1 >conftest.err
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2138 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2140 if test "$ac_test_CFLAGS" = set; then
2141 CFLAGS=$ac_save_CFLAGS
2142 elif test $ac_cv_prog_cc_g = yes; then
2143 if test "$GCC" = yes; then
2149 if test "$GCC" = yes; then
2155 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2156 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2157 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 ac_cv_prog_cc_stdc=no
2162 cat >conftest.$ac_ext <<_ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2170 #include <sys/types.h>
2171 #include <sys/stat.h>
2172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2173 struct buf { int x; };
2174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2175 static char *e (p, i)
2181 static char *f (char * (*g) (char **, int), char **p, ...)
2186 s = g (p, va_arg (v,int));
2191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2192 function prototypes and stuff, but not '\xHH' hex character constants.
2193 These don't provoke an error unfortunately, instead are silently treated
2194 as 'x'. The following induces an error, until -std1 is added to get
2195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2196 array size at least. It's necessary to write '\x00'==0 to get something
2197 that's true only with -std1. */
2198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2200 int test (int i, double x);
2201 struct s1 {int (*f) (int a);};
2202 struct s2 {int (*f) (double a);};
2203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2214 # Don't try gcc -ansi; that turns off useful extensions and
2215 # breaks some systems' header files.
2216 # AIX -qlanglvl=ansi
2217 # Ultrix and OSF/1 -std1
2218 # HP-UX 10.20 and later -Ae
2219 # HP-UX older versions -Aa -D_HPUX_SOURCE
2220 # SVR4 -Xc -D__EXTENSIONS__
2221 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2223 CC="$ac_save_CC $ac_arg"
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2228 grep -v '^ *+' conftest.er1 >conftest.err
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cc_stdc=$ac_arg
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2253 rm -f conftest.err conftest.$ac_objext
2255 rm -f conftest.$ac_ext conftest.$ac_objext
2260 case "x$ac_cv_prog_cc_stdc" in
2262 echo "$as_me:$LINENO: result: none needed" >&5
2263 echo "${ECHO_T}none needed" >&6 ;;
2265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2266 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2267 CC="$CC $ac_cv_prog_cc_stdc" ;;
2270 # Some people use a C++ compiler to compile C. Since we use `exit',
2271 # in C++ we need to declare it. In case someone uses the same compiler
2272 # for both compiling C and C++ we need to have the C++ compiler decide
2273 # the declaration of exit, since it's the most demanding environment.
2274 cat >conftest.$ac_ext <<_ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2283 grep -v '^ *+' conftest.er1 >conftest.err
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 for ac_declaration in \
2303 'extern "C" void std::exit (int) throw (); using std::exit;' \
2304 'extern "C" void std::exit (int); using std::exit;' \
2305 'extern "C" void exit (int) throw ();' \
2306 'extern "C" void exit (int);' \
2309 cat >conftest.$ac_ext <<_ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1 >conftest.err
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 if test -n "$ac_declaration"; then
2402 echo '#ifdef __cplusplus' >>confdefs.h
2403 echo $ac_declaration >>confdefs.h
2404 echo '#endif' >>confdefs.h
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cpp='$CXXCPP $CPPFLAGS'
2415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2420 ac_cpp='$CXXCPP $CPPFLAGS'
2421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2424 if test -n "$ac_tool_prefix"; then
2425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CXX+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CXX"; then
2435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CXX"; then
2455 echo "$as_me:$LINENO: result: $CXX" >&5
2456 echo "${ECHO_T}$CXX" >&6
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2462 test -n "$CXX" && break
2465 if test -z "$CXX"; then
2467 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$ac_ct_CXX"; then
2477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_ac_ct_CXX="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2496 if test -n "$ac_ct_CXX"; then
2497 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2498 echo "${ECHO_T}$ac_ct_CXX" >&6
2500 echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6
2504 test -n "$ac_ct_CXX" && break
2506 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514 "checking for C++ compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2534 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_cxx_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2588 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2589 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2590 GXX=`test $ac_compiler_gnu = yes && echo yes`
2591 ac_test_CXXFLAGS=${CXXFLAGS+set}
2592 ac_save_CXXFLAGS=$CXXFLAGS
2594 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2595 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2596 if test "${ac_cv_prog_cxx_g+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2618 grep -v '^ *+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_cxx_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_prog_cxx_g=yes
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2646 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2647 if test "$ac_test_CXXFLAGS" = set; then
2648 CXXFLAGS=$ac_save_CXXFLAGS
2649 elif test $ac_cv_prog_cxx_g = yes; then
2650 if test "$GXX" = yes; then
2656 if test "$GXX" = yes; then
2662 for ac_declaration in \
2664 'extern "C" void std::exit (int) throw (); using std::exit;' \
2665 'extern "C" void std::exit (int); using std::exit;' \
2666 'extern "C" void exit (int) throw ();' \
2667 'extern "C" void exit (int);' \
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2690 grep -v '^ *+' conftest.er1 >conftest.err
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_cxx_werror_flag"
2696 || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_cxx_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 if test -n "$ac_declaration"; then
2763 echo '#ifdef __cplusplus' >>confdefs.h
2764 echo $ac_declaration >>confdefs.h
2765 echo '#endif' >>confdefs.h
2769 ac_cpp='$CXXCPP $CPPFLAGS'
2770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_RANLIB+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$RANLIB"; then
2783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 RANLIB=$ac_cv_prog_RANLIB
2802 if test -n "$RANLIB"; then
2803 echo "$as_me:$LINENO: result: $RANLIB" >&5
2804 echo "${ECHO_T}$RANLIB" >&6
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2811 if test -z "$ac_cv_prog_RANLIB"; then
2812 ac_ct_RANLIB=$RANLIB
2813 # Extract the first word of "ranlib", so it can be a program name with args.
2814 set dummy ranlib; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$ac_ct_RANLIB"; then
2821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_RANLIB="ranlib"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2841 if test -n "$ac_ct_RANLIB"; then
2842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 RANLIB=$ac_ct_RANLIB
2851 RANLIB="$ac_cv_prog_RANLIB"
2855 # here is a trick to preffer
2856 # gfortran for gcc4 and higher
2857 # and g77 for gcc3 and lower
2858 flist="gfortran g77 f77"
2859 if [[ "$(gcc -dumpversion | cut -d . -f 1)" < "4" ]] ; then
2860 flist="g77 f77 gfortran"
2864 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2865 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 for ac_prog in $flist
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_F77+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 if test -n "$F77"; then
2878 ac_cv_prog_F77="$F77" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$F77"; then
2898 echo "$as_me:$LINENO: result: $F77" >&5
2899 echo "${ECHO_T}$F77" >&6
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2905 test -n "$F77" && break
2908 if test -z "$F77"; then
2910 for ac_prog in $flist
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$ac_ct_F77"; then
2920 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_F77="$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2939 if test -n "$ac_ct_F77"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
2941 echo "${ECHO_T}$ac_ct_F77" >&6
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2947 test -n "$ac_ct_F77" && break
2954 # Provide some information about the compiler.
2955 echo "$as_me:2955:" \
2956 "checking for Fortran 77 compiler version" >&5
2957 ac_compiler=`set X $ac_compile; echo $2`
2958 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2959 (eval $ac_compiler --version </dev/null >&5) 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }
2963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2964 (eval $ac_compiler -v </dev/null >&5) 2>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2969 (eval $ac_compiler -V </dev/null >&5) 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }
2975 # If we don't use `.F' as extension, the preprocessor is not run on the
2976 # input file. (Note that this only needs to work for GNU compilers.)
2979 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2980 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2981 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_f77_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3025 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3028 ac_test_FFLAGS=${FFLAGS+set}
3029 ac_save_FFLAGS=$FFLAGS
3031 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3032 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3033 if test "${ac_cv_prog_f77_g+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 cat >conftest.$ac_ext <<_ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_f77_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_f77_g=yes
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3075 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3076 if test "$ac_test_FFLAGS" = set; then
3077 FFLAGS=$ac_save_FFLAGS
3078 elif test $ac_cv_prog_f77_g = yes; then
3079 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3085 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3092 G77=`test $ac_compiler_gnu = yes && echo yes`
3094 ac_cpp='$CXXCPP $CPPFLAGS'
3095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 # include <limits.h>
3135 # include <assert.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include <ac_nonexistent.h>
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Passes both tests.
3205 rm -f conftest.err conftest.$ac_ext
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 if test -z "$ac_cpp_err"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Broken: fails on valid input.
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <ac_nonexistent.h>
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3312 rm -f conftest.err conftest.$ac_ext
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3328 ac_cpp='$CXXCPP $CPPFLAGS'
3329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3333 # Extract the first word of "cpp", so it can be a program name with args.
3334 set dummy cpp; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_prog_DIRECT_CPP+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$DIRECT_CPP"; then
3341 ac_cv_prog_DIRECT_CPP="$DIRECT_CPP" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_DIRECT_CPP="cpp"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 test -z "$ac_cv_prog_DIRECT_CPP" && ac_cv_prog_DIRECT_CPP="$CPP"
3360 DIRECT_CPP=$ac_cv_prog_DIRECT_CPP
3361 if test -n "$DIRECT_CPP"; then
3362 echo "$as_me:$LINENO: result: $DIRECT_CPP" >&5
3363 echo "${ECHO_T}$DIRECT_CPP" >&6
3365 echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3370 # Checks for typedefs, structures, and compiler characteristics.
3372 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3373 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3374 if test "${ac_cv_c_const+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3387 /* FIXME: Include the comments suggested by Paul. */
3389 /* Ultrix mips cc rejects this. */
3390 typedef int charset[2];
3392 /* SunOS 4.1.1 cc rejects this. */
3393 char const *const *ccp;
3395 /* NEC SVR4.0.2 mips cc rejects this. */
3396 struct point {int x, y;};
3397 static struct point const zero = {0,0};
3398 /* AIX XL C 1.02.0.0 rejects this.
3399 It does not let you subtract one const X* pointer from another in
3400 an arm of an if-expression whose if-part is not a constant
3402 const char *g = "string";
3403 ccp = &g + (g ? g-g : 0);
3404 /* HPUX 7.0 cc rejects these. */
3407 ccp = (char const *const *) p;
3408 { /* SCO 3.2v4 cc rejects this. */
3410 char const *s = 0 ? (char *) 0 : (char const *) 0;
3414 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3416 const int *foo = &x[0];
3419 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3420 typedef const int *iptr;
3424 { /* AIX XL C 1.02.0.0 rejects this saying
3425 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3426 struct s { int j; const int *ap[3]; };
3427 struct s *b; b->j = 5;
3429 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_cxx_werror_flag"
3448 || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3470 echo "${ECHO_T}$ac_cv_c_const" >&6
3471 if test $ac_cv_c_const = no; then
3473 cat >>confdefs.h <<\_ACEOF
3479 echo "$as_me:$LINENO: checking for inline" >&5
3480 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3481 if test "${ac_cv_c_inline+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 for ac_kw in inline __inline__ __inline; do
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3494 static $ac_kw foo_t static_foo () {return 0; }
3495 $ac_kw foo_t foo () {return 0; }
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_cxx_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_c_inline=$ac_kw; break
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3532 echo "${ECHO_T}$ac_cv_c_inline" >&6
3535 case $ac_cv_c_inline in
3538 case $ac_cv_c_inline in
3540 *) ac_val=$ac_cv_c_inline;;
3542 cat >>confdefs.h <<_ACEOF
3544 #define inline $ac_val
3551 ac_cpp='$CXXCPP $CPPFLAGS'
3552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3555 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3556 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3557 if test -z "$CXXCPP"; then
3558 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 # Double quotes because CXXCPP needs to be expanded
3562 for CXXCPP in "$CXX -E" "/lib/cpp"
3565 for ac_cxx_preproc_warn_flag in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_cxx_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3603 if test -z "$ac_cpp_err"; then
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3612 rm -f conftest.err conftest.$ac_ext
3614 # OK, works on sane cases. Now check whether non-existent headers
3615 # can be detected and how.
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_cxx_preproc_warn_flag
3634 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3641 if test -z "$ac_cpp_err"; then
3642 # Broken: success on invalid input.
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 # Passes both tests.
3652 rm -f conftest.err conftest.$ac_ext
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3662 ac_cv_prog_CXXCPP=$CXXCPP
3665 CXXCPP=$ac_cv_prog_CXXCPP
3667 ac_cv_prog_CXXCPP=$CXXCPP
3669 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3670 echo "${ECHO_T}$CXXCPP" >&6
3672 for ac_cxx_preproc_warn_flag in '' yes
3674 # Use a header file that comes with gcc, so configuring glibc
3675 # with a fresh cross-compiler works.
3676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677 # <limits.h> exists even on freestanding compilers.
3678 # On the NeXT, cc -E runs the code through the compiler's parser,
3679 # not just through cpp. "Syntax error" is here to catch this case.
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3687 # include <limits.h>
3689 # include <assert.h>
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_cxx_preproc_warn_flag
3703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3710 if test -z "$ac_cpp_err"; then
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 # Broken: fails on valid input.
3719 rm -f conftest.err conftest.$ac_ext
3721 # OK, works on sane cases. Now check whether non-existent headers
3722 # can be detected and how.
3723 cat >conftest.$ac_ext <<_ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3734 grep -v '^ *+' conftest.er1 >conftest.err
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_cxx_preproc_warn_flag
3741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3748 if test -z "$ac_cpp_err"; then
3749 # Broken: success on invalid input.
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 # Passes both tests.
3759 rm -f conftest.err conftest.$ac_ext
3762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3763 rm -f conftest.err conftest.$ac_ext
3764 if $ac_preproc_ok; then
3767 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3770 See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3775 ac_cpp='$CXXCPP $CPPFLAGS'
3776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3781 echo "$as_me:$LINENO: checking for egrep" >&5
3782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783 if test "${ac_cv_prog_egrep+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787 then ac_cv_prog_egrep='grep -E'
3788 else ac_cv_prog_egrep='egrep'
3791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793 EGREP=$ac_cv_prog_egrep
3796 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3798 if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_cxx_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_header_stdc=yes
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_cv_header_stdc=no
3849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851 if test $ac_cv_header_stdc = yes; then
3852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "memchr" >/dev/null 2>&1; then
3866 ac_cv_header_stdc=no
3872 if test $ac_cv_header_stdc = yes; then
3873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 $EGREP "free" >/dev/null 2>&1; then
3887 ac_cv_header_stdc=no
3893 if test $ac_cv_header_stdc = yes; then
3894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895 if test "$cross_compiling" = yes; then
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909 # define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3928 rm -f conftest$ac_exeext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3941 echo "$as_me: program exited with status $ac_status" >&5
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3946 ac_cv_header_stdc=no
3948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3954 if test $ac_cv_header_stdc = yes; then
3956 cat >>confdefs.h <<\_ACEOF
3957 #define STDC_HEADERS 1
3962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3973 inttypes.h stdint.h unistd.h
3975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976 echo "$as_me:$LINENO: checking for $ac_header" >&5
3977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987 $ac_includes_default
3989 #include <$ac_header>
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_cxx_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 eval "$as_ac_Header=yes"
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 eval "$as_ac_Header=no"
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4025 cat >>confdefs.h <<_ACEOF
4026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4034 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4035 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4036 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4049 if ((ptrdiff_t *) 0)
4051 if (sizeof (ptrdiff_t))
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_cxx_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_cv_type_ptrdiff_t=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ac_cv_type_ptrdiff_t=no
4086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4089 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4090 if test $ac_cv_type_ptrdiff_t = yes; then
4092 cat >>confdefs.h <<_ACEOF
4093 #define HAVE_PTRDIFF_T 1
4100 # Checks for library functions.
4102 for ac_header in stdlib.h
4104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4114 # Is the header compilable?
4115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4124 #include <$ac_header>
4126 rm -f conftest.$ac_objext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_cxx_werror_flag"
4136 || test ! -s conftest.err'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_header_compiler=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_header_compiler=no
4155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157 echo "${ECHO_T}$ac_header_compiler" >&6
4159 # Is the header present?
4160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #include <$ac_header>
4170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4173 grep -v '^ *+' conftest.er1 >conftest.err
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } >/dev/null; then
4178 if test -s conftest.err; then
4179 ac_cpp_err=$ac_cxx_preproc_warn_flag
4180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4187 if test -z "$ac_cpp_err"; then
4188 ac_header_preproc=yes
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_header_preproc=no
4195 rm -f conftest.err conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4197 echo "${ECHO_T}$ac_header_preproc" >&6
4199 # So? What about this header?
4200 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4206 ac_header_preproc=yes
4209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4223 ## -------------------------------------------- ##
4224 ## Report this to tomasz.przedzinski@uj.edu.pl ##
4225 ## -------------------------------------------- ##
4228 sed "s/^/$as_me: WARNING: /" >&2
4231 echo "$as_me:$LINENO: checking for $ac_header" >&5
4232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 eval "$as_ac_Header=\$ac_header_preproc"
4238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4252 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4253 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 if test "$cross_compiling" = yes; then
4257 ac_cv_func_malloc_0_nonnull=no
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #if STDC_HEADERS || HAVE_STDLIB_H
4266 # include <stdlib.h>
4274 exit (malloc (0) ? 0 : 1);
4279 rm -f conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_func_malloc_0_nonnull=yes
4292 echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_func_malloc_0_nonnull=no
4299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4303 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4304 if test $ac_cv_func_malloc_0_nonnull = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define HAVE_MALLOC 1
4311 cat >>confdefs.h <<\_ACEOF
4312 #define HAVE_MALLOC 0
4316 "malloc.$ac_objext" | \
4317 *" malloc.$ac_objext" | \
4318 "malloc.$ac_objext "* | \
4319 *" malloc.$ac_objext "* ) ;;
4320 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4324 cat >>confdefs.h <<\_ACEOF
4325 #define malloc rpl_malloc
4333 for ac_func in strftime
4335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_func" >&5
4337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_var+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4349 #define $ac_func innocuous_$ac_func
4351 /* System header to define __stub macros and hopefully few prototypes,
4352 which can conflict with char $ac_func (); below.
4353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 <limits.h> exists even on freestanding compilers. */
4357 # include <limits.h>
4359 # include <assert.h>
4364 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4372 /* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4378 char (*f) () = $ac_func;
4387 return f != $ac_func;
4392 rm -f conftest.$ac_objext conftest$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_cxx_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 eval "$as_ac_var=yes"
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 eval "$as_ac_var=no"
4421 rm -f conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4426 if test `eval echo '${'$as_ac_var'}'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4432 # strftime is in -lintl on SCO UNIX.
4433 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4434 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4435 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 ac_check_lib_save_LIBS=$LIBS
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_cxx_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_lib_intl_strftime=yes
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_cv_lib_intl_strftime=no
4491 rm -f conftest.err conftest.$ac_objext \
4492 conftest$ac_exeext conftest.$ac_ext
4493 LIBS=$ac_check_lib_save_LIBS
4495 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4496 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4497 if test $ac_cv_lib_intl_strftime = yes; then
4498 cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_STRFTIME 1
4512 for ac_func in atexit getcwd pow sqrt
4514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4515 echo "$as_me:$LINENO: checking for $ac_func" >&5
4516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4517 if eval "test \"\${$as_ac_var+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4528 #define $ac_func innocuous_$ac_func
4530 /* System header to define __stub macros and hopefully few prototypes,
4531 which can conflict with char $ac_func (); below.
4532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 <limits.h> exists even on freestanding compilers. */
4536 # include <limits.h>
4538 # include <assert.h>
4543 /* Override any gcc2 internal prototype to avoid an error. */
4548 /* We use char because int might match the return type of a gcc2
4549 builtin and then its argument prototype would still apply. */
4551 /* The GNU C library defines this for functions which it implements
4552 to always fail with ENOSYS. Some functions are actually named
4553 something starting with __ and the normal name is an alias. */
4554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4557 char (*f) () = $ac_func;
4566 return f != $ac_func;
4571 rm -f conftest.$ac_objext conftest$ac_exeext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573 (eval $ac_link) 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_cxx_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 eval "$as_ac_var=yes"
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 eval "$as_ac_var=no"
4600 rm -f conftest.err conftest.$ac_objext \
4601 conftest$ac_exeext conftest.$ac_ext
4603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4605 if test `eval echo '${'$as_ac_var'}'` = yes; then
4606 cat >>confdefs.h <<_ACEOF
4607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4612 echo "ERROR: Basic functions not found. Something's wrong with paths." &&
4619 ##############################################################################
4620 # Check for HepMC header files
4622 # If user specified --without-hepmc, skip hepmc check
4623 if ! test "$with_hepmc" == "no"; then
4626 CPPFLAGS="-I$with_hepmc/include $CPPFLAGS"
4629 for ac_header in HepMC/Version.h
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 # Is the header compilable?
4642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4651 #include <$ac_header>
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_cxx_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_header_compiler=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_header_compiler=no
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684 echo "${ECHO_T}$ac_header_compiler" >&6
4686 # Is the header present?
4687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <$ac_header>
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_cxx_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4714 if test -z "$ac_cpp_err"; then
4715 ac_header_preproc=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 ac_header_preproc=no
4722 rm -f conftest.err conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724 echo "${ECHO_T}$ac_header_preproc" >&6
4726 # So? What about this header?
4727 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733 ac_header_preproc=yes
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4750 ## -------------------------------------------- ##
4751 ## Report this to tomasz.przedzinski@uj.edu.pl ##
4752 ## -------------------------------------------- ##
4755 sed "s/^/$as_me: WARNING: /" >&2
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 eval "$as_ac_Header=\$ac_header_preproc"
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 echo "ERROR: HepMC not found. To provide location use:" &&
4777 echo " --with-hepmc=/path/to/HepMC" ;
4779 echo " --without-hepmc";
4780 echo " (Consider using 'source platform/afs.paths.sh' (or .csh) )"
4794 ##############################################################################
4797 if test "$prefix" != "NONE"; then
4801 pythia8data=$PYTHIA8DATA
4803 if test -z "$pythia8data"; then
4804 pythia8data=$with_pythia8/xmldoc
4807 ln -sf platform/make.inc make.inc
4815 ac_config_files="$ac_config_files platform/make.inc configure.paths.sh configure.paths.csh"
4817 cat >confcache <<\_ACEOF
4818 # This file is a shell script that caches the results of configure
4819 # tests run on this system so they can be shared between configure
4820 # scripts and configure runs, see configure's option --config-cache.
4821 # It is not useful on other systems. If it contains results you don't
4822 # want to keep, you may remove or edit it.
4824 # config.status only pays attention to the cache file if you give it
4825 # the --recheck option to rerun configure.
4827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4833 # The following way of writing the cache mishandles newlines in values,
4834 # but we know of no workaround that is simple, portable, and efficient.
4835 # So, don't put newlines in cache variables' values.
4836 # Ultrix sh set writes to stderr and can't be redirected directly,
4837 # and sets the high bit in the cache file unless we assign to the vars.
4840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4842 # `set' does not quote correctly, so add quotes (double-quote
4843 # substitution turns \\\\ into \\, and sed turns \\ into \).
4846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4849 # `set' quotes correctly as required by POSIX, so do not add quotes.
4851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4860 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4862 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4863 if test -w $cache_file; then
4864 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4865 cat confcache >$cache_file
4867 echo "not updating unwritable cache $cache_file"
4872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4873 # Let make expand exec_prefix.
4874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4878 # trailing colons and then remove the whole line if VPATH becomes empty
4879 # (actually we leave an empty line to preserve line numbers).
4880 if test "x$srcdir" = x.; then
4881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4882 s/:*\$(srcdir):*/:/;
4883 s/:*\${srcdir}:*/:/;
4885 s/^\([^=]*=[ ]*\):*/\1/;
4891 # Transform confdefs.h into DEFS.
4892 # Protect against shell expansion while executing Makefile rules.
4893 # Protect against Makefile macro expansion.
4895 # If the first sed substitution is executed (which looks for macros that
4896 # take arguments), then we branch to the quote section. Otherwise,
4897 # look for a macro that doesn't take arguments.
4898 cat >confdef2opt.sed <<\_ACEOF
4901 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4903 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4907 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4913 # We use echo to avoid assuming a particular line-breaking character.
4914 # The extra dot is to prevent the shell from consuming trailing
4915 # line-breaks from the sub-command output. A line-break within
4916 # single-quotes doesn't work because, if this script is created in a
4917 # platform that uses two characters for line-breaks (e.g., DOS), tr
4919 ac_LF_and_DOT=`echo; echo .`
4920 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4921 rm -f confdef2opt.sed
4926 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4927 # 1. Remove the extension, and $U if already installed.
4928 ac_i=`echo "$ac_i" |
4929 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4931 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4932 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4936 LTLIBOBJS=$ac_ltlibobjs
4940 : ${CONFIG_STATUS=./config.status}
4941 ac_clean_files_save=$ac_clean_files
4942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4943 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4944 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4945 cat >$CONFIG_STATUS <<_ACEOF
4947 # Generated by $as_me.
4948 # Run this file to recreate the current configuration.
4949 # Compiler output produced by configure, useful for debugging
4950 # configure, is in config.log if it exists.
4955 SHELL=\${CONFIG_SHELL-$SHELL}
4958 cat >>$CONFIG_STATUS <<\_ACEOF
4959 ## --------------------- ##
4960 ## M4sh Initialization. ##
4961 ## --------------------- ##
4963 # Be Bourne compatible
4964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4967 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4968 # is contrary to our usage. Disable this feature.
4969 alias -g '${1+"$@"}'='"$@"'
4970 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4973 DUALCASE=1; export DUALCASE # for MKS sh
4975 # Support unset when possible.
4976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4983 # Work around bugs in pre-3.0 UWIN ksh.
4984 $as_unset ENV MAIL MAILPATH
4991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4993 LC_TELEPHONE LC_TIME
4995 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4996 eval $as_var=C; export $as_var
5002 # Required to use basename.
5003 if expr a : '\(a\)' >/dev/null 2>&1; then
5009 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5010 as_basename=basename
5016 # Name of the executable.
5017 as_me=`$as_basename "$0" ||
5018 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5019 X"$0" : 'X\(//\)$' \| \
5020 X"$0" : 'X\(/\)$' \| \
5021 . : '\(.\)' 2>/dev/null ||
5023 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5024 /^X\/\(\/\/\)$/{ s//\1/; q; }
5025 /^X\/\(\/\).*/{ s//\1/; q; }
5029 # PATH needs CR, and LINENO needs CR and PATH.
5030 # Avoid depending upon Character Ranges.
5031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5034 as_cr_digits='0123456789'
5035 as_cr_alnum=$as_cr_Letters$as_cr_digits
5037 # The user is always right.
5038 if test "${PATH_SEPARATOR+set}" != set; then
5039 echo "#! /bin/sh" >conf$$.sh
5040 echo "exit 0" >>conf$$.sh
5042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5054 test "x$as_lineno_1" != "x$as_lineno_2" &&
5055 test "x$as_lineno_3" = "x$as_lineno_2" || {
5056 # Find who we are. Look in the path if we contain no path at all
5059 *[\\/]* ) as_myself=$0 ;;
5060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5070 # We did not find ourselves, most probably we were run as `sh COMMAND'
5071 # in which case we are not to be found in the path.
5072 if test "x$as_myself" = x; then
5075 if test ! -f "$as_myself"; then
5076 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5077 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5078 { (exit 1); exit 1; }; }
5080 case $CONFIG_SHELL in
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5086 test -z "$as_dir" && as_dir=.
5087 for as_base in sh bash ksh sh5; do
5090 if ("$as_dir/$as_base" -c '
5093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5094 test "x$as_lineno_1" != "x$as_lineno_2" &&
5095 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5096 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5097 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5098 CONFIG_SHELL=$as_dir/$as_base
5100 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5108 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5109 # uniformly replaced by the line number. The first 'sed' inserts a
5110 # line-number line before each line; the second 'sed' does the real
5111 # work. The second script uses 'N' to pair each line-number line
5112 # with the numbered line, and appends trailing '-' during
5113 # substitution so that $LINENO is not a special case at line end.
5114 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5115 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5116 sed '=' <$as_myself |
5121 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5124 s,^['$as_cr_digits']*\n,,
5126 chmod +x $as_me.lineno ||
5127 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5128 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5129 { (exit 1); exit 1; }; }
5131 # Don't try to exec as it changes $[0], causing all sort of problems
5132 # (the dirname of $[0] is not the place where we might find the
5133 # original and so on. Autoconf is especially sensible to this).
5135 # Exit status is that of the last command.
5140 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5141 *c*,-n*) ECHO_N= ECHO_C='
5143 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5144 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5147 if expr a : '\(a\)' >/dev/null 2>&1; then
5153 rm -f conf$$ conf$$.exe conf$$.file
5155 if ln -s conf$$.file conf$$ 2>/dev/null; then
5156 # We could just check for DJGPP; but this test a) works b) is more generic
5157 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5158 if test -f conf$$.exe; then
5159 # Don't use ln at all; we don't have any links
5164 elif ln conf$$.file conf$$ 2>/dev/null; then
5169 rm -f conf$$ conf$$.exe conf$$.file
5171 if mkdir -p . 2>/dev/null; then
5174 test -d ./-p && rmdir ./-p
5178 as_executable_p="test -f"
5180 # Sed expression to map a string onto a valid CPP name.
5181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5183 # Sed expression to map a string onto a valid variable name.
5184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5188 # We need space, tab and new line, in precisely that order.
5198 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5199 # report actual input values of CONFIG_FILES etc. instead of their
5200 # values after options handling. Logging --version etc. is OK.
5204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5205 ## Running $as_me. ##
5210 This file was extended by Photos C++ Interface $as_me 3.3, which was
5211 generated by GNU Autoconf 2.59. Invocation command line was
5213 CONFIG_FILES = $CONFIG_FILES
5214 CONFIG_HEADERS = $CONFIG_HEADERS
5215 CONFIG_LINKS = $CONFIG_LINKS
5216 CONFIG_COMMANDS = $CONFIG_COMMANDS
5220 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5224 # Files that config.status was made for.
5225 if test -n "$ac_config_files"; then
5226 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5229 if test -n "$ac_config_headers"; then
5230 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5233 if test -n "$ac_config_links"; then
5234 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5237 if test -n "$ac_config_commands"; then
5238 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5241 cat >>$CONFIG_STATUS <<\_ACEOF
5244 \`$as_me' instantiates files from templates according to the
5245 current configuration.
5247 Usage: $0 [OPTIONS] [FILE]...
5249 -h, --help print this help, then exit
5250 -V, --version print version number, then exit
5251 -q, --quiet do not print progress messages
5252 -d, --debug don't remove temporary files
5253 --recheck update $as_me by reconfiguring in the same conditions
5254 --file=FILE[:TEMPLATE]
5255 instantiate the configuration file FILE
5257 Configuration files:
5260 Report bugs to <bug-autoconf@gnu.org>."
5263 cat >>$CONFIG_STATUS <<_ACEOF
5265 Photos C++ Interface config.status 3.3
5266 configured by $0, generated by GNU Autoconf 2.59,
5267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5269 Copyright (C) 2003 Free Software Foundation, Inc.
5270 This config.status script is free software; the Free Software Foundation
5271 gives unlimited permission to copy, distribute and modify it."
5275 cat >>$CONFIG_STATUS <<\_ACEOF
5276 # If no file are specified by the user, then we need to provide default
5277 # value. By we need to know if files were specified by the user.
5283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5292 *) # This is not an option, so the user has probably given explicit
5295 ac_need_defaults=false;;
5299 # Handling of the options.
5301 cat >>$CONFIG_STATUS <<\_ACEOF
5302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5304 --version | --vers* | -V )
5305 echo "$ac_cs_version"; exit 0 ;;
5307 # Conflict between --help and --header
5308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5309 Try \`$0 --help' for more information." >&5
5310 echo "$as_me: error: ambiguous option: $1
5311 Try \`$0 --help' for more information." >&2;}
5312 { (exit 1); exit 1; }; };;
5313 --help | --hel | -h )
5314 echo "$ac_cs_usage"; exit 0 ;;
5315 --debug | --d* | -d )
5317 --file | --fil | --fi | --f )
5319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5320 ac_need_defaults=false;;
5321 --header | --heade | --head | --hea )
5323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5324 ac_need_defaults=false;;
5325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5331 Try \`$0 --help' for more information." >&5
5332 echo "$as_me: error: unrecognized option: $1
5333 Try \`$0 --help' for more information." >&2;}
5334 { (exit 1); exit 1; }; } ;;
5336 *) ac_config_targets="$ac_config_targets $1" ;;
5342 ac_configure_extra_args=
5344 if $ac_cs_silent; then
5346 ac_configure_extra_args="$ac_configure_extra_args --silent"
5350 cat >>$CONFIG_STATUS <<_ACEOF
5351 if \$ac_cs_recheck; then
5352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5362 cat >>$CONFIG_STATUS <<\_ACEOF
5363 for ac_config_target in $ac_config_targets
5365 case "$ac_config_target" in
5366 # Handling of arguments.
5367 "platform/make.inc" ) CONFIG_FILES="$CONFIG_FILES platform/make.inc" ;;
5368 "configure.paths.sh" ) CONFIG_FILES="$CONFIG_FILES configure.paths.sh" ;;
5369 "configure.paths.csh" ) CONFIG_FILES="$CONFIG_FILES configure.paths.csh" ;;
5370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5372 { (exit 1); exit 1; }; };;
5376 # If the user did not use the arguments to specify the items to instantiate,
5377 # then the envvar interface is used. Set only those that are not.
5378 # We use the long form for the default assignment because of an extremely
5379 # bizarre bug on SunOS 4.1.3.
5380 if $ac_need_defaults; then
5381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5384 # Have a temporary directory for convenience. Make it in the build tree
5385 # simply because there is no reason to put it here, and in addition,
5386 # creating and moving files from /tmp can sometimes cause problems.
5387 # Create a temporary directory, and hook for its removal unless debugging.
5390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5391 trap '{ (exit 1); exit 1; }' 1 2 13 15
5394 # Create a (secure) tmp directory for tmp files.
5397 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5398 test -n "$tmp" && test -d "$tmp"
5401 tmp=./confstat$$-$RANDOM
5402 (umask 077 && mkdir $tmp)
5405 echo "$me: cannot create a temporary directory in ." >&2
5406 { (exit 1); exit 1; }
5411 cat >>$CONFIG_STATUS <<_ACEOF
5414 # CONFIG_FILES section.
5417 # No need to generate the scripts if there are no CONFIG_FILES.
5418 # This happens for instance when ./config.status config.h
5419 if test -n "\$CONFIG_FILES"; then
5420 # Protect against being on the right side of a sed subst in config.status.
5421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5423 s,@SHELL@,$SHELL,;t t
5424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5430 s,@exec_prefix@,$exec_prefix,;t t
5431 s,@prefix@,$prefix,;t t
5432 s,@program_transform_name@,$program_transform_name,;t t
5433 s,@bindir@,$bindir,;t t
5434 s,@sbindir@,$sbindir,;t t
5435 s,@libexecdir@,$libexecdir,;t t
5436 s,@datadir@,$datadir,;t t
5437 s,@sysconfdir@,$sysconfdir,;t t
5438 s,@sharedstatedir@,$sharedstatedir,;t t
5439 s,@localstatedir@,$localstatedir,;t t
5440 s,@libdir@,$libdir,;t t
5441 s,@includedir@,$includedir,;t t
5442 s,@oldincludedir@,$oldincludedir,;t t
5443 s,@infodir@,$infodir,;t t
5444 s,@mandir@,$mandir,;t t
5445 s,@build_alias@,$build_alias,;t t
5446 s,@host_alias@,$host_alias,;t t
5447 s,@target_alias@,$target_alias,;t t
5449 s,@ECHO_C@,$ECHO_C,;t t
5450 s,@ECHO_N@,$ECHO_N,;t t
5451 s,@ECHO_T@,$ECHO_T,;t t
5453 s,@SET_MAKE@,$SET_MAKE,;t t
5456 s,@CFLAGS@,$CFLAGS,;t t
5457 s,@LDFLAGS@,$LDFLAGS,;t t
5458 s,@CPPFLAGS@,$CPPFLAGS,;t t
5459 s,@ac_ct_CC@,$ac_ct_CC,;t t
5460 s,@EXEEXT@,$EXEEXT,;t t
5461 s,@OBJEXT@,$OBJEXT,;t t
5463 s,@CXXFLAGS@,$CXXFLAGS,;t t
5464 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5465 s,@RANLIB@,$RANLIB,;t t
5466 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5468 s,@FFLAGS@,$FFLAGS,;t t
5469 s,@ac_ct_F77@,$ac_ct_F77,;t t
5471 s,@DIRECT_CPP@,$DIRECT_CPP,;t t
5472 s,@CXXCPP@,$CXXCPP,;t t
5473 s,@EGREP@,$EGREP,;t t
5474 s,@LIBOBJS@,$LIBOBJS,;t t
5475 s,@with_hepmc@,$with_hepmc,;t t
5476 s,@with_photos@,$with_photos,;t t
5477 s,@pythia8data@,$pythia8data,;t t
5478 s,@with_tauola@,$with_tauola,;t t
5479 s,@with_pythia8@,$with_pythia8,;t t
5480 s,@with_mc_tester@,$with_mc_tester,;t t
5481 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5486 cat >>$CONFIG_STATUS <<\_ACEOF
5487 # Split the substitutions into bite-sized pieces for seds with
5488 # small command number limits, like on Digital OSF/1 and HP-UX.
5490 ac_sed_frag=1 # Number of current file.
5491 ac_beg=1 # First line for current file.
5492 ac_end=$ac_max_sed_lines # Line after last line for current file.
5495 while $ac_more_lines; do
5496 if test $ac_beg -gt 1; then
5497 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5499 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5501 if test ! -s $tmp/subs.frag; then
5504 # The purpose of the label and of the branching condition is to
5505 # speed up the sed processing (if there are no `@' at all, there
5506 # is no need to browse any of the substitutions).
5507 # These are the two extra sed commands mentioned above.
5509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5510 if test -z "$ac_sed_cmds"; then
5511 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5513 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5515 ac_sed_frag=`expr $ac_sed_frag + 1`
5517 ac_end=`expr $ac_end + $ac_max_sed_lines`
5520 if test -z "$ac_sed_cmds"; then
5523 fi # test -n "$CONFIG_FILES"
5526 cat >>$CONFIG_STATUS <<\_ACEOF
5527 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5530 - | *:- | *:-:* ) # input from stdin
5532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5536 * ) ac_file_in=$ac_file.in ;;
5539 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5540 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5542 X"$ac_file" : 'X\(//\)[^/]' \| \
5543 X"$ac_file" : 'X\(//\)$' \| \
5544 X"$ac_file" : 'X\(/\)' \| \
5545 . : '\(.\)' 2>/dev/null ||
5547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5549 /^X\(\/\/\)$/{ s//\1/; q; }
5550 /^X\(\/\).*/{ s//\1/; q; }
5552 { if $as_mkdir_p; then
5557 while test ! -d "$as_dir"; do
5558 as_dirs="$as_dir $as_dirs"
5559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5561 X"$as_dir" : 'X\(//\)[^/]' \| \
5562 X"$as_dir" : 'X\(//\)$' \| \
5563 X"$as_dir" : 'X\(/\)' \| \
5564 . : '\(.\)' 2>/dev/null ||
5566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5568 /^X\(\/\/\)$/{ s//\1/; q; }
5569 /^X\(\/\).*/{ s//\1/; q; }
5572 test ! -n "$as_dirs" || mkdir $as_dirs
5573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5575 { (exit 1); exit 1; }; }; }
5579 if test "$ac_dir" != .; then
5580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5581 # A "../" for each directory in $ac_dir_suffix.
5582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5584 ac_dir_suffix= ac_top_builddir=
5588 .) # No --srcdir option. We are building in place.
5590 if test -z "$ac_top_builddir"; then
5593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5595 [\\/]* | ?:[\\/]* ) # Absolute path.
5596 ac_srcdir=$srcdir$ac_dir_suffix;
5597 ac_top_srcdir=$srcdir ;;
5599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5603 # Do not use `cd foo && pwd` to compute absolute paths, because
5604 # the directories may not exist.
5606 .) ac_abs_builddir="$ac_dir";;
5609 .) ac_abs_builddir=`pwd`;;
5610 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5611 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5614 case $ac_abs_builddir in
5615 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5617 case ${ac_top_builddir}. in
5618 .) ac_abs_top_builddir=$ac_abs_builddir;;
5619 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5620 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5623 case $ac_abs_builddir in
5624 .) ac_abs_srcdir=$ac_srcdir;;
5627 .) ac_abs_srcdir=$ac_abs_builddir;;
5628 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5629 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5632 case $ac_abs_builddir in
5633 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5635 case $ac_top_srcdir in
5636 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5637 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5638 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5644 if test x"$ac_file" != x-; then
5645 { echo "$as_me:$LINENO: creating $ac_file" >&5
5646 echo "$as_me: creating $ac_file" >&6;}
5649 # Let's still pretend it is `configure' which instantiates (i.e., don't
5650 # use $as_me), people would be surprised to read:
5651 # /* config.h. Generated by config.status. */
5652 if test x"$ac_file" = x-; then
5655 configure_input="$ac_file. "
5657 configure_input=$configure_input"Generated from `echo $ac_file_in |
5658 sed 's,.*/,,'` by configure."
5660 # First look for the input files in the build tree, otherwise in the
5662 ac_file_inputs=`IFS=:
5663 for f in $ac_file_in; do
5665 -) echo $tmp/stdin ;;
5667 # Absolute (can't be DOS-style, as IFS=:)
5668 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5669 echo "$as_me: error: cannot find input file: $f" >&2;}
5670 { (exit 1); exit 1; }; }
5673 if test -f "$f"; then
5676 elif test -f "$srcdir/$f"; then
5681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5682 echo "$as_me: error: cannot find input file: $f" >&2;}
5683 { (exit 1); exit 1; }; }
5686 done` || { (exit 1); exit 1; }
5688 cat >>$CONFIG_STATUS <<_ACEOF
5692 cat >>$CONFIG_STATUS <<\_ACEOF
5694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5695 s,@configure_input@,$configure_input,;t t
5696 s,@srcdir@,$ac_srcdir,;t t
5697 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5698 s,@top_srcdir@,$ac_top_srcdir,;t t
5699 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5700 s,@builddir@,$ac_builddir,;t t
5701 s,@abs_builddir@,$ac_abs_builddir,;t t
5702 s,@top_builddir@,$ac_top_builddir,;t t
5703 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5704 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5706 if test x"$ac_file" != x-; then
5707 mv $tmp/out $ac_file
5716 cat >>$CONFIG_STATUS <<\_ACEOF
5718 { (exit 0); exit 0; }
5720 chmod +x $CONFIG_STATUS
5721 ac_clean_files=$ac_clean_files_save
5724 # configure is writing to config.log, and then calls config.status.
5725 # config.status does its own redirection, appending to config.log.
5726 # Unfortunately, on DOS this fails, as config.log is still kept open
5727 # by configure, so config.status won't be able to write to it; its
5728 # output is simply discarded. So we exec the FD to /dev/null,
5729 # effectively closing config.log, so it can be properly (re)opened and
5730 # appended to by config.status. When coming back to configure, we
5731 # need to make the FD available again.
5732 if test "$no_create" != yes; then
5734 ac_config_status_args=
5735 test "$silent" = yes &&
5736 ac_config_status_args="$ac_config_status_args --quiet"
5738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5741 # would make configure fail if this is the last instruction.
5742 $ac_cs_success || { (exit 1); exit 1; }