Debian Codegraph @

configure

raw
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.2.0.
5 #
6 # Report bugs to <[email protected]>.
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
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if 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
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_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.
46 if 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 --'
50 elif (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'
53 else
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'
73 fi
74
75 # The user is always right.
76 if 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 }
82 fi
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.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export 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.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $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
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if 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
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -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
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
207 fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
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
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
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
237 fi; }
238 IFS=$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.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $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
260 exit 255
261 fi
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 [email protected] and [email protected]
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
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_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.
309 as_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.
319 as_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.
367 as_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.
377 if (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 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # 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.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # 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.
412 as_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
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_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.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_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
504 ECHO_C= ECHO_N= ECHO_T=
505 case `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';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (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
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_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.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 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.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='GECODE'
583 PACKAGE_TARNAME='gecode'
584 PACKAGE_VERSION='6.2.0'
585 PACKAGE_STRING='GECODE 6.2.0'
586 PACKAGE_BUGREPORT='[email protected]'
587 PACKAGE_URL=''
588
589 ac_unique_file="gecode/kernel.hh"
590 # Factoring default headers for most tests.
591 ac_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
626 ac_header_list=
627 enable_option_checking=no
628 ac_subst_vars='LTLIBOBJS
629 LIBOBJS
630 BATCHFILE
631 DLL_ARCH
632 ALLVIS
633 GLDFLAGS
634 DLLFLAGS
635 VERSION
636 subdirs
637 enable_search
638 enable_minimodel
639 enable_examples
640 enable_flatzinc
641 enable_driver
642 HAVEBISON
643 HAVE_FLEXBISON
644 HAVEFLEX
645 enable_cpprofiler
646 enable_cbs
647 enable_gist
648 enable_qt
649 QTLIBS
650 QTDEFINES
651 QTINCLUDES
652 MOC
653 QMAKE
654 enable_mpfr
655 MPFR_LINK
656 MPFR_LIB_PATH
657 MPFR_CPPFLAGS
658 GMP_LINK
659 GMP_LIB_PATH
660 GMP_CPPFLAGS
661 enable_int_vars
662 LINKINT
663 enable_set_vars
664 LINKSET
665 enable_float_vars
666 LINKFLOAT
667 ENABLEDOCDOCSET
668 ENABLEDOCCHM
669 GECODE_DOXYGEN_TAGFILE
670 ENABLEDOCSEARCH
671 GECODE_DOXYGEN_DOT
672 DOT
673 DRIVER
674 FLATZINC
675 GIST
676 MM
677 SET
678 FLOAT
679 INT
680 SEARCH
681 KERNEL
682 SUPPORT
683 EXEOUTPUT
684 LINKOUTPUT
685 LINKSUFFIX
686 LINKPREFIX
687 INSTALLLIBS
688 EXAMPLES_EXTRA_CXXFLAGS
689 CCIN
690 CXXIN
691 COMPILESBJ
692 COMPILEOBJ
693 cygpathprefix
694 LINKLIBDIR
695 MINUSLDIR
696 STATICLIBEXT
697 LIBPREFIX
698 LIBEXT
699 SBJEXT
700 MANIFEST
701 GECODE_BUILD_DRIVER_FLAG
702 GECODE_BUILD_FLATZINC_FLAG
703 GECODE_BUILD_GIST_FLAG
704 GECODE_BUILD_MINIMODEL_FLAG
705 GECODE_BUILD_SET_FLAG
706 GECODE_BUILD_FLOAT_FLAG
707 GECODE_BUILD_INT_FLAG
708 GECODE_BUILD_SEARCH_FLAG
709 GECODE_BUILD_KERNEL_FLAG
710 GECODE_BUILD_SUPPORT_FLAG
711 WLSONAME
712 sharedlibdir
713 SOLINKSUFFIX
714 SOSUFFIX
715 DLLEXT
716 need_soname
717 DLLPATH
718 EGREP
719 GREP
720 DEBUG_BUILD
721 BUILDDLL
722 BUILDSTATIC
723 BUILD_MACOS_FRAMEWORK
724 USERSUFFIX
725 enable_resource
726 RESCOMP
727 HAVE_RC
728 CXXCPP
729 PROG_PERL
730 PROG_SED
731 PROG_MAKE
732 PROG_TAR
733 PROG_DIFF
734 RANLIB
735 ac_ct_CC
736 CFLAGS
737 CC
738 OBJEXT
739 EXEEXT
740 ac_ct_CXX
741 CPPFLAGS
742 LDFLAGS
743 CXXFLAGS
744 CXX
745 GECODE_FLATZINC_VERSION
746 GECODE_SOVERSION
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 runstatedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 with_host_os
790 with_compiler_vendor
791 enable_resource
792 with_sdk
793 with_macosx_version_min
794 with_architectures
795 with_lib_prefix
796 with_lib_suffix
797 enable_framework
798 enable_static
799 enable_shared
800 enable_debug
801 enable_peakheap
802 enable_small_codesize
803 enable_leak_debug
804 enable_allocator
805 enable_audit
806 enable_profile
807 enable_gcov
808 enable_thread
809 enable_cpp11
810 enable_gcc_visibility
811 enable_doc_dot
812 enable_doc_search
813 enable_doc_tagfile
814 enable_doc_chm
815 enable_doc_docset
816 with_vis
817 enable_float_vars
818 enable_set_vars
819 enable_int_vars
820 enable_mpfr
821 with_gmp_include
822 with_gmp_lib
823 with_mpfr_include
824 with_mpfr_lib
825 enable_qt
826 enable_gist
827 enable_cbs
828 enable_cpprofiler
829 enable_driver
830 enable_flatzinc
831 enable_examples
832 enable_minimodel
833 enable_search
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CXX
839 CXXFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 CCC
844 CC
845 CFLAGS
846 CXXCPP'
847 ac_subdirs_all=''
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 runstatedir='${localstatedir}/run'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 # Accept the important Cygnus configure options, so we can diagnose typos.
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures GECODE 6.2.0 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/gecode]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of GECODE 6.2.0:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-resource build Gecode with resource files for Microsoft
1468 Visual Studio [default=no]
1469 --enable-framework build framework bundle on Mac OS X [default=no]
1470 --enable-static build static libraries [default=no]
1471 --enable-shared build shared libraries [default=yes]
1472 --enable-debug build with assertions [default=no]
1473 --enable-peakheap build with peak heap size tracking [default=no]
1474 --enable-small-codesize optimize for code size [default=no]
1475 --enable-leak-debug build with support for finding memory leaks
1476 [default=no]
1477 --enable-allocator build with default memory allocator [default=yes]
1478 --enable-audit build with auditing code [default=no]
1479 --enable-profile build with profiling information [default=no]
1480 --enable-gcov build with gcov support [default=no]
1481 --enable-thread build with multi-threading support [default=yes]
1482 --enable-cpp11 compile for C++11 standard [default=yes]
1483 --enable-gcc-visibility use gcc visibility attributes [default=yes]
1484 --enable-doc-dot enable graphs in documentation [default=yes]
1485 --enable-doc-search enable documentation search engine [default=no]
1486 --enable-doc-tagfile generate doxygen tagfile [default=yes]
1487 --enable-doc-chm build compressed html documentation [default=yes on
1488 Windows]
1489 --enable-doc-docset build docset documentation for XCode [default=no]
1490 --enable-float-vars build float variable library (implies
1491 --enable-int-vars) [default=yes]
1492 --enable-set-vars build finite set library (implies --enable-int-vars)
1493 [default=yes]
1494 --enable-int-vars build finite domain library [default=yes]
1495 --enable-mpfr build with MPFR support [default=yes]
1496 --enable-qt build with Qt support, requires at least Qt 4.3
1497 [default=yes]
1498 --enable-gist build Gecode Interactive Search Tool [default=yes]
1499 --enable-cbs build with support for counting-based search
1500 [default=no]
1501 --enable-cpprofiler build with support for CPProfiler [default=yes]
1502 --enable-driver build script commandline driver library
1503 [default=yes]
1504 --enable-flatzinc build FlatZinc interpreter [default=yes]
1505 --enable-examples build examples for the enabled variable types
1506 [default=yes]
1507 --enable-minimodel build modeling support library for the enabled
1508 variable types [default=yes]
1509 --enable-search build search engines [default=yes]
1510
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-host-os Override operating system test. Valid values are
1515 Linux, Darwin, FreeBSD, NetBSD, and Windows.
1516 --with-compiler-vendor Override compiler test. Valid values are gnu, intel,
1517 and microsoft.
1518 --with-sdk SDK to use on Mac OS X
1519 --with-macosx-version-min
1520 minimum version of Mac OS X to support
1521 --with-architectures architectures to compile for on Mac OS X
1522 --with-lib-prefix add user-defined prefix to library names
1523 --with-lib-suffix add user-defined suffix to library names
1524 --with-vis additional variable implementation specifications
1525 --with-gmp-include path to the gmp or mpir header files
1526 --with-gmp-lib path to the gmp or mpir library
1527 --with-mpfr-include path to the mpfr header file
1528 --with-mpfr-lib path to the mpfr library
1529
1530 Some influential environment variables:
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 CXXCPP C++ preprocessor
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <[email protected]>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
1556 ac_builddir=.
1557
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *)
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1573
1574 case $srcdir in
1575 .) # We are building in place.
1576 ac_srcdir=.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 GECODE configure 6.2.0
1609 generated by GNU Autoconf 2.69
1610
1611 Copyright (C) 2012 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_cxx_try_compile LINENO
1623 # ----------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_cxx_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_cxx_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_cxx_try_compile
1659
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_compile
1697
1698 # ac_fn_cxx_try_cpp LINENO
1699 # ------------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_cxx_try_cpp ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_cxx_try_cpp
1734
1735 # ac_fn_cxx_try_link LINENO
1736 # -------------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770 fi
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_cxx_try_link
1780
1781 # ac_fn_cxx_check_func LINENO FUNC VAR
1782 # ------------------------------------
1783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1784 ac_fn_cxx_check_func ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1797
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1802
1803 #ifdef __STDC__
1804 # include <limits.h>
1805 #else
1806 # include <assert.h>
1807 #endif
1808
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main ()
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_cxx_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_cxx_check_func
1847
1848 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1849 # ---------------------------------------------------------
1850 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851 # the include files in INCLUDES and setting the cache variable VAR
1852 # accordingly.
1853 ac_fn_cxx_check_header_mongrel ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if eval \${$3+:} false; then :
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 else
1866 # Is the header compilable?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868 $as_echo_n "checking $2 usability... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $4
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_cxx_try_compile "$LINENO"; then :
1875 ac_header_compiler=yes
1876 else
1877 ac_header_compiler=no
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881 $as_echo "$ac_header_compiler" >&6; }
1882
1883 # Is the header present?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885 $as_echo_n "checking $2 presence... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_cxx_try_cpp "$LINENO"; then :
1891 ac_header_preproc=yes
1892 else
1893 ac_header_preproc=no
1894 fi
1895 rm -f conftest.err conftest.i conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897 $as_echo "$ac_header_preproc" >&6; }
1898
1899 # So? What about this header?
1900 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1901 yes:no: )
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 ;;
1907 no:yes:* )
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1911 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1915 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 ( $as_echo "## ------------------------------- ##
1919 ## Report this to [email protected] ##
1920 ## ------------------------------- ##"
1921 ) | sed "s/^/$as_me: WARNING: /" >&2
1922 ;;
1923 esac
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=\$ac_header_compiler"
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_cxx_check_header_mongrel
1938
1939 # ac_fn_cxx_try_run LINENO
1940 # ------------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1943 ac_fn_cxx_try_run ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>&5
1954 ac_status=$?
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957 { { case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_try") 2>&5
1964 ac_status=$?
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; }; }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: program exited with status $ac_status" >&5
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=$ac_status
1974 fi
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_cxx_try_run
1980
1981 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1982 # ---------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_cxx_check_header_compile ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 else
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_cxx_try_compile "$LINENO"; then :
1999 eval "$3=yes"
2000 else
2001 eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_cxx_check_header_compile
2011
2012 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2013 # -----------------------------------------------
2014 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2015 # accordingly.
2016 ac_fn_cxx_check_decl ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 as_decl_name=`echo $2|sed 's/ *(.*//'`
2020 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2022 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2031 {
2032 #ifndef $as_decl_name
2033 #ifdef __cplusplus
2034 (void) $as_decl_use;
2035 #else
2036 (void) $as_decl_name;
2037 #endif
2038 #endif
2039
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_cxx_try_compile "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_cxx_check_decl
2057
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2062 ac_fn_c_try_run ()
2063 {
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2083 ac_status=$?
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2086 ac_retval=0
2087 else
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_retval=$ac_status
2093 fi
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2097
2098 } # ac_fn_c_try_run
2099
2100 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101 # --------------------------------------------
2102 # Tries to find the compile-time value of EXPR in a program that includes
2103 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2104 # computed
2105 ac_fn_c_compute_int ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if test "$cross_compiling" = yes; then
2109 # Depending upon the size, compute the lo and hi bounds.
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) >= 0)];
2117 test_array [0] = 0;
2118 return test_array [0];
2119
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_lo=0 ac_mid=0
2126 while :; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134 test_array [0] = 0;
2135 return test_array [0];
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_hi=$ac_mid; break
2143 else
2144 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145 if test $ac_lo -le $ac_mid; then
2146 ac_lo= ac_hi=
2147 break
2148 fi
2149 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) < 0)];
2161 test_array [0] = 0;
2162 return test_array [0];
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_hi=-1 ac_mid=-1
2170 while :; do
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main ()
2176 {
2177 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178 test_array [0] = 0;
2179 return test_array [0];
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_lo=$ac_mid; break
2187 else
2188 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2189 if test $ac_mid -le $ac_hi; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 ac_lo= ac_hi=
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 # Binary search between lo and hi bounds.
2204 while test "x$ac_lo" != "x$ac_hi"; do
2205 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 $4
2209 int
2210 main ()
2211 {
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 test_array [0] = 0;
2214 return test_array [0];
2215
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 ac_hi=$ac_mid
2222 else
2223 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 case $ac_lo in #((
2228 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229 '') ac_retval=1 ;;
2230 esac
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 static long int longval () { return $2; }
2236 static unsigned long int ulongval () { return $2; }
2237 #include <stdio.h>
2238 #include <stdlib.h>
2239 int
2240 main ()
2241 {
2242
2243 FILE *f = fopen ("conftest.val", "w");
2244 if (! f)
2245 return 1;
2246 if (($2) < 0)
2247 {
2248 long int i = longval ();
2249 if (i != ($2))
2250 return 1;
2251 fprintf (f, "%ld", i);
2252 }
2253 else
2254 {
2255 unsigned long int i = ulongval ();
2256 if (i != ($2))
2257 return 1;
2258 fprintf (f, "%lu", i);
2259 }
2260 /* Do not output a trailing newline, as this causes \r\n confusion
2261 on some platforms. */
2262 return ferror (f) || fclose (f) != 0;
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_run "$LINENO"; then :
2269 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270 else
2271 ac_retval=1
2272 fi
2273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274 conftest.$ac_objext conftest.beam conftest.$ac_ext
2275 rm -f conftest.val
2276
2277 fi
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 as_fn_set_status $ac_retval
2280
2281 } # ac_fn_c_compute_int
2282 cat >config.log <<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2285
2286 It was created by GECODE $as_me 6.2.0, which was
2287 generated by GNU Autoconf 2.69. Invocation command line was
2288
2289 $ $0 $@
2290
2291 _ACEOF
2292 exec 5>>config.log
2293 {
2294 cat <<_ASUNAME
2295 ## --------- ##
2296 ## Platform. ##
2297 ## --------- ##
2298
2299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307
2308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315
2316 _ASUNAME
2317
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 $as_echo "PATH: $as_dir"
2324 done
2325 IFS=$as_save_IFS
2326
2327 } >&5
2328
2329 cat >&5 <<_ACEOF
2330
2331
2332 ## ----------- ##
2333 ## Core tests. ##
2334 ## ----------- ##
2335
2336 _ACEOF
2337
2338
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_configure_args=
2345 ac_configure_args0=
2346 ac_configure_args1=
2347 ac_must_keep_next=false
2348 for ac_pass in 1 2
2349 do
2350 for ac_arg
2351 do
2352 case $ac_arg in
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2356 continue ;;
2357 *\'*)
2358 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 esac
2360 case $ac_pass in
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 2)
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2366 else
2367 case $ac_arg in
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 esac
2375 ;;
2376 -* ) ac_must_keep_next=true ;;
2377 esac
2378 fi
2379 as_fn_append ac_configure_args " '$ac_arg'"
2380 ;;
2381 esac
2382 done
2383 done
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2386
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2394 {
2395 echo
2396
2397 $as_echo "## ---------------- ##
2398 ## Cache variables. ##
2399 ## ---------------- ##"
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2402 (
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2425 *)
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 ;;
2428 esac |
2429 sort
2430 )
2431 echo
2432
2433 $as_echo "## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##"
2436 echo
2437 for ac_var in $ac_subst_vars
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446
2447 if test -n "$ac_subst_files"; then
2448 $as_echo "## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##"
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
2464 $as_echo "## ----------- ##
2465 ## confdefs.h. ##
2466 ## ----------- ##"
2467 echo
2468 cat confdefs.h
2469 echo
2470 fi
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2474 } >&5
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 exit $exit_status
2478 ' 0
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481 done
2482 ac_signal=0
2483
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2486
2487 $as_echo "/* confdefs.h */" > confdefs.h
2488
2489 # Predefined preprocessor variables.
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2513 _ACEOF
2514
2515
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2518 ac_site_file1=NONE
2519 ac_site_file2=NONE
2520 if test -n "$CONFIG_SITE"; then
2521 # We do not want a PATH search for config.site.
2522 case $CONFIG_SITE in #((
2523 -*) ac_site_file1=./$CONFIG_SITE;;
2524 */*) ac_site_file1=$CONFIG_SITE;;
2525 *) ac_site_file1=./$CONFIG_SITE;;
2526 esac
2527 elif test "x$prefix" != xNONE; then
2528 ac_site_file1=$prefix/share/config.site
2529 ac_site_file2=$prefix/etc/config.site
2530 else
2531 ac_site_file1=$ac_default_prefix/share/config.site
2532 ac_site_file2=$ac_default_prefix/etc/config.site
2533 fi
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 do
2536 test "x$ac_site_file" = xNONE && continue
2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2541 . "$ac_site_file" \
2542 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "failed to load site script $ac_site_file
2545 See \`config.log' for more details" "$LINENO" 5; }
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 as_fn_append ac_header_list " stdlib.h"
2567 as_fn_append ac_header_list " unistd.h"
2568 as_fn_append ac_header_list " sys/param.h"
2569 # Check that the precious variables saved in the cache have kept the same
2570 # value.
2571 ac_cache_corrupted=false
2572 for ac_var in $ac_precious_vars; do
2573 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2574 eval ac_new_set=\$ac_env_${ac_var}_set
2575 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2576 eval ac_new_val=\$ac_env_${ac_var}_value
2577 case $ac_old_set,$ac_new_set in
2578 set,)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2580 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2582 ,set)
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2584 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2585 ac_cache_corrupted=: ;;
2586 ,);;
2587 *)
2588 if test "x$ac_old_val" != "x$ac_new_val"; then
2589 # differences in whitespace do not lead to failure.
2590 ac_old_val_w=`echo x $ac_old_val`
2591 ac_new_val_w=`echo x $ac_new_val`
2592 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2594 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2595 ac_cache_corrupted=:
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599 eval $ac_var=\$ac_old_val
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2602 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2604 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2605 fi;;
2606 esac
2607 # Pass precious variables to config.status.
2608 if test "$ac_new_set" = set; then
2609 case $ac_new_val in
2610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2611 *) ac_arg=$ac_var=$ac_new_val ;;
2612 esac
2613 case " $ac_configure_args " in
2614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2615 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616 esac
2617 fi
2618 done
2619 if $ac_cache_corrupted; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2623 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2624 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625 fi
2626 ## -------------------- ##
2627 ## Main body of script. ##
2628 ## -------------------- ##
2629
2630 ac_ext=c
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637 ac_config_headers="$ac_config_headers gecode/support/config.hpp"
2638
2639
2640
2641 ac_gecode_soversion=49
2642 GECODE_SOVERSION=${ac_gecode_soversion}
2643
2644 ac_gecode_flatzincversion=1.6
2645 GECODE_FLATZINC_VERSION=${ac_gecode_flatzincversion}
2646
2647
2648 # checks for programs
2649
2650 : ${CXXFLAGS=""} : ${CFLAGS=""} : ${DLLFLAGS=""} : ${GLDFLAGS=""}
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
2709 # Test for platform specific behaviour of arithmetic
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 # Check whether --with-host-os was given.
2770 if test "${with_host_os+set}" = set; then :
2771 withval=$with_host_os;
2772 fi
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the host operating system" >&5
2775 $as_echo_n "checking for the host operating system... " >&6; }
2776 if test "${with_host_os:-no}" = "no"; then
2777 guess_host_os=$(uname -s 2>/dev/null)
2778 else
2779 guess_host_os=${with_host_os}
2780 fi
2781 case ${guess_host_os} in
2782 GNU/kFreeBSD|*inux*|FreeBSD|NetBSD)
2783 host_os=linux
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
2785 $as_echo "Linux" >&6; }
2786 ;;
2787 *arwin*)
2788 host_os=darwin
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
2790 $as_echo "Darwin" >&6; }
2791 ;;
2792 CYGWIN*|*indows*)
2793 host_os=windows
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
2795 $as_echo "Windows" >&6; }
2796 ;;
2797 *)
2798 as_fn_error $? "Host OS not supported." "$LINENO" 5
2799 ;;
2800 esac
2801
2802 if test "${CXX}x" = "x" -a "${CC}x" = "x" -a "${host_os}" = "windows"; then
2803 CC=cl
2804 CXX=cl
2805 fi
2806
2807 ac_ext=cpp
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2814 CXX=$CCC
2815 else
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2818 do
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_CXX+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CXX=$ac_cv_prog_CXX
2847 if test -n "$CXX"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2849 $as_echo "$CXX" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855
2856 test -n "$CXX" && break
2857 done
2858 fi
2859 if test -z "$CXX"; then
2860 ac_ct_CXX=$CXX
2861 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2862 do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2893 $as_echo "$ac_ct_CXX" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 test -n "$ac_ct_CXX" && break
2901 done
2902
2903 if test "x$ac_ct_CXX" = x; then
2904 CXX="g++"
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 CXX=$ac_ct_CXX
2913 fi
2914 fi
2915
2916 fi
2917 fi
2918 # Provide some information about the compiler.
2919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2920 set X $ac_compile
2921 ac_compiler=$2
2922 for ac_option in --version -v -V -qversion; do
2923 { { ac_try="$ac_compiler $ac_option >&5"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2931 ac_status=$?
2932 if test -s conftest.err; then
2933 sed '10a\
2934 ... rest of stderr output deleted ...
2935 10q' conftest.err >conftest.er1
2936 cat conftest.er1 >&5
2937 fi
2938 rm -f conftest.er1 conftest.err
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }
2941 done
2942
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945
2946 int
2947 main ()
2948 {
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 ac_clean_files_save=$ac_clean_files
2955 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2956 # Try to create an executable without -o first, disregard a.out.
2957 # It will help us diagnose broken compilers, and finding out an intuition
2958 # of exeext.
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2960 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2961 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2962
2963 # The possible output files:
2964 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965
2966 ac_rmfiles=
2967 for ac_file in $ac_files
2968 do
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2971 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2972 esac
2973 done
2974 rm -f $ac_rmfiles
2975
2976 if { { ac_try="$ac_link_default"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_link_default") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; then :
2987 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2988 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2989 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2990 # so that the user can short-circuit this test for compilers unknown to
2991 # Autoconf.
2992 for ac_file in $ac_files ''
2993 do
2994 test -f "$ac_file" || continue
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 ;;
2998 [ab].out )
2999 # We found the default executable, but exeext='' is most
3000 # certainly right.
3001 break;;
3002 *.* )
3003 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3004 then :; else
3005 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 fi
3007 # We set ac_cv_exeext here because the later test for it is not
3008 # safe: cross compilers may not add the suffix if given an `-o'
3009 # argument, so we may need to know it at that point already.
3010 # Even if this section looks crufty: it has the advantage of
3011 # actually working.
3012 break;;
3013 * )
3014 break;;
3015 esac
3016 done
3017 test "$ac_cv_exeext" = no && ac_cv_exeext=
3018
3019 else
3020 ac_file=''
3021 fi
3022 if test -z "$ac_file"; then :
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 $as_echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error 77 "C++ compiler cannot create executables
3031 See \`config.log' for more details" "$LINENO" 5; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3037 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3039 $as_echo "$ac_file" >&6; }
3040 ac_exeext=$ac_cv_exeext
3041
3042 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3043 ac_clean_files=$ac_clean_files_save
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3045 $as_echo_n "checking for suffix of executables... " >&6; }
3046 if { { ac_try="$ac_link"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_link") 2>&5
3054 ac_status=$?
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }; then :
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3060 # `rm'.
3061 for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 break;;
3067 * ) break;;
3068 esac
3069 done
3070 else
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details" "$LINENO" 5; }
3075 fi
3076 rm -f conftest conftest$ac_cv_exeext
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3078 $as_echo "$ac_cv_exeext" >&6; }
3079
3080 rm -f conftest.$ac_ext
3081 EXEEXT=$ac_cv_exeext
3082 ac_exeext=$EXEEXT
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3085 #include <stdio.h>
3086 int
3087 main ()
3088 {
3089 FILE *f = fopen ("conftest.out", "w");
3090 return ferror (f) || fclose (f) != 0;
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 ac_clean_files="$ac_clean_files conftest.out"
3097 # Check that the compiler produces executables we can run. If not, either
3098 # the compiler is broken, or we cross compile.
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3100 $as_echo_n "checking whether we are cross compiling... " >&6; }
3101 if test "$cross_compiling" != yes; then
3102 { { ac_try="$ac_link"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3113 if { ac_try='./conftest$ac_cv_exeext'
3114 { { case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; }; then
3124 cross_compiling=no
3125 else
3126 if test "$cross_compiling" = maybe; then
3127 cross_compiling=yes
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "cannot run C++ compiled programs.
3132 If you meant to cross compile, use \`--host'.
3133 See \`config.log' for more details" "$LINENO" 5; }
3134 fi
3135 fi
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3138 $as_echo "$cross_compiling" >&6; }
3139
3140 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3141 ac_clean_files=$ac_clean_files_save
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3143 $as_echo_n "checking for suffix of object files... " >&6; }
3144 if ${ac_cv_objext+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.o conftest.obj
3159 if { { ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_compile") 2>&5
3167 ac_status=$?
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 for ac_file in conftest.o conftest.obj conftest.*; do
3171 test -f "$ac_file" || continue;
3172 case $ac_file in
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3175 break;;
3176 esac
3177 done
3178 else
3179 $as_echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "cannot compute suffix of object files: cannot compile
3185 See \`config.log' for more details" "$LINENO" 5; }
3186 fi
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3190 $as_echo "$ac_cv_objext" >&6; }
3191 OBJEXT=$ac_cv_objext
3192 ac_objext=$OBJEXT
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3194 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3195 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3200
3201 int
3202 main ()
3203 {
3204 #ifndef __GNUC__
3205 choke me
3206 #endif
3207
3208 ;
3209 return 0;
3210 }
3211 _ACEOF
3212 if ac_fn_cxx_try_compile "$LINENO"; then :
3213 ac_compiler_gnu=yes
3214 else
3215 ac_compiler_gnu=no
3216 fi
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3219
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3222 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3223 if test $ac_compiler_gnu = yes; then
3224 GXX=yes
3225 else
3226 GXX=
3227 fi
3228 ac_test_CXXFLAGS=${CXXFLAGS+set}
3229 ac_save_CXXFLAGS=$CXXFLAGS
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3231 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3232 if ${ac_cv_prog_cxx_g+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3236 ac_cxx_werror_flag=yes
3237 ac_cv_prog_cxx_g=no
3238 CXXFLAGS="-g"
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_cxx_try_compile "$LINENO"; then :
3251 ac_cv_prog_cxx_g=yes
3252 else
3253 CXXFLAGS=""
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 if ac_fn_cxx_try_compile "$LINENO"; then :
3266
3267 else
3268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3269 CXXFLAGS="-g"
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 if ac_fn_cxx_try_compile "$LINENO"; then :
3282 ac_cv_prog_cxx_g=yes
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3292 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3293 if test "$ac_test_CXXFLAGS" = set; then
3294 CXXFLAGS=$ac_save_CXXFLAGS
3295 elif test $ac_cv_prog_cxx_g = yes; then
3296 if test "$GXX" = yes; then
3297 CXXFLAGS="-g -O2"
3298 else
3299 CXXFLAGS="-g"
3300 fi
3301 else
3302 if test "$GXX" = yes; then
3303 CXXFLAGS="-O2"
3304 else
3305 CXXFLAGS=
3306 fi
3307 fi
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359 ac_ct_CC=$CC
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396 if test "x$ac_ct_CC" = x; then
3397 CC=""
3398 else
3399 case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405 CC=$ac_ct_CC
3406 fi
3407 else
3408 CC="$ac_cv_prog_CC"
3409 fi
3410
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 fi
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3473 continue
3474 fi
3475 ac_cv_prog_CC="cc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3486 shift
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3491 shift
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493 fi
3494 fi
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3511 do
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549 test -n "$CC" && break
3550 done
3551 fi
3552 if test -z "$CC"; then
3553 ac_ct_CC=$CC
3554 for ac_prog in cl.exe
3555 do
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593 test -n "$ac_ct_CC" && break
3594 done
3595
3596 if test "x$ac_ct_CC" = x; then
3597 CC=""
3598 else
3599 case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605 CC=$ac_ct_CC
3606 fi
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details" "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630 ac_status=$?
3631 if test -s conftest.err; then
3632 sed '10a\
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3636 fi
3637 rm -f conftest.er1 conftest.err
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3640 done
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3644 if ${ac_cv_c_compiler_gnu+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653 #ifndef __GNUC__
3654 choke me
3655 #endif
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_compiler_gnu=yes
3663 else
3664 ac_compiler_gnu=no
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3672 if test $ac_compiler_gnu = yes; then
3673 GCC=yes
3674 else
3675 GCC=
3676 fi
3677 ac_test_CFLAGS=${CFLAGS+set}
3678 ac_save_CFLAGS=$CFLAGS
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3681 if ${ac_cv_prog_cc_g+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 ac_save_c_werror_flag=$ac_c_werror_flag
3685 ac_c_werror_flag=yes
3686 ac_cv_prog_cc_g=no
3687 CFLAGS="-g"
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_g=yes
3701 else
3702 CFLAGS=""
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715
3716 else
3717 ac_c_werror_flag=$ac_save_c_werror_flag
3718 CFLAGS="-g"
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_g=yes
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3749 fi
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3755 fi
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3759 if ${ac_cv_prog_cc_c89+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdio.h>
3768 struct stat;
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3775 {
3776 return p[i];
3777 }
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3779 {
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3786 }
3787
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3808 int
3809 main ()
3810 {
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_c89=$ac_arg
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext
3824 test "x$ac_cv_prog_cc_c89" != "xno" && break
3825 done
3826 rm -f conftest.$ac_ext
3827 CC=$ac_save_CC
3828
3829 fi
3830 # AC_CACHE_VAL
3831 case "x$ac_cv_prog_cc_c89" in
3832 x)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;;
3835 xno)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3837 $as_echo "unsupported" >&6; } ;;
3838 *)
3839 CC="$CC $ac_cv_prog_cc_c89"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3841 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3842 esac
3843 if test "x$ac_cv_prog_cc_c89" != xno; then :
3844
3845 fi
3846
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853 ac_ext=cpp
3854 ac_cpp='$CXXCPP $CPPFLAGS'
3855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3858
3859
3860 if test -n "$ac_tool_prefix"; then
3861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_prog_RANLIB+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 if test -n "$RANLIB"; then
3869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882 done
3883 done
3884 IFS=$as_save_IFS
3885
3886 fi
3887 fi
3888 RANLIB=$ac_cv_prog_RANLIB
3889 if test -n "$RANLIB"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3891 $as_echo "$RANLIB" >&6; }
3892 else
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 fi
3896
3897
3898 fi
3899 if test -z "$ac_cv_prog_RANLIB"; then
3900 ac_ct_RANLIB=$RANLIB
3901 # Extract the first word of "ranlib", so it can be a program name with args.
3902 set dummy ranlib; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -n "$ac_ct_RANLIB"; then
3909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_ac_ct_RANLIB="ranlib"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3929 if test -n "$ac_ct_RANLIB"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3931 $as_echo "$ac_ct_RANLIB" >&6; }
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937 if test "x$ac_ct_RANLIB" = x; then
3938 RANLIB=":"
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3945 esac
3946 RANLIB=$ac_ct_RANLIB
3947 fi
3948 else
3949 RANLIB="$ac_cv_prog_RANLIB"
3950 fi
3951
3952
3953 # Extract the first word of "diff", so it can be a program name with args.
3954 set dummy diff; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_PROG_DIFF+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 if test -n "$PROG_DIFF"; then
3961 ac_cv_prog_PROG_DIFF="$PROG_DIFF" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_PROG_DIFF="ok"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974 done
3975 done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 PROG_DIFF=$ac_cv_prog_PROG_DIFF
3981 if test -n "$PROG_DIFF"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DIFF" >&5
3983 $as_echo "$PROG_DIFF" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990 if test "${PROG_DIFF}x" = "x"; then
3991 as_fn_error $? "In order to compile Gecode, you need the diff tool." "$LINENO" 5
3992 fi
3993 # Extract the first word of "tar", so it can be a program name with args.
3994 set dummy tar; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_PROG_TAR+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 if test -n "$PROG_TAR"; then
4001 ac_cv_prog_PROG_TAR="$PROG_TAR" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_PROG_TAR="ok"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014 done
4015 done
4016 IFS=$as_save_IFS
4017
4018 fi
4019 fi
4020 PROG_TAR=$ac_cv_prog_PROG_TAR
4021 if test -n "$PROG_TAR"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAR" >&5
4023 $as_echo "$PROG_TAR" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030 if test "${PROG_TAR}x" = "x"; then
4031 as_fn_error $? "In order to compile Gecode, you need the tar tool." "$LINENO" 5
4032 fi
4033 # Extract the first word of "make", so it can be a program name with args.
4034 set dummy make; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_PROG_MAKE+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -n "$PROG_MAKE"; then
4041 ac_cv_prog_PROG_MAKE="$PROG_MAKE" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050 ac_cv_prog_PROG_MAKE="ok"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 PROG_MAKE=$ac_cv_prog_PROG_MAKE
4061 if test -n "$PROG_MAKE"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_MAKE" >&5
4063 $as_echo "$PROG_MAKE" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069
4070 if test "${PROG_MAKE}x" = "x"; then
4071 as_fn_error $? "In order to compile Gecode, you need the make tool." "$LINENO" 5
4072 fi
4073 # Extract the first word of "sed", so it can be a program name with args.
4074 set dummy sed; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_prog_PROG_SED+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$PROG_SED"; then
4081 ac_cv_prog_PROG_SED="$PROG_SED" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_PROG_SED="ok"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4093 fi
4094 done
4095 done
4096 IFS=$as_save_IFS
4097
4098 fi
4099 fi
4100 PROG_SED=$ac_cv_prog_PROG_SED
4101 if test -n "$PROG_SED"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SED" >&5
4103 $as_echo "$PROG_SED" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 fi
4108
4109
4110 if test "${PROG_SED}x" = "x"; then
4111 as_fn_error $? "In order to compile Gecode, you need the sed tool." "$LINENO" 5
4112 fi
4113 # Extract the first word of "perl", so it can be a program name with args.
4114 set dummy perl; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_PROG_PERL+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$PROG_PERL"; then
4121 ac_cv_prog_PROG_PERL="$PROG_PERL" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_PROG_PERL="ok"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 PROG_PERL=$ac_cv_prog_PROG_PERL
4141 if test -n "$PROG_PERL"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PERL" >&5
4143 $as_echo "$PROG_PERL" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 if test "${PROG_PERL}x" = "x"; then
4151 as_fn_error $? "In order to compile Gecode, you need perl." "$LINENO" 5
4152 fi
4153
4154 ac_ext=cpp
4155 ac_cpp='$CXXCPP $CPPFLAGS'
4156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4160 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4161 if test -z "$CXXCPP"; then
4162 if ${ac_cv_prog_CXXCPP+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 # Double quotes because CXXCPP needs to be expanded
4166 for CXXCPP in "$CXX -E" "/lib/cpp"
4167 do
4168 ac_preproc_ok=false
4169 for ac_cxx_preproc_warn_flag in '' yes
4170 do
4171 # Use a header file that comes with gcc, so configuring glibc
4172 # with a fresh cross-compiler works.
4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174 # <limits.h> exists even on freestanding compilers.
4175 # On the NeXT, cc -E runs the code through the compiler's parser,
4176 # not just through cpp. "Syntax error" is here to catch this case.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184 Syntax error
4185 _ACEOF
4186 if ac_fn_cxx_try_cpp "$LINENO"; then :
4187
4188 else
4189 # Broken: fails on valid input.
4190 continue
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194 # OK, works on sane cases. Now check whether nonexistent headers
4195 # can be detected and how.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if ac_fn_cxx_try_cpp "$LINENO"; then :
4201 # Broken: success on invalid input.
4202 continue
4203 else
4204 # Passes both tests.
4205 ac_preproc_ok=:
4206 break
4207 fi
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.i conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4214 break
4215 fi
4216
4217 done
4218 ac_cv_prog_CXXCPP=$CXXCPP
4219
4220 fi
4221 CXXCPP=$ac_cv_prog_CXXCPP
4222 else
4223 ac_cv_prog_CXXCPP=$CXXCPP
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4226 $as_echo "$CXXCPP" >&6; }
4227 ac_preproc_ok=false
4228 for ac_cxx_preproc_warn_flag in '' yes
4229 do
4230 # Use a header file that comes with gcc, so configuring glibc
4231 # with a fresh cross-compiler works.
4232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233 # <limits.h> exists even on freestanding compilers.
4234 # On the NeXT, cc -E runs the code through the compiler's parser,
4235 # not just through cpp. "Syntax error" is here to catch this case.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243 Syntax error
4244 _ACEOF
4245 if ac_fn_cxx_try_cpp "$LINENO"; then :
4246
4247 else
4248 # Broken: fails on valid input.
4249 continue
4250 fi
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4252
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <ac_nonexistent.h>
4258 _ACEOF
4259 if ac_fn_cxx_try_cpp "$LINENO"; then :
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 # Passes both tests.
4264 ac_preproc_ok=:
4265 break
4266 fi
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269 done
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4273
4274 else
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4278 See \`config.log' for more details" "$LINENO" 5; }
4279 fi
4280
4281 ac_ext=cpp
4282 ac_cpp='$CXXCPP $CPPFLAGS'
4283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4286
4287
4288
4289
4290 # Check whether --with-compiler-vendor was given.
4291 if test "${with_compiler_vendor+set}" = set; then :
4292 withval=$with_compiler_vendor;
4293 fi
4294
4295
4296
4297 if test "${with_compiler_vendor:-no}" = "no"; then
4298 ac_ext=cpp
4299 ac_cpp='$CXXCPP $CPPFLAGS'
4300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #ifndef __GNUG__
4307 # error "Macro __GNUG__ is undefined!"
4308 /* For some compilers (eg. SGI's CC), #error is not
4309 enough... */
4310 please, do fail
4311 #endif
4312 int
4313 main ()
4314 {
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321 ac_cv_cxx_compiler_vendor=gnu
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #ifndef __INTEL_COMPILER
4326 # error "Macro __INTEL_COMPILER is undefined!"
4327 /* For some compilers (eg. SGI's CC), #error is not
4328 enough... */
4329 please, do fail
4330 #endif
4331 int
4332 main ()
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_cxx_try_compile "$LINENO"; then :
4340 ac_cv_cxx_compiler_vendor=intel
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #ifndef _M_IX86
4344 # error "Macro _M_IX86 is undefined!"
4345 /* For some compilers (eg. SGI's CC), #error is not
4346 enough... */
4347 please, do fail
4348 #endif
4349 int
4350 main ()
4351 {
4352
4353 ;
4354 return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 #ifndef _M_IA64
4364 # error "Macro _M_IA64 is undefined!"
4365 /* For some compilers (eg. SGI's CC), #error is not
4366 enough... */
4367 please, do fail
4368 #endif
4369 int
4370 main ()
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_cxx_try_compile "$LINENO"; then :
4378 ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #ifndef _M_X64
4384 # error "Macro _M_X64 is undefined!"
4385 /* For some compilers (eg. SGI's CC), #error is not
4386 enough... */
4387 please, do fail
4388 #endif
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_cxx_try_compile "$LINENO"; then :
4398 ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 else
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #ifndef _MSC_VER
4411 # error "Macro _MSC_VER is undefined!"
4412 /* For some compilers (eg. SGI's CC), #error is not
4413 enough... */
4414 please, do fail
4415 #endif
4416 int
4417 main ()
4418 {
4419
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 ac_cv_cxx_compiler_vendor=microsoft
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #ifndef _M_IX86
4429 # error "Macro _M_IX86 is undefined!"
4430 /* For some compilers (eg. SGI's CC), #error is not
4431 enough... */
4432 please, do fail
4433 #endif
4434 int
4435 main ()
4436 {
4437
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_c_try_compile "$LINENO"; then :
4443 ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #ifndef _M_IA64
4449 # error "Macro _M_IA64 is undefined!"
4450 /* For some compilers (eg. SGI's CC), #error is not
4451 enough... */
4452 please, do fail
4453 #endif
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #ifndef _M_X64
4469 # error "Macro _M_X64 is undefined!"
4470 /* For some compilers (eg. SGI's CC), #error is not
4471 enough... */
4472 please, do fail
4473 #endif
4474 int
4475 main ()
4476 {
4477
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 else
4487 ac_cv_cxx_compiler_vendor=unknown
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 ac_ext=cpp
4491 ac_cpp='$CXXCPP $CPPFLAGS'
4492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4495
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500
4501 ac_ext=cpp
4502 ac_cpp='$CXXCPP $CPPFLAGS'
4503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4506
4507 else
4508 ac_cv_cxx_compiler_vendor=${with_compiler_vendor}
4509 fi
4510 ac_gecode_compiler_vendor="$ac_cv_cxx_compiler_vendor"
4511 case $ac_gecode_compiler_vendor in
4512 gnu)
4513
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4524 #error Version too old
4525 really, the version is too old
4526 #endif
4527 int
4528 main ()
4529 {
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536
4537 else
4538 as_fn_error $? "Your version of gcc is too old. You need at least version 4.2." "$LINENO" 5
4539
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_ext=cpp
4543 ac_cpp='$CXXCPP $CPPFLAGS'
4544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4547
4548 ac_ext=cpp
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556
4557 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4558 #error Version too old
4559 really, the version is too old
4560 #endif
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570
4571 else
4572 as_fn_error $? "Your version of g++ is too old. You need at least version 4.2." "$LINENO" 5
4573
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_ext=cpp
4577 ac_cpp='$CXXCPP $CPPFLAGS'
4578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4581
4582
4583 ;;
4584 intel)
4585 ;;
4586 microsoft)
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 #if _MSC_VER < 1800
4598 #error Version too old
4599 really, the version is too old
4600 #endif
4601 int
4602 main ()
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_cxx_try_compile "$LINENO"; then :
4610
4611 else
4612 as_fn_error $? "Your version of cl is too old. You need at least Microsoft Visual C++ 2013." "$LINENO" 5
4613 ac_ext=cpp
4614 ac_cpp='$CXXCPP $CPPFLAGS'
4615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4618
4619
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622
4623 ;;
4624 *)
4625 ;;
4626 esac
4627
4628
4629 # Check whether --enable-resource was given.
4630 if test "${enable_resource+set}" = set; then :
4631 enableval=$enable_resource;
4632 fi
4633
4634 # Extract the first word of "rc.exe", so it can be a program name with args.
4635 set dummy rc.exe; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_HAVE_RC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$HAVE_RC"; then
4642 ac_cv_prog_HAVE_RC="$HAVE_RC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_HAVE_RC="found"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 HAVE_RC=$ac_cv_prog_HAVE_RC
4662 if test -n "$HAVE_RC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RC" >&5
4664 $as_echo "$HAVE_RC" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Visual Studio resource files" >&5
4672 $as_echo_n "checking whether to build with Visual Studio resource files... " >&6; }
4673 if test "${enable_resource:-no}" = "yes" -a \
4674 "${ac_gecode_compiler_vendor}" = "microsoft"; then
4675 if test "${HAVE_RC}x" = "x"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 RESCOMP=@true
4679
4680 enable_resource=no
4681
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4684 $as_echo "yes" >&6; }
4685 RESCOMP="rc.exe"
4686
4687 enable_resource=yes
4688
4689 fi
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 enable_resource=no
4694
4695 RESCOMP=@true
4696
4697 fi
4698
4699
4700 ac_ext=cpp
4701 ac_cpp='$CXXCPP $CPPFLAGS'
4702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4705
4706
4707
4708 # Check whether --with-sdk was given.
4709 if test "${with_sdk+set}" = set; then :
4710 withval=$with_sdk;
4711 fi
4712
4713 if test "${host_os}" = "darwin"; then
4714 if test "${with_sdk:-no}" != "no"; then
4715
4716 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4718 $as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4719 if ${CXX} -isysroot ${with_sdk} 2>&1 | grep "ignoring unknown option" -q; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 :
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4726
4727 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4728 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4729 fi
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4732 $as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4733 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4734 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4735 ac_ext=cpp
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743
4744 int
4745 main ()
4746 {
4747
4748 ;
4749 return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_cxx_try_compile "$LINENO"; then :
4753 if grep -q "unrecognized\|argument unused" conftest.err; then
4754 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 :
4758 else
4759 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4761 $as_echo "yes" >&6; }
4762
4763 CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4764 fi
4765
4766 else
4767 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 :
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_ext=cpp
4774 ac_cpp='$CXXCPP $CPPFLAGS'
4775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -isysroot ${with_sdk}" >&5
4781 $as_echo_n "checking whether ${CC} accepts -isysroot ${with_sdk}... " >&6; }
4782 ac_gecode_save_CFLAGS="${CFLAGS}"
4783 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS} -Werror"
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 if grep -q "unrecognized\|argument unused" conftest.err; then
4803 CFLAGS="${ac_gecode_save_CFLAGS}"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 :
4807 else
4808 CFLAGS="${ac_gecode_save_CFLAGS}"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811
4812 CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4813 fi
4814
4815 else
4816 CFLAGS="${ac_gecode_save_CFLAGS}"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 :
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_ext=cpp
4823 ac_cpp='$CXXCPP $CPPFLAGS'
4824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4827
4828 fi
4829 DLLFLAGS="-Wl,-syslibroot,${with_sdk}${DLLFLAGS:+ }${DLLFLAGS}"
4830 fi
4831 fi
4832
4833 # Check whether --with-macosx-version-min was given.
4834 if test "${with_macosx_version_min+set}" = set; then :
4835 withval=$with_macosx_version_min;
4836 fi
4837
4838 if test "${host_os}" = "darwin"; then
4839 if test "${with_macosx_version_min:-no}" != "no"; then
4840
4841 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4843 $as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4844 if ${CXX} -mmacosx-version-min=${with_macosx_version_min} 2>&1 | grep "ignoring unknown option" -q; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 :
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850 $as_echo "yes" >&6; }
4851
4852 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4853 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4854 fi
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4857 $as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4858 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4859 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4860 ac_ext=cpp
4861 ac_cpp='$CXXCPP $CPPFLAGS'
4862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4865
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_cxx_try_compile "$LINENO"; then :
4878 if grep -q "unrecognized\|argument unused" conftest.err; then
4879 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 :
4883 else
4884 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886 $as_echo "yes" >&6; }
4887
4888 CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4889 fi
4890
4891 else
4892 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 :
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_ext=cpp
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4906 $as_echo_n "checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4907 ac_gecode_save_CFLAGS="${CFLAGS}"
4908 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS} -Werror"
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917
4918 int
4919 main ()
4920 {
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 if grep -q "unrecognized\|argument unused" conftest.err; then
4928 CFLAGS="${ac_gecode_save_CFLAGS}"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 :
4932 else
4933 CFLAGS="${ac_gecode_save_CFLAGS}"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4936
4937 CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4938 fi
4939
4940 else
4941 CFLAGS="${ac_gecode_save_CFLAGS}"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 :
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 ac_ext=cpp
4948 ac_cpp='$CXXCPP $CPPFLAGS'
4949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4952
4953 fi
4954 DLLFLAGS="-mmacosx-version-min=${with_macosx_version_min}${DLLFLAGS:+ }${DLLFLAGS}"
4955 fi
4956 fi
4957
4958 # Check whether --with-architectures was given.
4959 if test "${with_architectures+set}" = set; then :
4960 withval=$with_architectures;
4961 fi
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build for different architectures" >&5
4964 $as_echo_n "checking Whether to build for different architectures... " >&6; }
4965 if test "${host_os}" = "darwin"; then
4966 if test "${with_architectures:-no}" != "no"; then
4967 archflags="";
4968 for a in `echo ${with_architectures} | sed -e "s/,/ /g"`; do
4969 archflags="${archflags} -arch $a";
4970 done
4971
4972 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
4974 $as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
4975 if ${CXX} ${archflags} 2>&1 | grep "ignoring unknown option" -q; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 :
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4981 $as_echo "yes" >&6; }
4982
4983 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
4984 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
4985 fi
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
4988 $as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
4989 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4990 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4996
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_cxx_try_compile "$LINENO"; then :
5009 if grep -q "unrecognized\|argument unused" conftest.err; then
5010 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 :
5014 else
5015 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5017 $as_echo "yes" >&6; }
5018
5019 CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
5020 fi
5021
5022 else
5023 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 :
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 ac_ext=cpp
5030 ac_cpp='$CXXCPP $CPPFLAGS'
5031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${archflags}" >&5
5037 $as_echo_n "checking whether ${CC} accepts ${archflags}... " >&6; }
5038 ac_gecode_save_CFLAGS="${CFLAGS}"
5039 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS} -Werror"
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 if grep -q "unrecognized\|argument unused" conftest.err; then
5059 CFLAGS="${ac_gecode_save_CFLAGS}"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 :
5063 else
5064 CFLAGS="${ac_gecode_save_CFLAGS}"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5067
5068 CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
5069 fi
5070
5071 else
5072 CFLAGS="${ac_gecode_save_CFLAGS}"
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 :
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_ext=cpp
5079 ac_cpp='$CXXCPP $CPPFLAGS'
5080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5083
5084 fi
5085 DLLFLAGS="${archflags}${DLLFLAGS:+ }${DLLFLAGS}"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087 $as_echo "yes" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098
5099
5100 # Check whether --with-lib-prefix was given.
5101 if test "${with_lib_prefix+set}" = set; then :
5102 withval=$with_lib_prefix;
5103 fi
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name prefix" >&5
5106 $as_echo_n "checking for user-defined library name prefix... " >&6; }
5107 if test "x${with_lib_prefix}" != "x"; then
5108 ac_gecode_userprefix=${with_lib_prefix}
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_prefix}" >&5
5110 $as_echo "${with_lib_prefix}" >&6; }
5111 else
5112 ac_gecode_userprefix=
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117 cat >>confdefs.h <<_ACEOF
5118 #define GECODE_DLL_USERPREFIX "${ac_gecode_userprefix}"
5119 _ACEOF
5120
5121
5122 # Check whether --with-lib-suffix was given.
5123 if test "${with_lib_suffix+set}" = set; then :
5124 withval=$with_lib_suffix;
5125 fi
5126
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name suffix" >&5
5128 $as_echo_n "checking for user-defined library name suffix... " >&6; }
5129 if test "x${with_lib_suffix}" != "x"; then
5130 ac_gecode_usersuffix=${with_lib_suffix}
5131 USERSUFFIX=${with_lib_suffix}
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_suffix}" >&5
5134 $as_echo "${with_lib_suffix}" >&6; }
5135 else
5136 ac_gecode_usersuffix=
5137 USERSUFFIX=""
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define GECODE_DLL_USERSUFFIX "${ac_gecode_usersuffix}"
5145 _ACEOF
5146
5147
5148
5149 # Check whether --enable-framework was given.
5150 if test "${enable_framework+set}" = set; then :
5151 enableval=$enable_framework;
5152 fi
5153
5154 if test "${host_os}" = "darwin"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build framework bundle on Mac OS X" >&5
5156 $as_echo_n "checking whether to build framework bundle on Mac OS X... " >&6; }
5157 if test "${enable_framework:-no}" = "yes"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159 $as_echo "yes" >&6; }
5160 BUILD_MACOS_FRAMEWORK="yes"
5161
5162 enable_static="yes";
5163 enable_shared="no";
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 BUILD_MACOS_FRAMEWORK="no"
5168
5169 fi
5170 fi
5171
5172
5173 if test "${host_os}" = "windows" -a \
5174 "${ac_gecode_compiler_vendor}" = "gnu"; then
5175 enable_static="yes"
5176 enable_shared="no"
5177 fi
5178 # Check whether --enable-static was given.
5179 if test "${enable_static+set}" = set; then :
5180 enableval=$enable_static;
5181 fi
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5184 $as_echo_n "checking whether to build static libraries... " >&6; }
5185 if test "${enable_static:-no}" = "yes"; then
5186
5187 $as_echo "#define GECODE_STATIC_LIBS /**/" >>confdefs.h
5188
5189 BUILDSTATIC="yes"
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192 $as_echo "yes" >&6; }
5193 enable_shared=no
5194 else
5195 BUILDSTATIC="no"
5196
5197 enable_shared=yes
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201 # Check whether --enable-shared was given.
5202 if test "${enable_shared+set}" = set; then :
5203 enableval=$enable_shared;
5204 fi
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5207 $as_echo_n "checking whether to build shared libraries... " >&6; }
5208 if test "${enable_shared:-yes}" = "yes"; then
5209 BUILDDLL="yes"
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }
5213 else
5214 BUILDDLL="no"
5215
5216 if test "${enable_static:-no}" = "no"; then
5217 as_fn_error $? "One of --enable-static or --enable-shared must be given" "$LINENO" 5
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 # Check whether --enable-debug was given.
5225 if test "${enable_debug+set}" = set; then :
5226 enableval=$enable_debug;
5227 fi
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with debug symbols and assertions" >&5
5230 $as_echo_n "checking whether to build with debug symbols and assertions... " >&6; }
5231 if test "${enable_debug:-no}" = "yes"; then
5232 ac_gecode_library_architecture="-d${ac_gecode_library_architecture}"
5233 DEBUG_BUILD=yes
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236 $as_echo "yes" >&6; }
5237 else
5238 ac_gecode_library_architecture="-r${ac_gecode_library_architecture}"
5239 DEBUG_BUILD=no
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 CFLAGS="-DNDEBUG${CFLAGS:+ }${CFLAGS}"
5244 CXXFLAGS="-DNDEBUG${CXXFLAGS:+ }${CXXFLAGS}"
5245 fi
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5250 if ${ac_cv_path_GREP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -z "$GREP"; then
5254 ac_path_GREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_prog in grep ggrep; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5264 as_fn_executable_p "$ac_path_GREP" || continue
5265 # Check for GNU ac_path_GREP and select it if it is found.
5266 # Check for GNU $ac_path_GREP
5267 case `"$ac_path_GREP" --version 2>&1` in
5268 *GNU*)
5269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5270 *)
5271 ac_count=0
5272 $as_echo_n 0123456789 >"conftest.in"
5273 while :
5274 do
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'GREP' >> "conftest.nl"
5279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5281 as_fn_arith $ac_count + 1 && ac_count=$as_val
5282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_GREP="$ac_path_GREP"
5285 ac_path_GREP_max=$ac_count
5286 fi
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5289 done
5290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5291 esac
5292
5293 $ac_path_GREP_found && break 3
5294 done
5295 done
5296 done
5297 IFS=$as_save_IFS
5298 if test -z "$ac_cv_path_GREP"; then
5299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5300 fi
5301 else
5302 ac_cv_path_GREP=$GREP
5303 fi
5304
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5307 $as_echo "$ac_cv_path_GREP" >&6; }
5308 GREP="$ac_cv_path_GREP"
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5312 $as_echo_n "checking for egrep... " >&6; }
5313 if ${ac_cv_path_EGREP+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5317 then ac_cv_path_EGREP="$GREP -E"
5318 else
5319 if test -z "$EGREP"; then
5320 ac_path_EGREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in egrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5330 as_fn_executable_p "$ac_path_EGREP" || continue
5331 # Check for GNU ac_path_EGREP and select it if it is found.
5332 # Check for GNU $ac_path_EGREP
5333 case `"$ac_path_EGREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5336 *)
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'EGREP' >> "conftest.nl"
5345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_EGREP="$ac_path_EGREP"
5351 ac_path_EGREP_max=$ac_count
5352 fi
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359 $ac_path_EGREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_EGREP"; then
5365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367 else
5368 ac_cv_path_EGREP=$EGREP
5369 fi
5370
5371 fi
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5374 $as_echo "$ac_cv_path_EGREP" >&6; }
5375 EGREP="$ac_cv_path_EGREP"
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5379 $as_echo_n "checking for ANSI C header files... " >&6; }
5380 if ${ac_cv_header_stdc+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <stdlib.h>
5386 #include <stdarg.h>
5387 #include <string.h>
5388 #include <float.h>
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_cxx_try_compile "$LINENO"; then :
5399 ac_cv_header_stdc=yes
5400 else
5401 ac_cv_header_stdc=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404
5405 if test $ac_cv_header_stdc = yes; then
5406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <string.h>
5410
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev/null 2>&1; then :
5414
5415 else
5416 ac_cv_header_stdc=no
5417 fi
5418 rm -f conftest*
5419
5420 fi
5421
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5427
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev/null 2>&1; then :
5431
5432 else
5433 ac_cv_header_stdc=no
5434 fi
5435 rm -f conftest*
5436
5437 fi
5438
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then :
5442 :
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <ctype.h>
5447 #include <stdlib.h>
5448 #if ((' ' & 0x0FF) == 0x020)
5449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5451 #else
5452 # define ISLOWER(c) \
5453 (('a' <= (c) && (c) <= 'i') \
5454 || ('j' <= (c) && (c) <= 'r') \
5455 || ('s' <= (c) && (c) <= 'z'))
5456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5457 #endif
5458
5459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5460 int
5461 main ()
5462 {
5463 int i;
5464 for (i = 0; i < 256; i++)
5465 if (XOR (islower (i), ISLOWER (i))
5466 || toupper (i) != TOUPPER (i))
5467 return 2;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_cxx_try_run "$LINENO"; then :
5472
5473 else
5474 ac_cv_header_stdc=no
5475 fi
5476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5477 conftest.$ac_objext conftest.beam conftest.$ac_ext
5478 fi
5479
5480 fi
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5483 $as_echo "$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5485
5486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5487
5488 fi
5489
5490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5492 inttypes.h stdint.h unistd.h
5493 do :
5494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5495 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5496 "
5497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5498 cat >>confdefs.h <<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5501
5502 fi
5503
5504 done
5505
5506
5507 # Check whether --enable-peakheap was given.
5508 if test "${enable_peakheap+set}" = set; then :
5509 enableval=$enable_peakheap;
5510 fi
5511
5512 if test "${enable_peakheap:-no}" = "yes"; then
5513 ac_fn_cxx_check_func "$LINENO" "_msize" "ac_cv_func__msize"
5514 if test "x$ac_cv_func__msize" = xyes; then :
5515
5516
5517 $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5518
5519
5520 $as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5521
5522
5523 $as_echo "#define GECODE_MSIZE _msize" >>confdefs.h
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5526 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5529
5530 else
5531
5532 for ac_header in malloc/malloc.h
5533 do :
5534 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5535 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
5536 cat >>confdefs.h <<_ACEOF
5537 #define HAVE_MALLOC_MALLOC_H 1
5538 _ACEOF
5539
5540 ac_fn_cxx_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
5541 if test "x$ac_cv_func_malloc_size" = xyes; then :
5542
5543 $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5544
5545
5546 $as_echo "#define GECODE_PEAKHEAP_MALLOC_MALLOC_H /**/" >>confdefs.h
5547
5548 $as_echo "#define GECODE_MSIZE malloc_size" >>confdefs.h
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5551 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5554
5555 else
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5558 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561
5562 fi
5563
5564
5565 else
5566
5567 for ac_header in malloc.h
5568 do :
5569 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5570 if test "x$ac_cv_header_malloc_h" = xyes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define HAVE_MALLOC_H 1
5573 _ACEOF
5574
5575 ac_fn_cxx_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
5576 if test "x$ac_cv_func_malloc_usable_size" = xyes; then :
5577
5578 $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5579
5580
5581 $as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5582
5583 $as_echo "#define GECODE_MSIZE malloc_usable_size" >>confdefs.h
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5586 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588 $as_echo "yes" >&6; }
5589
5590 else
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5593 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596
5597 fi
5598
5599
5600 else
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5603 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606
5607 fi
5608
5609 done
5610
5611
5612
5613 fi
5614
5615 done
5616
5617
5618 fi
5619
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5622 $as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627 # Check whether --enable-small-codesize was given.
5628 if test "${enable_small_codesize+set}" = set; then :
5629 enableval=$enable_small_codesize;
5630 fi
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize for code size" >&5
5633 $as_echo_n "checking whether to optimize for code size... " >&6; }
5634 if test "${enable_debug:-no}" = "yes"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in debug builds" >&5
5636 $as_echo "not in debug builds" >&6; }
5637 elif test "${enable_small_codesize:-no}" = "yes"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639 $as_echo "yes" >&6; }
5640 case $host_os in
5641 darwin*)
5642 ac_gecode_gcc_optimize_flag=-Oz
5643 ;;
5644 *)
5645 ac_gecode_gcc_optimize_flag=-Os
5646 ac_gecode_cl_optimize_flag=-O1
5647 ;;
5648 esac
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 ac_gecode_gcc_optimize_flag=-O3
5653 ac_gecode_cl_optimize_flag=-O2
5654 fi
5655
5656 # Check whether --enable-leak-debug was given.
5657 if test "${enable_leak_debug+set}" = set; then :
5658 enableval=$enable_leak_debug;
5659 fi
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for finding memory leaks" >&5
5662 $as_echo_n "checking whether to build with support for finding memory leaks... " >&6; }
5663 if test "${enable_leak_debug:-no}" = "yes"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5666 ac_fn_cxx_check_decl "$LINENO" "mtrace" "ac_cv_have_decl_mtrace" "#include <mcheck.h>
5667 "
5668 if test "x$ac_cv_have_decl_mtrace" = xyes; then :
5669
5670 $as_echo "#define GECODE_HAS_MTRACE /**/" >>confdefs.h
5671
5672 else
5673 as_fn_error $? "mtrace not available." "$LINENO" 5
5674 fi
5675
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681 # Check whether --enable-allocator was given.
5682 if test "${enable_allocator+set}" = set; then :
5683 enableval=$enable_allocator;
5684 fi
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with default memory allocator" >&5
5687 $as_echo_n "checking whether to build with default memory allocator... " >&6; }
5688 if test "${enable_allocator:-yes}" = "yes"; then
5689
5690 $as_echo "#define GECODE_ALLOCATOR /**/" >>confdefs.h
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699 # Check whether --enable-audit was given.
5700 if test "${enable_audit+set}" = set; then :
5701 enableval=$enable_audit;
5702 fi
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with auditing code" >&5
5705 $as_echo_n "checking whether to build with auditing code... " >&6; }
5706 if test "${enable_audit:-no}" = "yes"; then
5707
5708 $as_echo "#define GECODE_AUDIT /**/" >>confdefs.h
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717 # Check whether --enable-profile was given.
5718 if test "${enable_profile+set}" = set; then :
5719 enableval=$enable_profile;
5720 fi
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with profiling information" >&5
5723 $as_echo_n "checking whether to build with profiling information... " >&6; }
5724 if test "${enable_profile:-no}" = "yes"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 $as_echo "yes" >&6; }
5727 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5729 $as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5730 if ${CXX} -pg 2>&1 | grep "ignoring unknown option" -q; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733
5734 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5736 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5737 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 :
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743 $as_echo "yes" >&6; }
5744
5745 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5746 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5747 fi
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5750 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5751 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5752 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5753 ac_ext=cpp
5754 ac_cpp='$CXXCPP $CPPFLAGS'
5755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5758
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 if grep -q "unrecognized\|argument unused" conftest.err; then
5772 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 :
5776 else
5777 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 $as_echo "yes" >&6; }
5780
5781 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5782 fi
5783
5784 else
5785 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 :
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_ext=cpp
5792 ac_cpp='$CXXCPP $CPPFLAGS'
5793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5799 $as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5800 ac_gecode_save_CFLAGS="${CFLAGS}"
5801 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5802 ac_ext=c
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810
5811 int
5812 main ()
5813 {
5814
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 if grep -q "unrecognized\|argument unused" conftest.err; then
5821 CFLAGS="${ac_gecode_save_CFLAGS}"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 :
5825 else
5826 CFLAGS="${ac_gecode_save_CFLAGS}"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5829
5830 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5831 fi
5832
5833 else
5834 CFLAGS="${ac_gecode_save_CFLAGS}"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 :
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 ac_ext=cpp
5841 ac_cpp='$CXXCPP $CPPFLAGS'
5842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5845
5846 fi
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5849 $as_echo "yes" >&6; }
5850
5851 CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
5852 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
5853 fi
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5856 $as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5857 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5858 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5859 ac_ext=cpp
5860 ac_cpp='$CXXCPP $CPPFLAGS'
5861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5864
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867
5868 int
5869 main ()
5870 {
5871
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 if ac_fn_cxx_try_compile "$LINENO"; then :
5877 if grep -q "unrecognized\|argument unused" conftest.err; then
5878 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881
5882 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5884 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5885 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5888 :
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5891 $as_echo "yes" >&6; }
5892
5893 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5894 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5895 fi
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5898 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5899 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5900 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5901 ac_ext=cpp
5902 ac_cpp='$CXXCPP $CPPFLAGS'
5903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5906
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909
5910 int
5911 main ()
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 if grep -q "unrecognized\|argument unused" conftest.err; then
5920 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 :
5924 else
5925 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5928
5929 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5930 fi
5931
5932 else
5933 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 :
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_ext=cpp
5940 ac_cpp='$CXXCPP $CPPFLAGS'
5941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5947 $as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5948 ac_gecode_save_CFLAGS="${CFLAGS}"
5949 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958
5959 int
5960 main ()
5961 {
5962
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 if grep -q "unrecognized\|argument unused" conftest.err; then
5969 CFLAGS="${ac_gecode_save_CFLAGS}"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 :
5973 else
5974 CFLAGS="${ac_gecode_save_CFLAGS}"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5977
5978 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5979 fi
5980
5981 else
5982 CFLAGS="${ac_gecode_save_CFLAGS}"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 :
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 ac_ext=cpp
5989 ac_cpp='$CXXCPP $CPPFLAGS'
5990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5993
5994 fi
5995 else
5996 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998 $as_echo "yes" >&6; }
5999
6000 CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
6001 CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
6002 fi
6003
6004 else
6005 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008
6009 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6011 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6012 if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 :
6016 else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6018 $as_echo "yes" >&6; }
6019
6020 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6021 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6022 fi
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6025 $as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6026 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6027 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6028 ac_ext=cpp
6029 ac_cpp='$CXXCPP $CPPFLAGS'
6030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6033
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_cxx_try_compile "$LINENO"; then :
6046 if grep -q "unrecognized\|argument unused" conftest.err; then
6047 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 :
6051 else
6052 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6054 $as_echo "yes" >&6; }
6055
6056 CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6057 fi
6058
6059 else
6060 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 :
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_ext=cpp
6067 ac_cpp='$CXXCPP $CPPFLAGS'
6068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
6074 $as_echo_n "checking whether ${CC} accepts -p... " >&6; }
6075 ac_gecode_save_CFLAGS="${CFLAGS}"
6076 CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
6077 ac_ext=c
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085
6086 int
6087 main ()
6088 {
6089
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 if grep -q "unrecognized\|argument unused" conftest.err; then
6096 CFLAGS="${ac_gecode_save_CFLAGS}"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 :
6100 else
6101 CFLAGS="${ac_gecode_save_CFLAGS}"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 $as_echo "yes" >&6; }
6104
6105 CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6106 fi
6107
6108 else
6109 CFLAGS="${ac_gecode_save_CFLAGS}"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 :
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 ac_ext=cpp
6116 ac_cpp='$CXXCPP $CPPFLAGS'
6117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120
6121 fi
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 ac_ext=cpp
6125 ac_cpp='$CXXCPP $CPPFLAGS'
6126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6129
6130 fi
6131
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137 # Check whether --enable-gcov was given.
6138 if test "${enable_gcov+set}" = set; then :
6139 enableval=$enable_gcov;
6140 fi
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov support" >&5
6143 $as_echo_n "checking whether to build with gcov support... " >&6; }
6144 if test "${enable_gcov:-no}" = "yes"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147
6148 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6150 $as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6151 if ${CXX} -fprofile-arcs 2>&1 | grep "ignoring unknown option" -q; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 :
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6157 $as_echo "yes" >&6; }
6158
6159 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6160 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6161 fi
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6164 $as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6165 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6166 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6167 ac_ext=cpp
6168 ac_cpp='$CXXCPP $CPPFLAGS'
6169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6172
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_cxx_try_compile "$LINENO"; then :
6185 if grep -q "unrecognized\|argument unused" conftest.err; then
6186 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 :
6190 else
6191 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6193 $as_echo "yes" >&6; }
6194
6195 CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6196 fi
6197
6198 else
6199 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 :
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 ac_ext=cpp
6206 ac_cpp='$CXXCPP $CPPFLAGS'
6207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6210
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fprofile-arcs" >&5
6213 $as_echo_n "checking whether ${CC} accepts -fprofile-arcs... " >&6; }
6214 ac_gecode_save_CFLAGS="${CFLAGS}"
6215 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS} -Werror"
6216 ac_ext=c
6217 ac_cpp='$CPP $CPPFLAGS'
6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224
6225 int
6226 main ()
6227 {
6228
6229 ;
6230 return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 if grep -q "unrecognized\|argument unused" conftest.err; then
6235 CFLAGS="${ac_gecode_save_CFLAGS}"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 :
6239 else
6240 CFLAGS="${ac_gecode_save_CFLAGS}"
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6242 $as_echo "yes" >&6; }
6243
6244 CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6245 fi
6246
6247 else
6248 CFLAGS="${ac_gecode_save_CFLAGS}"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 :
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 ac_ext=cpp
6255 ac_cpp='$CXXCPP $CPPFLAGS'
6256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6259
6260 fi
6261
6262 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6264 $as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6265 if ${CXX} -ftest-coverage 2>&1 | grep "ignoring unknown option" -q; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 :
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271 $as_echo "yes" >&6; }
6272
6273 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6274 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6275 fi
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6278 $as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6279 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6280 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6281 ac_ext=cpp
6282 ac_cpp='$CXXCPP $CPPFLAGS'
6283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6286
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289
6290 int
6291 main ()
6292 {
6293
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_cxx_try_compile "$LINENO"; then :
6299 if grep -q "unrecognized\|argument unused" conftest.err; then
6300 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 :
6304 else
6305 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6307 $as_echo "yes" >&6; }
6308
6309 CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6310 fi
6311
6312 else
6313 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 :
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 ac_ext=cpp
6320 ac_cpp='$CXXCPP $CPPFLAGS'
6321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6324
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ftest-coverage" >&5
6327 $as_echo_n "checking whether ${CC} accepts -ftest-coverage... " >&6; }
6328 ac_gecode_save_CFLAGS="${CFLAGS}"
6329 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS} -Werror"
6330 ac_ext=c
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338
6339 int
6340 main ()
6341 {
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 if grep -q "unrecognized\|argument unused" conftest.err; then
6349 CFLAGS="${ac_gecode_save_CFLAGS}"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 :
6353 else
6354 CFLAGS="${ac_gecode_save_CFLAGS}"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6356 $as_echo "yes" >&6; }
6357
6358 CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6359 fi
6360
6361 else
6362 CFLAGS="${ac_gecode_save_CFLAGS}"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 :
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_ext=cpp
6369 ac_cpp='$CXXCPP $CPPFLAGS'
6370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6373
6374 fi
6375 DLLFLAGS=""-fprofile-arcs"${DLLFLAGS:+ }${DLLFLAGS}"
6376 DLLFLAGS=""-ftest-coverage"${DLLFLAGS:+ }${DLLFLAGS}"
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382 ac_ext=c
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387
6388 # The cast to long int works around a bug in the HP C Compiler
6389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6391 # This bug is HP SR number 8606223364.
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6393 $as_echo_n "checking size of int... " >&6; }
6394 if ${ac_cv_sizeof_int+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6398
6399 else
6400 if test "$ac_cv_type_int" = yes; then
6401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6403 as_fn_error 77 "cannot compute sizeof (int)
6404 See \`config.log' for more details" "$LINENO" 5; }
6405 else
6406 ac_cv_sizeof_int=0
6407 fi
6408 fi
6409
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6412 $as_echo "$ac_cv_sizeof_int" >&6; }
6413
6414
6415
6416 cat >>confdefs.h <<_ACEOF
6417 #define SIZEOF_INT $ac_cv_sizeof_int
6418 _ACEOF
6419
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int has at least 32 bit" >&5
6422 $as_echo_n "checking if int has at least 32 bit... " >&6; }
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425
6426 int
6427 main ()
6428 {
6429
6430 #if SIZEOF_INT>=4
6431 #else
6432 blablub
6433 #endif
6434
6435 ;
6436 return 0;
6437 }
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"; then :
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6441 $as_echo "yes" >&6; }
6442 else
6443 as_fn_error $? "Gecode needs at least 32 bit integers." "$LINENO" 5
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if doubles have a big enough mantissa" >&5
6448 $as_echo_n "checking if doubles have a big enough mantissa... " >&6; }
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <float.h>
6452 int
6453 main ()
6454 {
6455
6456 #if DBL_MANT_DIG>=53
6457 #else
6458 blablub
6459 #endif
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467 $as_echo "yes" >&6; }
6468 else
6469 as_fn_error $? "Gecode needs a double mantissa of at least 53 bits." "$LINENO" 5
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472
6473 ac_ext=cpp
6474 ac_cpp='$CXXCPP $CPPFLAGS'
6475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6478
6479
6480
6481 # Check whether --enable-thread was given.
6482 if test "${enable_thread+set}" = set; then :
6483 enableval=$enable_thread;
6484 fi
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with multi-threading support" >&5
6487 $as_echo_n "checking whether to build with multi-threading support... " >&6; }
6488 if test "${enable_thread:-yes}" = "yes"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490 $as_echo "yes" >&6; }
6491 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6492 if test "x$ac_cv_header_unistd_h" = xyes; then :
6493
6494 $as_echo "#define GECODE_HAS_UNISTD_H 1" >>confdefs.h
6495
6496
6497 fi
6498
6499
6500 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6501 if test "x$ac_cv_header_pthread_h" = xyes; then :
6502
6503 $as_echo "#define GECODE_THREADS_PTHREADS 1" >>confdefs.h
6504
6505 CFLAGS="-pthread${CFLAGS:+ }${CFLAGS}"
6506 CXXFLAGS="-pthread${CXXFLAGS:+ }${CXXFLAGS}"
6507 DLLFLAGS="-pthread${DLLFLAGS:+ }${DLLFLAGS}"
6508 ac_fn_cxx_check_header_mongrel "$LINENO" "os/lock.h" "ac_cv_header_os_lock_h" "$ac_includes_default"
6509 if test "x$ac_cv_header_os_lock_h" = xyes; then :
6510
6511 $as_echo "#define GECODE_THREADS_OSX_UNFAIR 1" >>confdefs.h
6512
6513 else
6514 ac_fn_cxx_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
6515 if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
6516
6517 $as_echo "#define GECODE_THREADS_OSX 1" >>confdefs.h
6518
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spin locks" >&5
6521 $as_echo_n "checking for spin locks... " >&6; }
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #include <pthread.h>
6525 int
6526 main ()
6527 {
6528 pthread_spinlock_t t;
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_cxx_try_compile "$LINENO"; then :
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535 $as_echo "yes" >&6; }
6536
6537 $as_echo "#define GECODE_THREADS_PTHREADS_SPINLOCK 1" >>confdefs.h
6538
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545
6546 fi
6547
6548
6549
6550 fi
6551
6552
6553 else
6554 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
6555 if test "x$ac_cv_header_windows_h" = xyes; then :
6556
6557 $as_echo "#define GECODE_THREADS_WINDOWS 1" >>confdefs.h
6558
6559 fi
6560
6561
6562
6563 fi
6564
6565
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572
6573 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6574 if test "x$ac_cv_header_sys_time_h" = xyes; then :
6575
6576 $as_echo "#define GECODE_USE_GETTIMEOFDAY 1" >>confdefs.h
6577
6578 else
6579
6580 $as_echo "#define GECODE_USE_CLOCK 1" >>confdefs.h
6581
6582 fi
6583
6584
6585
6586
6587 case $ac_gecode_compiler_vendor in
6588 gnu)
6589 DLLPATH=-L.
6590
6591 case $host_os in
6592 darwin*)
6593 need_soname="yes"
6594
6595 DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
6596 DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
6597 DLLEXT="${ac_gecode_soversion}.0.dylib"
6598
6599 SOSUFFIX=".${ac_gecode_soversion}.dylib"
6600
6601 SOLINKSUFFIX=".dylib"
6602
6603 sharedlibdir="${libdir}"
6604
6605 WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
6606
6607 GECODE_BUILD_SUPPORT_FLAG=""
6608
6609 GECODE_BUILD_KERNEL_FLAG=""
6610
6611 GECODE_BUILD_SEARCH_FLAG=""
6612
6613 GECODE_BUILD_INT_FLAG=""
6614
6615 GECODE_BUILD_FLOAT_FLAG=""
6616
6617 GECODE_BUILD_SET_FLAG=""
6618
6619 GECODE_BUILD_MINIMODEL_FLAG=""
6620
6621 GECODE_BUILD_GIST_FLAG=""
6622
6623 GECODE_BUILD_FLATZINC_FLAG=""
6624
6625 GECODE_BUILD_DRIVER_FLAG=""
6626
6627 ;;
6628 windows*)
6629 need_soname="no"
6630
6631 if test "${enable_static:-no}" = "yes" -a \
6632 "${enable_shared:-yes}" = "yes"; then
6633 as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
6634 fi
6635 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6636 DLLEXT="dll"
6637
6638 SOSUFFIX=""
6639
6640 SOLINKSUFFIX=""
6641
6642 WLSONAME=""
6643
6644 if test "${enable_static:-no}" = "no"; then
6645 sharedlibdir="${bindir}"
6646
6647 else
6648 sharedlibdir="${libdir}"
6649
6650 fi
6651 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
6652
6653 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
6654
6655 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
6656
6657 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
6658
6659 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
6660
6661 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
6662
6663 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
6664
6665 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
6666
6667 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
6668
6669 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
6670
6671 ;;
6672 *)
6673 need_soname="yes"
6674
6675 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6676 DLLEXT="so.${ac_gecode_soversion}.0"
6677
6678 SOSUFFIX=".so.${ac_gecode_soversion}"
6679
6680 SOLINKSUFFIX=".so"
6681
6682 WLSONAME="-Wl,-soname="
6683
6684 sharedlibdir="${libdir}"
6685
6686 GECODE_BUILD_SUPPORT_FLAG=""
6687
6688 GECODE_BUILD_KERNEL_FLAG=""
6689
6690 GECODE_BUILD_SEARCH_FLAG=""
6691
6692 GECODE_BUILD_INT_FLAG=""
6693
6694 GECODE_BUILD_FLOAT_FLAG=""
6695
6696 GECODE_BUILD_SET_FLAG=""
6697
6698 GECODE_BUILD_MINIMODEL_FLAG=""
6699
6700 GECODE_BUILD_GIST_FLAG=""
6701
6702 GECODE_BUILD_FLATZINC_FLAG=""
6703
6704 GECODE_BUILD_DRIVER_FLAG=""
6705
6706 ;;
6707 esac
6708
6709 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6711 $as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6712 if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 :
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6718 $as_echo "yes" >&6; }
6719
6720 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6721 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6722 fi
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6725 $as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6726 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6727 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6728 ac_ext=cpp
6729 ac_cpp='$CXXCPP $CPPFLAGS'
6730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6733
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736
6737 int
6738 main ()
6739 {
6740
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_cxx_try_compile "$LINENO"; then :
6746 if grep -q "unrecognized\|argument unused" conftest.err; then
6747 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 :
6751 else
6752 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6754 $as_echo "yes" >&6; }
6755
6756 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6757 fi
6758
6759 else
6760 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 :
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
6774 $as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
6775 ac_gecode_save_CFLAGS="${CFLAGS}"
6776 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
6777 ac_ext=c
6778 ac_cpp='$CPP $CPPFLAGS'
6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785
6786 int
6787 main ()
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795 if grep -q "unrecognized\|argument unused" conftest.err; then
6796 CFLAGS="${ac_gecode_save_CFLAGS}"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 :
6800 else
6801 CFLAGS="${ac_gecode_save_CFLAGS}"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6803 $as_echo "yes" >&6; }
6804
6805 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6806 fi
6807
6808 else
6809 CFLAGS="${ac_gecode_save_CFLAGS}"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 :
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 ac_ext=cpp
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820
6821 fi
6822
6823 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6825 $as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6826 if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 :
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832 $as_echo "yes" >&6; }
6833
6834 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6835 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6836 fi
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6839 $as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6840 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6841 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6842 ac_ext=cpp
6843 ac_cpp='$CXXCPP $CPPFLAGS'
6844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_cxx_try_compile "$LINENO"; then :
6860 if grep -q "unrecognized\|argument unused" conftest.err; then
6861 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 :
6865 else
6866 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6868 $as_echo "yes" >&6; }
6869
6870 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6871 fi
6872
6873 else
6874 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 :
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
6888 $as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
6889 ac_gecode_save_CFLAGS="${CFLAGS}"
6890 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
6891 ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899
6900 int
6901 main ()
6902 {
6903
6904 ;
6905 return 0;
6906 }
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 if grep -q "unrecognized\|argument unused" conftest.err; then
6910 CFLAGS="${ac_gecode_save_CFLAGS}"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 :
6914 else
6915 CFLAGS="${ac_gecode_save_CFLAGS}"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6917 $as_echo "yes" >&6; }
6918
6919 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6920 fi
6921
6922 else
6923 CFLAGS="${ac_gecode_save_CFLAGS}"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 :
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 ac_ext=cpp
6930 ac_cpp='$CXXCPP $CPPFLAGS'
6931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6934
6935 fi
6936
6937 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
6939 $as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
6940 if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 :
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6946 $as_echo "yes" >&6; }
6947
6948 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
6949 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
6950 fi
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
6953 $as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
6954 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6955 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6956 ac_ext=cpp
6957 ac_cpp='$CXXCPP $CPPFLAGS'
6958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6961
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964
6965 int
6966 main ()
6967 {
6968
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_cxx_try_compile "$LINENO"; then :
6974 if grep -q "unrecognized\|argument unused" conftest.err; then
6975 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 :
6979 else
6980 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6982 $as_echo "yes" >&6; }
6983
6984 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
6985 fi
6986
6987 else
6988 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 :
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 ac_ext=cpp
6995 ac_cpp='$CXXCPP $CPPFLAGS'
6996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6999
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
7002 $as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
7003 ac_gecode_save_CFLAGS="${CFLAGS}"
7004 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
7005 ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013
7014 int
7015 main ()
7016 {
7017
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"; then :
7023 if grep -q "unrecognized\|argument unused" conftest.err; then
7024 CFLAGS="${ac_gecode_save_CFLAGS}"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 :
7028 else
7029 CFLAGS="${ac_gecode_save_CFLAGS}"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031 $as_echo "yes" >&6; }
7032
7033 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
7034 fi
7035
7036 else
7037 CFLAGS="${ac_gecode_save_CFLAGS}"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 :
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 ac_ext=cpp
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7048
7049 fi
7050
7051 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7053 $as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7054 if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 :
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7060 $as_echo "yes" >&6; }
7061
7062 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7063 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7064 fi
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7067 $as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7068 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7069 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7070 ac_ext=cpp
7071 ac_cpp='$CXXCPP $CPPFLAGS'
7072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7075
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078
7079 int
7080 main ()
7081 {
7082
7083 ;
7084 return 0;
7085 }
7086 _ACEOF
7087 if ac_fn_cxx_try_compile "$LINENO"; then :
7088 if grep -q "unrecognized\|argument unused" conftest.err; then
7089 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 :
7093 else
7094 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7097
7098 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7099 fi
7100
7101 else
7102 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 :
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 ac_ext=cpp
7109 ac_cpp='$CXXCPP $CPPFLAGS'
7110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7113
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
7116 $as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
7117 ac_gecode_save_CFLAGS="${CFLAGS}"
7118 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127
7128 int
7129 main ()
7130 {
7131
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 if grep -q "unrecognized\|argument unused" conftest.err; then
7138 CFLAGS="${ac_gecode_save_CFLAGS}"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 :
7142 else
7143 CFLAGS="${ac_gecode_save_CFLAGS}"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7145 $as_echo "yes" >&6; }
7146
7147 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7148 fi
7149
7150 else
7151 CFLAGS="${ac_gecode_save_CFLAGS}"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 :
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_ext=cpp
7158 ac_cpp='$CXXCPP $CPPFLAGS'
7159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7162
7163 fi
7164
7165 # Check whether --enable-cpp11 was given.
7166 if test "${enable_cpp11+set}" = set; then :
7167 enableval=$enable_cpp11;
7168 fi
7169
7170 if test "${enable_cpp11:-yes}" = "yes"; then
7171
7172 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7174 $as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7175 if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 :
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7181 $as_echo "yes" >&6; }
7182
7183 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7184 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7185 fi
7186 else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7188 $as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7189 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7190 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7191 ac_ext=cpp
7192 ac_cpp='$CXXCPP $CPPFLAGS'
7193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7196
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199
7200 int
7201 main ()
7202 {
7203
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_cxx_try_compile "$LINENO"; then :
7209 if grep -q "unrecognized\|argument unused" conftest.err; then
7210 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 :
7214 else
7215 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7217 $as_echo "yes" >&6; }
7218
7219 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7220 fi
7221
7222 else
7223 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 :
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 ac_ext=cpp
7230 ac_cpp='$CXXCPP $CPPFLAGS'
7231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7234
7235
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
7237 $as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
7238 ac_gecode_save_CFLAGS="${CFLAGS}"
7239 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248
7249 int
7250 main ()
7251 {
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 if grep -q "unrecognized\|argument unused" conftest.err; then
7259 CFLAGS="${ac_gecode_save_CFLAGS}"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 :
7263 else
7264 CFLAGS="${ac_gecode_save_CFLAGS}"
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7266 $as_echo "yes" >&6; }
7267
7268 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7269 fi
7270
7271 else
7272 CFLAGS="${ac_gecode_save_CFLAGS}"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 :
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_ext=cpp
7279 ac_cpp='$CXXCPP $CPPFLAGS'
7280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7283
7284 fi
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile for C++11 standard" >&5
7287 $as_echo_n "checking whether to compile for C++11 standard... " >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7294 $as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7295 if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298
7299 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7301 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7302 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 :
7306 else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7308 $as_echo "yes" >&6; }
7309
7310 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7311 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7312 fi
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7315 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7316 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7317 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7318 ac_ext=cpp
7319 ac_cpp='$CXXCPP $CPPFLAGS'
7320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7323
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326
7327 int
7328 main ()
7329 {
7330
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_cxx_try_compile "$LINENO"; then :
7336 if grep -q "unrecognized\|argument unused" conftest.err; then
7337 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 :
7341 else
7342 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7344 $as_echo "yes" >&6; }
7345
7346 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7347 fi
7348
7349 else
7350 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 :
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 ac_ext=cpp
7357 ac_cpp='$CXXCPP $CPPFLAGS'
7358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7361
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7364 $as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7365 ac_gecode_save_CFLAGS="${CFLAGS}"
7366 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7367 ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 int
7377 main ()
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_compile "$LINENO"; then :
7385 if grep -q "unrecognized\|argument unused" conftest.err; then
7386 CFLAGS="${ac_gecode_save_CFLAGS}"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 :
7390 else
7391 CFLAGS="${ac_gecode_save_CFLAGS}"
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7393 $as_echo "yes" >&6; }
7394
7395 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7396 fi
7397
7398 else
7399 CFLAGS="${ac_gecode_save_CFLAGS}"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 :
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 ac_ext=cpp
7406 ac_cpp='$CXXCPP $CPPFLAGS'
7407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7410
7411 fi
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414 $as_echo "yes" >&6; }
7415
7416 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7417 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7418 fi
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7421 $as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7422 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7423 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7424 ac_ext=cpp
7425 ac_cpp='$CXXCPP $CPPFLAGS'
7426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7429
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432
7433 int
7434 main ()
7435 {
7436
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_cxx_try_compile "$LINENO"; then :
7442 if grep -q "unrecognized\|argument unused" conftest.err; then
7443 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446
7447 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7449 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7450 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 :
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7457
7458 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7459 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7460 fi
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7463 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7464 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7465 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7466 ac_ext=cpp
7467 ac_cpp='$CXXCPP $CPPFLAGS'
7468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7471
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474
7475 int
7476 main ()
7477 {
7478
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_cxx_try_compile "$LINENO"; then :
7484 if grep -q "unrecognized\|argument unused" conftest.err; then
7485 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 :
7489 else
7490 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492 $as_echo "yes" >&6; }
7493
7494 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7495 fi
7496
7497 else
7498 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 :
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 ac_ext=cpp
7505 ac_cpp='$CXXCPP $CPPFLAGS'
7506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7512 $as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7513 ac_gecode_save_CFLAGS="${CFLAGS}"
7514 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7515 ac_ext=c
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 if grep -q "unrecognized\|argument unused" conftest.err; then
7534 CFLAGS="${ac_gecode_save_CFLAGS}"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 :
7538 else
7539 CFLAGS="${ac_gecode_save_CFLAGS}"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7541 $as_echo "yes" >&6; }
7542
7543 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7544 fi
7545
7546 else
7547 CFLAGS="${ac_gecode_save_CFLAGS}"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 :
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 ac_ext=cpp
7554 ac_cpp='$CXXCPP $CPPFLAGS'
7555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7558
7559 fi
7560 else
7561 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7563 $as_echo "yes" >&6; }
7564
7565 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7566 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7567 fi
7568
7569 else
7570 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573
7574 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7576 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7577 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 :
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7583 $as_echo "yes" >&6; }
7584
7585 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7586 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7587 fi
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7590 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7591 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7592 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7593 ac_ext=cpp
7594 ac_cpp='$CXXCPP $CPPFLAGS'
7595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7598
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601
7602 int
7603 main ()
7604 {
7605
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_cxx_try_compile "$LINENO"; then :
7611 if grep -q "unrecognized\|argument unused" conftest.err; then
7612 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 :
7616 else
7617 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7619 $as_echo "yes" >&6; }
7620
7621 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7622 fi
7623
7624 else
7625 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 :
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 ac_ext=cpp
7632 ac_cpp='$CXXCPP $CPPFLAGS'
7633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7636
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7639 $as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7640 ac_gecode_save_CFLAGS="${CFLAGS}"
7641 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650
7651 int
7652 main ()
7653 {
7654
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 if grep -q "unrecognized\|argument unused" conftest.err; then
7661 CFLAGS="${ac_gecode_save_CFLAGS}"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 :
7665 else
7666 CFLAGS="${ac_gecode_save_CFLAGS}"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7669
7670 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7671 fi
7672
7673 else
7674 CFLAGS="${ac_gecode_save_CFLAGS}"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 :
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 ac_ext=cpp
7681 ac_cpp='$CXXCPP $CPPFLAGS'
7682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7685
7686 fi
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 ac_ext=cpp
7690 ac_cpp='$CXXCPP $CPPFLAGS'
7691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7694
7695 fi
7696
7697 ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
7698 if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
7699
7700 $as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
7701
7702 fi
7703
7704 ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
7705 if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
7706
7707 $as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
7708
7709 fi
7710
7711
7712 docdir="${datadir}/doc/gecode"
7713
7714
7715 MANIFEST="@true"
7716
7717
7718 SBJEXT="s"
7719
7720 LIBEXT="${DLLEXT}"
7721
7722 LIBPREFIX="lib${ac_gecode_userprefix}gecode"
7723
7724 STATICLIBEXT="a"
7725
7726 MINUSLDIR="-L${libdir}"
7727
7728 LINKLIBDIR=""
7729
7730
7731 cygpathprefix=$prefix
7732 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
7733 cygpathprefix="${cygpathprefix}"
7734
7735
7736 COMPILEOBJ="-c -o "
7737
7738 COMPILESBJ="-S -o "
7739
7740 CXXIN=" "
7741
7742 CCIN=" "
7743
7744 EXAMPLES_EXTRA_CXXFLAGS=""
7745
7746
7747 INSTALLLIBS="no"
7748
7749
7750 LINKPREFIX="-l${ac_gecode_userprefix}gecode"
7751
7752 LINKSUFFIX=""
7753
7754
7755 LINKOUTPUT="-o "
7756
7757 EXEOUTPUT="-o "
7758
7759
7760 SUPPORT="support"
7761
7762 KERNEL="kernel"
7763
7764 SEARCH="search"
7765
7766 INT="int"
7767
7768 FLOAT="float"
7769
7770 SET="set"
7771
7772 MM="minimodel"
7773
7774 GIST="gist"
7775
7776 FLATZINC="flatzinc"
7777
7778 DRIVER="driver"
7779
7780 # Check whether --enable-gcc-visibility was given.
7781 if test "${enable_gcc_visibility+set}" = set; then :
7782 enableval=$enable_gcc_visibility;
7783 fi
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
7786 $as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
7787 if test "${enable_gcc_visibility:-yes}" = "yes"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7789 $as_echo "yes" >&6; }
7790 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7792 $as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7793 if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 :
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800
7801
7802 $as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
7803
7804 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
7805 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
7806 fi
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7809 $as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7810 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7811 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7812 ac_ext=cpp
7813 ac_cpp='$CXXCPP $CPPFLAGS'
7814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7817
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820
7821 int
7822 main ()
7823 {
7824
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_cxx_try_compile "$LINENO"; then :
7830 if grep -q "unrecognized\|argument unused" conftest.err; then
7831 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 :
7835 else
7836 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839
7840
7841 $as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
7842
7843 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
7844 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
7845 fi
7846
7847 else
7848 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 :
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 ac_ext=cpp
7855 ac_cpp='$CXXCPP $CPPFLAGS'
7856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7859
7860 fi
7861
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867 if test "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
7869 $as_echo_n "checking if compiler supports forced inlining... " >&6; }
7870 ac_ext=cpp
7871 ac_cpp='$CXXCPP $CPPFLAGS'
7872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7875
7876 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7877 CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 #ifndef __clang__
7881 # error "Macro __clang__ is undefined!"
7882 /* For some compilers (eg. SGI's CC), #error is not
7883 enough... */
7884 please, do fail
7885 #endif
7886 int
7887 main ()
7888 {
7889
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 if ac_fn_cxx_try_compile "$LINENO"; then :
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897
7898 $as_echo "#define forceinline inline" >>confdefs.h
7899
7900 else
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903
7904 inline __attribute__ ((__always_inline__)) void foo(void) {}
7905 int
7906 main ()
7907 {
7908
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 if ac_fn_cxx_try_compile "$LINENO"; then :
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7916
7917 $as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
7918
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922
7923 $as_echo "#define forceinline inline" >>confdefs.h
7924
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 CXXFLAGS=${ac_gecode_save_CXXFLAGS}
7930 ac_ext=cpp
7931 ac_cpp='$CXXCPP $CPPFLAGS'
7932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7935
7936
7937 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
7939 $as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
7940 if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 :
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7946 $as_echo "yes" >&6; }
7947
7948 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
7949 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
7950 fi
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
7953 $as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
7954 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7955 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7956 ac_ext=cpp
7957 ac_cpp='$CXXCPP $CPPFLAGS'
7958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7961
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964
7965 int
7966 main ()
7967 {
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_cxx_try_compile "$LINENO"; then :
7974 if grep -q "unrecognized\|argument unused" conftest.err; then
7975 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 :
7979 else
7980 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7982 $as_echo "yes" >&6; }
7983
7984 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
7985 fi
7986
7987 else
7988 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 :
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 ac_ext=cpp
7995 ac_cpp='$CXXCPP $CPPFLAGS'
7996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7999
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8002 $as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8003 ac_gecode_save_CFLAGS="${CFLAGS}"
8004 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013
8014 int
8015 main ()
8016 {
8017
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 if grep -q "unrecognized\|argument unused" conftest.err; then
8024 CFLAGS="${ac_gecode_save_CFLAGS}"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 :
8028 else
8029 CFLAGS="${ac_gecode_save_CFLAGS}"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8032
8033 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
8034 fi
8035
8036 else
8037 CFLAGS="${ac_gecode_save_CFLAGS}"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 :
8041 fi
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 ac_ext=cpp
8044 ac_cpp='$CXXCPP $CPPFLAGS'
8045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8048
8049 fi
8050
8051 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8053 $as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8054 if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 :
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060 $as_echo "yes" >&6; }
8061
8062 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8063 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8064 fi
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8067 $as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8068 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8069 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8070 ac_ext=cpp
8071 ac_cpp='$CXXCPP $CPPFLAGS'
8072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8075
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078
8079 int
8080 main ()
8081 {
8082
8083 ;
8084 return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_cxx_try_compile "$LINENO"; then :
8088 if grep -q "unrecognized\|argument unused" conftest.err; then
8089 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 :
8093 else
8094 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8097
8098 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8099 fi
8100
8101 else
8102 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 :
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 ac_ext=cpp
8109 ac_cpp='$CXXCPP $CPPFLAGS'
8110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8113
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
8116 $as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
8117 ac_gecode_save_CFLAGS="${CFLAGS}"
8118 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
8119 ac_ext=c
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127
8128 int
8129 main ()
8130 {
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 if grep -q "unrecognized\|argument unused" conftest.err; then
8138 CFLAGS="${ac_gecode_save_CFLAGS}"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 :
8142 else
8143 CFLAGS="${ac_gecode_save_CFLAGS}"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8146
8147 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8148 fi
8149
8150 else
8151 CFLAGS="${ac_gecode_save_CFLAGS}"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 :
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 ac_ext=cpp
8158 ac_cpp='$CXXCPP $CPPFLAGS'
8159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8162
8163 fi
8164
8165 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8167 $as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8168 if ${CXX} -fno-math-errno 2>&1 | grep "ignoring unknown option" -q; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 :
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8174 $as_echo "yes" >&6; }
8175
8176 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8177 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8178 fi
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8181 $as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8182 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8183 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8184 ac_ext=cpp
8185 ac_cpp='$CXXCPP $CPPFLAGS'
8186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8189
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192
8193 int
8194 main ()
8195 {
8196
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_cxx_try_compile "$LINENO"; then :
8202 if grep -q "unrecognized\|argument unused" conftest.err; then
8203 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 :
8207 else
8208 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210 $as_echo "yes" >&6; }
8211
8212 CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8213 fi
8214
8215 else
8216 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 :
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 ac_ext=cpp
8223 ac_cpp='$CXXCPP $CPPFLAGS'
8224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8227
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-math-errno" >&5
8230 $as_echo_n "checking whether ${CC} accepts -fno-math-errno... " >&6; }
8231 ac_gecode_save_CFLAGS="${CFLAGS}"
8232 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS} -Werror"
8233 ac_ext=c
8234 ac_cpp='$CPP $CPPFLAGS'
8235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241
8242 int
8243 main ()
8244 {
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 if grep -q "unrecognized\|argument unused" conftest.err; then
8252 CFLAGS="${ac_gecode_save_CFLAGS}"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8255 :
8256 else
8257 CFLAGS="${ac_gecode_save_CFLAGS}"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8259 $as_echo "yes" >&6; }
8260
8261 CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8262 fi
8263
8264 else
8265 CFLAGS="${ac_gecode_save_CFLAGS}"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8268 :
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 ac_ext=cpp
8272 ac_cpp='$CXXCPP $CPPFLAGS'
8273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8276
8277 fi
8278
8279 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8281 $as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8282 if ${CXX} -ffinite-math-only 2>&1 | grep "ignoring unknown option" -q; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 :
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8289
8290 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8291 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8292 fi
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8295 $as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8296 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8297 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8298 ac_ext=cpp
8299 ac_cpp='$CXXCPP $CPPFLAGS'
8300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8303
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306
8307 int
8308 main ()
8309 {
8310
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_cxx_try_compile "$LINENO"; then :
8316 if grep -q "unrecognized\|argument unused" conftest.err; then
8317 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 :
8321 else
8322 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8324 $as_echo "yes" >&6; }
8325
8326 CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8327 fi
8328
8329 else
8330 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 :
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 ac_ext=cpp
8337 ac_cpp='$CXXCPP $CPPFLAGS'
8338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8341
8342
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ffinite-math-only" >&5
8344 $as_echo_n "checking whether ${CC} accepts -ffinite-math-only... " >&6; }
8345 ac_gecode_save_CFLAGS="${CFLAGS}"
8346 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS} -Werror"
8347 ac_ext=c
8348 ac_cpp='$CPP $CPPFLAGS'
8349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355
8356 int
8357 main ()
8358 {
8359
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_compile "$LINENO"; then :
8365 if grep -q "unrecognized\|argument unused" conftest.err; then
8366 CFLAGS="${ac_gecode_save_CFLAGS}"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 :
8370 else
8371 CFLAGS="${ac_gecode_save_CFLAGS}"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8373 $as_echo "yes" >&6; }
8374
8375 CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8376 fi
8377
8378 else
8379 CFLAGS="${ac_gecode_save_CFLAGS}"
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 :
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 ac_ext=cpp
8386 ac_cpp='$CXXCPP $CPPFLAGS'
8387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8390
8391 fi
8392
8393 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8395 $as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8396 if ${CXX} -fno-rounding-math 2>&1 | grep "ignoring unknown option" -q; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 :
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8402 $as_echo "yes" >&6; }
8403
8404 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8405 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8406 fi
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8409 $as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8410 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8411 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8412 ac_ext=cpp
8413 ac_cpp='$CXXCPP $CPPFLAGS'
8414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8417
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420
8421 int
8422 main ()
8423 {
8424
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_cxx_try_compile "$LINENO"; then :
8430 if grep -q "unrecognized\|argument unused" conftest.err; then
8431 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 :
8435 else
8436 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8438 $as_echo "yes" >&6; }
8439
8440 CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8441 fi
8442
8443 else
8444 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 :
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 ac_ext=cpp
8451 ac_cpp='$CXXCPP $CPPFLAGS'
8452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8455
8456
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-rounding-math" >&5
8458 $as_echo_n "checking whether ${CC} accepts -fno-rounding-math... " >&6; }
8459 ac_gecode_save_CFLAGS="${CFLAGS}"
8460 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS} -Werror"
8461 ac_ext=c
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469
8470 int
8471 main ()
8472 {
8473
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 if grep -q "unrecognized\|argument unused" conftest.err; then
8480 CFLAGS="${ac_gecode_save_CFLAGS}"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 :
8484 else
8485 CFLAGS="${ac_gecode_save_CFLAGS}"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8487 $as_echo "yes" >&6; }
8488
8489 CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8490 fi
8491
8492 else
8493 CFLAGS="${ac_gecode_save_CFLAGS}"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 :
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 ac_ext=cpp
8500 ac_cpp='$CXXCPP $CPPFLAGS'
8501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8504
8505 fi
8506
8507 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8509 $as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8510 if ${CXX} -fno-signaling-nans 2>&1 | grep "ignoring unknown option" -q; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 :
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8516 $as_echo "yes" >&6; }
8517
8518 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8519 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8520 fi
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8523 $as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8524 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8525 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8526 ac_ext=cpp
8527 ac_cpp='$CXXCPP $CPPFLAGS'
8528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8531
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534
8535 int
8536 main ()
8537 {
8538
8539 ;
8540 return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_cxx_try_compile "$LINENO"; then :
8544 if grep -q "unrecognized\|argument unused" conftest.err; then
8545 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8548 :
8549 else
8550 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552 $as_echo "yes" >&6; }
8553
8554 CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8555 fi
8556
8557 else
8558 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 :
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 ac_ext=cpp
8565 ac_cpp='$CXXCPP $CPPFLAGS'
8566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-signaling-nans" >&5
8572 $as_echo_n "checking whether ${CC} accepts -fno-signaling-nans... " >&6; }
8573 ac_gecode_save_CFLAGS="${CFLAGS}"
8574 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS} -Werror"
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583
8584 int
8585 main ()
8586 {
8587
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 if grep -q "unrecognized\|argument unused" conftest.err; then
8594 CFLAGS="${ac_gecode_save_CFLAGS}"
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 :
8598 else
8599 CFLAGS="${ac_gecode_save_CFLAGS}"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8601 $as_echo "yes" >&6; }
8602
8603 CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8604 fi
8605
8606 else
8607 CFLAGS="${ac_gecode_save_CFLAGS}"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 :
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 ac_ext=cpp
8614 ac_cpp='$CXXCPP $CPPFLAGS'
8615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8618
8619 fi
8620
8621 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8623 $as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8624 if ${CXX} -fcx-limited-range 2>&1 | grep "ignoring unknown option" -q; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 :
8628 else
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8630 $as_echo "yes" >&6; }
8631
8632 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8633 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8634 fi
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8637 $as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8638 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8639 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8640 ac_ext=cpp
8641 ac_cpp='$CXXCPP $CPPFLAGS'
8642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8645
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648
8649 int
8650 main ()
8651 {
8652
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_cxx_try_compile "$LINENO"; then :
8658 if grep -q "unrecognized\|argument unused" conftest.err; then
8659 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 :
8663 else
8664 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8666 $as_echo "yes" >&6; }
8667
8668 CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8669 fi
8670
8671 else
8672 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 :
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 ac_ext=cpp
8679 ac_cpp='$CXXCPP $CPPFLAGS'
8680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8683
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fcx-limited-range" >&5
8686 $as_echo_n "checking whether ${CC} accepts -fcx-limited-range... " >&6; }
8687 ac_gecode_save_CFLAGS="${CFLAGS}"
8688 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS} -Werror"
8689 ac_ext=c
8690 ac_cpp='$CPP $CPPFLAGS'
8691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697
8698 int
8699 main ()
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 if grep -q "unrecognized\|argument unused" conftest.err; then
8708 CFLAGS="${ac_gecode_save_CFLAGS}"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 :
8712 else
8713 CFLAGS="${ac_gecode_save_CFLAGS}"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716
8717 CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8718 fi
8719
8720 else
8721 CFLAGS="${ac_gecode_save_CFLAGS}"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 :
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 ac_ext=cpp
8728 ac_cpp='$CXXCPP $CPPFLAGS'
8729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8732
8733 fi
8734
8735 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8737 $as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8738 if ${CXX} -mthreads 2>&1 | grep "ignoring unknown option" -q; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8741 :
8742 else
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8744 $as_echo "yes" >&6; }
8745
8746 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8747 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8748 fi
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8751 $as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8752 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8753 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8754 ac_ext=cpp
8755 ac_cpp='$CXXCPP $CPPFLAGS'
8756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8759
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762
8763 int
8764 main ()
8765 {
8766
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_cxx_try_compile "$LINENO"; then :
8772 if grep -q "unrecognized\|argument unused" conftest.err; then
8773 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 :
8777 else
8778 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8780 $as_echo "yes" >&6; }
8781
8782 CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8783 fi
8784
8785 else
8786 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 :
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 ac_ext=cpp
8793 ac_cpp='$CXXCPP $CPPFLAGS'
8794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8797
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mthreads" >&5
8800 $as_echo_n "checking whether ${CC} accepts -mthreads... " >&6; }
8801 ac_gecode_save_CFLAGS="${CFLAGS}"
8802 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS} -Werror"
8803 ac_ext=c
8804 ac_cpp='$CPP $CPPFLAGS'
8805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811
8812 int
8813 main ()
8814 {
8815
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 if grep -q "unrecognized\|argument unused" conftest.err; then
8822 CFLAGS="${ac_gecode_save_CFLAGS}"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 :
8826 else
8827 CFLAGS="${ac_gecode_save_CFLAGS}"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8829 $as_echo "yes" >&6; }
8830
8831 CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8832 fi
8833
8834 else
8835 CFLAGS="${ac_gecode_save_CFLAGS}"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 :
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 ac_ext=cpp
8842 ac_cpp='$CXXCPP $CPPFLAGS'
8843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8846
8847 fi
8848 else
8849 if test "${enable_debug:-no}" = "yes"; then
8850
8851 $as_echo "#define forceinline inline" >>confdefs.h
8852
8853
8854 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
8856 $as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
8857 if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 :
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8863 $as_echo "yes" >&6; }
8864
8865 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
8866 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
8867 fi
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
8870 $as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
8871 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8872 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8873 ac_ext=cpp
8874 ac_cpp='$CXXCPP $CPPFLAGS'
8875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8878
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881
8882 int
8883 main ()
8884 {
8885
8886 ;
8887 return 0;
8888 }
8889 _ACEOF
8890 if ac_fn_cxx_try_compile "$LINENO"; then :
8891 if grep -q "unrecognized\|argument unused" conftest.err; then
8892 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 :
8896 else
8897 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8900
8901 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
8902 fi
8903
8904 else
8905 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 :
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 ac_ext=cpp
8912 ac_cpp='$CXXCPP $CPPFLAGS'
8913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
8919 $as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
8920 ac_gecode_save_CFLAGS="${CFLAGS}"
8921 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
8922 ac_ext=c
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930
8931 int
8932 main ()
8933 {
8934
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_compile "$LINENO"; then :
8940 if grep -q "unrecognized\|argument unused" conftest.err; then
8941 CFLAGS="${ac_gecode_save_CFLAGS}"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944 :
8945 else
8946 CFLAGS="${ac_gecode_save_CFLAGS}"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8948 $as_echo "yes" >&6; }
8949
8950 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
8951 fi
8952
8953 else
8954 CFLAGS="${ac_gecode_save_CFLAGS}"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957 :
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 ac_ext=cpp
8961 ac_cpp='$CXXCPP $CPPFLAGS'
8962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8965
8966 fi
8967
8968 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
8970 $as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
8971 if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 :
8975 else
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8977 $as_echo "yes" >&6; }
8978
8979 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
8980 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
8981 fi
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
8984 $as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
8985 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8986 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8987 ac_ext=cpp
8988 ac_cpp='$CXXCPP $CPPFLAGS'
8989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8992
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995
8996 int
8997 main ()
8998 {
8999
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_cxx_try_compile "$LINENO"; then :
9005 if grep -q "unrecognized\|argument unused" conftest.err; then
9006 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 :
9010 else
9011 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9014
9015 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
9016 fi
9017
9018 else
9019 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 :
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 ac_ext=cpp
9026 ac_cpp='$CXXCPP $CPPFLAGS'
9027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9030
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
9033 $as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
9034 ac_gecode_save_CFLAGS="${CFLAGS}"
9035 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
9036 ac_ext=c
9037 ac_cpp='$CPP $CPPFLAGS'
9038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9041
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 if grep -q "unrecognized\|argument unused" conftest.err; then
9055 CFLAGS="${ac_gecode_save_CFLAGS}"
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9058 :
9059 else
9060 CFLAGS="${ac_gecode_save_CFLAGS}"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9062 $as_echo "yes" >&6; }
9063
9064 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
9065 fi
9066
9067 else
9068 CFLAGS="${ac_gecode_save_CFLAGS}"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 :
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 ac_ext=cpp
9075 ac_cpp='$CXXCPP $CPPFLAGS'
9076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9079
9080 fi
9081 fi
9082 fi
9083
9084 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9086 $as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9087 if ${CXX} -Qunused-arguments 2>&1 | grep "ignoring unknown option" -q; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 :
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9093 $as_echo "yes" >&6; }
9094
9095 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9096 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9097 fi
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9100 $as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9101 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9102 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9103 ac_ext=cpp
9104 ac_cpp='$CXXCPP $CPPFLAGS'
9105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9108
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111
9112 int
9113 main ()
9114 {
9115
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 if ac_fn_cxx_try_compile "$LINENO"; then :
9121 if grep -q "unrecognized\|argument unused" conftest.err; then
9122 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9125 :
9126 else
9127 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9129 $as_echo "yes" >&6; }
9130
9131 CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9132 fi
9133
9134 else
9135 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138 :
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141 ac_ext=cpp
9142 ac_cpp='$CXXCPP $CPPFLAGS'
9143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Qunused-arguments" >&5
9149 $as_echo_n "checking whether ${CC} accepts -Qunused-arguments... " >&6; }
9150 ac_gecode_save_CFLAGS="${CFLAGS}"
9151 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS} -Werror"
9152 ac_ext=c
9153 ac_cpp='$CPP $CPPFLAGS'
9154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9157
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160
9161 int
9162 main ()
9163 {
9164
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_compile "$LINENO"; then :
9170 if grep -q "unrecognized\|argument unused" conftest.err; then
9171 CFLAGS="${ac_gecode_save_CFLAGS}"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 :
9175 else
9176 CFLAGS="${ac_gecode_save_CFLAGS}"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178 $as_echo "yes" >&6; }
9179
9180 CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9181 fi
9182
9183 else
9184 CFLAGS="${ac_gecode_save_CFLAGS}"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 :
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 ac_ext=cpp
9191 ac_cpp='$CXXCPP $CPPFLAGS'
9192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9195
9196 fi
9197
9198 ;;
9199 intel)
9200 case $host_os in
9201 windows*)
9202 $as_echo "#define forceinline __forceinline" >>confdefs.h
9203
9204 CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
9205 CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
9206 CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
9207 CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
9208
9209 $as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
9210
9211 if test "${enable_debug:-no}" = "no"; then
9212 CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
9213 CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
9214 CFLAGS="-MD -GS- -wd4355${CFLAGS:+ }${CFLAGS}"
9215 CXXFLAGS="-MD -GS- -wd4355${CXXFLAGS:+ }${CXXFLAGS}"
9216
9217 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9219 $as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9220 if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 :
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9226 $as_echo "yes" >&6; }
9227
9228 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9229 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9230 fi
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9233 $as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9234 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9235 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9236 ac_ext=cpp
9237 ac_cpp='$CXXCPP $CPPFLAGS'
9238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9241
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244
9245 int
9246 main ()
9247 {
9248
9249 ;
9250 return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_cxx_try_compile "$LINENO"; then :
9254 if grep -q "unrecognized\|argument unused" conftest.err; then
9255 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9258 :
9259 else
9260 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9262 $as_echo "yes" >&6; }
9263
9264 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9265 fi
9266
9267 else
9268 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 :
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 ac_ext=cpp
9275 ac_cpp='$CXXCPP $CPPFLAGS'
9276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9279
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
9282 $as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
9283 ac_gecode_save_CFLAGS="${CFLAGS}"
9284 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
9285 ac_ext=c
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293
9294 int
9295 main ()
9296 {
9297
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 if grep -q "unrecognized\|argument unused" conftest.err; then
9304 CFLAGS="${ac_gecode_save_CFLAGS}"
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9307 :
9308 else
9309 CFLAGS="${ac_gecode_save_CFLAGS}"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9311 $as_echo "yes" >&6; }
9312
9313 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9314 fi
9315
9316 else
9317 CFLAGS="${ac_gecode_save_CFLAGS}"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9320 :
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323 ac_ext=cpp
9324 ac_cpp='$CXXCPP $CPPFLAGS'
9325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9328
9329 fi
9330
9331 DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
9332 GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
9333 else
9334 CFLAGS="-MDd -Zi -wd4355${CFLAGS:+ }${CFLAGS}"
9335 CXXFLAGS="-MDd -Zi -wd4355${CXXFLAGS:+ }${CXXFLAGS}"
9336
9337 DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
9338 GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
9339 fi
9340
9341 sharedlibdir="${bindir}"
9342
9343 docdir="${prefix}"
9344
9345 if test "${enable_static:-no}" = "yes"; then
9346 as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
9347 fi
9348
9349 # Extract the first word of "mt.exe", so it can be a program name with args.
9350 set dummy mt.exe; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if ${ac_cv_prog_MANIFEST+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 if test -n "$MANIFEST"; then
9357 ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
9358 else
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9361 do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_MANIFEST="mt.exe"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370 done
9371 done
9372 IFS=$as_save_IFS
9373
9374 fi
9375 fi
9376 MANIFEST=$ac_cv_prog_MANIFEST
9377 if test -n "$MANIFEST"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
9379 $as_echo "$MANIFEST" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9383 fi
9384
9385
9386
9387 DLLPATH=""
9388
9389
9390 SBJEXT="sbj"
9391
9392 DLLEXT="dll"
9393
9394 SOSUFFIX=""
9395
9396 SOLINKSUFFIX=""
9397
9398 WLSONAME=""
9399
9400 LIBEXT="lib"
9401
9402 LIBPREFIX="${ac_gecode_userprefix}Gecode"
9403
9404 LINKPREFIX="${ac_gecode_userprefix}Gecode"
9405
9406 LINKSUFFIX=".lib"
9407
9408 MINUSLDIR=""
9409
9410 LINKLIBDIR="${libdir}/"
9411
9412
9413 cygpathprefix=$prefix
9414 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
9415 cygpathprefix=`cygpath -m ${cygpathprefix}`
9416
9417 cygpathprefix="${cygpathprefix}"
9418
9419 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9420
9421 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9422
9423 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9424
9425 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9426
9427 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9428
9429 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9430
9431 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9432
9433 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9434
9435 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9436
9437 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9438
9439
9440 COMPILEOBJ="-c -Fo"
9441
9442 COMPILESBJ="-c -Fa"
9443
9444 CXXIN="-Tp"
9445
9446 CCIN="-Tc"
9447
9448
9449 INSTALLLIBS="yes"
9450
9451
9452 LINKOUTPUT="-Fe"
9453
9454 EXEOUTPUT="-Fe"
9455
9456
9457 SUPPORT="Support"
9458
9459 KERNEL="Kernel"
9460
9461 SEARCH="Search"
9462
9463 INT="Int"
9464
9465 FLOAT="Float"
9466
9467 SET="Set"
9468
9469 MM="Minimodel"
9470
9471 GIST="Gist"
9472
9473 FLATZINC="FlatZinc"
9474
9475 DRIVER="Driver"
9476
9477 ;;
9478 *)
9479 # Check whether --enable-gcc-visibility was given.
9480 if test "${enable_gcc_visibility+set}" = set; then :
9481 enableval=$enable_gcc_visibility;
9482 fi
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
9485 $as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
9486 if test "${enable_gcc_visibility:-yes}" = "yes"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9488 $as_echo "yes" >&6; }
9489 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9491 $as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9492 if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 :
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9498 $as_echo "yes" >&6; }
9499
9500
9501 $as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9502
9503 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9504 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9505 fi
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9508 $as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9509 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9510 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9511 ac_ext=cpp
9512 ac_cpp='$CXXCPP $CPPFLAGS'
9513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9516
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519
9520 int
9521 main ()
9522 {
9523
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_cxx_try_compile "$LINENO"; then :
9529 if grep -q "unrecognized\|argument unused" conftest.err; then
9530 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 :
9534 else
9535 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537 $as_echo "yes" >&6; }
9538
9539
9540 $as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9541
9542 CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9543 CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9544 fi
9545
9546 else
9547 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 :
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 ac_ext=cpp
9554 ac_cpp='$CXXCPP $CPPFLAGS'
9555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9558
9559 fi
9560
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565 DLLPATH=-L.
9566
9567 case $host_os in
9568 darwin*)
9569 need_soname="yes"
9570
9571 DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
9572 DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
9573 DLLEXT="${ac_gecode_soversion}.0.dylib"
9574
9575 SOSUFFIX=".${ac_gecode_soversion}.dylib"
9576
9577 SOLINKSUFFIX=".dylib"
9578
9579 sharedlibdir="${libdir}"
9580
9581 WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
9582
9583 GECODE_BUILD_SUPPORT_FLAG=""
9584
9585 GECODE_BUILD_KERNEL_FLAG=""
9586
9587 GECODE_BUILD_SEARCH_FLAG=""
9588
9589 GECODE_BUILD_INT_FLAG=""
9590
9591 GECODE_BUILD_FLOAT_FLAG=""
9592
9593 GECODE_BUILD_SET_FLAG=""
9594
9595 GECODE_BUILD_MINIMODEL_FLAG=""
9596
9597 GECODE_BUILD_GIST_FLAG=""
9598
9599 GECODE_BUILD_FLATZINC_FLAG=""
9600
9601 GECODE_BUILD_DRIVER_FLAG=""
9602
9603 ;;
9604 windows*)
9605 need_soname="no"
9606
9607 if test "${enable_static:-no}" = "yes" -a \
9608 "${enable_shared:-yes}" = "yes"; then
9609 as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
9610 fi
9611 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9612 DLLEXT="dll"
9613
9614 SOSUFFIX=""
9615
9616 SOLINKSUFFIX=""
9617
9618 WLSONAME=""
9619
9620 if test "${enable_static:-no}" = "no"; then
9621 sharedlibdir="${bindir}"
9622
9623 else
9624 sharedlibdir="${libdir}"
9625
9626 fi
9627 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9628
9629 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9630
9631 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9632
9633 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9634
9635 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9636
9637 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9638
9639 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9640
9641 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9642
9643 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9644
9645 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9646
9647 ;;
9648 *)
9649 need_soname="yes"
9650
9651 DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9652 DLLEXT="so.${ac_gecode_soversion}.0"
9653
9654 SOSUFFIX=".so.${ac_gecode_soversion}"
9655
9656 SOLINKSUFFIX=".so"
9657
9658 WLSONAME="-Wl,-soname="
9659
9660 sharedlibdir="${libdir}"
9661
9662 GECODE_BUILD_SUPPORT_FLAG=""
9663
9664 GECODE_BUILD_KERNEL_FLAG=""
9665
9666 GECODE_BUILD_SEARCH_FLAG=""
9667
9668 GECODE_BUILD_INT_FLAG=""
9669
9670 GECODE_BUILD_FLOAT_FLAG=""
9671
9672 GECODE_BUILD_SET_FLAG=""
9673
9674 GECODE_BUILD_MINIMODEL_FLAG=""
9675
9676 GECODE_BUILD_GIST_FLAG=""
9677
9678 GECODE_BUILD_FLATZINC_FLAG=""
9679
9680 GECODE_BUILD_DRIVER_FLAG=""
9681
9682 ;;
9683 esac
9684
9685 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9687 $as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9688 if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 :
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9694 $as_echo "yes" >&6; }
9695
9696 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9697 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9698 fi
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9701 $as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9702 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9703 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9704 ac_ext=cpp
9705 ac_cpp='$CXXCPP $CPPFLAGS'
9706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9709
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712
9713 int
9714 main ()
9715 {
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_cxx_try_compile "$LINENO"; then :
9722 if grep -q "unrecognized\|argument unused" conftest.err; then
9723 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9726 :
9727 else
9728 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9731
9732 CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9733 fi
9734
9735 else
9736 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 :
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 ac_ext=cpp
9743 ac_cpp='$CXXCPP $CPPFLAGS'
9744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9747
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
9750 $as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
9751 ac_gecode_save_CFLAGS="${CFLAGS}"
9752 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
9753 ac_ext=c
9754 ac_cpp='$CPP $CPPFLAGS'
9755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761
9762 int
9763 main ()
9764 {
9765
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"; then :
9771 if grep -q "unrecognized\|argument unused" conftest.err; then
9772 CFLAGS="${ac_gecode_save_CFLAGS}"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9775 :
9776 else
9777 CFLAGS="${ac_gecode_save_CFLAGS}"
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9779 $as_echo "yes" >&6; }
9780
9781 CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9782 fi
9783
9784 else
9785 CFLAGS="${ac_gecode_save_CFLAGS}"
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 :
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 ac_ext=cpp
9792 ac_cpp='$CXXCPP $CPPFLAGS'
9793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9796
9797 fi
9798
9799 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9801 $as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9802 if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 :
9806 else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9808 $as_echo "yes" >&6; }
9809
9810 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
9811 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
9812 fi
9813 else
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9815 $as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9816 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9817 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9818 ac_ext=cpp
9819 ac_cpp='$CXXCPP $CPPFLAGS'
9820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9823
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826
9827 int
9828 main ()
9829 {
9830
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_cxx_try_compile "$LINENO"; then :
9836 if grep -q "unrecognized\|argument unused" conftest.err; then
9837 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9840 :
9841 else
9842 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9844 $as_echo "yes" >&6; }
9845
9846 CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
9847 fi
9848
9849 else
9850 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9853 :
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 ac_ext=cpp
9857 ac_cpp='$CXXCPP $CPPFLAGS'
9858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9861
9862
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
9864 $as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
9865 ac_gecode_save_CFLAGS="${CFLAGS}"
9866 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
9867 ac_ext=c
9868 ac_cpp='$CPP $CPPFLAGS'
9869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9872
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875
9876 int
9877 main ()
9878 {
9879
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_compile "$LINENO"; then :
9885 if grep -q "unrecognized\|argument unused" conftest.err; then
9886 CFLAGS="${ac_gecode_save_CFLAGS}"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9889 :
9890 else
9891 CFLAGS="${ac_gecode_save_CFLAGS}"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9893 $as_echo "yes" >&6; }
9894
9895 CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
9896 fi
9897
9898 else
9899 CFLAGS="${ac_gecode_save_CFLAGS}"
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9902 :
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 ac_ext=cpp
9906 ac_cpp='$CXXCPP $CPPFLAGS'
9907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9910
9911 fi
9912
9913 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
9915 $as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
9916 if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 :
9920 else
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9922 $as_echo "yes" >&6; }
9923
9924 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
9925 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
9926 fi
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
9929 $as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
9930 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9931 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9932 ac_ext=cpp
9933 ac_cpp='$CXXCPP $CPPFLAGS'
9934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9937
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940
9941 int
9942 main ()
9943 {
9944
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_cxx_try_compile "$LINENO"; then :
9950 if grep -q "unrecognized\|argument unused" conftest.err; then
9951 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 :
9955 else
9956 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9958 $as_echo "yes" >&6; }
9959
9960 CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
9961 fi
9962
9963 else
9964 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9967 :
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 ac_ext=cpp
9971 ac_cpp='$CXXCPP $CPPFLAGS'
9972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9975
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
9978 $as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
9979 ac_gecode_save_CFLAGS="${CFLAGS}"
9980 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
9981 ac_ext=c
9982 ac_cpp='$CPP $CPPFLAGS'
9983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9986
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989
9990 int
9991 main ()
9992 {
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 if ac_fn_c_try_compile "$LINENO"; then :
9999 if grep -q "unrecognized\|argument unused" conftest.err; then
10000 CFLAGS="${ac_gecode_save_CFLAGS}"
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10003 :
10004 else
10005 CFLAGS="${ac_gecode_save_CFLAGS}"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10007 $as_echo "yes" >&6; }
10008
10009 CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
10010 fi
10011
10012 else
10013 CFLAGS="${ac_gecode_save_CFLAGS}"
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10016 :
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 ac_ext=cpp
10020 ac_cpp='$CXXCPP $CPPFLAGS'
10021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10024
10025 fi
10026
10027 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10029 $as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10030 if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 :
10034 else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10036 $as_echo "yes" >&6; }
10037
10038 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10039 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10040 fi
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10043 $as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10044 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10045 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10046 ac_ext=cpp
10047 ac_cpp='$CXXCPP $CPPFLAGS'
10048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10051
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054
10055 int
10056 main ()
10057 {
10058
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_cxx_try_compile "$LINENO"; then :
10064 if grep -q "unrecognized\|argument unused" conftest.err; then
10065 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 :
10069 else
10070 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10072 $as_echo "yes" >&6; }
10073
10074 CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10075 fi
10076
10077 else
10078 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 :
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 ac_ext=cpp
10085 ac_cpp='$CXXCPP $CPPFLAGS'
10086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10089
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
10092 $as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
10093 ac_gecode_save_CFLAGS="${CFLAGS}"
10094 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
10095 ac_ext=c
10096 ac_cpp='$CPP $CPPFLAGS'
10097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10100
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10103
10104 int
10105 main ()
10106 {
10107
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113 if grep -q "unrecognized\|argument unused" conftest.err; then
10114 CFLAGS="${ac_gecode_save_CFLAGS}"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 :
10118 else
10119 CFLAGS="${ac_gecode_save_CFLAGS}"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10122
10123 CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10124 fi
10125
10126 else
10127 CFLAGS="${ac_gecode_save_CFLAGS}"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 :
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133 ac_ext=cpp
10134 ac_cpp='$CXXCPP $CPPFLAGS'
10135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10138
10139 fi
10140
10141 # Check whether --enable-cpp11 was given.
10142 if test "${enable_cpp11+set}" = set; then :
10143 enableval=$enable_cpp11;
10144 fi
10145
10146 if test "${enable_cpp11:-yes}" = "yes"; then
10147
10148 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10150 $as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10151 if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 :
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10157 $as_echo "yes" >&6; }
10158
10159 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10160 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10161 fi
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10164 $as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10165 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10166 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10167 ac_ext=cpp
10168 ac_cpp='$CXXCPP $CPPFLAGS'
10169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10172
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 int
10177 main ()
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_cxx_try_compile "$LINENO"; then :
10185 if grep -q "unrecognized\|argument unused" conftest.err; then
10186 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189 :
10190 else
10191 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10193 $as_echo "yes" >&6; }
10194
10195 CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10196 fi
10197
10198 else
10199 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10202 :
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 ac_ext=cpp
10206 ac_cpp='$CXXCPP $CPPFLAGS'
10207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10210
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
10213 $as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
10214 ac_gecode_save_CFLAGS="${CFLAGS}"
10215 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
10216 ac_ext=c
10217 ac_cpp='$CPP $CPPFLAGS'
10218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10221
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224
10225 int
10226 main ()
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234 if grep -q "unrecognized\|argument unused" conftest.err; then
10235 CFLAGS="${ac_gecode_save_CFLAGS}"
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10238 :
10239 else
10240 CFLAGS="${ac_gecode_save_CFLAGS}"
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242 $as_echo "yes" >&6; }
10243
10244 CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10245 fi
10246
10247 else
10248 CFLAGS="${ac_gecode_save_CFLAGS}"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 :
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 ac_ext=cpp
10255 ac_cpp='$CXXCPP $CPPFLAGS'
10256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10259
10260 fi
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile for C++11 standard" >&5
10263 $as_echo_n "checking whether to compile for C++11 standard... " >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10266 fi
10267
10268 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10270 $as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10271 if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274
10275 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10277 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10278 if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 :
10282 else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285
10286 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10287 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10288 fi
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10291 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10292 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10293 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10294 ac_ext=cpp
10295 ac_cpp='$CXXCPP $CPPFLAGS'
10296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10299
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_cxx_try_compile "$LINENO"; then :
10312 if grep -q "unrecognized\|argument unused" conftest.err; then
10313 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 :
10317 else
10318 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320 $as_echo "yes" >&6; }
10321
10322 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10323 fi
10324
10325 else
10326 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10329 :
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332 ac_ext=cpp
10333 ac_cpp='$CXXCPP $CPPFLAGS'
10334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10337
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10340 $as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10341 ac_gecode_save_CFLAGS="${CFLAGS}"
10342 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10343 ac_ext=c
10344 ac_cpp='$CPP $CPPFLAGS'
10345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10348
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351
10352 int
10353 main ()
10354 {
10355
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"; then :
10361 if grep -q "unrecognized\|argument unused" conftest.err; then
10362 CFLAGS="${ac_gecode_save_CFLAGS}"
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10365 :
10366 else
10367 CFLAGS="${ac_gecode_save_CFLAGS}"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; }
10370
10371 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10372 fi
10373
10374 else
10375 CFLAGS="${ac_gecode_save_CFLAGS}"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 :
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381 ac_ext=cpp
10382 ac_cpp='$CXXCPP $CPPFLAGS'
10383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10386
10387 fi
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10390 $as_echo "yes" >&6; }
10391
10392 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10393 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10394 fi
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10397 $as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10398 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10399 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10400 ac_ext=cpp
10401 ac_cpp='$CXXCPP $CPPFLAGS'
10402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10405
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408
10409 int
10410 main ()
10411 {
10412
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_cxx_try_compile "$LINENO"; then :
10418 if grep -q "unrecognized\|argument unused" conftest.err; then
10419 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10422
10423 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10425 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10426 if ${CXX} -g 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="-g${CXXFLAGS:+ }${CXXFLAGS}"
10435 CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10436 fi
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10439 $as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10440 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10441 CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10442 ac_ext=cpp
10443 ac_cpp='$CXXCPP $CPPFLAGS'
10444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10447
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450
10451 int
10452 main ()
10453 {
10454
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if 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="-g${CXXFLAGS:+ }${CXXFLAGS}"
10471 fi
10472
10473 else
10474 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10477 :
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 ac_ext=cpp
10481 ac_cpp='$CXXCPP $CPPFLAGS'
10482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10485
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10488 $as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10489 ac_gecode_save_CFLAGS="${CFLAGS}"
10490 CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10491 ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499
10500 int
10501 main ()
10502 {
10503
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 if 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="-g${CFLAGS:+ }${CFLAGS}"
10520 fi
10521
10522 else
10523 CFLAGS="${ac_gecode_save_CFLAGS}"
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526 :
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 ac_ext=cpp
10530 ac_cpp='$CXXCPP $CPPFLAGS'
10531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10534
10535 fi
10536 else
10537 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; }
10540
10541 CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10542 CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10543 fi
10544
10545 else
10546 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
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
10570 ac_cpp='$CXXCPP $CPPFLAGS'
10571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10574
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577
10578 int
10579 main ()
10580 {
10581
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if 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
10600 else
10601 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 :
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 ac_ext=cpp
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_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
10619 ac_cpp='$CPP $CPPFLAGS'
10620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626
10627 int
10628 main ()
10629 {
10630
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 if 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
10649 else
10650 CFLAGS="${ac_gecode_save_CFLAGS}"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 :
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 ac_ext=cpp
10657 ac_cpp='$CXXCPP $CPPFLAGS'
10658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10661
10662 fi
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 ac_ext=cpp
10666 ac_cpp='$CXXCPP $CPPFLAGS'
10667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10670
10671 fi
10672
10673 ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
10674 if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
10675
10676 $as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
10677
10678 fi
10679
10680 ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
10681 if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
10682
10683 $as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
10684
10685 fi
10686
10687
10688 docdir="${datadir}/doc/gecode"
10689
10690
10691 MANIFEST="@true"
10692
10693
10694 SBJEXT="s"
10695
10696 LIBEXT="${DLLEXT}"
10697
10698 LIBPREFIX="lib${ac_gecode_userprefix}gecode"
10699
10700 STATICLIBEXT="a"
10701
10702 MINUSLDIR="-L${libdir}"
10703
10704 LINKLIBDIR=""
10705
10706
10707 cygpathprefix=$prefix
10708 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
10709 cygpathprefix="${cygpathprefix}"
10710
10711
10712 COMPILEOBJ="-c -o "
10713
10714 COMPILESBJ="-S -o "
10715
10716 CXXIN=" "
10717
10718 CCIN=" "
10719
10720 EXAMPLES_EXTRA_CXXFLAGS=""
10721
10722
10723 INSTALLLIBS="no"
10724
10725
10726 LINKPREFIX="-l${ac_gecode_userprefix}gecode"
10727
10728 LINKSUFFIX=""
10729
10730
10731 LINKOUTPUT="-o "
10732
10733 EXEOUTPUT="-o "
10734
10735
10736 SUPPORT="support"
10737
10738 KERNEL="kernel"
10739
10740 SEARCH="search"
10741
10742 INT="int"
10743
10744 FLOAT="float"
10745
10746 SET="set"
10747
10748 MM="minimodel"
10749
10750 GIST="gist"
10751
10752 FLATZINC="flatzinc"
10753
10754 DRIVER="driver"
10755
10756
10757 if test "${enable_debug:-no}" = "no"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
10759 $as_echo_n "checking if compiler supports forced inlining... " >&6; }
10760 ac_ext=cpp
10761 ac_cpp='$CXXCPP $CPPFLAGS'
10762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10765
10766 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10767 CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 #ifndef __clang__
10771 # error "Macro __clang__ is undefined!"
10772 /* For some compilers (eg. SGI's CC), #error is not
10773 enough... */
10774 please, do fail
10775 #endif
10776 int
10777 main ()
10778 {
10779
10780 ;
10781 return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_cxx_try_compile "$LINENO"; then :
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787
10788 $as_echo "#define forceinline inline" >>confdefs.h
10789
10790 else
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793
10794 inline __attribute__ ((__always_inline__)) void foo(void) {}
10795 int
10796 main ()
10797 {
10798
10799 ;
10800 return 0;
10801 }
10802 _ACEOF
10803 if ac_fn_cxx_try_compile "$LINENO"; then :
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; }
10806
10807 $as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
10808
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812
10813 $as_echo "#define forceinline inline" >>confdefs.h
10814
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 CXXFLAGS=${ac_gecode_save_CXXFLAGS}
10820 ac_ext=cpp
10821 ac_cpp='$CXXCPP $CPPFLAGS'
10822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10825
10826
10827 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
10829 $as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
10830 if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 :
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10836 $as_echo "yes" >&6; }
10837
10838 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
10839 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
10840 fi
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
10843 $as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
10844 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10845 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10846 ac_ext=cpp
10847 ac_cpp='$CXXCPP $CPPFLAGS'
10848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10851
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854
10855 int
10856 main ()
10857 {
10858
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_cxx_try_compile "$LINENO"; then :
10864 if grep -q "unrecognized\|argument unused" conftest.err; then
10865 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 :
10869 else
10870 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; }
10873
10874 CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
10875 fi
10876
10877 else
10878 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 $as_echo "no" >&6; }
10881 :
10882 fi
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 ac_ext=cpp
10885 ac_cpp='$CXXCPP $CPPFLAGS'
10886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10889
10890
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
10892 $as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
10893 ac_gecode_save_CFLAGS="${CFLAGS}"
10894 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
10895 ac_ext=c
10896 ac_cpp='$CPP $CPPFLAGS'
10897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10900
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903
10904 int
10905 main ()
10906 {
10907
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913 if grep -q "unrecognized\|argument unused" conftest.err; then
10914 CFLAGS="${ac_gecode_save_CFLAGS}"
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 :
10918 else
10919 CFLAGS="${ac_gecode_save_CFLAGS}"
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921 $as_echo "yes" >&6; }
10922
10923 CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
10924 fi
10925
10926 else
10927 CFLAGS="${ac_gecode_save_CFLAGS}"
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 :
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 ac_ext=cpp
10934 ac_cpp='$CXXCPP $CPPFLAGS'
10935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938
10939 fi
10940
10941 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
10943 $as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
10944 if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 :
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950 $as_echo "yes" >&6; }
10951
10952 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
10953 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
10954 fi
10955 else
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
10957 $as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
10958 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10959 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10960 ac_ext=cpp
10961 ac_cpp='$CXXCPP $CPPFLAGS'
10962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10965
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968
10969 int
10970 main ()
10971 {
10972
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 if ac_fn_cxx_try_compile "$LINENO"; then :
10978 if grep -q "unrecognized\|argument unused" conftest.err; then
10979 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 :
10983 else
10984 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10986 $as_echo "yes" >&6; }
10987
10988 CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
10989 fi
10990
10991 else
10992 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 :
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 ac_ext=cpp
10999 ac_cpp='$CXXCPP $CPPFLAGS'
11000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11003
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
11006 $as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
11007 ac_gecode_save_CFLAGS="${CFLAGS}"
11008 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
11009 ac_ext=c
11010 ac_cpp='$CPP $CPPFLAGS'
11011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11014
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017
11018 int
11019 main ()
11020 {
11021
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_compile "$LINENO"; then :
11027 if grep -q "unrecognized\|argument unused" conftest.err; then
11028 CFLAGS="${ac_gecode_save_CFLAGS}"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11031 :
11032 else
11033 CFLAGS="${ac_gecode_save_CFLAGS}"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; }
11036
11037 CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
11038 fi
11039
11040 else
11041 CFLAGS="${ac_gecode_save_CFLAGS}"
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 :
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 ac_ext=cpp
11048 ac_cpp='$CXXCPP $CPPFLAGS'
11049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11052
11053 fi
11054 else
11055
11056 $as_echo "#define forceinline inline" >>confdefs.h
11057
11058
11059 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11061 $as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11062 if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 :
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069
11070 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11071 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11072 fi
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11075 $as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11076 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11077 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11078 ac_ext=cpp
11079 ac_cpp='$CXXCPP $CPPFLAGS'
11080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11083
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086
11087 int
11088 main ()
11089 {
11090
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_cxx_try_compile "$LINENO"; then :
11096 if grep -q "unrecognized\|argument unused" conftest.err; then
11097 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 :
11101 else
11102 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11104 $as_echo "yes" >&6; }
11105
11106 CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11107 fi
11108
11109 else
11110 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11113 :
11114 fi
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 ac_ext=cpp
11117 ac_cpp='$CXXCPP $CPPFLAGS'
11118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11121
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
11124 $as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
11125 ac_gecode_save_CFLAGS="${CFLAGS}"
11126 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
11127 ac_ext=c
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11132
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135
11136 int
11137 main ()
11138 {
11139
11140 ;
11141 return 0;
11142 }
11143 _ACEOF
11144 if ac_fn_c_try_compile "$LINENO"; then :
11145 if grep -q "unrecognized\|argument unused" conftest.err; then
11146 CFLAGS="${ac_gecode_save_CFLAGS}"
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 :
11150 else
11151 CFLAGS="${ac_gecode_save_CFLAGS}"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11154
11155 CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11156 fi
11157
11158 else
11159 CFLAGS="${ac_gecode_save_CFLAGS}"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 :
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 ac_ext=cpp
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170
11171 fi
11172
11173 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11175 $as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11176 if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 :
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11182 $as_echo "yes" >&6; }
11183
11184 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11185 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11186 fi
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11189 $as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11190 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11191 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11192 ac_ext=cpp
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11197
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 int
11202 main ()
11203 {
11204
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_cxx_try_compile "$LINENO"; then :
11210 if grep -q "unrecognized\|argument unused" conftest.err; then
11211 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11214 :
11215 else
11216 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11218 $as_echo "yes" >&6; }
11219
11220 CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11221 fi
11222
11223 else
11224 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 :
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 ac_ext=cpp
11231 ac_cpp='$CXXCPP $CPPFLAGS'
11232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11235
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
11238 $as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
11239 ac_gecode_save_CFLAGS="${CFLAGS}"
11240 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
11241 ac_ext=c
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249
11250 int
11251 main ()
11252 {
11253
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 if grep -q "unrecognized\|argument unused" conftest.err; then
11260 CFLAGS="${ac_gecode_save_CFLAGS}"
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 :
11264 else
11265 CFLAGS="${ac_gecode_save_CFLAGS}"
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; }
11268
11269 CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11270 fi
11271
11272 else
11273 CFLAGS="${ac_gecode_save_CFLAGS}"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 :
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 ac_ext=cpp
11280 ac_cpp='$CXXCPP $CPPFLAGS'
11281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11284
11285 fi
11286 fi
11287 ;;
11288 esac
11289 ;;
11290 microsoft)
11291 $as_echo "#define forceinline __forceinline" >>confdefs.h
11292
11293 CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
11294 CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
11295 CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
11296 CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
11297
11298 $as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
11299
11300 if test "${enable_debug:-no}" = "no"; then
11301 CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11302 CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11303 CFLAGS="-MD -GS- -wd4355${CFLAGS:+ }${CFLAGS}"
11304 CXXFLAGS="-MD -GS- -wd4355${CXXFLAGS:+ }${CXXFLAGS}"
11305
11306 if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11308 $as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11309 if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312 :
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316
11317 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11318 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11319 fi
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11322 $as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11323 ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11324 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11325 ac_ext=cpp
11326 ac_cpp='$CXXCPP $CPPFLAGS'
11327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11330
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333
11334 int
11335 main ()
11336 {
11337
11338 ;
11339 return 0;
11340 }
11341 _ACEOF
11342 if ac_fn_cxx_try_compile "$LINENO"; then :
11343 if grep -q "unrecognized\|argument unused" conftest.err; then
11344 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 :
11348 else
11349 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352
11353 CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11354 fi
11355
11356 else
11357 CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11360 :
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 ac_ext=cpp
11364 ac_cpp='$CXXCPP $CPPFLAGS'
11365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11368
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
11371 $as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
11372 ac_gecode_save_CFLAGS="${CFLAGS}"
11373 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
11374 ac_ext=c
11375 ac_cpp='$CPP $CPPFLAGS'
11376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11379
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 int
11384 main ()
11385 {
11386
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"; then :
11392 if grep -q "unrecognized\|argument unused" conftest.err; then
11393 CFLAGS="${ac_gecode_save_CFLAGS}"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11396 :
11397 else
11398 CFLAGS="${ac_gecode_save_CFLAGS}"
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11401
11402 CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11403 fi
11404
11405 else
11406 CFLAGS="${ac_gecode_save_CFLAGS}"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 :
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 ac_ext=cpp
11413 ac_cpp='$CXXCPP $CPPFLAGS'
11414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11417
11418 fi
11419
11420 DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
11421 GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
11422 else
11423 CFLAGS="-MDd -Zi -wd4355${CFLAGS:+ }${CFLAGS}"
11424 CXXFLAGS="-MDd -Zi -wd4355${CXXFLAGS:+ }${CXXFLAGS}"
11425
11426 DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
11427 GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
11428 fi
11429
11430 sharedlibdir="${bindir}"
11431
11432 docdir="${prefix}"
11433
11434 if test "${enable_static:-no}" = "yes"; then
11435 as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
11436 fi
11437
11438 # Extract the first word of "mt.exe", so it can be a program name with args.
11439 set dummy mt.exe; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if ${ac_cv_prog_MANIFEST+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test -n "$MANIFEST"; then
11446 ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_prog_MANIFEST="mt.exe"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11458 fi
11459 done
11460 done
11461 IFS=$as_save_IFS
11462
11463 fi
11464 fi
11465 MANIFEST=$ac_cv_prog_MANIFEST
11466 if test -n "$MANIFEST"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
11468 $as_echo "$MANIFEST" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 fi
11473
11474
11475
11476 DLLPATH=""
11477
11478
11479 SBJEXT="sbj"
11480
11481 DLLEXT="dll"
11482
11483 SOSUFFIX=""
11484
11485 SOLINKSUFFIX=""
11486
11487 WLSONAME=""
11488
11489 LIBEXT="lib"
11490
11491 LIBPREFIX="${ac_gecode_userprefix}Gecode"
11492
11493 LINKPREFIX="${ac_gecode_userprefix}Gecode"
11494
11495 LINKSUFFIX=".lib"
11496
11497 MINUSLDIR=""
11498
11499 LINKLIBDIR="${libdir}/"
11500
11501
11502 cygpathprefix=$prefix
11503 test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
11504 cygpathprefix=`cygpath -m ${cygpathprefix}`
11505
11506 cygpathprefix="${cygpathprefix}"
11507
11508 GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
11509
11510 GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
11511
11512 GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
11513
11514 GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
11515
11516 GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
11517
11518 GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
11519
11520 GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
11521
11522 GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
11523
11524 GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
11525
11526 GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
11527
11528
11529 COMPILEOBJ="-c -Fo"
11530
11531 COMPILESBJ="-c -Fa"
11532
11533 CXXIN="-Tp"
11534
11535 CCIN="-Tc"
11536
11537
11538 INSTALLLIBS="yes"
11539
11540
11541 LINKOUTPUT="-Fe"
11542
11543 EXEOUTPUT="-Fe"
11544
11545
11546 SUPPORT="Support"
11547
11548 KERNEL="Kernel"
11549
11550 SEARCH="Search"
11551
11552 INT="Int"
11553
11554 FLOAT="Float"
11555
11556 SET="Set"
11557
11558 MM="Minimodel"
11559
11560 GIST="Gist"
11561
11562 FLATZINC="FlatZinc"
11563
11564 DRIVER="Driver"
11565
11566 ;;
11567 *)
11568 as_fn_error $? "Gecode currently only supports the GNU and Microsoft compilers." "$LINENO" 5
11569 ;;
11570 esac
11571
11572 ac_fn_cxx_check_header_mongrel "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default"
11573 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
11574
11575 $as_echo "#define GECODE_HAS_GNU_HASH_MAP /**/" >>confdefs.h
11576
11577 fi
11578
11579
11580
11581 ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default"
11582 if test "x$ac_cv_header_unordered_map" = xyes; then :
11583
11584 $as_echo "#define GECODE_HAS_UNORDERED_MAP /**/" >>confdefs.h
11585
11586 fi
11587
11588
11589
11590
11591 # Check whether --enable-doc-dot was given.
11592 if test "${enable_doc_dot+set}" = set; then :
11593 enableval=$enable_doc_dot;
11594 fi
11595
11596 # Extract the first word of "dot", so it can be a program name with args.
11597 set dummy dot; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_DOT+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 if test -n "$DOT"; then
11604 ac_cv_prog_DOT="$DOT" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_DOT="dot"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617 done
11618 done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 DOT=$ac_cv_prog_DOT
11624 if test -n "$DOT"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
11626 $as_echo "$DOT" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable graphs in the documentation" >&5
11634 $as_echo_n "checking whether to enable graphs in the documentation... " >&6; }
11635 if test "${enable_doc_dot:-yes}" = "yes"; then
11636 if test x$DOT = x; then
11637 if test x"${enable_doc_dot}" = x; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 GECODE_DOXYGEN_DOT=NO
11641
11642 else
11643 as_fn_error $? "you need the dot tool from graphviz to generate graphs in the documentation" "$LINENO" 5
11644 fi
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 GECODE_DOXYGEN_DOT=YES
11649
11650 fi
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 GECODE_DOXYGEN_DOT=NO
11655
11656 fi
11657
11658 # Check whether --enable-doc-search was given.
11659 if test "${enable_doc_search+set}" = set; then :
11660 enableval=$enable_doc_search;
11661 fi
11662
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the documentation search engine" >&5
11664 $as_echo_n "checking whether to enable the documentation search engine... " >&6; }
11665 if test "${enable_doc_search:-no}" = "yes"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667 $as_echo "yes" >&6; }
11668 ENABLEDOCSEARCH="yes"
11669
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 ENABLEDOCSEARCH="no"
11674
11675 fi
11676 # Check whether --enable-doc-tagfile was given.
11677 if test "${enable_doc_tagfile+set}" = set; then :
11678 enableval=$enable_doc_tagfile;
11679 fi
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate a doxygen tagfile" >&5
11682 $as_echo_n "checking whether to generate a doxygen tagfile... " >&6; }
11683 if test "${enable_doc_tagfile:-yes}" = "yes"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685 $as_echo "yes" >&6; }
11686 GECODE_DOXYGEN_TAGFILE="doc/gecode-doc.tag"
11687
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691
11692 fi
11693 # Check whether --enable-doc-chm was given.
11694 if test "${enable_doc_chm+set}" = set; then :
11695 enableval=$enable_doc_chm;
11696 fi
11697
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build compressed html documentation" >&5
11699 $as_echo_n "checking whether to build compressed html documentation... " >&6; }
11700 case $host_os in
11701 windows*)
11702 if test "${enable_doc_chm:-yes}" = "yes"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704 $as_echo "yes" >&6; }
11705 ENABLEDOCCHM="yes"
11706
11707 ENABLEDOCSEARCH="no"
11708
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 ENABLEDOCCHM="no"
11713
11714 fi
11715 ;;
11716 *)
11717 if test "${enable_doc_chm:-no}" = "yes"; then
11718 as_fn_error $? "building chms is only supported on Windows." "$LINENO" 5
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11722 ENABLEDOCCHM="no"
11723
11724 fi
11725 ;;
11726 esac
11727 # Check whether --enable-doc-docset was given.
11728 if test "${enable_doc_docset+set}" = set; then :
11729 enableval=$enable_doc_docset;
11730 fi
11731
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build docset documentation for XCode" >&5
11733 $as_echo_n "checking whether to build docset documentation for XCode... " >&6; }
11734 case $host_os in
11735 darwin*)
11736 if test "${enable_doc_docset:-no}" = "yes"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11738 $as_echo "yes" >&6; }
11739 ENABLEDOCDOCSET="yes"
11740
11741 ENABLEDOCSEARCH="no"
11742
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 ENABLEDOCDOCSET="no"
11747
11748 fi
11749 ;;
11750 *)
11751 if test "${enable_doc_docset:-no}" = "yes"; then
11752 as_fn_error $? "building docsets is only supported on Mac OS X." "$LINENO" 5
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 ENABLEDOCDOCSET="no"
11757
11758 fi
11759 ;;
11760 esac
11761
11762
11763
11764
11765
11766
11767
11768 # Check whether --with-vis was given.
11769 if test "${with_vis+set}" = set; then :
11770 withval=$with_vis;
11771 fi
11772
11773 if test "${with_vis:-no}" != "no"; then
11774 with_vis=${with_vis//,/ }
11775 ac_gecode_vis="${with_vis}${ac_gecode_vis:+ }${ac_gecode_vis}"
11776 fi
11777
11778
11779 # Check whether --enable-float-vars was given.
11780 if test "${enable_float_vars+set}" = set; then :
11781 enableval=$enable_float_vars;
11782 fi
11783
11784 ac_gecode_vis="\$(top_srcdir)/gecode/float/var-imp/float.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the float variables library" >&5
11786 $as_echo_n "checking whether to build the float variables library... " >&6; }
11787 if test "${enable_float_vars:-yes}" = "yes"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 enable_float_vars="yes";
11791 enable_int_vars="yes";
11792 LINKFLOAT=${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX}
11793
11794
11795
11796 $as_echo "#define GECODE_HAS_FLOAT_VARS /**/" >>confdefs.h
11797
11798 else
11799 enable_float_vars="no";
11800
11801
11802
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 fi
11807 enable_float_vars=${enable_float_vars}
11808
11809
11810
11811
11812 # Check whether --enable-set-vars was given.
11813 if test "${enable_set_vars+set}" = set; then :
11814 enableval=$enable_set_vars;
11815 fi
11816
11817 ac_gecode_vis="\$(top_srcdir)/gecode/set/var-imp/set.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the set variables library" >&5
11819 $as_echo_n "checking whether to build the set variables library... " >&6; }
11820 if test "${enable_set_vars:-yes}" = "yes"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822 $as_echo "yes" >&6; }
11823 enable_set_vars="yes";
11824 enable_int_vars="yes";
11825 LINKSET=${LINKLIBDIR}${LINKPREFIX}${SET}${DLL_ARCH}${LINKSUFFIX}
11826
11827
11828
11829 $as_echo "#define GECODE_HAS_SET_VARS /**/" >>confdefs.h
11830
11831 else
11832 enable_set_vars="no";
11833
11834
11835
11836
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840 enable_set_vars=${enable_set_vars}
11841
11842
11843
11844
11845 # Check whether --enable-int-vars was given.
11846 if test "${enable_int_vars+set}" = set; then :
11847 enableval=$enable_int_vars;
11848 fi
11849
11850 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}"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the int variables library" >&5
11852 $as_echo_n "checking whether to build the int variables library... " >&6; }
11853 if test "${enable_int_vars:-yes}" = "yes"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 $as_echo "yes" >&6; }
11856 enable_int_vars="yes";
11857
11858 LINKINT=${LINKLIBDIR}${LINKPREFIX}${INT}${DLL_ARCH}${LINKSUFFIX}
11859
11860
11861
11862 $as_echo "#define GECODE_HAS_INT_VARS /**/" >>confdefs.h
11863
11864 else
11865 enable_int_vars="no";
11866
11867
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 fi
11872 enable_int_vars=${enable_int_vars}
11873
11874
11875
11876
11877
11878 # Check whether --enable-mpfr was given.
11879 if test "${enable_mpfr+set}" = set; then :
11880 enableval=$enable_mpfr;
11881 fi
11882
11883 if test "${enable_float_vars:-yes}" = "yes"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with MPFR support" >&5
11885 $as_echo_n "checking whether to build with MPFR support... " >&6; }
11886 if test "${enable_mpfr:-yes}" = "yes"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889
11890 # Check whether --with-gmp-include was given.
11891 if test "${with_gmp_include+set}" = set; then :
11892 withval=$with_gmp_include;
11893 fi
11894
11895 if test "${with_gmp_include:-no}" != "no"; then
11896 GMP_CPPFLAGS=-I${with_gmp_include}
11897
11898 fi
11899
11900
11901 # Check whether --with-gmp-lib was given.
11902 if test "${with_gmp_lib+set}" = set; then :
11903 withval=$with_gmp_lib;
11904 fi
11905
11906
11907 ac_gecode_tmp_gmp_lib=""
11908 if test "${with_gmp_lib:-no}" != "no"; then
11909 case $ac_gecode_compiler_vendor in
11910 gnu)
11911 GMP_LIB_PATH="-L${with_gmp_lib}"
11912
11913 ;;
11914 microsoft)
11915 GMP_LIB_PATH="/LIBPATH:${with_gmp_lib}"
11916
11917 ;;
11918 esac
11919 else
11920 GMP_LIB_PATH=""
11921
11922 fi
11923
11924 ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
11925 ac_gecode_save_LIBS="${LIBS}"
11926 case $ac_gecode_compiler_vendor in
11927 gnu)
11928 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
11929 LIBS="${LIBS}${LIBS:+ } ${GMP_LIB_PATH}"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
11931 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
11932 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-lgmp $LIBS"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char __gmpz_init ();
11947 int
11948 main ()
11949 {
11950 return __gmpz_init ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_cxx_try_link "$LINENO"; then :
11956 ac_cv_lib_gmp___gmpz_init=yes
11957 else
11958 ac_cv_lib_gmp___gmpz_init=no
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
11965 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
11966 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
11967
11968 GMP_LINK="${ac_gecode_tmp_gmp_lib} -lgmp"
11969
11970
11971 else
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
11974 $as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
11975 if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lmpir $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char __gmpz_init ();
11990 int
11991 main ()
11992 {
11993 return __gmpz_init ();
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_cxx_try_link "$LINENO"; then :
11999 ac_cv_lib_mpir___gmpz_init=yes
12000 else
12001 ac_cv_lib_mpir___gmpz_init=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12008 $as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12009 if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12010
12011 GMP_LINK="${ac_gecode_tmp_gmp_lib} -lmpir"
12012
12013
12014 else
12015
12016 enable_mpfr=no;
12017
12018 fi
12019
12020
12021 fi
12022
12023 ;;
12024 microsoft)
12025 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
12026 LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} gmp.lib"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12028 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12029 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lgmp $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char __gmpz_init ();
12044 int
12045 main ()
12046 {
12047 return __gmpz_init ();
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_cxx_try_link "$LINENO"; then :
12053 ac_cv_lib_gmp___gmpz_init=yes
12054 else
12055 ac_cv_lib_gmp___gmpz_init=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12062 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12063 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12064
12065 GMP_LINK="${ac_gecode_tmp_gmp_lib} gmp.lib"
12066
12067
12068 else
12069
12070 LIBS="${ac_gecode_save_LIBS}"
12071 LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} mpir.lib"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
12073 $as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
12074 if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-lmpir $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char __gmpz_init ();
12089 int
12090 main ()
12091 {
12092 return __gmpz_init ();
12093 ;
12094 return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_cxx_try_link "$LINENO"; then :
12098 ac_cv_lib_mpir___gmpz_init=yes
12099 else
12100 ac_cv_lib_mpir___gmpz_init=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12107 $as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12108 if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12109
12110 GMP_LINK="${ac_gecode_tmp_gmp_lib} mpir.lib"
12111
12112
12113 else
12114
12115 enable_mpfr=no;
12116
12117 fi
12118
12119
12120 fi
12121
12122 ;;
12123 esac
12124 CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12125 LIBS="${ac_gecode_save_LIBS}"
12126
12127
12128 # Check whether --with-mpfr-include was given.
12129 if test "${with_mpfr_include+set}" = set; then :
12130 withval=$with_mpfr_include;
12131 fi
12132
12133 if test "${with_mpfr_include:-no}" != "no"; then
12134 MPFR_CPPFLAGS=-I${with_mpfr_include}
12135
12136 fi
12137
12138
12139 # Check whether --with-mpfr-lib was given.
12140 if test "${with_mpfr_lib+set}" = set; then :
12141 withval=$with_mpfr_lib;
12142 fi
12143
12144 if test "${with_mpfr_lib:-no}" != "no"; then
12145 case $ac_gecode_compiler_vendor in
12146 gnu)
12147 MPFR_LIB_PATH="-L${with_mpfr_lib}"
12148
12149 ;;
12150 microsoft)
12151 MPFR_LIB_PATH="/LIBPATH:${with_mpfr_lib}"
12152
12153 ;;
12154 esac
12155 else
12156 MPFR_LIB_PATH=""
12157
12158 fi
12159 case $ac_gecode_compiler_vendor in
12160 gnu)
12161 MPFR_LINK="-lmpfr"
12162
12163 ;;
12164 microsoft)
12165 MPFR_LINK="mpfr.lib"
12166
12167 ;;
12168 esac
12169
12170 ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
12171 ac_gecode_save_LIBS="${LIBS}"
12172 case $ac_gecode_compiler_vendor in
12173 gnu)
12174 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12175 LIBS="${LIBS}${LIBS:+ } ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12176 for ac_header in gmp.h
12177 do :
12178 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12179 if test "x$ac_cv_header_gmp_h" = xyes; then :
12180 cat >>confdefs.h <<_ACEOF
12181 #define HAVE_GMP_H 1
12182 _ACEOF
12183 for ac_header in mpfr.h
12184 do :
12185 ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12186 if test "x$ac_cv_header_mpfr_h" = xyes; then :
12187 cat >>confdefs.h <<_ACEOF
12188 #define HAVE_MPFR_H 1
12189 _ACEOF
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5
12191 $as_echo_n "checking for mpfr_add in -lmpfr... " >&6; }
12192 if ${ac_cv_lib_mpfr_mpfr_add+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-lmpfr $LIBS"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12199
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 char mpfr_add ();
12207 int
12208 main ()
12209 {
12210 return mpfr_add ();
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_cxx_try_link "$LINENO"; then :
12216 ac_cv_lib_mpfr_mpfr_add=yes
12217 else
12218 ac_cv_lib_mpfr_mpfr_add=no
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add" >&5
12225 $as_echo "$ac_cv_lib_mpfr_mpfr_add" >&6; }
12226 if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes; then :
12227
12228 $as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12229
12230 enable_mpfr=yes;
12231 else
12232 enable_mpfr=no;
12233 fi
12234
12235 else
12236 enable_mpfr=no;
12237 fi
12238
12239 done
12240
12241 else
12242 enable_mpfr=no;
12243 fi
12244
12245 done
12246
12247 ;;
12248 microsoft)
12249 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12250 LIBS="${LIBS}${LIBS:+ } /link ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12251 for ac_header in gmp.h
12252 do :
12253 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12254 if test "x$ac_cv_header_gmp_h" = xyes; then :
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_GMP_H 1
12257 _ACEOF
12258 for ac_header in mpfr.h
12259 do :
12260 ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12261 if test "x$ac_cv_header_mpfr_h" = xyes; then :
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_MPFR_H 1
12264 _ACEOF
12265 ac_fn_cxx_check_func "$LINENO" "mpfr_add" "ac_cv_func_mpfr_add"
12266 if test "x$ac_cv_func_mpfr_add" = xyes; then :
12267
12268 $as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12269
12270 enable_mpfr=yes;
12271 else
12272 enable_mpfr=no;
12273 fi
12274
12275 else
12276 enable_mpfr=no;
12277 fi
12278
12279 done
12280
12281 else
12282 enable_mpfr=no;
12283 fi
12284
12285 done
12286
12287 ;;
12288 esac
12289 CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12290 LIBS="${ac_gecode_save_LIBS}"
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 enable_mpfr=no;
12295 fi
12296 else
12297 enable_mpfr=no;
12298 fi
12299 enable_mpfr=${enable_mpfr}
12300
12301
12302
12303 # Check whether --enable-qt was given.
12304 if test "${enable_qt+set}" = set; then :
12305 enableval=$enable_qt;
12306 fi
12307
12308 for ac_prog in qmake-qt4 qmake
12309 do
12310 # Extract the first word of "$ac_prog", so it can be a program name with args.
12311 set dummy $ac_prog; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_prog_QMAKE+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$QMAKE"; then
12318 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327 ac_cv_prog_QMAKE="$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331 done
12332 done
12333 IFS=$as_save_IFS
12334
12335 fi
12336 fi
12337 QMAKE=$ac_cv_prog_QMAKE
12338 if test -n "$QMAKE"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
12340 $as_echo "$QMAKE" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347 test -n "$QMAKE" && break
12348 done
12349
12350 for ac_prog in moc-qt4 moc
12351 do
12352 # Extract the first word of "$ac_prog", so it can be a program name with args.
12353 set dummy $ac_prog; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_prog_MOC+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test -n "$MOC"; then
12360 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12361 else
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_MOC="$ac_prog"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12376
12377 fi
12378 fi
12379 MOC=$ac_cv_prog_MOC
12380 if test -n "$MOC"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
12382 $as_echo "$MOC" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12386 fi
12387
12388
12389 test -n "$MOC" && break
12390 done
12391
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Qt support" >&5
12393 $as_echo_n "checking whether to build with Qt support... " >&6; }
12394 if test "${enable_qt:-yes}" = "yes"; then
12395 if test "${QMAKE}x" = "x" -o "${MOC}x" = "x"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 else
12399 ac_gecode_qt_version=`${QMAKE} -query QT_VERSION`
12400 ac_gecode_qt_major=`echo ${ac_gecode_qt_version} | grep -o '^[0-9]*'`
12401 ac_gecode_qt_minor=`echo ${ac_gecode_qt_version} | sed -e 's/^[0-9]*\\.//g' -e 's/\\.[0-9]*$//g'`
12402 ac_gecode_qt_ok="yes"
12403 if test ${ac_gecode_qt_major} -lt 4; then ac_gecode_qt_ok="no";
12404 else if test ${ac_gecode_qt_major} -eq 4 \
12405 -a ${ac_gecode_qt_minor} -lt 3; then ac_gecode_qt_ok="no";
12406 fi
12407 fi
12408 if test "${ac_gecode_qt_ok}" != "yes"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12413 $as_echo "yes" >&6; }
12414
12415 $as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h
12416
12417 ac_gecode_qt_tmpdir=`mktemp -d gistqt.XXXXXX` || exit 1
12418 cd ${ac_gecode_qt_tmpdir}
12419 echo "CONFIG += release" > a.pro
12420 if test ${ac_gecode_qt_major} -eq 5; then
12421 echo "QT += widgets printsupport" >> a.pro
12422 fi
12423 ${QMAKE}
12424 if test -d a.xcodeproj; then
12425 ac_gecode_qt_makefile=a.xcodeproj/qt_preprocess.mak
12426 elif test -d a.pbproj; then
12427 ac_gecode_qt_makefile=a.pbproj/qt_preprocess.mak
12428 elif test -f Makefile.Debug; then
12429 if test "${enable_debug:-no}" = "no"; then
12430 ac_gecode_qt_makefile=Makefile.Release
12431 else
12432 ac_gecode_qt_makefile=Makefile.Debug
12433 fi
12434 else
12435 ac_gecode_qt_makefile=Makefile
12436 fi
12437 ac_gecode_qt_defines=`grep ${ac_gecode_qt_makefile} -e 'DEFINES.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12438 ac_gecode_qt_inc=`grep ${ac_gecode_qt_makefile} -e 'INCPATH.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12439 ac_gecode_qt_libs=`grep ${ac_gecode_qt_makefile} -e 'LIBS.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12440 if test -d a.xcodeproj -o -d a.pbproj; then
12441 ac_gecode_qt_libs="-framework QtGui -framework QtCore"
12442 fi
12443 cd ..
12444 rm -r ${ac_gecode_qt_tmpdir}
12445 QTINCLUDES=${ac_gecode_qt_inc}
12446
12447 QTDEFINES=${ac_gecode_qt_defines}
12448
12449 QTLIBS=${ac_gecode_qt_libs}
12450
12451 enable_qt=yes
12452
12453 enable_qt=yes;
12454 fi
12455 fi
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 enable_qt=no;
12460 fi
12461 enable_qt=${enable_qt}
12462
12463
12464
12465 # Check whether --enable-gist was given.
12466 if test "${enable_gist+set}" = set; then :
12467 enableval=$enable_gist;
12468 fi
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gist" >&5
12471 $as_echo_n "checking whether to build Gist... " >&6; }
12472 if test "${enable_gist:-yes}" = "yes" -a "${enable_qt}" = "yes"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475 enable_gist=yes
12476
12477
12478 $as_echo "#define GECODE_HAS_GIST /**/" >>confdefs.h
12479
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485
12486 # Check whether --enable-cbs was given.
12487 if test "${enable_cbs+set}" = set; then :
12488 enableval=$enable_cbs;
12489 fi
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for cbs" >&5
12492 $as_echo_n "checking whether to build with support for cbs... " >&6; }
12493 if test "${enable_cbs:-no}" = "yes"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12495 $as_echo "yes" >&6; }
12496 enable_cbs=yes
12497
12498
12499 $as_echo "#define GECODE_HAS_CBS /**/" >>confdefs.h
12500
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505
12506
12507 # Check whether --enable-cpprofiler was given.
12508 if test "${enable_cpprofiler+set}" = set; then :
12509 enableval=$enable_cpprofiler;
12510 fi
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for CPProfiler" >&5
12513 $as_echo_n "checking whether to build with support for CPProfiler... " >&6; }
12514 if test "${enable_cpprofiler:-no}" = "yes"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516 $as_echo "yes" >&6; }
12517 enable_cpprofiler=yes
12518
12519
12520 $as_echo "#define GECODE_HAS_CPPROFILER /**/" >>confdefs.h
12521
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12525 fi
12526
12527 if test -n "$ac_tool_prefix"; then
12528 # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args.
12529 set dummy ${ac_tool_prefix}flex; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_prog_HAVEFLEX+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$HAVEFLEX"; then
12536 ac_cv_prog_HAVEFLEX="$HAVEFLEX" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_prog_HAVEFLEX="${ac_tool_prefix}flex"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 HAVEFLEX=$ac_cv_prog_HAVEFLEX
12556 if test -n "$HAVEFLEX"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEFLEX" >&5
12558 $as_echo "$HAVEFLEX" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 fi
12566 if test -z "$ac_cv_prog_HAVEFLEX"; then
12567 ac_ct_HAVEFLEX=$HAVEFLEX
12568 # Extract the first word of "flex", so it can be a program name with args.
12569 set dummy flex; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if ${ac_cv_prog_ac_ct_HAVEFLEX+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 if test -n "$ac_ct_HAVEFLEX"; then
12576 ac_cv_prog_ac_ct_HAVEFLEX="$ac_ct_HAVEFLEX" # Let the user override the test.
12577 else
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12580 do
12581 IFS=$as_save_IFS
12582 test -z "$as_dir" && as_dir=.
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585 ac_cv_prog_ac_ct_HAVEFLEX="flex"
12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587 break 2
12588 fi
12589 done
12590 done
12591 IFS=$as_save_IFS
12592
12593 fi
12594 fi
12595 ac_ct_HAVEFLEX=$ac_cv_prog_ac_ct_HAVEFLEX
12596 if test -n "$ac_ct_HAVEFLEX"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEFLEX" >&5
12598 $as_echo "$ac_ct_HAVEFLEX" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603
12604 if test "x$ac_ct_HAVEFLEX" = x; then
12605 HAVEFLEX=""
12606 else
12607 case $cross_compiling:$ac_tool_warned in
12608 yes:)
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12611 ac_tool_warned=yes ;;
12612 esac
12613 HAVEFLEX=$ac_ct_HAVEFLEX
12614 fi
12615 else
12616 HAVEFLEX="$ac_cv_prog_HAVEFLEX"
12617 fi
12618
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least flex 2.5.33" >&5
12620 $as_echo_n "checking whether we have at least flex 2.5.33... " >&6; }
12621 if test "${HAVEFLEX}x" = "x"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624 HAVE_FLEXBISON="no"
12625
12626 else
12627 if flex --version | grep ' 2\.5\.3[3-9].*$' >/dev/null 2>&1 ||
12628 flex --version | grep ' 2\.5\.4[0-9].*$' >/dev/null 2>&1 ||
12629 flex --version | grep ' 2\.[6-9]\.[0-9]*$' >/dev/null 2>&1
12630 then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12632 $as_echo "yes" >&6; }
12633 if test -n "$ac_tool_prefix"; then
12634 # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args.
12635 set dummy ${ac_tool_prefix}bison; ac_word=$2
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if ${ac_cv_prog_HAVEBISON+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 if test -n "$HAVEBISON"; then
12642 ac_cv_prog_HAVEBISON="$HAVEBISON" # Let the user override the test.
12643 else
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12646 do
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_prog_HAVEBISON="${ac_tool_prefix}bison"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12654 fi
12655 done
12656 done
12657 IFS=$as_save_IFS
12658
12659 fi
12660 fi
12661 HAVEBISON=$ac_cv_prog_HAVEBISON
12662 if test -n "$HAVEBISON"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEBISON" >&5
12664 $as_echo "$HAVEBISON" >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669
12670
12671 fi
12672 if test -z "$ac_cv_prog_HAVEBISON"; then
12673 ac_ct_HAVEBISON=$HAVEBISON
12674 # Extract the first word of "bison", so it can be a program name with args.
12675 set dummy bison; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_prog_ac_ct_HAVEBISON+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -n "$ac_ct_HAVEBISON"; then
12682 ac_cv_prog_ac_ct_HAVEBISON="$ac_ct_HAVEBISON" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12691 ac_cv_prog_ac_ct_HAVEBISON="bison"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 break 2
12694 fi
12695 done
12696 done
12697 IFS=$as_save_IFS
12698
12699 fi
12700 fi
12701 ac_ct_HAVEBISON=$ac_cv_prog_ac_ct_HAVEBISON
12702 if test -n "$ac_ct_HAVEBISON"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEBISON" >&5
12704 $as_echo "$ac_ct_HAVEBISON" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710 if test "x$ac_ct_HAVEBISON" = x; then
12711 HAVEBISON=""
12712 else
12713 case $cross_compiling:$ac_tool_warned in
12714 yes:)
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12717 ac_tool_warned=yes ;;
12718 esac
12719 HAVEBISON=$ac_ct_HAVEBISON
12720 fi
12721 else
12722 HAVEBISON="$ac_cv_prog_HAVEBISON"
12723 fi
12724
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least bison 2.3" >&5
12726 $as_echo_n "checking whether we have at least bison 2.3... " >&6; }
12727 if test "${HAVEBISON}x" = "x"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 HAVE_FLEXBISON="no"
12731
12732 else
12733 if bison --version | grep -e ' 2\.[3-9][0-9]*' >/dev/null 2>&1 ||
12734 bison --version | grep -e ' 3\.*' >/dev/null 2>&1
12735 then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; }
12738 HAVE_FLEXBISON="yes"
12739
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 HAVE_FLEXBISON="no"
12744
12745 fi
12746 fi
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 HAVE_FLEXBISON="no"
12751
12752 fi
12753 fi
12754
12755
12756
12757 for ac_header in $ac_header_list
12758 do :
12759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12761 "
12762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12763 cat >>confdefs.h <<_ACEOF
12764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12765 _ACEOF
12766
12767 fi
12768
12769 done
12770
12771
12772
12773
12774
12775
12776
12777
12778 for ac_func in getpagesize
12779 do :
12780 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12781 if test "x$ac_cv_func_getpagesize" = xyes; then :
12782 cat >>confdefs.h <<_ACEOF
12783 #define HAVE_GETPAGESIZE 1
12784 _ACEOF
12785
12786 fi
12787 done
12788
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12790 $as_echo_n "checking for working mmap... " >&6; }
12791 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 if test "$cross_compiling" = yes; then :
12795 ac_cv_func_mmap_fixed_mapped=no
12796 else
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 /* malloc might have been renamed as rpl_malloc. */
12801 #undef malloc
12802
12803 /* Thanks to Mike Haertel and Jim Avera for this test.
12804 Here is a matrix of mmap possibilities:
12805 mmap private not fixed
12806 mmap private fixed at somewhere currently unmapped
12807 mmap private fixed at somewhere already mapped
12808 mmap shared not fixed
12809 mmap shared fixed at somewhere currently unmapped
12810 mmap shared fixed at somewhere already mapped
12811 For private mappings, we should verify that changes cannot be read()
12812 back from the file, nor mmap's back from the file at a different
12813 address. (There have been systems where private was not correctly
12814 implemented like the infamous i386 svr4.0, and systems where the
12815 VM page cache was not coherent with the file system buffer cache
12816 like early versions of FreeBSD and possibly contemporary NetBSD.)
12817 For shared mappings, we should conversely verify that changes get
12818 propagated back to all the places they're supposed to be.
12819
12820 Grep wants private fixed already mapped.
12821 The main things grep needs to know about mmap are:
12822 * does it exist and is it safe to write into the mmap'd area
12823 * how to use it (BSD variants) */
12824
12825 #include <fcntl.h>
12826 #include <sys/mman.h>
12827
12828 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12829 char *malloc ();
12830 #endif
12831
12832 /* This mess was copied from the GNU getpagesize.h. */
12833 #ifndef HAVE_GETPAGESIZE
12834 # ifdef _SC_PAGESIZE
12835 # define getpagesize() sysconf(_SC_PAGESIZE)
12836 # else /* no _SC_PAGESIZE */
12837 # ifdef HAVE_SYS_PARAM_H
12838 # include <sys/param.h>
12839 # ifdef EXEC_PAGESIZE
12840 # define getpagesize() EXEC_PAGESIZE
12841 # else /* no EXEC_PAGESIZE */
12842 # ifdef NBPG
12843 # define getpagesize() NBPG * CLSIZE
12844 # ifndef CLSIZE
12845 # define CLSIZE 1
12846 # endif /* no CLSIZE */
12847 # else /* no NBPG */
12848 # ifdef NBPC
12849 # define getpagesize() NBPC
12850 # else /* no NBPC */
12851 # ifdef PAGESIZE
12852 # define getpagesize() PAGESIZE
12853 # endif /* PAGESIZE */
12854 # endif /* no NBPC */
12855 # endif /* no NBPG */
12856 # endif /* no EXEC_PAGESIZE */
12857 # else /* no HAVE_SYS_PARAM_H */
12858 # define getpagesize() 8192 /* punt totally */
12859 # endif /* no HAVE_SYS_PARAM_H */
12860 # endif /* no _SC_PAGESIZE */
12861
12862 #endif /* no HAVE_GETPAGESIZE */
12863
12864 int
12865 main ()
12866 {
12867 char *data, *data2, *data3;
12868 const char *cdata2;
12869 int i, pagesize;
12870 int fd, fd2;
12871
12872 pagesize = getpagesize ();
12873
12874 /* First, make a file with some known garbage in it. */
12875 data = (char *) malloc (pagesize);
12876 if (!data)
12877 return 1;
12878 for (i = 0; i < pagesize; ++i)
12879 *(data + i) = rand ();
12880 umask (0);
12881 fd = creat ("conftest.mmap", 0600);
12882 if (fd < 0)
12883 return 2;
12884 if (write (fd, data, pagesize) != pagesize)
12885 return 3;
12886 close (fd);
12887
12888 /* Next, check that the tail of a page is zero-filled. File must have
12889 non-zero length, otherwise we risk SIGBUS for entire page. */
12890 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12891 if (fd2 < 0)
12892 return 4;
12893 cdata2 = "";
12894 if (write (fd2, cdata2, 1) != 1)
12895 return 5;
12896 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12897 if (data2 == MAP_FAILED)
12898 return 6;
12899 for (i = 0; i < pagesize; ++i)
12900 if (*(data2 + i))
12901 return 7;
12902 close (fd2);
12903 if (munmap (data2, pagesize))
12904 return 8;
12905
12906 /* Next, try to mmap the file at a fixed address which already has
12907 something else allocated at it. If we can, also make sure that
12908 we see the same garbage. */
12909 fd = open ("conftest.mmap", O_RDWR);
12910 if (fd < 0)
12911 return 9;
12912 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12913 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12914 return 10;
12915 for (i = 0; i < pagesize; ++i)
12916 if (*(data + i) != *(data2 + i))
12917 return 11;
12918
12919 /* Finally, make sure that changes to the mapped area do not
12920 percolate back to the file as seen by read(). (This is a bug on
12921 some variants of i386 svr4.0.) */
12922 for (i = 0; i < pagesize; ++i)
12923 *(data2 + i) = *(data2 + i) + 1;
12924 data3 = (char *) malloc (pagesize);
12925 if (!data3)
12926 return 12;
12927 if (read (fd, data3, pagesize) != pagesize)
12928 return 13;
12929 for (i = 0; i < pagesize; ++i)
12930 if (*(data + i) != *(data3 + i))
12931 return 14;
12932 close (fd);
12933 return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_cxx_try_run "$LINENO"; then :
12937 ac_cv_func_mmap_fixed_mapped=yes
12938 else
12939 ac_cv_func_mmap_fixed_mapped=no
12940 fi
12941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12942 conftest.$ac_objext conftest.beam conftest.$ac_ext
12943 fi
12944
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12947 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12949
12950 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12951
12952 fi
12953 rm -f conftest.mmap conftest.txt
12954
12955
12956
12957 # Check whether --enable-driver was given.
12958 if test "${enable_driver+set}" = set; then :
12959 enableval=$enable_driver;
12960 fi
12961
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
12963 $as_echo_n "checking whether to build driver... " >&6; }
12964 if test "${enable_driver:-yes}" = "yes"; then
12965 enable_driver="yes";
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967 $as_echo "yes" >&6; }
12968 enable_search="yes";
12969 enable_int="yes";
12970
12971 else
12972 enable_driver="no";
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974 $as_echo "no" >&6; }
12975 fi
12976 enable_driver=${enable_driver}
12977
12978
12979
12980 # Check whether --enable-flatzinc was given.
12981 if test "${enable_flatzinc+set}" = set; then :
12982 enableval=$enable_flatzinc;
12983 fi
12984
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build flatzinc" >&5
12986 $as_echo_n "checking whether to build flatzinc... " >&6; }
12987 if test "${enable_flatzinc:-yes}" = "yes"; then
12988 enable_flatzinc="yes";
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991 enable_search="yes";
12992 enable_driver="yes";
12993 enable_minimodel="yes";
12994
12995 else
12996 enable_flatzinc="no";
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999 fi
13000 enable_flatzinc=${enable_flatzinc}
13001
13002
13003
13004 # Check whether --enable-driver was given.
13005 if test "${enable_driver+set}" = set; then :
13006 enableval=$enable_driver;
13007 fi
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
13010 $as_echo_n "checking whether to build driver... " >&6; }
13011 if test "${enable_driver:-yes}" = "yes"; then
13012 enable_driver="yes";
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13014 $as_echo "yes" >&6; }
13015 enable_search="yes";
13016 enable_int="yes";
13017
13018 else
13019 enable_driver="no";
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13022 fi
13023 enable_driver=${enable_driver}
13024
13025
13026
13027 # Check whether --enable-examples was given.
13028 if test "${enable_examples+set}" = set; then :
13029 enableval=$enable_examples;
13030 fi
13031
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build examples" >&5
13033 $as_echo_n "checking whether to build examples... " >&6; }
13034 if test "${enable_examples:-yes}" = "yes"; then
13035 enable_examples="yes";
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037 $as_echo "yes" >&6; }
13038 enable_search="yes";
13039 enable_driver="yes";
13040 enable_minimodel="yes";
13041
13042 else
13043 enable_examples="no";
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046 fi
13047 enable_examples=${enable_examples}
13048
13049
13050
13051 # Check whether --enable-minimodel was given.
13052 if test "${enable_minimodel+set}" = set; then :
13053 enableval=$enable_minimodel;
13054 fi
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build minimodel" >&5
13057 $as_echo_n "checking whether to build minimodel... " >&6; }
13058 if test "${enable_minimodel:-yes}" = "yes"; then
13059 enable_minimodel="yes";
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13061 $as_echo "yes" >&6; }
13062
13063 else
13064 enable_minimodel="no";
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068 enable_minimodel=${enable_minimodel}
13069
13070
13071
13072 # Check whether --enable-search was given.
13073 if test "${enable_search+set}" = set; then :
13074 enableval=$enable_search;
13075 fi
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build search" >&5
13078 $as_echo_n "checking whether to build search... " >&6; }
13079 if test "${enable_search:-yes}" = "yes"; then
13080 enable_search="yes";
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13082 $as_echo "yes" >&6; }
13083
13084 else
13085 enable_search="no";
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088 fi
13089 enable_search=${enable_search}
13090
13091
13092 ac_aux_dir=
13093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
13094 if test -f "$ac_dir/install-sh"; then
13095 ac_aux_dir=$ac_dir
13096 ac_install_sh="$ac_aux_dir/install-sh -c"
13097 break
13098 elif test -f "$ac_dir/install.sh"; then
13099 ac_aux_dir=$ac_dir
13100 ac_install_sh="$ac_aux_dir/install.sh -c"
13101 break
13102 elif test -f "$ac_dir/shtool"; then
13103 ac_aux_dir=$ac_dir
13104 ac_install_sh="$ac_aux_dir/shtool install -c"
13105 break
13106 fi
13107 done
13108 if test -z "$ac_aux_dir"; then
13109 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
13110 fi
13111
13112 # These three variables are undocumented and unsupported,
13113 # and are intended to be withdrawn in a future Autoconf release.
13114 # They can cause serious problems if a builder's source tree is in a directory
13115 # whose full name contains unusual characters.
13116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
13117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
13118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
13119
13120
13121
13122
13123 subdirs="$subdirs "
13124
13125
13126 VERSION=${PACKAGE_VERSION}
13127
13128 DLLFLAGS=${DLLFLAGS}
13129
13130 GLDFLAGS=${GLDFLAGS}
13131
13132 ALLVIS=${ac_gecode_vis}
13133
13134
13135 VERSION_DASHES=`echo $PACKAGE_VERSION | sed -e s/\\\\./-/g`
13136
13137 PACKAGE_VERSION_NUMBER=`echo $PACKAGE_VERSION | awk -F. '{print $1 * 100000 + $2 * 100 + $3}'`
13138
13139
13140 cat >>confdefs.h <<_ACEOF
13141 #define GECODE_VERSION "${PACKAGE_VERSION}"
13142 _ACEOF
13143
13144
13145 cat >>confdefs.h <<_ACEOF
13146 #define GECODE_LIBRARY_VERSION "${VERSION_DASHES}"
13147 _ACEOF
13148
13149
13150 cat >>confdefs.h <<_ACEOF
13151 #define GECODE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER}
13152 _ACEOF
13153
13154
13155
13156 cat >>confdefs.h <<_ACEOF
13157 #define GECODE_FLATZINC_VERSION "${GECODE_FLATZINC_VERSION}"
13158 _ACEOF
13159
13160
13161 ac_gecode_library_architecture=-${VERSION_DASHES}${ac_gecode_library_architecture}
13162 if test "$ac_gecode_compiler_vendor" == "microsoft" \
13163 -o \( "$ac_gecode_compiler_vendor" == "intel" \
13164 -a "$host_os" == "windows" \) ; then
13165 DLL_ARCH=${ac_gecode_library_architecture}
13166
13167 else
13168 DLL_ARCH=""
13169
13170 fi
13171
13172 ac_config_files="$ac_config_files Makefile"
13173
13174 if test "${host_os}" = "windows"; then
13175 BATCHFILE=".bat"
13176
13177 ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in"
13178
13179 else
13180 BATCHFILE=""
13181
13182 ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in"
13183
13184 fi
13185 ac_config_files="$ac_config_files doxygen.conf:doxygen/doxygen.conf.in"
13186
13187 ac_config_files="$ac_config_files doxygen.hh:doxygen/doxygen.hh.in"
13188
13189 cat >confcache <<\_ACEOF
13190 # This file is a shell script that caches the results of configure
13191 # tests run on this system so they can be shared between configure
13192 # scripts and configure runs, see configure's option --config-cache.
13193 # It is not useful on other systems. If it contains results you don't
13194 # want to keep, you may remove or edit it.
13195 #
13196 # config.status only pays attention to the cache file if you give it
13197 # the --recheck option to rerun configure.
13198 #
13199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13201 # following values.
13202
13203 _ACEOF
13204
13205 # The following way of writing the cache mishandles newlines in values,
13206 # but we know of no workaround that is simple, portable, and efficient.
13207 # So, we kill variables containing newlines.
13208 # Ultrix sh set writes to stderr and can't be redirected directly,
13209 # and sets the high bit in the cache file unless we assign to the vars.
13210 (
13211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13212 eval ac_val=\$$ac_var
13213 case $ac_val in #(
13214 *${as_nl}*)
13215 case $ac_var in #(
13216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13218 esac
13219 case $ac_var in #(
13220 _ | IFS | as_nl) ;; #(
13221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13222 *) { eval $ac_var=; unset $ac_var;} ;;
13223 esac ;;
13224 esac
13225 done
13226
13227 (set) 2>&1 |
13228 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13229 *${as_nl}ac_space=\ *)
13230 # `set' does not quote correctly, so add quotes: double-quote
13231 # substitution turns \\\\ into \\, and sed turns \\ into \.
13232 sed -n \
13233 "s/'/'\\\\''/g;
13234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13235 ;; #(
13236 *)
13237 # `set' quotes correctly as required by POSIX, so do not add quotes.
13238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13239 ;;
13240 esac |
13241 sort
13242 ) |
13243 sed '
13244 /^ac_cv_env_/b end
13245 t clear
13246 :clear
13247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13248 t end
13249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13250 :end' >>confcache
13251 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13252 if test -w "$cache_file"; then
13253 if test "x$cache_file" != "x/dev/null"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13255 $as_echo "$as_me: updating cache $cache_file" >&6;}
13256 if test ! -f "$cache_file" || test -h "$cache_file"; then
13257 cat confcache >"$cache_file"
13258 else
13259 case $cache_file in #(
13260 */* | ?:*)
13261 mv -f confcache "$cache_file"$$ &&
13262 mv -f "$cache_file"$$ "$cache_file" ;; #(
13263 *)
13264 mv -f confcache "$cache_file" ;;
13265 esac
13266 fi
13267 fi
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13270 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13271 fi
13272 fi
13273 rm -f confcache
13274
13275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13276 # Let make expand exec_prefix.
13277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13278
13279 DEFS=-DHAVE_CONFIG_H
13280
13281 ac_libobjs=
13282 ac_ltlibobjs=
13283 U=
13284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13285 # 1. Remove the extension, and $U if already installed.
13286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13287 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13289 # will be set to the directory where LIBOBJS objects are built.
13290 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13291 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13292 done
13293 LIBOBJS=$ac_libobjs
13294
13295 LTLIBOBJS=$ac_ltlibobjs
13296
13297
13298
13299 : "${CONFIG_STATUS=./config.status}"
13300 ac_write_fail=0
13301 ac_clean_files_save=$ac_clean_files
13302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13304 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13305 as_write_fail=0
13306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13307 #! $SHELL
13308 # Generated by $as_me.
13309 # Run this file to recreate the current configuration.
13310 # Compiler output produced by configure, useful for debugging
13311 # configure, is in config.log if it exists.
13312
13313 debug=false
13314 ac_cs_recheck=false
13315 ac_cs_silent=false
13316
13317 SHELL=\${CONFIG_SHELL-$SHELL}
13318 export SHELL
13319 _ASEOF
13320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13321 ## -------------------- ##
13322 ## M4sh Initialization. ##
13323 ## -------------------- ##
13324
13325 # Be more Bourne compatible
13326 DUALCASE=1; export DUALCASE # for MKS sh
13327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13328 emulate sh
13329 NULLCMD=:
13330 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13331 # is contrary to our usage. Disable this feature.
13332 alias -g '${1+"$@"}'='"$@"'
13333 setopt NO_GLOB_SUBST
13334 else
13335 case `(set -o) 2>/dev/null` in #(
13336 *posix*) :
13337 set -o posix ;; #(
13338 *) :
13339 ;;
13340 esac
13341 fi
13342
13343
13344 as_nl='
13345 '
13346 export as_nl
13347 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13348 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13351 # Prefer a ksh shell builtin over an external printf program on Solaris,
13352 # but without wasting forks for bash or zsh.
13353 if test -z "$BASH_VERSION$ZSH_VERSION" \
13354 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13355 as_echo='print -r --'
13356 as_echo_n='print -rn --'
13357 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13358 as_echo='printf %s\n'
13359 as_echo_n='printf %s'
13360 else
13361 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13362 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13363 as_echo_n='/usr/ucb/echo -n'
13364 else
13365 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13366 as_echo_n_body='eval
13367 arg=$1;
13368 case $arg in #(
13369 *"$as_nl"*)
13370 expr "X$arg" : "X\\(.*\\)$as_nl";
13371 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13372 esac;
13373 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13374 '
13375 export as_echo_n_body
13376 as_echo_n='sh -c $as_echo_n_body as_echo'
13377 fi
13378 export as_echo_body
13379 as_echo='sh -c $as_echo_body as_echo'
13380 fi
13381
13382 # The user is always right.
13383 if test "${PATH_SEPARATOR+set}" != set; then
13384 PATH_SEPARATOR=:
13385 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13386 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13387 PATH_SEPARATOR=';'
13388 }
13389 fi
13390
13391
13392 # IFS
13393 # We need space, tab and new line, in precisely that order. Quoting is
13394 # there to prevent editors from complaining about space-tab.
13395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13396 # splitting by setting IFS to empty value.)
13397 IFS=" "" $as_nl"
13398
13399 # Find who we are. Look in the path if we contain no directory separator.
13400 as_myself=
13401 case $0 in #((
13402 *[\\/]* ) as_myself=$0 ;;
13403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13409 done
13410 IFS=$as_save_IFS
13411
13412 ;;
13413 esac
13414 # We did not find ourselves, most probably we were run as `sh COMMAND'
13415 # in which case we are not to be found in the path.
13416 if test "x$as_myself" = x; then
13417 as_myself=$0
13418 fi
13419 if test ! -f "$as_myself"; then
13420 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13421 exit 1
13422 fi
13423
13424 # Unset variables that we do not need and which cause bugs (e.g. in
13425 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13426 # suppresses any "Segmentation fault" message there. '((' could
13427 # trigger a bug in pdksh 5.2.14.
13428 for as_var in BASH_ENV ENV MAIL MAILPATH
13429 do eval test x\${$as_var+set} = xset \
13430 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13431 done
13432 PS1='$ '
13433 PS2='> '
13434 PS4='+ '
13435
13436 # NLS nuisances.
13437 LC_ALL=C
13438 export LC_ALL
13439 LANGUAGE=C
13440 export LANGUAGE
13441
13442 # CDPATH.
13443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13444
13445
13446 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13447 # ----------------------------------------
13448 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13449 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13450 # script with STATUS, using 1 if that was 0.
13451 as_fn_error ()
13452 {
13453 as_status=$1; test $as_status -eq 0 && as_status=1
13454 if test "$4"; then
13455 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13456 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13457 fi
13458 $as_echo "$as_me: error: $2" >&2
13459 as_fn_exit $as_status
13460 } # as_fn_error
13461
13462
13463 # as_fn_set_status STATUS
13464 # -----------------------
13465 # Set $? to STATUS, without forking.
13466 as_fn_set_status ()
13467 {
13468 return $1
13469 } # as_fn_set_status
13470
13471 # as_fn_exit STATUS
13472 # -----------------
13473 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13474 as_fn_exit ()
13475 {
13476 set +e
13477 as_fn_set_status $1
13478 exit $1
13479 } # as_fn_exit
13480
13481 # as_fn_unset VAR
13482 # ---------------
13483 # Portably unset VAR.
13484 as_fn_unset ()
13485 {
13486 { eval $1=; unset $1;}
13487 }
13488 as_unset=as_fn_unset
13489 # as_fn_append VAR VALUE
13490 # ----------------------
13491 # Append the text in VALUE to the end of the definition contained in VAR. Take
13492 # advantage of any shell optimizations that allow amortized linear growth over
13493 # repeated appends, instead of the typical quadratic growth present in naive
13494 # implementations.
13495 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13496 eval 'as_fn_append ()
13497 {
13498 eval $1+=\$2
13499 }'
13500 else
13501 as_fn_append ()
13502 {
13503 eval $1=\$$1\$2
13504 }
13505 fi # as_fn_append
13506
13507 # as_fn_arith ARG...
13508 # ------------------
13509 # Perform arithmetic evaluation on the ARGs, and store the result in the
13510 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13511 # must be portable across $(()) and expr.
13512 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13513 eval 'as_fn_arith ()
13514 {
13515 as_val=$(( $* ))
13516 }'
13517 else
13518 as_fn_arith ()
13519 {
13520 as_val=`expr "$@" || test $? -eq 1`
13521 }
13522 fi # as_fn_arith
13523
13524
13525 if expr a : '\(a\)' >/dev/null 2>&1 &&
13526 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13527 as_expr=expr
13528 else
13529 as_expr=false
13530 fi
13531
13532 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13533 as_basename=basename
13534 else
13535 as_basename=false
13536 fi
13537
13538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13539 as_dirname=dirname
13540 else
13541 as_dirname=false
13542 fi
13543
13544 as_me=`$as_basename -- "$0" ||
13545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13546 X"$0" : 'X\(//\)$' \| \
13547 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13548 $as_echo X/"$0" |
13549 sed '/^.*\/\([^/][^/]*\)\/*$/{
13550 s//\1/
13551 q
13552 }
13553 /^X\/\(\/\/\)$/{
13554 s//\1/
13555 q
13556 }
13557 /^X\/\(\/\).*/{
13558 s//\1/
13559 q
13560 }
13561 s/.*/./; q'`
13562
13563 # Avoid depending upon Character Ranges.
13564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13567 as_cr_digits='0123456789'
13568 as_cr_alnum=$as_cr_Letters$as_cr_digits
13569
13570 ECHO_C= ECHO_N= ECHO_T=
13571 case `echo -n x` in #(((((
13572 -n*)
13573 case `echo 'xy\c'` in
13574 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13575 xy) ECHO_C='\c';;
13576 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13577 ECHO_T=' ';;
13578 esac;;
13579 *)
13580 ECHO_N='-n';;
13581 esac
13582
13583 rm -f conf$$ conf$$.exe conf$$.file
13584 if test -d conf$$.dir; then
13585 rm -f conf$$.dir/conf$$.file
13586 else
13587 rm -f conf$$.dir
13588 mkdir conf$$.dir 2>/dev/null
13589 fi
13590 if (echo >conf$$.file) 2>/dev/null; then
13591 if ln -s conf$$.file conf$$ 2>/dev/null; then
13592 as_ln_s='ln -s'
13593 # ... but there are two gotchas:
13594 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13595 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13596 # In both cases, we have to default to `cp -pR'.
13597 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13598 as_ln_s='cp -pR'
13599 elif ln conf$$.file conf$$ 2>/dev/null; then
13600 as_ln_s=ln
13601 else
13602 as_ln_s='cp -pR'
13603 fi
13604 else
13605 as_ln_s='cp -pR'
13606 fi
13607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13608 rmdir conf$$.dir 2>/dev/null
13609
13610
13611 # as_fn_mkdir_p
13612 # -------------
13613 # Create "$as_dir" as a directory, including parents if necessary.
13614 as_fn_mkdir_p ()
13615 {
13616
13617 case $as_dir in #(
13618 -*) as_dir=./$as_dir;;
13619 esac
13620 test -d "$as_dir" || eval $as_mkdir_p || {
13621 as_dirs=
13622 while :; do
13623 case $as_dir in #(
13624 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13625 *) as_qdir=$as_dir;;
13626 esac
13627 as_dirs="'$as_qdir' $as_dirs"
13628 as_dir=`$as_dirname -- "$as_dir" ||
13629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13630 X"$as_dir" : 'X\(//\)[^/]' \| \
13631 X"$as_dir" : 'X\(//\)$' \| \
13632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13633 $as_echo X"$as_dir" |
13634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13635 s//\1/
13636 q
13637 }
13638 /^X\(\/\/\)[^/].*/{
13639 s//\1/
13640 q
13641 }
13642 /^X\(\/\/\)$/{
13643 s//\1/
13644 q
13645 }
13646 /^X\(\/\).*/{
13647 s//\1/
13648 q
13649 }
13650 s/.*/./; q'`
13651 test -d "$as_dir" && break
13652 done
13653 test -z "$as_dirs" || eval "mkdir $as_dirs"
13654 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13655
13656
13657 } # as_fn_mkdir_p
13658 if mkdir -p . 2>/dev/null; then
13659 as_mkdir_p='mkdir -p "$as_dir"'
13660 else
13661 test -d ./-p && rmdir ./-p
13662 as_mkdir_p=false
13663 fi
13664
13665
13666 # as_fn_executable_p FILE
13667 # -----------------------
13668 # Test if FILE is an executable regular file.
13669 as_fn_executable_p ()
13670 {
13671 test -f "$1" && test -x "$1"
13672 } # as_fn_executable_p
13673 as_test_x='test -x'
13674 as_executable_p=as_fn_executable_p
13675
13676 # Sed expression to map a string onto a valid CPP name.
13677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13678
13679 # Sed expression to map a string onto a valid variable name.
13680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13681
13682
13683 exec 6>&1
13684 ## ----------------------------------- ##
13685 ## Main body of $CONFIG_STATUS script. ##
13686 ## ----------------------------------- ##
13687 _ASEOF
13688 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13689
13690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13691 # Save the log message, to keep $0 and so on meaningful, and to
13692 # report actual input values of CONFIG_FILES etc. instead of their
13693 # values after options handling.
13694 ac_log="
13695 This file was extended by GECODE $as_me 6.2.0, which was
13696 generated by GNU Autoconf 2.69. Invocation command line was
13697
13698 CONFIG_FILES = $CONFIG_FILES
13699 CONFIG_HEADERS = $CONFIG_HEADERS
13700 CONFIG_LINKS = $CONFIG_LINKS
13701 CONFIG_COMMANDS = $CONFIG_COMMANDS
13702 $ $0 $@
13703
13704 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13705 "
13706
13707 _ACEOF
13708
13709 case $ac_config_files in *"
13710 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13711 esac
13712
13713 case $ac_config_headers in *"
13714 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13715 esac
13716
13717
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 # Files that config.status was made for.
13720 config_files="$ac_config_files"
13721 config_headers="$ac_config_headers"
13722
13723 _ACEOF
13724
13725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13726 ac_cs_usage="\
13727 \`$as_me' instantiates files and other configuration actions
13728 from templates according to the current configuration. Unless the files
13729 and actions are specified as TAGs, all are instantiated by default.
13730
13731 Usage: $0 [OPTION]... [TAG]...
13732
13733 -h, --help print this help, then exit
13734 -V, --version print version number and configuration settings, then exit
13735 --config print configuration, then exit
13736 -q, --quiet, --silent
13737 do not print progress messages
13738 -d, --debug don't remove temporary files
13739 --recheck update $as_me by reconfiguring in the same conditions
13740 --file=FILE[:TEMPLATE]
13741 instantiate the configuration file FILE
13742 --header=FILE[:TEMPLATE]
13743 instantiate the configuration header FILE
13744
13745 Configuration files:
13746 $config_files
13747
13748 Configuration headers:
13749 $config_headers
13750
13751 Report bugs to <[email protected]>."
13752
13753 _ACEOF
13754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13755 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13756 ac_cs_version="\\
13757 GECODE config.status 6.2.0
13758 configured by $0, generated by GNU Autoconf 2.69,
13759 with options \\"\$ac_cs_config\\"
13760
13761 Copyright (C) 2012 Free Software Foundation, Inc.
13762 This config.status script is free software; the Free Software Foundation
13763 gives unlimited permission to copy, distribute and modify it."
13764
13765 ac_pwd='$ac_pwd'
13766 srcdir='$srcdir'
13767 test -n "\$AWK" || AWK=awk
13768 _ACEOF
13769
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771 # The default lists apply if the user does not specify any file.
13772 ac_need_defaults=:
13773 while test $# != 0
13774 do
13775 case $1 in
13776 --*=?*)
13777 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13778 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13779 ac_shift=:
13780 ;;
13781 --*=)
13782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13783 ac_optarg=
13784 ac_shift=:
13785 ;;
13786 *)
13787 ac_option=$1
13788 ac_optarg=$2
13789 ac_shift=shift
13790 ;;
13791 esac
13792
13793 case $ac_option in
13794 # Handling of the options.
13795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13796 ac_cs_recheck=: ;;
13797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13798 $as_echo "$ac_cs_version"; exit ;;
13799 --config | --confi | --conf | --con | --co | --c )
13800 $as_echo "$ac_cs_config"; exit ;;
13801 --debug | --debu | --deb | --de | --d | -d )
13802 debug=: ;;
13803 --file | --fil | --fi | --f )
13804 $ac_shift
13805 case $ac_optarg in
13806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13807 '') as_fn_error $? "missing file argument" ;;
13808 esac
13809 as_fn_append CONFIG_FILES " '$ac_optarg'"
13810 ac_need_defaults=false;;
13811 --header | --heade | --head | --hea )
13812 $ac_shift
13813 case $ac_optarg in
13814 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13815 esac
13816 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13817 ac_need_defaults=false;;
13818 --he | --h)
13819 # Conflict between --help and --header
13820 as_fn_error $? "ambiguous option: \`$1'
13821 Try \`$0 --help' for more information.";;
13822 --help | --hel | -h )
13823 $as_echo "$ac_cs_usage"; exit ;;
13824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13826 ac_cs_silent=: ;;
13827
13828 # This is an error.
13829 -*) as_fn_error $? "unrecognized option: \`$1'
13830 Try \`$0 --help' for more information." ;;
13831
13832 *) as_fn_append ac_config_targets " $1"
13833 ac_need_defaults=false ;;
13834
13835 esac
13836 shift
13837 done
13838
13839 ac_configure_extra_args=
13840
13841 if $ac_cs_silent; then
13842 exec 6>/dev/null
13843 ac_configure_extra_args="$ac_configure_extra_args --silent"
13844 fi
13845
13846 _ACEOF
13847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13848 if \$ac_cs_recheck; then
13849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13850 shift
13851 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13852 CONFIG_SHELL='$SHELL'
13853 export CONFIG_SHELL
13854 exec "\$@"
13855 fi
13856
13857 _ACEOF
13858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13859 exec 5>>config.log
13860 {
13861 echo
13862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13863 ## Running $as_me. ##
13864 _ASBOX
13865 $as_echo "$ac_log"
13866 } >&5
13867
13868 _ACEOF
13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870 _ACEOF
13871
13872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13873
13874 # Handling of arguments.
13875 for ac_config_target in $ac_config_targets
13876 do
13877 case $ac_config_target in
13878 "gecode/support/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS gecode/support/config.hpp" ;;
13879 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13880 "tools/flatzinc/mzn-gecode.bat") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in" ;;
13881 "tools/flatzinc/mzn-gecode") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in" ;;
13882 "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf:doxygen/doxygen.conf.in" ;;
13883 "doxygen.hh") CONFIG_FILES="$CONFIG_FILES doxygen.hh:doxygen/doxygen.hh.in" ;;
13884
13885 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13886 esac
13887 done
13888
13889
13890 # If the user did not use the arguments to specify the items to instantiate,
13891 # then the envvar interface is used. Set only those that are not.
13892 # We use the long form for the default assignment because of an extremely
13893 # bizarre bug on SunOS 4.1.3.
13894 if $ac_need_defaults; then
13895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13897 fi
13898
13899 # Have a temporary directory for convenience. Make it in the build tree
13900 # simply because there is no reason against having it here, and in addition,
13901 # creating and moving files from /tmp can sometimes cause problems.
13902 # Hook for its removal unless debugging.
13903 # Note that there is a small window in which the directory will not be cleaned:
13904 # after its creation but before its name has been assigned to `$tmp'.
13905 $debug ||
13906 {
13907 tmp= ac_tmp=
13908 trap 'exit_status=$?
13909 : "${ac_tmp:=$tmp}"
13910 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13911 ' 0
13912 trap 'as_fn_exit 1' 1 2 13 15
13913 }
13914 # Create a (secure) tmp directory for tmp files.
13915
13916 {
13917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13918 test -d "$tmp"
13919 } ||
13920 {
13921 tmp=./conf$$-$RANDOM
13922 (umask 077 && mkdir "$tmp")
13923 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13924 ac_tmp=$tmp
13925
13926 # Set up the scripts for CONFIG_FILES section.
13927 # No need to generate them if there are no CONFIG_FILES.
13928 # This happens for instance with `./config.status config.h'.
13929 if test -n "$CONFIG_FILES"; then
13930
13931
13932 ac_cr=`echo X | tr X '\015'`
13933 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13934 # But we know of no other shell where ac_cr would be empty at this
13935 # point, so we can use a bashism as a fallback.
13936 if test "x$ac_cr" = x; then
13937 eval ac_cr=\$\'\\r\'
13938 fi
13939 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13940 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13941 ac_cs_awk_cr='\\r'
13942 else
13943 ac_cs_awk_cr=$ac_cr
13944 fi
13945
13946 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13947 _ACEOF
13948
13949
13950 {
13951 echo "cat >conf$$subs.awk <<_ACEOF" &&
13952 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13953 echo "_ACEOF"
13954 } >conf$$subs.sh ||
13955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13956 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13957 ac_delim='%!_!# '
13958 for ac_last_try in false false false false false :; do
13959 . ./conf$$subs.sh ||
13960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13961
13962 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13963 if test $ac_delim_n = $ac_delim_num; then
13964 break
13965 elif $ac_last_try; then
13966 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13967 else
13968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13969 fi
13970 done
13971 rm -f conf$$subs.sh
13972
13973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13974 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13975 _ACEOF
13976 sed -n '
13977 h
13978 s/^/S["/; s/!.*/"]=/
13979 p
13980 g
13981 s/^[^!]*!//
13982 :repl
13983 t repl
13984 s/'"$ac_delim"'$//
13985 t delim
13986 :nl
13987 h
13988 s/\(.\{148\}\)..*/\1/
13989 t more1
13990 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13991 p
13992 n
13993 b repl
13994 :more1
13995 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13996 p
13997 g
13998 s/.\{148\}//
13999 t nl
14000 :delim
14001 h
14002 s/\(.\{148\}\)..*/\1/
14003 t more2
14004 s/["\\]/\\&/g; s/^/"/; s/$/"/
14005 p
14006 b
14007 :more2
14008 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14009 p
14010 g
14011 s/.\{148\}//
14012 t delim
14013 ' <conf$$subs.awk | sed '
14014 /^[^""]/{
14015 N
14016 s/\n//
14017 }
14018 ' >>$CONFIG_STATUS || ac_write_fail=1
14019 rm -f conf$$subs.awk
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 _ACAWK
14022 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14023 for (key in S) S_is_set[key] = 1
14024 FS = ""
14025
14026 }
14027 {
14028 line = $ 0
14029 nfields = split(line, field, "@")
14030 substed = 0
14031 len = length(field[1])
14032 for (i = 2; i < nfields; i++) {
14033 key = field[i]
14034 keylen = length(key)
14035 if (S_is_set[key]) {
14036 value = S[key]
14037 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14038 len += length(value) + length(field[++i])
14039 substed = 1
14040 } else
14041 len += 1 + keylen
14042 }
14043
14044 print line
14045 }
14046
14047 _ACAWK
14048 _ACEOF
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14051 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14052 else
14053 cat
14054 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14055 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14056 _ACEOF
14057
14058 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14059 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14060 # trailing colons and then remove the whole line if VPATH becomes empty
14061 # (actually we leave an empty line to preserve line numbers).
14062 if test "x$srcdir" = x.; then
14063 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14064 h
14065 s///
14066 s/^/:/
14067 s/[ ]*$/:/
14068 s/:\$(srcdir):/:/g
14069 s/:\${srcdir}:/:/g
14070 s/:@srcdir@:/:/g
14071 s/^:*//
14072 s/:*$//
14073 x
14074 s/\(=[ ]*\).*/\1/
14075 G
14076 s/\n//
14077 s/^[^=]*=[ ]*$//
14078 }'
14079 fi
14080
14081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14082 fi # test -n "$CONFIG_FILES"
14083
14084 # Set up the scripts for CONFIG_HEADERS section.
14085 # No need to generate them if there are no CONFIG_HEADERS.
14086 # This happens for instance with `./config.status Makefile'.
14087 if test -n "$CONFIG_HEADERS"; then
14088 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14089 BEGIN {
14090 _ACEOF
14091
14092 # Transform confdefs.h into an awk script `defines.awk', embedded as
14093 # here-document in config.status, that substitutes the proper values into
14094 # config.h.in to produce config.h.
14095
14096 # Create a delimiter string that does not exist in confdefs.h, to ease
14097 # handling of long lines.
14098 ac_delim='%!_!# '
14099 for ac_last_try in false false :; do
14100 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14101 if test -z "$ac_tt"; then
14102 break
14103 elif $ac_last_try; then
14104 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14105 else
14106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14107 fi
14108 done
14109
14110 # For the awk script, D is an array of macro values keyed by name,
14111 # likewise P contains macro parameters if any. Preserve backslash
14112 # newline sequences.
14113
14114 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14115 sed -n '
14116 s/.\{148\}/&'"$ac_delim"'/g
14117 t rset
14118 :rset
14119 s/^[ ]*#[ ]*define[ ][ ]*/ /
14120 t def
14121 d
14122 :def
14123 s/\\$//
14124 t bsnl
14125 s/["\\]/\\&/g
14126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14127 D["\1"]=" \3"/p
14128 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14129 d
14130 :bsnl
14131 s/["\\]/\\&/g
14132 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14133 D["\1"]=" \3\\\\\\n"\\/p
14134 t cont
14135 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14136 t cont
14137 d
14138 :cont
14139 n
14140 s/.\{148\}/&'"$ac_delim"'/g
14141 t clear
14142 :clear
14143 s/\\$//
14144 t bsnlc
14145 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14146 d
14147 :bsnlc
14148 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14149 b cont
14150 ' <confdefs.h | sed '
14151 s/'"$ac_delim"'/"\\\
14152 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14153
14154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14155 for (key in D) D_is_set[key] = 1
14156 FS = ""
14157 }
14158 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14159 line = \$ 0
14160 split(line, arg, " ")
14161 if (arg[1] == "#") {
14162 defundef = arg[2]
14163 mac1 = arg[3]
14164 } else {
14165 defundef = substr(arg[1], 2)
14166 mac1 = arg[2]
14167 }
14168 split(mac1, mac2, "(") #)
14169 macro = mac2[1]
14170 prefix = substr(line, 1, index(line, defundef) - 1)
14171 if (D_is_set[macro]) {
14172 # Preserve the white space surrounding the "#".
14173 print prefix "define", macro P[macro] D[macro]
14174 next
14175 } else {
14176 # Replace #undef with comments. This is necessary, for example,
14177 # in the case of _POSIX_SOURCE, which is predefined and required
14178 # on some systems where configure will not decide to define it.
14179 if (defundef == "undef") {
14180 print "/*", prefix defundef, macro, "*/"
14181 next
14182 }
14183 }
14184 }
14185 { print }
14186 _ACAWK
14187 _ACEOF
14188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14189 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14190 fi # test -n "$CONFIG_HEADERS"
14191
14192
14193 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14194 shift
14195 for ac_tag
14196 do
14197 case $ac_tag in
14198 :[FHLC]) ac_mode=$ac_tag; continue;;
14199 esac
14200 case $ac_mode$ac_tag in
14201 :[FHL]*:*);;
14202 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14203 :[FH]-) ac_tag=-:-;;
14204 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14205 esac
14206 ac_save_IFS=$IFS
14207 IFS=:
14208 set x $ac_tag
14209 IFS=$ac_save_IFS
14210 shift
14211 ac_file=$1
14212 shift
14213
14214 case $ac_mode in
14215 :L) ac_source=$1;;
14216 :[FH])
14217 ac_file_inputs=
14218 for ac_f
14219 do
14220 case $ac_f in
14221 -) ac_f="$ac_tmp/stdin";;
14222 *) # Look for the file first in the build tree, then in the source tree
14223 # (if the path is not absolute). The absolute path cannot be DOS-style,
14224 # because $ac_f cannot contain `:'.
14225 test -f "$ac_f" ||
14226 case $ac_f in
14227 [\\/$]*) false;;
14228 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14229 esac ||
14230 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14231 esac
14232 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14233 as_fn_append ac_file_inputs " '$ac_f'"
14234 done
14235
14236 # Let's still pretend it is `configure' which instantiates (i.e., don't
14237 # use $as_me), people would be surprised to read:
14238 # /* config.h. Generated by config.status. */
14239 configure_input='Generated from '`
14240 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14241 `' by configure.'
14242 if test x"$ac_file" != x-; then
14243 configure_input="$ac_file. $configure_input"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14245 $as_echo "$as_me: creating $ac_file" >&6;}
14246 fi
14247 # Neutralize special characters interpreted by sed in replacement strings.
14248 case $configure_input in #(
14249 *\&* | *\|* | *\\* )
14250 ac_sed_conf_input=`$as_echo "$configure_input" |
14251 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14252 *) ac_sed_conf_input=$configure_input;;
14253 esac
14254
14255 case $ac_tag in
14256 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14258 esac
14259 ;;
14260 esac
14261
14262 ac_dir=`$as_dirname -- "$ac_file" ||
14263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14264 X"$ac_file" : 'X\(//\)[^/]' \| \
14265 X"$ac_file" : 'X\(//\)$' \| \
14266 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14267 $as_echo X"$ac_file" |
14268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14269 s//\1/
14270 q
14271 }
14272 /^X\(\/\/\)[^/].*/{
14273 s//\1/
14274 q
14275 }
14276 /^X\(\/\/\)$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\).*/{
14281 s//\1/
14282 q
14283 }
14284 s/.*/./; q'`
14285 as_dir="$ac_dir"; as_fn_mkdir_p
14286 ac_builddir=.
14287
14288 case "$ac_dir" in
14289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14290 *)
14291 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14292 # A ".." for each directory in $ac_dir_suffix.
14293 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14294 case $ac_top_builddir_sub in
14295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14297 esac ;;
14298 esac
14299 ac_abs_top_builddir=$ac_pwd
14300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14301 # for backward compatibility:
14302 ac_top_builddir=$ac_top_build_prefix
14303
14304 case $srcdir in
14305 .) # We are building in place.
14306 ac_srcdir=.
14307 ac_top_srcdir=$ac_top_builddir_sub
14308 ac_abs_top_srcdir=$ac_pwd ;;
14309 [\\/]* | ?:[\\/]* ) # Absolute name.
14310 ac_srcdir=$srcdir$ac_dir_suffix;
14311 ac_top_srcdir=$srcdir
14312 ac_abs_top_srcdir=$srcdir ;;
14313 *) # Relative name.
14314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14315 ac_top_srcdir=$ac_top_build_prefix$srcdir
14316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14317 esac
14318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14319
14320
14321 case $ac_mode in
14322 :F)
14323 #
14324 # CONFIG_FILE
14325 #
14326
14327 _ACEOF
14328
14329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14330 # If the template does not know about datarootdir, expand it.
14331 # FIXME: This hack should be removed a few years after 2.60.
14332 ac_datarootdir_hack=; ac_datarootdir_seen=
14333 ac_sed_dataroot='
14334 /datarootdir/ {
14335 p
14336 q
14337 }
14338 /@datadir@/p
14339 /@docdir@/p
14340 /@infodir@/p
14341 /@localedir@/p
14342 /@mandir@/p'
14343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14344 *datarootdir*) ac_datarootdir_seen=yes;;
14345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14348 _ACEOF
14349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 ac_datarootdir_hack='
14351 s&@datadir@&$datadir&g
14352 s&@docdir@&$docdir&g
14353 s&@infodir@&$infodir&g
14354 s&@localedir@&$localedir&g
14355 s&@mandir@&$mandir&g
14356 s&\\\${datarootdir}&$datarootdir&g' ;;
14357 esac
14358 _ACEOF
14359
14360 # Neutralize VPATH when `$srcdir' = `.'.
14361 # Shell code in configure.ac might set extrasub.
14362 # FIXME: do we really want to maintain this feature?
14363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14364 ac_sed_extra="$ac_vpsub
14365 $extrasub
14366 _ACEOF
14367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14368 :t
14369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14370 s|@configure_input@|$ac_sed_conf_input|;t t
14371 s&@top_builddir@&$ac_top_builddir_sub&;t t
14372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14373 s&@srcdir@&$ac_srcdir&;t t
14374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14375 s&@top_srcdir@&$ac_top_srcdir&;t t
14376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14377 s&@builddir@&$ac_builddir&;t t
14378 s&@abs_builddir@&$ac_abs_builddir&;t t
14379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14380 $ac_datarootdir_hack
14381 "
14382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14384
14385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14390 which seems to be undefined. Please make sure it is defined" >&5
14391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14392 which seems to be undefined. Please make sure it is defined" >&2;}
14393
14394 rm -f "$ac_tmp/stdin"
14395 case $ac_file in
14396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14398 esac \
14399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14400 ;;
14401 :H)
14402 #
14403 # CONFIG_HEADER
14404 #
14405 if test x"$ac_file" != x-; then
14406 {
14407 $as_echo "/* $configure_input */" \
14408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14409 } >"$ac_tmp/config.h" \
14410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14414 else
14415 rm -f "$ac_file"
14416 mv "$ac_tmp/config.h" "$ac_file" \
14417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14418 fi
14419 else
14420 $as_echo "/* $configure_input */" \
14421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14422 || as_fn_error $? "could not create -" "$LINENO" 5
14423 fi
14424 ;;
14425
14426
14427 esac
14428
14429
14430 case $ac_file$ac_mode in
14431 "tools/flatzinc/mzn-gecode.bat":F) chmod +x tools/flatzinc/mzn-gecode.bat ;;
14432 "tools/flatzinc/mzn-gecode":F) chmod +x tools/flatzinc/mzn-gecode ;;
14433
14434 esac
14435 done # for ac_tag
14436
14437
14438 as_fn_exit 0
14439 _ACEOF
14440 ac_clean_files=$ac_clean_files_save
14441
14442 test $ac_write_fail = 0 ||
14443 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14444
14445
14446 # configure is writing to config.log, and then calls config.status.
14447 # config.status does its own redirection, appending to config.log.
14448 # Unfortunately, on DOS this fails, as config.log is still kept open
14449 # by configure, so config.status won't be able to write to it; its
14450 # output is simply discarded. So we exec the FD to /dev/null,
14451 # effectively closing config.log, so it can be properly (re)opened and
14452 # appended to by config.status. When coming back to configure, we
14453 # need to make the FD available again.
14454 if test "$no_create" != yes; then
14455 ac_cs_success=:
14456 ac_config_status_args=
14457 test "$silent" = yes &&
14458 ac_config_status_args="$ac_config_status_args --quiet"
14459 exec 5>/dev/null
14460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14461 exec 5>>config.log
14462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14463 # would make configure fail if this is the last instruction.
14464 $ac_cs_success || as_fn_exit 1
14465 fi
14466
14467 #
14468 # CONFIG_SUBDIRS section.
14469 #
14470 if test "$no_recursion" != yes; then
14471
14472 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14473 # so they do not pile up.
14474 ac_sub_configure_args=
14475 ac_prev=
14476 eval "set x $ac_configure_args"
14477 shift
14478 for ac_arg
14479 do
14480 if test -n "$ac_prev"; then
14481 ac_prev=
14482 continue
14483 fi
14484 case $ac_arg in
14485 -cache-file | --cache-file | --cache-fil | --cache-fi \
14486 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14487 ac_prev=cache_file ;;
14488 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14489 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14490 | --c=*)
14491 ;;
14492 --config-cache | -C)
14493 ;;
14494 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14495 ac_prev=srcdir ;;
14496 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14497 ;;
14498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14499 ac_prev=prefix ;;
14500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14501 ;;
14502 --disable-option-checking)
14503 ;;
14504 *)
14505 case $ac_arg in
14506 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14507 esac
14508 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14509 esac
14510 done
14511
14512 # Always prepend --prefix to ensure using the same prefix
14513 # in subdir configurations.
14514 ac_arg="--prefix=$prefix"
14515 case $ac_arg in
14516 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14517 esac
14518 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14519
14520 # Pass --silent
14521 if test "$silent" = yes; then
14522 ac_sub_configure_args="--silent $ac_sub_configure_args"
14523 fi
14524
14525 # Always prepend --disable-option-checking to silence warnings, since
14526 # different subdirs can have different --enable and --with options.
14527 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14528
14529 ac_popdir=`pwd`
14530 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14531
14532 # Do not complain, so a configure script can configure whichever
14533 # parts of a large source tree are present.
14534 test -d "$srcdir/$ac_dir" || continue
14535
14536 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14538 $as_echo "$ac_msg" >&6
14539 as_dir="$ac_dir"; as_fn_mkdir_p
14540 ac_builddir=.
14541
14542 case "$ac_dir" in
14543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14544 *)
14545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14546 # A ".." for each directory in $ac_dir_suffix.
14547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14548 case $ac_top_builddir_sub in
14549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14551 esac ;;
14552 esac
14553 ac_abs_top_builddir=$ac_pwd
14554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14555 # for backward compatibility:
14556 ac_top_builddir=$ac_top_build_prefix
14557
14558 case $srcdir in
14559 .) # We are building in place.
14560 ac_srcdir=.
14561 ac_top_srcdir=$ac_top_builddir_sub
14562 ac_abs_top_srcdir=$ac_pwd ;;
14563 [\\/]* | ?:[\\/]* ) # Absolute name.
14564 ac_srcdir=$srcdir$ac_dir_suffix;
14565 ac_top_srcdir=$srcdir
14566 ac_abs_top_srcdir=$srcdir ;;
14567 *) # Relative name.
14568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14569 ac_top_srcdir=$ac_top_build_prefix$srcdir
14570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14571 esac
14572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14573
14574
14575 cd "$ac_dir"
14576
14577 # Check for guested configure; otherwise get Cygnus style configure.
14578 if test -f "$ac_srcdir/configure.gnu"; then
14579 ac_sub_configure=$ac_srcdir/configure.gnu
14580 elif test -f "$ac_srcdir/configure"; then
14581 ac_sub_configure=$ac_srcdir/configure
14582 elif test -f "$ac_srcdir/configure.in"; then
14583 # This should be Cygnus configure.
14584 ac_sub_configure=$ac_aux_dir/configure
14585 else
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14588 ac_sub_configure=
14589 fi
14590
14591 # The recursion is here.
14592 if test -n "$ac_sub_configure"; then
14593 # Make the cache file name correct relative to the subdirectory.
14594 case $cache_file in
14595 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14596 *) # Relative name.
14597 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14598 esac
14599
14600 { $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
14601 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14602 # The eval makes quoting arguments work.
14603 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14604 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14605 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14606 fi
14607
14608 cd "$ac_popdir"
14609 done
14610 fi
14611 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14613 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14614 fi
14615