blob: 75bbfab3b5b352b79fcb34fa4ea77660d7ae4c61 [file] [log] [blame]
Tobias Grosser75805372011-04-29 06:27:02 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sebastian Pop654b7752012-11-15 21:20:22 +00003# Generated by GNU Autoconf 2.65 for Polly 0.01.
Tobias Grosser75805372011-04-29 06:27:02 +00004#
5# Report bugs to <polly-dev@googlegroups.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Sebastian Pop654b7752012-11-15 21:20:22 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
Tobias Grosser75805372011-04-29 06:27:02 +000011#
12#
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## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if 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
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_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.
47if 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 --'
51elif (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'
54else
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"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if 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=';'
82 }
83fi
84
85
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.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
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
103IFS=$as_save_IFS
104
105 ;;
106esac
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.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
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.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if 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
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test 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
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
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
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
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
210fi; }
211IFS=$as_save_IFS
212
213
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
Sebastian Pop654b7752012-11-15 21:20:22 +0000222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Tobias Grosser75805372011-04-29 06:27:02 +0000223fi
224
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."
237 fi
238 exit 1
239fi
240fi
241fi
242SHELL=${CONFIG_SHELL-/bin/sh}
243export SHELL
244# Unset more variables known to interfere with behavior of common tools.
245CLICOLOR_FORCE= GREP_OPTIONS=
246unset CLICOLOR_FORCE GREP_OPTIONS
247
248## --------------------- ##
249## M4sh Shell Functions. ##
250## --------------------- ##
251# as_fn_unset VAR
252# ---------------
253# Portably unset VAR.
254as_fn_unset ()
255{
256 { eval $1=; unset $1;}
257}
258as_unset=as_fn_unset
259
260# as_fn_set_status STATUS
261# -----------------------
262# Set $? to STATUS, without forking.
263as_fn_set_status ()
264{
265 return $1
266} # as_fn_set_status
267
268# as_fn_exit STATUS
269# -----------------
270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271as_fn_exit ()
272{
273 set +e
274 as_fn_set_status $1
275 exit $1
276} # as_fn_exit
277
278# as_fn_mkdir_p
279# -------------
280# Create "$as_dir" as a directory, including parents if necessary.
281as_fn_mkdir_p ()
282{
283
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/
303 q
304 }
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\).*/{
314 s//\1/
315 q
316 }
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sebastian Pop654b7752012-11-15 21:20:22 +0000321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
Tobias Grosser75805372011-04-29 06:27:02 +0000322
323
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.
331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
333 {
334 eval $1+=\$2
335 }'
336else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341fi # as_fn_append
342
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.
348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358fi # as_fn_arith
359
360
Sebastian Pop654b7752012-11-15 21:20:22 +0000361# as_fn_error ERROR [LINENO LOG_FD]
362# ---------------------------------
Tobias Grosser75805372011-04-29 06:27:02 +0000363# 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
Sebastian Pop654b7752012-11-15 21:20:22 +0000365# script with status $?, using 1 if that was 0.
Tobias Grosser75805372011-04-29 06:27:02 +0000366as_fn_error ()
367{
Sebastian Pop654b7752012-11-15 21:20:22 +0000368 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
Tobias Grosser75805372011-04-29 06:27:02 +0000372 fi
Sebastian Pop654b7752012-11-15 21:20:22 +0000373 $as_echo "$as_me: error: $1" >&2
Tobias Grosser75805372011-04-29 06:27:02 +0000374 as_fn_exit $as_status
375} # as_fn_error
376
377if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380else
381 as_expr=false
382fi
383
384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386else
387 as_basename=false
388fi
389
390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392else
393 as_dirname=false
394fi
395
396as_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/
403 q
404 }
405 /^X\/\(\/\/\)$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\).*/{
410 s//\1/
411 q
412 }
413 s/.*/./; q'`
414
415# Avoid depending upon Character Ranges.
416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419as_cr_digits='0123456789'
420as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
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 '
429 p
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
435 b
436 :lineno
437 N
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; }
445
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
452}
453
454ECHO_C= ECHO_N= ECHO_T=
455case `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;;
463*)
464 ECHO_N='-n';;
465esac
466
467rm -f conf$$ conf$$.exe conf$$.file
468if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
473fi
474if (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'
487 fi
488else
489 as_ln_s='cp -p'
490fi
491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492rmdir conf$$.dir 2>/dev/null
493
494if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
499fi
500
501if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
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
520 '
521fi
522as_executable_p=$as_test_x
523
524# Sed expression to map a string onto a valid CPP name.
525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527# Sed expression to map a string onto a valid variable name.
528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531test -n "$DJDIR" || exec 7<&0 </dev/null
532exec 6>&1
533
534# Name of the host.
Sebastian Pop654b7752012-11-15 21:20:22 +0000535# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Tobias Grosser75805372011-04-29 06:27:02 +0000536# so uname gets run too.
537ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538
539#
540# Initializations.
541#
542ac_default_prefix=/usr/local
543ac_clean_files=
544ac_config_libobj_dir=.
545LIBOBJS=
546cross_compiling=no
547subdirs=
548MFLAGS=
549MAKEFLAGS=
550
551# Identity of this package.
552PACKAGE_NAME='Polly'
553PACKAGE_TARNAME='polly'
554PACKAGE_VERSION='0.01'
555PACKAGE_STRING='Polly 0.01'
556PACKAGE_BUGREPORT='polly-dev@googlegroups.com'
557PACKAGE_URL=''
558
559ac_unique_file=""lib/Analysis/ScopInfo.cpp""
560ac_subst_vars='LTLIBOBJS
561LIBOBJS
Tobias Grosser88aeaf62012-06-06 12:16:10 +0000562cuda_ld
563cuda_lib
564cuda_inc
565cuda_found
Tobias Grosser75805372011-04-29 06:27:02 +0000566scoplib_rpath
567scoplib_ld
568scoplib_lib
569scoplib_inc
570scoplib_found
571openscop_ld
572openscop_lib
573openscop_inc
574openscop_found
Tobias Grosserc11349c2012-08-02 07:47:26 +0000575pluto_ld
576pluto_lib
577pluto_inc
578pluto_found
Tobias Grosser75805372011-04-29 06:27:02 +0000579cloog_ld
580cloog_lib
581cloog_inc
582cloog_found
583isl_ld
584isl_lib
585isl_inc
586isl_found
587gmp_ld
588gmp_lib
589gmp_inc
590gmp_found
591OBJEXT
592EXEEXT
593ac_ct_CXX
594CPPFLAGS
595LDFLAGS
596CXXFLAGS
597CXX
598LLVM_OBJ
599LLVM_SRC
600target_alias
601host_alias
602build_alias
603LIBS
604ECHO_T
605ECHO_N
606ECHO_C
607DEFS
608mandir
609localedir
610libdir
611psdir
612pdfdir
613dvidir
614htmldir
615infodir
616docdir
617oldincludedir
618includedir
619localstatedir
620sharedstatedir
621sysconfdir
622datadir
623datarootdir
624libexecdir
625sbindir
626bindir
627program_transform_name
628prefix
629exec_prefix
630PACKAGE_URL
631PACKAGE_BUGREPORT
632PACKAGE_STRING
633PACKAGE_VERSION
634PACKAGE_TARNAME
635PACKAGE_NAME
636PATH_SEPARATOR
637SHELL'
638ac_subst_files=''
639ac_user_opts='
640enable_option_checking
641with_llvmsrc
642with_llvmobj
643with_gmp
644with_isl
645with_cloog
Tobias Grosserc11349c2012-08-02 07:47:26 +0000646with_pluto
Tobias Grosser75805372011-04-29 06:27:02 +0000647with_openscop
648with_scoplib
Tobias Grosser6217e182012-08-03 12:50:07 +0000649enable_polly_gpu_codegen
Tobias Grosser88aeaf62012-06-06 12:16:10 +0000650with_cuda
Tobias Grosser75805372011-04-29 06:27:02 +0000651'
652 ac_precious_vars='build_alias
653host_alias
654target_alias
655CXX
656CXXFLAGS
657LDFLAGS
658LIBS
659CPPFLAGS
660CCC'
661
662
663# Initialize some variables set by options.
664ac_init_help=
665ac_init_version=false
666ac_unrecognized_opts=
667ac_unrecognized_sep=
668# The variables have the same names as the options, with
669# dashes changed to underlines.
670cache_file=/dev/null
671exec_prefix=NONE
672no_create=
673no_recursion=
674prefix=NONE
675program_prefix=NONE
676program_suffix=NONE
677program_transform_name=s,x,x,
678silent=
679site=
680srcdir=
681verbose=
682x_includes=NONE
683x_libraries=NONE
684
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.)
691bindir='${exec_prefix}/bin'
692sbindir='${exec_prefix}/sbin'
693libexecdir='${exec_prefix}/libexec'
694datarootdir='${prefix}/share'
695datadir='${datarootdir}'
696sysconfdir='${prefix}/etc'
697sharedstatedir='${prefix}/com'
698localstatedir='${prefix}/var'
699includedir='${prefix}/include'
700oldincludedir='/usr/include'
701docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
702infodir='${datarootdir}/info'
703htmldir='${docdir}'
704dvidir='${docdir}'
705pdfdir='${docdir}'
706psdir='${docdir}'
707libdir='${exec_prefix}/lib'
708localedir='${datarootdir}/locale'
709mandir='${datarootdir}/man'
710
711ac_prev=
712ac_dashdash=
713for ac_option
714do
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
720 fi
721
722 case $ac_option in
Sebastian Pop654b7752012-11-15 21:20:22 +0000723 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
724 *) ac_optarg=yes ;;
Tobias Grosser75805372011-04-29 06:27:02 +0000725 esac
726
727 # Accept the important Cygnus configure options, so we can diagnose typos.
728
729 case $ac_dashdash$ac_option in
730 --)
731 ac_dashdash=yes ;;
732
733 -bindir | --bindir | --bindi | --bind | --bin | --bi)
734 ac_prev=bindir ;;
735 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
736 bindir=$ac_optarg ;;
737
738 -build | --build | --buil | --bui | --bu)
739 ac_prev=build_alias ;;
740 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
741 build_alias=$ac_optarg ;;
742
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 ;;
749
750 --config-cache | -C)
751 cache_file=config.cache ;;
752
753 -datadir | --datadir | --datadi | --datad)
754 ac_prev=datadir ;;
755 -datadir=* | --datadir=* | --datadi=* | --datad=*)
756 datadir=$ac_optarg ;;
757
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 ;;
764
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 &&
Sebastian Pop654b7752012-11-15 21:20:22 +0000769 as_fn_error "invalid feature name: $ac_useropt"
Tobias Grosser75805372011-04-29 06:27:02 +0000770 ac_useropt_orig=$ac_useropt
771 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
773 *"
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 ;;
780
781 -docdir | --docdir | --docdi | --doc | --do)
782 ac_prev=docdir ;;
783 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784 docdir=$ac_optarg ;;
785
786 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787 ac_prev=dvidir ;;
788 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789 dvidir=$ac_optarg ;;
790
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 &&
Sebastian Pop654b7752012-11-15 21:20:22 +0000795 as_fn_error "invalid feature name: $ac_useropt"
Tobias Grosser75805372011-04-29 06:27:02 +0000796 ac_useropt_orig=$ac_useropt
797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
799 *"
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 ;;
806
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 ;;
815
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
819
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 ;;
826
827 -host | --host | --hos | --ho)
828 ac_prev=host_alias ;;
829 -host=* | --host=* | --hos=* | --ho=*)
830 host_alias=$ac_optarg ;;
831
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 ;;
837
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 ;;
844
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848 infodir=$ac_optarg ;;
849
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
853 libdir=$ac_optarg ;;
854
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 ;;
861
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
866
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 ;;
873
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
877 mandir=$ac_optarg ;;
878
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
882
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c | -n)
885 no_create=yes ;;
886
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 ;;
890
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 ;;
899
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
903 prefix=$ac_optarg ;;
904
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 ;;
911
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 ;;
918
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 ;;
935
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
940
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
945
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
949
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 ;;
955
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 ;;
966
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
970 site=$ac_optarg ;;
971
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
975 srcdir=$ac_optarg ;;
976
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 ;;
983
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 ;;
988
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
991
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
994
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 &&
Sebastian Pop654b7752012-11-15 21:20:22 +0000999 as_fn_error "invalid package name: $ac_useropt"
Tobias Grosser75805372011-04-29 06:27:02 +00001000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
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 ;;
1010
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 &&
Sebastian Pop654b7752012-11-15 21:20:22 +00001015 as_fn_error "invalid package name: $ac_useropt"
Tobias Grosser75805372011-04-29 06:27:02 +00001016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
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 ;;
1026
1027 --x)
1028 # Obsolete; use --with-x.
1029 with_x=yes ;;
1030
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 ;;
1037
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 ;;
1044
Sebastian Pop654b7752012-11-15 21:20:22 +00001045 -*) as_fn_error "unrecognized option: \`$ac_option'
1046Try \`$0 --help' for more information."
Tobias Grosser75805372011-04-29 06:27:02 +00001047 ;;
1048
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]* )
Sebastian Pop654b7752012-11-15 21:20:22 +00001054 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
Tobias Grosser75805372011-04-29 06:27:02 +00001055 esac
1056 eval $ac_envvar=\$ac_optarg
1057 export $ac_envvar ;;
1058
1059 *)
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
Sebastian Pop654b7752012-11-15 21:20:22 +00001064 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Tobias Grosser75805372011-04-29 06:27:02 +00001065 ;;
1066
1067 esac
1068done
1069
1070if test -n "$ac_prev"; then
1071 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sebastian Pop654b7752012-11-15 21:20:22 +00001072 as_fn_error "missing argument to $ac_option"
Tobias Grosser75805372011-04-29 06:27:02 +00001073fi
1074
1075if test -n "$ac_unrecognized_opts"; then
1076 case $enable_option_checking in
1077 no) ;;
Sebastian Pop654b7752012-11-15 21:20:22 +00001078 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Tobias Grosser75805372011-04-29 06:27:02 +00001079 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1080 esac
1081fi
1082
1083# Check all directory arguments for consistency.
1084for 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
1088do
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
Sebastian Pop654b7752012-11-15 21:20:22 +00001101 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Tobias Grosser75805372011-04-29 06:27:02 +00001102done
1103
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.
1107build=$build_alias
1108host=$host_alias
1109target=$target_alias
1110
1111# FIXME: To remove some day.
1112if test "x$host_alias" != x; then
1113 if test "x$build_alias" = x; then
1114 cross_compiling=maybe
Sebastian Pop654b7752012-11-15 21:20:22 +00001115 $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
Tobias Grosser75805372011-04-29 06:27:02 +00001117 elif test "x$build_alias" != "x$host_alias"; then
1118 cross_compiling=yes
1119 fi
1120fi
1121
1122ac_tool_prefix=
1123test -n "$host_alias" && ac_tool_prefix=$host_alias-
1124
1125test "$silent" = yes && exec 6>/dev/null
1126
1127
1128ac_pwd=`pwd` && test -n "$ac_pwd" &&
1129ac_ls_di=`ls -di .` &&
1130ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sebastian Pop654b7752012-11-15 21:20:22 +00001131 as_fn_error "working directory cannot be determined"
Tobias Grosser75805372011-04-29 06:27:02 +00001132test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sebastian Pop654b7752012-11-15 21:20:22 +00001133 as_fn_error "pwd does not report name of working directory"
Tobias Grosser75805372011-04-29 06:27:02 +00001134
1135
1136# Find the source files, if location was not specified.
1137if 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/
1148 q
1149 }
1150 /^X\(\/\/\)[^/].*/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\/\)$/{
1155 s//\1/
1156 q
1157 }
1158 /^X\(\/\).*/{
1159 s//\1/
1160 q
1161 }
1162 s/.*/./; q'`
1163 srcdir=$ac_confdir
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1165 srcdir=..
1166 fi
1167else
1168 ac_srcdir_defaulted=no
1169fi
1170if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sebastian Pop654b7752012-11-15 21:20:22 +00001172 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Tobias Grosser75805372011-04-29 06:27:02 +00001173fi
1174ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1175ac_abs_confdir=`(
Sebastian Pop654b7752012-11-15 21:20:22 +00001176 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Tobias Grosser75805372011-04-29 06:27:02 +00001177 pwd)`
1178# When building in place, set srcdir=.
1179if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 srcdir=.
1181fi
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.
1185case $srcdir in
1186*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187esac
1188for 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}
1193done
1194
1195#
1196# Report the --help message.
1197#
1198if 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.
1203
1204Usage: $0 [OPTION]... [VAR=VALUE]...
1205
1206To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207VAR=VALUE. See below for descriptions of some of the useful variables.
1208
1209Defaults for the options are specified in brackets.
1210
1211Configuration:
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
Sebastian Pop654b7752012-11-15 21:20:22 +00001216 -q, --quiet, --silent do not print \`checking...' messages
Tobias Grosser75805372011-04-29 06:27:02 +00001217 --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 \`..']
1221
1222Installation 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]
1227
1228By default, \`make install' will install all the files in
1229\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231for instance \`--prefix=\$HOME'.
1232
1233For better control, use the options below.
1234
1235Fine 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
1256
1257 cat <<\_ACEOF
1258_ACEOF
1259fi
1260
1261if 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
1266
Tobias Grosser6217e182012-08-03 12:50:07 +00001267Optional 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)
1273
Tobias Grosser75805372011-04-29 06:27:02 +00001274Optional 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
Tobias Grosserc11349c2012-08-02 07:47:26 +00001282 --with-pluto prefix of pluto
Tobias Grosser75805372011-04-29 06:27:02 +00001283 --with-openscop prefix of openscop
1284 --with-scoplib prefix of scoplib
Tobias Grosser88aeaf62012-06-06 12:16:10 +00001285 --with-cuda prefix of cuda
Tobias Grosser75805372011-04-29 06:27:02 +00001286
1287Some 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>
1295
1296Use these variables to override the choices made by `configure' or to help
1297it to find libraries and programs with nonstandard names/locations.
1298
1299Report bugs to <polly-dev@googlegroups.com>.
1300_ACEOF
1301ac_status=$?
1302fi
1303
1304if 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=.
1311
1312case "$ac_dir" in
1313.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314*)
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 ;;
1322esac
1323ac_abs_top_builddir=$ac_pwd
1324ac_abs_builddir=$ac_pwd$ac_dir_suffix
1325# for backward compatibility:
1326ac_top_builddir=$ac_top_build_prefix
1327
1328case $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 ;;
1341esac
1342ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1343
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
1357fi
1358
1359test -n "$ac_init_help" && exit $ac_status
1360if $ac_init_version; then
1361 cat <<\_ACEOF
1362Polly configure 0.01
Sebastian Pop654b7752012-11-15 21:20:22 +00001363generated by GNU Autoconf 2.65
Tobias Grosser75805372011-04-29 06:27:02 +00001364
Sebastian Pop654b7752012-11-15 21:20:22 +00001365Copyright (C) 2009 Free Software Foundation, Inc.
Tobias Grosser75805372011-04-29 06:27:02 +00001366This configure script is free software; the Free Software Foundation
1367gives unlimited permission to copy, distribute and modify it.
1368_ACEOF
1369 exit
1370fi
1371
1372## ------------------------ ##
1373## Autoconf initialization. ##
1374## ------------------------ ##
1375
1376# ac_fn_cxx_try_compile LINENO
1377# ----------------------------
1378# Try to compile conftest.$ac_ext, and return whether this succeeded.
1379ac_fn_cxx_try_compile ()
1380{
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"
1384case "(($ac_try" in
1385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1386 *) ac_try_echo=$ac_try;;
1387esac
1388eval 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
1396 fi
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
1403else
1404 $as_echo "$as_me: failed program was:" >&5
1405sed 's/^/| /' conftest.$ac_ext >&5
1406
1407 ac_retval=1
1408fi
Sebastian Pop654b7752012-11-15 21:20:22 +00001409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Tobias Grosser75805372011-04-29 06:27:02 +00001410 as_fn_set_status $ac_retval
1411
1412} # ac_fn_cxx_try_compile
1413
1414# ac_fn_cxx_try_link LINENO
1415# -------------------------
1416# Try to link conftest.$ac_ext, and return whether this succeeded.
1417ac_fn_cxx_try_link ()
1418{
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"
1422case "(($ac_try" in
1423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424 *) ac_try_echo=$ac_try;;
1425esac
1426eval 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
1434 fi
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
1444else
1445 $as_echo "$as_me: failed program was:" >&5
1446sed 's/^/| /' conftest.$ac_ext >&5
1447
1448 ac_retval=1
1449fi
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
Sebastian Pop654b7752012-11-15 21:20:22 +00001455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Tobias Grosser75805372011-04-29 06:27:02 +00001456 as_fn_set_status $ac_retval
1457
1458} # ac_fn_cxx_try_link
1459cat >config.log <<_ACEOF
1460This file contains any messages produced by compilers while
1461running configure, to aid debugging if configure makes a mistake.
1462
1463It was created by Polly $as_me 0.01, which was
Sebastian Pop654b7752012-11-15 21:20:22 +00001464generated by GNU Autoconf 2.65. Invocation command line was
Tobias Grosser75805372011-04-29 06:27:02 +00001465
1466 $ $0 $@
1467
1468_ACEOF
1469exec 5>>config.log
1470{
1471cat <<_ASUNAME
1472## --------- ##
1473## Platform. ##
1474## --------- ##
1475
1476hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1477uname -m = `(uname -m) 2>/dev/null || echo unknown`
1478uname -r = `(uname -r) 2>/dev/null || echo unknown`
1479uname -s = `(uname -s) 2>/dev/null || echo unknown`
1480uname -v = `(uname -v) 2>/dev/null || echo unknown`
1481
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`
1484
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`
1492
1493_ASUNAME
1494
1495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496for as_dir in $PATH
1497do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 $as_echo "PATH: $as_dir"
1501 done
1502IFS=$as_save_IFS
1503
1504} >&5
1505
1506cat >&5 <<_ACEOF
1507
1508
1509## ----------- ##
1510## Core tests. ##
1511## ----------- ##
1512
1513_ACEOF
1514
1515
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.
1521ac_configure_args=
1522ac_configure_args0=
1523ac_configure_args1=
1524ac_must_keep_next=false
1525for ac_pass in 1 2
1526do
1527 for ac_arg
1528 do
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'" ;;
1539 2)
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
1552 ;;
1553 -* ) ac_must_keep_next=true ;;
1554 esac
1555 fi
1556 as_fn_append ac_configure_args " '$ac_arg'"
1557 ;;
1558 esac
1559 done
1560done
1561{ ac_configure_args0=; unset ac_configure_args0;}
1562{ ac_configure_args1=; unset ac_configure_args1;}
1563
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.
1569trap 'exit_status=$?
1570 # Save into config.log some information that might help in debugging.
1571 {
1572 echo
1573
Sebastian Pop654b7752012-11-15 21:20:22 +00001574 cat <<\_ASBOX
1575## ---------------- ##
Tobias Grosser75805372011-04-29 06:27:02 +00001576## Cache variables. ##
Sebastian Pop654b7752012-11-15 21:20:22 +00001577## ---------------- ##
1578_ASBOX
Tobias Grosser75805372011-04-29 06:27:02 +00001579 echo
1580 # The following way of writing the cache mishandles newlines in values,
1581(
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 ;; #(
1604 *)
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ;;
1607 esac |
1608 sort
1609)
1610 echo
1611
Sebastian Pop654b7752012-11-15 21:20:22 +00001612 cat <<\_ASBOX
1613## ----------------- ##
Tobias Grosser75805372011-04-29 06:27:02 +00001614## Output variables. ##
Sebastian Pop654b7752012-11-15 21:20:22 +00001615## ----------------- ##
1616_ASBOX
Tobias Grosser75805372011-04-29 06:27:02 +00001617 echo
1618 for ac_var in $ac_subst_vars
1619 do
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
1627
1628 if test -n "$ac_subst_files"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00001629 cat <<\_ASBOX
1630## ------------------- ##
Tobias Grosser75805372011-04-29 06:27:02 +00001631## File substitutions. ##
Sebastian Pop654b7752012-11-15 21:20:22 +00001632## ------------------- ##
1633_ASBOX
Tobias Grosser75805372011-04-29 06:27:02 +00001634 echo
1635 for ac_var in $ac_subst_files
1636 do
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
1644 fi
1645
1646 if test -s confdefs.h; then
Sebastian Pop654b7752012-11-15 21:20:22 +00001647 cat <<\_ASBOX
1648## ----------- ##
Tobias Grosser75805372011-04-29 06:27:02 +00001649## confdefs.h. ##
Sebastian Pop654b7752012-11-15 21:20:22 +00001650## ----------- ##
1651_ASBOX
Tobias Grosser75805372011-04-29 06:27:02 +00001652 echo
1653 cat confdefs.h
1654 echo
1655 fi
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
1663' 0
1664for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1666done
1667ac_signal=0
1668
1669# confdefs.h avoids OS command line length limits that DEFS can exceed.
1670rm -f -r conftest* confdefs.h
1671
1672$as_echo "/* confdefs.h */" > confdefs.h
1673
1674# Predefined preprocessor variables.
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_NAME "$PACKAGE_NAME"
1678_ACEOF
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682_ACEOF
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_VERSION "$PACKAGE_VERSION"
1686_ACEOF
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_STRING "$PACKAGE_STRING"
1690_ACEOF
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694_ACEOF
1695
1696cat >>confdefs.h <<_ACEOF
1697#define PACKAGE_URL "$PACKAGE_URL"
1698_ACEOF
1699
1700
1701# Let the site file select an alternate cache file if it wants to.
1702# Prefer an explicitly selected file to automatically selected ones.
1703ac_site_file1=NONE
1704ac_site_file2=NONE
1705if test -n "$CONFIG_SITE"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00001706 ac_site_file1=$CONFIG_SITE
Tobias Grosser75805372011-04-29 06:27:02 +00001707elif test "x$prefix" != xNONE; then
1708 ac_site_file1=$prefix/share/config.site
1709 ac_site_file2=$prefix/etc/config.site
1710else
1711 ac_site_file1=$ac_default_prefix/share/config.site
1712 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi
1714for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715do
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
Sebastian Pop654b7752012-11-15 21:20:22 +00001721 . "$ac_site_file"
Tobias Grosser75805372011-04-29 06:27:02 +00001722 fi
1723done
1724
1725if 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
1735 fi
1736else
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
1740fi
1741
1742# Check that the precious variables saved in the cache have kept the same
1743# value.
1744ac_cache_corrupted=false
1745for 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 ,);;
1760 *)
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
1773 fi
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
1790 fi
1791done
1792if $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;}
Sebastian Pop654b7752012-11-15 21:20:22 +00001797 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00001798fi
1799## -------------------- ##
1800## Main body of script. ##
1801## -------------------- ##
1802
1803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810
1811LLVM_SRC_ROOT="`(cd $srcdir/../..; pwd)`"
1812LLVM_OBJ_ROOT="`(cd ../..; pwd)`"
1813
1814
1815# Check whether --with-llvmsrc was given.
1816if test "${with_llvmsrc+set}" = set; then :
1817 withval=$with_llvmsrc; llvm_src="$withval"
1818else
1819 llvm_src="$LLVM_SRC_ROOT"
1820fi
1821
1822 LLVM_SRC=$llvm_src
1823
1824
1825# Check whether --with-llvmobj was given.
1826if test "${with_llvmobj+set}" = set; then :
1827 withval=$with_llvmobj; llvm_obj="$withval"
1828else
1829 llvm_obj="$LLVM_OBJ_ROOT"
1830fi
1831
1832 LLVM_OBJ=$llvm_obj
1833
1834 ac_config_commands="$ac_config_commands setup"
1835
1836
1837
1838ac_aux_dir=
1839for ac_dir in $LLVM_SRC/autoconf "$srcdir"/$LLVM_SRC/autoconf; do
Sebastian Pop654b7752012-11-15 21:20:22 +00001840 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
1845 fi
1846 done
Tobias Grosser75805372011-04-29 06:27:02 +00001847done
1848if test -z "$ac_aux_dir"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00001849 as_fn_error "cannot find install-sh, install.sh, or shtool in $LLVM_SRC/autoconf \"$srcdir\"/$LLVM_SRC/autoconf" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00001850fi
1851
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.
1856ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1857ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1858ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1859
1860
1861
1862
1863
1864
1865
1866ac_config_files="$ac_config_files Makefile.config"
1867
1868ac_config_files="$ac_config_files Makefile.common"
1869
1870
1871
1872if test ${srcdir} != "." ; then
1873 if test -f ${srcdir}/include/polly/Config/config.h ; then
Sebastian Pop654b7752012-11-15 21:20:22 +00001874 as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00001875 fi
1876fi
1877
1878
1879$as_echo "#define CLOOG_INT_GMP 1" >>confdefs.h
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890ac_ext=cpp
1891ac_cpp='$CXXCPP $CPPFLAGS'
1892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1895if 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
1901 do
1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903set 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; }
Sebastian Pop654b7752012-11-15 21:20:22 +00001906if test "${ac_cv_prog_CXX+set}" = set; then :
Tobias Grosser75805372011-04-29 06:27:02 +00001907 $as_echo_n "(cached) " >&6
1908else
1909 if test -n "$CXX"; then
1910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1911else
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
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
1922 fi
1923done
1924 done
1925IFS=$as_save_IFS
1926
1927fi
1928fi
1929CXX=$ac_cv_prog_CXX
1930if test -n "$CXX"; then
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1932$as_echo "$CXX" >&6; }
1933else
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1935$as_echo "no" >&6; }
1936fi
1937
1938
1939 test -n "$CXX" && break
1940 done
1941fi
1942if 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
1945do
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947set 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; }
Sebastian Pop654b7752012-11-15 21:20:22 +00001950if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Tobias Grosser75805372011-04-29 06:27:02 +00001951 $as_echo_n "(cached) " >&6
1952else
1953 if test -n "$ac_ct_CXX"; then
1954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
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
1966 fi
1967done
1968 done
1969IFS=$as_save_IFS
1970
1971fi
1972fi
1973ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1974if 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; }
1977else
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1979$as_echo "no" >&6; }
1980fi
1981
1982
1983 test -n "$ac_ct_CXX" && break
1984done
1985
1986 if test "x$ac_ct_CXX" = x; then
1987 CXX="g++"
1988 else
1989 case $cross_compiling:$ac_tool_warned in
1990yes:)
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;}
1993ac_tool_warned=yes ;;
1994esac
1995 CXX=$ac_ct_CXX
1996 fi
1997fi
1998
1999 fi
2000fi
2001# Provide some information about the compiler.
2002$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2003set X $ac_compile
2004ac_compiler=$2
2005for ac_option in --version -v -V -qversion; do
2006 { { ac_try="$ac_compiler $ac_option >&5"
2007case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010esac
2011eval 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
2020 fi
2021 rm -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }
2024done
2025
2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028
2029int
2030main ()
2031{
2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037ac_clean_files_save=$ac_clean_files
2038ac_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; }
2044ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2045
2046# The possible output files:
2047ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2048
2049ac_rmfiles=
2050for ac_file in $ac_files
2051do
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
2056done
2057rm -f $ac_rmfiles
2058
2059if { { ac_try="$ac_link_default"
2060case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063esac
2064eval 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.
2075for ac_file in $ac_files ''
2076do
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 )
2080 ;;
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" : '[^.]*\(\..*\)'`
2089 fi
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;;
2096 * )
2097 break;;
2098 esac
2099done
2100test "$ac_cv_exeext" = no && ac_cv_exeext=
2101
2102else
2103 ac_file=''
2104fi
2105if 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
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sebastian Pop654b7752012-11-15 21:20:22 +00002113{ as_fn_set_status 77
2114as_fn_error "C++ compiler cannot create executables
2115See \`config.log' for more details." "$LINENO" 5; }; }
Tobias Grosser75805372011-04-29 06:27:02 +00002116else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2118$as_echo "yes" >&6; }
2119fi
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; }
2124ac_exeext=$ac_cv_exeext
2125
2126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2127ac_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; }
2130if { { ac_try="$ac_link"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval 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'.
2145for 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
2153done
2154else
2155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sebastian Pop654b7752012-11-15 21:20:22 +00002157as_fn_error "cannot compute suffix of executables: cannot compile and link
2158See \`config.log' for more details." "$LINENO" 5; }
Tobias Grosser75805372011-04-29 06:27:02 +00002159fi
2160rm -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; }
2163
2164rm -f conftest.$ac_ext
2165EXEEXT=$ac_cv_exeext
2166ac_exeext=$EXEEXT
2167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
2169#include <stdio.h>
2170int
2171main ()
2172{
2173FILE *f = fopen ("conftest.out", "w");
2174 return ferror (f) || fclose (f) != 0;
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180ac_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; }
2185if test "$cross_compiling" != yes; then
2186 { { ac_try="$ac_link"
2187case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190esac
2191eval 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;;
2201esac
2202eval 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;}
Sebastian Pop654b7752012-11-15 21:20:22 +00002215as_fn_error "cannot run C++ compiled programs.
Tobias Grosser75805372011-04-29 06:27:02 +00002216If you meant to cross compile, use \`--host'.
Sebastian Pop654b7752012-11-15 21:20:22 +00002217See \`config.log' for more details." "$LINENO" 5; }
Tobias Grosser75805372011-04-29 06:27:02 +00002218 fi
2219 fi
2220fi
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2222$as_echo "$cross_compiling" >&6; }
2223
2224rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2225ac_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; }
Sebastian Pop654b7752012-11-15 21:20:22 +00002228if test "${ac_cv_objext+set}" = set; then :
Tobias Grosser75805372011-04-29 06:27:02 +00002229 $as_echo_n "(cached) " >&6
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233
2234int
2235main ()
2236{
2237
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242rm -f conftest.o conftest.obj
2243if { { ac_try="$ac_compile"
2244case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247esac
2248eval 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
2261done
2262else
2263 $as_echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sebastian Pop654b7752012-11-15 21:20:22 +00002268as_fn_error "cannot compute suffix of object files: cannot compile
2269See \`config.log' for more details." "$LINENO" 5; }
Tobias Grosser75805372011-04-29 06:27:02 +00002270fi
2271rm -f conftest.$ac_cv_objext conftest.$ac_ext
2272fi
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2274$as_echo "$ac_cv_objext" >&6; }
2275OBJEXT=$ac_cv_objext
2276ac_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; }
Sebastian Pop654b7752012-11-15 21:20:22 +00002279if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Tobias Grosser75805372011-04-29 06:27:02 +00002280 $as_echo_n "(cached) " >&6
2281else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h. */
2284
2285int
2286main ()
2287{
2288#ifndef __GNUC__
2289 choke me
2290#endif
2291
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296if ac_fn_cxx_try_compile "$LINENO"; then :
2297 ac_compiler_gnu=yes
2298else
2299 ac_compiler_gnu=no
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2303
2304fi
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2306$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2307if test $ac_compiler_gnu = yes; then
2308 GXX=yes
2309else
2310 GXX=
2311fi
2312ac_test_CXXFLAGS=${CXXFLAGS+set}
2313ac_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; }
Sebastian Pop654b7752012-11-15 21:20:22 +00002316if test "${ac_cv_prog_cxx_g+set}" = set; then :
Tobias Grosser75805372011-04-29 06:27:02 +00002317 $as_echo_n "(cached) " >&6
2318else
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. */
2325
2326int
2327main ()
2328{
2329
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334if ac_fn_cxx_try_compile "$LINENO"; then :
2335 ac_cv_prog_cxx_g=yes
2336else
2337 CXXFLAGS=""
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h. */
2340
2341int
2342main ()
2343{
2344
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349if ac_fn_cxx_try_compile "$LINENO"; then :
2350
2351else
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. */
2356
2357int
2358main ()
2359{
2360
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365if ac_fn_cxx_try_compile "$LINENO"; then :
2366 ac_cv_prog_cxx_g=yes
2367fi
2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369fi
2370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371fi
2372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2376$as_echo "$ac_cv_prog_cxx_g" >&6; }
2377if test "$ac_test_CXXFLAGS" = set; then
2378 CXXFLAGS=$ac_save_CXXFLAGS
2379elif test $ac_cv_prog_cxx_g = yes; then
2380 if test "$GXX" = yes; then
2381 CXXFLAGS="-g -O2"
2382 else
2383 CXXFLAGS="-g"
2384 fi
2385else
2386 if test "$GXX" = yes; then
2387 CXXFLAGS="-O2"
2388 else
2389 CXXFLAGS=
2390 fi
2391fi
2392ac_ext=cpp
2393ac_cpp='$CXXCPP $CPPFLAGS'
2394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2397
2398
2399
2400 ac_ext=cpp
2401ac_cpp='$CXXCPP $CPPFLAGS'
2402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2405
2406 OLD_CXXFLAGS=$CXXFLAGS;
2407 OLD_LDFLAGS=$LDFLAGS;
2408 OLD_LIBS=$LIBS;
2409
2410 LIBS="$LIBS -lgmp";
2411
2412 # Get include path and lib path
2413
2414# Check whether --with-gmp was given.
2415if 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"
2418else
2419 given_inc_path=inc_not_give_gmp;
2420 given_lib_path=lib_not_give_gmp
2421
2422fi
2423
2424 # Check for library and headers works
Sebastian Pop082cea82012-05-07 16:20:07 +00002425 { $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; }
2427
Tobias Grosser75805372011-04-29 06:27:02 +00002428 # 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>
2432int
2433main ()
2434{
2435;
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440if 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"
2444
2445 if test "x$given_inc_path" != "xinc_not_give_gmp"; then :
2446 gmp_inc="-I$given_inc_path"
2447
2448fi
2449 gmp_lib="-lgmp"
2450
2451 if test "x$given_lib_path" != "xlib_not_give_gmp"; then :
2452 gmp_ld="-L$given_lib_path"
2453
2454fi
2455else
2456 if test "xrequired" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002457 as_fn_error "gmp required but not found" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00002458else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2460$as_echo "not found" >&6; }
2461fi
2462
2463fi
2464rm -f core conftest.err conftest.$ac_objext \
2465 conftest$ac_exeext conftest.$ac_ext
2466
2467 # reset original CXXFLAGS
2468 CXXFLAGS=$OLD_CXXFLAGS
2469 LDFLAGS=$OLD_LDFLAGS;
2470 LIBS=$OLD_LIBS
2471 ac_ext=c
2472ac_cpp='$CPP $CPPFLAGS'
2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477
2478
Sebastian Pop654b7752012-11-15 21:20:22 +00002479saved_CXXFLAGS=$CXXFLAGS
2480CXXFLAGS="$CXXFLAGS $gmp_inc"
Tobias Grosser75805372011-04-29 06:27:02 +00002481
2482 ac_ext=cpp
2483ac_cpp='$CXXCPP $CPPFLAGS'
2484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2487
2488 OLD_CXXFLAGS=$CXXFLAGS;
2489 OLD_LDFLAGS=$LDFLAGS;
2490 OLD_LIBS=$LIBS;
2491
2492 LIBS="$LIBS -lisl";
2493
2494 # Get include path and lib path
2495
2496# Check whether --with-isl was given.
2497if 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"
2500else
2501 given_inc_path=inc_not_give_isl;
2502 given_lib_path=lib_not_give_isl
2503
2504fi
2505
2506 # Check for library and headers works
Tobias Grosser0c555142012-10-21 21:48:21 +00002507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl: isl/ast.h in $given_inc_path, and libisl in $given_lib_path" >&5
2508$as_echo_n "checking for isl: isl/ast.h in $given_inc_path, and libisl in $given_lib_path... " >&6; }
Sebastian Pop082cea82012-05-07 16:20:07 +00002509
Tobias Grosser75805372011-04-29 06:27:02 +00002510 # try to compile a file that includes a header of the library
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
Tobias Grosser0c555142012-10-21 21:48:21 +00002513#include <isl/ast.h>
Tobias Grosser75805372011-04-29 06:27:02 +00002514int
2515main ()
2516{
2517;
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522if 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"
2526
2527 if test "x$given_inc_path" != "xinc_not_give_isl"; then :
2528 isl_inc="-I$given_inc_path"
2529
2530fi
2531 isl_lib="-lisl"
2532
2533 if test "x$given_lib_path" != "xlib_not_give_isl"; then :
2534 isl_ld="-L$given_lib_path"
2535
2536fi
2537else
2538 if test "xrequired" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002539 as_fn_error "isl required but not found" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00002540else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2542$as_echo "not found" >&6; }
2543fi
2544
2545fi
2546rm -f core conftest.err conftest.$ac_objext \
2547 conftest$ac_exeext conftest.$ac_ext
2548
2549 # reset original CXXFLAGS
2550 CXXFLAGS=$OLD_CXXFLAGS
2551 LDFLAGS=$OLD_LDFLAGS;
2552 LIBS=$OLD_LIBS
2553 ac_ext=c
2554ac_cpp='$CPP $CPPFLAGS'
2555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
Sebastian Pop654b7752012-11-15 21:20:22 +00002560CXXFLAGS=$saved_CXXFLAGS
Tobias Grosser75805372011-04-29 06:27:02 +00002561
2562saved_CXXFLAGS=$CXXFLAGS
Tobias Grosser70738df2011-10-04 06:55:03 +00002563CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc"
Tobias Grosser75805372011-04-29 06:27:02 +00002564
2565 ac_ext=cpp
2566ac_cpp='$CXXCPP $CPPFLAGS'
2567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2570
2571 OLD_CXXFLAGS=$CXXFLAGS;
2572 OLD_LDFLAGS=$LDFLAGS;
2573 OLD_LIBS=$LIBS;
2574
2575 LIBS="$LIBS -lcloog-isl";
2576
2577 # Get include path and lib path
2578
2579# Check whether --with-cloog was given.
2580if 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"
2583else
2584 given_inc_path=inc_not_give_cloog;
2585 given_lib_path=lib_not_give_cloog
2586
2587fi
2588
2589 # Check for library and headers works
Sebastian Pop082cea82012-05-07 16:20:07 +00002590 { $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; }
2592
Tobias Grosser75805372011-04-29 06:27:02 +00002593 # 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>
2597int
2598main ()
2599{
2600;
2601 ;
2602 return 0;
2603}
2604_ACEOF
2605if 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"
2609
2610 if test "x$given_inc_path" != "xinc_not_give_cloog"; then :
2611 cloog_inc="-I$given_inc_path"
2612
2613fi
2614 cloog_lib="-lcloog-isl"
2615
2616 if test "x$given_lib_path" != "xlib_not_give_cloog"; then :
2617 cloog_ld="-L$given_lib_path"
2618
2619fi
2620else
Sebastian Popf2379e02012-11-26 23:03:41 +00002621 if test "x" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002622 as_fn_error "cloog required but not found" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00002623else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2625$as_echo "not found" >&6; }
2626fi
2627
2628fi
2629rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631
2632 # reset original CXXFLAGS
2633 CXXFLAGS=$OLD_CXXFLAGS
2634 LDFLAGS=$OLD_LDFLAGS;
2635 LIBS=$OLD_LIBS
2636 ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643CXXFLAGS=$saved_CXXFLAGS
Sebastian Pop082cea82012-05-07 16:20:07 +00002644if test "x$cloog_found" = "xyes"; then :
Tobias Grosser75805372011-04-29 06:27:02 +00002645
Sebastian Popc2009772012-05-04 20:30:03 +00002646$as_echo "#define CLOOG_FOUND 1" >>confdefs.h
2647
2648fi
Tobias Grosser75805372011-04-29 06:27:02 +00002649
Tobias Grosserc11349c2012-08-02 07:47:26 +00002650saved_CXXFLAGS=$CXXFLAGS
2651CXXFLAGS="$CXXFLAGS $gmp_inc $isl_inc"
2652
2653 ac_ext=cpp
2654ac_cpp='$CXXCPP $CPPFLAGS'
2655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2658
2659 OLD_CXXFLAGS=$CXXFLAGS;
2660 OLD_LDFLAGS=$LDFLAGS;
2661 OLD_LIBS=$LIBS;
2662
2663 LIBS="$LIBS -lpluto";
2664
2665 # Get include path and lib path
2666
2667# Check whether --with-pluto was given.
2668if 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"
2671else
2672 given_inc_path=inc_not_give_pluto;
2673 given_lib_path=lib_not_give_pluto
2674
2675fi
2676
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; }
2680
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>
2685int
2686main ()
2687{
2688;
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693if 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"
2697
2698 if test "x$given_inc_path" != "xinc_not_give_pluto"; then :
2699 pluto_inc="-I$given_inc_path"
2700
2701fi
2702 pluto_lib="-lpluto"
2703
2704 if test "x$given_lib_path" != "xlib_not_give_pluto"; then :
2705 pluto_ld="-L$given_lib_path"
2706
2707fi
2708else
2709 if test "x" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002710 as_fn_error "pluto required but not found" "$LINENO" 5
Tobias Grosserc11349c2012-08-02 07:47:26 +00002711else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2713$as_echo "not found" >&6; }
2714fi
2715
2716fi
2717rm -f core conftest.err conftest.$ac_objext \
2718 conftest$ac_exeext conftest.$ac_ext
2719
2720 # reset original CXXFLAGS
2721 CXXFLAGS=$OLD_CXXFLAGS
2722 LDFLAGS=$OLD_LDFLAGS;
2723 LIBS=$OLD_LIBS
2724 ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731CXXFLAGS=$saved_CXXFLAGS
2732if test "x$pluto_found" = "xyes"; then :
2733
2734$as_echo "#define PLUTO_FOUND 1" >>confdefs.h
2735
2736fi
2737
Tobias Grosser75805372011-04-29 06:27:02 +00002738
2739 ac_ext=cpp
2740ac_cpp='$CXXCPP $CPPFLAGS'
2741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2744
2745 OLD_CXXFLAGS=$CXXFLAGS;
2746 OLD_LDFLAGS=$LDFLAGS;
2747 OLD_LIBS=$LIBS;
2748
2749 LIBS="$LIBS -lopenscop";
2750
2751 # Get include path and lib path
2752
2753# Check whether --with-openscop was given.
2754if 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"
2757else
2758 given_inc_path=inc_not_give_openscop;
2759 given_lib_path=lib_not_give_openscop
2760
2761fi
2762
2763 # Check for library and headers works
Sebastian Pop082cea82012-05-07 16:20:07 +00002764 { $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; }
2766
Tobias Grosser75805372011-04-29 06:27:02 +00002767 # 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>
2771int
2772main ()
2773{
2774;
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779if 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"
2783
2784 if test "x$given_inc_path" != "xinc_not_give_openscop"; then :
2785 openscop_inc="-I$given_inc_path"
2786
2787fi
2788 openscop_lib="-lopenscop"
2789
2790 if test "x$given_lib_path" != "xlib_not_give_openscop"; then :
2791 openscop_ld="-L$given_lib_path"
2792
2793fi
2794else
2795 if test "x" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002796 as_fn_error "openscop required but not found" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00002797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2799$as_echo "not found" >&6; }
2800fi
2801
2802fi
2803rm -f core conftest.err conftest.$ac_objext \
2804 conftest$ac_exeext conftest.$ac_ext
2805
2806 # reset original CXXFLAGS
2807 CXXFLAGS=$OLD_CXXFLAGS
2808 LDFLAGS=$OLD_LDFLAGS;
2809 LIBS=$OLD_LIBS
2810 ac_ext=c
2811ac_cpp='$CPP $CPPFLAGS'
2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815
2816
2817if test "x$openscop_found" = "xyes"; then :
2818
2819$as_echo "#define OPENSCOP_FOUND 1" >>confdefs.h
2820
2821fi
2822
2823
2824 ac_ext=cpp
2825ac_cpp='$CXXCPP $CPPFLAGS'
2826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2829
2830 OLD_CXXFLAGS=$CXXFLAGS;
2831 OLD_LDFLAGS=$LDFLAGS;
2832 OLD_LIBS=$LIBS;
2833
2834 LIBS="$LIBS -lscoplib";
2835
2836 # Get include path and lib path
2837
2838# Check whether --with-scoplib was given.
2839if 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"
2842else
2843 given_inc_path=inc_not_give_scoplib;
2844 given_lib_path=lib_not_give_scoplib
2845
2846fi
2847
2848 # Check for library and headers works
Sebastian Pop082cea82012-05-07 16:20:07 +00002849 { $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; }
2851
Tobias Grosser75805372011-04-29 06:27:02 +00002852 # 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>
2856int
2857main ()
2858{
2859;
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if 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"
2868
2869 if test "x$given_inc_path" != "xinc_not_give_scoplib"; then :
2870 scoplib_inc="-I$given_inc_path"
2871
2872fi
2873 scoplib_lib="-lscoplib"
2874
2875 if test "x$given_lib_path" != "xlib_not_give_scoplib"; then :
2876 scoplib_ld="-L$given_lib_path"
2877
2878fi
2879else
2880 if test "x" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002881 as_fn_error "scoplib required but not found" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00002882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2884$as_echo "not found" >&6; }
2885fi
2886
2887fi
2888rm -f core conftest.err conftest.$ac_objext \
2889 conftest$ac_exeext conftest.$ac_ext
2890
2891 # reset original CXXFLAGS
2892 CXXFLAGS=$OLD_CXXFLAGS
2893 LDFLAGS=$OLD_LDFLAGS;
2894 LIBS=$OLD_LIBS
2895 ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
2901
2902if test "x$scoplib_found" = "xyes"; then :
2903
2904$as_echo "#define SCOPLIB_FOUND 1" >>confdefs.h
2905
2906fi
2907
2908if test "x$scoplib_found" = "xyes"; then :
2909 scoplib_rpath="-Wl,-rpath=$given_lib_path"
2910else
2911 scoplib_rpath=""
2912fi
2913
2914
2915
Tobias Grosser6217e182012-08-03 12:50:07 +00002916# Check whether --enable-polly_gpu_codegen was given.
2917if test "${enable_polly_gpu_codegen+set}" = set; then :
2918 enableval=$enable_polly_gpu_codegen;
2919else
2920 enableval=default
2921fi
2922
2923case "$enableval" in
2924 yes)
2925$as_echo "#define GPU_CODEGEN 1" >>confdefs.h
2926 ;;
Tobias Grosser1df528972012-08-21 12:29:10 +00002927 no) ;;
2928 default) ;;
Sebastian Pop654b7752012-11-15 21:20:22 +00002929 *) as_fn_error "Invalid setting for --enable-polly-gpu-codegen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Tobias Grosser6217e182012-08-03 12:50:07 +00002930esac
2931
Tobias Grosser75805372011-04-29 06:27:02 +00002932
Tobias Grosser88aeaf62012-06-06 12:16:10 +00002933 ac_ext=cpp
2934ac_cpp='$CXXCPP $CPPFLAGS'
2935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2938
2939 OLD_CXXFLAGS=$CXXFLAGS;
2940 OLD_LDFLAGS=$LDFLAGS;
2941 OLD_LIBS=$LIBS;
2942
2943 LIBS="$LIBS -lcuda";
2944
2945 # Get include path and lib path
2946
2947# Check whether --with-cuda was given.
2948if 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"
2951else
2952 given_inc_path=inc_not_give_cuda;
2953 given_lib_path=lib_not_give_cuda
2954
2955fi
2956
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; }
2960
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>
2965int
2966main ()
2967{
2968;
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973if 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"
2977
2978 if test "x$given_inc_path" != "xinc_not_give_cuda"; then :
2979 cuda_inc="-I$given_inc_path"
2980
2981fi
2982 cuda_lib="-lcuda"
2983
2984 if test "x$given_lib_path" != "xlib_not_give_cuda"; then :
2985 cuda_ld="-L$given_lib_path"
2986
2987fi
2988else
2989 if test "x" = "xrequired"; then :
Sebastian Pop654b7752012-11-15 21:20:22 +00002990 as_fn_error "cuda required but not found" "$LINENO" 5
Tobias Grosser88aeaf62012-06-06 12:16:10 +00002991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2993$as_echo "not found" >&6; }
2994fi
2995
2996fi
2997rm -f core conftest.err conftest.$ac_objext \
2998 conftest$ac_exeext conftest.$ac_ext
2999
3000 # reset original CXXFLAGS
3001 CXXFLAGS=$OLD_CXXFLAGS
3002 LDFLAGS=$OLD_LDFLAGS;
3003 LIBS=$OLD_LIBS
3004 ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
Tobias Grosser6217e182012-08-03 12:50:07 +00003011
Tobias Grosser88aeaf62012-06-06 12:16:10 +00003012if test "x$cuda_found" = "xyes"; then :
3013
3014$as_echo "#define CUDALIB_FOUND 1" >>confdefs.h
3015
3016fi
3017
3018
Tobias Grosser75805372011-04-29 06:27:02 +00003019ac_config_headers="$ac_config_headers include/polly/Config/config.h"
3020
3021cat >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.
3027#
3028# config.status only pays attention to the cache file if you give it
3029# the --recheck option to rerun configure.
3030#
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.
3034
3035_ACEOF
3036
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.
3042(
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
3058
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 ;; #(
3068 *)
3069 # `set' quotes correctly as required by POSIX, so do not add quotes.
3070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3071 ;;
3072 esac |
3073 sort
3074) |
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
3083if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3084 if test -w "$cache_file"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00003085 test "x$cache_file" != "x/dev/null" &&
Tobias Grosser75805372011-04-29 06:27:02 +00003086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3087$as_echo "$as_me: updating cache $cache_file" >&6;}
Sebastian Pop654b7752012-11-15 21:20:22 +00003088 cat confcache >$cache_file
Tobias Grosser75805372011-04-29 06:27:02 +00003089 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;}
3092 fi
3093fi
3094rm -f confcache
3095
3096test "x$prefix" = xNONE && prefix=$ac_default_prefix
3097# Let make expand exec_prefix.
3098test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3099
3100DEFS=-DHAVE_CONFIG_H
3101
3102ac_libobjs=
3103ac_ltlibobjs=
Tobias Grosser75805372011-04-29 06:27:02 +00003104for 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'
3112done
3113LIBOBJS=$ac_libobjs
3114
3115LTLIBOBJS=$ac_ltlibobjs
3116
3117
3118
Sebastian Pop654b7752012-11-15 21:20:22 +00003119: ${CONFIG_STATUS=./config.status}
Tobias Grosser75805372011-04-29 06:27:02 +00003120ac_write_fail=0
3121ac_clean_files_save=$ac_clean_files
3122ac_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;}
3125as_write_fail=0
3126cat >$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.
3132
3133debug=false
3134ac_cs_recheck=false
3135ac_cs_silent=false
3136
3137SHELL=\${CONFIG_SHELL-$SHELL}
3138export SHELL
3139_ASEOF
3140cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3141## -------------------- ##
3142## M4sh Initialization. ##
3143## -------------------- ##
3144
3145# Be more Bourne compatible
3146DUALCASE=1; export DUALCASE # for MKS sh
3147if 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
3154else
3155 case `(set -o) 2>/dev/null` in #(
3156 *posix*) :
3157 set -o posix ;; #(
3158 *) :
3159 ;;
3160esac
3161fi
3162
3163
3164as_nl='
3165'
3166export as_nl
3167# Printing a long string crashes Solaris 7 /usr/bin/printf.
3168as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3169as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3170as_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.
3173if 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 --'
3177elif (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'
3180else
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"
3194 '
3195 export as_echo_n_body
3196 as_echo_n='sh -c $as_echo_n_body as_echo'
3197 fi
3198 export as_echo_body
3199 as_echo='sh -c $as_echo_body as_echo'
3200fi
3201
3202# The user is always right.
3203if 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=';'
3208 }
3209fi
3210
3211
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.)
3217IFS=" "" $as_nl"
3218
3219# Find who we are. Look in the path if we contain no directory separator.
3220case $0 in #((
3221 *[\\/]* ) as_myself=$0 ;;
3222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
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
3229IFS=$as_save_IFS
3230
3231 ;;
3232esac
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.
3235if test "x$as_myself" = x; then
3236 as_myself=$0
3237fi
3238if test ! -f "$as_myself"; then
3239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3240 exit 1
3241fi
3242
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.
3247for as_var in BASH_ENV ENV MAIL MAILPATH
3248do eval test x\${$as_var+set} = xset \
3249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3250done
3251PS1='$ '
3252PS2='> '
3253PS4='+ '
3254
3255# NLS nuisances.
3256LC_ALL=C
3257export LC_ALL
3258LANGUAGE=C
3259export LANGUAGE
3260
3261# CDPATH.
3262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3263
3264
Sebastian Pop654b7752012-11-15 21:20:22 +00003265# as_fn_error ERROR [LINENO LOG_FD]
3266# ---------------------------------
Tobias Grosser75805372011-04-29 06:27:02 +00003267# 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
Sebastian Pop654b7752012-11-15 21:20:22 +00003269# script with status $?, using 1 if that was 0.
Tobias Grosser75805372011-04-29 06:27:02 +00003270as_fn_error ()
3271{
Sebastian Pop654b7752012-11-15 21:20:22 +00003272 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
Tobias Grosser75805372011-04-29 06:27:02 +00003276 fi
Sebastian Pop654b7752012-11-15 21:20:22 +00003277 $as_echo "$as_me: error: $1" >&2
Tobias Grosser75805372011-04-29 06:27:02 +00003278 as_fn_exit $as_status
3279} # as_fn_error
3280
3281
3282# as_fn_set_status STATUS
3283# -----------------------
3284# Set $? to STATUS, without forking.
3285as_fn_set_status ()
3286{
3287 return $1
3288} # as_fn_set_status
3289
3290# as_fn_exit STATUS
3291# -----------------
3292# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3293as_fn_exit ()
3294{
3295 set +e
3296 as_fn_set_status $1
3297 exit $1
3298} # as_fn_exit
3299
3300# as_fn_unset VAR
3301# ---------------
3302# Portably unset VAR.
3303as_fn_unset ()
3304{
3305 { eval $1=; unset $1;}
3306}
3307as_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.
3314if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3315 eval 'as_fn_append ()
3316 {
3317 eval $1+=\$2
3318 }'
3319else
3320 as_fn_append ()
3321 {
3322 eval $1=\$$1\$2
3323 }
3324fi # as_fn_append
3325
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.
3331if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3332 eval 'as_fn_arith ()
3333 {
3334 as_val=$(( $* ))
3335 }'
3336else
3337 as_fn_arith ()
3338 {
3339 as_val=`expr "$@" || test $? -eq 1`
3340 }
3341fi # as_fn_arith
3342
3343
3344if expr a : '\(a\)' >/dev/null 2>&1 &&
3345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3346 as_expr=expr
3347else
3348 as_expr=false
3349fi
3350
3351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3352 as_basename=basename
3353else
3354 as_basename=false
3355fi
3356
3357if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3358 as_dirname=dirname
3359else
3360 as_dirname=false
3361fi
3362
3363as_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/
3370 q
3371 }
3372 /^X\/\(\/\/\)$/{
3373 s//\1/
3374 q
3375 }
3376 /^X\/\(\/\).*/{
3377 s//\1/
3378 q
3379 }
3380 s/.*/./; q'`
3381
3382# Avoid depending upon Character Ranges.
3383as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3384as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3385as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3386as_cr_digits='0123456789'
3387as_cr_alnum=$as_cr_Letters$as_cr_digits
3388
3389ECHO_C= ECHO_N= ECHO_T=
3390case `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;;
3398*)
3399 ECHO_N='-n';;
3400esac
3401
3402rm -f conf$$ conf$$.exe conf$$.file
3403if test -d conf$$.dir; then
3404 rm -f conf$$.dir/conf$$.file
3405else
3406 rm -f conf$$.dir
3407 mkdir conf$$.dir 2>/dev/null
3408fi
3409if (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'
3422 fi
3423else
3424 as_ln_s='cp -p'
3425fi
3426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3427rmdir conf$$.dir 2>/dev/null
3428
3429
3430# as_fn_mkdir_p
3431# -------------
3432# Create "$as_dir" as a directory, including parents if necessary.
3433as_fn_mkdir_p ()
3434{
3435
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/
3455 q
3456 }
3457 /^X\(\/\/\)[^/].*/{
3458 s//\1/
3459 q
3460 }
3461 /^X\(\/\/\)$/{
3462 s//\1/
3463 q
3464 }
3465 /^X\(\/\).*/{
3466 s//\1/
3467 q
3468 }
3469 s/.*/./; q'`
3470 test -d "$as_dir" && break
3471 done
3472 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sebastian Pop654b7752012-11-15 21:20:22 +00003473 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
Tobias Grosser75805372011-04-29 06:27:02 +00003474
3475
3476} # as_fn_mkdir_p
3477if mkdir -p . 2>/dev/null; then
3478 as_mkdir_p='mkdir -p "$as_dir"'
3479else
3480 test -d ./-p && rmdir ./-p
3481 as_mkdir_p=false
3482fi
3483
3484if test -x / >/dev/null 2>&1; then
3485 as_test_x='test -x'
3486else
3487 if ls -dL / >/dev/null 2>&1; then
3488 as_ls_L_option=L
3489 else
3490 as_ls_L_option=
3491 fi
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
3503 '
3504fi
3505as_executable_p=$as_test_x
3506
3507# Sed expression to map a string onto a valid CPP name.
3508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3509
3510# Sed expression to map a string onto a valid variable name.
3511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3512
3513
3514exec 6>&1
3515## ----------------------------------- ##
3516## Main body of $CONFIG_STATUS script. ##
3517## ----------------------------------- ##
3518_ASEOF
3519test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3520
3521cat >>$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.
3525ac_log="
3526This file was extended by Polly $as_me 0.01, which was
Sebastian Pop654b7752012-11-15 21:20:22 +00003527generated by GNU Autoconf 2.65. Invocation command line was
Tobias Grosser75805372011-04-29 06:27:02 +00003528
3529 CONFIG_FILES = $CONFIG_FILES
3530 CONFIG_HEADERS = $CONFIG_HEADERS
3531 CONFIG_LINKS = $CONFIG_LINKS
3532 CONFIG_COMMANDS = $CONFIG_COMMANDS
3533 $ $0 $@
3534
3535on `(hostname || uname -n) 2>/dev/null | sed 1q`
3536"
3537
3538_ACEOF
3539
3540case $ac_config_files in *"
3541"*) set x $ac_config_files; shift; ac_config_files=$*;;
3542esac
3543
3544case $ac_config_headers in *"
3545"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3546esac
3547
3548
3549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3550# Files that config.status was made for.
3551config_files="$ac_config_files"
3552config_headers="$ac_config_headers"
3553config_commands="$ac_config_commands"
3554
3555_ACEOF
3556
3557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3558ac_cs_usage="\
3559\`$as_me' instantiates files and other configuration actions
3560from templates according to the current configuration. Unless the files
3561and actions are specified as TAGs, all are instantiated by default.
3562
3563Usage: $0 [OPTION]... [TAG]...
3564
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
3576
3577Configuration files:
3578$config_files
3579
3580Configuration headers:
3581$config_headers
3582
3583Configuration commands:
3584$config_commands
3585
3586Report bugs to <polly-dev@googlegroups.com>."
3587
3588_ACEOF
3589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3590ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3591ac_cs_version="\\
3592Polly config.status 0.01
Sebastian Pop654b7752012-11-15 21:20:22 +00003593configured by $0, generated by GNU Autoconf 2.65,
Tobias Grosser75805372011-04-29 06:27:02 +00003594 with options \\"\$ac_cs_config\\"
3595
Sebastian Pop654b7752012-11-15 21:20:22 +00003596Copyright (C) 2009 Free Software Foundation, Inc.
Tobias Grosser75805372011-04-29 06:27:02 +00003597This config.status script is free software; the Free Software Foundation
3598gives unlimited permission to copy, distribute and modify it."
3599
3600ac_pwd='$ac_pwd'
3601srcdir='$srcdir'
3602test -n "\$AWK" || AWK=awk
3603_ACEOF
3604
3605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3606# The default lists apply if the user does not specify any file.
3607ac_need_defaults=:
3608while test $# != 0
3609do
3610 case $1 in
Sebastian Pop654b7752012-11-15 21:20:22 +00003611 --*=*)
Tobias Grosser75805372011-04-29 06:27:02 +00003612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3614 ac_shift=:
3615 ;;
Tobias Grosser75805372011-04-29 06:27:02 +00003616 *)
3617 ac_option=$1
3618 ac_optarg=$2
3619 ac_shift=shift
3620 ;;
3621 esac
3622
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"` ;;
Tobias Grosser75805372011-04-29 06:27:02 +00003637 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
Sebastian Pop654b7752012-11-15 21:20:22 +00003649 as_fn_error "ambiguous option: \`$1'
Tobias Grosser75805372011-04-29 06:27:02 +00003650Try \`$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=: ;;
3656
3657 # This is an error.
Sebastian Pop654b7752012-11-15 21:20:22 +00003658 -*) as_fn_error "unrecognized option: \`$1'
Tobias Grosser75805372011-04-29 06:27:02 +00003659Try \`$0 --help' for more information." ;;
3660
3661 *) as_fn_append ac_config_targets " $1"
3662 ac_need_defaults=false ;;
3663
3664 esac
3665 shift
3666done
3667
3668ac_configure_extra_args=
3669
3670if $ac_cs_silent; then
3671 exec 6>/dev/null
3672 ac_configure_extra_args="$ac_configure_extra_args --silent"
3673fi
3674
3675_ACEOF
3676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3677if \$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 "\$@"
3684fi
3685
3686_ACEOF
3687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3688exec 5>>config.log
3689{
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
3696
3697_ACEOF
3698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3699#
3700# INIT-COMMANDS
3701#
3702llvm_src="${LLVM_SRC}"
3703
3704_ACEOF
3705
3706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3707
3708# Handling of arguments.
3709for ac_config_target in $ac_config_targets
3710do
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" ;;
3716
Sebastian Pop654b7752012-11-15 21:20:22 +00003717 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Tobias Grosser75805372011-04-29 06:27:02 +00003718 esac
3719done
3720
3721
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.
3726if $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
3730fi
3731
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 ||
3739{
Sebastian Pop654b7752012-11-15 21:20:22 +00003740 tmp=
Tobias Grosser75805372011-04-29 06:27:02 +00003741 trap 'exit_status=$?
Sebastian Pop654b7752012-11-15 21:20:22 +00003742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
Tobias Grosser75805372011-04-29 06:27:02 +00003743' 0
3744 trap 'as_fn_exit 1' 1 2 13 15
3745}
3746# Create a (secure) tmp directory for tmp files.
3747
3748{
3749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Sebastian Pop654b7752012-11-15 21:20:22 +00003750 test -n "$tmp" && test -d "$tmp"
Tobias Grosser75805372011-04-29 06:27:02 +00003751} ||
3752{
3753 tmp=./conf$$-$RANDOM
3754 (umask 077 && mkdir "$tmp")
Sebastian Pop654b7752012-11-15 21:20:22 +00003755} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00003756
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'.
3760if test -n "$CONFIG_FILES"; then
3761
3762
3763ac_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.
3767if test "x$ac_cr" = x; then
3768 eval ac_cr=\$\'\\r\'
3769fi
3770ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3771if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00003772 ac_cs_awk_cr='\r'
Tobias Grosser75805372011-04-29 06:27:02 +00003773else
3774 ac_cs_awk_cr=$ac_cr
3775fi
3776
Sebastian Pop654b7752012-11-15 21:20:22 +00003777echo 'BEGIN {' >"$tmp/subs1.awk" &&
Tobias Grosser75805372011-04-29 06:27:02 +00003778_ACEOF
3779
3780
3781{
3782 echo "cat >conf$$subs.awk <<_ACEOF" &&
3783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3784 echo "_ACEOF"
3785} >conf$$subs.sh ||
Sebastian Pop654b7752012-11-15 21:20:22 +00003786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3787ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Tobias Grosser75805372011-04-29 06:27:02 +00003788ac_delim='%!_!# '
3789for ac_last_try in false false false false false :; do
3790 . ./conf$$subs.sh ||
Sebastian Pop654b7752012-11-15 21:20:22 +00003791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00003792
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
Sebastian Pop654b7752012-11-15 21:20:22 +00003797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00003798 else
3799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3800 fi
3801done
3802rm -f conf$$subs.sh
3803
3804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Sebastian Pop654b7752012-11-15 21:20:22 +00003805cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Tobias Grosser75805372011-04-29 06:27:02 +00003806_ACEOF
3807sed -n '
3808h
3809s/^/S["/; s/!.*/"]=/
3810p
3811g
3812s/^[^!]*!//
3813:repl
3814t repl
3815s/'"$ac_delim"'$//
3816t delim
3817:nl
3818h
3819s/\(.\{148\}\)..*/\1/
3820t more1
3821s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3822p
3823n
3824b repl
3825:more1
3826s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3827p
3828g
3829s/.\{148\}//
3830t nl
3831:delim
3832h
3833s/\(.\{148\}\)..*/\1/
3834t more2
3835s/["\\]/\\&/g; s/^/"/; s/$/"/
3836p
3837b
3838:more2
3839s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3840p
3841g
3842s/.\{148\}//
3843t delim
3844' <conf$$subs.awk | sed '
3845/^[^""]/{
3846 N
3847 s/\n//
3848}
3849' >>$CONFIG_STATUS || ac_write_fail=1
3850rm -f conf$$subs.awk
3851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3852_ACAWK
Sebastian Pop654b7752012-11-15 21:20:22 +00003853cat >>"\$tmp/subs1.awk" <<_ACAWK &&
Tobias Grosser75805372011-04-29 06:27:02 +00003854 for (key in S) S_is_set[key] = 1
3855 FS = ""
3856
3857}
3858{
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
3873 }
3874
3875 print line
3876}
3877
3878_ACAWK
3879_ACEOF
3880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3881if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3883else
3884 cat
Sebastian Pop654b7752012-11-15 21:20:22 +00003885fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3886 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00003887_ACEOF
3888
Sebastian Pop654b7752012-11-15 21:20:22 +00003889# VPATH may cause trouble with some makes, so we remove $(srcdir),
3890# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
Tobias Grosser75805372011-04-29 06:27:02 +00003891# trailing colons and then remove the whole line if VPATH becomes empty
3892# (actually we leave an empty line to preserve line numbers).
3893if test "x$srcdir" = x.; then
Sebastian Pop654b7752012-11-15 21:20:22 +00003894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3895s/:*\$(srcdir):*/:/
3896s/:*\${srcdir}:*/:/
3897s/:*@srcdir@:*/:/
3898s/^\([^=]*=[ ]*\):*/\1/
Tobias Grosser75805372011-04-29 06:27:02 +00003899s/:*$//
Tobias Grosser75805372011-04-29 06:27:02 +00003900s/^[^=]*=[ ]*$//
3901}'
3902fi
3903
3904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3905fi # test -n "$CONFIG_FILES"
3906
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'.
3910if test -n "$CONFIG_HEADERS"; then
Sebastian Pop654b7752012-11-15 21:20:22 +00003911cat >"$tmp/defines.awk" <<\_ACAWK ||
Tobias Grosser75805372011-04-29 06:27:02 +00003912BEGIN {
3913_ACEOF
3914
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.
3918
3919# Create a delimiter string that does not exist in confdefs.h, to ease
3920# handling of long lines.
3921ac_delim='%!_!# '
3922for ac_last_try in false false :; do
Sebastian Pop654b7752012-11-15 21:20:22 +00003923 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
3924 if test -z "$ac_t"; then
Tobias Grosser75805372011-04-29 06:27:02 +00003925 break
3926 elif $ac_last_try; then
Sebastian Pop654b7752012-11-15 21:20:22 +00003927 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00003928 else
3929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3930 fi
3931done
3932
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.
3936
3937ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3938sed -n '
3939s/.\{148\}/&'"$ac_delim"'/g
3940t rset
3941:rset
3942s/^[ ]*#[ ]*define[ ][ ]*/ /
3943t def
3944d
3945:def
3946s/\\$//
3947t bsnl
3948s/["\\]/\\&/g
3949s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3950D["\1"]=" \3"/p
3951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
3952d
3953:bsnl
3954s/["\\]/\\&/g
3955s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3956D["\1"]=" \3\\\\\\n"\\/p
3957t cont
3958s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3959t cont
3960d
3961:cont
3962n
3963s/.\{148\}/&'"$ac_delim"'/g
3964t clear
3965:clear
3966s/\\$//
3967t bsnlc
3968s/["\\]/\\&/g; s/^/"/; s/$/"/p
3969d
3970:bsnlc
3971s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3972b cont
3973' <confdefs.h | sed '
3974s/'"$ac_delim"'/"\\\
3975"/g' >>$CONFIG_STATUS || ac_write_fail=1
3976
3977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3978 for (key in D) D_is_set[key] = 1
3979 FS = ""
3980}
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]
3990 }
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
4005 }
4006 }
4007}
4008{ print }
4009_ACAWK
4010_ACEOF
4011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Sebastian Pop654b7752012-11-15 21:20:22 +00004012 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00004013fi # test -n "$CONFIG_HEADERS"
4014
4015
4016eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4017shift
4018for ac_tag
4019do
4020 case $ac_tag in
4021 :[FHLC]) ac_mode=$ac_tag; continue;;
4022 esac
4023 case $ac_mode$ac_tag in
4024 :[FHL]*:*);;
Sebastian Pop654b7752012-11-15 21:20:22 +00004025 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Tobias Grosser75805372011-04-29 06:27:02 +00004026 :[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
4036
4037 case $ac_mode in
4038 :L) ac_source=$1;;
4039 :[FH])
4040 ac_file_inputs=
4041 for ac_f
4042 do
4043 case $ac_f in
Sebastian Pop654b7752012-11-15 21:20:22 +00004044 -) ac_f="$tmp/stdin";;
Tobias Grosser75805372011-04-29 06:27:02 +00004045 *) # 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 ||
Sebastian Pop654b7752012-11-15 21:20:22 +00004053 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Tobias Grosser75805372011-04-29 06:27:02 +00004054 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
4058
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;}
4069 fi
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
4077
4078 case $ac_tag in
Sebastian Pop654b7752012-11-15 21:20:22 +00004079 *:-:* | *:-) cat >"$tmp/stdin" \
4080 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Tobias Grosser75805372011-04-29 06:27:02 +00004081 esac
4082 ;;
4083 esac
4084
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/
4093 q
4094 }
4095 /^X\(\/\/\)[^/].*/{
4096 s//\1/
4097 q
4098 }
4099 /^X\(\/\/\)$/{
4100 s//\1/
4101 q
4102 }
4103 /^X\(\/\).*/{
4104 s//\1/
4105 q
4106 }
4107 s/.*/./; q'`
4108 as_dir="$ac_dir"; as_fn_mkdir_p
4109 ac_builddir=.
4110
4111case "$ac_dir" in
4112.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4113*)
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 ;;
4121esac
4122ac_abs_top_builddir=$ac_pwd
4123ac_abs_builddir=$ac_pwd$ac_dir_suffix
4124# for backward compatibility:
4125ac_top_builddir=$ac_top_build_prefix
4126
4127case $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 ;;
4140esac
4141ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4142
4143
4144 case $ac_mode in
4145 :F)
4146 #
4147 # CONFIG_FILE
4148 #
4149
4150_ACEOF
4151
4152cat >>$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.
4155ac_datarootdir_hack=; ac_datarootdir_seen=
4156ac_sed_dataroot='
4157/datarootdir/ {
4158 p
4159 q
4160}
4161/@datadir@/p
4162/@docdir@/p
4163/@infodir@/p
4164/@localedir@/p
4165/@mandir@/p'
4166case `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
4172cat >>$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' ;;
4180esac
4181_ACEOF
4182
4183# Neutralize VPATH when `$srcdir' = `.'.
4184# Shell code in configure.ac might set extrasub.
4185# FIXME: do we really want to maintain this feature?
4186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4187ac_sed_extra="$ac_vpsub
4188$extrasub
4189_ACEOF
4190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4191:t
4192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4193s|@configure_input@|$ac_sed_conf_input|;t t
4194s&@top_builddir@&$ac_top_builddir_sub&;t t
4195s&@top_build_prefix@&$ac_top_build_prefix&;t t
4196s&@srcdir@&$ac_srcdir&;t t
4197s&@abs_srcdir@&$ac_abs_srcdir&;t t
4198s&@top_srcdir@&$ac_top_srcdir&;t t
4199s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4200s&@builddir@&$ac_builddir&;t t
4201s&@abs_builddir@&$ac_abs_builddir&;t t
4202s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4203$ac_datarootdir_hack
4204"
Sebastian Pop654b7752012-11-15 21:20:22 +00004205eval 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
Tobias Grosser75805372011-04-29 06:27:02 +00004207
4208test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Sebastian Pop654b7752012-11-15 21:20:22 +00004209 { 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"; } &&
Tobias Grosser75805372011-04-29 06:27:02 +00004211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sebastian Pop654b7752012-11-15 21:20:22 +00004212which seems to be undefined. Please make sure it is defined." >&5
Tobias Grosser75805372011-04-29 06:27:02 +00004213$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sebastian Pop654b7752012-11-15 21:20:22 +00004214which seems to be undefined. Please make sure it is defined." >&2;}
Tobias Grosser75805372011-04-29 06:27:02 +00004215
Sebastian Pop654b7752012-11-15 21:20:22 +00004216 rm -f "$tmp/stdin"
Tobias Grosser75805372011-04-29 06:27:02 +00004217 case $ac_file in
Sebastian Pop654b7752012-11-15 21:20:22 +00004218 -) cat "$tmp/out" && rm -f "$tmp/out";;
4219 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
Tobias Grosser75805372011-04-29 06:27:02 +00004220 esac \
Sebastian Pop654b7752012-11-15 21:20:22 +00004221 || as_fn_error "could not create $ac_file" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00004222 ;;
4223 :H)
4224 #
4225 # CONFIG_HEADER
4226 #
4227 if test x"$ac_file" != x-; then
4228 {
4229 $as_echo "/* $configure_input */" \
Sebastian Pop654b7752012-11-15 21:20:22 +00004230 && 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
Tobias Grosser75805372011-04-29 06:27:02 +00004234 { $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"
Sebastian Pop654b7752012-11-15 21:20:22 +00004238 mv "$tmp/config.h" "$ac_file" \
4239 || as_fn_error "could not create $ac_file" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00004240 fi
4241 else
4242 $as_echo "/* $configure_input */" \
Sebastian Pop654b7752012-11-15 21:20:22 +00004243 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4244 || as_fn_error "could not create -" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00004245 fi
4246 ;;
4247
4248 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4249$as_echo "$as_me: executing $ac_file commands" >&6;}
4250 ;;
4251 esac
4252
4253done # for ac_tag
4254
4255
4256as_fn_exit 0
4257_ACEOF
4258ac_clean_files=$ac_clean_files_save
4259
4260test $ac_write_fail = 0 ||
Sebastian Pop654b7752012-11-15 21:20:22 +00004261 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Tobias Grosser75805372011-04-29 06:27:02 +00004262
4263
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.
4272if 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.
Sebastian Pop654b7752012-11-15 21:20:22 +00004282 $ac_cs_success || as_fn_exit $?
Tobias Grosser75805372011-04-29 06:27:02 +00004283fi
4284if 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;}
4287fi
4288