this repo has no description
1#! /bin/sh
2# From configure.ac Id.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for GECODE 6.3.1.
5#
6# Report bugs to <users@gecode.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order. Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
93as_myself=
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
138# Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177esac
178fi
179"
180 as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194 exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205else
206 as_have_required=no
207fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and users@gecode.org
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275 fi
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426else
427 as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432else
433 as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513*)
514 ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538else
539 as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='GECODE'
583PACKAGE_TARNAME='gecode'
584PACKAGE_VERSION='6.3.1'
585PACKAGE_STRING='GECODE 6.3.1'
586PACKAGE_BUGREPORT='users@gecode.org'
587PACKAGE_URL=''
588
589ac_unique_file="gecode/kernel.hh"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604# include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609# include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_header_list=
627enable_option_checking=no
628ac_subst_vars='LTLIBOBJS
629LIBOBJS
630BATCHFILE
631DLL_ARCH
632ALLVIS
633GLDFLAGS
634DLLFLAGS
635GECODE_VERSION
636VERSION
637subdirs
638enable_search
639enable_minimodel
640enable_examples
641enable_flatzinc
642enable_driver
643HAVEBISON
644HAVE_FLEXBISON
645HAVEFLEX
646enable_cpprofiler
647enable_cbs
648enable_gist
649enable_qt
650QTLIBS
651QTDEFINES
652QTINCLUDES
653MOC
654QMAKE
655enable_mpfr
656MPFR_LINK
657MPFR_LIB_PATH
658MPFR_CPPFLAGS
659GMP_LINK
660GMP_LIB_PATH
661GMP_CPPFLAGS
662enable_int_vars
663LINKINT
664enable_set_vars
665LINKSET
666enable_float_vars
667LINKFLOAT
668ENABLEDOCDOCSET
669ENABLEDOCCHM
670GECODE_DOXYGEN_TAGFILE
671ENABLEDOCSEARCH
672GECODE_DOXYGEN_DOT
673DOT
674DRIVER
675FLATZINC
676GIST
677MM
678SET
679FLOAT
680INT
681SEARCH
682KERNEL
683SUPPORT
684EXEOUTPUT
685LINKOUTPUT
686LINKSUFFIX
687LINKPREFIX
688INSTALLLIBS
689EXAMPLES_EXTRA_CXXFLAGS
690CCIN
691CXXIN
692COMPILESBJ
693COMPILEOBJ
694cygpathprefix
695LINKLIBDIR
696MINUSLDIR
697STATICLIBEXT
698LIBPREFIX
699LIBEXT
700SBJEXT
701MANIFEST
702GECODE_BUILD_DRIVER_FLAG
703GECODE_BUILD_FLATZINC_FLAG
704GECODE_BUILD_GIST_FLAG
705GECODE_BUILD_MINIMODEL_FLAG
706GECODE_BUILD_SET_FLAG
707GECODE_BUILD_FLOAT_FLAG
708GECODE_BUILD_INT_FLAG
709GECODE_BUILD_SEARCH_FLAG
710GECODE_BUILD_KERNEL_FLAG
711GECODE_BUILD_SUPPORT_FLAG
712WLSONAME
713sharedlibdir
714SOLINKSUFFIX
715SOSUFFIX
716DLLEXT
717need_soname
718DLLPATH
719EGREP
720GREP
721DEBUG_BUILD
722BUILDDLL
723BUILDSTATIC
724BUILD_MACOS_FRAMEWORK
725USERSUFFIX
726enable_resource
727RESCOMP
728HAVE_RC
729CXXCPP
730RUNENVIRONMENT
731PROG_PERL
732PROG_SED
733PROG_MAKE
734PROG_TAR
735PROG_DIFF
736RANLIB
737ac_ct_CC
738CFLAGS
739CC
740OBJEXT
741EXEEXT
742ac_ct_CXX
743CPPFLAGS
744LDFLAGS
745CXXFLAGS
746CXX
747GECODE_FLATZINC_VERSION
748GECODE_SOVERSION
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790with_host_os
791with_compiler_vendor
792enable_resource
793with_sdk
794with_macosx_version_min
795with_architectures
796with_lib_prefix
797with_lib_suffix
798enable_framework
799enable_static
800enable_shared
801enable_debug
802enable_peakheap
803enable_small_codesize
804enable_leak_debug
805enable_allocator
806enable_audit
807enable_profile
808enable_gcov
809enable_thread
810with_freelist32_size_max
811with_freelist64_size_max
812enable_cpp11
813enable_gcc_visibility
814enable_doc_dot
815enable_doc_search
816enable_doc_tagfile
817enable_doc_chm
818enable_doc_docset
819with_vis
820enable_float_vars
821enable_set_vars
822enable_int_vars
823enable_mpfr
824with_gmp_include
825with_gmp_lib
826with_mpfr_include
827with_mpfr_lib
828enable_qt
829enable_gist
830enable_cbs
831enable_cpprofiler
832enable_driver
833enable_flatzinc
834enable_examples
835enable_minimodel
836enable_search
837'
838 ac_precious_vars='build_alias
839host_alias
840target_alias
841CXX
842CXXFLAGS
843LDFLAGS
844LIBS
845CPPFLAGS
846CCC
847CC
848CFLAGS
849CXXCPP'
850ac_subdirs_all=''
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964"enable_$ac_useropt"
965"*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210"with_$ac_useropt"
1211"*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258done
1259
1260if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355else
1356 ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures GECODE 6.3.1 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/gecode]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of GECODE 6.3.1:";;
1452 esac
1453 cat <<\_ACEOF
1454
1455Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-resource build Gecode with resource files for Microsoft
1460 Visual Studio [default=no]
1461 --enable-framework build framework bundle on Mac OS X [default=no]
1462 --enable-static build static libraries [default=no]
1463 --enable-shared build shared libraries [default=yes]
1464 --enable-debug build with assertions [default=no]
1465 --enable-peakheap build with peak heap size tracking [default=no]
1466 --enable-small-codesize optimize for code size [default=no]
1467 --enable-leak-debug build with support for finding memory leaks
1468 [default=no]
1469 --enable-allocator build with default memory allocator [default=yes]
1470 --enable-audit build with auditing code [default=no]
1471 --enable-profile build with profiling information [default=no]
1472 --enable-gcov build with gcov support [default=no]
1473 --enable-thread build with multi-threading support [default=yes]
1474 --enable-cpp11 compile for C++11 standard [default=yes]
1475 --enable-gcc-visibility use gcc visibility attributes [default=yes]
1476 --enable-doc-dot enable graphs in documentation [default=yes]
1477 --enable-doc-search enable documentation search engine [default=no]
1478 --enable-doc-tagfile generate doxygen tagfile [default=yes]
1479 --enable-doc-chm build compressed html documentation [default=yes on
1480 Windows]
1481 --enable-doc-docset build docset documentation for XCode [default=no]
1482 --enable-float-vars build float variable library (implies
1483 --enable-int-vars) [default=yes]
1484 --enable-set-vars build finite set library (implies --enable-int-vars)
1485 [default=yes]
1486 --enable-int-vars build finite domain library [default=yes]
1487 --enable-mpfr build with MPFR support [default=yes]
1488 --enable-qt build with Qt support, requires at least Qt 4.3
1489 [default=yes]
1490 --enable-gist build Gecode Interactive Search Tool [default=yes]
1491 --enable-cbs build with support for counting-based search
1492 [default=no]
1493 --enable-cpprofiler build with support for CPProfiler [default=yes]
1494 --enable-driver build script commandline driver library
1495 [default=yes]
1496 --enable-flatzinc build FlatZinc interpreter [default=yes]
1497 --enable-examples build examples for the enabled variable types
1498 [default=yes]
1499 --enable-minimodel build modeling support library for the enabled
1500 variable types [default=yes]
1501 --enable-search build search engines [default=yes]
1502
1503Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-host-os Override operating system test. Valid values are
1507 Linux, Darwin, FreeBSD, NetBSD, and Windows.
1508 --with-compiler-vendor Override compiler test. Valid values are gnu, intel,
1509 and microsoft.
1510 --with-sdk SDK to use on Mac OS X
1511 --with-macosx-version-min
1512 minimum version of Mac OS X to support
1513 --with-architectures architectures to compile for on Mac OS X
1514 --with-lib-prefix add user-defined prefix to library names
1515 --with-lib-suffix add user-defined suffix to library names
1516 --with-freelist32-size-max
1517 max size of freelist on 32 bit platforms
1518 --with-freelist64-size-max
1519 max size of freelist on 64 bit platforms
1520 --with-vis additional variable implementation specifications
1521 --with-gmp-include path to the gmp or mpir header files
1522 --with-gmp-lib path to the gmp or mpir library
1523 --with-mpfr-include path to the mpfr header file
1524 --with-mpfr-lib path to the mpfr library
1525
1526Some influential environment variables:
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 CXXCPP C++ preprocessor
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to <users@gecode.org>.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603 cat <<\_ACEOF
1604GECODE configure 6.3.1
1605generated by GNU Autoconf 2.69
1606
1607Copyright (C) 2012 Free Software Foundation, Inc.
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611 exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_cxx_try_compile LINENO
1619# ----------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_cxx_try_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_cxx_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654} # ac_fn_cxx_try_compile
1655
1656# ac_fn_c_try_compile LINENO
1657# --------------------------
1658# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_compile ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_compile
1693
1694# ac_fn_cxx_try_cpp LINENO
1695# ------------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_cxx_try_cpp ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729} # ac_fn_cxx_try_cpp
1730
1731# ac_fn_cxx_try_link LINENO
1732# -------------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 test -x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775} # ac_fn_cxx_try_link
1776
1777# ac_fn_cxx_check_func LINENO FUNC VAR
1778# ------------------------------------
1779# Tests whether FUNC exists, setting the cache variable VAR accordingly
1780ac_fn_cxx_check_func ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792#define $2 innocuous_$2
1793
1794/* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1798
1799#ifdef __STDC__
1800# include <limits.h>
1801#else
1802# include <assert.h>
1803#endif
1804
1805#undef $2
1806
1807/* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1810#ifdef __cplusplus
1811extern "C"
1812#endif
1813char $2 ();
1814/* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817#if defined __stub_$2 || defined __stub___$2
1818choke me
1819#endif
1820
1821int
1822main ()
1823{
1824return $2 ();
1825 ;
1826 return 0;
1827}
1828_ACEOF
1829if ac_fn_cxx_try_link "$LINENO"; then :
1830 eval "$3=yes"
1831else
1832 eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_cxx_check_func
1843
1844# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1845# ---------------------------------------------------------
1846# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847# the include files in INCLUDES and setting the cache variable VAR
1848# accordingly.
1849ac_fn_cxx_check_header_mongrel ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861else
1862 # Is the header compilable?
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864$as_echo_n "checking $2 usability... " >&6; }
1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867$4
1868#include <$2>
1869_ACEOF
1870if ac_fn_cxx_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1872else
1873 ac_header_compiler=no
1874fi
1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877$as_echo "$ac_header_compiler" >&6; }
1878
1879# Is the header present?
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881$as_echo_n "checking $2 presence... " >&6; }
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884#include <$2>
1885_ACEOF
1886if ac_fn_cxx_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1888else
1889 ac_header_preproc=no
1890fi
1891rm -f conftest.err conftest.i conftest.$ac_ext
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893$as_echo "$ac_header_preproc" >&6; }
1894
1895# So? What about this header?
1896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1897 yes:no: )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ;;
1903 no:yes:* )
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914( $as_echo "## ------------------------------- ##
1915## Report this to users@gecode.org ##
1916## ------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1918 ;;
1919esac
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 eval "$3=\$ac_header_compiler"
1926fi
1927eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930fi
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_cxx_check_header_mongrel
1934
1935# ac_fn_cxx_try_run LINENO
1936# ------------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938# that executables *can* be run.
1939ac_fn_cxx_try_run ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1963 ac_retval=0
1964else
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=$ac_status
1970fi
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975} # ac_fn_cxx_try_run
1976
1977# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1978# ---------------------------------------------------------
1979# Tests whether HEADER exists and can be compiled using the include files in
1980# INCLUDES, setting the cache variable VAR accordingly.
1981ac_fn_cxx_check_header_compile ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992#include <$2>
1993_ACEOF
1994if ac_fn_cxx_try_compile "$LINENO"; then :
1995 eval "$3=yes"
1996else
1997 eval "$3=no"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_cxx_check_header_compile
2007
2008# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2009# -----------------------------------------------
2010# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2011# accordingly.
2012ac_fn_cxx_check_decl ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 as_decl_name=`echo $2|sed 's/ *(.*//'`
2016 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2018$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2019if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025int
2026main ()
2027{
2028#ifndef $as_decl_name
2029#ifdef __cplusplus
2030 (void) $as_decl_use;
2031#else
2032 (void) $as_decl_name;
2033#endif
2034#endif
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_cxx_try_compile "$LINENO"; then :
2041 eval "$3=yes"
2042else
2043 eval "$3=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_cxx_check_decl
2053
2054# ac_fn_c_try_run LINENO
2055# ----------------------
2056# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057# that executables *can* be run.
2058ac_fn_c_try_run ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2062case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075esac
2076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077$as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2082 ac_retval=0
2083else
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=$ac_status
2089fi
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2093
2094} # ac_fn_c_try_run
2095
2096# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2097# --------------------------------------------
2098# Tries to find the compile-time value of EXPR in a program that includes
2099# INCLUDES, setting VAR accordingly. Returns whether the value could be
2100# computed
2101ac_fn_c_compute_int ()
2102{
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if test "$cross_compiling" = yes; then
2105 # Depending upon the size, compute the lo and hi bounds.
2106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) >= 0)];
2113test_array [0] = 0;
2114return test_array [0];
2115
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130test_array [0] = 0;
2131return test_array [0];
2132
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=$ac_mid; break
2139else
2140 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2141 if test $ac_lo -le $ac_mid; then
2142 ac_lo= ac_hi=
2143 break
2144 fi
2145 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 done
2149else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h. */
2152$4
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($2) < 0)];
2157test_array [0] = 0;
2158return test_array [0];
2159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=-1 ac_mid=-1
2166 while :; do
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
2169$4
2170int
2171main ()
2172{
2173static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2174test_array [0] = 0;
2175return test_array [0];
2176
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_lo=$ac_mid; break
2183else
2184 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2185 if test $ac_mid -le $ac_hi; then
2186 ac_lo= ac_hi=
2187 break
2188 fi
2189 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193else
2194 ac_lo= ac_hi=
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199# Binary search between lo and hi bounds.
2200while test "x$ac_lo" != "x$ac_hi"; do
2201 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h. */
2204$4
2205int
2206main ()
2207{
2208static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209test_array [0] = 0;
2210return test_array [0];
2211
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid
2218else
2219 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222done
2223case $ac_lo in #((
2224?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2225'') ac_retval=1 ;;
2226esac
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h. */
2230$4
2231static long int longval () { return $2; }
2232static unsigned long int ulongval () { return $2; }
2233#include <stdio.h>
2234#include <stdlib.h>
2235int
2236main ()
2237{
2238
2239 FILE *f = fopen ("conftest.val", "w");
2240 if (! f)
2241 return 1;
2242 if (($2) < 0)
2243 {
2244 long int i = longval ();
2245 if (i != ($2))
2246 return 1;
2247 fprintf (f, "%ld", i);
2248 }
2249 else
2250 {
2251 unsigned long int i = ulongval ();
2252 if (i != ($2))
2253 return 1;
2254 fprintf (f, "%lu", i);
2255 }
2256 /* Do not output a trailing newline, as this causes \r\n confusion
2257 on some platforms. */
2258 return ferror (f) || fclose (f) != 0;
2259
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_run "$LINENO"; then :
2265 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2266else
2267 ac_retval=1
2268fi
2269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2270 conftest.$ac_objext conftest.beam conftest.$ac_ext
2271rm -f conftest.val
2272
2273 fi
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2276
2277} # ac_fn_c_compute_int
2278cat >config.log <<_ACEOF
2279This file contains any messages produced by compilers while
2280running configure, to aid debugging if configure makes a mistake.
2281
2282It was created by GECODE $as_me 6.3.1, which was
2283generated by GNU Autoconf 2.69. Invocation command line was
2284
2285 $ $0 $@
2286
2287_ACEOF
2288exec 5>>config.log
2289{
2290cat <<_ASUNAME
2291## --------- ##
2292## Platform. ##
2293## --------- ##
2294
2295hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2296uname -m = `(uname -m) 2>/dev/null || echo unknown`
2297uname -r = `(uname -r) 2>/dev/null || echo unknown`
2298uname -s = `(uname -s) 2>/dev/null || echo unknown`
2299uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300
2301/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2302/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2303
2304/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2305/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2306/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2307/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2308/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2309/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2310/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2311
2312_ASUNAME
2313
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 $as_echo "PATH: $as_dir"
2320 done
2321IFS=$as_save_IFS
2322
2323} >&5
2324
2325cat >&5 <<_ACEOF
2326
2327
2328## ----------- ##
2329## Core tests. ##
2330## ----------- ##
2331
2332_ACEOF
2333
2334
2335# Keep a trace of the command line.
2336# Strip out --no-create and --no-recursion so they do not pile up.
2337# Strip out --silent because we don't want to record it for future runs.
2338# Also quote any args containing shell meta-characters.
2339# Make two passes to allow for proper duplicate-argument suppression.
2340ac_configure_args=
2341ac_configure_args0=
2342ac_configure_args1=
2343ac_must_keep_next=false
2344for ac_pass in 1 2
2345do
2346 for ac_arg
2347 do
2348 case $ac_arg in
2349 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2351 | -silent | --silent | --silen | --sile | --sil)
2352 continue ;;
2353 *\'*)
2354 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2355 esac
2356 case $ac_pass in
2357 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358 2)
2359 as_fn_append ac_configure_args1 " '$ac_arg'"
2360 if test $ac_must_keep_next = true; then
2361 ac_must_keep_next=false # Got value, back to normal.
2362 else
2363 case $ac_arg in
2364 *=* | --config-cache | -C | -disable-* | --disable-* \
2365 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2366 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2367 | -with-* | --with-* | -without-* | --without-* | --x)
2368 case "$ac_configure_args0 " in
2369 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2370 esac
2371 ;;
2372 -* ) ac_must_keep_next=true ;;
2373 esac
2374 fi
2375 as_fn_append ac_configure_args " '$ac_arg'"
2376 ;;
2377 esac
2378 done
2379done
2380{ ac_configure_args0=; unset ac_configure_args0;}
2381{ ac_configure_args1=; unset ac_configure_args1;}
2382
2383# When interrupted or exit'd, cleanup temporary files, and complete
2384# config.log. We remove comments because anyway the quotes in there
2385# would cause problems or look ugly.
2386# WARNING: Use '\'' to represent an apostrophe within the trap.
2387# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2388trap 'exit_status=$?
2389 # Save into config.log some information that might help in debugging.
2390 {
2391 echo
2392
2393 $as_echo "## ---------------- ##
2394## Cache variables. ##
2395## ---------------- ##"
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2398(
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2421 *)
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 ;;
2424 esac |
2425 sort
2426)
2427 echo
2428
2429 $as_echo "## ----------------- ##
2430## Output variables. ##
2431## ----------------- ##"
2432 echo
2433 for ac_var in $ac_subst_vars
2434 do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2442
2443 if test -n "$ac_subst_files"; then
2444 $as_echo "## ------------------- ##
2445## File substitutions. ##
2446## ------------------- ##"
2447 echo
2448 for ac_var in $ac_subst_files
2449 do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac
2454 $as_echo "$ac_var='\''$ac_val'\''"
2455 done | sort
2456 echo
2457 fi
2458
2459 if test -s confdefs.h; then
2460 $as_echo "## ----------- ##
2461## confdefs.h. ##
2462## ----------- ##"
2463 echo
2464 cat confdefs.h
2465 echo
2466 fi
2467 test "$ac_signal" != 0 &&
2468 $as_echo "$as_me: caught signal $ac_signal"
2469 $as_echo "$as_me: exit $exit_status"
2470 } >&5
2471 rm -f core *.core core.conftest.* &&
2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2473 exit $exit_status
2474' 0
2475for ac_signal in 1 2 13 15; do
2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477done
2478ac_signal=0
2479
2480# confdefs.h avoids OS command line length limits that DEFS can exceed.
2481rm -f -r conftest* confdefs.h
2482
2483$as_echo "/* confdefs.h */" > confdefs.h
2484
2485# Predefined preprocessor variables.
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_NAME "$PACKAGE_NAME"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_VERSION "$PACKAGE_VERSION"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_STRING "$PACKAGE_STRING"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_URL "$PACKAGE_URL"
2509_ACEOF
2510
2511
2512# Let the site file select an alternate cache file if it wants to.
2513# Prefer an explicitly selected file to automatically selected ones.
2514ac_site_file1=NONE
2515ac_site_file2=NONE
2516if test -n "$CONFIG_SITE"; then
2517 # We do not want a PATH search for config.site.
2518 case $CONFIG_SITE in #((
2519 -*) ac_site_file1=./$CONFIG_SITE;;
2520 */*) ac_site_file1=$CONFIG_SITE;;
2521 *) ac_site_file1=./$CONFIG_SITE;;
2522 esac
2523elif test "x$prefix" != xNONE; then
2524 ac_site_file1=$prefix/share/config.site
2525 ac_site_file2=$prefix/etc/config.site
2526else
2527 ac_site_file1=$ac_default_prefix/share/config.site
2528 ac_site_file2=$ac_default_prefix/etc/config.site
2529fi
2530for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531do
2532 test "x$ac_site_file" = xNONE && continue
2533 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2535$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2536 sed 's/^/| /' "$ac_site_file" >&5
2537 . "$ac_site_file" \
2538 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540as_fn_error $? "failed to load site script $ac_site_file
2541See \`config.log' for more details" "$LINENO" 5; }
2542 fi
2543done
2544
2545if test -r "$cache_file"; then
2546 # Some versions of bash will fail to source /dev/null (special files
2547 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2548 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2550$as_echo "$as_me: loading cache $cache_file" >&6;}
2551 case $cache_file in
2552 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2553 *) . "./$cache_file";;
2554 esac
2555 fi
2556else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2558$as_echo "$as_me: creating cache $cache_file" >&6;}
2559 >$cache_file
2560fi
2561
2562as_fn_append ac_header_list " stdlib.h"
2563as_fn_append ac_header_list " unistd.h"
2564as_fn_append ac_header_list " sys/param.h"
2565# Check that the precious variables saved in the cache have kept the same
2566# value.
2567ac_cache_corrupted=false
2568for ac_var in $ac_precious_vars; do
2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570 eval ac_new_set=\$ac_env_${ac_var}_set
2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572 eval ac_new_val=\$ac_env_${ac_var}_value
2573 case $ac_old_set,$ac_new_set in
2574 set,)
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577 ac_cache_corrupted=: ;;
2578 ,set)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2582 ,);;
2583 *)
2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x $ac_old_val`
2587 ac_new_val_w=`echo x $ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591 ac_cache_corrupted=:
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2601 fi;;
2602 esac
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2605 case $ac_new_val in
2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2608 esac
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2612 esac
2613 fi
2614done
2615if $ac_cache_corrupted; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621fi
2622## -------------------- ##
2623## Main body of script. ##
2624## -------------------- ##
2625
2626ac_ext=c
2627ac_cpp='$CPP $CPPFLAGS'
2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632
2633ac_config_headers="$ac_config_headers gecode/support/config.hpp"
2634
2635
2636
2637ac_gecode_soversion=52
2638GECODE_SOVERSION=${ac_gecode_soversion}
2639
2640ac_gecode_flatzincversion=1.6
2641GECODE_FLATZINC_VERSION=${ac_gecode_flatzincversion}
2642
2643
2644# checks for programs
2645
2646: ${CXXFLAGS=""} : ${CFLAGS=""} : ${DLLFLAGS=""} : ${GLDFLAGS=""}
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708# Test for platform specific behaviour of arithmetic
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770# Check whether --with-host-os was given.
2771if test "${with_host_os+set}" = set; then :
2772 withval=$with_host_os;
2773fi
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the host operating system" >&5
2776$as_echo_n "checking for the host operating system... " >&6; }
2777 if test "${with_host_os:-no}" = "no"; then
2778 guess_host_os=$(uname -s 2>/dev/null)
2779 else
2780 guess_host_os=${with_host_os}
2781 fi
2782 case ${guess_host_os} in
2783 GNU/kFreeBSD|*inux*|FreeBSD|NetBSD)
2784 host_os=linux
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
2786$as_echo "Linux" >&6; }
2787 ;;
2788 *arwin*)
2789 host_os=darwin
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
2791$as_echo "Darwin" >&6; }
2792 ;;
2793 CYGWIN*|*indows*)
2794 host_os=windows
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
2796$as_echo "Windows" >&6; }
2797 ;;
2798 *)
2799 as_fn_error $? "Host OS not supported." "$LINENO" 5
2800 ;;
2801 esac
2802
2803if test "${CXX}x" = "x" -a "${CC}x" = "x" -a "${host_os}" = "windows"; then
2804 CC=cl
2805 CXX=cl
2806fi
2807
2808ac_ext=cpp
2809ac_cpp='$CXXCPP $CPPFLAGS'
2810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2813if test -z "$CXX"; then
2814 if test -n "$CCC"; then
2815 CXX=$CCC
2816 else
2817 if test -n "$ac_tool_prefix"; then
2818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2819 do
2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_CXX+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826else
2827 if test -n "$CXX"; then
2828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842 done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CXX=$ac_cv_prog_CXX
2848if test -n "$CXX"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2850$as_echo "$CXX" >&6; }
2851else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857 test -n "$CXX" && break
2858 done
2859fi
2860if test -z "$CXX"; then
2861 ac_ct_CXX=$CXX
2862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2863do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865set dummy $ac_prog; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 if test -n "$ac_ct_CXX"; then
2872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_CXX="$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885done
2886 done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2892if test -n "$ac_ct_CXX"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2894$as_echo "$ac_ct_CXX" >&6; }
2895else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
2898fi
2899
2900
2901 test -n "$ac_ct_CXX" && break
2902done
2903
2904 if test "x$ac_ct_CXX" = x; then
2905 CXX="g++"
2906 else
2907 case $cross_compiling:$ac_tool_warned in
2908yes:)
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911ac_tool_warned=yes ;;
2912esac
2913 CXX=$ac_ct_CXX
2914 fi
2915fi
2916
2917 fi
2918fi
2919# Provide some information about the compiler.
2920$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2921set X $ac_compile
2922ac_compiler=$2
2923for ac_option in --version -v -V -qversion; do
2924 { { ac_try="$ac_compiler $ac_option >&5"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2932 ac_status=$?
2933 if test -s conftest.err; then
2934 sed '10a\
2935... rest of stderr output deleted ...
2936 10q' conftest.err >conftest.er1
2937 cat conftest.er1 >&5
2938 fi
2939 rm -f conftest.er1 conftest.err
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }
2942done
2943
2944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945/* end confdefs.h. */
2946
2947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955ac_clean_files_save=$ac_clean_files
2956ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2957# Try to create an executable without -o first, disregard a.out.
2958# It will help us diagnose broken compilers, and finding out an intuition
2959# of exeext.
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2961$as_echo_n "checking whether the C++ compiler works... " >&6; }
2962ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2963
2964# The possible output files:
2965ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2966
2967ac_rmfiles=
2968for ac_file in $ac_files
2969do
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2973 esac
2974done
2975rm -f $ac_rmfiles
2976
2977if { { ac_try="$ac_link_default"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link_default") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2989# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2990# in a Makefile. We should not override ac_cv_exeext if it was cached,
2991# so that the user can short-circuit this test for compilers unknown to
2992# Autoconf.
2993for ac_file in $ac_files ''
2994do
2995 test -f "$ac_file" || continue
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2998 ;;
2999 [ab].out )
3000 # We found the default executable, but exeext='' is most
3001 # certainly right.
3002 break;;
3003 *.* )
3004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3005 then :; else
3006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 fi
3008 # We set ac_cv_exeext here because the later test for it is not
3009 # safe: cross compilers may not add the suffix if given an `-o'
3010 # argument, so we may need to know it at that point already.
3011 # Even if this section looks crufty: it has the advantage of
3012 # actually working.
3013 break;;
3014 * )
3015 break;;
3016 esac
3017done
3018test "$ac_cv_exeext" = no && ac_cv_exeext=
3019
3020else
3021 ac_file=''
3022fi
3023if test -z "$ac_file"; then :
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026$as_echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error 77 "C++ compiler cannot create executables
3032See \`config.log' for more details" "$LINENO" 5; }
3033else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035$as_echo "yes" >&6; }
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3038$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040$as_echo "$ac_file" >&6; }
3041ac_exeext=$ac_cv_exeext
3042
3043rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044ac_clean_files=$ac_clean_files_save
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046$as_echo_n "checking for suffix of executables... " >&6; }
3047if { { ac_try="$ac_link"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060# work properly (i.e., refer to `conftest.exe'), while it won't with
3061# `rm'.
3062for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 break;;
3068 * ) break;;
3069 esac
3070done
3071else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3075See \`config.log' for more details" "$LINENO" 5; }
3076fi
3077rm -f conftest conftest$ac_cv_exeext
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079$as_echo "$ac_cv_exeext" >&6; }
3080
3081rm -f conftest.$ac_ext
3082EXEEXT=$ac_cv_exeext
3083ac_exeext=$EXEEXT
3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h. */
3086#include <stdio.h>
3087int
3088main ()
3089{
3090FILE *f = fopen ("conftest.out", "w");
3091 return ferror (f) || fclose (f) != 0;
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097ac_clean_files="$ac_clean_files conftest.out"
3098# Check that the compiler produces executables we can run. If not, either
3099# the compiler is broken, or we cross compile.
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101$as_echo_n "checking whether we are cross compiling... " >&6; }
3102if test "$cross_compiling" != yes; then
3103 { { ac_try="$ac_link"
3104case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 if { ac_try='./conftest$ac_cv_exeext'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120$as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3125 cross_compiling=no
3126 else
3127 if test "$cross_compiling" = maybe; then
3128 cross_compiling=yes
3129 else
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error $? "cannot run C++ compiled programs.
3133If you meant to cross compile, use \`--host'.
3134See \`config.log' for more details" "$LINENO" 5; }
3135 fi
3136 fi
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139$as_echo "$cross_compiling" >&6; }
3140
3141rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3142ac_clean_files=$ac_clean_files_save
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3144$as_echo_n "checking for suffix of object files... " >&6; }
3145if ${ac_cv_objext+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.o conftest.obj
3160if { { ac_try="$ac_compile"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_compile") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 for ac_file in conftest.o conftest.obj conftest.*; do
3172 test -f "$ac_file" || continue;
3173 case $ac_file in
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3176 break;;
3177 esac
3178done
3179else
3180 $as_echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "cannot compute suffix of object files: cannot compile
3186See \`config.log' for more details" "$LINENO" 5; }
3187fi
3188rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3191$as_echo "$ac_cv_objext" >&6; }
3192OBJEXT=$ac_cv_objext
3193ac_objext=$OBJEXT
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3195$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3196if ${ac_cv_cxx_compiler_gnu+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205#ifndef __GNUC__
3206 choke me
3207#endif
3208
3209 ;
3210 return 0;
3211}
3212_ACEOF
3213if ac_fn_cxx_try_compile "$LINENO"; then :
3214 ac_compiler_gnu=yes
3215else
3216 ac_compiler_gnu=no
3217fi
3218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220
3221fi
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3223$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3224if test $ac_compiler_gnu = yes; then
3225 GXX=yes
3226else
3227 GXX=
3228fi
3229ac_test_CXXFLAGS=${CXXFLAGS+set}
3230ac_save_CXXFLAGS=$CXXFLAGS
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3232$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3233if ${ac_cv_prog_cxx_g+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235else
3236 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3237 ac_cxx_werror_flag=yes
3238 ac_cv_prog_cxx_g=no
3239 CXXFLAGS="-g"
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242
3243int
3244main ()
3245{
3246
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251if ac_fn_cxx_try_compile "$LINENO"; then :
3252 ac_cv_prog_cxx_g=yes
3253else
3254 CXXFLAGS=""
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h. */
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266if ac_fn_cxx_try_compile "$LINENO"; then :
3267
3268else
3269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270 CXXFLAGS="-g"
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272/* end confdefs.h. */
3273
3274int
3275main ()
3276{
3277
3278 ;
3279 return 0;
3280}
3281_ACEOF
3282if ac_fn_cxx_try_compile "$LINENO"; then :
3283 ac_cv_prog_cxx_g=yes
3284fi
3285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288fi
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3293$as_echo "$ac_cv_prog_cxx_g" >&6; }
3294if test "$ac_test_CXXFLAGS" = set; then
3295 CXXFLAGS=$ac_save_CXXFLAGS
3296elif test $ac_cv_prog_cxx_g = yes; then
3297 if test "$GXX" = yes; then
3298 CXXFLAGS="-g -O2"
3299 else
3300 CXXFLAGS="-g"
3301 fi
3302else
3303 if test "$GXX" = yes; then
3304 CXXFLAGS="-O2"
3305 else
3306 CXXFLAGS=
3307 fi
3308fi
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3322set dummy ${ac_tool_prefix}gcc; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if ${ac_cv_prog_CC+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342done
3343 done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351$as_echo "$CC" >&6; }
3352else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358fi
3359if test -z "$ac_cv_prog_CC"; then
3360 ac_ct_CC=$CC
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362set dummy gcc; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_ac_ct_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367else
3368 if test -n "$ac_ct_CC"; then
3369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_CC="gcc"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383 done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389if test -n "$ac_ct_CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391$as_echo "$ac_ct_CC" >&6; }
3392else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406 CC=$ac_ct_CC
3407 fi
3408else
3409 CC="$ac_cv_prog_CC"
3410fi
3411
3412if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}cc; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if ${ac_cv_prog_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_CC="${ac_tool_prefix}cc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435done
3436 done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441CC=$ac_cv_prog_CC
3442if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444$as_echo "$CC" >&6; }
3445else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451 fi
3452fi
3453if test -z "$CC"; then
3454 # Extract the first word of "cc", so it can be a program name with args.
3455set dummy cc; ac_word=$2
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457$as_echo_n "checking for $ac_word... " >&6; }
3458if ${ac_cv_prog_CC+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460else
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464 ac_prog_rejected=no
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3473 ac_prog_rejected=yes
3474 continue
3475 fi
3476 ac_cv_prog_CC="cc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481 done
3482IFS=$as_save_IFS
3483
3484if test $ac_prog_rejected = yes; then
3485 # We found a bogon in the path, so make sure we never use it.
3486 set dummy $ac_cv_prog_CC
3487 shift
3488 if test $# != 0; then
3489 # We chose a different compiler from the bogus one.
3490 # However, it has the same basename, so the bogon will be chosen
3491 # first if we set CC to just the basename; use the full file name.
3492 shift
3493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3494 fi
3495fi
3496fi
3497fi
3498CC=$ac_cv_prog_CC
3499if test -n "$CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501$as_echo "$CC" >&6; }
3502else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505fi
3506
3507
3508fi
3509if test -z "$CC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 for ac_prog in cl.exe
3512 do
3513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516$as_echo_n "checking for $ac_word... " >&6; }
3517if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535 done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540CC=$ac_cv_prog_CC
3541if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543$as_echo "$CC" >&6; }
3544else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550 test -n "$CC" && break
3551 done
3552fi
3553if test -z "$CC"; then
3554 ac_ct_CC=$CC
3555 for ac_prog in cl.exe
3556do
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558set dummy $ac_prog; ac_word=$2
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if ${ac_cv_prog_ac_ct_CC+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563else
3564 if test -n "$ac_ct_CC"; then
3565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_ac_ct_CC="$ac_prog"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
3579 done
3580IFS=$as_save_IFS
3581
3582fi
3583fi
3584ac_ct_CC=$ac_cv_prog_ac_ct_CC
3585if test -n "$ac_ct_CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3587$as_echo "$ac_ct_CC" >&6; }
3588else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591fi
3592
3593
3594 test -n "$ac_ct_CC" && break
3595done
3596
3597 if test "x$ac_ct_CC" = x; then
3598 CC=""
3599 else
3600 case $cross_compiling:$ac_tool_warned in
3601yes:)
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604ac_tool_warned=yes ;;
3605esac
3606 CC=$ac_ct_CC
3607 fi
3608fi
3609
3610fi
3611
3612
3613test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error $? "no acceptable C compiler found in \$PATH
3616See \`config.log' for more details" "$LINENO" 5; }
3617
3618# Provide some information about the compiler.
3619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3620set X $ac_compile
3621ac_compiler=$2
3622for ac_option in --version -v -V -qversion; do
3623 { { ac_try="$ac_compiler $ac_option >&5"
3624case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629$as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631 ac_status=$?
3632 if test -s conftest.err; then
3633 sed '10a\
3634... rest of stderr output deleted ...
3635 10q' conftest.err >conftest.er1
3636 cat conftest.er1 >&5
3637 fi
3638 rm -f conftest.er1 conftest.err
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641done
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650
3651int
3652main ()
3653{
3654#ifndef __GNUC__
3655 choke me
3656#endif
3657
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_compiler_gnu=yes
3664else
3665 ac_compiler_gnu=no
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673if test $ac_compiler_gnu = yes; then
3674 GCC=yes
3675else
3676 GCC=
3677fi
3678ac_test_CFLAGS=${CFLAGS+set}
3679ac_save_CFLAGS=$CFLAGS
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681$as_echo_n "checking whether $CC accepts -g... " >&6; }
3682if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684else
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3687 ac_cv_prog_cc_g=no
3688 CFLAGS="-g"
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691
3692int
3693main ()
3694{
3695
3696 ;
3697 return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_g=yes
3702else
3703 CFLAGS=""
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716
3717else
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3719 CFLAGS="-g"
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h. */
3722
3723int
3724main ()
3725{
3726
3727 ;
3728 return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_g=yes
3733fi
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742$as_echo "$ac_cv_prog_cc_g" >&6; }
3743if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3747 CFLAGS="-g -O2"
3748 else
3749 CFLAGS="-g"
3750 fi
3751else
3752 if test "$GCC" = yes; then
3753 CFLAGS="-O2"
3754 else
3755 CFLAGS=
3756 fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762else
3763 ac_cv_prog_cc_c89=no
3764ac_save_CC=$CC
3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h. */
3767#include <stdarg.h>
3768#include <stdio.h>
3769struct stat;
3770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771struct buf { int x; };
3772FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773static char *e (p, i)
3774 char **p;
3775 int i;
3776{
3777 return p[i];
3778}
3779static char *f (char * (*g) (char **, int), char **p, ...)
3780{
3781 char *s;
3782 va_list v;
3783 va_start (v,p);
3784 s = g (p, va_arg (v,int));
3785 va_end (v);
3786 return s;
3787}
3788
3789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3800#define FOO(x) 'x'
3801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803int test (int i, double x);
3804struct s1 {int (*f) (int a);};
3805struct s2 {int (*f) (double a);};
3806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807int argc;
3808char **argv;
3809int
3810main ()
3811{
3812return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819do
3820 CC="$ac_save_CC $ac_arg"
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_c89=$ac_arg
3823fi
3824rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3826done
3827rm -f conftest.$ac_ext
3828CC=$ac_save_CC
3829
3830fi
3831# AC_CACHE_VAL
3832case "x$ac_cv_prog_cc_c89" in
3833 x)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835$as_echo "none needed" >&6; } ;;
3836 xno)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838$as_echo "unsupported" >&6; } ;;
3839 *)
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843esac
3844if test "x$ac_cv_prog_cc_c89" != xno; then :
3845
3846fi
3847
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854ac_ext=cpp
3855ac_cpp='$CXXCPP $CPPFLAGS'
3856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3859
3860
3861if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
3866if ${ac_cv_prog_RANLIB+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868else
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884 done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889RANLIB=$ac_cv_prog_RANLIB
3890if test -n "$RANLIB"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3892$as_echo "$RANLIB" >&6; }
3893else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898
3899fi
3900if test -z "$ac_cv_prog_RANLIB"; then
3901 ac_ct_RANLIB=$RANLIB
3902 # Extract the first word of "ranlib", so it can be a program name with args.
3903set dummy ranlib; ac_word=$2
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
3906if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908else
3909 if test -n "$ac_ct_RANLIB"; then
3910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_RANLIB="ranlib"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924 done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3930if test -n "$ac_ct_RANLIB"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3932$as_echo "$ac_ct_RANLIB" >&6; }
3933else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
3936fi
3937
3938 if test "x$ac_ct_RANLIB" = x; then
3939 RANLIB=":"
3940 else
3941 case $cross_compiling:$ac_tool_warned in
3942yes:)
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945ac_tool_warned=yes ;;
3946esac
3947 RANLIB=$ac_ct_RANLIB
3948 fi
3949else
3950 RANLIB="$ac_cv_prog_RANLIB"
3951fi
3952
3953
3954# Extract the first word of "diff", so it can be a program name with args.
3955set dummy diff; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_PROG_DIFF+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$PROG_DIFF"; then
3962 ac_cv_prog_PROG_DIFF="$PROG_DIFF" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_PROG_DIFF="ok"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981PROG_DIFF=$ac_cv_prog_PROG_DIFF
3982if test -n "$PROG_DIFF"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DIFF" >&5
3984$as_echo "$PROG_DIFF" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990
3991 if test "${PROG_DIFF}x" = "x"; then
3992 as_fn_error $? "In order to compile Gecode, you need the diff tool." "$LINENO" 5
3993 fi
3994# Extract the first word of "tar", so it can be a program name with args.
3995set dummy tar; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
3998if ${ac_cv_prog_PROG_TAR+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$PROG_TAR"; then
4002 ac_cv_prog_PROG_TAR="$PROG_TAR" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_PROG_TAR="ok"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021PROG_TAR=$ac_cv_prog_PROG_TAR
4022if test -n "$PROG_TAR"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAR" >&5
4024$as_echo "$PROG_TAR" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031 if test "${PROG_TAR}x" = "x"; then
4032 as_fn_error $? "In order to compile Gecode, you need the tar tool." "$LINENO" 5
4033 fi
4034# Extract the first word of "make", so it can be a program name with args.
4035set dummy make; ac_word=$2
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if ${ac_cv_prog_PROG_MAKE+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040else
4041 if test -n "$PROG_MAKE"; then
4042 ac_cv_prog_PROG_MAKE="$PROG_MAKE" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_PROG_MAKE="ok"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056 done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061PROG_MAKE=$ac_cv_prog_PROG_MAKE
4062if test -n "$PROG_MAKE"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_MAKE" >&5
4064$as_echo "$PROG_MAKE" >&6; }
4065else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068fi
4069
4070
4071 if test "${PROG_MAKE}x" = "x"; then
4072 as_fn_error $? "In order to compile Gecode, you need the make tool." "$LINENO" 5
4073 fi
4074# Extract the first word of "sed", so it can be a program name with args.
4075set dummy sed; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
4078if ${ac_cv_prog_PROG_SED+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080else
4081 if test -n "$PROG_SED"; then
4082 ac_cv_prog_PROG_SED="$PROG_SED" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_PROG_SED="ok"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4094 fi
4095done
4096 done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101PROG_SED=$ac_cv_prog_PROG_SED
4102if test -n "$PROG_SED"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SED" >&5
4104$as_echo "$PROG_SED" >&6; }
4105else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107$as_echo "no" >&6; }
4108fi
4109
4110
4111 if test "${PROG_SED}x" = "x"; then
4112 as_fn_error $? "In order to compile Gecode, you need the sed tool." "$LINENO" 5
4113 fi
4114# Extract the first word of "perl", so it can be a program name with args.
4115set dummy perl; ac_word=$2
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117$as_echo_n "checking for $ac_word... " >&6; }
4118if ${ac_cv_prog_PROG_PERL+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 if test -n "$PROG_PERL"; then
4122 ac_cv_prog_PROG_PERL="$PROG_PERL" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_PROG_PERL="ok"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136 done
4137IFS=$as_save_IFS
4138
4139fi
4140fi
4141PROG_PERL=$ac_cv_prog_PROG_PERL
4142if test -n "$PROG_PERL"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PERL" >&5
4144$as_echo "$PROG_PERL" >&6; }
4145else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
4148fi
4149
4150
4151 if test "${PROG_PERL}x" = "x"; then
4152 as_fn_error $? "In order to compile Gecode, you need perl." "$LINENO" 5
4153 fi
4154
4155case $host_os in
4156 darwin*)
4157 RUNENVIRONMENT=DYLD_LIBRARY_PATH=.
4158
4159 ;;
4160 windows*)
4161 RUNENVIRONMENT=''
4162
4163 ;;
4164 *)
4165 RUNENVIRONMENT=LD_LIBRARY_PATH=.
4166
4167 ;;
4168 esac
4169
4170ac_ext=cpp
4171ac_cpp='$CXXCPP $CPPFLAGS'
4172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4176$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4177if test -z "$CXXCPP"; then
4178 if ${ac_cv_prog_CXXCPP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 # Double quotes because CXXCPP needs to be expanded
4182 for CXXCPP in "$CXX -E" "/lib/cpp"
4183 do
4184 ac_preproc_ok=false
4185for ac_cxx_preproc_warn_flag in '' yes
4186do
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#ifdef __STDC__
4196# include <limits.h>
4197#else
4198# include <assert.h>
4199#endif
4200 Syntax error
4201_ACEOF
4202if ac_fn_cxx_try_cpp "$LINENO"; then :
4203
4204else
4205 # Broken: fails on valid input.
4206continue
4207fi
4208rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214#include <ac_nonexistent.h>
4215_ACEOF
4216if ac_fn_cxx_try_cpp "$LINENO"; then :
4217 # Broken: success on invalid input.
4218continue
4219else
4220 # Passes both tests.
4221ac_preproc_ok=:
4222break
4223fi
4224rm -f conftest.err conftest.i conftest.$ac_ext
4225
4226done
4227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228rm -f conftest.i conftest.err conftest.$ac_ext
4229if $ac_preproc_ok; then :
4230 break
4231fi
4232
4233 done
4234 ac_cv_prog_CXXCPP=$CXXCPP
4235
4236fi
4237 CXXCPP=$ac_cv_prog_CXXCPP
4238else
4239 ac_cv_prog_CXXCPP=$CXXCPP
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4242$as_echo "$CXXCPP" >&6; }
4243ac_preproc_ok=false
4244for ac_cxx_preproc_warn_flag in '' yes
4245do
4246 # Use a header file that comes with gcc, so configuring glibc
4247 # with a fresh cross-compiler works.
4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249 # <limits.h> exists even on freestanding compilers.
4250 # On the NeXT, cc -E runs the code through the compiler's parser,
4251 # not just through cpp. "Syntax error" is here to catch this case.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h. */
4254#ifdef __STDC__
4255# include <limits.h>
4256#else
4257# include <assert.h>
4258#endif
4259 Syntax error
4260_ACEOF
4261if ac_fn_cxx_try_cpp "$LINENO"; then :
4262
4263else
4264 # Broken: fails on valid input.
4265continue
4266fi
4267rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h. */
4273#include <ac_nonexistent.h>
4274_ACEOF
4275if ac_fn_cxx_try_cpp "$LINENO"; then :
4276 # Broken: success on invalid input.
4277continue
4278else
4279 # Passes both tests.
4280ac_preproc_ok=:
4281break
4282fi
4283rm -f conftest.err conftest.i conftest.$ac_ext
4284
4285done
4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287rm -f conftest.i conftest.err conftest.$ac_ext
4288if $ac_preproc_ok; then :
4289
4290else
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4294See \`config.log' for more details" "$LINENO" 5; }
4295fi
4296
4297ac_ext=cpp
4298ac_cpp='$CXXCPP $CPPFLAGS'
4299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302
4303
4304
4305
4306# Check whether --with-compiler-vendor was given.
4307if test "${with_compiler_vendor+set}" = set; then :
4308 withval=$with_compiler_vendor;
4309fi
4310
4311
4312
4313 if test "${with_compiler_vendor:-no}" = "no"; then
4314 ac_ext=cpp
4315ac_cpp='$CXXCPP $CPPFLAGS'
4316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4319
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h. */
4322#ifndef __GNUG__
4323 # error "Macro __GNUG__ is undefined!"
4324 /* For some compilers (eg. SGI's CC), #error is not
4325 enough... */
4326 please, do fail
4327 #endif
4328int
4329main ()
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336if ac_fn_cxx_try_compile "$LINENO"; then :
4337 ac_cv_cxx_compiler_vendor=gnu
4338else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h. */
4341#ifndef __INTEL_COMPILER
4342 # error "Macro __INTEL_COMPILER is undefined!"
4343 /* For some compilers (eg. SGI's CC), #error is not
4344 enough... */
4345 please, do fail
4346 #endif
4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355if ac_fn_cxx_try_compile "$LINENO"; then :
4356 ac_cv_cxx_compiler_vendor=intel
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h. */
4359#ifndef _M_IX86
4360 # error "Macro _M_IX86 is undefined!"
4361 /* For some compilers (eg. SGI's CC), #error is not
4362 enough... */
4363 please, do fail
4364 #endif
4365int
4366main ()
4367{
4368
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373if ac_fn_cxx_try_compile "$LINENO"; then :
4374 ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4375fi
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h. */
4379#ifndef _M_IA64
4380 # error "Macro _M_IA64 is undefined!"
4381 /* For some compilers (eg. SGI's CC), #error is not
4382 enough... */
4383 please, do fail
4384 #endif
4385int
4386main ()
4387{
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393if ac_fn_cxx_try_compile "$LINENO"; then :
4394 ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4395fi
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
4399#ifndef _M_X64
4400 # error "Macro _M_X64 is undefined!"
4401 /* For some compilers (eg. SGI's CC), #error is not
4402 enough... */
4403 please, do fail
4404 #endif
4405int
4406main ()
4407{
4408
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413if ac_fn_cxx_try_compile "$LINENO"; then :
4414 ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417else
4418 ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h. */
4426#ifndef _MSC_VER
4427 # error "Macro _MSC_VER is undefined!"
4428 /* For some compilers (eg. SGI's CC), #error is not
4429 enough... */
4430 please, do fail
4431 #endif
4432int
4433main ()
4434{
4435
4436 ;
4437 return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"; then :
4441 ac_cv_cxx_compiler_vendor=microsoft
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444#ifndef _M_IX86
4445 # error "Macro _M_IX86 is undefined!"
4446 /* For some compilers (eg. SGI's CC), #error is not
4447 enough... */
4448 please, do fail
4449 #endif
4450int
4451main ()
4452{
4453
4454 ;
4455 return 0;
4456}
4457_ACEOF
4458if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4460fi
4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#ifndef _M_IA64
4465 # error "Macro _M_IA64 is undefined!"
4466 /* For some compilers (eg. SGI's CC), #error is not
4467 enough... */
4468 please, do fail
4469 #endif
4470int
4471main ()
4472{
4473
4474 ;
4475 return 0;
4476}
4477_ACEOF
4478if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4480fi
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h. */
4484#ifndef _M_X64
4485 # error "Macro _M_X64 is undefined!"
4486 /* For some compilers (eg. SGI's CC), #error is not
4487 enough... */
4488 please, do fail
4489 #endif
4490int
4491main ()
4492{
4493
4494 ;
4495 return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4500fi
4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502else
4503 ac_cv_cxx_compiler_vendor=unknown
4504fi
4505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_ext=cpp
4507ac_cpp='$CXXCPP $CPPFLAGS'
4508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514fi
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516
4517 ac_ext=cpp
4518ac_cpp='$CXXCPP $CPPFLAGS'
4519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4522
4523 else
4524 ac_cv_cxx_compiler_vendor=${with_compiler_vendor}
4525 fi
4526 ac_gecode_compiler_vendor="$ac_cv_cxx_compiler_vendor"
4527case $ac_gecode_compiler_vendor in
4528gnu)
4529
4530 ac_ext=c
4531ac_cpp='$CPP $CPPFLAGS'
4532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4540 #error Version too old
4541 really, the version is too old
4542 #endif
4543int
4544main ()
4545{
4546
4547 ;
4548 return 0;
4549}
4550_ACEOF
4551if ac_fn_c_try_compile "$LINENO"; then :
4552
4553else
4554 as_fn_error $? "Your version of gcc is too old. You need at least version 4.2." "$LINENO" 5
4555
4556fi
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 ac_ext=cpp
4559ac_cpp='$CXXCPP $CPPFLAGS'
4560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563
4564 ac_ext=cpp
4565ac_cpp='$CXXCPP $CPPFLAGS'
4566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4569
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
4572
4573 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4574 #error Version too old
4575 really, the version is too old
4576 #endif
4577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585if ac_fn_cxx_try_compile "$LINENO"; then :
4586
4587else
4588 as_fn_error $? "Your version of g++ is too old. You need at least version 4.2." "$LINENO" 5
4589
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 ac_ext=cpp
4593ac_cpp='$CXXCPP $CPPFLAGS'
4594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597
4598
4599 ;;
4600intel)
4601 ;;
4602microsoft)
4603
4604 ac_ext=c
4605ac_cpp='$CPP $CPPFLAGS'
4606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612
4613 #if _MSC_VER < 1800
4614 #error Version too old
4615 really, the version is too old
4616 #endif
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625if ac_fn_cxx_try_compile "$LINENO"; then :
4626
4627else
4628 as_fn_error $? "Your version of cl is too old. You need at least Microsoft Visual C++ 2013." "$LINENO" 5
4629 ac_ext=cpp
4630ac_cpp='$CXXCPP $CPPFLAGS'
4631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4634
4635
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638
4639 ;;
4640*)
4641 ;;
4642esac
4643
4644
4645 # Check whether --enable-resource was given.
4646if test "${enable_resource+set}" = set; then :
4647 enableval=$enable_resource;
4648fi
4649
4650 # Extract the first word of "rc.exe", so it can be a program name with args.
4651set dummy rc.exe; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
4654if ${ac_cv_prog_HAVE_RC+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$HAVE_RC"; then
4658 ac_cv_prog_HAVE_RC="$HAVE_RC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_HAVE_RC="found"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672 done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677HAVE_RC=$ac_cv_prog_HAVE_RC
4678if test -n "$HAVE_RC"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RC" >&5
4680$as_echo "$HAVE_RC" >&6; }
4681else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Visual Studio resource files" >&5
4688$as_echo_n "checking whether to build with Visual Studio resource files... " >&6; }
4689 if test "${enable_resource:-no}" = "yes" -a \
4690 "${ac_gecode_compiler_vendor}" = "microsoft"; then
4691 if test "${HAVE_RC}x" = "x"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694 RESCOMP=@true
4695
4696 enable_resource=no
4697
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700$as_echo "yes" >&6; }
4701 RESCOMP="rc.exe"
4702
4703 enable_resource=yes
4704
4705 fi
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }
4709 enable_resource=no
4710
4711 RESCOMP=@true
4712
4713 fi
4714
4715
4716ac_ext=cpp
4717ac_cpp='$CXXCPP $CPPFLAGS'
4718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4721
4722
4723
4724# Check whether --with-sdk was given.
4725if test "${with_sdk+set}" = set; then :
4726 withval=$with_sdk;
4727fi
4728
4729 if test "${host_os}" = "darwin"; then
4730 if test "${with_sdk:-no}" != "no"; then
4731
4732 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4734$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4735 if ${CXX} -isysroot ${with_sdk} 2>&1 | grep "ignoring unknown option" -q; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738 :
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4741$as_echo "yes" >&6; }
4742
4743 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4744 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4745 fi
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4748$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4749 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4750 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4751 ac_ext=cpp
4752ac_cpp='$CXXCPP $CPPFLAGS'
4753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4756
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768if ac_fn_cxx_try_compile "$LINENO"; then :
4769 if grep -q "unrecognized\|argument unused" conftest.err; then
4770 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773 :
4774 else
4775 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777$as_echo "yes" >&6; }
4778
4779 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4780 fi
4781
4782else
4783 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786 :
4787fi
4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_ext=cpp
4790ac_cpp='$CXXCPP $CPPFLAGS'
4791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -isysroot ${with_sdk}" >&5
4797$as_echo_n "checking whether ${CC} accepts -isysroot ${with_sdk}... " >&6; }
4798 ac_gecode_save_CFLAGS="${CFLAGS}"
4799 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS} -Werror"
4800 ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812
4813 ;
4814 return 0;
4815}
4816_ACEOF
4817if ac_fn_c_try_compile "$LINENO"; then :
4818 if grep -q "unrecognized\|argument unused" conftest.err; then
4819 CFLAGS="${ac_gecode_save_CFLAGS}"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
4822 :
4823 else
4824 CFLAGS="${ac_gecode_save_CFLAGS}"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826$as_echo "yes" >&6; }
4827
4828 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4829 fi
4830
4831else
4832 CFLAGS="${ac_gecode_save_CFLAGS}"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834$as_echo "no" >&6; }
4835 :
4836fi
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 ac_ext=cpp
4839ac_cpp='$CXXCPP $CPPFLAGS'
4840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4843
4844 fi
4845 DLLFLAGS="-Wl,-syslibroot,${with_sdk}${DLLFLAGS:+ }${DLLFLAGS}"
4846 fi
4847 fi
4848
4849# Check whether --with-macosx-version-min was given.
4850if test "${with_macosx_version_min+set}" = set; then :
4851 withval=$with_macosx_version_min;
4852fi
4853
4854 if test "${host_os}" = "darwin"; then
4855 if test "${with_macosx_version_min:-no}" != "no"; then
4856
4857 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4859$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4860 if ${CXX} -mmacosx-version-min=${with_macosx_version_min} 2>&1 | grep "ignoring unknown option" -q; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862$as_echo "no" >&6; }
4863 :
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4866$as_echo "yes" >&6; }
4867
4868 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4869 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4870 fi
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4873$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4874 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4875 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4876 ac_ext=cpp
4877ac_cpp='$CXXCPP $CPPFLAGS'
4878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4881
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h. */
4884
4885int
4886main ()
4887{
4888
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893if ac_fn_cxx_try_compile "$LINENO"; then :
4894 if grep -q "unrecognized\|argument unused" conftest.err; then
4895 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898 :
4899 else
4900 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902$as_echo "yes" >&6; }
4903
4904 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4905 fi
4906
4907else
4908 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
4911 :
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 ac_ext=cpp
4915ac_cpp='$CXXCPP $CPPFLAGS'
4916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4922$as_echo_n "checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4923 ac_gecode_save_CFLAGS="${CFLAGS}"
4924 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS} -Werror"
4925 ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h. */
4933
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
4942if ac_fn_c_try_compile "$LINENO"; then :
4943 if grep -q "unrecognized\|argument unused" conftest.err; then
4944 CFLAGS="${ac_gecode_save_CFLAGS}"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947 :
4948 else
4949 CFLAGS="${ac_gecode_save_CFLAGS}"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951$as_echo "yes" >&6; }
4952
4953 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4954 fi
4955
4956else
4957 CFLAGS="${ac_gecode_save_CFLAGS}"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959$as_echo "no" >&6; }
4960 :
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_ext=cpp
4964ac_cpp='$CXXCPP $CPPFLAGS'
4965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968
4969 fi
4970 DLLFLAGS="-mmacosx-version-min=${with_macosx_version_min}${DLLFLAGS:+ }${DLLFLAGS}"
4971 fi
4972 fi
4973
4974# Check whether --with-architectures was given.
4975if test "${with_architectures+set}" = set; then :
4976 withval=$with_architectures;
4977fi
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build for different architectures" >&5
4980$as_echo_n "checking Whether to build for different architectures... " >&6; }
4981 if test "${host_os}" = "darwin"; then
4982 if test "${with_architectures:-no}" != "no"; then
4983 archflags="";
4984 for a in `echo ${with_architectures} | sed -e "s/,/ /g"`; do
4985 archflags="${archflags} -arch $a";
4986 done
4987
4988 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
4990$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
4991 if ${CXX} ${archflags} 2>&1 | grep "ignoring unknown option" -q; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993$as_echo "no" >&6; }
4994 :
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997$as_echo "yes" >&6; }
4998
4999 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
5000 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
5001 fi
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
5004$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
5005 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5006 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5007 ac_ext=cpp
5008ac_cpp='$CXXCPP $CPPFLAGS'
5009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h. */
5015
5016int
5017main ()
5018{
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
5024if ac_fn_cxx_try_compile "$LINENO"; then :
5025 if grep -q "unrecognized\|argument unused" conftest.err; then
5026 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029 :
5030 else
5031 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033$as_echo "yes" >&6; }
5034
5035 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
5036 fi
5037
5038else
5039 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042 :
5043fi
5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_ext=cpp
5046ac_cpp='$CXXCPP $CPPFLAGS'
5047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${archflags}" >&5
5053$as_echo_n "checking whether ${CC} accepts ${archflags}... " >&6; }
5054 ac_gecode_save_CFLAGS="${CFLAGS}"
5055 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS} -Werror"
5056 ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h. */
5064
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073if ac_fn_c_try_compile "$LINENO"; then :
5074 if grep -q "unrecognized\|argument unused" conftest.err; then
5075 CFLAGS="${ac_gecode_save_CFLAGS}"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078 :
5079 else
5080 CFLAGS="${ac_gecode_save_CFLAGS}"
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082$as_echo "yes" >&6; }
5083
5084 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
5085 fi
5086
5087else
5088 CFLAGS="${ac_gecode_save_CFLAGS}"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091 :
5092fi
5093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_ext=cpp
5095ac_cpp='$CXXCPP $CPPFLAGS'
5096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099
5100 fi
5101 DLLFLAGS="${archflags}${DLLFLAGS:+ }${DLLFLAGS}"
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103$as_echo "yes" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106$as_echo "no" >&6; }
5107 fi
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111 fi
5112
5113
5114
5115
5116# Check whether --with-lib-prefix was given.
5117if test "${with_lib_prefix+set}" = set; then :
5118 withval=$with_lib_prefix;
5119fi
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name prefix" >&5
5122$as_echo_n "checking for user-defined library name prefix... " >&6; }
5123 if test "x${with_lib_prefix}" != "x"; then
5124 ac_gecode_userprefix=${with_lib_prefix}
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_prefix}" >&5
5126$as_echo "${with_lib_prefix}" >&6; }
5127 else
5128 ac_gecode_userprefix=
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131 fi
5132
5133cat >>confdefs.h <<_ACEOF
5134#define GECODE_DLL_USERPREFIX "${ac_gecode_userprefix}"
5135_ACEOF
5136
5137
5138# Check whether --with-lib-suffix was given.
5139if test "${with_lib_suffix+set}" = set; then :
5140 withval=$with_lib_suffix;
5141fi
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name suffix" >&5
5144$as_echo_n "checking for user-defined library name suffix... " >&6; }
5145 if test "x${with_lib_suffix}" != "x"; then
5146 ac_gecode_usersuffix=${with_lib_suffix}
5147 USERSUFFIX=${with_lib_suffix}
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_suffix}" >&5
5150$as_echo "${with_lib_suffix}" >&6; }
5151 else
5152 ac_gecode_usersuffix=
5153 USERSUFFIX=""
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157 fi
5158
5159cat >>confdefs.h <<_ACEOF
5160#define GECODE_DLL_USERSUFFIX "${ac_gecode_usersuffix}"
5161_ACEOF
5162
5163
5164
5165 # Check whether --enable-framework was given.
5166if test "${enable_framework+set}" = set; then :
5167 enableval=$enable_framework;
5168fi
5169
5170 if test "${host_os}" = "darwin"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build framework bundle on Mac OS X" >&5
5172$as_echo_n "checking whether to build framework bundle on Mac OS X... " >&6; }
5173 if test "${enable_framework:-no}" = "yes"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175$as_echo "yes" >&6; }
5176 BUILD_MACOS_FRAMEWORK="yes"
5177
5178 enable_static="yes";
5179 enable_shared="no";
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183 BUILD_MACOS_FRAMEWORK="no"
5184
5185 fi
5186 fi
5187
5188
5189if test "${host_os}" = "windows" -a \
5190 "${ac_gecode_compiler_vendor}" = "gnu"; then
5191 enable_static="yes"
5192 enable_shared="no"
5193 fi
5194 # Check whether --enable-static was given.
5195if test "${enable_static+set}" = set; then :
5196 enableval=$enable_static;
5197fi
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5200$as_echo_n "checking whether to build static libraries... " >&6; }
5201 if test "${enable_static:-no}" = "yes"; then
5202
5203$as_echo "#define GECODE_STATIC_LIBS /**/" >>confdefs.h
5204
5205 BUILDSTATIC="yes"
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208$as_echo "yes" >&6; }
5209 enable_shared=no
5210 else
5211 BUILDSTATIC="no"
5212
5213 enable_shared=yes
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216 fi
5217 # Check whether --enable-shared was given.
5218if test "${enable_shared+set}" = set; then :
5219 enableval=$enable_shared;
5220fi
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5223$as_echo_n "checking whether to build shared libraries... " >&6; }
5224 if test "${enable_shared:-yes}" = "yes"; then
5225 BUILDDLL="yes"
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228$as_echo "yes" >&6; }
5229 else
5230 BUILDDLL="no"
5231
5232 if test "${enable_static:-no}" = "no"; then
5233 as_fn_error $? "One of --enable-static or --enable-shared must be given" "$LINENO" 5
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237 fi
5238
5239
5240# Check whether --enable-debug was given.
5241if test "${enable_debug+set}" = set; then :
5242 enableval=$enable_debug;
5243fi
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with debug symbols and assertions" >&5
5246$as_echo_n "checking whether to build with debug symbols and assertions... " >&6; }
5247 if test "${enable_debug:-no}" = "yes"; then
5248 ac_gecode_library_architecture="-d${ac_gecode_library_architecture}"
5249 DEBUG_BUILD=yes
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252$as_echo "yes" >&6; }
5253 else
5254 ac_gecode_library_architecture="-r${ac_gecode_library_architecture}"
5255 DEBUG_BUILD=no
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259 CFLAGS="-DNDEBUG${CFLAGS:+ }${CFLAGS}"
5260 CXXFLAGS="-DNDEBUG${CXXFLAGS:+ }${CXXFLAGS}"
5261 fi
5262
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5265$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5266if ${ac_cv_path_GREP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268else
5269 if test -z "$GREP"; then
5270 ac_path_GREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in grep ggrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p "$ac_path_GREP" || continue
5281# Check for GNU ac_path_GREP and select it if it is found.
5282 # Check for GNU $ac_path_GREP
5283case `"$ac_path_GREP" --version 2>&1` in
5284*GNU*)
5285 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5286*)
5287 ac_count=0
5288 $as_echo_n 0123456789 >"conftest.in"
5289 while :
5290 do
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'GREP' >> "conftest.nl"
5295 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_GREP="$ac_path_GREP"
5301 ac_path_GREP_max=$ac_count
5302 fi
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307esac
5308
5309 $ac_path_GREP_found && break 3
5310 done
5311 done
5312 done
5313IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_GREP"; then
5315 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 fi
5317else
5318 ac_cv_path_GREP=$GREP
5319fi
5320
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5323$as_echo "$ac_cv_path_GREP" >&6; }
5324 GREP="$ac_cv_path_GREP"
5325
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5328$as_echo_n "checking for egrep... " >&6; }
5329if ${ac_cv_path_EGREP+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331else
5332 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5333 then ac_cv_path_EGREP="$GREP -E"
5334 else
5335 if test -z "$EGREP"; then
5336 ac_path_EGREP_found=false
5337 # Loop through the user's path and test for each of PROGNAME-LIST
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_prog in egrep; do
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5346 as_fn_executable_p "$ac_path_EGREP" || continue
5347# Check for GNU ac_path_EGREP and select it if it is found.
5348 # Check for GNU $ac_path_EGREP
5349case `"$ac_path_EGREP" --version 2>&1` in
5350*GNU*)
5351 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5352*)
5353 ac_count=0
5354 $as_echo_n 0123456789 >"conftest.in"
5355 while :
5356 do
5357 cat "conftest.in" "conftest.in" >"conftest.tmp"
5358 mv "conftest.tmp" "conftest.in"
5359 cp "conftest.in" "conftest.nl"
5360 $as_echo 'EGREP' >> "conftest.nl"
5361 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5363 as_fn_arith $ac_count + 1 && ac_count=$as_val
5364 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5365 # Best one so far, save it but keep looking for a better one
5366 ac_cv_path_EGREP="$ac_path_EGREP"
5367 ac_path_EGREP_max=$ac_count
5368 fi
5369 # 10*(2^10) chars as input seems more than enough
5370 test $ac_count -gt 10 && break
5371 done
5372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5373esac
5374
5375 $ac_path_EGREP_found && break 3
5376 done
5377 done
5378 done
5379IFS=$as_save_IFS
5380 if test -z "$ac_cv_path_EGREP"; then
5381 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5382 fi
5383else
5384 ac_cv_path_EGREP=$EGREP
5385fi
5386
5387 fi
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5390$as_echo "$ac_cv_path_EGREP" >&6; }
5391 EGREP="$ac_cv_path_EGREP"
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5395$as_echo_n "checking for ANSI C header files... " >&6; }
5396if ${ac_cv_header_stdc+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h. */
5401#include <stdlib.h>
5402#include <stdarg.h>
5403#include <string.h>
5404#include <float.h>
5405
5406int
5407main ()
5408{
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414if ac_fn_cxx_try_compile "$LINENO"; then :
5415 ac_cv_header_stdc=yes
5416else
5417 ac_cv_header_stdc=no
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420
5421if test $ac_cv_header_stdc = yes; then
5422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h. */
5425#include <string.h>
5426
5427_ACEOF
5428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "memchr" >/dev/null 2>&1; then :
5430
5431else
5432 ac_cv_header_stdc=no
5433fi
5434rm -f conftest*
5435
5436fi
5437
5438if test $ac_cv_header_stdc = yes; then
5439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h. */
5442#include <stdlib.h>
5443
5444_ACEOF
5445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5446 $EGREP "free" >/dev/null 2>&1; then :
5447
5448else
5449 ac_cv_header_stdc=no
5450fi
5451rm -f conftest*
5452
5453fi
5454
5455if test $ac_cv_header_stdc = yes; then
5456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5457 if test "$cross_compiling" = yes; then :
5458 :
5459else
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <ctype.h>
5463#include <stdlib.h>
5464#if ((' ' & 0x0FF) == 0x020)
5465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5467#else
5468# define ISLOWER(c) \
5469 (('a' <= (c) && (c) <= 'i') \
5470 || ('j' <= (c) && (c) <= 'r') \
5471 || ('s' <= (c) && (c) <= 'z'))
5472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5473#endif
5474
5475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5476int
5477main ()
5478{
5479 int i;
5480 for (i = 0; i < 256; i++)
5481 if (XOR (islower (i), ISLOWER (i))
5482 || toupper (i) != TOUPPER (i))
5483 return 2;
5484 return 0;
5485}
5486_ACEOF
5487if ac_fn_cxx_try_run "$LINENO"; then :
5488
5489else
5490 ac_cv_header_stdc=no
5491fi
5492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493 conftest.$ac_objext conftest.beam conftest.$ac_ext
5494fi
5495
5496fi
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5499$as_echo "$ac_cv_header_stdc" >&6; }
5500if test $ac_cv_header_stdc = yes; then
5501
5502$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5503
5504fi
5505
5506# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5508 inttypes.h stdint.h unistd.h
5509do :
5510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5511ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5512"
5513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5514 cat >>confdefs.h <<_ACEOF
5515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516_ACEOF
5517
5518fi
5519
5520done
5521
5522
5523# Check whether --enable-peakheap was given.
5524if test "${enable_peakheap+set}" = set; then :
5525 enableval=$enable_peakheap;
5526fi
5527
5528 if test "${enable_peakheap:-no}" = "yes"; then
5529 ac_fn_cxx_check_func "$LINENO" "_msize" "ac_cv_func__msize"
5530if test "x$ac_cv_func__msize" = xyes; then :
5531
5532
5533$as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5534
5535
5536$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5537
5538
5539$as_echo "#define GECODE_MSIZE _msize" >>confdefs.h
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5542$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544$as_echo "yes" >&6; }
5545
5546else
5547
5548 for ac_header in malloc/malloc.h
5549do :
5550 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5551if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
5552 cat >>confdefs.h <<_ACEOF
5553#define HAVE_MALLOC_MALLOC_H 1
5554_ACEOF
5555
5556 ac_fn_cxx_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
5557if test "x$ac_cv_func_malloc_size" = xyes; then :
5558
5559 $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5560
5561
5562$as_echo "#define GECODE_PEAKHEAP_MALLOC_MALLOC_H /**/" >>confdefs.h
5563
5564 $as_echo "#define GECODE_MSIZE malloc_size" >>confdefs.h
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5567$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569$as_echo "yes" >&6; }
5570
5571else
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5574$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577
5578fi
5579
5580
5581else
5582
5583 for ac_header in malloc.h
5584do :
5585 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5586if test "x$ac_cv_header_malloc_h" = xyes; then :
5587 cat >>confdefs.h <<_ACEOF
5588#define HAVE_MALLOC_H 1
5589_ACEOF
5590
5591 ac_fn_cxx_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
5592if test "x$ac_cv_func_malloc_usable_size" = xyes; then :
5593
5594 $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5595
5596
5597$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5598
5599 $as_echo "#define GECODE_MSIZE malloc_usable_size" >>confdefs.h
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5602$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5604$as_echo "yes" >&6; }
5605
5606else
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5609$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612
5613fi
5614
5615
5616else
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5619$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622
5623fi
5624
5625done
5626
5627
5628
5629fi
5630
5631done
5632
5633
5634fi
5635
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5638$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641 fi
5642
5643# Check whether --enable-small-codesize was given.
5644if test "${enable_small_codesize+set}" = set; then :
5645 enableval=$enable_small_codesize;
5646fi
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize for code size" >&5
5649$as_echo_n "checking whether to optimize for code size... " >&6; }
5650 if test "${enable_debug:-no}" = "yes"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in debug builds" >&5
5652$as_echo "not in debug builds" >&6; }
5653 elif test "${enable_small_codesize:-no}" = "yes"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655$as_echo "yes" >&6; }
5656 case $host_os in
5657 darwin*)
5658 ac_gecode_gcc_optimize_flag=-Oz
5659 ;;
5660 *)
5661 ac_gecode_gcc_optimize_flag=-Os
5662 ac_gecode_cl_optimize_flag=-O1
5663 ;;
5664 esac
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
5668 ac_gecode_gcc_optimize_flag=-O3
5669 ac_gecode_cl_optimize_flag=-O2
5670 fi
5671
5672# Check whether --enable-leak-debug was given.
5673if test "${enable_leak_debug+set}" = set; then :
5674 enableval=$enable_leak_debug;
5675fi
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for finding memory leaks" >&5
5678$as_echo_n "checking whether to build with support for finding memory leaks... " >&6; }
5679 if test "${enable_leak_debug:-no}" = "yes"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681$as_echo "yes" >&6; }
5682 ac_fn_cxx_check_decl "$LINENO" "mtrace" "ac_cv_have_decl_mtrace" "#include <mcheck.h>
5683"
5684if test "x$ac_cv_have_decl_mtrace" = xyes; then :
5685
5686$as_echo "#define GECODE_HAS_MTRACE /**/" >>confdefs.h
5687
5688else
5689 as_fn_error $? "mtrace not available." "$LINENO" 5
5690fi
5691
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695 fi
5696
5697# Check whether --enable-allocator was given.
5698if test "${enable_allocator+set}" = set; then :
5699 enableval=$enable_allocator;
5700fi
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with default memory allocator" >&5
5703$as_echo_n "checking whether to build with default memory allocator... " >&6; }
5704 if test "${enable_allocator:-yes}" = "yes"; then
5705
5706$as_echo "#define GECODE_ALLOCATOR /**/" >>confdefs.h
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709$as_echo "yes" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713 fi
5714
5715# Check whether --enable-audit was given.
5716if test "${enable_audit+set}" = set; then :
5717 enableval=$enable_audit;
5718fi
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with auditing code" >&5
5721$as_echo_n "checking whether to build with auditing code... " >&6; }
5722 if test "${enable_audit:-no}" = "yes"; then
5723
5724$as_echo "#define GECODE_AUDIT /**/" >>confdefs.h
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5727$as_echo "yes" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731 fi
5732
5733# Check whether --enable-profile was given.
5734if test "${enable_profile+set}" = set; then :
5735 enableval=$enable_profile;
5736fi
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with profiling information" >&5
5739$as_echo_n "checking whether to build with profiling information... " >&6; }
5740 if test "${enable_profile:-no}" = "yes"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742$as_echo "yes" >&6; }
5743 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5745$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5746 if ${CXX} -pg 2>&1 | grep "ignoring unknown option" -q; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749
5750 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5752$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5753 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756 :
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759$as_echo "yes" >&6; }
5760
5761 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5762 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5763 fi
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5766$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5767 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5768 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5769 ac_ext=cpp
5770ac_cpp='$CXXCPP $CPPFLAGS'
5771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5774
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h. */
5777
5778int
5779main ()
5780{
5781
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786if ac_fn_cxx_try_compile "$LINENO"; then :
5787 if grep -q "unrecognized\|argument unused" conftest.err; then
5788 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791 :
5792 else
5793 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795$as_echo "yes" >&6; }
5796
5797 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5798 fi
5799
5800else
5801 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804 :
5805fi
5806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_ext=cpp
5808ac_cpp='$CXXCPP $CPPFLAGS'
5809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5815$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5816 ac_gecode_save_CFLAGS="${CFLAGS}"
5817 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5818 ac_ext=c
5819ac_cpp='$CPP $CPPFLAGS'
5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h. */
5826
5827int
5828main ()
5829{
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836 if grep -q "unrecognized\|argument unused" conftest.err; then
5837 CFLAGS="${ac_gecode_save_CFLAGS}"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840 :
5841 else
5842 CFLAGS="${ac_gecode_save_CFLAGS}"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844$as_echo "yes" >&6; }
5845
5846 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5847 fi
5848
5849else
5850 CFLAGS="${ac_gecode_save_CFLAGS}"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853 :
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 ac_ext=cpp
5857ac_cpp='$CXXCPP $CPPFLAGS'
5858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5861
5862 fi
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865$as_echo "yes" >&6; }
5866
5867 CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
5868 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
5869 fi
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5872$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5873 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5874 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5875 ac_ext=cpp
5876ac_cpp='$CXXCPP $CPPFLAGS'
5877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h. */
5883
5884int
5885main ()
5886{
5887
5888 ;
5889 return 0;
5890}
5891_ACEOF
5892if ac_fn_cxx_try_compile "$LINENO"; then :
5893 if grep -q "unrecognized\|argument unused" conftest.err; then
5894 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897
5898 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5900$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5901 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904 :
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5907$as_echo "yes" >&6; }
5908
5909 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5910 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5911 fi
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5914$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5915 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5916 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5917 ac_ext=cpp
5918ac_cpp='$CXXCPP $CPPFLAGS'
5919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5922
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
5925
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934if ac_fn_cxx_try_compile "$LINENO"; then :
5935 if grep -q "unrecognized\|argument unused" conftest.err; then
5936 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939 :
5940 else
5941 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943$as_echo "yes" >&6; }
5944
5945 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5946 fi
5947
5948else
5949 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952 :
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 ac_ext=cpp
5956ac_cpp='$CXXCPP $CPPFLAGS'
5957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5963$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5964 ac_gecode_save_CFLAGS="${CFLAGS}"
5965 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5966 ac_ext=c
5967ac_cpp='$CPP $CPPFLAGS'
5968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h. */
5974
5975int
5976main ()
5977{
5978
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984 if grep -q "unrecognized\|argument unused" conftest.err; then
5985 CFLAGS="${ac_gecode_save_CFLAGS}"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988 :
5989 else
5990 CFLAGS="${ac_gecode_save_CFLAGS}"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5992$as_echo "yes" >&6; }
5993
5994 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5995 fi
5996
5997else
5998 CFLAGS="${ac_gecode_save_CFLAGS}"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001 :
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 ac_ext=cpp
6005ac_cpp='$CXXCPP $CPPFLAGS'
6006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6009
6010 fi
6011 else
6012 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6014$as_echo "yes" >&6; }
6015
6016 CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
6017 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
6018 fi
6019
6020else
6021 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
6024
6025 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6027$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6028 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
6031 :
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6034$as_echo "yes" >&6; }
6035
6036 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6037 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6038 fi
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6041$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6042 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6043 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6044 ac_ext=cpp
6045ac_cpp='$CXXCPP $CPPFLAGS'
6046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6049
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052
6053int
6054main ()
6055{
6056
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061if ac_fn_cxx_try_compile "$LINENO"; then :
6062 if grep -q "unrecognized\|argument unused" conftest.err; then
6063 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066 :
6067 else
6068 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070$as_echo "yes" >&6; }
6071
6072 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6073 fi
6074
6075else
6076 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078$as_echo "no" >&6; }
6079 :
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_ext=cpp
6083ac_cpp='$CXXCPP $CPPFLAGS'
6084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6087
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
6090$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
6091 ac_gecode_save_CFLAGS="${CFLAGS}"
6092 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
6093 ac_ext=c
6094ac_cpp='$CPP $CPPFLAGS'
6095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h. */
6101
6102int
6103main ()
6104{
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_compile "$LINENO"; then :
6111 if grep -q "unrecognized\|argument unused" conftest.err; then
6112 CFLAGS="${ac_gecode_save_CFLAGS}"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115 :
6116 else
6117 CFLAGS="${ac_gecode_save_CFLAGS}"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6119$as_echo "yes" >&6; }
6120
6121 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6122 fi
6123
6124else
6125 CFLAGS="${ac_gecode_save_CFLAGS}"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127$as_echo "no" >&6; }
6128 :
6129fi
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 ac_ext=cpp
6132ac_cpp='$CXXCPP $CPPFLAGS'
6133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6136
6137 fi
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 ac_ext=cpp
6141ac_cpp='$CXXCPP $CPPFLAGS'
6142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145
6146 fi
6147
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
6151 fi
6152
6153# Check whether --enable-gcov was given.
6154if test "${enable_gcov+set}" = set; then :
6155 enableval=$enable_gcov;
6156fi
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov support" >&5
6159$as_echo_n "checking whether to build with gcov support... " >&6; }
6160 if test "${enable_gcov:-no}" = "yes"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6162$as_echo "yes" >&6; }
6163
6164 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6166$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6167 if ${CXX} -fprofile-arcs 2>&1 | grep "ignoring unknown option" -q; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170 :
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6173$as_echo "yes" >&6; }
6174
6175 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6176 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6177 fi
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6180$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6181 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6182 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6183 ac_ext=cpp
6184ac_cpp='$CXXCPP $CPPFLAGS'
6185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6188
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h. */
6191
6192int
6193main ()
6194{
6195
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200if ac_fn_cxx_try_compile "$LINENO"; then :
6201 if grep -q "unrecognized\|argument unused" conftest.err; then
6202 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205 :
6206 else
6207 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209$as_echo "yes" >&6; }
6210
6211 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6212 fi
6213
6214else
6215 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218 :
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 ac_ext=cpp
6222ac_cpp='$CXXCPP $CPPFLAGS'
6223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6226
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fprofile-arcs" >&5
6229$as_echo_n "checking whether ${CC} accepts -fprofile-arcs... " >&6; }
6230 ac_gecode_save_CFLAGS="${CFLAGS}"
6231 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS} -Werror"
6232 ac_ext=c
6233ac_cpp='$CPP $CPPFLAGS'
6234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h. */
6240
6241int
6242main ()
6243{
6244
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249if ac_fn_c_try_compile "$LINENO"; then :
6250 if grep -q "unrecognized\|argument unused" conftest.err; then
6251 CFLAGS="${ac_gecode_save_CFLAGS}"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254 :
6255 else
6256 CFLAGS="${ac_gecode_save_CFLAGS}"
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258$as_echo "yes" >&6; }
6259
6260 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6261 fi
6262
6263else
6264 CFLAGS="${ac_gecode_save_CFLAGS}"
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267 :
6268fi
6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 ac_ext=cpp
6271ac_cpp='$CXXCPP $CPPFLAGS'
6272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6275
6276 fi
6277
6278 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6280$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6281 if ${CXX} -ftest-coverage 2>&1 | grep "ignoring unknown option" -q; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
6284 :
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287$as_echo "yes" >&6; }
6288
6289 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6290 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6291 fi
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6294$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6295 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6296 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6297 ac_ext=cpp
6298ac_cpp='$CXXCPP $CPPFLAGS'
6299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6302
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h. */
6305
6306int
6307main ()
6308{
6309
6310 ;
6311 return 0;
6312}
6313_ACEOF
6314if ac_fn_cxx_try_compile "$LINENO"; then :
6315 if grep -q "unrecognized\|argument unused" conftest.err; then
6316 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319 :
6320 else
6321 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6323$as_echo "yes" >&6; }
6324
6325 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6326 fi
6327
6328else
6329 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332 :
6333fi
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 ac_ext=cpp
6336ac_cpp='$CXXCPP $CPPFLAGS'
6337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ftest-coverage" >&5
6343$as_echo_n "checking whether ${CC} accepts -ftest-coverage... " >&6; }
6344 ac_gecode_save_CFLAGS="${CFLAGS}"
6345 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS} -Werror"
6346 ac_ext=c
6347ac_cpp='$CPP $CPPFLAGS'
6348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h. */
6354
6355int
6356main ()
6357{
6358
6359 ;
6360 return 0;
6361}
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"; then :
6364 if grep -q "unrecognized\|argument unused" conftest.err; then
6365 CFLAGS="${ac_gecode_save_CFLAGS}"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368 :
6369 else
6370 CFLAGS="${ac_gecode_save_CFLAGS}"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372$as_echo "yes" >&6; }
6373
6374 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6375 fi
6376
6377else
6378 CFLAGS="${ac_gecode_save_CFLAGS}"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381 :
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 ac_ext=cpp
6385ac_cpp='$CXXCPP $CPPFLAGS'
6386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6389
6390 fi
6391 DLLFLAGS=""-fprofile-arcs"${DLLFLAGS:+ }${DLLFLAGS}"
6392 DLLFLAGS=""-ftest-coverage"${DLLFLAGS:+ }${DLLFLAGS}"
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395$as_echo "no" >&6; }
6396 fi
6397
6398ac_ext=c
6399ac_cpp='$CPP $CPPFLAGS'
6400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404 # The cast to long int works around a bug in the HP C Compiler
6405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6407# This bug is HP SR number 8606223364.
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6409$as_echo_n "checking size of int... " >&6; }
6410if ${ac_cv_sizeof_int+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412else
6413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6414
6415else
6416 if test "$ac_cv_type_int" = yes; then
6417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6419as_fn_error 77 "cannot compute sizeof (int)
6420See \`config.log' for more details" "$LINENO" 5; }
6421 else
6422 ac_cv_sizeof_int=0
6423 fi
6424fi
6425
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6428$as_echo "$ac_cv_sizeof_int" >&6; }
6429
6430
6431
6432cat >>confdefs.h <<_ACEOF
6433#define SIZEOF_INT $ac_cv_sizeof_int
6434_ACEOF
6435
6436
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int has at least 32 bit" >&5
6438$as_echo_n "checking if int has at least 32 bit... " >&6; }
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445
6446 #if SIZEOF_INT>=4
6447 #else
6448 blablub
6449 #endif
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"; then :
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6457$as_echo "yes" >&6; }
6458else
6459 as_fn_error $? "Gecode needs at least 32 bit integers." "$LINENO" 5
6460fi
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if doubles have a big enough mantissa" >&5
6464$as_echo_n "checking if doubles have a big enough mantissa... " >&6; }
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h. */
6467#include <float.h>
6468int
6469main ()
6470{
6471
6472 #if DBL_MANT_DIG>=53
6473 #else
6474 blablub
6475 #endif
6476
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481if ac_fn_c_try_compile "$LINENO"; then :
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6483$as_echo "yes" >&6; }
6484else
6485 as_fn_error $? "Gecode needs a double mantissa of at least 53 bits." "$LINENO" 5
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488
6489 ac_ext=cpp
6490ac_cpp='$CXXCPP $CPPFLAGS'
6491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6494
6495
6496
6497 # Check whether --enable-thread was given.
6498if test "${enable_thread+set}" = set; then :
6499 enableval=$enable_thread;
6500fi
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with multi-threading support" >&5
6503$as_echo_n "checking whether to build with multi-threading support... " >&6; }
6504 if test "${enable_thread:-yes}" = "yes"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6506$as_echo "yes" >&6; }
6507 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6508if test "x$ac_cv_header_unistd_h" = xyes; then :
6509
6510$as_echo "#define GECODE_HAS_UNISTD_H 1" >>confdefs.h
6511
6512
6513fi
6514
6515
6516 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6517if test "x$ac_cv_header_pthread_h" = xyes; then :
6518
6519$as_echo "#define GECODE_THREADS_PTHREADS 1" >>confdefs.h
6520
6521 CFLAGS="-pthread${CFLAGS:+ }${CFLAGS}"
6522 CXXFLAGS="-pthread${CXXFLAGS:+ }${CXXFLAGS}"
6523 DLLFLAGS="-pthread${DLLFLAGS:+ }${DLLFLAGS}"
6524 ac_fn_cxx_check_header_mongrel "$LINENO" "os/lock.h" "ac_cv_header_os_lock_h" "$ac_includes_default"
6525if test "x$ac_cv_header_os_lock_h" = xyes; then :
6526
6527$as_echo "#define GECODE_THREADS_OSX_UNFAIR 1" >>confdefs.h
6528
6529else
6530 ac_fn_cxx_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
6531if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
6532
6533$as_echo "#define GECODE_THREADS_OSX 1" >>confdefs.h
6534
6535else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spin locks" >&5
6537$as_echo_n "checking for spin locks... " >&6; }
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h. */
6540#include <pthread.h>
6541int
6542main ()
6543{
6544pthread_spinlock_t t;
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549if ac_fn_cxx_try_compile "$LINENO"; then :
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6551$as_echo "yes" >&6; }
6552
6553$as_echo "#define GECODE_THREADS_PTHREADS_SPINLOCK 1" >>confdefs.h
6554
6555else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561
6562fi
6563
6564
6565
6566fi
6567
6568
6569else
6570 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
6571if test "x$ac_cv_header_windows_h" = xyes; then :
6572
6573$as_echo "#define GECODE_THREADS_WINDOWS 1" >>confdefs.h
6574
6575fi
6576
6577
6578
6579fi
6580
6581
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585 fi
6586
6587
6588
6589 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6590if test "x$ac_cv_header_sys_time_h" = xyes; then :
6591
6592$as_echo "#define GECODE_USE_GETTIMEOFDAY 1" >>confdefs.h
6593
6594else
6595
6596$as_echo "#define GECODE_USE_CLOCK 1" >>confdefs.h
6597
6598fi
6599
6600
6601
6602
6603
6604# Check whether --with-freelist32-size-max was given.
6605if test "${with_freelist32_size_max+set}" = set; then :
6606 withval=$with_freelist32_size_max;
6607fi
6608
6609 if test "${with_freelist32_size_max:-no}" != "no"; then
6610
6611cat >>confdefs.h <<_ACEOF
6612#define GECODE_FREELIST_SIZE_MAX32 ${with_freelist32_size_max}
6613_ACEOF
6614
6615 fi
6616
6617
6618
6619# Check whether --with-freelist64-size-max was given.
6620if test "${with_freelist64_size_max+set}" = set; then :
6621 withval=$with_freelist64_size_max;
6622fi
6623
6624 if test "${with_freelist64_size_max:-no}" != "no"; then
6625
6626cat >>confdefs.h <<_ACEOF
6627#define GECODE_FREELIST_SIZE_MAX64 ${with_freelist64_size_max}
6628_ACEOF
6629
6630 fi
6631
6632
6633
6634case $ac_gecode_compiler_vendor in
6635gnu)
6636 DLLPATH=-L.
6637
6638 case $host_os in
6639 darwin*)
6640 need_soname="yes"
6641
6642 DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
6643 DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
6644 DLLEXT="${ac_gecode_soversion}.0.dylib"
6645
6646 SOSUFFIX=".${ac_gecode_soversion}.dylib"
6647
6648 SOLINKSUFFIX=".dylib"
6649
6650 sharedlibdir="${libdir}"
6651
6652 WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
6653
6654 GECODE_BUILD_SUPPORT_FLAG=""
6655
6656 GECODE_BUILD_KERNEL_FLAG=""
6657
6658 GECODE_BUILD_SEARCH_FLAG=""
6659
6660 GECODE_BUILD_INT_FLAG=""
6661
6662 GECODE_BUILD_FLOAT_FLAG=""
6663
6664 GECODE_BUILD_SET_FLAG=""
6665
6666 GECODE_BUILD_MINIMODEL_FLAG=""
6667
6668 GECODE_BUILD_GIST_FLAG=""
6669
6670 GECODE_BUILD_FLATZINC_FLAG=""
6671
6672 GECODE_BUILD_DRIVER_FLAG=""
6673
6674 ;;
6675 windows*)
6676 need_soname="no"
6677
6678 if test "${enable_static:-no}" = "yes" -a \
6679 "${enable_shared:-yes}" = "yes"; then
6680 as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
6681 fi
6682 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6683 DLLEXT="dll"
6684
6685 SOSUFFIX=""
6686
6687 SOLINKSUFFIX=""
6688
6689 WLSONAME=""
6690
6691 if test "${enable_static:-no}" = "no"; then
6692 sharedlibdir="${bindir}"
6693
6694 else
6695 sharedlibdir="${libdir}"
6696
6697 fi
6698 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
6699
6700 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
6701
6702 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
6703
6704 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
6705
6706 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
6707
6708 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
6709
6710 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
6711
6712 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
6713
6714 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
6715
6716 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
6717
6718 ;;
6719 *)
6720 need_soname="yes"
6721
6722 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6723 DLLEXT="so.${ac_gecode_soversion}.0"
6724
6725 SOSUFFIX=".so.${ac_gecode_soversion}"
6726
6727 SOLINKSUFFIX=".so"
6728
6729 WLSONAME="-Wl,-soname="
6730
6731 sharedlibdir="${libdir}"
6732
6733 GECODE_BUILD_SUPPORT_FLAG=""
6734
6735 GECODE_BUILD_KERNEL_FLAG=""
6736
6737 GECODE_BUILD_SEARCH_FLAG=""
6738
6739 GECODE_BUILD_INT_FLAG=""
6740
6741 GECODE_BUILD_FLOAT_FLAG=""
6742
6743 GECODE_BUILD_SET_FLAG=""
6744
6745 GECODE_BUILD_MINIMODEL_FLAG=""
6746
6747 GECODE_BUILD_GIST_FLAG=""
6748
6749 GECODE_BUILD_FLATZINC_FLAG=""
6750
6751 GECODE_BUILD_DRIVER_FLAG=""
6752
6753 ;;
6754 esac
6755
6756 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6758$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6759 if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762 :
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6765$as_echo "yes" >&6; }
6766
6767 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6768 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6769 fi
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6772$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6773 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6774 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6775 ac_ext=cpp
6776ac_cpp='$CXXCPP $CPPFLAGS'
6777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6780
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h. */
6783
6784int
6785main ()
6786{
6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792if ac_fn_cxx_try_compile "$LINENO"; then :
6793 if grep -q "unrecognized\|argument unused" conftest.err; then
6794 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796$as_echo "no" >&6; }
6797 :
6798 else
6799 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6801$as_echo "yes" >&6; }
6802
6803 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6804 fi
6805
6806else
6807 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810 :
6811fi
6812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 ac_ext=cpp
6814ac_cpp='$CXXCPP $CPPFLAGS'
6815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6818
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
6821$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
6822 ac_gecode_save_CFLAGS="${CFLAGS}"
6823 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
6824 ac_ext=c
6825ac_cpp='$CPP $CPPFLAGS'
6826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h. */
6832
6833int
6834main ()
6835{
6836
6837 ;
6838 return 0;
6839}
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842 if grep -q "unrecognized\|argument unused" conftest.err; then
6843 CFLAGS="${ac_gecode_save_CFLAGS}"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846 :
6847 else
6848 CFLAGS="${ac_gecode_save_CFLAGS}"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6850$as_echo "yes" >&6; }
6851
6852 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6853 fi
6854
6855else
6856 CFLAGS="${ac_gecode_save_CFLAGS}"
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858$as_echo "no" >&6; }
6859 :
6860fi
6861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 ac_ext=cpp
6863ac_cpp='$CXXCPP $CPPFLAGS'
6864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6867
6868 fi
6869
6870 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6872$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6873 if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
6876 :
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6879$as_echo "yes" >&6; }
6880
6881 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6882 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6883 fi
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6886$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6887 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6888 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6889 ac_ext=cpp
6890ac_cpp='$CXXCPP $CPPFLAGS'
6891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h. */
6897
6898int
6899main ()
6900{
6901
6902 ;
6903 return 0;
6904}
6905_ACEOF
6906if ac_fn_cxx_try_compile "$LINENO"; then :
6907 if grep -q "unrecognized\|argument unused" conftest.err; then
6908 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911 :
6912 else
6913 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6915$as_echo "yes" >&6; }
6916
6917 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6918 fi
6919
6920else
6921 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
6924 :
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 ac_ext=cpp
6928ac_cpp='$CXXCPP $CPPFLAGS'
6929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6932
6933
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
6935$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
6936 ac_gecode_save_CFLAGS="${CFLAGS}"
6937 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
6938 ac_ext=c
6939ac_cpp='$CPP $CPPFLAGS'
6940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942ac_compiler_gnu=$ac_cv_c_compiler_gnu
6943
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h. */
6946
6947int
6948main ()
6949{
6950
6951 ;
6952 return 0;
6953}
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then :
6956 if grep -q "unrecognized\|argument unused" conftest.err; then
6957 CFLAGS="${ac_gecode_save_CFLAGS}"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959$as_echo "no" >&6; }
6960 :
6961 else
6962 CFLAGS="${ac_gecode_save_CFLAGS}"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6964$as_echo "yes" >&6; }
6965
6966 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6967 fi
6968
6969else
6970 CFLAGS="${ac_gecode_save_CFLAGS}"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973 :
6974fi
6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 ac_ext=cpp
6977ac_cpp='$CXXCPP $CPPFLAGS'
6978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6981
6982 fi
6983
6984 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
6986$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
6987 if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990 :
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6993$as_echo "yes" >&6; }
6994
6995 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
6996 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
6997 fi
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
7000$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
7001 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7002 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7003 ac_ext=cpp
7004ac_cpp='$CXXCPP $CPPFLAGS'
7005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7008
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h. */
7011
7012int
7013main ()
7014{
7015
7016 ;
7017 return 0;
7018}
7019_ACEOF
7020if ac_fn_cxx_try_compile "$LINENO"; then :
7021 if grep -q "unrecognized\|argument unused" conftest.err; then
7022 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025 :
7026 else
7027 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7029$as_echo "yes" >&6; }
7030
7031 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
7032 fi
7033
7034else
7035 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038 :
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 ac_ext=cpp
7042ac_cpp='$CXXCPP $CPPFLAGS'
7043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
7049$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
7050 ac_gecode_save_CFLAGS="${CFLAGS}"
7051 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
7052 ac_ext=c
7053ac_cpp='$CPP $CPPFLAGS'
7054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h. */
7060
7061int
7062main ()
7063{
7064
7065 ;
7066 return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070 if grep -q "unrecognized\|argument unused" conftest.err; then
7071 CFLAGS="${ac_gecode_save_CFLAGS}"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074 :
7075 else
7076 CFLAGS="${ac_gecode_save_CFLAGS}"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7078$as_echo "yes" >&6; }
7079
7080 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
7081 fi
7082
7083else
7084 CFLAGS="${ac_gecode_save_CFLAGS}"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087 :
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 ac_ext=cpp
7091ac_cpp='$CXXCPP $CPPFLAGS'
7092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7095
7096 fi
7097
7098 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
7100$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
7101 if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104 :
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7107$as_echo "yes" >&6; }
7108
7109 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
7110 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
7111 fi
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
7114$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
7115 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7116 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7117 ac_ext=cpp
7118ac_cpp='$CXXCPP $CPPFLAGS'
7119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7122
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h. */
7125
7126int
7127main ()
7128{
7129
7130 ;
7131 return 0;
7132}
7133_ACEOF
7134if ac_fn_cxx_try_compile "$LINENO"; then :
7135 if grep -q "unrecognized\|argument unused" conftest.err; then
7136 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139 :
7140 else
7141 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7143$as_echo "yes" >&6; }
7144
7145 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
7146 fi
7147
7148else
7149 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152 :
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 ac_ext=cpp
7156ac_cpp='$CXXCPP $CPPFLAGS'
7157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7160
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5
7163$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; }
7164 ac_gecode_save_CFLAGS="${CFLAGS}"
7165 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror"
7166 ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175int
7176main ()
7177{
7178
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183if ac_fn_c_try_compile "$LINENO"; then :
7184 if grep -q "unrecognized\|argument unused" conftest.err; then
7185 CFLAGS="${ac_gecode_save_CFLAGS}"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188 :
7189 else
7190 CFLAGS="${ac_gecode_save_CFLAGS}"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7192$as_echo "yes" >&6; }
7193
7194 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
7195 fi
7196
7197else
7198 CFLAGS="${ac_gecode_save_CFLAGS}"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201 :
7202fi
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 ac_ext=cpp
7205ac_cpp='$CXXCPP $CPPFLAGS'
7206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7209
7210 fi
7211
7212 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7214$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7215 if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218 :
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7221$as_echo "yes" >&6; }
7222
7223 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7224 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7225 fi
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7228$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7229 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7230 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7231 ac_ext=cpp
7232ac_cpp='$CXXCPP $CPPFLAGS'
7233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7236
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h. */
7239
7240int
7241main ()
7242{
7243
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248if ac_fn_cxx_try_compile "$LINENO"; then :
7249 if grep -q "unrecognized\|argument unused" conftest.err; then
7250 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253 :
7254 else
7255 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257$as_echo "yes" >&6; }
7258
7259 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7260 fi
7261
7262else
7263 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265$as_echo "no" >&6; }
7266 :
7267fi
7268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 ac_ext=cpp
7270ac_cpp='$CXXCPP $CPPFLAGS'
7271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
7277$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
7278 ac_gecode_save_CFLAGS="${CFLAGS}"
7279 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
7280 ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288
7289int
7290main ()
7291{
7292
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_compile "$LINENO"; then :
7298 if grep -q "unrecognized\|argument unused" conftest.err; then
7299 CFLAGS="${ac_gecode_save_CFLAGS}"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
7302 :
7303 else
7304 CFLAGS="${ac_gecode_save_CFLAGS}"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7306$as_echo "yes" >&6; }
7307
7308 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7309 fi
7310
7311else
7312 CFLAGS="${ac_gecode_save_CFLAGS}"
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315 :
7316fi
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 ac_ext=cpp
7319ac_cpp='$CXXCPP $CPPFLAGS'
7320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7323
7324 fi
7325
7326 # Check whether --enable-cpp11 was given.
7327if test "${enable_cpp11+set}" = set; then :
7328 enableval=$enable_cpp11;
7329fi
7330
7331 if test "${enable_cpp11:-yes}" = "yes"; then
7332
7333 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7335$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7336 if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339 :
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342$as_echo "yes" >&6; }
7343
7344 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7345 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7346 fi
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7349$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7350 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7351 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7352 ac_ext=cpp
7353ac_cpp='$CXXCPP $CPPFLAGS'
7354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7357
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359/* end confdefs.h. */
7360
7361int
7362main ()
7363{
7364
7365 ;
7366 return 0;
7367}
7368_ACEOF
7369if ac_fn_cxx_try_compile "$LINENO"; then :
7370 if grep -q "unrecognized\|argument unused" conftest.err; then
7371 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374 :
7375 else
7376 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7378$as_echo "yes" >&6; }
7379
7380 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7381 fi
7382
7383else
7384 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387 :
7388fi
7389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 ac_ext=cpp
7391ac_cpp='$CXXCPP $CPPFLAGS'
7392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7395
7396
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
7398$as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
7399 ac_gecode_save_CFLAGS="${CFLAGS}"
7400 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
7401 ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h. */
7409
7410int
7411main ()
7412{
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419 if grep -q "unrecognized\|argument unused" conftest.err; then
7420 CFLAGS="${ac_gecode_save_CFLAGS}"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423 :
7424 else
7425 CFLAGS="${ac_gecode_save_CFLAGS}"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427$as_echo "yes" >&6; }
7428
7429 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7430 fi
7431
7432else
7433 CFLAGS="${ac_gecode_save_CFLAGS}"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
7436 :
7437fi
7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 ac_ext=cpp
7440ac_cpp='$CXXCPP $CPPFLAGS'
7441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7444
7445 fi
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile for C++11 standard" >&5
7448$as_echo_n "checking whether to compile for C++11 standard... " >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451 fi
7452
7453 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7455$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7456 if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459
7460 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7462$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7463 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465$as_echo "no" >&6; }
7466 :
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469$as_echo "yes" >&6; }
7470
7471 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7472 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7473 fi
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7476$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7477 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7478 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7479 ac_ext=cpp
7480ac_cpp='$CXXCPP $CPPFLAGS'
7481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7484
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h. */
7487
7488int
7489main ()
7490{
7491
7492 ;
7493 return 0;
7494}
7495_ACEOF
7496if ac_fn_cxx_try_compile "$LINENO"; then :
7497 if grep -q "unrecognized\|argument unused" conftest.err; then
7498 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
7501 :
7502 else
7503 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505$as_echo "yes" >&6; }
7506
7507 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7508 fi
7509
7510else
7511 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514 :
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 ac_ext=cpp
7518ac_cpp='$CXXCPP $CPPFLAGS'
7519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7522
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7525$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7526 ac_gecode_save_CFLAGS="${CFLAGS}"
7527 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7528 ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h. */
7536
7537int
7538main ()
7539{
7540
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546 if grep -q "unrecognized\|argument unused" conftest.err; then
7547 CFLAGS="${ac_gecode_save_CFLAGS}"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550 :
7551 else
7552 CFLAGS="${ac_gecode_save_CFLAGS}"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554$as_echo "yes" >&6; }
7555
7556 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7557 fi
7558
7559else
7560 CFLAGS="${ac_gecode_save_CFLAGS}"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563 :
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 ac_ext=cpp
7567ac_cpp='$CXXCPP $CPPFLAGS'
7568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7571
7572 fi
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7575$as_echo "yes" >&6; }
7576
7577 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7578 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7579 fi
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7582$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7583 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7584 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7585 ac_ext=cpp
7586ac_cpp='$CXXCPP $CPPFLAGS'
7587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7590
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592/* end confdefs.h. */
7593
7594int
7595main ()
7596{
7597
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602if ac_fn_cxx_try_compile "$LINENO"; then :
7603 if grep -q "unrecognized\|argument unused" conftest.err; then
7604 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607
7608 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7610$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7611 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
7614 :
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617$as_echo "yes" >&6; }
7618
7619 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7620 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7621 fi
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7624$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7625 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7626 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7627 ac_ext=cpp
7628ac_cpp='$CXXCPP $CPPFLAGS'
7629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7632
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h. */
7635
7636int
7637main ()
7638{
7639
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644if ac_fn_cxx_try_compile "$LINENO"; then :
7645 if grep -q "unrecognized\|argument unused" conftest.err; then
7646 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649 :
7650 else
7651 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7653$as_echo "yes" >&6; }
7654
7655 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7656 fi
7657
7658else
7659 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662 :
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 ac_ext=cpp
7666ac_cpp='$CXXCPP $CPPFLAGS'
7667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7670
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7673$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7674 ac_gecode_save_CFLAGS="${CFLAGS}"
7675 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7676 ac_ext=c
7677ac_cpp='$CPP $CPPFLAGS'
7678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
7684
7685int
7686main ()
7687{
7688
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"; then :
7694 if grep -q "unrecognized\|argument unused" conftest.err; then
7695 CFLAGS="${ac_gecode_save_CFLAGS}"
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698 :
7699 else
7700 CFLAGS="${ac_gecode_save_CFLAGS}"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7702$as_echo "yes" >&6; }
7703
7704 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7705 fi
7706
7707else
7708 CFLAGS="${ac_gecode_save_CFLAGS}"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
7711 :
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 ac_ext=cpp
7715ac_cpp='$CXXCPP $CPPFLAGS'
7716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7719
7720 fi
7721 else
7722 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724$as_echo "yes" >&6; }
7725
7726 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7727 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7728 fi
7729
7730else
7731 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
7734
7735 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7737$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7738 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741 :
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7744$as_echo "yes" >&6; }
7745
7746 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7747 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7748 fi
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7751$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7752 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7753 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7754 ac_ext=cpp
7755ac_cpp='$CXXCPP $CPPFLAGS'
7756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7759
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h. */
7762
7763int
7764main ()
7765{
7766
7767 ;
7768 return 0;
7769}
7770_ACEOF
7771if ac_fn_cxx_try_compile "$LINENO"; then :
7772 if grep -q "unrecognized\|argument unused" conftest.err; then
7773 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776 :
7777 else
7778 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780$as_echo "yes" >&6; }
7781
7782 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7783 fi
7784
7785else
7786 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789 :
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 ac_ext=cpp
7793ac_cpp='$CXXCPP $CPPFLAGS'
7794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7797
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7800$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7801 ac_gecode_save_CFLAGS="${CFLAGS}"
7802 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"; then :
7821 if grep -q "unrecognized\|argument unused" conftest.err; then
7822 CFLAGS="${ac_gecode_save_CFLAGS}"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825 :
7826 else
7827 CFLAGS="${ac_gecode_save_CFLAGS}"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829$as_echo "yes" >&6; }
7830
7831 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7832 fi
7833
7834else
7835 CFLAGS="${ac_gecode_save_CFLAGS}"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838 :
7839fi
7840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 ac_ext=cpp
7842ac_cpp='$CXXCPP $CPPFLAGS'
7843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7846
7847 fi
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_ext=cpp
7851ac_cpp='$CXXCPP $CPPFLAGS'
7852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7855
7856 fi
7857
7858 ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
7859if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
7860
7861$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
7862
7863fi
7864
7865 ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
7866if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
7867
7868$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
7869
7870fi
7871
7872
7873 docdir="${datadir}/doc/gecode"
7874
7875
7876 MANIFEST="@true"
7877
7878
7879 SBJEXT="s"
7880
7881 LIBEXT="${DLLEXT}"
7882
7883 LIBPREFIX="lib${ac_gecode_userprefix}gecode"
7884
7885 STATICLIBEXT="a"
7886
7887 MINUSLDIR="-L${libdir}"
7888
7889 LINKLIBDIR=""
7890
7891
7892 cygpathprefix=$prefix
7893 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
7894 cygpathprefix="${cygpathprefix}"
7895
7896
7897 COMPILEOBJ="-c -o "
7898
7899 COMPILESBJ="-S -o "
7900
7901 CXXIN=" "
7902
7903 CCIN=" "
7904
7905 EXAMPLES_EXTRA_CXXFLAGS=""
7906
7907
7908 INSTALLLIBS="no"
7909
7910
7911 LINKPREFIX="-l${ac_gecode_userprefix}gecode"
7912
7913 LINKSUFFIX=""
7914
7915
7916 LINKOUTPUT="-o "
7917
7918 EXEOUTPUT="-o "
7919
7920
7921 SUPPORT="support"
7922
7923 KERNEL="kernel"
7924
7925 SEARCH="search"
7926
7927 INT="int"
7928
7929 FLOAT="float"
7930
7931 SET="set"
7932
7933 MM="minimodel"
7934
7935 GIST="gist"
7936
7937 FLATZINC="flatzinc"
7938
7939 DRIVER="driver"
7940
7941 # Check whether --enable-gcc-visibility was given.
7942if test "${enable_gcc_visibility+set}" = set; then :
7943 enableval=$enable_gcc_visibility;
7944fi
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
7947$as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
7948 if test "${enable_gcc_visibility:-yes}" = "yes"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950$as_echo "yes" >&6; }
7951 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7953$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7954 if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957 :
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961
7962
7963$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
7964
7965 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
7966 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
7967 fi
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7970$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7971 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7972 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7973 ac_ext=cpp
7974ac_cpp='$CXXCPP $CPPFLAGS'
7975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7978
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h. */
7981
7982int
7983main ()
7984{
7985
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990if ac_fn_cxx_try_compile "$LINENO"; then :
7991 if grep -q "unrecognized\|argument unused" conftest.err; then
7992 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994$as_echo "no" >&6; }
7995 :
7996 else
7997 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7999$as_echo "yes" >&6; }
8000
8001
8002$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
8003
8004 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
8005 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
8006 fi
8007
8008else
8009 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012 :
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 ac_ext=cpp
8016ac_cpp='$CXXCPP $CPPFLAGS'
8017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8020
8021 fi
8022
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026 fi
8027
8028 if test "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
8030$as_echo_n "checking if compiler supports forced inlining... " >&6; }
8031 ac_ext=cpp
8032ac_cpp='$CXXCPP $CPPFLAGS'
8033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8036
8037 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8038 CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h. */
8041#ifndef __clang__
8042 # error "Macro __clang__ is undefined!"
8043 /* For some compilers (eg. SGI's CC), #error is not
8044 enough... */
8045 please, do fail
8046 #endif
8047int
8048main ()
8049{
8050
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055if ac_fn_cxx_try_compile "$LINENO"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
8058
8059$as_echo "#define forceinline inline" >>confdefs.h
8060
8061else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h. */
8064
8065 inline __attribute__ ((__always_inline__)) void foo(void) {}
8066int
8067main ()
8068{
8069
8070 ;
8071 return 0;
8072}
8073_ACEOF
8074if ac_fn_cxx_try_compile "$LINENO"; then :
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8076$as_echo "yes" >&6; }
8077
8078$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
8079
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083
8084$as_echo "#define forceinline inline" >>confdefs.h
8085
8086fi
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088fi
8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 CXXFLAGS=${ac_gecode_save_CXXFLAGS}
8091 ac_ext=cpp
8092ac_cpp='$CXXCPP $CPPFLAGS'
8093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8096
8097
8098 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8100$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8101 if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104 :
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107$as_echo "yes" >&6; }
8108
8109 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
8110 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
8111 fi
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8114$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8115 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8116 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8117 ac_ext=cpp
8118ac_cpp='$CXXCPP $CPPFLAGS'
8119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8122
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h. */
8125
8126int
8127main ()
8128{
8129
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134if ac_fn_cxx_try_compile "$LINENO"; then :
8135 if grep -q "unrecognized\|argument unused" conftest.err; then
8136 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139 :
8140 else
8141 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143$as_echo "yes" >&6; }
8144
8145 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
8146 fi
8147
8148else
8149 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152 :
8153fi
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 ac_ext=cpp
8156ac_cpp='$CXXCPP $CPPFLAGS'
8157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8160
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8163$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8164 ac_gecode_save_CFLAGS="${CFLAGS}"
8165 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
8166 ac_ext=c
8167ac_cpp='$CPP $CPPFLAGS'
8168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h. */
8174
8175int
8176main ()
8177{
8178
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_compile "$LINENO"; then :
8184 if grep -q "unrecognized\|argument unused" conftest.err; then
8185 CFLAGS="${ac_gecode_save_CFLAGS}"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
8188 :
8189 else
8190 CFLAGS="${ac_gecode_save_CFLAGS}"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192$as_echo "yes" >&6; }
8193
8194 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
8195 fi
8196
8197else
8198 CFLAGS="${ac_gecode_save_CFLAGS}"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201 :
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 ac_ext=cpp
8205ac_cpp='$CXXCPP $CPPFLAGS'
8206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8209
8210 fi
8211
8212 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8214$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8215 if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218 :
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221$as_echo "yes" >&6; }
8222
8223 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8224 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8225 fi
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8228$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8229 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8230 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8231 ac_ext=cpp
8232ac_cpp='$CXXCPP $CPPFLAGS'
8233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8236
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239
8240int
8241main ()
8242{
8243
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248if ac_fn_cxx_try_compile "$LINENO"; then :
8249 if grep -q "unrecognized\|argument unused" conftest.err; then
8250 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253 :
8254 else
8255 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8257$as_echo "yes" >&6; }
8258
8259 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8260 fi
8261
8262else
8263 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
8266 :
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_ext=cpp
8270ac_cpp='$CXXCPP $CPPFLAGS'
8271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8274
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
8277$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
8278 ac_gecode_save_CFLAGS="${CFLAGS}"
8279 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
8280 ac_ext=c
8281ac_cpp='$CPP $CPPFLAGS'
8282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"; then :
8298 if grep -q "unrecognized\|argument unused" conftest.err; then
8299 CFLAGS="${ac_gecode_save_CFLAGS}"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
8302 :
8303 else
8304 CFLAGS="${ac_gecode_save_CFLAGS}"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306$as_echo "yes" >&6; }
8307
8308 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8309 fi
8310
8311else
8312 CFLAGS="${ac_gecode_save_CFLAGS}"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
8315 :
8316fi
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 ac_ext=cpp
8319ac_cpp='$CXXCPP $CPPFLAGS'
8320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8323
8324 fi
8325
8326 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8328$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8329 if ${CXX} -fno-math-errno 2>&1 | grep "ignoring unknown option" -q; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
8332 :
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335$as_echo "yes" >&6; }
8336
8337 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8338 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8339 fi
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8342$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8343 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8344 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8345 ac_ext=cpp
8346ac_cpp='$CXXCPP $CPPFLAGS'
8347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8350
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353
8354int
8355main ()
8356{
8357
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362if ac_fn_cxx_try_compile "$LINENO"; then :
8363 if grep -q "unrecognized\|argument unused" conftest.err; then
8364 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367 :
8368 else
8369 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371$as_echo "yes" >&6; }
8372
8373 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8374 fi
8375
8376else
8377 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379$as_echo "no" >&6; }
8380 :
8381fi
8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 ac_ext=cpp
8384ac_cpp='$CXXCPP $CPPFLAGS'
8385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8388
8389
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-math-errno" >&5
8391$as_echo_n "checking whether ${CC} accepts -fno-math-errno... " >&6; }
8392 ac_gecode_save_CFLAGS="${CFLAGS}"
8393 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS} -Werror"
8394 ac_ext=c
8395ac_cpp='$CPP $CPPFLAGS'
8396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8398ac_compiler_gnu=$ac_cv_c_compiler_gnu
8399
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h. */
8402
8403int
8404main ()
8405{
8406
8407 ;
8408 return 0;
8409}
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"; then :
8412 if grep -q "unrecognized\|argument unused" conftest.err; then
8413 CFLAGS="${ac_gecode_save_CFLAGS}"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416 :
8417 else
8418 CFLAGS="${ac_gecode_save_CFLAGS}"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8420$as_echo "yes" >&6; }
8421
8422 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8423 fi
8424
8425else
8426 CFLAGS="${ac_gecode_save_CFLAGS}"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
8429 :
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 ac_ext=cpp
8433ac_cpp='$CXXCPP $CPPFLAGS'
8434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8437
8438 fi
8439
8440 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8442$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8443 if ${CXX} -ffinite-math-only 2>&1 | grep "ignoring unknown option" -q; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446 :
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8449$as_echo "yes" >&6; }
8450
8451 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8452 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8453 fi
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8456$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8457 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8458 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8459 ac_ext=cpp
8460ac_cpp='$CXXCPP $CPPFLAGS'
8461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8464
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h. */
8467
8468int
8469main ()
8470{
8471
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476if ac_fn_cxx_try_compile "$LINENO"; then :
8477 if grep -q "unrecognized\|argument unused" conftest.err; then
8478 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
8481 :
8482 else
8483 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485$as_echo "yes" >&6; }
8486
8487 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8488 fi
8489
8490else
8491 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
8494 :
8495fi
8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 ac_ext=cpp
8498ac_cpp='$CXXCPP $CPPFLAGS'
8499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8502
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ffinite-math-only" >&5
8505$as_echo_n "checking whether ${CC} accepts -ffinite-math-only... " >&6; }
8506 ac_gecode_save_CFLAGS="${CFLAGS}"
8507 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS} -Werror"
8508 ac_ext=c
8509ac_cpp='$CPP $CPPFLAGS'
8510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8512ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h. */
8516
8517int
8518main ()
8519{
8520
8521 ;
8522 return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_compile "$LINENO"; then :
8526 if grep -q "unrecognized\|argument unused" conftest.err; then
8527 CFLAGS="${ac_gecode_save_CFLAGS}"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530 :
8531 else
8532 CFLAGS="${ac_gecode_save_CFLAGS}"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8534$as_echo "yes" >&6; }
8535
8536 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8537 fi
8538
8539else
8540 CFLAGS="${ac_gecode_save_CFLAGS}"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543 :
8544fi
8545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 ac_ext=cpp
8547ac_cpp='$CXXCPP $CPPFLAGS'
8548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8551
8552 fi
8553
8554 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8556$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8557 if ${CXX} -fno-rounding-math 2>&1 | grep "ignoring unknown option" -q; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
8560 :
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8563$as_echo "yes" >&6; }
8564
8565 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8566 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8567 fi
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8570$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8571 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8572 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8573 ac_ext=cpp
8574ac_cpp='$CXXCPP $CPPFLAGS'
8575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8578
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h. */
8581
8582int
8583main ()
8584{
8585
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590if ac_fn_cxx_try_compile "$LINENO"; then :
8591 if grep -q "unrecognized\|argument unused" conftest.err; then
8592 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594$as_echo "no" >&6; }
8595 :
8596 else
8597 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599$as_echo "yes" >&6; }
8600
8601 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8602 fi
8603
8604else
8605 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607$as_echo "no" >&6; }
8608 :
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 ac_ext=cpp
8612ac_cpp='$CXXCPP $CPPFLAGS'
8613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-rounding-math" >&5
8619$as_echo_n "checking whether ${CC} accepts -fno-rounding-math... " >&6; }
8620 ac_gecode_save_CFLAGS="${CFLAGS}"
8621 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS} -Werror"
8622 ac_ext=c
8623ac_cpp='$CPP $CPPFLAGS'
8624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626ac_compiler_gnu=$ac_cv_c_compiler_gnu
8627
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h. */
8630
8631int
8632main ()
8633{
8634
8635 ;
8636 return 0;
8637}
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"; then :
8640 if grep -q "unrecognized\|argument unused" conftest.err; then
8641 CFLAGS="${ac_gecode_save_CFLAGS}"
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
8644 :
8645 else
8646 CFLAGS="${ac_gecode_save_CFLAGS}"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8648$as_echo "yes" >&6; }
8649
8650 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8651 fi
8652
8653else
8654 CFLAGS="${ac_gecode_save_CFLAGS}"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656$as_echo "no" >&6; }
8657 :
8658fi
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 ac_ext=cpp
8661ac_cpp='$CXXCPP $CPPFLAGS'
8662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8665
8666 fi
8667
8668 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8670$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8671 if ${CXX} -fno-signaling-nans 2>&1 | grep "ignoring unknown option" -q; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673$as_echo "no" >&6; }
8674 :
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8677$as_echo "yes" >&6; }
8678
8679 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8680 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8681 fi
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8684$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8685 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8686 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8687 ac_ext=cpp
8688ac_cpp='$CXXCPP $CPPFLAGS'
8689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8692
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h. */
8695
8696int
8697main ()
8698{
8699
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704if ac_fn_cxx_try_compile "$LINENO"; then :
8705 if grep -q "unrecognized\|argument unused" conftest.err; then
8706 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
8709 :
8710 else
8711 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8713$as_echo "yes" >&6; }
8714
8715 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8716 fi
8717
8718else
8719 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721$as_echo "no" >&6; }
8722 :
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 ac_ext=cpp
8726ac_cpp='$CXXCPP $CPPFLAGS'
8727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8730
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-signaling-nans" >&5
8733$as_echo_n "checking whether ${CC} accepts -fno-signaling-nans... " >&6; }
8734 ac_gecode_save_CFLAGS="${CFLAGS}"
8735 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS} -Werror"
8736 ac_ext=c
8737ac_cpp='$CPP $CPPFLAGS'
8738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h. */
8744
8745int
8746main ()
8747{
8748
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"; then :
8754 if grep -q "unrecognized\|argument unused" conftest.err; then
8755 CFLAGS="${ac_gecode_save_CFLAGS}"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
8758 :
8759 else
8760 CFLAGS="${ac_gecode_save_CFLAGS}"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8762$as_echo "yes" >&6; }
8763
8764 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8765 fi
8766
8767else
8768 CFLAGS="${ac_gecode_save_CFLAGS}"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
8771 :
8772fi
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 ac_ext=cpp
8775ac_cpp='$CXXCPP $CPPFLAGS'
8776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8779
8780 fi
8781
8782 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8784$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8785 if ${CXX} -fcx-limited-range 2>&1 | grep "ignoring unknown option" -q; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787$as_echo "no" >&6; }
8788 :
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8791$as_echo "yes" >&6; }
8792
8793 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8794 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8795 fi
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8798$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8799 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8800 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8801 ac_ext=cpp
8802ac_cpp='$CXXCPP $CPPFLAGS'
8803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8806
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h. */
8809
8810int
8811main ()
8812{
8813
8814 ;
8815 return 0;
8816}
8817_ACEOF
8818if ac_fn_cxx_try_compile "$LINENO"; then :
8819 if grep -q "unrecognized\|argument unused" conftest.err; then
8820 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
8823 :
8824 else
8825 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8827$as_echo "yes" >&6; }
8828
8829 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8830 fi
8831
8832else
8833 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836 :
8837fi
8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 ac_ext=cpp
8840ac_cpp='$CXXCPP $CPPFLAGS'
8841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fcx-limited-range" >&5
8847$as_echo_n "checking whether ${CC} accepts -fcx-limited-range... " >&6; }
8848 ac_gecode_save_CFLAGS="${CFLAGS}"
8849 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS} -Werror"
8850 ac_ext=c
8851ac_cpp='$CPP $CPPFLAGS'
8852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854ac_compiler_gnu=$ac_cv_c_compiler_gnu
8855
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h. */
8858
8859int
8860main ()
8861{
8862
8863 ;
8864 return 0;
8865}
8866_ACEOF
8867if ac_fn_c_try_compile "$LINENO"; then :
8868 if grep -q "unrecognized\|argument unused" conftest.err; then
8869 CFLAGS="${ac_gecode_save_CFLAGS}"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
8872 :
8873 else
8874 CFLAGS="${ac_gecode_save_CFLAGS}"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8876$as_echo "yes" >&6; }
8877
8878 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8879 fi
8880
8881else
8882 CFLAGS="${ac_gecode_save_CFLAGS}"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884$as_echo "no" >&6; }
8885 :
8886fi
8887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 ac_ext=cpp
8889ac_cpp='$CXXCPP $CPPFLAGS'
8890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8893
8894 fi
8895
8896 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8898$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8899 if ${CXX} -mthreads 2>&1 | grep "ignoring unknown option" -q; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
8902 :
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905$as_echo "yes" >&6; }
8906
8907 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8908 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8909 fi
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8912$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8913 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8914 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8915 ac_ext=cpp
8916ac_cpp='$CXXCPP $CPPFLAGS'
8917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8920
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h. */
8923
8924int
8925main ()
8926{
8927
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932if ac_fn_cxx_try_compile "$LINENO"; then :
8933 if grep -q "unrecognized\|argument unused" conftest.err; then
8934 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936$as_echo "no" >&6; }
8937 :
8938 else
8939 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8941$as_echo "yes" >&6; }
8942
8943 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8944 fi
8945
8946else
8947 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
8950 :
8951fi
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 ac_ext=cpp
8954ac_cpp='$CXXCPP $CPPFLAGS'
8955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8958
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mthreads" >&5
8961$as_echo_n "checking whether ${CC} accepts -mthreads... " >&6; }
8962 ac_gecode_save_CFLAGS="${CFLAGS}"
8963 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS} -Werror"
8964 ac_ext=c
8965ac_cpp='$CPP $CPPFLAGS'
8966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h. */
8972
8973int
8974main ()
8975{
8976
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981if ac_fn_c_try_compile "$LINENO"; then :
8982 if grep -q "unrecognized\|argument unused" conftest.err; then
8983 CFLAGS="${ac_gecode_save_CFLAGS}"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985$as_echo "no" >&6; }
8986 :
8987 else
8988 CFLAGS="${ac_gecode_save_CFLAGS}"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8990$as_echo "yes" >&6; }
8991
8992 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8993 fi
8994
8995else
8996 CFLAGS="${ac_gecode_save_CFLAGS}"
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999 :
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 ac_ext=cpp
9003ac_cpp='$CXXCPP $CPPFLAGS'
9004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9007
9008 fi
9009 else
9010 if test "${enable_debug:-no}" = "yes"; then
9011
9012$as_echo "#define forceinline inline" >>confdefs.h
9013
9014
9015 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
9017$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
9018 if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
9021 :
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024$as_echo "yes" >&6; }
9025
9026 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
9027 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
9028 fi
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
9031$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
9032 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9033 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9034 ac_ext=cpp
9035ac_cpp='$CXXCPP $CPPFLAGS'
9036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9039
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h. */
9042
9043int
9044main ()
9045{
9046
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051if ac_fn_cxx_try_compile "$LINENO"; then :
9052 if grep -q "unrecognized\|argument unused" conftest.err; then
9053 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055$as_echo "no" >&6; }
9056 :
9057 else
9058 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9060$as_echo "yes" >&6; }
9061
9062 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
9063 fi
9064
9065else
9066 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068$as_echo "no" >&6; }
9069 :
9070fi
9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 ac_ext=cpp
9073ac_cpp='$CXXCPP $CPPFLAGS'
9074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9077
9078
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
9080$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
9081 ac_gecode_save_CFLAGS="${CFLAGS}"
9082 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
9083 ac_ext=c
9084ac_cpp='$CPP $CPPFLAGS'
9085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087ac_compiler_gnu=$ac_cv_c_compiler_gnu
9088
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h. */
9091
9092int
9093main ()
9094{
9095
9096 ;
9097 return 0;
9098}
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"; then :
9101 if grep -q "unrecognized\|argument unused" conftest.err; then
9102 CFLAGS="${ac_gecode_save_CFLAGS}"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105 :
9106 else
9107 CFLAGS="${ac_gecode_save_CFLAGS}"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9109$as_echo "yes" >&6; }
9110
9111 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
9112 fi
9113
9114else
9115 CFLAGS="${ac_gecode_save_CFLAGS}"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
9118 :
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 ac_ext=cpp
9122ac_cpp='$CXXCPP $CPPFLAGS'
9123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9126
9127 fi
9128
9129 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
9131$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
9132 if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
9135 :
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9138$as_echo "yes" >&6; }
9139
9140 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
9141 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
9142 fi
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
9145$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
9146 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9147 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9148 ac_ext=cpp
9149ac_cpp='$CXXCPP $CPPFLAGS'
9150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9153
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h. */
9156
9157int
9158main ()
9159{
9160
9161 ;
9162 return 0;
9163}
9164_ACEOF
9165if ac_fn_cxx_try_compile "$LINENO"; then :
9166 if grep -q "unrecognized\|argument unused" conftest.err; then
9167 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
9170 :
9171 else
9172 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9174$as_echo "yes" >&6; }
9175
9176 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
9177 fi
9178
9179else
9180 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
9183 :
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 ac_ext=cpp
9187ac_cpp='$CXXCPP $CPPFLAGS'
9188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9191
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
9194$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
9195 ac_gecode_save_CFLAGS="${CFLAGS}"
9196 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
9197 ac_ext=c
9198ac_cpp='$CPP $CPPFLAGS'
9199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9201ac_compiler_gnu=$ac_cv_c_compiler_gnu
9202
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h. */
9205
9206int
9207main ()
9208{
9209
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_compile "$LINENO"; then :
9215 if grep -q "unrecognized\|argument unused" conftest.err; then
9216 CFLAGS="${ac_gecode_save_CFLAGS}"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
9219 :
9220 else
9221 CFLAGS="${ac_gecode_save_CFLAGS}"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9223$as_echo "yes" >&6; }
9224
9225 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
9226 fi
9227
9228else
9229 CFLAGS="${ac_gecode_save_CFLAGS}"
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
9232 :
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 ac_ext=cpp
9236ac_cpp='$CXXCPP $CPPFLAGS'
9237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9240
9241 fi
9242 fi
9243 fi
9244
9245 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9247$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9248 if ${CXX} -Qunused-arguments 2>&1 | grep "ignoring unknown option" -q; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250$as_echo "no" >&6; }
9251 :
9252 else
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9254$as_echo "yes" >&6; }
9255
9256 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9257 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9258 fi
9259 else
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9261$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9262 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9263 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9264 ac_ext=cpp
9265ac_cpp='$CXXCPP $CPPFLAGS'
9266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9269
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h. */
9272
9273int
9274main ()
9275{
9276
9277 ;
9278 return 0;
9279}
9280_ACEOF
9281if ac_fn_cxx_try_compile "$LINENO"; then :
9282 if grep -q "unrecognized\|argument unused" conftest.err; then
9283 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285$as_echo "no" >&6; }
9286 :
9287 else
9288 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9290$as_echo "yes" >&6; }
9291
9292 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9293 fi
9294
9295else
9296 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298$as_echo "no" >&6; }
9299 :
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 ac_ext=cpp
9303ac_cpp='$CXXCPP $CPPFLAGS'
9304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9307
9308
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Qunused-arguments" >&5
9310$as_echo_n "checking whether ${CC} accepts -Qunused-arguments... " >&6; }
9311 ac_gecode_save_CFLAGS="${CFLAGS}"
9312 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS} -Werror"
9313 ac_ext=c
9314ac_cpp='$CPP $CPPFLAGS'
9315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317ac_compiler_gnu=$ac_cv_c_compiler_gnu
9318
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h. */
9321
9322int
9323main ()
9324{
9325
9326 ;
9327 return 0;
9328}
9329_ACEOF
9330if ac_fn_c_try_compile "$LINENO"; then :
9331 if grep -q "unrecognized\|argument unused" conftest.err; then
9332 CFLAGS="${ac_gecode_save_CFLAGS}"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9335 :
9336 else
9337 CFLAGS="${ac_gecode_save_CFLAGS}"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9339$as_echo "yes" >&6; }
9340
9341 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9342 fi
9343
9344else
9345 CFLAGS="${ac_gecode_save_CFLAGS}"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347$as_echo "no" >&6; }
9348 :
9349fi
9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 ac_ext=cpp
9352ac_cpp='$CXXCPP $CPPFLAGS'
9353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9356
9357 fi
9358
9359 ;;
9360intel)
9361 case $host_os in
9362 windows*)
9363 $as_echo "#define forceinline __forceinline" >>confdefs.h
9364
9365 CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
9366 CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
9367 CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
9368 CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
9369
9370$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
9371
9372 if test "${enable_debug:-no}" = "no"; then
9373 CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
9374 CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
9375 CFLAGS="-MD -GS- -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
9376 CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
9377
9378 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9380$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9381 if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
9384 :
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9387$as_echo "yes" >&6; }
9388
9389 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9390 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9391 fi
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9394$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9395 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9396 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9397 ac_ext=cpp
9398ac_cpp='$CXXCPP $CPPFLAGS'
9399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9402
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405
9406int
9407main ()
9408{
9409
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_cxx_try_compile "$LINENO"; then :
9415 if grep -q "unrecognized\|argument unused" conftest.err; then
9416 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418$as_echo "no" >&6; }
9419 :
9420 else
9421 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9423$as_echo "yes" >&6; }
9424
9425 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9426 fi
9427
9428else
9429 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431$as_echo "no" >&6; }
9432 :
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 ac_ext=cpp
9436ac_cpp='$CXXCPP $CPPFLAGS'
9437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9440
9441
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
9443$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
9444 ac_gecode_save_CFLAGS="${CFLAGS}"
9445 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
9446 ac_ext=c
9447ac_cpp='$CPP $CPPFLAGS'
9448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h. */
9454
9455int
9456main ()
9457{
9458
9459 ;
9460 return 0;
9461}
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"; then :
9464 if grep -q "unrecognized\|argument unused" conftest.err; then
9465 CFLAGS="${ac_gecode_save_CFLAGS}"
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467$as_echo "no" >&6; }
9468 :
9469 else
9470 CFLAGS="${ac_gecode_save_CFLAGS}"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9472$as_echo "yes" >&6; }
9473
9474 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9475 fi
9476
9477else
9478 CFLAGS="${ac_gecode_save_CFLAGS}"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481 :
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 ac_ext=cpp
9485ac_cpp='$CXXCPP $CPPFLAGS'
9486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9489
9490 fi
9491
9492 DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
9493 GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
9494 else
9495 CFLAGS="-MDd -Zi -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
9496 CXXFLAGS="-MDd -Zi -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
9497
9498 DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
9499 GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
9500 fi
9501
9502 sharedlibdir="${bindir}"
9503
9504 docdir="${prefix}"
9505
9506 if test "${enable_static:-no}" = "yes"; then
9507 as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
9508 fi
9509
9510 # Extract the first word of "mt.exe", so it can be a program name with args.
9511set dummy mt.exe; ac_word=$2
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513$as_echo_n "checking for $ac_word... " >&6; }
9514if ${ac_cv_prog_MANIFEST+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516else
9517 if test -n "$MANIFEST"; then
9518 ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
9519else
9520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521for as_dir in $PATH
9522do
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527 ac_cv_prog_MANIFEST="mt.exe"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9530 fi
9531done
9532 done
9533IFS=$as_save_IFS
9534
9535fi
9536fi
9537MANIFEST=$ac_cv_prog_MANIFEST
9538if test -n "$MANIFEST"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
9540$as_echo "$MANIFEST" >&6; }
9541else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544fi
9545
9546
9547
9548 DLLPATH=""
9549
9550
9551 SBJEXT="sbj"
9552
9553 DLLEXT="dll"
9554
9555 SOSUFFIX=""
9556
9557 SOLINKSUFFIX=""
9558
9559 WLSONAME=""
9560
9561 LIBEXT="lib"
9562
9563 LIBPREFIX="${ac_gecode_userprefix}Gecode"
9564
9565 LINKPREFIX="${ac_gecode_userprefix}Gecode"
9566
9567 LINKSUFFIX=".lib"
9568
9569 MINUSLDIR=""
9570
9571 LINKLIBDIR="${libdir}/"
9572
9573
9574 cygpathprefix=$prefix
9575 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
9576 cygpathprefix=`cygpath -m ${cygpathprefix}`
9577
9578 cygpathprefix="${cygpathprefix}"
9579
9580 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9581
9582 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9583
9584 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9585
9586 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9587
9588 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9589
9590 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9591
9592 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9593
9594 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9595
9596 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9597
9598 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9599
9600
9601 COMPILEOBJ="-c -Fo"
9602
9603 COMPILESBJ="-c -Fa"
9604
9605 CXXIN="-Tp"
9606
9607 CCIN="-Tc"
9608
9609
9610 INSTALLLIBS="yes"
9611
9612
9613 LINKOUTPUT="-Fe"
9614
9615 EXEOUTPUT="-Fe"
9616
9617
9618 SUPPORT="Support"
9619
9620 KERNEL="Kernel"
9621
9622 SEARCH="Search"
9623
9624 INT="Int"
9625
9626 FLOAT="Float"
9627
9628 SET="Set"
9629
9630 MM="Minimodel"
9631
9632 GIST="Gist"
9633
9634 FLATZINC="FlatZinc"
9635
9636 DRIVER="Driver"
9637
9638 ;;
9639 *)
9640 # Check whether --enable-gcc-visibility was given.
9641if test "${enable_gcc_visibility+set}" = set; then :
9642 enableval=$enable_gcc_visibility;
9643fi
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
9646$as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
9647 if test "${enable_gcc_visibility:-yes}" = "yes"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9649$as_echo "yes" >&6; }
9650 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9652$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9653 if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
9656 :
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659$as_echo "yes" >&6; }
9660
9661
9662$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9663
9664 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9665 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9666 fi
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9669$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9670 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9671 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9672 ac_ext=cpp
9673ac_cpp='$CXXCPP $CPPFLAGS'
9674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9677
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
9680
9681int
9682main ()
9683{
9684
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689if ac_fn_cxx_try_compile "$LINENO"; then :
9690 if grep -q "unrecognized\|argument unused" conftest.err; then
9691 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694 :
9695 else
9696 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698$as_echo "yes" >&6; }
9699
9700
9701$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9702
9703 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9704 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9705 fi
9706
9707else
9708 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710$as_echo "no" >&6; }
9711 :
9712fi
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 ac_ext=cpp
9715ac_cpp='$CXXCPP $CPPFLAGS'
9716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9719
9720 fi
9721
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
9725 fi
9726 DLLPATH=-L.
9727
9728 case $host_os in
9729 darwin*)
9730 need_soname="yes"
9731
9732 DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
9733 DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
9734 DLLEXT="${ac_gecode_soversion}.0.dylib"
9735
9736 SOSUFFIX=".${ac_gecode_soversion}.dylib"
9737
9738 SOLINKSUFFIX=".dylib"
9739
9740 sharedlibdir="${libdir}"
9741
9742 WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
9743
9744 GECODE_BUILD_SUPPORT_FLAG=""
9745
9746 GECODE_BUILD_KERNEL_FLAG=""
9747
9748 GECODE_BUILD_SEARCH_FLAG=""
9749
9750 GECODE_BUILD_INT_FLAG=""
9751
9752 GECODE_BUILD_FLOAT_FLAG=""
9753
9754 GECODE_BUILD_SET_FLAG=""
9755
9756 GECODE_BUILD_MINIMODEL_FLAG=""
9757
9758 GECODE_BUILD_GIST_FLAG=""
9759
9760 GECODE_BUILD_FLATZINC_FLAG=""
9761
9762 GECODE_BUILD_DRIVER_FLAG=""
9763
9764 ;;
9765 windows*)
9766 need_soname="no"
9767
9768 if test "${enable_static:-no}" = "yes" -a \
9769 "${enable_shared:-yes}" = "yes"; then
9770 as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
9771 fi
9772 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9773 DLLEXT="dll"
9774
9775 SOSUFFIX=""
9776
9777 SOLINKSUFFIX=""
9778
9779 WLSONAME=""
9780
9781 if test "${enable_static:-no}" = "no"; then
9782 sharedlibdir="${bindir}"
9783
9784 else
9785 sharedlibdir="${libdir}"
9786
9787 fi
9788 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9789
9790 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9791
9792 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9793
9794 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9795
9796 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9797
9798 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9799
9800 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9801
9802 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9803
9804 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9805
9806 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9807
9808 ;;
9809 *)
9810 need_soname="yes"
9811
9812 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9813 DLLEXT="so.${ac_gecode_soversion}.0"
9814
9815 SOSUFFIX=".so.${ac_gecode_soversion}"
9816
9817 SOLINKSUFFIX=".so"
9818
9819 WLSONAME="-Wl,-soname="
9820
9821 sharedlibdir="${libdir}"
9822
9823 GECODE_BUILD_SUPPORT_FLAG=""
9824
9825 GECODE_BUILD_KERNEL_FLAG=""
9826
9827 GECODE_BUILD_SEARCH_FLAG=""
9828
9829 GECODE_BUILD_INT_FLAG=""
9830
9831 GECODE_BUILD_FLOAT_FLAG=""
9832
9833 GECODE_BUILD_SET_FLAG=""
9834
9835 GECODE_BUILD_MINIMODEL_FLAG=""
9836
9837 GECODE_BUILD_GIST_FLAG=""
9838
9839 GECODE_BUILD_FLATZINC_FLAG=""
9840
9841 GECODE_BUILD_DRIVER_FLAG=""
9842
9843 ;;
9844 esac
9845
9846 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9848$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9849 if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851$as_echo "no" >&6; }
9852 :
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9855$as_echo "yes" >&6; }
9856
9857 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9858 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9859 fi
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9862$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9863 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9864 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9865 ac_ext=cpp
9866ac_cpp='$CXXCPP $CPPFLAGS'
9867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9870
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h. */
9873
9874int
9875main ()
9876{
9877
9878 ;
9879 return 0;
9880}
9881_ACEOF
9882if ac_fn_cxx_try_compile "$LINENO"; then :
9883 if grep -q "unrecognized\|argument unused" conftest.err; then
9884 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887 :
9888 else
9889 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891$as_echo "yes" >&6; }
9892
9893 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9894 fi
9895
9896else
9897 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899$as_echo "no" >&6; }
9900 :
9901fi
9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 ac_ext=cpp
9904ac_cpp='$CXXCPP $CPPFLAGS'
9905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9908
9909
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
9911$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
9912 ac_gecode_save_CFLAGS="${CFLAGS}"
9913 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
9914 ac_ext=c
9915ac_cpp='$CPP $CPPFLAGS'
9916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918ac_compiler_gnu=$ac_cv_c_compiler_gnu
9919
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h. */
9922
9923int
9924main ()
9925{
9926
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_compile "$LINENO"; then :
9932 if grep -q "unrecognized\|argument unused" conftest.err; then
9933 CFLAGS="${ac_gecode_save_CFLAGS}"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935$as_echo "no" >&6; }
9936 :
9937 else
9938 CFLAGS="${ac_gecode_save_CFLAGS}"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940$as_echo "yes" >&6; }
9941
9942 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9943 fi
9944
9945else
9946 CFLAGS="${ac_gecode_save_CFLAGS}"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949 :
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 ac_ext=cpp
9953ac_cpp='$CXXCPP $CPPFLAGS'
9954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9957
9958 fi
9959
9960 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9962$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9963 if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965$as_echo "no" >&6; }
9966 :
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969$as_echo "yes" >&6; }
9970
9971 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
9972 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
9973 fi
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9976$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9977 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9978 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9979 ac_ext=cpp
9980ac_cpp='$CXXCPP $CPPFLAGS'
9981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9984
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h. */
9987
9988int
9989main ()
9990{
9991
9992 ;
9993 return 0;
9994}
9995_ACEOF
9996if ac_fn_cxx_try_compile "$LINENO"; then :
9997 if grep -q "unrecognized\|argument unused" conftest.err; then
9998 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000$as_echo "no" >&6; }
10001 :
10002 else
10003 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10005$as_echo "yes" >&6; }
10006
10007 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
10008 fi
10009
10010else
10011 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
10014 :
10015fi
10016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 ac_ext=cpp
10018ac_cpp='$CXXCPP $CPPFLAGS'
10019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10022
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
10025$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
10026 ac_gecode_save_CFLAGS="${CFLAGS}"
10027 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
10028 ac_ext=c
10029ac_cpp='$CPP $CPPFLAGS'
10030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10032ac_compiler_gnu=$ac_cv_c_compiler_gnu
10033
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h. */
10036
10037int
10038main ()
10039{
10040
10041 ;
10042 return 0;
10043}
10044_ACEOF
10045if ac_fn_c_try_compile "$LINENO"; then :
10046 if grep -q "unrecognized\|argument unused" conftest.err; then
10047 CFLAGS="${ac_gecode_save_CFLAGS}"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049$as_echo "no" >&6; }
10050 :
10051 else
10052 CFLAGS="${ac_gecode_save_CFLAGS}"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10054$as_echo "yes" >&6; }
10055
10056 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
10057 fi
10058
10059else
10060 CFLAGS="${ac_gecode_save_CFLAGS}"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062$as_echo "no" >&6; }
10063 :
10064fi
10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 ac_ext=cpp
10067ac_cpp='$CXXCPP $CPPFLAGS'
10068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10071
10072 fi
10073
10074 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
10076$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
10077 if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
10080 :
10081 else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10083$as_echo "yes" >&6; }
10084
10085 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
10086 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
10087 fi
10088 else
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
10090$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
10091 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10092 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10093 ac_ext=cpp
10094ac_cpp='$CXXCPP $CPPFLAGS'
10095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10098
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h. */
10101
10102int
10103main ()
10104{
10105
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110if ac_fn_cxx_try_compile "$LINENO"; then :
10111 if grep -q "unrecognized\|argument unused" conftest.err; then
10112 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
10115 :
10116 else
10117 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10119$as_echo "yes" >&6; }
10120
10121 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
10122 fi
10123
10124else
10125 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127$as_echo "no" >&6; }
10128 :
10129fi
10130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 ac_ext=cpp
10132ac_cpp='$CXXCPP $CPPFLAGS'
10133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10136
10137
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
10139$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
10140 ac_gecode_save_CFLAGS="${CFLAGS}"
10141 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
10142 ac_ext=c
10143ac_cpp='$CPP $CPPFLAGS'
10144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h. */
10150
10151int
10152main ()
10153{
10154
10155 ;
10156 return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_compile "$LINENO"; then :
10160 if grep -q "unrecognized\|argument unused" conftest.err; then
10161 CFLAGS="${ac_gecode_save_CFLAGS}"
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164 :
10165 else
10166 CFLAGS="${ac_gecode_save_CFLAGS}"
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10168$as_echo "yes" >&6; }
10169
10170 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
10171 fi
10172
10173else
10174 CFLAGS="${ac_gecode_save_CFLAGS}"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176$as_echo "no" >&6; }
10177 :
10178fi
10179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 ac_ext=cpp
10181ac_cpp='$CXXCPP $CPPFLAGS'
10182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10185
10186 fi
10187
10188 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
10190$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
10191 if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }
10194 :
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10197$as_echo "yes" >&6; }
10198
10199 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
10200 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
10201 fi
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
10204$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
10205 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10206 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10207 ac_ext=cpp
10208ac_cpp='$CXXCPP $CPPFLAGS'
10209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10212
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h. */
10215
10216int
10217main ()
10218{
10219
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224if ac_fn_cxx_try_compile "$LINENO"; then :
10225 if grep -q "unrecognized\|argument unused" conftest.err; then
10226 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228$as_echo "no" >&6; }
10229 :
10230 else
10231 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10233$as_echo "yes" >&6; }
10234
10235 CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
10236 fi
10237
10238else
10239 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241$as_echo "no" >&6; }
10242 :
10243fi
10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10245 ac_ext=cpp
10246ac_cpp='$CXXCPP $CPPFLAGS'
10247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5
10253$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; }
10254 ac_gecode_save_CFLAGS="${CFLAGS}"
10255 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror"
10256 ac_ext=c
10257ac_cpp='$CPP $CPPFLAGS'
10258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h. */
10264
10265int
10266main ()
10267{
10268
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"; then :
10274 if grep -q "unrecognized\|argument unused" conftest.err; then
10275 CFLAGS="${ac_gecode_save_CFLAGS}"
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
10278 :
10279 else
10280 CFLAGS="${ac_gecode_save_CFLAGS}"
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10282$as_echo "yes" >&6; }
10283
10284 CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
10285 fi
10286
10287else
10288 CFLAGS="${ac_gecode_save_CFLAGS}"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290$as_echo "no" >&6; }
10291 :
10292fi
10293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 ac_ext=cpp
10295ac_cpp='$CXXCPP $CPPFLAGS'
10296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10299
10300 fi
10301
10302 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10304$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10305 if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
10308 :
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10311$as_echo "yes" >&6; }
10312
10313 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10314 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10315 fi
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10318$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10319 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10320 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10321 ac_ext=cpp
10322ac_cpp='$CXXCPP $CPPFLAGS'
10323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10326
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h. */
10329
10330int
10331main ()
10332{
10333
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338if ac_fn_cxx_try_compile "$LINENO"; then :
10339 if grep -q "unrecognized\|argument unused" conftest.err; then
10340 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343 :
10344 else
10345 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347$as_echo "yes" >&6; }
10348
10349 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10350 fi
10351
10352else
10353 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
10356 :
10357fi
10358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 ac_ext=cpp
10360ac_cpp='$CXXCPP $CPPFLAGS'
10361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10364
10365
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
10367$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
10368 ac_gecode_save_CFLAGS="${CFLAGS}"
10369 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
10370 ac_ext=c
10371ac_cpp='$CPP $CPPFLAGS'
10372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10374ac_compiler_gnu=$ac_cv_c_compiler_gnu
10375
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377/* end confdefs.h. */
10378
10379int
10380main ()
10381{
10382
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387if ac_fn_c_try_compile "$LINENO"; then :
10388 if grep -q "unrecognized\|argument unused" conftest.err; then
10389 CFLAGS="${ac_gecode_save_CFLAGS}"
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392 :
10393 else
10394 CFLAGS="${ac_gecode_save_CFLAGS}"
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10396$as_echo "yes" >&6; }
10397
10398 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10399 fi
10400
10401else
10402 CFLAGS="${ac_gecode_save_CFLAGS}"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404$as_echo "no" >&6; }
10405 :
10406fi
10407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 ac_ext=cpp
10409ac_cpp='$CXXCPP $CPPFLAGS'
10410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10413
10414 fi
10415
10416 # Check whether --enable-cpp11 was given.
10417if test "${enable_cpp11+set}" = set; then :
10418 enableval=$enable_cpp11;
10419fi
10420
10421 if test "${enable_cpp11:-yes}" = "yes"; then
10422
10423 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10425$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10426 if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429 :
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432$as_echo "yes" >&6; }
10433
10434 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10435 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10436 fi
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10439$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10440 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10441 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10442 ac_ext=cpp
10443ac_cpp='$CXXCPP $CPPFLAGS'
10444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10447
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h. */
10450
10451int
10452main ()
10453{
10454
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459if ac_fn_cxx_try_compile "$LINENO"; then :
10460 if grep -q "unrecognized\|argument unused" conftest.err; then
10461 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463$as_echo "no" >&6; }
10464 :
10465 else
10466 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10468$as_echo "yes" >&6; }
10469
10470 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10471 fi
10472
10473else
10474 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476$as_echo "no" >&6; }
10477 :
10478fi
10479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 ac_ext=cpp
10481ac_cpp='$CXXCPP $CPPFLAGS'
10482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10485
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
10488$as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
10489 ac_gecode_save_CFLAGS="${CFLAGS}"
10490 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
10491 ac_ext=c
10492ac_cpp='$CPP $CPPFLAGS'
10493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h. */
10499
10500int
10501main ()
10502{
10503
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509 if grep -q "unrecognized\|argument unused" conftest.err; then
10510 CFLAGS="${ac_gecode_save_CFLAGS}"
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513 :
10514 else
10515 CFLAGS="${ac_gecode_save_CFLAGS}"
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517$as_echo "yes" >&6; }
10518
10519 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10520 fi
10521
10522else
10523 CFLAGS="${ac_gecode_save_CFLAGS}"
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
10526 :
10527fi
10528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 ac_ext=cpp
10530ac_cpp='$CXXCPP $CPPFLAGS'
10531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10534
10535 fi
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile for C++11 standard" >&5
10538$as_echo_n "checking whether to compile for C++11 standard... " >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
10541 fi
10542
10543 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10545$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10546 if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549
10550 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10552$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10553 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556 :
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559$as_echo "yes" >&6; }
10560
10561 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10562 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10563 fi
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10566$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10567 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10568 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10569 ac_ext=cpp
10570ac_cpp='$CXXCPP $CPPFLAGS'
10571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10574
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h. */
10577
10578int
10579main ()
10580{
10581
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586if ac_fn_cxx_try_compile "$LINENO"; then :
10587 if grep -q "unrecognized\|argument unused" conftest.err; then
10588 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
10591 :
10592 else
10593 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595$as_echo "yes" >&6; }
10596
10597 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10598 fi
10599
10600else
10601 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
10604 :
10605fi
10606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 ac_ext=cpp
10608ac_cpp='$CXXCPP $CPPFLAGS'
10609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10612
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10615$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10616 ac_gecode_save_CFLAGS="${CFLAGS}"
10617 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10618 ac_ext=c
10619ac_cpp='$CPP $CPPFLAGS'
10620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h. */
10626
10627int
10628main ()
10629{
10630
10631 ;
10632 return 0;
10633}
10634_ACEOF
10635if ac_fn_c_try_compile "$LINENO"; then :
10636 if grep -q "unrecognized\|argument unused" conftest.err; then
10637 CFLAGS="${ac_gecode_save_CFLAGS}"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
10640 :
10641 else
10642 CFLAGS="${ac_gecode_save_CFLAGS}"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10644$as_echo "yes" >&6; }
10645
10646 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10647 fi
10648
10649else
10650 CFLAGS="${ac_gecode_save_CFLAGS}"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653 :
10654fi
10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 ac_ext=cpp
10657ac_cpp='$CXXCPP $CPPFLAGS'
10658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10661
10662 fi
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665$as_echo "yes" >&6; }
10666
10667 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10668 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10669 fi
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10672$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10673 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10674 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10675 ac_ext=cpp
10676ac_cpp='$CXXCPP $CPPFLAGS'
10677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10680
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h. */
10683
10684int
10685main ()
10686{
10687
10688 ;
10689 return 0;
10690}
10691_ACEOF
10692if ac_fn_cxx_try_compile "$LINENO"; then :
10693 if grep -q "unrecognized\|argument unused" conftest.err; then
10694 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
10697
10698 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10700$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10701 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
10704 :
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707$as_echo "yes" >&6; }
10708
10709 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10710 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10711 fi
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10714$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10715 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10716 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10717 ac_ext=cpp
10718ac_cpp='$CXXCPP $CPPFLAGS'
10719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10722
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h. */
10725
10726int
10727main ()
10728{
10729
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734if ac_fn_cxx_try_compile "$LINENO"; then :
10735 if grep -q "unrecognized\|argument unused" conftest.err; then
10736 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; }
10739 :
10740 else
10741 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10743$as_echo "yes" >&6; }
10744
10745 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10746 fi
10747
10748else
10749 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752 :
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 ac_ext=cpp
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
10761
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10763$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10764 ac_gecode_save_CFLAGS="${CFLAGS}"
10765 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10766 ac_ext=c
10767ac_cpp='$CPP $CPPFLAGS'
10768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770ac_compiler_gnu=$ac_cv_c_compiler_gnu
10771
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h. */
10774
10775int
10776main ()
10777{
10778
10779 ;
10780 return 0;
10781}
10782_ACEOF
10783if ac_fn_c_try_compile "$LINENO"; then :
10784 if grep -q "unrecognized\|argument unused" conftest.err; then
10785 CFLAGS="${ac_gecode_save_CFLAGS}"
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
10788 :
10789 else
10790 CFLAGS="${ac_gecode_save_CFLAGS}"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792$as_echo "yes" >&6; }
10793
10794 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10795 fi
10796
10797else
10798 CFLAGS="${ac_gecode_save_CFLAGS}"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
10801 :
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 ac_ext=cpp
10805ac_cpp='$CXXCPP $CPPFLAGS'
10806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10809
10810 fi
10811 else
10812 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10814$as_echo "yes" >&6; }
10815
10816 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10817 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10818 fi
10819
10820else
10821 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
10824
10825 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10827$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10828 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830$as_echo "no" >&6; }
10831 :
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834$as_echo "yes" >&6; }
10835
10836 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10837 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10838 fi
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10841$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10842 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10843 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10844 ac_ext=cpp
10845ac_cpp='$CXXCPP $CPPFLAGS'
10846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10849
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h. */
10852
10853int
10854main ()
10855{
10856
10857 ;
10858 return 0;
10859}
10860_ACEOF
10861if ac_fn_cxx_try_compile "$LINENO"; then :
10862 if grep -q "unrecognized\|argument unused" conftest.err; then
10863 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865$as_echo "no" >&6; }
10866 :
10867 else
10868 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10870$as_echo "yes" >&6; }
10871
10872 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10873 fi
10874
10875else
10876 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879 :
10880fi
10881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 ac_ext=cpp
10883ac_cpp='$CXXCPP $CPPFLAGS'
10884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10887
10888
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10890$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10891 ac_gecode_save_CFLAGS="${CFLAGS}"
10892 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10893 ac_ext=c
10894ac_cpp='$CPP $CPPFLAGS'
10895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h. */
10901
10902int
10903main ()
10904{
10905
10906 ;
10907 return 0;
10908}
10909_ACEOF
10910if ac_fn_c_try_compile "$LINENO"; then :
10911 if grep -q "unrecognized\|argument unused" conftest.err; then
10912 CFLAGS="${ac_gecode_save_CFLAGS}"
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
10915 :
10916 else
10917 CFLAGS="${ac_gecode_save_CFLAGS}"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919$as_echo "yes" >&6; }
10920
10921 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10922 fi
10923
10924else
10925 CFLAGS="${ac_gecode_save_CFLAGS}"
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
10928 :
10929fi
10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 ac_ext=cpp
10932ac_cpp='$CXXCPP $CPPFLAGS'
10933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10936
10937 fi
10938fi
10939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 ac_ext=cpp
10941ac_cpp='$CXXCPP $CPPFLAGS'
10942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10945
10946 fi
10947
10948 ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
10949if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
10950
10951$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
10952
10953fi
10954
10955 ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
10956if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
10957
10958$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
10959
10960fi
10961
10962
10963 docdir="${datadir}/doc/gecode"
10964
10965
10966 MANIFEST="@true"
10967
10968
10969 SBJEXT="s"
10970
10971 LIBEXT="${DLLEXT}"
10972
10973 LIBPREFIX="lib${ac_gecode_userprefix}gecode"
10974
10975 STATICLIBEXT="a"
10976
10977 MINUSLDIR="-L${libdir}"
10978
10979 LINKLIBDIR=""
10980
10981
10982 cygpathprefix=$prefix
10983 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
10984 cygpathprefix="${cygpathprefix}"
10985
10986
10987 COMPILEOBJ="-c -o "
10988
10989 COMPILESBJ="-S -o "
10990
10991 CXXIN=" "
10992
10993 CCIN=" "
10994
10995 EXAMPLES_EXTRA_CXXFLAGS=""
10996
10997
10998 INSTALLLIBS="no"
10999
11000
11001 LINKPREFIX="-l${ac_gecode_userprefix}gecode"
11002
11003 LINKSUFFIX=""
11004
11005
11006 LINKOUTPUT="-o "
11007
11008 EXEOUTPUT="-o "
11009
11010
11011 SUPPORT="support"
11012
11013 KERNEL="kernel"
11014
11015 SEARCH="search"
11016
11017 INT="int"
11018
11019 FLOAT="float"
11020
11021 SET="set"
11022
11023 MM="minimodel"
11024
11025 GIST="gist"
11026
11027 FLATZINC="flatzinc"
11028
11029 DRIVER="driver"
11030
11031
11032 if test "${enable_debug:-no}" = "no"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
11034$as_echo_n "checking if compiler supports forced inlining... " >&6; }
11035 ac_ext=cpp
11036ac_cpp='$CXXCPP $CPPFLAGS'
11037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11040
11041 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11042 CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h. */
11045#ifndef __clang__
11046 # error "Macro __clang__ is undefined!"
11047 /* For some compilers (eg. SGI's CC), #error is not
11048 enough... */
11049 please, do fail
11050 #endif
11051int
11052main ()
11053{
11054
11055 ;
11056 return 0;
11057}
11058_ACEOF
11059if ac_fn_cxx_try_compile "$LINENO"; then :
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061$as_echo "no" >&6; }
11062
11063$as_echo "#define forceinline inline" >>confdefs.h
11064
11065else
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h. */
11068
11069 inline __attribute__ ((__always_inline__)) void foo(void) {}
11070int
11071main ()
11072{
11073
11074 ;
11075 return 0;
11076}
11077_ACEOF
11078if ac_fn_cxx_try_compile "$LINENO"; then :
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080$as_echo "yes" >&6; }
11081
11082$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
11083
11084else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
11087
11088$as_echo "#define forceinline inline" >>confdefs.h
11089
11090fi
11091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092fi
11093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 CXXFLAGS=${ac_gecode_save_CXXFLAGS}
11095 ac_ext=cpp
11096ac_cpp='$CXXCPP $CPPFLAGS'
11097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11100
11101
11102 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11104$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11105 if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107$as_echo "no" >&6; }
11108 :
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111$as_echo "yes" >&6; }
11112
11113 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11114 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11115 fi
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11118$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11119 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11120 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11121 ac_ext=cpp
11122ac_cpp='$CXXCPP $CPPFLAGS'
11123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11126
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h. */
11129
11130int
11131main ()
11132{
11133
11134 ;
11135 return 0;
11136}
11137_ACEOF
11138if ac_fn_cxx_try_compile "$LINENO"; then :
11139 if grep -q "unrecognized\|argument unused" conftest.err; then
11140 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
11143 :
11144 else
11145 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11147$as_echo "yes" >&6; }
11148
11149 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11150 fi
11151
11152else
11153 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
11156 :
11157fi
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 ac_ext=cpp
11160ac_cpp='$CXXCPP $CPPFLAGS'
11161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11164
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11167$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11168 ac_gecode_save_CFLAGS="${CFLAGS}"
11169 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
11170 ac_ext=c
11171ac_cpp='$CPP $CPPFLAGS'
11172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11174ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177/* end confdefs.h. */
11178
11179int
11180main ()
11181{
11182
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_compile "$LINENO"; then :
11188 if grep -q "unrecognized\|argument unused" conftest.err; then
11189 CFLAGS="${ac_gecode_save_CFLAGS}"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192 :
11193 else
11194 CFLAGS="${ac_gecode_save_CFLAGS}"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196$as_echo "yes" >&6; }
11197
11198 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11199 fi
11200
11201else
11202 CFLAGS="${ac_gecode_save_CFLAGS}"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204$as_echo "no" >&6; }
11205 :
11206fi
11207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 ac_ext=cpp
11209ac_cpp='$CXXCPP $CPPFLAGS'
11210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11213
11214 fi
11215
11216 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
11218$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
11219 if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221$as_echo "no" >&6; }
11222 :
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225$as_echo "yes" >&6; }
11226
11227 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
11228 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
11229 fi
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
11232$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
11233 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11234 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11235 ac_ext=cpp
11236ac_cpp='$CXXCPP $CPPFLAGS'
11237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11240
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242/* end confdefs.h. */
11243
11244int
11245main ()
11246{
11247
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252if ac_fn_cxx_try_compile "$LINENO"; then :
11253 if grep -q "unrecognized\|argument unused" conftest.err; then
11254 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256$as_echo "no" >&6; }
11257 :
11258 else
11259 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261$as_echo "yes" >&6; }
11262
11263 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
11264 fi
11265
11266else
11267 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270 :
11271fi
11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 ac_ext=cpp
11274ac_cpp='$CXXCPP $CPPFLAGS'
11275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11278
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
11281$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
11282 ac_gecode_save_CFLAGS="${CFLAGS}"
11283 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
11284 ac_ext=c
11285ac_cpp='$CPP $CPPFLAGS'
11286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288ac_compiler_gnu=$ac_cv_c_compiler_gnu
11289
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291/* end confdefs.h. */
11292
11293int
11294main ()
11295{
11296
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_compile "$LINENO"; then :
11302 if grep -q "unrecognized\|argument unused" conftest.err; then
11303 CFLAGS="${ac_gecode_save_CFLAGS}"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306 :
11307 else
11308 CFLAGS="${ac_gecode_save_CFLAGS}"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310$as_echo "yes" >&6; }
11311
11312 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
11313 fi
11314
11315else
11316 CFLAGS="${ac_gecode_save_CFLAGS}"
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319 :
11320fi
11321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 ac_ext=cpp
11323ac_cpp='$CXXCPP $CPPFLAGS'
11324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11327
11328 fi
11329 else
11330
11331$as_echo "#define forceinline inline" >>confdefs.h
11332
11333
11334 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11336$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11337 if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
11340 :
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343$as_echo "yes" >&6; }
11344
11345 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11346 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11347 fi
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11350$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11351 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11352 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11353 ac_ext=cpp
11354ac_cpp='$CXXCPP $CPPFLAGS'
11355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11358
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360/* end confdefs.h. */
11361
11362int
11363main ()
11364{
11365
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370if ac_fn_cxx_try_compile "$LINENO"; then :
11371 if grep -q "unrecognized\|argument unused" conftest.err; then
11372 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374$as_echo "no" >&6; }
11375 :
11376 else
11377 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379$as_echo "yes" >&6; }
11380
11381 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11382 fi
11383
11384else
11385 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
11388 :
11389fi
11390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 ac_ext=cpp
11392ac_cpp='$CXXCPP $CPPFLAGS'
11393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11396
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
11399$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
11400 ac_gecode_save_CFLAGS="${CFLAGS}"
11401 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
11402 ac_ext=c
11403ac_cpp='$CPP $CPPFLAGS'
11404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11406ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h. */
11410
11411int
11412main ()
11413{
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419if ac_fn_c_try_compile "$LINENO"; then :
11420 if grep -q "unrecognized\|argument unused" conftest.err; then
11421 CFLAGS="${ac_gecode_save_CFLAGS}"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
11424 :
11425 else
11426 CFLAGS="${ac_gecode_save_CFLAGS}"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428$as_echo "yes" >&6; }
11429
11430 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11431 fi
11432
11433else
11434 CFLAGS="${ac_gecode_save_CFLAGS}"
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
11437 :
11438fi
11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 ac_ext=cpp
11441ac_cpp='$CXXCPP $CPPFLAGS'
11442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11445
11446 fi
11447
11448 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11450$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11451 if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454 :
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457$as_echo "yes" >&6; }
11458
11459 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11460 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11461 fi
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11464$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11465 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11466 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11467 ac_ext=cpp
11468ac_cpp='$CXXCPP $CPPFLAGS'
11469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11472
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h. */
11475
11476int
11477main ()
11478{
11479
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484if ac_fn_cxx_try_compile "$LINENO"; then :
11485 if grep -q "unrecognized\|argument unused" conftest.err; then
11486 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
11489 :
11490 else
11491 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11493$as_echo "yes" >&6; }
11494
11495 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11496 fi
11497
11498else
11499 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502 :
11503fi
11504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 ac_ext=cpp
11506ac_cpp='$CXXCPP $CPPFLAGS'
11507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
11513$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
11514 ac_gecode_save_CFLAGS="${CFLAGS}"
11515 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
11516 ac_ext=c
11517ac_cpp='$CPP $CPPFLAGS'
11518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11520ac_compiler_gnu=$ac_cv_c_compiler_gnu
11521
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h. */
11524
11525int
11526main ()
11527{
11528
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533if ac_fn_c_try_compile "$LINENO"; then :
11534 if grep -q "unrecognized\|argument unused" conftest.err; then
11535 CFLAGS="${ac_gecode_save_CFLAGS}"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
11538 :
11539 else
11540 CFLAGS="${ac_gecode_save_CFLAGS}"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542$as_echo "yes" >&6; }
11543
11544 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11545 fi
11546
11547else
11548 CFLAGS="${ac_gecode_save_CFLAGS}"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551 :
11552fi
11553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 ac_ext=cpp
11555ac_cpp='$CXXCPP $CPPFLAGS'
11556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11559
11560 fi
11561 fi
11562 ;;
11563 esac
11564 ;;
11565microsoft)
11566 $as_echo "#define forceinline __forceinline" >>confdefs.h
11567
11568 CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
11569 CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
11570 CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
11571 CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
11572
11573$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
11574
11575 if test "${enable_debug:-no}" = "no"; then
11576 CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11577 CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11578 CFLAGS="-MD -GS- -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
11579 CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
11580
11581 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11583$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11584 if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587 :
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590$as_echo "yes" >&6; }
11591
11592 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11593 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11594 fi
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11597$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11598 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11599 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11600 ac_ext=cpp
11601ac_cpp='$CXXCPP $CPPFLAGS'
11602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11605
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607/* end confdefs.h. */
11608
11609int
11610main ()
11611{
11612
11613 ;
11614 return 0;
11615}
11616_ACEOF
11617if ac_fn_cxx_try_compile "$LINENO"; then :
11618 if grep -q "unrecognized\|argument unused" conftest.err; then
11619 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
11622 :
11623 else
11624 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626$as_echo "yes" >&6; }
11627
11628 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11629 fi
11630
11631else
11632 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634$as_echo "no" >&6; }
11635 :
11636fi
11637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 ac_ext=cpp
11639ac_cpp='$CXXCPP $CPPFLAGS'
11640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11643
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
11646$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
11647 ac_gecode_save_CFLAGS="${CFLAGS}"
11648 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
11649 ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656/* end confdefs.h. */
11657
11658int
11659main ()
11660{
11661
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666if ac_fn_c_try_compile "$LINENO"; then :
11667 if grep -q "unrecognized\|argument unused" conftest.err; then
11668 CFLAGS="${ac_gecode_save_CFLAGS}"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671 :
11672 else
11673 CFLAGS="${ac_gecode_save_CFLAGS}"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675$as_echo "yes" >&6; }
11676
11677 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11678 fi
11679
11680else
11681 CFLAGS="${ac_gecode_save_CFLAGS}"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
11684 :
11685fi
11686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 ac_ext=cpp
11688ac_cpp='$CXXCPP $CPPFLAGS'
11689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11692
11693 fi
11694
11695 DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
11696 GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
11697 else
11698 CFLAGS="-MDd -Zi -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
11699 CXXFLAGS="-MDd -Zi -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
11700
11701 DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
11702 GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
11703 fi
11704
11705 sharedlibdir="${bindir}"
11706
11707 docdir="${prefix}"
11708
11709 if test "${enable_static:-no}" = "yes"; then
11710 as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
11711 fi
11712
11713 # Extract the first word of "mt.exe", so it can be a program name with args.
11714set dummy mt.exe; ac_word=$2
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if ${ac_cv_prog_MANIFEST+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 if test -n "$MANIFEST"; then
11721 ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
11722else
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_prog_MANIFEST="mt.exe"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734done
11735 done
11736IFS=$as_save_IFS
11737
11738fi
11739fi
11740MANIFEST=$ac_cv_prog_MANIFEST
11741if test -n "$MANIFEST"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
11743$as_echo "$MANIFEST" >&6; }
11744else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
11747fi
11748
11749
11750
11751 DLLPATH=""
11752
11753
11754 SBJEXT="sbj"
11755
11756 DLLEXT="dll"
11757
11758 SOSUFFIX=""
11759
11760 SOLINKSUFFIX=""
11761
11762 WLSONAME=""
11763
11764 LIBEXT="lib"
11765
11766 LIBPREFIX="${ac_gecode_userprefix}Gecode"
11767
11768 LINKPREFIX="${ac_gecode_userprefix}Gecode"
11769
11770 LINKSUFFIX=".lib"
11771
11772 MINUSLDIR=""
11773
11774 LINKLIBDIR="${libdir}/"
11775
11776
11777 cygpathprefix=$prefix
11778 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
11779 cygpathprefix=`cygpath -m ${cygpathprefix}`
11780
11781 cygpathprefix="${cygpathprefix}"
11782
11783 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
11784
11785 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
11786
11787 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
11788
11789 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
11790
11791 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
11792
11793 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
11794
11795 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
11796
11797 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
11798
11799 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
11800
11801 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
11802
11803
11804 COMPILEOBJ="-c -Fo"
11805
11806 COMPILESBJ="-c -Fa"
11807
11808 CXXIN="-Tp"
11809
11810 CCIN="-Tc"
11811
11812
11813 INSTALLLIBS="yes"
11814
11815
11816 LINKOUTPUT="-Fe"
11817
11818 EXEOUTPUT="-Fe"
11819
11820
11821 SUPPORT="Support"
11822
11823 KERNEL="Kernel"
11824
11825 SEARCH="Search"
11826
11827 INT="Int"
11828
11829 FLOAT="Float"
11830
11831 SET="Set"
11832
11833 MM="Minimodel"
11834
11835 GIST="Gist"
11836
11837 FLATZINC="FlatZinc"
11838
11839 DRIVER="Driver"
11840
11841 ;;
11842*)
11843 as_fn_error $? "Gecode currently only supports the GNU and Microsoft compilers." "$LINENO" 5
11844 ;;
11845esac
11846
11847ac_fn_cxx_check_header_mongrel "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default"
11848if test "x$ac_cv_header_ext_hash_map" = xyes; then :
11849
11850$as_echo "#define GECODE_HAS_GNU_HASH_MAP /**/" >>confdefs.h
11851
11852fi
11853
11854
11855
11856ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default"
11857if test "x$ac_cv_header_unordered_map" = xyes; then :
11858
11859$as_echo "#define GECODE_HAS_UNORDERED_MAP /**/" >>confdefs.h
11860
11861fi
11862
11863
11864
11865
11866 # Check whether --enable-doc-dot was given.
11867if test "${enable_doc_dot+set}" = set; then :
11868 enableval=$enable_doc_dot;
11869fi
11870
11871 # Extract the first word of "dot", so it can be a program name with args.
11872set dummy dot; ac_word=$2
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874$as_echo_n "checking for $ac_word... " >&6; }
11875if ${ac_cv_prog_DOT+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877else
11878 if test -n "$DOT"; then
11879 ac_cv_prog_DOT="$DOT" # Let the user override the test.
11880else
11881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882for as_dir in $PATH
11883do
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 ac_cv_prog_DOT="dot"
11889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 break 2
11891 fi
11892done
11893 done
11894IFS=$as_save_IFS
11895
11896fi
11897fi
11898DOT=$ac_cv_prog_DOT
11899if test -n "$DOT"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
11901$as_echo "$DOT" >&6; }
11902else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904$as_echo "no" >&6; }
11905fi
11906
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable graphs in the documentation" >&5
11909$as_echo_n "checking whether to enable graphs in the documentation... " >&6; }
11910 if test "${enable_doc_dot:-yes}" = "yes"; then
11911 if test x$DOT = x; then
11912 if test x"${enable_doc_dot}" = x; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
11915 GECODE_DOXYGEN_DOT=NO
11916
11917 else
11918 as_fn_error $? "you need the dot tool from graphviz to generate graphs in the documentation" "$LINENO" 5
11919 fi
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11922$as_echo "yes" >&6; }
11923 GECODE_DOXYGEN_DOT=YES
11924
11925 fi
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
11929 GECODE_DOXYGEN_DOT=NO
11930
11931 fi
11932
11933 # Check whether --enable-doc-search was given.
11934if test "${enable_doc_search+set}" = set; then :
11935 enableval=$enable_doc_search;
11936fi
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the documentation search engine" >&5
11939$as_echo_n "checking whether to enable the documentation search engine... " >&6; }
11940 if test "${enable_doc_search:-no}" = "yes"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942$as_echo "yes" >&6; }
11943 ENABLEDOCSEARCH="yes"
11944
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
11948 ENABLEDOCSEARCH="no"
11949
11950 fi
11951 # Check whether --enable-doc-tagfile was given.
11952if test "${enable_doc_tagfile+set}" = set; then :
11953 enableval=$enable_doc_tagfile;
11954fi
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate a doxygen tagfile" >&5
11957$as_echo_n "checking whether to generate a doxygen tagfile... " >&6; }
11958 if test "${enable_doc_tagfile:-yes}" = "yes"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960$as_echo "yes" >&6; }
11961 GECODE_DOXYGEN_TAGFILE="doc/gecode-doc.tag"
11962
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
11966
11967 fi
11968 # Check whether --enable-doc-chm was given.
11969if test "${enable_doc_chm+set}" = set; then :
11970 enableval=$enable_doc_chm;
11971fi
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build compressed html documentation" >&5
11974$as_echo_n "checking whether to build compressed html documentation... " >&6; }
11975 case $host_os in
11976 windows*)
11977 if test "${enable_doc_chm:-yes}" = "yes"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979$as_echo "yes" >&6; }
11980 ENABLEDOCCHM="yes"
11981
11982 ENABLEDOCSEARCH="no"
11983
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987 ENABLEDOCCHM="no"
11988
11989 fi
11990 ;;
11991 *)
11992 if test "${enable_doc_chm:-no}" = "yes"; then
11993 as_fn_error $? "building chms is only supported on Windows." "$LINENO" 5
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996$as_echo "no" >&6; }
11997 ENABLEDOCCHM="no"
11998
11999 fi
12000 ;;
12001 esac
12002 # Check whether --enable-doc-docset was given.
12003if test "${enable_doc_docset+set}" = set; then :
12004 enableval=$enable_doc_docset;
12005fi
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build docset documentation for XCode" >&5
12008$as_echo_n "checking whether to build docset documentation for XCode... " >&6; }
12009 case $host_os in
12010 darwin*)
12011 if test "${enable_doc_docset:-no}" = "yes"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013$as_echo "yes" >&6; }
12014 ENABLEDOCDOCSET="yes"
12015
12016 ENABLEDOCSEARCH="no"
12017
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021 ENABLEDOCDOCSET="no"
12022
12023 fi
12024 ;;
12025 *)
12026 if test "${enable_doc_docset:-no}" = "yes"; then
12027 as_fn_error $? "building docsets is only supported on Mac OS X." "$LINENO" 5
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030$as_echo "no" >&6; }
12031 ENABLEDOCDOCSET="no"
12032
12033 fi
12034 ;;
12035 esac
12036
12037
12038
12039
12040
12041
12042
12043# Check whether --with-vis was given.
12044if test "${with_vis+set}" = set; then :
12045 withval=$with_vis;
12046fi
12047
12048 if test "${with_vis:-no}" != "no"; then
12049 with_vis=${with_vis//,/ }
12050 ac_gecode_vis="${with_vis}${ac_gecode_vis:+ }${ac_gecode_vis}"
12051 fi
12052
12053
12054 # Check whether --enable-float-vars was given.
12055if test "${enable_float_vars+set}" = set; then :
12056 enableval=$enable_float_vars;
12057fi
12058
12059 ac_gecode_vis="\$(top_srcdir)/gecode/float/var-imp/float.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the float variables library" >&5
12061$as_echo_n "checking whether to build the float variables library... " >&6; }
12062 if test "${enable_float_vars:-yes}" = "yes"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064$as_echo "yes" >&6; }
12065 enable_float_vars="yes";
12066 enable_int_vars="yes";
12067 LINKFLOAT=${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX}
12068
12069
12070
12071$as_echo "#define GECODE_HAS_FLOAT_VARS /**/" >>confdefs.h
12072
12073 else
12074 enable_float_vars="no";
12075
12076
12077
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
12081 fi
12082 enable_float_vars=${enable_float_vars}
12083
12084
12085
12086
12087 # Check whether --enable-set-vars was given.
12088if test "${enable_set_vars+set}" = set; then :
12089 enableval=$enable_set_vars;
12090fi
12091
12092 ac_gecode_vis="\$(top_srcdir)/gecode/set/var-imp/set.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the set variables library" >&5
12094$as_echo_n "checking whether to build the set variables library... " >&6; }
12095 if test "${enable_set_vars:-yes}" = "yes"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12097$as_echo "yes" >&6; }
12098 enable_set_vars="yes";
12099 enable_int_vars="yes";
12100 LINKSET=${LINKLIBDIR}${LINKPREFIX}${SET}${DLL_ARCH}${LINKSUFFIX}
12101
12102
12103
12104$as_echo "#define GECODE_HAS_SET_VARS /**/" >>confdefs.h
12105
12106 else
12107 enable_set_vars="no";
12108
12109
12110
12111
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
12114 fi
12115 enable_set_vars=${enable_set_vars}
12116
12117
12118
12119
12120 # Check whether --enable-int-vars was given.
12121if test "${enable_int_vars+set}" = set; then :
12122 enableval=$enable_int_vars;
12123fi
12124
12125 ac_gecode_vis="\$(top_srcdir)/gecode/int/var-imp/int.vis \$(top_srcdir)/gecode/int/var-imp/bool.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the int variables library" >&5
12127$as_echo_n "checking whether to build the int variables library... " >&6; }
12128 if test "${enable_int_vars:-yes}" = "yes"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130$as_echo "yes" >&6; }
12131 enable_int_vars="yes";
12132
12133 LINKINT=${LINKLIBDIR}${LINKPREFIX}${INT}${DLL_ARCH}${LINKSUFFIX}
12134
12135
12136
12137$as_echo "#define GECODE_HAS_INT_VARS /**/" >>confdefs.h
12138
12139 else
12140 enable_int_vars="no";
12141
12142
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146 fi
12147 enable_int_vars=${enable_int_vars}
12148
12149
12150
12151
12152
12153 # Check whether --enable-mpfr was given.
12154if test "${enable_mpfr+set}" = set; then :
12155 enableval=$enable_mpfr;
12156fi
12157
12158 if test "${enable_float_vars:-yes}" = "yes"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with MPFR support" >&5
12160$as_echo_n "checking whether to build with MPFR support... " >&6; }
12161 if test "${enable_mpfr:-yes}" = "yes"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12163$as_echo "yes" >&6; }
12164
12165# Check whether --with-gmp-include was given.
12166if test "${with_gmp_include+set}" = set; then :
12167 withval=$with_gmp_include;
12168fi
12169
12170 if test "${with_gmp_include:-no}" != "no"; then
12171 GMP_CPPFLAGS=-I${with_gmp_include}
12172
12173 fi
12174
12175
12176# Check whether --with-gmp-lib was given.
12177if test "${with_gmp_lib+set}" = set; then :
12178 withval=$with_gmp_lib;
12179fi
12180
12181
12182 ac_gecode_tmp_gmp_lib=""
12183 if test "${with_gmp_lib:-no}" != "no"; then
12184 case $ac_gecode_compiler_vendor in
12185 gnu)
12186 GMP_LIB_PATH="-L${with_gmp_lib}"
12187
12188 ;;
12189 microsoft)
12190 GMP_LIB_PATH="/LIBPATH:${with_gmp_lib}"
12191
12192 ;;
12193 esac
12194 else
12195 GMP_LIB_PATH=""
12196
12197 fi
12198
12199 ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
12200 ac_gecode_save_LIBS="${LIBS}"
12201 case $ac_gecode_compiler_vendor in
12202 gnu)
12203 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
12204 LIBS="${LIBS}${LIBS:+ } ${GMP_LIB_PATH}"
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12206$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12207if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209else
12210 ac_check_lib_save_LIBS=$LIBS
12211LIBS="-lgmp $LIBS"
12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h. */
12214
12215/* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221char __gmpz_init ();
12222int
12223main ()
12224{
12225return __gmpz_init ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230if ac_fn_cxx_try_link "$LINENO"; then :
12231 ac_cv_lib_gmp___gmpz_init=yes
12232else
12233 ac_cv_lib_gmp___gmpz_init=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12240$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12241if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12242
12243 GMP_LINK="${ac_gecode_tmp_gmp_lib} -lgmp"
12244
12245
12246else
12247
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
12249$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
12250if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252else
12253 ac_check_lib_save_LIBS=$LIBS
12254LIBS="-lmpir $LIBS"
12255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256/* end confdefs.h. */
12257
12258/* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261#ifdef __cplusplus
12262extern "C"
12263#endif
12264char __gmpz_init ();
12265int
12266main ()
12267{
12268return __gmpz_init ();
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273if ac_fn_cxx_try_link "$LINENO"; then :
12274 ac_cv_lib_mpir___gmpz_init=yes
12275else
12276 ac_cv_lib_mpir___gmpz_init=no
12277fi
12278rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280LIBS=$ac_check_lib_save_LIBS
12281fi
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12283$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12284if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12285
12286 GMP_LINK="${ac_gecode_tmp_gmp_lib} -lmpir"
12287
12288
12289else
12290
12291 enable_mpfr=no;
12292
12293fi
12294
12295
12296fi
12297
12298 ;;
12299 microsoft)
12300 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
12301 LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} gmp.lib"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12303$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12304if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 ac_check_lib_save_LIBS=$LIBS
12308LIBS="-lgmp $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h. */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315#ifdef __cplusplus
12316extern "C"
12317#endif
12318char __gmpz_init ();
12319int
12320main ()
12321{
12322return __gmpz_init ();
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327if ac_fn_cxx_try_link "$LINENO"; then :
12328 ac_cv_lib_gmp___gmpz_init=yes
12329else
12330 ac_cv_lib_gmp___gmpz_init=no
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334LIBS=$ac_check_lib_save_LIBS
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12337$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12338if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12339
12340 GMP_LINK="${ac_gecode_tmp_gmp_lib} gmp.lib"
12341
12342
12343else
12344
12345 LIBS="${ac_gecode_save_LIBS}"
12346 LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} mpir.lib"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
12348$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
12349if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351else
12352 ac_check_lib_save_LIBS=$LIBS
12353LIBS="-lmpir $LIBS"
12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355/* end confdefs.h. */
12356
12357/* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363char __gmpz_init ();
12364int
12365main ()
12366{
12367return __gmpz_init ();
12368 ;
12369 return 0;
12370}
12371_ACEOF
12372if ac_fn_cxx_try_link "$LINENO"; then :
12373 ac_cv_lib_mpir___gmpz_init=yes
12374else
12375 ac_cv_lib_mpir___gmpz_init=no
12376fi
12377rm -f core conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12379LIBS=$ac_check_lib_save_LIBS
12380fi
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12382$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12383if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12384
12385 GMP_LINK="${ac_gecode_tmp_gmp_lib} mpir.lib"
12386
12387
12388else
12389
12390 enable_mpfr=no;
12391
12392fi
12393
12394
12395fi
12396
12397 ;;
12398 esac
12399 CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12400 LIBS="${ac_gecode_save_LIBS}"
12401
12402
12403# Check whether --with-mpfr-include was given.
12404if test "${with_mpfr_include+set}" = set; then :
12405 withval=$with_mpfr_include;
12406fi
12407
12408 if test "${with_mpfr_include:-no}" != "no"; then
12409 MPFR_CPPFLAGS=-I${with_mpfr_include}
12410
12411 fi
12412
12413
12414# Check whether --with-mpfr-lib was given.
12415if test "${with_mpfr_lib+set}" = set; then :
12416 withval=$with_mpfr_lib;
12417fi
12418
12419 if test "${with_mpfr_lib:-no}" != "no"; then
12420 case $ac_gecode_compiler_vendor in
12421 gnu)
12422 MPFR_LIB_PATH="-L${with_mpfr_lib}"
12423
12424 ;;
12425 microsoft)
12426 MPFR_LIB_PATH="/LIBPATH:${with_mpfr_lib}"
12427
12428 ;;
12429 esac
12430 else
12431 MPFR_LIB_PATH=""
12432
12433 fi
12434 case $ac_gecode_compiler_vendor in
12435 gnu)
12436 MPFR_LINK="-lmpfr"
12437
12438 ;;
12439 microsoft)
12440 MPFR_LINK="mpfr.lib"
12441
12442 ;;
12443 esac
12444
12445 ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
12446 ac_gecode_save_LIBS="${LIBS}"
12447 case $ac_gecode_compiler_vendor in
12448 gnu)
12449 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12450 LIBS="${LIBS}${LIBS:+ } ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12451 for ac_header in gmp.h
12452do :
12453 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12454if test "x$ac_cv_header_gmp_h" = xyes; then :
12455 cat >>confdefs.h <<_ACEOF
12456#define HAVE_GMP_H 1
12457_ACEOF
12458 for ac_header in mpfr.h
12459do :
12460 ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12461if test "x$ac_cv_header_mpfr_h" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463#define HAVE_MPFR_H 1
12464_ACEOF
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5
12466$as_echo_n "checking for mpfr_add in -lmpfr... " >&6; }
12467if ${ac_cv_lib_mpfr_mpfr_add+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469else
12470 ac_check_lib_save_LIBS=$LIBS
12471LIBS="-lmpfr $LIBS"
12472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h. */
12474
12475/* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478#ifdef __cplusplus
12479extern "C"
12480#endif
12481char mpfr_add ();
12482int
12483main ()
12484{
12485return mpfr_add ();
12486 ;
12487 return 0;
12488}
12489_ACEOF
12490if ac_fn_cxx_try_link "$LINENO"; then :
12491 ac_cv_lib_mpfr_mpfr_add=yes
12492else
12493 ac_cv_lib_mpfr_mpfr_add=no
12494fi
12495rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497LIBS=$ac_check_lib_save_LIBS
12498fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add" >&5
12500$as_echo "$ac_cv_lib_mpfr_mpfr_add" >&6; }
12501if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes; then :
12502
12503$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12504
12505 enable_mpfr=yes;
12506else
12507 enable_mpfr=no;
12508fi
12509
12510else
12511 enable_mpfr=no;
12512fi
12513
12514done
12515
12516else
12517 enable_mpfr=no;
12518fi
12519
12520done
12521
12522 ;;
12523 microsoft)
12524 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12525 LIBS="${LIBS}${LIBS:+ } /link ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12526 for ac_header in gmp.h
12527do :
12528 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12529if test "x$ac_cv_header_gmp_h" = xyes; then :
12530 cat >>confdefs.h <<_ACEOF
12531#define HAVE_GMP_H 1
12532_ACEOF
12533 for ac_header in mpfr.h
12534do :
12535 ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12536if test "x$ac_cv_header_mpfr_h" = xyes; then :
12537 cat >>confdefs.h <<_ACEOF
12538#define HAVE_MPFR_H 1
12539_ACEOF
12540 ac_fn_cxx_check_func "$LINENO" "mpfr_add" "ac_cv_func_mpfr_add"
12541if test "x$ac_cv_func_mpfr_add" = xyes; then :
12542
12543$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12544
12545 enable_mpfr=yes;
12546else
12547 enable_mpfr=no;
12548fi
12549
12550else
12551 enable_mpfr=no;
12552fi
12553
12554done
12555
12556else
12557 enable_mpfr=no;
12558fi
12559
12560done
12561
12562 ;;
12563 esac
12564 CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12565 LIBS="${ac_gecode_save_LIBS}"
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569 enable_mpfr=no;
12570 fi
12571 else
12572 enable_mpfr=no;
12573 fi
12574 enable_mpfr=${enable_mpfr}
12575
12576
12577
12578 # Check whether --enable-qt was given.
12579if test "${enable_qt+set}" = set; then :
12580 enableval=$enable_qt;
12581fi
12582
12583 for ac_prog in qmake-qt4 qmake
12584do
12585 # Extract the first word of "$ac_prog", so it can be a program name with args.
12586set dummy $ac_prog; ac_word=$2
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588$as_echo_n "checking for $ac_word... " >&6; }
12589if ${ac_cv_prog_QMAKE+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591else
12592 if test -n "$QMAKE"; then
12593 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
12594else
12595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596for as_dir in $PATH
12597do
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_QMAKE="$ac_prog"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606done
12607 done
12608IFS=$as_save_IFS
12609
12610fi
12611fi
12612QMAKE=$ac_cv_prog_QMAKE
12613if test -n "$QMAKE"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
12615$as_echo "$QMAKE" >&6; }
12616else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619fi
12620
12621
12622 test -n "$QMAKE" && break
12623done
12624
12625 for ac_prog in moc-qt4 moc
12626do
12627 # Extract the first word of "$ac_prog", so it can be a program name with args.
12628set dummy $ac_prog; ac_word=$2
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
12631if ${ac_cv_prog_MOC+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633else
12634 if test -n "$MOC"; then
12635 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12636else
12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644 ac_cv_prog_MOC="$ac_prog"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12647 fi
12648done
12649 done
12650IFS=$as_save_IFS
12651
12652fi
12653fi
12654MOC=$ac_cv_prog_MOC
12655if test -n "$MOC"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
12657$as_echo "$MOC" >&6; }
12658else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660$as_echo "no" >&6; }
12661fi
12662
12663
12664 test -n "$MOC" && break
12665done
12666
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Qt support" >&5
12668$as_echo_n "checking whether to build with Qt support... " >&6; }
12669 if test "${enable_qt:-yes}" = "yes"; then
12670 if test "${QMAKE}x" = "x" -o "${MOC}x" = "x"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
12673 else
12674 ac_gecode_qt_version=`${QMAKE} -query QT_VERSION`
12675 ac_gecode_qt_major=`echo ${ac_gecode_qt_version} | grep -o '^[0-9]*'`
12676 ac_gecode_qt_minor=`echo ${ac_gecode_qt_version} | sed -e 's/^[0-9]*\\.//g' -e 's/\\.[0-9]*$//g'`
12677 ac_gecode_qt_ok="yes"
12678 if test ${ac_gecode_qt_major} -lt 4; then ac_gecode_qt_ok="no";
12679 else if test ${ac_gecode_qt_major} -eq 4 \
12680 -a ${ac_gecode_qt_minor} -lt 3; then ac_gecode_qt_ok="no";
12681 fi
12682 fi
12683 if test "${ac_gecode_qt_ok}" != "yes"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688$as_echo "yes" >&6; }
12689
12690$as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h
12691
12692 ac_gecode_qt_tmpdir=`mktemp -d gistqt.XXXXXX` || exit 1
12693 cd ${ac_gecode_qt_tmpdir}
12694 echo "CONFIG += release" > a.pro
12695 if test ${ac_gecode_qt_major} -eq 5; then
12696 echo "QT += widgets printsupport" >> a.pro
12697 fi
12698 ${QMAKE}
12699 if test -d a.xcodeproj; then
12700 ac_gecode_qt_makefile=a.xcodeproj/qt_preprocess.mak
12701 elif test -d a.pbproj; then
12702 ac_gecode_qt_makefile=a.pbproj/qt_preprocess.mak
12703 elif test -f Makefile.Debug; then
12704 if test "${enable_debug:-no}" = "no"; then
12705 ac_gecode_qt_makefile=Makefile.Release
12706 else
12707 ac_gecode_qt_makefile=Makefile.Debug
12708 fi
12709 else
12710 ac_gecode_qt_makefile=Makefile
12711 fi
12712 ac_gecode_qt_defines=`grep ${ac_gecode_qt_makefile} -e 'DEFINES.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12713 ac_gecode_qt_inc=`grep ${ac_gecode_qt_makefile} -e 'INCPATH.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12714 ac_gecode_qt_libs=`grep ${ac_gecode_qt_makefile} -e 'LIBS.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12715 if test -d a.xcodeproj -o -d a.pbproj; then
12716 ac_gecode_qt_libs="-framework QtGui -framework QtCore"
12717 fi
12718 cd ..
12719 rm -r ${ac_gecode_qt_tmpdir}
12720 QTINCLUDES=${ac_gecode_qt_inc}
12721
12722 QTDEFINES=${ac_gecode_qt_defines}
12723
12724 QTLIBS=${ac_gecode_qt_libs}
12725
12726 enable_qt=yes
12727
12728 enable_qt=yes;
12729 fi
12730 fi
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
12734 enable_qt=no;
12735 fi
12736 enable_qt=${enable_qt}
12737
12738
12739
12740 # Check whether --enable-gist was given.
12741if test "${enable_gist+set}" = set; then :
12742 enableval=$enable_gist;
12743fi
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gist" >&5
12746$as_echo_n "checking whether to build Gist... " >&6; }
12747 if test "${enable_gist:-yes}" = "yes" -a "${enable_qt}" = "yes"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749$as_echo "yes" >&6; }
12750 enable_gist=yes
12751
12752
12753$as_echo "#define GECODE_HAS_GIST /**/" >>confdefs.h
12754
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
12758 fi
12759
12760
12761 # Check whether --enable-cbs was given.
12762if test "${enable_cbs+set}" = set; then :
12763 enableval=$enable_cbs;
12764fi
12765
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for cbs" >&5
12767$as_echo_n "checking whether to build with support for cbs... " >&6; }
12768 if test "${enable_cbs:-no}" = "yes"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770$as_echo "yes" >&6; }
12771 enable_cbs=yes
12772
12773
12774$as_echo "#define GECODE_HAS_CBS /**/" >>confdefs.h
12775
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
12779 fi
12780
12781
12782 # Check whether --enable-cpprofiler was given.
12783if test "${enable_cpprofiler+set}" = set; then :
12784 enableval=$enable_cpprofiler;
12785fi
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for CPProfiler" >&5
12788$as_echo_n "checking whether to build with support for CPProfiler... " >&6; }
12789 if test "${enable_cpprofiler:-no}" = "yes"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12791$as_echo "yes" >&6; }
12792 enable_cpprofiler=yes
12793
12794
12795$as_echo "#define GECODE_HAS_CPPROFILER /**/" >>confdefs.h
12796
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
12800 fi
12801
12802if test -n "$ac_tool_prefix"; then
12803 # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args.
12804set dummy ${ac_tool_prefix}flex; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if ${ac_cv_prog_HAVEFLEX+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$HAVEFLEX"; then
12811 ac_cv_prog_HAVEFLEX="$HAVEFLEX" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_HAVEFLEX="${ac_tool_prefix}flex"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830HAVEFLEX=$ac_cv_prog_HAVEFLEX
12831if test -n "$HAVEFLEX"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEFLEX" >&5
12833$as_echo "$HAVEFLEX" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840fi
12841if test -z "$ac_cv_prog_HAVEFLEX"; then
12842 ac_ct_HAVEFLEX=$HAVEFLEX
12843 # Extract the first word of "flex", so it can be a program name with args.
12844set dummy flex; ac_word=$2
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846$as_echo_n "checking for $ac_word... " >&6; }
12847if ${ac_cv_prog_ac_ct_HAVEFLEX+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849else
12850 if test -n "$ac_ct_HAVEFLEX"; then
12851 ac_cv_prog_ac_ct_HAVEFLEX="$ac_ct_HAVEFLEX" # Let the user override the test.
12852else
12853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in $PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_prog_ac_ct_HAVEFLEX="flex"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864done
12865 done
12866IFS=$as_save_IFS
12867
12868fi
12869fi
12870ac_ct_HAVEFLEX=$ac_cv_prog_ac_ct_HAVEFLEX
12871if test -n "$ac_ct_HAVEFLEX"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEFLEX" >&5
12873$as_echo "$ac_ct_HAVEFLEX" >&6; }
12874else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876$as_echo "no" >&6; }
12877fi
12878
12879 if test "x$ac_ct_HAVEFLEX" = x; then
12880 HAVEFLEX=""
12881 else
12882 case $cross_compiling:$ac_tool_warned in
12883yes:)
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12886ac_tool_warned=yes ;;
12887esac
12888 HAVEFLEX=$ac_ct_HAVEFLEX
12889 fi
12890else
12891 HAVEFLEX="$ac_cv_prog_HAVEFLEX"
12892fi
12893
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least flex 2.5.33" >&5
12895$as_echo_n "checking whether we have at least flex 2.5.33... " >&6; }
12896 if test "${HAVEFLEX}x" = "x"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
12899 HAVE_FLEXBISON="no"
12900
12901 else
12902 if flex --version | grep ' 2\.5\.3[3-9].*$' >/dev/null 2>&1 ||
12903 flex --version | grep ' 2\.5\.4[0-9].*$' >/dev/null 2>&1 ||
12904 flex --version | grep ' 2\.[6-9]\.[0-9]*$' >/dev/null 2>&1
12905 then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907$as_echo "yes" >&6; }
12908 if test -n "$ac_tool_prefix"; then
12909 # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args.
12910set dummy ${ac_tool_prefix}bison; ac_word=$2
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
12913if ${ac_cv_prog_HAVEBISON+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915else
12916 if test -n "$HAVEBISON"; then
12917 ac_cv_prog_HAVEBISON="$HAVEBISON" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12926 ac_cv_prog_HAVEBISON="${ac_tool_prefix}bison"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930done
12931 done
12932IFS=$as_save_IFS
12933
12934fi
12935fi
12936HAVEBISON=$ac_cv_prog_HAVEBISON
12937if test -n "$HAVEBISON"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEBISON" >&5
12939$as_echo "$HAVEBISON" >&6; }
12940else
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
12943fi
12944
12945
12946fi
12947if test -z "$ac_cv_prog_HAVEBISON"; then
12948 ac_ct_HAVEBISON=$HAVEBISON
12949 # Extract the first word of "bison", so it can be a program name with args.
12950set dummy bison; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if ${ac_cv_prog_ac_ct_HAVEBISON+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955else
12956 if test -n "$ac_ct_HAVEBISON"; then
12957 ac_cv_prog_ac_ct_HAVEBISON="$ac_ct_HAVEBISON" # Let the user override the test.
12958else
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_prog_ac_ct_HAVEBISON="bison"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970done
12971 done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976ac_ct_HAVEBISON=$ac_cv_prog_ac_ct_HAVEBISON
12977if test -n "$ac_ct_HAVEBISON"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEBISON" >&5
12979$as_echo "$ac_ct_HAVEBISON" >&6; }
12980else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985 if test "x$ac_ct_HAVEBISON" = x; then
12986 HAVEBISON=""
12987 else
12988 case $cross_compiling:$ac_tool_warned in
12989yes:)
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12992ac_tool_warned=yes ;;
12993esac
12994 HAVEBISON=$ac_ct_HAVEBISON
12995 fi
12996else
12997 HAVEBISON="$ac_cv_prog_HAVEBISON"
12998fi
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least bison 2.3" >&5
13001$as_echo_n "checking whether we have at least bison 2.3... " >&6; }
13002 if test "${HAVEBISON}x" = "x"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004$as_echo "no" >&6; }
13005 HAVE_FLEXBISON="no"
13006
13007 else
13008 if bison --version | grep -e ' 2\.[3-9][0-9]*' >/dev/null 2>&1 ||
13009 bison --version | grep -e ' 3\.*' >/dev/null 2>&1
13010 then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13012$as_echo "yes" >&6; }
13013 HAVE_FLEXBISON="yes"
13014
13015 else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018 HAVE_FLEXBISON="no"
13019
13020 fi
13021 fi
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
13025 HAVE_FLEXBISON="no"
13026
13027 fi
13028 fi
13029
13030
13031
13032 for ac_header in $ac_header_list
13033do :
13034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13035ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13036"
13037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13038 cat >>confdefs.h <<_ACEOF
13039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13040_ACEOF
13041
13042fi
13043
13044done
13045
13046
13047
13048
13049
13050
13051
13052
13053for ac_func in getpagesize
13054do :
13055 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13056if test "x$ac_cv_func_getpagesize" = xyes; then :
13057 cat >>confdefs.h <<_ACEOF
13058#define HAVE_GETPAGESIZE 1
13059_ACEOF
13060
13061fi
13062done
13063
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13065$as_echo_n "checking for working mmap... " >&6; }
13066if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068else
13069 if test "$cross_compiling" = yes; then :
13070 ac_cv_func_mmap_fixed_mapped=no
13071else
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h. */
13074$ac_includes_default
13075/* malloc might have been renamed as rpl_malloc. */
13076#undef malloc
13077
13078/* Thanks to Mike Haertel and Jim Avera for this test.
13079 Here is a matrix of mmap possibilities:
13080 mmap private not fixed
13081 mmap private fixed at somewhere currently unmapped
13082 mmap private fixed at somewhere already mapped
13083 mmap shared not fixed
13084 mmap shared fixed at somewhere currently unmapped
13085 mmap shared fixed at somewhere already mapped
13086 For private mappings, we should verify that changes cannot be read()
13087 back from the file, nor mmap's back from the file at a different
13088 address. (There have been systems where private was not correctly
13089 implemented like the infamous i386 svr4.0, and systems where the
13090 VM page cache was not coherent with the file system buffer cache
13091 like early versions of FreeBSD and possibly contemporary NetBSD.)
13092 For shared mappings, we should conversely verify that changes get
13093 propagated back to all the places they're supposed to be.
13094
13095 Grep wants private fixed already mapped.
13096 The main things grep needs to know about mmap are:
13097 * does it exist and is it safe to write into the mmap'd area
13098 * how to use it (BSD variants) */
13099
13100#include <fcntl.h>
13101#include <sys/mman.h>
13102
13103#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13104char *malloc ();
13105#endif
13106
13107/* This mess was copied from the GNU getpagesize.h. */
13108#ifndef HAVE_GETPAGESIZE
13109# ifdef _SC_PAGESIZE
13110# define getpagesize() sysconf(_SC_PAGESIZE)
13111# else /* no _SC_PAGESIZE */
13112# ifdef HAVE_SYS_PARAM_H
13113# include <sys/param.h>
13114# ifdef EXEC_PAGESIZE
13115# define getpagesize() EXEC_PAGESIZE
13116# else /* no EXEC_PAGESIZE */
13117# ifdef NBPG
13118# define getpagesize() NBPG * CLSIZE
13119# ifndef CLSIZE
13120# define CLSIZE 1
13121# endif /* no CLSIZE */
13122# else /* no NBPG */
13123# ifdef NBPC
13124# define getpagesize() NBPC
13125# else /* no NBPC */
13126# ifdef PAGESIZE
13127# define getpagesize() PAGESIZE
13128# endif /* PAGESIZE */
13129# endif /* no NBPC */
13130# endif /* no NBPG */
13131# endif /* no EXEC_PAGESIZE */
13132# else /* no HAVE_SYS_PARAM_H */
13133# define getpagesize() 8192 /* punt totally */
13134# endif /* no HAVE_SYS_PARAM_H */
13135# endif /* no _SC_PAGESIZE */
13136
13137#endif /* no HAVE_GETPAGESIZE */
13138
13139int
13140main ()
13141{
13142 char *data, *data2, *data3;
13143 const char *cdata2;
13144 int i, pagesize;
13145 int fd, fd2;
13146
13147 pagesize = getpagesize ();
13148
13149 /* First, make a file with some known garbage in it. */
13150 data = (char *) malloc (pagesize);
13151 if (!data)
13152 return 1;
13153 for (i = 0; i < pagesize; ++i)
13154 *(data + i) = rand ();
13155 umask (0);
13156 fd = creat ("conftest.mmap", 0600);
13157 if (fd < 0)
13158 return 2;
13159 if (write (fd, data, pagesize) != pagesize)
13160 return 3;
13161 close (fd);
13162
13163 /* Next, check that the tail of a page is zero-filled. File must have
13164 non-zero length, otherwise we risk SIGBUS for entire page. */
13165 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13166 if (fd2 < 0)
13167 return 4;
13168 cdata2 = "";
13169 if (write (fd2, cdata2, 1) != 1)
13170 return 5;
13171 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13172 if (data2 == MAP_FAILED)
13173 return 6;
13174 for (i = 0; i < pagesize; ++i)
13175 if (*(data2 + i))
13176 return 7;
13177 close (fd2);
13178 if (munmap (data2, pagesize))
13179 return 8;
13180
13181 /* Next, try to mmap the file at a fixed address which already has
13182 something else allocated at it. If we can, also make sure that
13183 we see the same garbage. */
13184 fd = open ("conftest.mmap", O_RDWR);
13185 if (fd < 0)
13186 return 9;
13187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13189 return 10;
13190 for (i = 0; i < pagesize; ++i)
13191 if (*(data + i) != *(data2 + i))
13192 return 11;
13193
13194 /* Finally, make sure that changes to the mapped area do not
13195 percolate back to the file as seen by read(). (This is a bug on
13196 some variants of i386 svr4.0.) */
13197 for (i = 0; i < pagesize; ++i)
13198 *(data2 + i) = *(data2 + i) + 1;
13199 data3 = (char *) malloc (pagesize);
13200 if (!data3)
13201 return 12;
13202 if (read (fd, data3, pagesize) != pagesize)
13203 return 13;
13204 for (i = 0; i < pagesize; ++i)
13205 if (*(data + i) != *(data3 + i))
13206 return 14;
13207 close (fd);
13208 return 0;
13209}
13210_ACEOF
13211if ac_fn_cxx_try_run "$LINENO"; then :
13212 ac_cv_func_mmap_fixed_mapped=yes
13213else
13214 ac_cv_func_mmap_fixed_mapped=no
13215fi
13216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13217 conftest.$ac_objext conftest.beam conftest.$ac_ext
13218fi
13219
13220fi
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13222$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13223if test $ac_cv_func_mmap_fixed_mapped = yes; then
13224
13225$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13226
13227fi
13228rm -f conftest.mmap conftest.txt
13229
13230
13231
13232 # Check whether --enable-driver was given.
13233if test "${enable_driver+set}" = set; then :
13234 enableval=$enable_driver;
13235fi
13236
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
13238$as_echo_n "checking whether to build driver... " >&6; }
13239 if test "${enable_driver:-yes}" = "yes"; then
13240 enable_driver="yes";
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242$as_echo "yes" >&6; }
13243 enable_search="yes";
13244 enable_int="yes";
13245
13246 else
13247 enable_driver="no";
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250 fi
13251 enable_driver=${enable_driver}
13252
13253
13254
13255 # Check whether --enable-flatzinc was given.
13256if test "${enable_flatzinc+set}" = set; then :
13257 enableval=$enable_flatzinc;
13258fi
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build flatzinc" >&5
13261$as_echo_n "checking whether to build flatzinc... " >&6; }
13262 if test "${enable_flatzinc:-yes}" = "yes"; then
13263 enable_flatzinc="yes";
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13265$as_echo "yes" >&6; }
13266 enable_search="yes";
13267 enable_driver="yes";
13268 enable_minimodel="yes";
13269
13270 else
13271 enable_flatzinc="no";
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274 fi
13275 enable_flatzinc=${enable_flatzinc}
13276
13277
13278
13279 # Check whether --enable-driver was given.
13280if test "${enable_driver+set}" = set; then :
13281 enableval=$enable_driver;
13282fi
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
13285$as_echo_n "checking whether to build driver... " >&6; }
13286 if test "${enable_driver:-yes}" = "yes"; then
13287 enable_driver="yes";
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13289$as_echo "yes" >&6; }
13290 enable_search="yes";
13291 enable_int="yes";
13292
13293 else
13294 enable_driver="no";
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297 fi
13298 enable_driver=${enable_driver}
13299
13300
13301
13302 # Check whether --enable-examples was given.
13303if test "${enable_examples+set}" = set; then :
13304 enableval=$enable_examples;
13305fi
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build examples" >&5
13308$as_echo_n "checking whether to build examples... " >&6; }
13309 if test "${enable_examples:-yes}" = "yes"; then
13310 enable_examples="yes";
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312$as_echo "yes" >&6; }
13313 enable_search="yes";
13314 enable_driver="yes";
13315 enable_minimodel="yes";
13316
13317 else
13318 enable_examples="no";
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321 fi
13322 enable_examples=${enable_examples}
13323
13324
13325
13326 # Check whether --enable-minimodel was given.
13327if test "${enable_minimodel+set}" = set; then :
13328 enableval=$enable_minimodel;
13329fi
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build minimodel" >&5
13332$as_echo_n "checking whether to build minimodel... " >&6; }
13333 if test "${enable_minimodel:-yes}" = "yes"; then
13334 enable_minimodel="yes";
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13336$as_echo "yes" >&6; }
13337
13338 else
13339 enable_minimodel="no";
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342 fi
13343 enable_minimodel=${enable_minimodel}
13344
13345
13346
13347 # Check whether --enable-search was given.
13348if test "${enable_search+set}" = set; then :
13349 enableval=$enable_search;
13350fi
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build search" >&5
13353$as_echo_n "checking whether to build search... " >&6; }
13354 if test "${enable_search:-yes}" = "yes"; then
13355 enable_search="yes";
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357$as_echo "yes" >&6; }
13358
13359 else
13360 enable_search="no";
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363 fi
13364 enable_search=${enable_search}
13365
13366
13367ac_aux_dir=
13368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
13369 if test -f "$ac_dir/install-sh"; then
13370 ac_aux_dir=$ac_dir
13371 ac_install_sh="$ac_aux_dir/install-sh -c"
13372 break
13373 elif test -f "$ac_dir/install.sh"; then
13374 ac_aux_dir=$ac_dir
13375 ac_install_sh="$ac_aux_dir/install.sh -c"
13376 break
13377 elif test -f "$ac_dir/shtool"; then
13378 ac_aux_dir=$ac_dir
13379 ac_install_sh="$ac_aux_dir/shtool install -c"
13380 break
13381 fi
13382done
13383if test -z "$ac_aux_dir"; then
13384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
13385fi
13386
13387# These three variables are undocumented and unsupported,
13388# and are intended to be withdrawn in a future Autoconf release.
13389# They can cause serious problems if a builder's source tree is in a directory
13390# whose full name contains unusual characters.
13391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
13392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
13393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
13394
13395
13396
13397
13398subdirs="$subdirs "
13399
13400
13401VERSION=${PACKAGE_VERSION}
13402
13403GECODE_VERSION=${PACKAGE_VERSION}
13404
13405DLLFLAGS=${DLLFLAGS}
13406
13407GLDFLAGS=${GLDFLAGS}
13408
13409ALLVIS=${ac_gecode_vis}
13410
13411
13412VERSION_DASHES=`echo $PACKAGE_VERSION | sed -e s/\\\\./-/g`
13413
13414PACKAGE_VERSION_NUMBER=`echo $PACKAGE_VERSION | awk -F. '{print $1 * 100000 + $2 * 100 + $3}'`
13415
13416
13417cat >>confdefs.h <<_ACEOF
13418#define GECODE_VERSION "${PACKAGE_VERSION}"
13419_ACEOF
13420
13421
13422cat >>confdefs.h <<_ACEOF
13423#define GECODE_LIBRARY_VERSION "${VERSION_DASHES}"
13424_ACEOF
13425
13426
13427cat >>confdefs.h <<_ACEOF
13428#define GECODE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER}
13429_ACEOF
13430
13431
13432
13433cat >>confdefs.h <<_ACEOF
13434#define GECODE_FLATZINC_VERSION "${GECODE_FLATZINC_VERSION}"
13435_ACEOF
13436
13437
13438ac_gecode_library_architecture=-${VERSION_DASHES}${ac_gecode_library_architecture}
13439if test "$ac_gecode_compiler_vendor" == "microsoft" \
13440 -o \( "$ac_gecode_compiler_vendor" == "intel" \
13441 -a "$host_os" == "windows" \) ; then
13442 DLL_ARCH=${ac_gecode_library_architecture}
13443
13444else
13445 DLL_ARCH=""
13446
13447fi
13448
13449ac_config_files="$ac_config_files Makefile"
13450
13451if test "${host_os}" = "windows"; then
13452 BATCHFILE=".bat"
13453
13454 ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in"
13455
13456else
13457 BATCHFILE=""
13458
13459 ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in"
13460
13461fi
13462ac_config_files="$ac_config_files tools/flatzinc/gecode.msc:tools/flatzinc/gecode.msc.in"
13463
13464ac_config_files="$ac_config_files doxygen.conf:doxygen/doxygen.conf.in"
13465
13466ac_config_files="$ac_config_files doxygen.hh:doxygen/doxygen.hh.in"
13467
13468cat >confcache <<\_ACEOF
13469# This file is a shell script that caches the results of configure
13470# tests run on this system so they can be shared between configure
13471# scripts and configure runs, see configure's option --config-cache.
13472# It is not useful on other systems. If it contains results you don't
13473# want to keep, you may remove or edit it.
13474#
13475# config.status only pays attention to the cache file if you give it
13476# the --recheck option to rerun configure.
13477#
13478# `ac_cv_env_foo' variables (set or unset) will be overridden when
13479# loading this file, other *unset* `ac_cv_foo' will be assigned the
13480# following values.
13481
13482_ACEOF
13483
13484# The following way of writing the cache mishandles newlines in values,
13485# but we know of no workaround that is simple, portable, and efficient.
13486# So, we kill variables containing newlines.
13487# Ultrix sh set writes to stderr and can't be redirected directly,
13488# and sets the high bit in the cache file unless we assign to the vars.
13489(
13490 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13491 eval ac_val=\$$ac_var
13492 case $ac_val in #(
13493 *${as_nl}*)
13494 case $ac_var in #(
13495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13496$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13497 esac
13498 case $ac_var in #(
13499 _ | IFS | as_nl) ;; #(
13500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13501 *) { eval $ac_var=; unset $ac_var;} ;;
13502 esac ;;
13503 esac
13504 done
13505
13506 (set) 2>&1 |
13507 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13508 *${as_nl}ac_space=\ *)
13509 # `set' does not quote correctly, so add quotes: double-quote
13510 # substitution turns \\\\ into \\, and sed turns \\ into \.
13511 sed -n \
13512 "s/'/'\\\\''/g;
13513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13514 ;; #(
13515 *)
13516 # `set' quotes correctly as required by POSIX, so do not add quotes.
13517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13518 ;;
13519 esac |
13520 sort
13521) |
13522 sed '
13523 /^ac_cv_env_/b end
13524 t clear
13525 :clear
13526 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13527 t end
13528 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13529 :end' >>confcache
13530if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13531 if test -w "$cache_file"; then
13532 if test "x$cache_file" != "x/dev/null"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13534$as_echo "$as_me: updating cache $cache_file" >&6;}
13535 if test ! -f "$cache_file" || test -h "$cache_file"; then
13536 cat confcache >"$cache_file"
13537 else
13538 case $cache_file in #(
13539 */* | ?:*)
13540 mv -f confcache "$cache_file"$$ &&
13541 mv -f "$cache_file"$$ "$cache_file" ;; #(
13542 *)
13543 mv -f confcache "$cache_file" ;;
13544 esac
13545 fi
13546 fi
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13549$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13550 fi
13551fi
13552rm -f confcache
13553
13554test "x$prefix" = xNONE && prefix=$ac_default_prefix
13555# Let make expand exec_prefix.
13556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13557
13558DEFS=-DHAVE_CONFIG_H
13559
13560ac_libobjs=
13561ac_ltlibobjs=
13562U=
13563for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13564 # 1. Remove the extension, and $U if already installed.
13565 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13566 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13567 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13568 # will be set to the directory where LIBOBJS objects are built.
13569 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13570 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13571done
13572LIBOBJS=$ac_libobjs
13573
13574LTLIBOBJS=$ac_ltlibobjs
13575
13576
13577
13578: "${CONFIG_STATUS=./config.status}"
13579ac_write_fail=0
13580ac_clean_files_save=$ac_clean_files
13581ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13583$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13584as_write_fail=0
13585cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13586#! $SHELL
13587# Generated by $as_me.
13588# Run this file to recreate the current configuration.
13589# Compiler output produced by configure, useful for debugging
13590# configure, is in config.log if it exists.
13591
13592debug=false
13593ac_cs_recheck=false
13594ac_cs_silent=false
13595
13596SHELL=\${CONFIG_SHELL-$SHELL}
13597export SHELL
13598_ASEOF
13599cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13600## -------------------- ##
13601## M4sh Initialization. ##
13602## -------------------- ##
13603
13604# Be more Bourne compatible
13605DUALCASE=1; export DUALCASE # for MKS sh
13606if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13607 emulate sh
13608 NULLCMD=:
13609 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13610 # is contrary to our usage. Disable this feature.
13611 alias -g '${1+"$@"}'='"$@"'
13612 setopt NO_GLOB_SUBST
13613else
13614 case `(set -o) 2>/dev/null` in #(
13615 *posix*) :
13616 set -o posix ;; #(
13617 *) :
13618 ;;
13619esac
13620fi
13621
13622
13623as_nl='
13624'
13625export as_nl
13626# Printing a long string crashes Solaris 7 /usr/bin/printf.
13627as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13629as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13630# Prefer a ksh shell builtin over an external printf program on Solaris,
13631# but without wasting forks for bash or zsh.
13632if test -z "$BASH_VERSION$ZSH_VERSION" \
13633 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13634 as_echo='print -r --'
13635 as_echo_n='print -rn --'
13636elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13637 as_echo='printf %s\n'
13638 as_echo_n='printf %s'
13639else
13640 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13641 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13642 as_echo_n='/usr/ucb/echo -n'
13643 else
13644 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13645 as_echo_n_body='eval
13646 arg=$1;
13647 case $arg in #(
13648 *"$as_nl"*)
13649 expr "X$arg" : "X\\(.*\\)$as_nl";
13650 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13651 esac;
13652 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13653 '
13654 export as_echo_n_body
13655 as_echo_n='sh -c $as_echo_n_body as_echo'
13656 fi
13657 export as_echo_body
13658 as_echo='sh -c $as_echo_body as_echo'
13659fi
13660
13661# The user is always right.
13662if test "${PATH_SEPARATOR+set}" != set; then
13663 PATH_SEPARATOR=:
13664 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13665 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13666 PATH_SEPARATOR=';'
13667 }
13668fi
13669
13670
13671# IFS
13672# We need space, tab and new line, in precisely that order. Quoting is
13673# there to prevent editors from complaining about space-tab.
13674# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13675# splitting by setting IFS to empty value.)
13676IFS=" "" $as_nl"
13677
13678# Find who we are. Look in the path if we contain no directory separator.
13679as_myself=
13680case $0 in #((
13681 *[\\/]* ) as_myself=$0 ;;
13682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13683for as_dir in $PATH
13684do
13685 IFS=$as_save_IFS
13686 test -z "$as_dir" && as_dir=.
13687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13688 done
13689IFS=$as_save_IFS
13690
13691 ;;
13692esac
13693# We did not find ourselves, most probably we were run as `sh COMMAND'
13694# in which case we are not to be found in the path.
13695if test "x$as_myself" = x; then
13696 as_myself=$0
13697fi
13698if test ! -f "$as_myself"; then
13699 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13700 exit 1
13701fi
13702
13703# Unset variables that we do not need and which cause bugs (e.g. in
13704# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13705# suppresses any "Segmentation fault" message there. '((' could
13706# trigger a bug in pdksh 5.2.14.
13707for as_var in BASH_ENV ENV MAIL MAILPATH
13708do eval test x\${$as_var+set} = xset \
13709 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13710done
13711PS1='$ '
13712PS2='> '
13713PS4='+ '
13714
13715# NLS nuisances.
13716LC_ALL=C
13717export LC_ALL
13718LANGUAGE=C
13719export LANGUAGE
13720
13721# CDPATH.
13722(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13723
13724
13725# as_fn_error STATUS ERROR [LINENO LOG_FD]
13726# ----------------------------------------
13727# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13728# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13729# script with STATUS, using 1 if that was 0.
13730as_fn_error ()
13731{
13732 as_status=$1; test $as_status -eq 0 && as_status=1
13733 if test "$4"; then
13734 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13735 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13736 fi
13737 $as_echo "$as_me: error: $2" >&2
13738 as_fn_exit $as_status
13739} # as_fn_error
13740
13741
13742# as_fn_set_status STATUS
13743# -----------------------
13744# Set $? to STATUS, without forking.
13745as_fn_set_status ()
13746{
13747 return $1
13748} # as_fn_set_status
13749
13750# as_fn_exit STATUS
13751# -----------------
13752# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13753as_fn_exit ()
13754{
13755 set +e
13756 as_fn_set_status $1
13757 exit $1
13758} # as_fn_exit
13759
13760# as_fn_unset VAR
13761# ---------------
13762# Portably unset VAR.
13763as_fn_unset ()
13764{
13765 { eval $1=; unset $1;}
13766}
13767as_unset=as_fn_unset
13768# as_fn_append VAR VALUE
13769# ----------------------
13770# Append the text in VALUE to the end of the definition contained in VAR. Take
13771# advantage of any shell optimizations that allow amortized linear growth over
13772# repeated appends, instead of the typical quadratic growth present in naive
13773# implementations.
13774if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13775 eval 'as_fn_append ()
13776 {
13777 eval $1+=\$2
13778 }'
13779else
13780 as_fn_append ()
13781 {
13782 eval $1=\$$1\$2
13783 }
13784fi # as_fn_append
13785
13786# as_fn_arith ARG...
13787# ------------------
13788# Perform arithmetic evaluation on the ARGs, and store the result in the
13789# global $as_val. Take advantage of shells that can avoid forks. The arguments
13790# must be portable across $(()) and expr.
13791if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13792 eval 'as_fn_arith ()
13793 {
13794 as_val=$(( $* ))
13795 }'
13796else
13797 as_fn_arith ()
13798 {
13799 as_val=`expr "$@" || test $? -eq 1`
13800 }
13801fi # as_fn_arith
13802
13803
13804if expr a : '\(a\)' >/dev/null 2>&1 &&
13805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13806 as_expr=expr
13807else
13808 as_expr=false
13809fi
13810
13811if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13812 as_basename=basename
13813else
13814 as_basename=false
13815fi
13816
13817if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13818 as_dirname=dirname
13819else
13820 as_dirname=false
13821fi
13822
13823as_me=`$as_basename -- "$0" ||
13824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13825 X"$0" : 'X\(//\)$' \| \
13826 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13827$as_echo X/"$0" |
13828 sed '/^.*\/\([^/][^/]*\)\/*$/{
13829 s//\1/
13830 q
13831 }
13832 /^X\/\(\/\/\)$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\/\(\/\).*/{
13837 s//\1/
13838 q
13839 }
13840 s/.*/./; q'`
13841
13842# Avoid depending upon Character Ranges.
13843as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13844as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13845as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13846as_cr_digits='0123456789'
13847as_cr_alnum=$as_cr_Letters$as_cr_digits
13848
13849ECHO_C= ECHO_N= ECHO_T=
13850case `echo -n x` in #(((((
13851-n*)
13852 case `echo 'xy\c'` in
13853 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13854 xy) ECHO_C='\c';;
13855 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13856 ECHO_T=' ';;
13857 esac;;
13858*)
13859 ECHO_N='-n';;
13860esac
13861
13862rm -f conf$$ conf$$.exe conf$$.file
13863if test -d conf$$.dir; then
13864 rm -f conf$$.dir/conf$$.file
13865else
13866 rm -f conf$$.dir
13867 mkdir conf$$.dir 2>/dev/null
13868fi
13869if (echo >conf$$.file) 2>/dev/null; then
13870 if ln -s conf$$.file conf$$ 2>/dev/null; then
13871 as_ln_s='ln -s'
13872 # ... but there are two gotchas:
13873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13875 # In both cases, we have to default to `cp -pR'.
13876 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13877 as_ln_s='cp -pR'
13878 elif ln conf$$.file conf$$ 2>/dev/null; then
13879 as_ln_s=ln
13880 else
13881 as_ln_s='cp -pR'
13882 fi
13883else
13884 as_ln_s='cp -pR'
13885fi
13886rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13887rmdir conf$$.dir 2>/dev/null
13888
13889
13890# as_fn_mkdir_p
13891# -------------
13892# Create "$as_dir" as a directory, including parents if necessary.
13893as_fn_mkdir_p ()
13894{
13895
13896 case $as_dir in #(
13897 -*) as_dir=./$as_dir;;
13898 esac
13899 test -d "$as_dir" || eval $as_mkdir_p || {
13900 as_dirs=
13901 while :; do
13902 case $as_dir in #(
13903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13904 *) as_qdir=$as_dir;;
13905 esac
13906 as_dirs="'$as_qdir' $as_dirs"
13907 as_dir=`$as_dirname -- "$as_dir" ||
13908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13909 X"$as_dir" : 'X\(//\)[^/]' \| \
13910 X"$as_dir" : 'X\(//\)$' \| \
13911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13912$as_echo X"$as_dir" |
13913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13914 s//\1/
13915 q
13916 }
13917 /^X\(\/\/\)[^/].*/{
13918 s//\1/
13919 q
13920 }
13921 /^X\(\/\/\)$/{
13922 s//\1/
13923 q
13924 }
13925 /^X\(\/\).*/{
13926 s//\1/
13927 q
13928 }
13929 s/.*/./; q'`
13930 test -d "$as_dir" && break
13931 done
13932 test -z "$as_dirs" || eval "mkdir $as_dirs"
13933 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13934
13935
13936} # as_fn_mkdir_p
13937if mkdir -p . 2>/dev/null; then
13938 as_mkdir_p='mkdir -p "$as_dir"'
13939else
13940 test -d ./-p && rmdir ./-p
13941 as_mkdir_p=false
13942fi
13943
13944
13945# as_fn_executable_p FILE
13946# -----------------------
13947# Test if FILE is an executable regular file.
13948as_fn_executable_p ()
13949{
13950 test -f "$1" && test -x "$1"
13951} # as_fn_executable_p
13952as_test_x='test -x'
13953as_executable_p=as_fn_executable_p
13954
13955# Sed expression to map a string onto a valid CPP name.
13956as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13957
13958# Sed expression to map a string onto a valid variable name.
13959as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13960
13961
13962exec 6>&1
13963## ----------------------------------- ##
13964## Main body of $CONFIG_STATUS script. ##
13965## ----------------------------------- ##
13966_ASEOF
13967test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13968
13969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13970# Save the log message, to keep $0 and so on meaningful, and to
13971# report actual input values of CONFIG_FILES etc. instead of their
13972# values after options handling.
13973ac_log="
13974This file was extended by GECODE $as_me 6.3.1, which was
13975generated by GNU Autoconf 2.69. Invocation command line was
13976
13977 CONFIG_FILES = $CONFIG_FILES
13978 CONFIG_HEADERS = $CONFIG_HEADERS
13979 CONFIG_LINKS = $CONFIG_LINKS
13980 CONFIG_COMMANDS = $CONFIG_COMMANDS
13981 $ $0 $@
13982
13983on `(hostname || uname -n) 2>/dev/null | sed 1q`
13984"
13985
13986_ACEOF
13987
13988case $ac_config_files in *"
13989"*) set x $ac_config_files; shift; ac_config_files=$*;;
13990esac
13991
13992case $ac_config_headers in *"
13993"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13994esac
13995
13996
13997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13998# Files that config.status was made for.
13999config_files="$ac_config_files"
14000config_headers="$ac_config_headers"
14001
14002_ACEOF
14003
14004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14005ac_cs_usage="\
14006\`$as_me' instantiates files and other configuration actions
14007from templates according to the current configuration. Unless the files
14008and actions are specified as TAGs, all are instantiated by default.
14009
14010Usage: $0 [OPTION]... [TAG]...
14011
14012 -h, --help print this help, then exit
14013 -V, --version print version number and configuration settings, then exit
14014 --config print configuration, then exit
14015 -q, --quiet, --silent
14016 do not print progress messages
14017 -d, --debug don't remove temporary files
14018 --recheck update $as_me by reconfiguring in the same conditions
14019 --file=FILE[:TEMPLATE]
14020 instantiate the configuration file FILE
14021 --header=FILE[:TEMPLATE]
14022 instantiate the configuration header FILE
14023
14024Configuration files:
14025$config_files
14026
14027Configuration headers:
14028$config_headers
14029
14030Report bugs to <users@gecode.org>."
14031
14032_ACEOF
14033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14035ac_cs_version="\\
14036GECODE config.status 6.3.1
14037configured by $0, generated by GNU Autoconf 2.69,
14038 with options \\"\$ac_cs_config\\"
14039
14040Copyright (C) 2012 Free Software Foundation, Inc.
14041This config.status script is free software; the Free Software Foundation
14042gives unlimited permission to copy, distribute and modify it."
14043
14044ac_pwd='$ac_pwd'
14045srcdir='$srcdir'
14046test -n "\$AWK" || AWK=awk
14047_ACEOF
14048
14049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050# The default lists apply if the user does not specify any file.
14051ac_need_defaults=:
14052while test $# != 0
14053do
14054 case $1 in
14055 --*=?*)
14056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14058 ac_shift=:
14059 ;;
14060 --*=)
14061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14062 ac_optarg=
14063 ac_shift=:
14064 ;;
14065 *)
14066 ac_option=$1
14067 ac_optarg=$2
14068 ac_shift=shift
14069 ;;
14070 esac
14071
14072 case $ac_option in
14073 # Handling of the options.
14074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14075 ac_cs_recheck=: ;;
14076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14077 $as_echo "$ac_cs_version"; exit ;;
14078 --config | --confi | --conf | --con | --co | --c )
14079 $as_echo "$ac_cs_config"; exit ;;
14080 --debug | --debu | --deb | --de | --d | -d )
14081 debug=: ;;
14082 --file | --fil | --fi | --f )
14083 $ac_shift
14084 case $ac_optarg in
14085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14086 '') as_fn_error $? "missing file argument" ;;
14087 esac
14088 as_fn_append CONFIG_FILES " '$ac_optarg'"
14089 ac_need_defaults=false;;
14090 --header | --heade | --head | --hea )
14091 $ac_shift
14092 case $ac_optarg in
14093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14094 esac
14095 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14096 ac_need_defaults=false;;
14097 --he | --h)
14098 # Conflict between --help and --header
14099 as_fn_error $? "ambiguous option: \`$1'
14100Try \`$0 --help' for more information.";;
14101 --help | --hel | -h )
14102 $as_echo "$ac_cs_usage"; exit ;;
14103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14105 ac_cs_silent=: ;;
14106
14107 # This is an error.
14108 -*) as_fn_error $? "unrecognized option: \`$1'
14109Try \`$0 --help' for more information." ;;
14110
14111 *) as_fn_append ac_config_targets " $1"
14112 ac_need_defaults=false ;;
14113
14114 esac
14115 shift
14116done
14117
14118ac_configure_extra_args=
14119
14120if $ac_cs_silent; then
14121 exec 6>/dev/null
14122 ac_configure_extra_args="$ac_configure_extra_args --silent"
14123fi
14124
14125_ACEOF
14126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14127if \$ac_cs_recheck; then
14128 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14129 shift
14130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14131 CONFIG_SHELL='$SHELL'
14132 export CONFIG_SHELL
14133 exec "\$@"
14134fi
14135
14136_ACEOF
14137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138exec 5>>config.log
14139{
14140 echo
14141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14142## Running $as_me. ##
14143_ASBOX
14144 $as_echo "$ac_log"
14145} >&5
14146
14147_ACEOF
14148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14149_ACEOF
14150
14151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14152
14153# Handling of arguments.
14154for ac_config_target in $ac_config_targets
14155do
14156 case $ac_config_target in
14157 "gecode/support/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS gecode/support/config.hpp" ;;
14158 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14159 "tools/flatzinc/mzn-gecode.bat") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in" ;;
14160 "tools/flatzinc/mzn-gecode") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in" ;;
14161 "tools/flatzinc/gecode.msc") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/gecode.msc:tools/flatzinc/gecode.msc.in" ;;
14162 "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf:doxygen/doxygen.conf.in" ;;
14163 "doxygen.hh") CONFIG_FILES="$CONFIG_FILES doxygen.hh:doxygen/doxygen.hh.in" ;;
14164
14165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14166 esac
14167done
14168
14169
14170# If the user did not use the arguments to specify the items to instantiate,
14171# then the envvar interface is used. Set only those that are not.
14172# We use the long form for the default assignment because of an extremely
14173# bizarre bug on SunOS 4.1.3.
14174if $ac_need_defaults; then
14175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14176 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14177fi
14178
14179# Have a temporary directory for convenience. Make it in the build tree
14180# simply because there is no reason against having it here, and in addition,
14181# creating and moving files from /tmp can sometimes cause problems.
14182# Hook for its removal unless debugging.
14183# Note that there is a small window in which the directory will not be cleaned:
14184# after its creation but before its name has been assigned to `$tmp'.
14185$debug ||
14186{
14187 tmp= ac_tmp=
14188 trap 'exit_status=$?
14189 : "${ac_tmp:=$tmp}"
14190 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14191' 0
14192 trap 'as_fn_exit 1' 1 2 13 15
14193}
14194# Create a (secure) tmp directory for tmp files.
14195
14196{
14197 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14198 test -d "$tmp"
14199} ||
14200{
14201 tmp=./conf$$-$RANDOM
14202 (umask 077 && mkdir "$tmp")
14203} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14204ac_tmp=$tmp
14205
14206# Set up the scripts for CONFIG_FILES section.
14207# No need to generate them if there are no CONFIG_FILES.
14208# This happens for instance with `./config.status config.h'.
14209if test -n "$CONFIG_FILES"; then
14210
14211
14212ac_cr=`echo X | tr X '\015'`
14213# On cygwin, bash can eat \r inside `` if the user requested igncr.
14214# But we know of no other shell where ac_cr would be empty at this
14215# point, so we can use a bashism as a fallback.
14216if test "x$ac_cr" = x; then
14217 eval ac_cr=\$\'\\r\'
14218fi
14219ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14220if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14221 ac_cs_awk_cr='\\r'
14222else
14223 ac_cs_awk_cr=$ac_cr
14224fi
14225
14226echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14227_ACEOF
14228
14229
14230{
14231 echo "cat >conf$$subs.awk <<_ACEOF" &&
14232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14233 echo "_ACEOF"
14234} >conf$$subs.sh ||
14235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14236ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14237ac_delim='%!_!# '
14238for ac_last_try in false false false false false :; do
14239 . ./conf$$subs.sh ||
14240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14241
14242 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14243 if test $ac_delim_n = $ac_delim_num; then
14244 break
14245 elif $ac_last_try; then
14246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14247 else
14248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14249 fi
14250done
14251rm -f conf$$subs.sh
14252
14253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14255_ACEOF
14256sed -n '
14257h
14258s/^/S["/; s/!.*/"]=/
14259p
14260g
14261s/^[^!]*!//
14262:repl
14263t repl
14264s/'"$ac_delim"'$//
14265t delim
14266:nl
14267h
14268s/\(.\{148\}\)..*/\1/
14269t more1
14270s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14271p
14272n
14273b repl
14274:more1
14275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14276p
14277g
14278s/.\{148\}//
14279t nl
14280:delim
14281h
14282s/\(.\{148\}\)..*/\1/
14283t more2
14284s/["\\]/\\&/g; s/^/"/; s/$/"/
14285p
14286b
14287:more2
14288s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14289p
14290g
14291s/.\{148\}//
14292t delim
14293' <conf$$subs.awk | sed '
14294/^[^""]/{
14295 N
14296 s/\n//
14297}
14298' >>$CONFIG_STATUS || ac_write_fail=1
14299rm -f conf$$subs.awk
14300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14301_ACAWK
14302cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14303 for (key in S) S_is_set[key] = 1
14304 FS = ""
14305
14306}
14307{
14308 line = $ 0
14309 nfields = split(line, field, "@")
14310 substed = 0
14311 len = length(field[1])
14312 for (i = 2; i < nfields; i++) {
14313 key = field[i]
14314 keylen = length(key)
14315 if (S_is_set[key]) {
14316 value = S[key]
14317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14318 len += length(value) + length(field[++i])
14319 substed = 1
14320 } else
14321 len += 1 + keylen
14322 }
14323
14324 print line
14325}
14326
14327_ACAWK
14328_ACEOF
14329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14330if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14331 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14332else
14333 cat
14334fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14335 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14336_ACEOF
14337
14338# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14339# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14340# trailing colons and then remove the whole line if VPATH becomes empty
14341# (actually we leave an empty line to preserve line numbers).
14342if test "x$srcdir" = x.; then
14343 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14344h
14345s///
14346s/^/:/
14347s/[ ]*$/:/
14348s/:\$(srcdir):/:/g
14349s/:\${srcdir}:/:/g
14350s/:@srcdir@:/:/g
14351s/^:*//
14352s/:*$//
14353x
14354s/\(=[ ]*\).*/\1/
14355G
14356s/\n//
14357s/^[^=]*=[ ]*$//
14358}'
14359fi
14360
14361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14362fi # test -n "$CONFIG_FILES"
14363
14364# Set up the scripts for CONFIG_HEADERS section.
14365# No need to generate them if there are no CONFIG_HEADERS.
14366# This happens for instance with `./config.status Makefile'.
14367if test -n "$CONFIG_HEADERS"; then
14368cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14369BEGIN {
14370_ACEOF
14371
14372# Transform confdefs.h into an awk script `defines.awk', embedded as
14373# here-document in config.status, that substitutes the proper values into
14374# config.h.in to produce config.h.
14375
14376# Create a delimiter string that does not exist in confdefs.h, to ease
14377# handling of long lines.
14378ac_delim='%!_!# '
14379for ac_last_try in false false :; do
14380 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14381 if test -z "$ac_tt"; then
14382 break
14383 elif $ac_last_try; then
14384 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14385 else
14386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14387 fi
14388done
14389
14390# For the awk script, D is an array of macro values keyed by name,
14391# likewise P contains macro parameters if any. Preserve backslash
14392# newline sequences.
14393
14394ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14395sed -n '
14396s/.\{148\}/&'"$ac_delim"'/g
14397t rset
14398:rset
14399s/^[ ]*#[ ]*define[ ][ ]*/ /
14400t def
14401d
14402:def
14403s/\\$//
14404t bsnl
14405s/["\\]/\\&/g
14406s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14407D["\1"]=" \3"/p
14408s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14409d
14410:bsnl
14411s/["\\]/\\&/g
14412s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14413D["\1"]=" \3\\\\\\n"\\/p
14414t cont
14415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14416t cont
14417d
14418:cont
14419n
14420s/.\{148\}/&'"$ac_delim"'/g
14421t clear
14422:clear
14423s/\\$//
14424t bsnlc
14425s/["\\]/\\&/g; s/^/"/; s/$/"/p
14426d
14427:bsnlc
14428s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14429b cont
14430' <confdefs.h | sed '
14431s/'"$ac_delim"'/"\\\
14432"/g' >>$CONFIG_STATUS || ac_write_fail=1
14433
14434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14435 for (key in D) D_is_set[key] = 1
14436 FS = ""
14437}
14438/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14439 line = \$ 0
14440 split(line, arg, " ")
14441 if (arg[1] == "#") {
14442 defundef = arg[2]
14443 mac1 = arg[3]
14444 } else {
14445 defundef = substr(arg[1], 2)
14446 mac1 = arg[2]
14447 }
14448 split(mac1, mac2, "(") #)
14449 macro = mac2[1]
14450 prefix = substr(line, 1, index(line, defundef) - 1)
14451 if (D_is_set[macro]) {
14452 # Preserve the white space surrounding the "#".
14453 print prefix "define", macro P[macro] D[macro]
14454 next
14455 } else {
14456 # Replace #undef with comments. This is necessary, for example,
14457 # in the case of _POSIX_SOURCE, which is predefined and required
14458 # on some systems where configure will not decide to define it.
14459 if (defundef == "undef") {
14460 print "/*", prefix defundef, macro, "*/"
14461 next
14462 }
14463 }
14464}
14465{ print }
14466_ACAWK
14467_ACEOF
14468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14469 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14470fi # test -n "$CONFIG_HEADERS"
14471
14472
14473eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14474shift
14475for ac_tag
14476do
14477 case $ac_tag in
14478 :[FHLC]) ac_mode=$ac_tag; continue;;
14479 esac
14480 case $ac_mode$ac_tag in
14481 :[FHL]*:*);;
14482 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14483 :[FH]-) ac_tag=-:-;;
14484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14485 esac
14486 ac_save_IFS=$IFS
14487 IFS=:
14488 set x $ac_tag
14489 IFS=$ac_save_IFS
14490 shift
14491 ac_file=$1
14492 shift
14493
14494 case $ac_mode in
14495 :L) ac_source=$1;;
14496 :[FH])
14497 ac_file_inputs=
14498 for ac_f
14499 do
14500 case $ac_f in
14501 -) ac_f="$ac_tmp/stdin";;
14502 *) # Look for the file first in the build tree, then in the source tree
14503 # (if the path is not absolute). The absolute path cannot be DOS-style,
14504 # because $ac_f cannot contain `:'.
14505 test -f "$ac_f" ||
14506 case $ac_f in
14507 [\\/$]*) false;;
14508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14509 esac ||
14510 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14511 esac
14512 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14513 as_fn_append ac_file_inputs " '$ac_f'"
14514 done
14515
14516 # Let's still pretend it is `configure' which instantiates (i.e., don't
14517 # use $as_me), people would be surprised to read:
14518 # /* config.h. Generated by config.status. */
14519 configure_input='Generated from '`
14520 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14521 `' by configure.'
14522 if test x"$ac_file" != x-; then
14523 configure_input="$ac_file. $configure_input"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14525$as_echo "$as_me: creating $ac_file" >&6;}
14526 fi
14527 # Neutralize special characters interpreted by sed in replacement strings.
14528 case $configure_input in #(
14529 *\&* | *\|* | *\\* )
14530 ac_sed_conf_input=`$as_echo "$configure_input" |
14531 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14532 *) ac_sed_conf_input=$configure_input;;
14533 esac
14534
14535 case $ac_tag in
14536 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14538 esac
14539 ;;
14540 esac
14541
14542 ac_dir=`$as_dirname -- "$ac_file" ||
14543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14544 X"$ac_file" : 'X\(//\)[^/]' \| \
14545 X"$ac_file" : 'X\(//\)$' \| \
14546 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14547$as_echo X"$ac_file" |
14548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14549 s//\1/
14550 q
14551 }
14552 /^X\(\/\/\)[^/].*/{
14553 s//\1/
14554 q
14555 }
14556 /^X\(\/\/\)$/{
14557 s//\1/
14558 q
14559 }
14560 /^X\(\/\).*/{
14561 s//\1/
14562 q
14563 }
14564 s/.*/./; q'`
14565 as_dir="$ac_dir"; as_fn_mkdir_p
14566 ac_builddir=.
14567
14568case "$ac_dir" in
14569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14570*)
14571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14572 # A ".." for each directory in $ac_dir_suffix.
14573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14574 case $ac_top_builddir_sub in
14575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14577 esac ;;
14578esac
14579ac_abs_top_builddir=$ac_pwd
14580ac_abs_builddir=$ac_pwd$ac_dir_suffix
14581# for backward compatibility:
14582ac_top_builddir=$ac_top_build_prefix
14583
14584case $srcdir in
14585 .) # We are building in place.
14586 ac_srcdir=.
14587 ac_top_srcdir=$ac_top_builddir_sub
14588 ac_abs_top_srcdir=$ac_pwd ;;
14589 [\\/]* | ?:[\\/]* ) # Absolute name.
14590 ac_srcdir=$srcdir$ac_dir_suffix;
14591 ac_top_srcdir=$srcdir
14592 ac_abs_top_srcdir=$srcdir ;;
14593 *) # Relative name.
14594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14595 ac_top_srcdir=$ac_top_build_prefix$srcdir
14596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14597esac
14598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14599
14600
14601 case $ac_mode in
14602 :F)
14603 #
14604 # CONFIG_FILE
14605 #
14606
14607_ACEOF
14608
14609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14610# If the template does not know about datarootdir, expand it.
14611# FIXME: This hack should be removed a few years after 2.60.
14612ac_datarootdir_hack=; ac_datarootdir_seen=
14613ac_sed_dataroot='
14614/datarootdir/ {
14615 p
14616 q
14617}
14618/@datadir@/p
14619/@docdir@/p
14620/@infodir@/p
14621/@localedir@/p
14622/@mandir@/p'
14623case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14624*datarootdir*) ac_datarootdir_seen=yes;;
14625*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14627$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14628_ACEOF
14629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630 ac_datarootdir_hack='
14631 s&@datadir@&$datadir&g
14632 s&@docdir@&$docdir&g
14633 s&@infodir@&$infodir&g
14634 s&@localedir@&$localedir&g
14635 s&@mandir@&$mandir&g
14636 s&\\\${datarootdir}&$datarootdir&g' ;;
14637esac
14638_ACEOF
14639
14640# Neutralize VPATH when `$srcdir' = `.'.
14641# Shell code in configure.ac might set extrasub.
14642# FIXME: do we really want to maintain this feature?
14643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14644ac_sed_extra="$ac_vpsub
14645$extrasub
14646_ACEOF
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648:t
14649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14650s|@configure_input@|$ac_sed_conf_input|;t t
14651s&@top_builddir@&$ac_top_builddir_sub&;t t
14652s&@top_build_prefix@&$ac_top_build_prefix&;t t
14653s&@srcdir@&$ac_srcdir&;t t
14654s&@abs_srcdir@&$ac_abs_srcdir&;t t
14655s&@top_srcdir@&$ac_top_srcdir&;t t
14656s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14657s&@builddir@&$ac_builddir&;t t
14658s&@abs_builddir@&$ac_abs_builddir&;t t
14659s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14660$ac_datarootdir_hack
14661"
14662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14664
14665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14668 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14670which seems to be undefined. Please make sure it is defined" >&5
14671$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14672which seems to be undefined. Please make sure it is defined" >&2;}
14673
14674 rm -f "$ac_tmp/stdin"
14675 case $ac_file in
14676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14678 esac \
14679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14680 ;;
14681 :H)
14682 #
14683 # CONFIG_HEADER
14684 #
14685 if test x"$ac_file" != x-; then
14686 {
14687 $as_echo "/* $configure_input */" \
14688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14689 } >"$ac_tmp/config.h" \
14690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14693$as_echo "$as_me: $ac_file is unchanged" >&6;}
14694 else
14695 rm -f "$ac_file"
14696 mv "$ac_tmp/config.h" "$ac_file" \
14697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14698 fi
14699 else
14700 $as_echo "/* $configure_input */" \
14701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14702 || as_fn_error $? "could not create -" "$LINENO" 5
14703 fi
14704 ;;
14705
14706
14707 esac
14708
14709
14710 case $ac_file$ac_mode in
14711 "tools/flatzinc/mzn-gecode.bat":F) chmod +x tools/flatzinc/mzn-gecode.bat ;;
14712 "tools/flatzinc/mzn-gecode":F) chmod +x tools/flatzinc/mzn-gecode ;;
14713
14714 esac
14715done # for ac_tag
14716
14717
14718as_fn_exit 0
14719_ACEOF
14720ac_clean_files=$ac_clean_files_save
14721
14722test $ac_write_fail = 0 ||
14723 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14724
14725
14726# configure is writing to config.log, and then calls config.status.
14727# config.status does its own redirection, appending to config.log.
14728# Unfortunately, on DOS this fails, as config.log is still kept open
14729# by configure, so config.status won't be able to write to it; its
14730# output is simply discarded. So we exec the FD to /dev/null,
14731# effectively closing config.log, so it can be properly (re)opened and
14732# appended to by config.status. When coming back to configure, we
14733# need to make the FD available again.
14734if test "$no_create" != yes; then
14735 ac_cs_success=:
14736 ac_config_status_args=
14737 test "$silent" = yes &&
14738 ac_config_status_args="$ac_config_status_args --quiet"
14739 exec 5>/dev/null
14740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14741 exec 5>>config.log
14742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14743 # would make configure fail if this is the last instruction.
14744 $ac_cs_success || as_fn_exit 1
14745fi
14746
14747#
14748# CONFIG_SUBDIRS section.
14749#
14750if test "$no_recursion" != yes; then
14751
14752 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14753 # so they do not pile up.
14754 ac_sub_configure_args=
14755 ac_prev=
14756 eval "set x $ac_configure_args"
14757 shift
14758 for ac_arg
14759 do
14760 if test -n "$ac_prev"; then
14761 ac_prev=
14762 continue
14763 fi
14764 case $ac_arg in
14765 -cache-file | --cache-file | --cache-fil | --cache-fi \
14766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14767 ac_prev=cache_file ;;
14768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14770 | --c=*)
14771 ;;
14772 --config-cache | -C)
14773 ;;
14774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14775 ac_prev=srcdir ;;
14776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14777 ;;
14778 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14779 ac_prev=prefix ;;
14780 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14781 ;;
14782 --disable-option-checking)
14783 ;;
14784 *)
14785 case $ac_arg in
14786 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14787 esac
14788 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14789 esac
14790 done
14791
14792 # Always prepend --prefix to ensure using the same prefix
14793 # in subdir configurations.
14794 ac_arg="--prefix=$prefix"
14795 case $ac_arg in
14796 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14797 esac
14798 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14799
14800 # Pass --silent
14801 if test "$silent" = yes; then
14802 ac_sub_configure_args="--silent $ac_sub_configure_args"
14803 fi
14804
14805 # Always prepend --disable-option-checking to silence warnings, since
14806 # different subdirs can have different --enable and --with options.
14807 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14808
14809 ac_popdir=`pwd`
14810 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14811
14812 # Do not complain, so a configure script can configure whichever
14813 # parts of a large source tree are present.
14814 test -d "$srcdir/$ac_dir" || continue
14815
14816 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14817 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14818 $as_echo "$ac_msg" >&6
14819 as_dir="$ac_dir"; as_fn_mkdir_p
14820 ac_builddir=.
14821
14822case "$ac_dir" in
14823.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14824*)
14825 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14826 # A ".." for each directory in $ac_dir_suffix.
14827 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14828 case $ac_top_builddir_sub in
14829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14831 esac ;;
14832esac
14833ac_abs_top_builddir=$ac_pwd
14834ac_abs_builddir=$ac_pwd$ac_dir_suffix
14835# for backward compatibility:
14836ac_top_builddir=$ac_top_build_prefix
14837
14838case $srcdir in
14839 .) # We are building in place.
14840 ac_srcdir=.
14841 ac_top_srcdir=$ac_top_builddir_sub
14842 ac_abs_top_srcdir=$ac_pwd ;;
14843 [\\/]* | ?:[\\/]* ) # Absolute name.
14844 ac_srcdir=$srcdir$ac_dir_suffix;
14845 ac_top_srcdir=$srcdir
14846 ac_abs_top_srcdir=$srcdir ;;
14847 *) # Relative name.
14848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14849 ac_top_srcdir=$ac_top_build_prefix$srcdir
14850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14851esac
14852ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14853
14854
14855 cd "$ac_dir"
14856
14857 # Check for guested configure; otherwise get Cygnus style configure.
14858 if test -f "$ac_srcdir/configure.gnu"; then
14859 ac_sub_configure=$ac_srcdir/configure.gnu
14860 elif test -f "$ac_srcdir/configure"; then
14861 ac_sub_configure=$ac_srcdir/configure
14862 elif test -f "$ac_srcdir/configure.in"; then
14863 # This should be Cygnus configure.
14864 ac_sub_configure=$ac_aux_dir/configure
14865 else
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14867$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14868 ac_sub_configure=
14869 fi
14870
14871 # The recursion is here.
14872 if test -n "$ac_sub_configure"; then
14873 # Make the cache file name correct relative to the subdirectory.
14874 case $cache_file in
14875 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14876 *) # Relative name.
14877 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14878 esac
14879
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14881$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14882 # The eval makes quoting arguments work.
14883 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14884 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14885 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14886 fi
14887
14888 cd "$ac_popdir"
14889 done
14890fi
14891if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14893$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14894fi
14895