Update #include paths for r198688 in LLVM that moved headers in the Assembly
[polly-mirror.git] / configure
blob1d3148becf65fabbb232d96767097e99d6cfadcd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Polly 0.01.
5 # Report bugs to <polly-dev@googlegroups.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: polly-dev@googlegroups.com about your system, including
234 $0: any error possibly output before this message. Then
235 $0: install a modern shell, or manually run the script
236 $0: under such a shell if you do have one."
238 exit 1
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
256 { eval $1=; unset $1;}
258 as_unset=as_fn_unset
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
265 return $1
266 } # as_fn_set_status
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
273 set +e
274 as_fn_set_status $1
275 exit $1
276 } # as_fn_exit
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
309 /^X\(\/\/\)$/{
310 s//\1/
313 /^X\(\/\).*/{
314 s//\1/
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
334 eval $1+=\$2
336 else
337 as_fn_append ()
339 eval $1=\$$1\$2
341 fi # as_fn_append
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
351 as_val=$(( $* ))
353 else
354 as_fn_arith ()
356 as_val=`expr "$@" || test $? -eq 1`
358 fi # as_fn_arith
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375 } # as_fn_error
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380 else
381 as_expr=false
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386 else
387 as_basename=false
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392 else
393 as_dirname=false
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
405 /^X\/\(\/\/\)$/{
406 s//\1/
409 /^X\/\(\/\).*/{
410 s//\1/
413 s/.*/./; q'`
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
436 :lineno
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
464 ECHO_N='-n';;
465 esac
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470 else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
488 else
489 as_ln_s='cp -p'
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496 else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
534 # Name of the host.
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 # Initializations.
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
551 # Identity of this package.
552 PACKAGE_NAME='Polly'
553 PACKAGE_TARNAME='polly'
554 PACKAGE_VERSION='0.01'
555 PACKAGE_STRING='Polly 0.01'
556 PACKAGE_BUGREPORT='polly-dev@googlegroups.com'
557 PACKAGE_URL=''
559 ac_unique_file=""lib/Analysis/ScopInfo.cpp""
560 ac_subst_vars='LTLIBOBJS
561 LIBOBJS
562 cuda_ld
563 cuda_lib
564 cuda_inc
565 cuda_found
566 scoplib_rpath
567 scoplib_ld
568 scoplib_lib
569 scoplib_inc
570 scoplib_found
571 openscop_ld
572 openscop_lib
573 openscop_inc
574 openscop_found
575 pluto_ld
576 pluto_lib
577 pluto_inc
578 pluto_found
579 cloog_ld
580 cloog_lib
581 cloog_inc
582 cloog_found
583 isl_ld
584 isl_lib
585 isl_inc
586 isl_found
587 gmp_ld
588 gmp_lib
589 gmp_inc
590 gmp_found
591 OBJEXT
592 EXEEXT
593 ac_ct_CXX
594 CPPFLAGS
595 LDFLAGS
596 CXXFLAGS
598 LLVM_OBJ
599 LLVM_SRC
600 target_alias
601 host_alias
602 build_alias
603 LIBS
604 ECHO_T
605 ECHO_N
606 ECHO_C
607 DEFS
608 mandir
609 localedir
610 libdir
611 psdir
612 pdfdir
613 dvidir
614 htmldir
615 infodir
616 docdir
617 oldincludedir
618 includedir
619 localstatedir
620 sharedstatedir
621 sysconfdir
622 datadir
623 datarootdir
624 libexecdir
625 sbindir
626 bindir
627 program_transform_name
628 prefix
629 exec_prefix
630 PACKAGE_URL
631 PACKAGE_BUGREPORT
632 PACKAGE_STRING
633 PACKAGE_VERSION
634 PACKAGE_TARNAME
635 PACKAGE_NAME
636 PATH_SEPARATOR
637 SHELL'
638 ac_subst_files=''
639 ac_user_opts='
640 enable_option_checking
641 with_llvmsrc
642 with_llvmobj
643 with_gmp
644 with_isl
645 with_cloog
646 with_pluto
647 with_openscop
648 with_scoplib
649 enable_polly_gpu_codegen
650 with_cuda
652 ac_precious_vars='build_alias
653 host_alias
654 target_alias
656 CXXFLAGS
657 LDFLAGS
658 LIBS
659 CPPFLAGS
660 CCC'
663 # Initialize some variables set by options.
664 ac_init_help=
665 ac_init_version=false
666 ac_unrecognized_opts=
667 ac_unrecognized_sep=
668 # The variables have the same names as the options, with
669 # dashes changed to underlines.
670 cache_file=/dev/null
671 exec_prefix=NONE
672 no_create=
673 no_recursion=
674 prefix=NONE
675 program_prefix=NONE
676 program_suffix=NONE
677 program_transform_name=s,x,x,
678 silent=
679 site=
680 srcdir=
681 verbose=
682 x_includes=NONE
683 x_libraries=NONE
685 # Installation directory options.
686 # These are left unexpanded so users can "make install exec_prefix=/foo"
687 # and all the variables that are supposed to be based on exec_prefix
688 # by default will actually change.
689 # Use braces instead of parens because sh, perl, etc. also accept them.
690 # (The list follows the same order as the GNU Coding Standards.)
691 bindir='${exec_prefix}/bin'
692 sbindir='${exec_prefix}/sbin'
693 libexecdir='${exec_prefix}/libexec'
694 datarootdir='${prefix}/share'
695 datadir='${datarootdir}'
696 sysconfdir='${prefix}/etc'
697 sharedstatedir='${prefix}/com'
698 localstatedir='${prefix}/var'
699 includedir='${prefix}/include'
700 oldincludedir='/usr/include'
701 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
702 infodir='${datarootdir}/info'
703 htmldir='${docdir}'
704 dvidir='${docdir}'
705 pdfdir='${docdir}'
706 psdir='${docdir}'
707 libdir='${exec_prefix}/lib'
708 localedir='${datarootdir}/locale'
709 mandir='${datarootdir}/man'
711 ac_prev=
712 ac_dashdash=
713 for ac_option
715 # If the previous option needs an argument, assign it.
716 if test -n "$ac_prev"; then
717 eval $ac_prev=\$ac_option
718 ac_prev=
719 continue
722 case $ac_option in
723 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
724 *) ac_optarg=yes ;;
725 esac
727 # Accept the important Cygnus configure options, so we can diagnose typos.
729 case $ac_dashdash$ac_option in
731 ac_dashdash=yes ;;
733 -bindir | --bindir | --bindi | --bind | --bin | --bi)
734 ac_prev=bindir ;;
735 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
736 bindir=$ac_optarg ;;
738 -build | --build | --buil | --bui | --bu)
739 ac_prev=build_alias ;;
740 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
741 build_alias=$ac_optarg ;;
743 -cache-file | --cache-file | --cache-fil | --cache-fi \
744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
745 ac_prev=cache_file ;;
746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
748 cache_file=$ac_optarg ;;
750 --config-cache | -C)
751 cache_file=config.cache ;;
753 -datadir | --datadir | --datadi | --datad)
754 ac_prev=datadir ;;
755 -datadir=* | --datadir=* | --datadi=* | --datad=*)
756 datadir=$ac_optarg ;;
758 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
759 | --dataroo | --dataro | --datar)
760 ac_prev=datarootdir ;;
761 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
762 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
763 datarootdir=$ac_optarg ;;
765 -disable-* | --disable-*)
766 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
769 as_fn_error "invalid feature name: $ac_useropt"
770 ac_useropt_orig=$ac_useropt
771 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
774 "enable_$ac_useropt"
775 "*) ;;
776 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
777 ac_unrecognized_sep=', ';;
778 esac
779 eval enable_$ac_useropt=no ;;
781 -docdir | --docdir | --docdi | --doc | --do)
782 ac_prev=docdir ;;
783 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784 docdir=$ac_optarg ;;
786 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787 ac_prev=dvidir ;;
788 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789 dvidir=$ac_optarg ;;
791 -enable-* | --enable-*)
792 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
795 as_fn_error "invalid feature name: $ac_useropt"
796 ac_useropt_orig=$ac_useropt
797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
800 "enable_$ac_useropt"
801 "*) ;;
802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
803 ac_unrecognized_sep=', ';;
804 esac
805 eval enable_$ac_useropt=\$ac_optarg ;;
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev=exec_prefix ;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
814 exec_prefix=$ac_optarg ;;
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
820 -help | --help | --hel | --he | -h)
821 ac_init_help=long ;;
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823 ac_init_help=recursive ;;
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825 ac_init_help=short ;;
827 -host | --host | --hos | --ho)
828 ac_prev=host_alias ;;
829 -host=* | --host=* | --hos=* | --ho=*)
830 host_alias=$ac_optarg ;;
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833 ac_prev=htmldir ;;
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835 | --ht=*)
836 htmldir=$ac_optarg ;;
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev=includedir ;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
843 includedir=$ac_optarg ;;
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848 infodir=$ac_optarg ;;
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
853 libdir=$ac_optarg ;;
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev=libexecdir ;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
860 libexecdir=$ac_optarg ;;
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
867 -localstatedir | --localstatedir | --localstatedi | --localstated \
868 | --localstate | --localstat | --localsta | --localst | --locals)
869 ac_prev=localstatedir ;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
872 localstatedir=$ac_optarg ;;
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
877 mandir=$ac_optarg ;;
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c | -n)
885 no_create=yes ;;
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889 no_recursion=yes ;;
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev=oldincludedir ;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
898 oldincludedir=$ac_optarg ;;
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
903 prefix=$ac_optarg ;;
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev=program_prefix ;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
910 program_prefix=$ac_optarg ;;
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev=program_suffix ;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
917 program_suffix=$ac_optarg ;;
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev=program_transform_name ;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
934 program_transform_name=$ac_optarg ;;
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951 ac_prev=sbindir ;;
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953 | --sbi=* | --sb=*)
954 sbindir=$ac_optarg ;;
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
959 | --sha | --sh)
960 ac_prev=sharedstatedir ;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964 | --sha=* | --sh=*)
965 sharedstatedir=$ac_optarg ;;
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
970 site=$ac_optarg ;;
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
975 srcdir=$ac_optarg ;;
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev=sysconfdir ;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
982 sysconfdir=$ac_optarg ;;
984 -target | --target | --targe | --targ | --tar | --ta | --t)
985 ac_prev=target_alias ;;
986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
987 target_alias=$ac_optarg ;;
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
995 -with-* | --with-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid package name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "with_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval with_$ac_useropt=\$ac_optarg ;;
1011 -without-* | --without-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid package name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "with_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval with_$ac_useropt=no ;;
1027 --x)
1028 # Obsolete; use --with-x.
1029 with_x=yes ;;
1031 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032 | --x-incl | --x-inc | --x-in | --x-i)
1033 ac_prev=x_includes ;;
1034 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1036 x_includes=$ac_optarg ;;
1038 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040 ac_prev=x_libraries ;;
1041 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1043 x_libraries=$ac_optarg ;;
1045 -*) as_fn_error "unrecognized option: \`$ac_option'
1046 Try \`$0 --help' for more information."
1049 *=*)
1050 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051 # Reject names that are not valid shell variable names.
1052 case $ac_envvar in #(
1053 '' | [0-9]* | *[!_$as_cr_alnum]* )
1054 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1055 esac
1056 eval $ac_envvar=\$ac_optarg
1057 export $ac_envvar ;;
1060 # FIXME: should be removed in autoconf 3.0.
1061 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1062 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1064 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1067 esac
1068 done
1070 if test -n "$ac_prev"; then
1071 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1072 as_fn_error "missing argument to $ac_option"
1075 if test -n "$ac_unrecognized_opts"; then
1076 case $enable_option_checking in
1077 no) ;;
1078 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1079 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1080 esac
1083 # Check all directory arguments for consistency.
1084 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1089 eval ac_val=\$$ac_var
1090 # Remove trailing slashes.
1091 case $ac_val in
1092 */ )
1093 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1094 eval $ac_var=\$ac_val;;
1095 esac
1096 # Be sure to have absolute directory names.
1097 case $ac_val in
1098 [\\/$]* | ?:[\\/]* ) continue;;
1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1100 esac
1101 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1102 done
1104 # There might be people who depend on the old broken behavior: `$host'
1105 # used to hold the argument of --host etc.
1106 # FIXME: To remove some day.
1107 build=$build_alias
1108 host=$host_alias
1109 target=$target_alias
1111 # FIXME: To remove some day.
1112 if test "x$host_alias" != x; then
1113 if test "x$build_alias" = x; then
1114 cross_compiling=maybe
1115 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1116 If a cross compiler is detected then cross compile mode will be used." >&2
1117 elif test "x$build_alias" != "x$host_alias"; then
1118 cross_compiling=yes
1122 ac_tool_prefix=
1123 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1125 test "$silent" = yes && exec 6>/dev/null
1128 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1129 ac_ls_di=`ls -di .` &&
1130 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1131 as_fn_error "working directory cannot be determined"
1132 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1133 as_fn_error "pwd does not report name of working directory"
1136 # Find the source files, if location was not specified.
1137 if test -z "$srcdir"; then
1138 ac_srcdir_defaulted=yes
1139 # Try the directory containing this script, then the parent directory.
1140 ac_confdir=`$as_dirname -- "$as_myself" ||
1141 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1142 X"$as_myself" : 'X\(//\)[^/]' \| \
1143 X"$as_myself" : 'X\(//\)$' \| \
1144 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1145 $as_echo X"$as_myself" |
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1147 s//\1/
1150 /^X\(\/\/\)[^/].*/{
1151 s//\1/
1154 /^X\(\/\/\)$/{
1155 s//\1/
1158 /^X\(\/\).*/{
1159 s//\1/
1162 s/.*/./; q'`
1163 srcdir=$ac_confdir
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1165 srcdir=..
1167 else
1168 ac_srcdir_defaulted=no
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1172 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1174 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1175 ac_abs_confdir=`(
1176 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1177 pwd)`
1178 # When building in place, set srcdir=.
1179 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 srcdir=.
1182 # Remove unnecessary trailing slashes from srcdir.
1183 # Double slashes in file names in object file debugging info
1184 # mess up M-x gdb in Emacs.
1185 case $srcdir in
1186 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 esac
1188 for ac_var in $ac_precious_vars; do
1189 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_env_${ac_var}_value=\$${ac_var}
1191 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1193 done
1196 # Report the --help message.
1198 if test "$ac_init_help" = "long"; then
1199 # Omit some internal or obsolete options to make the list less imposing.
1200 # This message is too long to be a string in the A/UX 3.1 sh.
1201 cat <<_ACEOF
1202 \`configure' configures Polly 0.01 to adapt to many kinds of systems.
1204 Usage: $0 [OPTION]... [VAR=VALUE]...
1206 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207 VAR=VALUE. See below for descriptions of some of the useful variables.
1209 Defaults for the options are specified in brackets.
1211 Configuration:
1212 -h, --help display this help and exit
1213 --help=short display options specific to this package
1214 --help=recursive display the short help of all the included packages
1215 -V, --version display version information and exit
1216 -q, --quiet, --silent do not print \`checking...' messages
1217 --cache-file=FILE cache test results in FILE [disabled]
1218 -C, --config-cache alias for \`--cache-file=config.cache'
1219 -n, --no-create do not create output files
1220 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1222 Installation directories:
1223 --prefix=PREFIX install architecture-independent files in PREFIX
1224 [$ac_default_prefix]
1225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1226 [PREFIX]
1228 By default, \`make install' will install all the files in
1229 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231 for instance \`--prefix=\$HOME'.
1233 For better control, use the options below.
1235 Fine tuning of the installation directories:
1236 --bindir=DIR user executables [EPREFIX/bin]
1237 --sbindir=DIR system admin executables [EPREFIX/sbin]
1238 --libexecdir=DIR program executables [EPREFIX/libexec]
1239 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1240 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1241 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1242 --libdir=DIR object code libraries [EPREFIX/lib]
1243 --includedir=DIR C header files [PREFIX/include]
1244 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1245 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1246 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1247 --infodir=DIR info documentation [DATAROOTDIR/info]
1248 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1249 --mandir=DIR man documentation [DATAROOTDIR/man]
1250 --docdir=DIR documentation root [DATAROOTDIR/doc/polly]
1251 --htmldir=DIR html documentation [DOCDIR]
1252 --dvidir=DIR dvi documentation [DOCDIR]
1253 --pdfdir=DIR pdf documentation [DOCDIR]
1254 --psdir=DIR ps documentation [DOCDIR]
1255 _ACEOF
1257 cat <<\_ACEOF
1258 _ACEOF
1261 if test -n "$ac_init_help"; then
1262 case $ac_init_help in
1263 short | recursive ) echo "Configuration of Polly 0.01:";;
1264 esac
1265 cat <<\_ACEOF
1267 Optional Features:
1268 --disable-option-checking ignore unrecognized --enable/--with options
1269 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1270 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1271 --enable-polly-gpu-codegen
1272 Enable GPU code generation in Polly(default is NO)
1274 Optional Packages:
1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1277 --with-llvmsrc Location of LLVM Source Code
1278 --with-llvmobj Location of LLVM Object Code
1279 --with-gmp prefix of gmp
1280 --with-isl prefix of isl
1281 --with-cloog prefix of cloog
1282 --with-pluto prefix of pluto
1283 --with-openscop prefix of openscop
1284 --with-scoplib prefix of scoplib
1285 --with-cuda prefix of cuda
1287 Some influential environment variables:
1288 CXX C++ compiler command
1289 CXXFLAGS C++ compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1299 Report bugs to <polly-dev@googlegroups.com>.
1300 _ACEOF
1301 ac_status=$?
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" ||
1308 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1309 continue
1310 ac_builddir=.
1312 case "$ac_dir" in
1313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1316 # A ".." for each directory in $ac_dir_suffix.
1317 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1318 case $ac_top_builddir_sub in
1319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1321 esac ;;
1322 esac
1323 ac_abs_top_builddir=$ac_pwd
1324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1325 # for backward compatibility:
1326 ac_top_builddir=$ac_top_build_prefix
1328 case $srcdir in
1329 .) # We are building in place.
1330 ac_srcdir=.
1331 ac_top_srcdir=$ac_top_builddir_sub
1332 ac_abs_top_srcdir=$ac_pwd ;;
1333 [\\/]* | ?:[\\/]* ) # Absolute name.
1334 ac_srcdir=$srcdir$ac_dir_suffix;
1335 ac_top_srcdir=$srcdir
1336 ac_abs_top_srcdir=$srcdir ;;
1337 *) # Relative name.
1338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1339 ac_top_srcdir=$ac_top_build_prefix$srcdir
1340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1341 esac
1342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1344 cd "$ac_dir" || { ac_status=$?; continue; }
1345 # Check for guested configure.
1346 if test -f "$ac_srcdir/configure.gnu"; then
1347 echo &&
1348 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1349 elif test -f "$ac_srcdir/configure"; then
1350 echo &&
1351 $SHELL "$ac_srcdir/configure" --help=recursive
1352 else
1353 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1354 fi || ac_status=$?
1355 cd "$ac_pwd" || { ac_status=$?; break; }
1356 done
1359 test -n "$ac_init_help" && exit $ac_status
1360 if $ac_init_version; then
1361 cat <<\_ACEOF
1362 Polly configure 0.01
1363 generated by GNU Autoconf 2.65
1365 Copyright (C) 2009 Free Software Foundation, Inc.
1366 This configure script is free software; the Free Software Foundation
1367 gives unlimited permission to copy, distribute and modify it.
1368 _ACEOF
1369 exit
1372 ## ------------------------ ##
1373 ## Autoconf initialization. ##
1374 ## ------------------------ ##
1376 # ac_fn_cxx_try_compile LINENO
1377 # ----------------------------
1378 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1379 ac_fn_cxx_try_compile ()
1381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1382 rm -f conftest.$ac_objext
1383 if { { ac_try="$ac_compile"
1384 case "(($ac_try" in
1385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1386 *) ac_try_echo=$ac_try;;
1387 esac
1388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1389 $as_echo "$ac_try_echo"; } >&5
1390 (eval "$ac_compile") 2>conftest.err
1391 ac_status=$?
1392 if test -s conftest.err; then
1393 grep -v '^ *+' conftest.err >conftest.er1
1394 cat conftest.er1 >&5
1395 mv -f conftest.er1 conftest.err
1397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1398 test $ac_status = 0; } && {
1399 test -z "$ac_cxx_werror_flag" ||
1400 test ! -s conftest.err
1401 } && test -s conftest.$ac_objext; then :
1402 ac_retval=0
1403 else
1404 $as_echo "$as_me: failed program was:" >&5
1405 sed 's/^/| /' conftest.$ac_ext >&5
1407 ac_retval=1
1409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1410 as_fn_set_status $ac_retval
1412 } # ac_fn_cxx_try_compile
1414 # ac_fn_cxx_try_link LINENO
1415 # -------------------------
1416 # Try to link conftest.$ac_ext, and return whether this succeeded.
1417 ac_fn_cxx_try_link ()
1419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext conftest$ac_exeext
1421 if { { ac_try="$ac_link"
1422 case "(($ac_try" in
1423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424 *) ac_try_echo=$ac_try;;
1425 esac
1426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427 $as_echo "$ac_try_echo"; } >&5
1428 (eval "$ac_link") 2>conftest.err
1429 ac_status=$?
1430 if test -s conftest.err; then
1431 grep -v '^ *+' conftest.err >conftest.er1
1432 cat conftest.er1 >&5
1433 mv -f conftest.er1 conftest.err
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436 test $ac_status = 0; } && {
1437 test -z "$ac_cxx_werror_flag" ||
1438 test ! -s conftest.err
1439 } && test -s conftest$ac_exeext && {
1440 test "$cross_compiling" = yes ||
1441 $as_test_x conftest$ac_exeext
1442 }; then :
1443 ac_retval=0
1444 else
1445 $as_echo "$as_me: failed program was:" >&5
1446 sed 's/^/| /' conftest.$ac_ext >&5
1448 ac_retval=1
1450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1452 # interfere with the next link command; also delete a directory that is
1453 # left behind by Apple's compiler. We do this before executing the actions.
1454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1456 as_fn_set_status $ac_retval
1458 } # ac_fn_cxx_try_link
1459 cat >config.log <<_ACEOF
1460 This file contains any messages produced by compilers while
1461 running configure, to aid debugging if configure makes a mistake.
1463 It was created by Polly $as_me 0.01, which was
1464 generated by GNU Autoconf 2.65. Invocation command line was
1466 $ $0 $@
1468 _ACEOF
1469 exec 5>>config.log
1471 cat <<_ASUNAME
1472 ## --------- ##
1473 ## Platform. ##
1474 ## --------- ##
1476 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1477 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1478 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1479 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1480 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1482 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1483 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1485 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1486 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1487 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1488 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1489 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1490 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1491 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1493 _ASUNAME
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 $as_echo "PATH: $as_dir"
1501 done
1502 IFS=$as_save_IFS
1504 } >&5
1506 cat >&5 <<_ACEOF
1509 ## ----------- ##
1510 ## Core tests. ##
1511 ## ----------- ##
1513 _ACEOF
1516 # Keep a trace of the command line.
1517 # Strip out --no-create and --no-recursion so they do not pile up.
1518 # Strip out --silent because we don't want to record it for future runs.
1519 # Also quote any args containing shell meta-characters.
1520 # Make two passes to allow for proper duplicate-argument suppression.
1521 ac_configure_args=
1522 ac_configure_args0=
1523 ac_configure_args1=
1524 ac_must_keep_next=false
1525 for ac_pass in 1 2
1527 for ac_arg
1529 case $ac_arg in
1530 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1532 | -silent | --silent | --silen | --sile | --sil)
1533 continue ;;
1534 *\'*)
1535 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1536 esac
1537 case $ac_pass in
1538 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1540 as_fn_append ac_configure_args1 " '$ac_arg'"
1541 if test $ac_must_keep_next = true; then
1542 ac_must_keep_next=false # Got value, back to normal.
1543 else
1544 case $ac_arg in
1545 *=* | --config-cache | -C | -disable-* | --disable-* \
1546 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1547 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1548 | -with-* | --with-* | -without-* | --without-* | --x)
1549 case "$ac_configure_args0 " in
1550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1551 esac
1553 -* ) ac_must_keep_next=true ;;
1554 esac
1556 as_fn_append ac_configure_args " '$ac_arg'"
1558 esac
1559 done
1560 done
1561 { ac_configure_args0=; unset ac_configure_args0;}
1562 { ac_configure_args1=; unset ac_configure_args1;}
1564 # When interrupted or exit'd, cleanup temporary files, and complete
1565 # config.log. We remove comments because anyway the quotes in there
1566 # would cause problems or look ugly.
1567 # WARNING: Use '\'' to represent an apostrophe within the trap.
1568 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1569 trap 'exit_status=$?
1570 # Save into config.log some information that might help in debugging.
1572 echo
1574 cat <<\_ASBOX
1575 ## ---------------- ##
1576 ## Cache variables. ##
1577 ## ---------------- ##
1578 _ASBOX
1579 echo
1580 # The following way of writing the cache mishandles newlines in values,
1582 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1583 eval ac_val=\$$ac_var
1584 case $ac_val in #(
1585 *${as_nl}*)
1586 case $ac_var in #(
1587 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1589 esac
1590 case $ac_var in #(
1591 _ | IFS | as_nl) ;; #(
1592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1593 *) { eval $ac_var=; unset $ac_var;} ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 esac |
1608 sort
1610 echo
1612 cat <<\_ASBOX
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 $as_echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 $as_echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648 ## ----------- ##
1649 ## confdefs.h. ##
1650 ## ----------- ##
1651 _ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1656 test "$ac_signal" != 0 &&
1657 $as_echo "$as_me: caught signal $ac_signal"
1658 $as_echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1666 done
1667 ac_signal=0
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1672 $as_echo "/* confdefs.h */" > confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_URL "$PACKAGE_URL"
1698 _ACEOF
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer an explicitly selected file to automatically selected ones.
1703 ac_site_file1=NONE
1704 ac_site_file2=NONE
1705 if test -n "$CONFIG_SITE"; then
1706 ac_site_file1=$CONFIG_SITE
1707 elif test "x$prefix" != xNONE; then
1708 ac_site_file1=$prefix/share/config.site
1709 ac_site_file2=$prefix/etc/config.site
1710 else
1711 ac_site_file1=$ac_default_prefix/share/config.site
1712 ac_site_file2=$ac_default_prefix/etc/config.site
1714 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1716 test "x$ac_site_file" = xNONE && continue
1717 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file"
1723 done
1725 if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special files
1727 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730 $as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";;
1734 esac
1736 else
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738 $as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1757 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 # differences in whitespace do not lead to failure.
1763 ac_old_val_w=`echo x $ac_old_val`
1764 ac_new_val_w=`echo x $ac_new_val`
1765 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1767 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768 ac_cache_corrupted=:
1769 else
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1771 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1772 eval $ac_var=\$ac_old_val
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1775 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1777 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1778 fi;;
1779 esac
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1782 case $ac_new_val in
1783 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
1785 esac
1786 case " $ac_configure_args " in
1787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1788 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1789 esac
1791 done
1792 if $ac_cache_corrupted; then
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1796 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1799 ## -------------------- ##
1800 ## Main body of script. ##
1801 ## -------------------- ##
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 LLVM_SRC_ROOT="`(cd $srcdir/../..; pwd)`"
1812 LLVM_OBJ_ROOT="`(cd ../..; pwd)`"
1815 # Check whether --with-llvmsrc was given.
1816 if test "${with_llvmsrc+set}" = set; then :
1817 withval=$with_llvmsrc; llvm_src="$withval"
1818 else
1819 llvm_src="$LLVM_SRC_ROOT"
1822 LLVM_SRC=$llvm_src
1825 # Check whether --with-llvmobj was given.
1826 if test "${with_llvmobj+set}" = set; then :
1827 withval=$with_llvmobj; llvm_obj="$withval"
1828 else
1829 llvm_obj="$LLVM_OBJ_ROOT"
1832 LLVM_OBJ=$llvm_obj
1834 ac_config_commands="$ac_config_commands setup"
1838 ac_aux_dir=
1839 for ac_dir in $LLVM_SRC/autoconf "$srcdir"/$LLVM_SRC/autoconf; do
1840 for ac_t in install-sh install.sh shtool; do
1841 if test -f "$ac_dir/$ac_t"; then
1842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/$ac_t -c"
1844 break 2
1846 done
1847 done
1848 if test -z "$ac_aux_dir"; then
1849 as_fn_error "cannot find install-sh, install.sh, or shtool in $LLVM_SRC/autoconf \"$srcdir\"/$LLVM_SRC/autoconf" "$LINENO" 5
1852 # These three variables are undocumented and unsupported,
1853 # and are intended to be withdrawn in a future Autoconf release.
1854 # They can cause serious problems if a builder's source tree is in a directory
1855 # whose full name contains unusual characters.
1856 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1857 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1858 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866 ac_config_files="$ac_config_files Makefile.config"
1868 ac_config_files="$ac_config_files Makefile.common"
1872 if test ${srcdir} != "." ; then
1873 if test -f ${srcdir}/include/polly/Config/config.h ; then
1874 as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
1879 $as_echo "#define CLOOG_INT_GMP 1" >>confdefs.h
1890 ac_ext=cpp
1891 ac_cpp='$CXXCPP $CPPFLAGS'
1892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1895 if test -z "$CXX"; then
1896 if test -n "$CCC"; then
1897 CXX=$CCC
1898 else
1899 if test -n "$ac_tool_prefix"; then
1900 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1905 $as_echo_n "checking for $ac_word... " >&6; }
1906 if test "${ac_cv_prog_CXX+set}" = set; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 if test -n "$CXX"; then
1910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1925 IFS=$as_save_IFS
1929 CXX=$ac_cv_prog_CXX
1930 if test -n "$CXX"; then
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1932 $as_echo "$CXX" >&6; }
1933 else
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1935 $as_echo "no" >&6; }
1939 test -n "$CXX" && break
1940 done
1942 if test -z "$CXX"; then
1943 ac_ct_CXX=$CXX
1944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1949 $as_echo_n "checking for $ac_word... " >&6; }
1950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 if test -n "$ac_ct_CXX"; then
1954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 ac_cv_prog_ac_ct_CXX="$ac_prog"
1964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1967 done
1968 done
1969 IFS=$as_save_IFS
1973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1974 if test -n "$ac_ct_CXX"; then
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
1976 $as_echo "$ac_ct_CXX" >&6; }
1977 else
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1979 $as_echo "no" >&6; }
1983 test -n "$ac_ct_CXX" && break
1984 done
1986 if test "x$ac_ct_CXX" = x; then
1987 CXX="g++"
1988 else
1989 case $cross_compiling:$ac_tool_warned in
1990 yes:)
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1993 ac_tool_warned=yes ;;
1994 esac
1995 CXX=$ac_ct_CXX
2001 # Provide some information about the compiler.
2002 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2003 set X $ac_compile
2004 ac_compiler=$2
2005 for ac_option in --version -v -V -qversion; do
2006 { { ac_try="$ac_compiler $ac_option >&5"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2014 ac_status=$?
2015 if test -s conftest.err; then
2016 sed '10a\
2017 ... rest of stderr output deleted ...
2018 10q' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2021 rm -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }
2024 done
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2034 return 0;
2036 _ACEOF
2037 ac_clean_files_save=$ac_clean_files
2038 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2039 # Try to create an executable without -o first, disregard a.out.
2040 # It will help us diagnose broken compilers, and finding out an intuition
2041 # of exeext.
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2043 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2044 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2046 # The possible output files:
2047 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2049 ac_rmfiles=
2050 for ac_file in $ac_files
2052 case $ac_file in
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2054 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2055 esac
2056 done
2057 rm -f $ac_rmfiles
2059 if { { ac_try="$ac_link_default"
2060 case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_link_default") 2>&5
2067 ac_status=$?
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; then :
2070 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2071 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2073 # so that the user can short-circuit this test for compilers unknown to
2074 # Autoconf.
2075 for ac_file in $ac_files ''
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2081 [ab].out )
2082 # We found the default executable, but exeext='' is most
2083 # certainly right.
2084 break;;
2085 *.* )
2086 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2087 then :; else
2088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090 # We set ac_cv_exeext here because the later test for it is not
2091 # safe: cross compilers may not add the suffix if given an `-o'
2092 # argument, so we may need to know it at that point already.
2093 # Even if this section looks crufty: it has the advantage of
2094 # actually working.
2095 break;;
2097 break;;
2098 esac
2099 done
2100 test "$ac_cv_exeext" = no && ac_cv_exeext=
2102 else
2103 ac_file=''
2105 if test -z "$ac_file"; then :
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2107 $as_echo "no" >&6; }
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 { as_fn_set_status 77
2114 as_fn_error "C++ compiler cannot create executables
2115 See \`config.log' for more details." "$LINENO" 5; }; }
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2118 $as_echo "yes" >&6; }
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2121 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2123 $as_echo "$ac_file" >&6; }
2124 ac_exeext=$ac_cv_exeext
2126 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2127 ac_clean_files=$ac_clean_files_save
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2129 $as_echo_n "checking for suffix of executables... " >&6; }
2130 if { { ac_try="$ac_link"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_link") 2>&5
2138 ac_status=$?
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; }; then :
2141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2142 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2143 # work properly (i.e., refer to `conftest.exe'), while it won't with
2144 # `rm'.
2145 for ac_file in conftest.exe conftest conftest.*; do
2146 test -f "$ac_file" || continue
2147 case $ac_file in
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 break;;
2151 * ) break;;
2152 esac
2153 done
2154 else
2155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 as_fn_error "cannot compute suffix of executables: cannot compile and link
2158 See \`config.log' for more details." "$LINENO" 5; }
2160 rm -f conftest conftest$ac_cv_exeext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2162 $as_echo "$ac_cv_exeext" >&6; }
2164 rm -f conftest.$ac_ext
2165 EXEEXT=$ac_cv_exeext
2166 ac_exeext=$EXEEXT
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 #include <stdio.h>
2171 main ()
2173 FILE *f = fopen ("conftest.out", "w");
2174 return ferror (f) || fclose (f) != 0;
2177 return 0;
2179 _ACEOF
2180 ac_clean_files="$ac_clean_files conftest.out"
2181 # Check that the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2184 $as_echo_n "checking whether we are cross compiling... " >&6; }
2185 if test "$cross_compiling" != yes; then
2186 { { ac_try="$ac_link"
2187 case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_link") 2>&5
2194 ac_status=$?
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }
2197 if { ac_try='./conftest$ac_cv_exeext'
2198 { { case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_try") 2>&5
2205 ac_status=$?
2206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207 test $ac_status = 0; }; }; then
2208 cross_compiling=no
2209 else
2210 if test "$cross_compiling" = maybe; then
2211 cross_compiling=yes
2212 else
2213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 as_fn_error "cannot run C++ compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." "$LINENO" 5; }
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2222 $as_echo "$cross_compiling" >&6; }
2224 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2225 ac_clean_files=$ac_clean_files_save
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2227 $as_echo_n "checking for suffix of object files... " >&6; }
2228 if test "${ac_cv_objext+set}" = set; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2239 return 0;
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { { ac_try="$ac_compile"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 $as_echo "$ac_try_echo"; } >&5
2250 (eval "$ac_compile") 2>&5
2251 ac_status=$?
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; }; then :
2254 for ac_file in conftest.o conftest.obj conftest.*; do
2255 test -f "$ac_file" || continue;
2256 case $ac_file in
2257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2259 break;;
2260 esac
2261 done
2262 else
2263 $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 as_fn_error "cannot compute suffix of object files: cannot compile
2269 See \`config.log' for more details." "$LINENO" 5; }
2271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2274 $as_echo "$ac_cv_objext" >&6; }
2275 OBJEXT=$ac_cv_objext
2276 ac_objext=$OBJEXT
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2278 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2279 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2286 main ()
2288 #ifndef __GNUC__
2289 choke me
2290 #endif
2293 return 0;
2295 _ACEOF
2296 if ac_fn_cxx_try_compile "$LINENO"; then :
2297 ac_compiler_gnu=yes
2298 else
2299 ac_compiler_gnu=no
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2306 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2307 if test $ac_compiler_gnu = yes; then
2308 GXX=yes
2309 else
2310 GXX=
2312 ac_test_CXXFLAGS=${CXXFLAGS+set}
2313 ac_save_CXXFLAGS=$CXXFLAGS
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2315 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2316 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2320 ac_cxx_werror_flag=yes
2321 ac_cv_prog_cxx_g=no
2322 CXXFLAGS="-g"
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2327 main ()
2331 return 0;
2333 _ACEOF
2334 if ac_fn_cxx_try_compile "$LINENO"; then :
2335 ac_cv_prog_cxx_g=yes
2336 else
2337 CXXFLAGS=""
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2351 else
2352 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2353 CXXFLAGS="-g"
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2358 main ()
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366 ac_cv_prog_cxx_g=yes
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2376 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2377 if test "$ac_test_CXXFLAGS" = set; then
2378 CXXFLAGS=$ac_save_CXXFLAGS
2379 elif test $ac_cv_prog_cxx_g = yes; then
2380 if test "$GXX" = yes; then
2381 CXXFLAGS="-g -O2"
2382 else
2383 CXXFLAGS="-g"
2385 else
2386 if test "$GXX" = yes; then
2387 CXXFLAGS="-O2"
2388 else
2389 CXXFLAGS=
2392 ac_ext=cpp
2393 ac_cpp='$CXXCPP $CPPFLAGS'
2394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2400 ac_ext=cpp
2401 ac_cpp='$CXXCPP $CPPFLAGS'
2402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2406 OLD_CXXFLAGS=$CXXFLAGS;
2407 OLD_LDFLAGS=$LDFLAGS;
2408 OLD_LIBS=$LIBS;
2410 LIBS="$LIBS -lgmp";
2412 # Get include path and lib path
2414 # Check whether --with-gmp was given.
2415 if test "${with_gmp+set}" = set; then :
2416 withval=$with_gmp; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2417 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2418 else
2419 given_inc_path=inc_not_give_gmp;
2420 given_lib_path=lib_not_give_gmp
2424 # Check for library and headers works
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp: gmp.h in $given_inc_path, and libgmp in $given_lib_path" >&5
2426 $as_echo_n "checking for gmp: gmp.h in $given_inc_path, and libgmp in $given_lib_path... " >&6; }
2428 # try to compile a file that includes a header of the library
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 #include <gmp.h>
2433 main ()
2437 return 0;
2439 _ACEOF
2440 if ac_fn_cxx_try_link "$LINENO"; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2442 $as_echo "ok" >&6; }
2443 gmp_found="yes"
2445 if test "x$given_inc_path" != "xinc_not_give_gmp"; then :
2446 gmp_inc="-I$given_inc_path"
2449 gmp_lib="-lgmp"
2451 if test "x$given_lib_path" != "xlib_not_give_gmp"; then :
2452 gmp_ld="-L$given_lib_path"
2455 else
2456 if test "xrequired" = "xrequired"; then :
2457 as_fn_error "gmp required but not found" "$LINENO" 5
2458 else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2460 $as_echo "not found" >&6; }
2464 rm -f core conftest.err conftest.$ac_objext \
2465 conftest$ac_exeext conftest.$ac_ext
2467 # reset original CXXFLAGS
2468 CXXFLAGS=$OLD_CXXFLAGS
2469 LDFLAGS=$OLD_LDFLAGS;
2470 LIBS=$OLD_LIBS
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 saved_CXXFLAGS=$CXXFLAGS
2480 CXXFLAGS="$CXXFLAGS $gmp_inc"
2482 ac_ext=cpp
2483 ac_cpp='$CXXCPP $CPPFLAGS'
2484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2488 OLD_CXXFLAGS=$CXXFLAGS;
2489 OLD_LDFLAGS=$LDFLAGS;
2490 OLD_LIBS=$LIBS;
2492 LIBS="$LIBS -lisl";
2494 # Get include path and lib path
2496 # Check whether --with-isl was given.
2497 if test "${with_isl+set}" = set; then :
2498 withval=$with_isl; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2499 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2500 else
2501 given_inc_path=inc_not_give_isl;
2502 given_lib_path=lib_not_give_isl
2506 # Check for library and headers works
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl: isl/val.in $given_inc_path, and libisl in $given_lib_path" >&5
2508 $as_echo_n "checking for isl: isl/val.in $given_inc_path, and libisl in $given_lib_path... " >&6; }
2510 # try to compile a file that includes a header of the library
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2513 #include <isl/val.h>
2515 main ()
2519 return 0;
2521 _ACEOF
2522 if ac_fn_cxx_try_link "$LINENO"; then :
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2524 $as_echo "ok" >&6; }
2525 isl_found="yes"
2527 if test "x$given_inc_path" != "xinc_not_give_isl"; then :
2528 isl_inc="-I$given_inc_path"
2531 isl_lib="-lisl"
2533 if test "x$given_lib_path" != "xlib_not_give_isl"; then :
2534 isl_ld="-L$given_lib_path"
2537 else
2538 if test "xrequired" = "xrequired"; then :
2539 as_fn_error "isl required but not found" "$LINENO" 5
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2542 $as_echo "not found" >&6; }
2546 rm -f core conftest.err conftest.$ac_objext \
2547 conftest$ac_exeext conftest.$ac_ext
2549 # reset original CXXFLAGS
2550 CXXFLAGS=$OLD_CXXFLAGS
2551 LDFLAGS=$OLD_LDFLAGS;
2552 LIBS=$OLD_LIBS
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 CXXFLAGS=$saved_CXXFLAGS
2562 saved_CXXFLAGS=$CXXFLAGS
2563 CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc"
2565 ac_ext=cpp
2566 ac_cpp='$CXXCPP $CPPFLAGS'
2567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2571 OLD_CXXFLAGS=$CXXFLAGS;
2572 OLD_LDFLAGS=$LDFLAGS;
2573 OLD_LIBS=$LIBS;
2575 LIBS="$LIBS -lcloog-isl";
2577 # Get include path and lib path
2579 # Check whether --with-cloog was given.
2580 if test "${with_cloog+set}" = set; then :
2581 withval=$with_cloog; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2582 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2583 else
2584 given_inc_path=inc_not_give_cloog;
2585 given_lib_path=lib_not_give_cloog
2589 # Check for library and headers works
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cloog: cloog/isl/cloog.h in $given_inc_path, and libcloog-isl in $given_lib_path" >&5
2591 $as_echo_n "checking for cloog: cloog/isl/cloog.h in $given_inc_path, and libcloog-isl in $given_lib_path... " >&6; }
2593 # try to compile a file that includes a header of the library
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 #include <cloog/isl/cloog.h>
2598 main ()
2602 return 0;
2604 _ACEOF
2605 if ac_fn_cxx_try_link "$LINENO"; then :
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2607 $as_echo "ok" >&6; }
2608 cloog_found="yes"
2610 if test "x$given_inc_path" != "xinc_not_give_cloog"; then :
2611 cloog_inc="-I$given_inc_path"
2614 cloog_lib="-lcloog-isl"
2616 if test "x$given_lib_path" != "xlib_not_give_cloog"; then :
2617 cloog_ld="-L$given_lib_path"
2620 else
2621 if test "x" = "xrequired"; then :
2622 as_fn_error "cloog required but not found" "$LINENO" 5
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2625 $as_echo "not found" >&6; }
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2632 # reset original CXXFLAGS
2633 CXXFLAGS=$OLD_CXXFLAGS
2634 LDFLAGS=$OLD_LDFLAGS;
2635 LIBS=$OLD_LIBS
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 CXXFLAGS=$saved_CXXFLAGS
2644 if test "x$cloog_found" = "xyes"; then :
2646 $as_echo "#define CLOOG_FOUND 1" >>confdefs.h
2650 saved_CXXFLAGS=$CXXFLAGS
2651 CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc"
2653 ac_ext=cpp
2654 ac_cpp='$CXXCPP $CPPFLAGS'
2655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2659 OLD_CXXFLAGS=$CXXFLAGS;
2660 OLD_LDFLAGS=$LDFLAGS;
2661 OLD_LIBS=$LIBS;
2663 LIBS="$LIBS -lpluto";
2665 # Get include path and lib path
2667 # Check whether --with-pluto was given.
2668 if test "${with_pluto+set}" = set; then :
2669 withval=$with_pluto; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2670 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2671 else
2672 given_inc_path=inc_not_give_pluto;
2673 given_lib_path=lib_not_give_pluto
2677 # Check for library and headers works
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pluto: pluto/libpluto.h in $given_inc_path, and libpluto in $given_lib_path" >&5
2679 $as_echo_n "checking for pluto: pluto/libpluto.h in $given_inc_path, and libpluto in $given_lib_path... " >&6; }
2681 # try to compile a file that includes a header of the library
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 #include <pluto/libpluto.h>
2686 main ()
2690 return 0;
2692 _ACEOF
2693 if ac_fn_cxx_try_link "$LINENO"; then :
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2695 $as_echo "ok" >&6; }
2696 pluto_found="yes"
2698 if test "x$given_inc_path" != "xinc_not_give_pluto"; then :
2699 pluto_inc="-I$given_inc_path"
2702 pluto_lib="-lpluto"
2704 if test "x$given_lib_path" != "xlib_not_give_pluto"; then :
2705 pluto_ld="-L$given_lib_path"
2708 else
2709 if test "x" = "xrequired"; then :
2710 as_fn_error "pluto required but not found" "$LINENO" 5
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2713 $as_echo "not found" >&6; }
2717 rm -f core conftest.err conftest.$ac_objext \
2718 conftest$ac_exeext conftest.$ac_ext
2720 # reset original CXXFLAGS
2721 CXXFLAGS=$OLD_CXXFLAGS
2722 LDFLAGS=$OLD_LDFLAGS;
2723 LIBS=$OLD_LIBS
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 CXXFLAGS=$saved_CXXFLAGS
2732 if test "x$pluto_found" = "xyes"; then :
2734 $as_echo "#define PLUTO_FOUND 1" >>confdefs.h
2739 ac_ext=cpp
2740 ac_cpp='$CXXCPP $CPPFLAGS'
2741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2745 OLD_CXXFLAGS=$CXXFLAGS;
2746 OLD_LDFLAGS=$LDFLAGS;
2747 OLD_LIBS=$LIBS;
2749 LIBS="$LIBS -lopenscop";
2751 # Get include path and lib path
2753 # Check whether --with-openscop was given.
2754 if test "${with_openscop+set}" = set; then :
2755 withval=$with_openscop; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2756 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2757 else
2758 given_inc_path=inc_not_give_openscop;
2759 given_lib_path=lib_not_give_openscop
2763 # Check for library and headers works
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openscop: openscop/scop.h in $given_inc_path, and libopenscop in $given_lib_path" >&5
2765 $as_echo_n "checking for openscop: openscop/scop.h in $given_inc_path, and libopenscop in $given_lib_path... " >&6; }
2767 # try to compile a file that includes a header of the library
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2770 #include <openscop/scop.h>
2772 main ()
2776 return 0;
2778 _ACEOF
2779 if ac_fn_cxx_try_link "$LINENO"; then :
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2781 $as_echo "ok" >&6; }
2782 openscop_found="yes"
2784 if test "x$given_inc_path" != "xinc_not_give_openscop"; then :
2785 openscop_inc="-I$given_inc_path"
2788 openscop_lib="-lopenscop"
2790 if test "x$given_lib_path" != "xlib_not_give_openscop"; then :
2791 openscop_ld="-L$given_lib_path"
2794 else
2795 if test "x" = "xrequired"; then :
2796 as_fn_error "openscop required but not found" "$LINENO" 5
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2799 $as_echo "not found" >&6; }
2803 rm -f core conftest.err conftest.$ac_objext \
2804 conftest$ac_exeext conftest.$ac_ext
2806 # reset original CXXFLAGS
2807 CXXFLAGS=$OLD_CXXFLAGS
2808 LDFLAGS=$OLD_LDFLAGS;
2809 LIBS=$OLD_LIBS
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "x$openscop_found" = "xyes"; then :
2819 $as_echo "#define OPENSCOP_FOUND 1" >>confdefs.h
2824 ac_ext=cpp
2825 ac_cpp='$CXXCPP $CPPFLAGS'
2826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2830 OLD_CXXFLAGS=$CXXFLAGS;
2831 OLD_LDFLAGS=$LDFLAGS;
2832 OLD_LIBS=$LIBS;
2834 LIBS="$LIBS -lscoplib";
2836 # Get include path and lib path
2838 # Check whether --with-scoplib was given.
2839 if test "${with_scoplib+set}" = set; then :
2840 withval=$with_scoplib; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2841 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2842 else
2843 given_inc_path=inc_not_give_scoplib;
2844 given_lib_path=lib_not_give_scoplib
2848 # Check for library and headers works
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scoplib: scoplib/scop.h in $given_inc_path, and libscoplib in $given_lib_path" >&5
2850 $as_echo_n "checking for scoplib: scoplib/scop.h in $given_inc_path, and libscoplib in $given_lib_path... " >&6; }
2852 # try to compile a file that includes a header of the library
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2855 #include <scoplib/scop.h>
2857 main ()
2861 return 0;
2863 _ACEOF
2864 if ac_fn_cxx_try_link "$LINENO"; then :
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2866 $as_echo "ok" >&6; }
2867 scoplib_found="yes"
2869 if test "x$given_inc_path" != "xinc_not_give_scoplib"; then :
2870 scoplib_inc="-I$given_inc_path"
2873 scoplib_lib="-lscoplib"
2875 if test "x$given_lib_path" != "xlib_not_give_scoplib"; then :
2876 scoplib_ld="-L$given_lib_path"
2879 else
2880 if test "x" = "xrequired"; then :
2881 as_fn_error "scoplib required but not found" "$LINENO" 5
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2884 $as_echo "not found" >&6; }
2888 rm -f core conftest.err conftest.$ac_objext \
2889 conftest$ac_exeext conftest.$ac_ext
2891 # reset original CXXFLAGS
2892 CXXFLAGS=$OLD_CXXFLAGS
2893 LDFLAGS=$OLD_LDFLAGS;
2894 LIBS=$OLD_LIBS
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test "x$scoplib_found" = "xyes"; then :
2904 $as_echo "#define SCOPLIB_FOUND 1" >>confdefs.h
2908 if test "x$scoplib_found" = "xyes"; then :
2909 scoplib_rpath="-Wl,-rpath=$given_lib_path"
2910 else
2911 scoplib_rpath=""
2916 # Check whether --enable-polly_gpu_codegen was given.
2917 if test "${enable_polly_gpu_codegen+set}" = set; then :
2918 enableval=$enable_polly_gpu_codegen;
2919 else
2920 enableval=default
2923 case "$enableval" in
2924 yes)
2925 $as_echo "#define GPU_CODEGEN 1" >>confdefs.h
2927 no) ;;
2928 default) ;;
2929 *) as_fn_error "Invalid setting for --enable-polly-gpu-codegen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
2930 esac
2933 ac_ext=cpp
2934 ac_cpp='$CXXCPP $CPPFLAGS'
2935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2939 OLD_CXXFLAGS=$CXXFLAGS;
2940 OLD_LDFLAGS=$LDFLAGS;
2941 OLD_LIBS=$LIBS;
2943 LIBS="$LIBS -lcuda";
2945 # Get include path and lib path
2947 # Check whether --with-cuda was given.
2948 if test "${with_cuda+set}" = set; then :
2949 withval=$with_cuda; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2950 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2951 else
2952 given_inc_path=inc_not_give_cuda;
2953 given_lib_path=lib_not_give_cuda
2957 # Check for library and headers works
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuda: cuda.h in $given_inc_path, and libcuda in $given_lib_path" >&5
2959 $as_echo_n "checking for cuda: cuda.h in $given_inc_path, and libcuda in $given_lib_path... " >&6; }
2961 # try to compile a file that includes a header of the library
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2964 #include <cuda.h>
2966 main ()
2970 return 0;
2972 _ACEOF
2973 if ac_fn_cxx_try_link "$LINENO"; then :
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2975 $as_echo "ok" >&6; }
2976 cuda_found="yes"
2978 if test "x$given_inc_path" != "xinc_not_give_cuda"; then :
2979 cuda_inc="-I$given_inc_path"
2982 cuda_lib="-lcuda"
2984 if test "x$given_lib_path" != "xlib_not_give_cuda"; then :
2985 cuda_ld="-L$given_lib_path"
2988 else
2989 if test "x" = "xrequired"; then :
2990 as_fn_error "cuda required but not found" "$LINENO" 5
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2993 $as_echo "not found" >&6; }
2997 rm -f core conftest.err conftest.$ac_objext \
2998 conftest$ac_exeext conftest.$ac_ext
3000 # reset original CXXFLAGS
3001 CXXFLAGS=$OLD_CXXFLAGS
3002 LDFLAGS=$OLD_LDFLAGS;
3003 LIBS=$OLD_LIBS
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 if test "x$cuda_found" = "xyes"; then :
3014 $as_echo "#define CUDALIB_FOUND 1" >>confdefs.h
3019 ac_config_headers="$ac_config_headers include/polly/Config/config.h"
3021 cat >confcache <<\_ACEOF
3022 # This file is a shell script that caches the results of configure
3023 # tests run on this system so they can be shared between configure
3024 # scripts and configure runs, see configure's option --config-cache.
3025 # It is not useful on other systems. If it contains results you don't
3026 # want to keep, you may remove or edit it.
3028 # config.status only pays attention to the cache file if you give it
3029 # the --recheck option to rerun configure.
3031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3033 # following values.
3035 _ACEOF
3037 # The following way of writing the cache mishandles newlines in values,
3038 # but we know of no workaround that is simple, portable, and efficient.
3039 # So, we kill variables containing newlines.
3040 # Ultrix sh set writes to stderr and can't be redirected directly,
3041 # and sets the high bit in the cache file unless we assign to the vars.
3043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3044 eval ac_val=\$$ac_var
3045 case $ac_val in #(
3046 *${as_nl}*)
3047 case $ac_var in #(
3048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3050 esac
3051 case $ac_var in #(
3052 _ | IFS | as_nl) ;; #(
3053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3054 *) { eval $ac_var=; unset $ac_var;} ;;
3055 esac ;;
3056 esac
3057 done
3059 (set) 2>&1 |
3060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3061 *${as_nl}ac_space=\ *)
3062 # `set' does not quote correctly, so add quotes: double-quote
3063 # substitution turns \\\\ into \\, and sed turns \\ into \.
3064 sed -n \
3065 "s/'/'\\\\''/g;
3066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3067 ;; #(
3069 # `set' quotes correctly as required by POSIX, so do not add quotes.
3070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3072 esac |
3073 sort
3075 sed '
3076 /^ac_cv_env_/b end
3077 t clear
3078 :clear
3079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3080 t end
3081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3082 :end' >>confcache
3083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3084 if test -w "$cache_file"; then
3085 test "x$cache_file" != "x/dev/null" &&
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3087 $as_echo "$as_me: updating cache $cache_file" >&6;}
3088 cat confcache >$cache_file
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3094 rm -f confcache
3096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3097 # Let make expand exec_prefix.
3098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3100 DEFS=-DHAVE_CONFIG_H
3102 ac_libobjs=
3103 ac_ltlibobjs=
3104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3105 # 1. Remove the extension, and $U if already installed.
3106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3109 # will be set to the directory where LIBOBJS objects are built.
3110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3112 done
3113 LIBOBJS=$ac_libobjs
3115 LTLIBOBJS=$ac_ltlibobjs
3119 : ${CONFIG_STATUS=./config.status}
3120 ac_write_fail=0
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3125 as_write_fail=0
3126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3127 #! $SHELL
3128 # Generated by $as_me.
3129 # Run this file to recreate the current configuration.
3130 # Compiler output produced by configure, useful for debugging
3131 # configure, is in config.log if it exists.
3133 debug=false
3134 ac_cs_recheck=false
3135 ac_cs_silent=false
3137 SHELL=\${CONFIG_SHELL-$SHELL}
3138 export SHELL
3139 _ASEOF
3140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3141 ## -------------------- ##
3142 ## M4sh Initialization. ##
3143 ## -------------------- ##
3145 # Be more Bourne compatible
3146 DUALCASE=1; export DUALCASE # for MKS sh
3147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3148 emulate sh
3149 NULLCMD=:
3150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3151 # is contrary to our usage. Disable this feature.
3152 alias -g '${1+"$@"}'='"$@"'
3153 setopt NO_GLOB_SUBST
3154 else
3155 case `(set -o) 2>/dev/null` in #(
3156 *posix*) :
3157 set -o posix ;; #(
3158 *) :
3160 esac
3164 as_nl='
3166 export as_nl
3167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3171 # Prefer a ksh shell builtin over an external printf program on Solaris,
3172 # but without wasting forks for bash or zsh.
3173 if test -z "$BASH_VERSION$ZSH_VERSION" \
3174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3175 as_echo='print -r --'
3176 as_echo_n='print -rn --'
3177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3178 as_echo='printf %s\n'
3179 as_echo_n='printf %s'
3180 else
3181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3183 as_echo_n='/usr/ucb/echo -n'
3184 else
3185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3186 as_echo_n_body='eval
3187 arg=$1;
3188 case $arg in #(
3189 *"$as_nl"*)
3190 expr "X$arg" : "X\\(.*\\)$as_nl";
3191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3192 esac;
3193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3195 export as_echo_n_body
3196 as_echo_n='sh -c $as_echo_n_body as_echo'
3198 export as_echo_body
3199 as_echo='sh -c $as_echo_body as_echo'
3202 # The user is always right.
3203 if test "${PATH_SEPARATOR+set}" != set; then
3204 PATH_SEPARATOR=:
3205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3207 PATH_SEPARATOR=';'
3212 # IFS
3213 # We need space, tab and new line, in precisely that order. Quoting is
3214 # there to prevent editors from complaining about space-tab.
3215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3216 # splitting by setting IFS to empty value.)
3217 IFS=" "" $as_nl"
3219 # Find who we are. Look in the path if we contain no directory separator.
3220 case $0 in #((
3221 *[\\/]* ) as_myself=$0 ;;
3222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3228 done
3229 IFS=$as_save_IFS
3232 esac
3233 # We did not find ourselves, most probably we were run as `sh COMMAND'
3234 # in which case we are not to be found in the path.
3235 if test "x$as_myself" = x; then
3236 as_myself=$0
3238 if test ! -f "$as_myself"; then
3239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3240 exit 1
3243 # Unset variables that we do not need and which cause bugs (e.g. in
3244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3245 # suppresses any "Segmentation fault" message there. '((' could
3246 # trigger a bug in pdksh 5.2.14.
3247 for as_var in BASH_ENV ENV MAIL MAILPATH
3248 do eval test x\${$as_var+set} = xset \
3249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3250 done
3251 PS1='$ '
3252 PS2='> '
3253 PS4='+ '
3255 # NLS nuisances.
3256 LC_ALL=C
3257 export LC_ALL
3258 LANGUAGE=C
3259 export LANGUAGE
3261 # CDPATH.
3262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3265 # as_fn_error ERROR [LINENO LOG_FD]
3266 # ---------------------------------
3267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3269 # script with status $?, using 1 if that was 0.
3270 as_fn_error ()
3272 as_status=$?; test $as_status -eq 0 && as_status=1
3273 if test "$3"; then
3274 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3277 $as_echo "$as_me: error: $1" >&2
3278 as_fn_exit $as_status
3279 } # as_fn_error
3282 # as_fn_set_status STATUS
3283 # -----------------------
3284 # Set $? to STATUS, without forking.
3285 as_fn_set_status ()
3287 return $1
3288 } # as_fn_set_status
3290 # as_fn_exit STATUS
3291 # -----------------
3292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3293 as_fn_exit ()
3295 set +e
3296 as_fn_set_status $1
3297 exit $1
3298 } # as_fn_exit
3300 # as_fn_unset VAR
3301 # ---------------
3302 # Portably unset VAR.
3303 as_fn_unset ()
3305 { eval $1=; unset $1;}
3307 as_unset=as_fn_unset
3308 # as_fn_append VAR VALUE
3309 # ----------------------
3310 # Append the text in VALUE to the end of the definition contained in VAR. Take
3311 # advantage of any shell optimizations that allow amortized linear growth over
3312 # repeated appends, instead of the typical quadratic growth present in naive
3313 # implementations.
3314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3315 eval 'as_fn_append ()
3317 eval $1+=\$2
3319 else
3320 as_fn_append ()
3322 eval $1=\$$1\$2
3324 fi # as_fn_append
3326 # as_fn_arith ARG...
3327 # ------------------
3328 # Perform arithmetic evaluation on the ARGs, and store the result in the
3329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3330 # must be portable across $(()) and expr.
3331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3332 eval 'as_fn_arith ()
3334 as_val=$(( $* ))
3336 else
3337 as_fn_arith ()
3339 as_val=`expr "$@" || test $? -eq 1`
3341 fi # as_fn_arith
3344 if expr a : '\(a\)' >/dev/null 2>&1 &&
3345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3346 as_expr=expr
3347 else
3348 as_expr=false
3351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3352 as_basename=basename
3353 else
3354 as_basename=false
3357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3358 as_dirname=dirname
3359 else
3360 as_dirname=false
3363 as_me=`$as_basename -- "$0" ||
3364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3365 X"$0" : 'X\(//\)$' \| \
3366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3367 $as_echo X/"$0" |
3368 sed '/^.*\/\([^/][^/]*\)\/*$/{
3369 s//\1/
3372 /^X\/\(\/\/\)$/{
3373 s//\1/
3376 /^X\/\(\/\).*/{
3377 s//\1/
3380 s/.*/./; q'`
3382 # Avoid depending upon Character Ranges.
3383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3386 as_cr_digits='0123456789'
3387 as_cr_alnum=$as_cr_Letters$as_cr_digits
3389 ECHO_C= ECHO_N= ECHO_T=
3390 case `echo -n x` in #(((((
3391 -n*)
3392 case `echo 'xy\c'` in
3393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3394 xy) ECHO_C='\c';;
3395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3396 ECHO_T=' ';;
3397 esac;;
3399 ECHO_N='-n';;
3400 esac
3402 rm -f conf$$ conf$$.exe conf$$.file
3403 if test -d conf$$.dir; then
3404 rm -f conf$$.dir/conf$$.file
3405 else
3406 rm -f conf$$.dir
3407 mkdir conf$$.dir 2>/dev/null
3409 if (echo >conf$$.file) 2>/dev/null; then
3410 if ln -s conf$$.file conf$$ 2>/dev/null; then
3411 as_ln_s='ln -s'
3412 # ... but there are two gotchas:
3413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3415 # In both cases, we have to default to `cp -p'.
3416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3417 as_ln_s='cp -p'
3418 elif ln conf$$.file conf$$ 2>/dev/null; then
3419 as_ln_s=ln
3420 else
3421 as_ln_s='cp -p'
3423 else
3424 as_ln_s='cp -p'
3426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3427 rmdir conf$$.dir 2>/dev/null
3430 # as_fn_mkdir_p
3431 # -------------
3432 # Create "$as_dir" as a directory, including parents if necessary.
3433 as_fn_mkdir_p ()
3436 case $as_dir in #(
3437 -*) as_dir=./$as_dir;;
3438 esac
3439 test -d "$as_dir" || eval $as_mkdir_p || {
3440 as_dirs=
3441 while :; do
3442 case $as_dir in #(
3443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3444 *) as_qdir=$as_dir;;
3445 esac
3446 as_dirs="'$as_qdir' $as_dirs"
3447 as_dir=`$as_dirname -- "$as_dir" ||
3448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3449 X"$as_dir" : 'X\(//\)[^/]' \| \
3450 X"$as_dir" : 'X\(//\)$' \| \
3451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3452 $as_echo X"$as_dir" |
3453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3454 s//\1/
3457 /^X\(\/\/\)[^/].*/{
3458 s//\1/
3461 /^X\(\/\/\)$/{
3462 s//\1/
3465 /^X\(\/\).*/{
3466 s//\1/
3469 s/.*/./; q'`
3470 test -d "$as_dir" && break
3471 done
3472 test -z "$as_dirs" || eval "mkdir $as_dirs"
3473 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3476 } # as_fn_mkdir_p
3477 if mkdir -p . 2>/dev/null; then
3478 as_mkdir_p='mkdir -p "$as_dir"'
3479 else
3480 test -d ./-p && rmdir ./-p
3481 as_mkdir_p=false
3484 if test -x / >/dev/null 2>&1; then
3485 as_test_x='test -x'
3486 else
3487 if ls -dL / >/dev/null 2>&1; then
3488 as_ls_L_option=L
3489 else
3490 as_ls_L_option=
3492 as_test_x='
3493 eval sh -c '\''
3494 if test -d "$1"; then
3495 test -d "$1/.";
3496 else
3497 case $1 in #(
3498 -*)set "./$1";;
3499 esac;
3500 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3501 ???[sx]*):;;*)false;;esac;fi
3502 '\'' sh
3505 as_executable_p=$as_test_x
3507 # Sed expression to map a string onto a valid CPP name.
3508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3510 # Sed expression to map a string onto a valid variable name.
3511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3514 exec 6>&1
3515 ## ----------------------------------- ##
3516 ## Main body of $CONFIG_STATUS script. ##
3517 ## ----------------------------------- ##
3518 _ASEOF
3519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3522 # Save the log message, to keep $0 and so on meaningful, and to
3523 # report actual input values of CONFIG_FILES etc. instead of their
3524 # values after options handling.
3525 ac_log="
3526 This file was extended by Polly $as_me 0.01, which was
3527 generated by GNU Autoconf 2.65. Invocation command line was
3529 CONFIG_FILES = $CONFIG_FILES
3530 CONFIG_HEADERS = $CONFIG_HEADERS
3531 CONFIG_LINKS = $CONFIG_LINKS
3532 CONFIG_COMMANDS = $CONFIG_COMMANDS
3533 $ $0 $@
3535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3538 _ACEOF
3540 case $ac_config_files in *"
3541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3542 esac
3544 case $ac_config_headers in *"
3545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3546 esac
3549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3550 # Files that config.status was made for.
3551 config_files="$ac_config_files"
3552 config_headers="$ac_config_headers"
3553 config_commands="$ac_config_commands"
3555 _ACEOF
3557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3558 ac_cs_usage="\
3559 \`$as_me' instantiates files and other configuration actions
3560 from templates according to the current configuration. Unless the files
3561 and actions are specified as TAGs, all are instantiated by default.
3563 Usage: $0 [OPTION]... [TAG]...
3565 -h, --help print this help, then exit
3566 -V, --version print version number and configuration settings, then exit
3567 --config print configuration, then exit
3568 -q, --quiet, --silent
3569 do not print progress messages
3570 -d, --debug don't remove temporary files
3571 --recheck update $as_me by reconfiguring in the same conditions
3572 --file=FILE[:TEMPLATE]
3573 instantiate the configuration file FILE
3574 --header=FILE[:TEMPLATE]
3575 instantiate the configuration header FILE
3577 Configuration files:
3578 $config_files
3580 Configuration headers:
3581 $config_headers
3583 Configuration commands:
3584 $config_commands
3586 Report bugs to <polly-dev@googlegroups.com>."
3588 _ACEOF
3589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3590 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3591 ac_cs_version="\\
3592 Polly config.status 0.01
3593 configured by $0, generated by GNU Autoconf 2.65,
3594 with options \\"\$ac_cs_config\\"
3596 Copyright (C) 2009 Free Software Foundation, Inc.
3597 This config.status script is free software; the Free Software Foundation
3598 gives unlimited permission to copy, distribute and modify it."
3600 ac_pwd='$ac_pwd'
3601 srcdir='$srcdir'
3602 test -n "\$AWK" || AWK=awk
3603 _ACEOF
3605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3606 # The default lists apply if the user does not specify any file.
3607 ac_need_defaults=:
3608 while test $# != 0
3610 case $1 in
3611 --*=*)
3612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3614 ac_shift=:
3617 ac_option=$1
3618 ac_optarg=$2
3619 ac_shift=shift
3621 esac
3623 case $ac_option in
3624 # Handling of the options.
3625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3626 ac_cs_recheck=: ;;
3627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3628 $as_echo "$ac_cs_version"; exit ;;
3629 --config | --confi | --conf | --con | --co | --c )
3630 $as_echo "$ac_cs_config"; exit ;;
3631 --debug | --debu | --deb | --de | --d | -d )
3632 debug=: ;;
3633 --file | --fil | --fi | --f )
3634 $ac_shift
3635 case $ac_optarg in
3636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3637 esac
3638 as_fn_append CONFIG_FILES " '$ac_optarg'"
3639 ac_need_defaults=false;;
3640 --header | --heade | --head | --hea )
3641 $ac_shift
3642 case $ac_optarg in
3643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3644 esac
3645 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3646 ac_need_defaults=false;;
3647 --he | --h)
3648 # Conflict between --help and --header
3649 as_fn_error "ambiguous option: \`$1'
3650 Try \`$0 --help' for more information.";;
3651 --help | --hel | -h )
3652 $as_echo "$ac_cs_usage"; exit ;;
3653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3655 ac_cs_silent=: ;;
3657 # This is an error.
3658 -*) as_fn_error "unrecognized option: \`$1'
3659 Try \`$0 --help' for more information." ;;
3661 *) as_fn_append ac_config_targets " $1"
3662 ac_need_defaults=false ;;
3664 esac
3665 shift
3666 done
3668 ac_configure_extra_args=
3670 if $ac_cs_silent; then
3671 exec 6>/dev/null
3672 ac_configure_extra_args="$ac_configure_extra_args --silent"
3675 _ACEOF
3676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3677 if \$ac_cs_recheck; then
3678 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3679 shift
3680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3681 CONFIG_SHELL='$SHELL'
3682 export CONFIG_SHELL
3683 exec "\$@"
3686 _ACEOF
3687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3688 exec 5>>config.log
3690 echo
3691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3692 ## Running $as_me. ##
3693 _ASBOX
3694 $as_echo "$ac_log"
3695 } >&5
3697 _ACEOF
3698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3700 # INIT-COMMANDS
3702 llvm_src="${LLVM_SRC}"
3704 _ACEOF
3706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3708 # Handling of arguments.
3709 for ac_config_target in $ac_config_targets
3711 case $ac_config_target in
3712 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
3713 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
3714 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
3715 "include/polly/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/polly/Config/config.h" ;;
3717 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3718 esac
3719 done
3722 # If the user did not use the arguments to specify the items to instantiate,
3723 # then the envvar interface is used. Set only those that are not.
3724 # We use the long form for the default assignment because of an extremely
3725 # bizarre bug on SunOS 4.1.3.
3726 if $ac_need_defaults; then
3727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3732 # Have a temporary directory for convenience. Make it in the build tree
3733 # simply because there is no reason against having it here, and in addition,
3734 # creating and moving files from /tmp can sometimes cause problems.
3735 # Hook for its removal unless debugging.
3736 # Note that there is a small window in which the directory will not be cleaned:
3737 # after its creation but before its name has been assigned to `$tmp'.
3738 $debug ||
3740 tmp=
3741 trap 'exit_status=$?
3742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3744 trap 'as_fn_exit 1' 1 2 13 15
3746 # Create a (secure) tmp directory for tmp files.
3749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3750 test -n "$tmp" && test -d "$tmp"
3751 } ||
3753 tmp=./conf$$-$RANDOM
3754 (umask 077 && mkdir "$tmp")
3755 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3757 # Set up the scripts for CONFIG_FILES section.
3758 # No need to generate them if there are no CONFIG_FILES.
3759 # This happens for instance with `./config.status config.h'.
3760 if test -n "$CONFIG_FILES"; then
3763 ac_cr=`echo X | tr X '\015'`
3764 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3765 # But we know of no other shell where ac_cr would be empty at this
3766 # point, so we can use a bashism as a fallback.
3767 if test "x$ac_cr" = x; then
3768 eval ac_cr=\$\'\\r\'
3770 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3771 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3772 ac_cs_awk_cr='\r'
3773 else
3774 ac_cs_awk_cr=$ac_cr
3777 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3778 _ACEOF
3782 echo "cat >conf$$subs.awk <<_ACEOF" &&
3783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3784 echo "_ACEOF"
3785 } >conf$$subs.sh ||
3786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3788 ac_delim='%!_!# '
3789 for ac_last_try in false false false false false :; do
3790 . ./conf$$subs.sh ||
3791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3794 if test $ac_delim_n = $ac_delim_num; then
3795 break
3796 elif $ac_last_try; then
3797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3798 else
3799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3801 done
3802 rm -f conf$$subs.sh
3804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3805 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3806 _ACEOF
3807 sed -n '
3809 s/^/S["/; s/!.*/"]=/
3812 s/^[^!]*!//
3813 :repl
3814 t repl
3815 s/'"$ac_delim"'$//
3816 t delim
3819 s/\(.\{148\}\)..*/\1/
3820 t more1
3821 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3824 b repl
3825 :more1
3826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3829 s/.\{148\}//
3830 t nl
3831 :delim
3833 s/\(.\{148\}\)..*/\1/
3834 t more2
3835 s/["\\]/\\&/g; s/^/"/; s/$/"/
3838 :more2
3839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3842 s/.\{148\}//
3843 t delim
3844 ' <conf$$subs.awk | sed '
3845 /^[^""]/{
3847 s/\n//
3849 ' >>$CONFIG_STATUS || ac_write_fail=1
3850 rm -f conf$$subs.awk
3851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3852 _ACAWK
3853 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3854 for (key in S) S_is_set[key] = 1
3855 FS = "\a"
3859 line = $ 0
3860 nfields = split(line, field, "@")
3861 substed = 0
3862 len = length(field[1])
3863 for (i = 2; i < nfields; i++) {
3864 key = field[i]
3865 keylen = length(key)
3866 if (S_is_set[key]) {
3867 value = S[key]
3868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3869 len += length(value) + length(field[++i])
3870 substed = 1
3871 } else
3872 len += 1 + keylen
3875 print line
3878 _ACAWK
3879 _ACEOF
3880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3881 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3883 else
3885 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3886 || as_fn_error "could not setup config files machinery" "$LINENO" 5
3887 _ACEOF
3889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3891 # trailing colons and then remove the whole line if VPATH becomes empty
3892 # (actually we leave an empty line to preserve line numbers).
3893 if test "x$srcdir" = x.; then
3894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3895 s/:*\$(srcdir):*/:/
3896 s/:*\${srcdir}:*/:/
3897 s/:*@srcdir@:*/:/
3898 s/^\([^=]*=[ ]*\):*/\1/
3899 s/:*$//
3900 s/^[^=]*=[ ]*$//
3904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3905 fi # test -n "$CONFIG_FILES"
3907 # Set up the scripts for CONFIG_HEADERS section.
3908 # No need to generate them if there are no CONFIG_HEADERS.
3909 # This happens for instance with `./config.status Makefile'.
3910 if test -n "$CONFIG_HEADERS"; then
3911 cat >"$tmp/defines.awk" <<\_ACAWK ||
3912 BEGIN {
3913 _ACEOF
3915 # Transform confdefs.h into an awk script `defines.awk', embedded as
3916 # here-document in config.status, that substitutes the proper values into
3917 # config.h.in to produce config.h.
3919 # Create a delimiter string that does not exist in confdefs.h, to ease
3920 # handling of long lines.
3921 ac_delim='%!_!# '
3922 for ac_last_try in false false :; do
3923 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
3924 if test -z "$ac_t"; then
3925 break
3926 elif $ac_last_try; then
3927 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
3928 else
3929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3931 done
3933 # For the awk script, D is an array of macro values keyed by name,
3934 # likewise P contains macro parameters if any. Preserve backslash
3935 # newline sequences.
3937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3938 sed -n '
3939 s/.\{148\}/&'"$ac_delim"'/g
3940 t rset
3941 :rset
3942 s/^[ ]*#[ ]*define[ ][ ]*/ /
3943 t def
3945 :def
3946 s/\\$//
3947 t bsnl
3948 s/["\\]/\\&/g
3949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3950 D["\1"]=" \3"/p
3951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
3953 :bsnl
3954 s/["\\]/\\&/g
3955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3956 D["\1"]=" \3\\\\\\n"\\/p
3957 t cont
3958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3959 t cont
3961 :cont
3963 s/.\{148\}/&'"$ac_delim"'/g
3964 t clear
3965 :clear
3966 s/\\$//
3967 t bsnlc
3968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
3970 :bsnlc
3971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3972 b cont
3973 ' <confdefs.h | sed '
3974 s/'"$ac_delim"'/"\\\
3975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
3977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3978 for (key in D) D_is_set[key] = 1
3979 FS = "\a"
3981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
3982 line = \$ 0
3983 split(line, arg, " ")
3984 if (arg[1] == "#") {
3985 defundef = arg[2]
3986 mac1 = arg[3]
3987 } else {
3988 defundef = substr(arg[1], 2)
3989 mac1 = arg[2]
3991 split(mac1, mac2, "(") #)
3992 macro = mac2[1]
3993 prefix = substr(line, 1, index(line, defundef) - 1)
3994 if (D_is_set[macro]) {
3995 # Preserve the white space surrounding the "#".
3996 print prefix "define", macro P[macro] D[macro]
3997 next
3998 } else {
3999 # Replace #undef with comments. This is necessary, for example,
4000 # in the case of _POSIX_SOURCE, which is predefined and required
4001 # on some systems where configure will not decide to define it.
4002 if (defundef == "undef") {
4003 print "/*", prefix defundef, macro, "*/"
4004 next
4008 { print }
4009 _ACAWK
4010 _ACEOF
4011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4012 as_fn_error "could not setup config headers machinery" "$LINENO" 5
4013 fi # test -n "$CONFIG_HEADERS"
4016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4017 shift
4018 for ac_tag
4020 case $ac_tag in
4021 :[FHLC]) ac_mode=$ac_tag; continue;;
4022 esac
4023 case $ac_mode$ac_tag in
4024 :[FHL]*:*);;
4025 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4026 :[FH]-) ac_tag=-:-;;
4027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4028 esac
4029 ac_save_IFS=$IFS
4030 IFS=:
4031 set x $ac_tag
4032 IFS=$ac_save_IFS
4033 shift
4034 ac_file=$1
4035 shift
4037 case $ac_mode in
4038 :L) ac_source=$1;;
4039 :[FH])
4040 ac_file_inputs=
4041 for ac_f
4043 case $ac_f in
4044 -) ac_f="$tmp/stdin";;
4045 *) # Look for the file first in the build tree, then in the source tree
4046 # (if the path is not absolute). The absolute path cannot be DOS-style,
4047 # because $ac_f cannot contain `:'.
4048 test -f "$ac_f" ||
4049 case $ac_f in
4050 [\\/$]*) false;;
4051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4052 esac ||
4053 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4054 esac
4055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4056 as_fn_append ac_file_inputs " '$ac_f'"
4057 done
4059 # Let's still pretend it is `configure' which instantiates (i.e., don't
4060 # use $as_me), people would be surprised to read:
4061 # /* config.h. Generated by config.status. */
4062 configure_input='Generated from '`
4063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4064 `' by configure.'
4065 if test x"$ac_file" != x-; then
4066 configure_input="$ac_file. $configure_input"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4068 $as_echo "$as_me: creating $ac_file" >&6;}
4070 # Neutralize special characters interpreted by sed in replacement strings.
4071 case $configure_input in #(
4072 *\&* | *\|* | *\\* )
4073 ac_sed_conf_input=`$as_echo "$configure_input" |
4074 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4075 *) ac_sed_conf_input=$configure_input;;
4076 esac
4078 case $ac_tag in
4079 *:-:* | *:-) cat >"$tmp/stdin" \
4080 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4081 esac
4083 esac
4085 ac_dir=`$as_dirname -- "$ac_file" ||
4086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4087 X"$ac_file" : 'X\(//\)[^/]' \| \
4088 X"$ac_file" : 'X\(//\)$' \| \
4089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4090 $as_echo X"$ac_file" |
4091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4092 s//\1/
4095 /^X\(\/\/\)[^/].*/{
4096 s//\1/
4099 /^X\(\/\/\)$/{
4100 s//\1/
4103 /^X\(\/\).*/{
4104 s//\1/
4107 s/.*/./; q'`
4108 as_dir="$ac_dir"; as_fn_mkdir_p
4109 ac_builddir=.
4111 case "$ac_dir" in
4112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4115 # A ".." for each directory in $ac_dir_suffix.
4116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4117 case $ac_top_builddir_sub in
4118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4120 esac ;;
4121 esac
4122 ac_abs_top_builddir=$ac_pwd
4123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4124 # for backward compatibility:
4125 ac_top_builddir=$ac_top_build_prefix
4127 case $srcdir in
4128 .) # We are building in place.
4129 ac_srcdir=.
4130 ac_top_srcdir=$ac_top_builddir_sub
4131 ac_abs_top_srcdir=$ac_pwd ;;
4132 [\\/]* | ?:[\\/]* ) # Absolute name.
4133 ac_srcdir=$srcdir$ac_dir_suffix;
4134 ac_top_srcdir=$srcdir
4135 ac_abs_top_srcdir=$srcdir ;;
4136 *) # Relative name.
4137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4138 ac_top_srcdir=$ac_top_build_prefix$srcdir
4139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4140 esac
4141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4144 case $ac_mode in
4147 # CONFIG_FILE
4150 _ACEOF
4152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4153 # If the template does not know about datarootdir, expand it.
4154 # FIXME: This hack should be removed a few years after 2.60.
4155 ac_datarootdir_hack=; ac_datarootdir_seen=
4156 ac_sed_dataroot='
4157 /datarootdir/ {
4161 /@datadir@/p
4162 /@docdir@/p
4163 /@infodir@/p
4164 /@localedir@/p
4165 /@mandir@/p'
4166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4167 *datarootdir*) ac_datarootdir_seen=yes;;
4168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4171 _ACEOF
4172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4173 ac_datarootdir_hack='
4174 s&@datadir@&$datadir&g
4175 s&@docdir@&$docdir&g
4176 s&@infodir@&$infodir&g
4177 s&@localedir@&$localedir&g
4178 s&@mandir@&$mandir&g
4179 s&\\\${datarootdir}&$datarootdir&g' ;;
4180 esac
4181 _ACEOF
4183 # Neutralize VPATH when `$srcdir' = `.'.
4184 # Shell code in configure.ac might set extrasub.
4185 # FIXME: do we really want to maintain this feature?
4186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4187 ac_sed_extra="$ac_vpsub
4188 $extrasub
4189 _ACEOF
4190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4193 s|@configure_input@|$ac_sed_conf_input|;t t
4194 s&@top_builddir@&$ac_top_builddir_sub&;t t
4195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4196 s&@srcdir@&$ac_srcdir&;t t
4197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4198 s&@top_srcdir@&$ac_top_srcdir&;t t
4199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4200 s&@builddir@&$ac_builddir&;t t
4201 s&@abs_builddir@&$ac_abs_builddir&;t t
4202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4203 $ac_datarootdir_hack
4205 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4206 || as_fn_error "could not create $ac_file" "$LINENO" 5
4208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4209 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4212 which seems to be undefined. Please make sure it is defined." >&5
4213 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4214 which seems to be undefined. Please make sure it is defined." >&2;}
4216 rm -f "$tmp/stdin"
4217 case $ac_file in
4218 -) cat "$tmp/out" && rm -f "$tmp/out";;
4219 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4220 esac \
4221 || as_fn_error "could not create $ac_file" "$LINENO" 5
4225 # CONFIG_HEADER
4227 if test x"$ac_file" != x-; then
4229 $as_echo "/* $configure_input */" \
4230 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4231 } >"$tmp/config.h" \
4232 || as_fn_error "could not create $ac_file" "$LINENO" 5
4233 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4235 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4236 else
4237 rm -f "$ac_file"
4238 mv "$tmp/config.h" "$ac_file" \
4239 || as_fn_error "could not create $ac_file" "$LINENO" 5
4241 else
4242 $as_echo "/* $configure_input */" \
4243 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4244 || as_fn_error "could not create -" "$LINENO" 5
4248 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4249 $as_echo "$as_me: executing $ac_file commands" >&6;}
4251 esac
4253 done # for ac_tag
4256 as_fn_exit 0
4257 _ACEOF
4258 ac_clean_files=$ac_clean_files_save
4260 test $ac_write_fail = 0 ||
4261 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4264 # configure is writing to config.log, and then calls config.status.
4265 # config.status does its own redirection, appending to config.log.
4266 # Unfortunately, on DOS this fails, as config.log is still kept open
4267 # by configure, so config.status won't be able to write to it; its
4268 # output is simply discarded. So we exec the FD to /dev/null,
4269 # effectively closing config.log, so it can be properly (re)opened and
4270 # appended to by config.status. When coming back to configure, we
4271 # need to make the FD available again.
4272 if test "$no_create" != yes; then
4273 ac_cs_success=:
4274 ac_config_status_args=
4275 test "$silent" = yes &&
4276 ac_config_status_args="$ac_config_status_args --quiet"
4277 exec 5>/dev/null
4278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4279 exec 5>>config.log
4280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4281 # would make configure fail if this is the last instruction.
4282 $ac_cs_success || as_fn_exit $?
4284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}