Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for nloptr 2.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; 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 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
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
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME='nloptr'
602 PACKAGE_TARNAME='nloptr'
603 PACKAGE_VERSION='2.0.0'
604 PACKAGE_STRING='nloptr 2.0.0'
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 ac_subst_vars='LTLIBOBJS
609 LIBOBJS
610 NLOPT_LIBS
611 NLOPT_CPPFLAGS
612 CMAKE_BIN
613 have_pkg_config
614 CXXCPP
615 OBJEXT
616 EXEEXT
617 ac_ct_CXX
618 CPPFLAGS
619 LDFLAGS
620 CXXFLAGS
621 CXX
622 target_alias
623 host_alias
624 build_alias
625 LIBS
626 ECHO_T
627 ECHO_N
628 ECHO_C
629 DEFS
630 mandir
631 localedir
632 libdir
633 psdir
634 pdfdir
635 dvidir
636 htmldir
637 infodir
638 docdir
639 oldincludedir
640 includedir
641 runstatedir
642 localstatedir
643 sharedstatedir
644 sysconfdir
645 datadir
646 datarootdir
647 libexecdir
648 sbindir
649 bindir
650 program_transform_name
651 prefix
652 exec_prefix
653 PACKAGE_URL
654 PACKAGE_BUGREPORT
655 PACKAGE_STRING
656 PACKAGE_VERSION
657 PACKAGE_TARNAME
658 PACKAGE_NAME
659 PATH_SEPARATOR
660 SHELL'
661 ac_subst_files=''
662 ac_user_opts='
663 enable_option_checking
664 '
665 ac_precious_vars='build_alias
666 host_alias
667 target_alias
668 CXX
669 CXXFLAGS
670 LDFLAGS
671 LIBS
672 CPPFLAGS
673 CCC
674 CXXCPP'
675
676
677 # Initialize some variables set by options.
678 ac_init_help=
679 ac_init_version=false
680 ac_unrecognized_opts=
681 ac_unrecognized_sep=
682 # The variables have the same names as the options, with
683 # dashes changed to underlines.
684 cache_file=/dev/null
685 exec_prefix=NONE
686 no_create=
687 no_recursion=
688 prefix=NONE
689 program_prefix=NONE
690 program_suffix=NONE
691 program_transform_name=s,x,x,
692 silent=
693 site=
694 srcdir=
695 verbose=
696 x_includes=NONE
697 x_libraries=NONE
698
699 # Installation directory options.
700 # These are left unexpanded so users can "make install exec_prefix=/foo"
701 # and all the variables that are supposed to be based on exec_prefix
702 # by default will actually change.
703 # Use braces instead of parens because sh, perl, etc. also accept them.
704 # (The list follows the same order as the GNU Coding Standards.)
705 bindir='${exec_prefix}/bin'
706 sbindir='${exec_prefix}/sbin'
707 libexecdir='${exec_prefix}/libexec'
708 datarootdir='${prefix}/share'
709 datadir='${datarootdir}'
710 sysconfdir='${prefix}/etc'
711 sharedstatedir='${prefix}/com'
712 localstatedir='${prefix}/var'
713 runstatedir='${localstatedir}/run'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *=) ac_optarg= ;;
740 *) ac_optarg=yes ;;
741 esac
742
743 case $ac_dashdash$ac_option in
744 --)
745 ac_dashdash=yes ;;
746
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750 bindir=$ac_optarg ;;
751
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
756
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
763
764 --config-cache | -C)
765 cache_file=config.cache ;;
766
767 -datadir | --datadir | --datadi | --datad)
768 ac_prev=datadir ;;
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
771
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
778
779 -disable-* | --disable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error $? "invalid feature name: '$ac_useropt'"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
787 *"
788 "enable_$ac_useropt"
789 "*) ;;
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
792 esac
793 eval enable_$ac_useropt=no ;;
794
795 -docdir | --docdir | --docdi | --doc | --do)
796 ac_prev=docdir ;;
797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
798 docdir=$ac_optarg ;;
799
800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801 ac_prev=dvidir ;;
802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
803 dvidir=$ac_optarg ;;
804
805 -enable-* | --enable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: '$ac_useropt'"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=\$ac_optarg ;;
820
821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823 | --exec | --exe | --ex)
824 ac_prev=exec_prefix ;;
825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827 | --exec=* | --exe=* | --ex=*)
828 exec_prefix=$ac_optarg ;;
829
830 -gas | --gas | --ga | --g)
831 # Obsolete; use --with-gas.
832 with_gas=yes ;;
833
834 -help | --help | --hel | --he | -h)
835 ac_init_help=long ;;
836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837 ac_init_help=recursive ;;
838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839 ac_init_help=short ;;
840
841 -host | --host | --hos | --ho)
842 ac_prev=host_alias ;;
843 -host=* | --host=* | --hos=* | --ho=*)
844 host_alias=$ac_optarg ;;
845
846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847 ac_prev=htmldir ;;
848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849 | --ht=*)
850 htmldir=$ac_optarg ;;
851
852 -includedir | --includedir | --includedi | --included | --include \
853 | --includ | --inclu | --incl | --inc)
854 ac_prev=includedir ;;
855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856 | --includ=* | --inclu=* | --incl=* | --inc=*)
857 includedir=$ac_optarg ;;
858
859 -infodir | --infodir | --infodi | --infod | --info | --inf)
860 ac_prev=infodir ;;
861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862 infodir=$ac_optarg ;;
863
864 -libdir | --libdir | --libdi | --libd)
865 ac_prev=libdir ;;
866 -libdir=* | --libdir=* | --libdi=* | --libd=*)
867 libdir=$ac_optarg ;;
868
869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870 | --libexe | --libex | --libe)
871 ac_prev=libexecdir ;;
872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873 | --libexe=* | --libex=* | --libe=*)
874 libexecdir=$ac_optarg ;;
875
876 -localedir | --localedir | --localedi | --localed | --locale)
877 ac_prev=localedir ;;
878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879 localedir=$ac_optarg ;;
880
881 -localstatedir | --localstatedir | --localstatedi | --localstated \
882 | --localstate | --localstat | --localsta | --localst | --locals)
883 ac_prev=localstatedir ;;
884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886 localstatedir=$ac_optarg ;;
887
888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889 ac_prev=mandir ;;
890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891 mandir=$ac_optarg ;;
892
893 -nfp | --nfp | --nf)
894 # Obsolete; use --without-fp.
895 with_fp=no ;;
896
897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898 | --no-cr | --no-c | -n)
899 no_create=yes ;;
900
901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903 no_recursion=yes ;;
904
905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907 | --oldin | --oldi | --old | --ol | --o)
908 ac_prev=oldincludedir ;;
909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912 oldincludedir=$ac_optarg ;;
913
914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915 ac_prev=prefix ;;
916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917 prefix=$ac_optarg ;;
918
919 -program-prefix | --program-prefix | --program-prefi | --program-pref \
920 | --program-pre | --program-pr | --program-p)
921 ac_prev=program_prefix ;;
922 -program-prefix=* | --program-prefix=* | --program-prefi=* \
923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924 program_prefix=$ac_optarg ;;
925
926 -program-suffix | --program-suffix | --program-suffi | --program-suff \
927 | --program-suf | --program-su | --program-s)
928 ac_prev=program_suffix ;;
929 -program-suffix=* | --program-suffix=* | --program-suffi=* \
930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931 program_suffix=$ac_optarg ;;
932
933 -program-transform-name | --program-transform-name \
934 | --program-transform-nam | --program-transform-na \
935 | --program-transform-n | --program-transform- \
936 | --program-transform | --program-transfor \
937 | --program-transfo | --program-transf \
938 | --program-trans | --program-tran \
939 | --progr-tra | --program-tr | --program-t)
940 ac_prev=program_transform_name ;;
941 -program-transform-name=* | --program-transform-name=* \
942 | --program-transform-nam=* | --program-transform-na=* \
943 | --program-transform-n=* | --program-transform-=* \
944 | --program-transform=* | --program-transfor=* \
945 | --program-transfo=* | --program-transf=* \
946 | --program-trans=* | --program-tran=* \
947 | --progr-tra=* | --program-tr=* | --program-t=*)
948 program_transform_name=$ac_optarg ;;
949
950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951 ac_prev=pdfdir ;;
952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953 pdfdir=$ac_optarg ;;
954
955 -psdir | --psdir | --psdi | --psd | --ps)
956 ac_prev=psdir ;;
957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958 psdir=$ac_optarg ;;
959
960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961 | -silent | --silent | --silen | --sile | --sil)
962 silent=yes ;;
963
964 -runstatedir | --runstatedir | --runstatedi | --runstated \
965 | --runstate | --runstat | --runsta | --runst | --runs \
966 | --run | --ru | --r)
967 ac_prev=runstatedir ;;
968 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
969 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
970 | --run=* | --ru=* | --r=*)
971 runstatedir=$ac_optarg ;;
972
973 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 ac_prev=sbindir ;;
975 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 | --sbi=* | --sb=*)
977 sbindir=$ac_optarg ;;
978
979 -sharedstatedir | --sharedstatedir | --sharedstatedi \
980 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981 | --sharedst | --shareds | --shared | --share | --shar \
982 | --sha | --sh)
983 ac_prev=sharedstatedir ;;
984 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 | --sha=* | --sh=*)
988 sharedstatedir=$ac_optarg ;;
989
990 -site | --site | --sit)
991 ac_prev=site ;;
992 -site=* | --site=* | --sit=*)
993 site=$ac_optarg ;;
994
995 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 ac_prev=srcdir ;;
997 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
998 srcdir=$ac_optarg ;;
999
1000 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001 | --syscon | --sysco | --sysc | --sys | --sy)
1002 ac_prev=sysconfdir ;;
1003 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1005 sysconfdir=$ac_optarg ;;
1006
1007 -target | --target | --targe | --targ | --tar | --ta | --t)
1008 ac_prev=target_alias ;;
1009 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1010 target_alias=$ac_optarg ;;
1011
1012 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013 verbose=yes ;;
1014
1015 -version | --version | --versio | --versi | --vers | -V)
1016 ac_init_version=: ;;
1017
1018 -with-* | --with-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid package name: '$ac_useropt'"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "with_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval with_$ac_useropt=\$ac_optarg ;;
1033
1034 -without-* | --without-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid package name: '$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "with_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval with_$ac_useropt=no ;;
1049
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1053
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1060
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1067
1068 -*) as_fn_error $? "unrecognized option: '$ac_option'
1069 Try '$0 --help' for more information"
1070 ;;
1071
1072 *=*)
1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074 # Reject names that are not valid shell variable names.
1075 case $ac_envvar in #(
1076 '' | [0-9]* | *[!_$as_cr_alnum]* )
1077 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1078 esac
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1081
1082 *)
1083 # FIXME: should be removed in autoconf 3.0.
1084 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1088 ;;
1089
1090 esac
1091 done
1092
1093 if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 as_fn_error $? "missing argument to $ac_option"
1096 fi
1097
1098 if test -n "$ac_unrecognized_opts"; then
1099 case $enable_option_checking in
1100 no) ;;
1101 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1102 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1103 esac
1104 fi
1105
1106 # Check all directory arguments for consistency.
1107 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108 datadir sysconfdir sharedstatedir localstatedir includedir \
1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110 libdir localedir mandir runstatedir
1111 do
1112 eval ac_val=\$$ac_var
1113 # Remove trailing slashes.
1114 case $ac_val in
1115 */ )
1116 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117 eval $ac_var=\$ac_val;;
1118 esac
1119 # Be sure to have absolute directory names.
1120 case $ac_val in
1121 [\\/$]* | ?:[\\/]* ) continue;;
1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 esac
1124 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1125 done
1126
1127 # There might be people who depend on the old broken behavior: '$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1130 build=$build_alias
1131 host=$host_alias
1132 target=$target_alias
1133
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
1138 elif test "x$build_alias" != "x$host_alias"; then
1139 cross_compiling=yes
1140 fi
1141 fi
1142
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146 test "$silent" = yes && exec 6>/dev/null
1147
1148
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152 as_fn_error $? "working directory cannot be determined"
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 as_fn_error $? "pwd does not report name of working directory"
1155
1156
1157 # Find the source files, if location was not specified.
1158 if test -z "$srcdir"; then
1159 ac_srcdir_defaulted=yes
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$as_myself" ||
1162 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$as_myself" : 'X\(//\)[^/]' \| \
1164 X"$as_myself" : 'X\(//\)$' \| \
1165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1166 printf "%s\n" X"$as_myself" |
1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\/\)[^/].*/{
1172 s//\1/
1173 q
1174 }
1175 /^X\(\/\/\)$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\).*/{
1180 s//\1/
1181 q
1182 }
1183 s/.*/./; q'`
1184 srcdir=$ac_confdir
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 srcdir=..
1187 fi
1188 else
1189 ac_srcdir_defaulted=no
1190 fi
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1194 fi
1195 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1196 ac_abs_confdir=`(
1197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1198 pwd)`
1199 # When building in place, set srcdir=.
1200 if test "$ac_abs_confdir" = "$ac_pwd"; then
1201 srcdir=.
1202 fi
1203 # Remove unnecessary trailing slashes from srcdir.
1204 # Double slashes in file names in object file debugging info
1205 # mess up M-x gdb in Emacs.
1206 case $srcdir in
1207 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1208 esac
1209 for ac_var in $ac_precious_vars; do
1210 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_env_${ac_var}_value=\$${ac_var}
1212 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1214 done
1215
1216 #
1217 # Report the --help message.
1218 #
1219 if test "$ac_init_help" = "long"; then
1220 # Omit some internal or obsolete options to make the list less imposing.
1221 # This message is too long to be a string in the A/UX 3.1 sh.
1222 cat <<_ACEOF
1223 'configure' configures nloptr 2.0.0 to adapt to many kinds of systems.
1224
1225 Usage: $0 [OPTION]... [VAR=VALUE]...
1226
1227 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1228 VAR=VALUE. See below for descriptions of some of the useful variables.
1229
1230 Defaults for the options are specified in brackets.
1231
1232 Configuration:
1233 -h, --help display this help and exit
1234 --help=short display options specific to this package
1235 --help=recursive display the short help of all the included packages
1236 -V, --version display version information and exit
1237 -q, --quiet, --silent do not print 'checking ...' messages
1238 --cache-file=FILE cache test results in FILE [disabled]
1239 -C, --config-cache alias for '--cache-file=config.cache'
1240 -n, --no-create do not create output files
1241 --srcdir=DIR find the sources in DIR [configure dir or '..']
1242
1243 Installation directories:
1244 --prefix=PREFIX install architecture-independent files in PREFIX
1245 [$ac_default_prefix]
1246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247 [PREFIX]
1248
1249 By default, 'make install' will install all the files in
1250 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1251 an installation prefix other than '$ac_default_prefix' using '--prefix',
1252 for instance '--prefix=\$HOME'.
1253
1254 For better control, use the options below.
1255
1256 Fine tuning of the installation directories:
1257 --bindir=DIR user executables [EPREFIX/bin]
1258 --sbindir=DIR system admin executables [EPREFIX/sbin]
1259 --libexecdir=DIR program executables [EPREFIX/libexec]
1260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1263 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/nloptr]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1277 _ACEOF
1278
1279 cat <<\_ACEOF
1280 _ACEOF
1281 fi
1282
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of nloptr 2.0.0:";;
1286 esac
1287 cat <<\_ACEOF
1288
1289 Some influential environment variables:
1290 CXX C++ compiler command
1291 CXXFLAGS C++ compiler flags
1292 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1293 nonstandard directory <lib dir>
1294 LIBS libraries to pass to the linker, e.g. -l<library>
1295 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1296 you have headers in a nonstandard directory <include dir>
1297 CXXCPP C++ preprocessor
1298
1299 Use these variables to override the choices made by 'configure' or to help
1300 it to find libraries and programs with nonstandard names/locations.
1301
1302 Report bugs to the package provider.
1303 _ACEOF
1304 ac_status=$?
1305 fi
1306
1307 if test "$ac_init_help" = "recursive"; then
1308 # If there are subdirs, report their specific --help.
1309 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1310 test -d "$ac_dir" ||
1311 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1312 continue
1313 ac_builddir=.
1314
1315 case "$ac_dir" in
1316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *)
1318 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1319 # A ".." for each directory in $ac_dir_suffix.
1320 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1321 case $ac_top_builddir_sub in
1322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1324 esac ;;
1325 esac
1326 ac_abs_top_builddir=$ac_pwd
1327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1328 # for backward compatibility:
1329 ac_top_builddir=$ac_top_build_prefix
1330
1331 case $srcdir in
1332 .) # We are building in place.
1333 ac_srcdir=.
1334 ac_top_srcdir=$ac_top_builddir_sub
1335 ac_abs_top_srcdir=$ac_pwd ;;
1336 [\\/]* | ?:[\\/]* ) # Absolute name.
1337 ac_srcdir=$srcdir$ac_dir_suffix;
1338 ac_top_srcdir=$srcdir
1339 ac_abs_top_srcdir=$srcdir ;;
1340 *) # Relative name.
1341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1342 ac_top_srcdir=$ac_top_build_prefix$srcdir
1343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1344 esac
1345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1346
1347 cd "$ac_dir" || { ac_status=$?; continue; }
1348 # Check for configure.gnu first; this name is used for a wrapper for
1349 # Metaconfig's "Configure" on case-insensitive file systems.
1350 if test -f "$ac_srcdir/configure.gnu"; then
1351 echo &&
1352 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1353 elif test -f "$ac_srcdir/configure"; then
1354 echo &&
1355 $SHELL "$ac_srcdir/configure" --help=recursive
1356 else
1357 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1358 fi || ac_status=$?
1359 cd "$ac_pwd" || { ac_status=$?; break; }
1360 done
1361 fi
1362
1363 test -n "$ac_init_help" && exit $ac_status
1364 if $ac_init_version; then
1365 cat <<\_ACEOF
1366 nloptr configure 2.0.0
1367 generated by GNU Autoconf 2.72
1368
1369 Copyright (C) 2023 Free Software Foundation, Inc.
1370 This configure script is free software; the Free Software Foundation
1371 gives unlimited permission to copy, distribute and modify it.
1372 _ACEOF
1373 exit
1374 fi
1375
1376 ## ------------------------ ##
1377 ## Autoconf initialization. ##
1378 ## ------------------------ ##
1379
1380 # ac_fn_cxx_try_compile LINENO
1381 # ----------------------------
1382 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1383 ac_fn_cxx_try_compile ()
1384 {
1385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1386 rm -f conftest.$ac_objext conftest.beam
1387 if { { ac_try="$ac_compile"
1388 case "(($ac_try" in
1389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1390 *) ac_try_echo=$ac_try;;
1391 esac
1392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1393 printf "%s\n" "$ac_try_echo"; } >&5
1394 (eval "$ac_compile") 2>conftest.err
1395 ac_status=$?
1396 if test -s conftest.err; then
1397 grep -v '^ *+' conftest.err >conftest.er1
1398 cat conftest.er1 >&5
1399 mv -f conftest.er1 conftest.err
1400 fi
1401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1402 test $ac_status = 0; } && {
1403 test -z "$ac_cxx_werror_flag" ||
1404 test ! -s conftest.err
1405 } && test -s conftest.$ac_objext
1406 then :
1407 ac_retval=0
1408 else case e in #(
1409 e) printf "%s\n" "$as_me: failed program was:" >&5
1410 sed 's/^/| /' conftest.$ac_ext >&5
1411
1412 ac_retval=1 ;;
1413 esac
1414 fi
1415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1416 as_fn_set_status $ac_retval
1417
1418 } # ac_fn_cxx_try_compile
1419
1420 # ac_fn_cxx_try_cpp LINENO
1421 # ------------------------
1422 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1423 ac_fn_cxx_try_cpp ()
1424 {
1425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426 if { { ac_try="$ac_cpp conftest.$ac_ext"
1427 case "(($ac_try" in
1428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1429 *) ac_try_echo=$ac_try;;
1430 esac
1431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1432 printf "%s\n" "$ac_try_echo"; } >&5
1433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1434 ac_status=$?
1435 if test -s conftest.err; then
1436 grep -v '^ *+' conftest.err >conftest.er1
1437 cat conftest.er1 >&5
1438 mv -f conftest.er1 conftest.err
1439 fi
1440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1441 test $ac_status = 0; } > conftest.i && {
1442 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1443 test ! -s conftest.err
1444 }
1445 then :
1446 ac_retval=0
1447 else case e in #(
1448 e) printf "%s\n" "$as_me: failed program was:" >&5
1449 sed 's/^/| /' conftest.$ac_ext >&5
1450
1451 ac_retval=1 ;;
1452 esac
1453 fi
1454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1455 as_fn_set_status $ac_retval
1456
1457 } # ac_fn_cxx_try_cpp
1458 ac_configure_args_raw=
1459 for ac_arg
1460 do
1461 case $ac_arg in
1462 *\'*)
1463 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 esac
1465 as_fn_append ac_configure_args_raw " '$ac_arg'"
1466 done
1467
1468 case $ac_configure_args_raw in
1469 *$as_nl*)
1470 ac_safe_unquote= ;;
1471 *)
1472 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1473 ac_unsafe_a="$ac_unsafe_z#~"
1474 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1475 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1476 esac
1477
1478 cat >config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1481
1482 It was created by nloptr $as_me 2.0.0, which was
1483 generated by GNU Autoconf 2.72. Invocation command line was
1484
1485 $ $0$ac_configure_args_raw
1486
1487 _ACEOF
1488 exec 5>>config.log
1489 {
1490 cat <<_ASUNAME
1491 ## --------- ##
1492 ## Platform. ##
1493 ## --------- ##
1494
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1500
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1503
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1511
1512 _ASUNAME
1513
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517 IFS=$as_save_IFS
1518 case $as_dir in #(((
1519 '') as_dir=./ ;;
1520 */) ;;
1521 *) as_dir=$as_dir/ ;;
1522 esac
1523 printf "%s\n" "PATH: $as_dir"
1524 done
1525 IFS=$as_save_IFS
1526
1527 } >&5
1528
1529 cat >&5 <<_ACEOF
1530
1531
1532 ## ----------- ##
1533 ## Core tests. ##
1534 ## ----------- ##
1535
1536 _ACEOF
1537
1538
1539 # Keep a trace of the command line.
1540 # Strip out --no-create and --no-recursion so they do not pile up.
1541 # Strip out --silent because we don't want to record it for future runs.
1542 # Also quote any args containing shell meta-characters.
1543 # Make two passes to allow for proper duplicate-argument suppression.
1544 ac_configure_args=
1545 ac_configure_args0=
1546 ac_configure_args1=
1547 ac_must_keep_next=false
1548 for ac_pass in 1 2
1549 do
1550 for ac_arg
1551 do
1552 case $ac_arg in
1553 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1555 | -silent | --silent | --silen | --sile | --sil)
1556 continue ;;
1557 *\'*)
1558 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1559 esac
1560 case $ac_pass in
1561 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1562 2)
1563 as_fn_append ac_configure_args1 " '$ac_arg'"
1564 if test $ac_must_keep_next = true; then
1565 ac_must_keep_next=false # Got value, back to normal.
1566 else
1567 case $ac_arg in
1568 *=* | --config-cache | -C | -disable-* | --disable-* \
1569 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1570 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1571 | -with-* | --with-* | -without-* | --without-* | --x)
1572 case "$ac_configure_args0 " in
1573 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1574 esac
1575 ;;
1576 -* ) ac_must_keep_next=true ;;
1577 esac
1578 fi
1579 as_fn_append ac_configure_args " '$ac_arg'"
1580 ;;
1581 esac
1582 done
1583 done
1584 { ac_configure_args0=; unset ac_configure_args0;}
1585 { ac_configure_args1=; unset ac_configure_args1;}
1586
1587 # When interrupted or exit'd, cleanup temporary files, and complete
1588 # config.log. We remove comments because anyway the quotes in there
1589 # would cause problems or look ugly.
1590 # WARNING: Use '\'' to represent an apostrophe within the trap.
1591 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1592 trap 'exit_status=$?
1593 # Sanitize IFS.
1594 IFS=" "" $as_nl"
1595 # Save into config.log some information that might help in debugging.
1596 {
1597 echo
1598
1599 printf "%s\n" "## ---------------- ##
1600 ## Cache variables. ##
1601 ## ---------------- ##"
1602 echo
1603 # The following way of writing the cache mishandles newlines in values,
1604 (
1605 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1606 eval ac_val=\$$ac_var
1607 case $ac_val in #(
1608 *${as_nl}*)
1609 case $ac_var in #(
1610 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1611 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1612 esac
1613 case $ac_var in #(
1614 _ | IFS | as_nl) ;; #(
1615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1616 *) { eval $ac_var=; unset $ac_var;} ;;
1617 esac ;;
1618 esac
1619 done
1620 (set) 2>&1 |
1621 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1622 *${as_nl}ac_space=\ *)
1623 sed -n \
1624 "s/'\''/'\''\\\\'\'''\''/g;
1625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1626 ;; #(
1627 *)
1628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1629 ;;
1630 esac |
1631 sort
1632 )
1633 echo
1634
1635 printf "%s\n" "## ----------------- ##
1636 ## Output variables. ##
1637 ## ----------------- ##"
1638 echo
1639 for ac_var in $ac_subst_vars
1640 do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 printf "%s\n" "$ac_var='\''$ac_val'\''"
1646 done | sort
1647 echo
1648
1649 if test -n "$ac_subst_files"; then
1650 printf "%s\n" "## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##"
1653 echo
1654 for ac_var in $ac_subst_files
1655 do
1656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 printf "%s\n" "$ac_var='\''$ac_val'\''"
1661 done | sort
1662 echo
1663 fi
1664
1665 if test -s confdefs.h; then
1666 printf "%s\n" "## ----------- ##
1667 ## confdefs.h. ##
1668 ## ----------- ##"
1669 echo
1670 cat confdefs.h
1671 echo
1672 fi
1673 test "$ac_signal" != 0 &&
1674 printf "%s\n" "$as_me: caught signal $ac_signal"
1675 printf "%s\n" "$as_me: exit $exit_status"
1676 } >&5
1677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 exit $exit_status
1680 ' 0
1681 for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1683 done
1684 ac_signal=0
1685
1686 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1687 rm -f -r conftest* confdefs.h
1688
1689 printf "%s\n" "/* confdefs.h */" > confdefs.h
1690
1691 # Predefined preprocessor variables.
1692
1693 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1694
1695 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1696
1697 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1698
1699 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1700
1701 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1702
1703 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1704
1705
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer an explicitly selected file to automatically selected ones.
1708 if test -n "$CONFIG_SITE"; then
1709 ac_site_files="$CONFIG_SITE"
1710 elif test "x$prefix" != xNONE; then
1711 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1712 else
1713 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1714 fi
1715
1716 for ac_site_file in $ac_site_files
1717 do
1718 case $ac_site_file in #(
1719 */*) :
1720 ;; #(
1721 *) :
1722 ac_site_file=./$ac_site_file ;;
1723 esac
1724 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1726 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1727 sed 's/^/| /' "$ac_site_file" >&5
1728 . "$ac_site_file" \
1729 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1730 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1731 as_fn_error $? "failed to load site script $ac_site_file
1732 See 'config.log' for more details" "$LINENO" 5; }
1733 fi
1734 done
1735
1736 if test -r "$cache_file"; then
1737 # Some versions of bash will fail to source /dev/null (special files
1738 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1739 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1741 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1742 case $cache_file in
1743 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1744 *) . "./$cache_file";;
1745 esac
1746 fi
1747 else
1748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1749 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1750 >$cache_file
1751 fi
1752
1753 # Test code for whether the C++ compiler supports C++98 (global declarations)
1754 ac_cxx_conftest_cxx98_globals='
1755 // Does the compiler advertise C++98 conformance?
1756 #if !defined __cplusplus || __cplusplus < 199711L
1757 # error "Compiler does not advertise C++98 conformance"
1758 #endif
1759
1760 // These inclusions are to reject old compilers that
1761 // lack the unsuffixed header files.
1762 #include <cstdlib>
1763 #include <exception>
1764
1765 // <cassert> and <cstring> are *not* freestanding headers in C++98.
1766 extern void assert (int);
1767 namespace std {
1768 extern int strcmp (const char *, const char *);
1769 }
1770
1771 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
1772 using std::exception;
1773 using std::strcmp;
1774
1775 namespace {
1776
1777 void test_exception_syntax()
1778 {
1779 try {
1780 throw "test";
1781 } catch (const char *s) {
1782 // Extra parentheses suppress a warning when building autoconf itself,
1783 // due to lint rules shared with more typical C programs.
1784 assert (!(strcmp) (s, "test"));
1785 }
1786 }
1787
1788 template <typename T> struct test_template
1789 {
1790 T const val;
1791 explicit test_template(T t) : val(t) {}
1792 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
1793 };
1794
1795 } // anonymous namespace
1796 '
1797
1798 # Test code for whether the C++ compiler supports C++98 (body of main)
1799 ac_cxx_conftest_cxx98_main='
1800 assert (argc);
1801 assert (! argv[0]);
1802 {
1803 test_exception_syntax ();
1804 test_template<double> tt (2.0);
1805 assert (tt.add (4) == 6.0);
1806 assert (true && !false);
1807 }
1808 '
1809
1810 # Test code for whether the C++ compiler supports C++11 (global declarations)
1811 ac_cxx_conftest_cxx11_globals='
1812 // Does the compiler advertise C++ 2011 conformance?
1813 #if !defined __cplusplus || __cplusplus < 201103L
1814 # error "Compiler does not advertise C++11 conformance"
1815 #endif
1816
1817 namespace cxx11test
1818 {
1819 constexpr int get_val() { return 20; }
1820
1821 struct testinit
1822 {
1823 int i;
1824 double d;
1825 };
1826
1827 class delegate
1828 {
1829 public:
1830 delegate(int n) : n(n) {}
1831 delegate(): delegate(2354) {}
1832
1833 virtual int getval() { return this->n; };
1834 protected:
1835 int n;
1836 };
1837
1838 class overridden : public delegate
1839 {
1840 public:
1841 overridden(int n): delegate(n) {}
1842 virtual int getval() override final { return this->n * 2; }
1843 };
1844
1845 class nocopy
1846 {
1847 public:
1848 nocopy(int i): i(i) {}
1849 nocopy() = default;
1850 nocopy(const nocopy&) = delete;
1851 nocopy & operator=(const nocopy&) = delete;
1852 private:
1853 int i;
1854 };
1855
1856 // for testing lambda expressions
1857 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
1858 {
1859 return f(v);
1860 }
1861
1862 // for testing variadic templates and trailing return types
1863 template <typename V> auto sum(V first) -> V
1864 {
1865 return first;
1866 }
1867 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
1868 {
1869 return first + sum(rest...);
1870 }
1871 }
1872 '
1873
1874 # Test code for whether the C++ compiler supports C++11 (body of main)
1875 ac_cxx_conftest_cxx11_main='
1876 {
1877 // Test auto and decltype
1878 auto a1 = 6538;
1879 auto a2 = 48573953.4;
1880 auto a3 = "String literal";
1881
1882 int total = 0;
1883 for (auto i = a3; *i; ++i) { total += *i; }
1884
1885 decltype(a2) a4 = 34895.034;
1886 }
1887 {
1888 // Test constexpr
1889 short sa[cxx11test::get_val()] = { 0 };
1890 }
1891 {
1892 // Test initializer lists
1893 cxx11test::testinit il = { 4323, 435234.23544 };
1894 }
1895 {
1896 // Test range-based for
1897 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
1898 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
1899 for (auto &x : array) { x += 23; }
1900 }
1901 {
1902 // Test lambda expressions
1903 using cxx11test::eval;
1904 assert (eval ([](int x) { return x*2; }, 21) == 42);
1905 double d = 2.0;
1906 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
1907 assert (d == 5.0);
1908 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
1909 assert (d == 5.0);
1910 }
1911 {
1912 // Test use of variadic templates
1913 using cxx11test::sum;
1914 auto a = sum(1);
1915 auto b = sum(1, 2);
1916 auto c = sum(1.0, 2.0, 3.0);
1917 }
1918 {
1919 // Test constructor delegation
1920 cxx11test::delegate d1;
1921 cxx11test::delegate d2();
1922 cxx11test::delegate d3(45);
1923 }
1924 {
1925 // Test override and final
1926 cxx11test::overridden o1(55464);
1927 }
1928 {
1929 // Test nullptr
1930 char *c = nullptr;
1931 }
1932 {
1933 // Test template brackets
1934 test_template<::test_template<int>> v(test_template<int>(12));
1935 }
1936 {
1937 // Unicode literals
1938 char const *utf8 = u8"UTF-8 string \u2500";
1939 char16_t const *utf16 = u"UTF-8 string \u2500";
1940 char32_t const *utf32 = U"UTF-32 string \u2500";
1941 }
1942 '
1943
1944 # Test code for whether the C compiler supports C++11 (complete).
1945 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
1946 ${ac_cxx_conftest_cxx11_globals}
1947
1948 int
1949 main (int argc, char **argv)
1950 {
1951 int ok = 0;
1952 ${ac_cxx_conftest_cxx98_main}
1953 ${ac_cxx_conftest_cxx11_main}
1954 return ok;
1955 }
1956 "
1957
1958 # Test code for whether the C compiler supports C++98 (complete).
1959 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
1960 int
1961 main (int argc, char **argv)
1962 {
1963 int ok = 0;
1964 ${ac_cxx_conftest_cxx98_main}
1965 return ok;
1966 }
1967 "
1968
1969 # Check that the precious variables saved in the cache have kept the same
1970 # value.
1971 ac_cache_corrupted=false
1972 for ac_var in $ac_precious_vars; do
1973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1974 eval ac_new_set=\$ac_env_${ac_var}_set
1975 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1976 eval ac_new_val=\$ac_env_${ac_var}_value
1977 case $ac_old_set,$ac_new_set in
1978 set,)
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
1980 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1981 ac_cache_corrupted=: ;;
1982 ,set)
1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
1984 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,);;
1987 *)
1988 if test "x$ac_old_val" != "x$ac_new_val"; then
1989 # differences in whitespace do not lead to failure.
1990 ac_old_val_w=`echo x $ac_old_val`
1991 ac_new_val_w=`echo x $ac_new_val`
1992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
1994 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1995 ac_cache_corrupted=:
1996 else
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
1998 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1999 eval $ac_var=\$ac_old_val
2000 fi
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2002 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2004 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2005 fi;;
2006 esac
2007 # Pass precious variables to config.status.
2008 if test "$ac_new_set" = set; then
2009 case $ac_new_val in
2010 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 *) ac_arg=$ac_var=$ac_new_val ;;
2012 esac
2013 case " $ac_configure_args " in
2014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2015 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2016 esac
2017 fi
2018 done
2019 if $ac_cache_corrupted; then
2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2021 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2023 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2024 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2025 and start over" "$LINENO" 5
2026 fi
2027 ## -------------------- ##
2028 ## Main body of script. ##
2029 ## -------------------- ##
2030
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036
2037
2038
2039 ## Set R_HOME, respecting an environment variable if set
2040 : ${R_HOME=$(R RHOME)}
2041 if test -z "${R_HOME}"; then
2042 as_fn_error $? "Could not determine R_HOME." "$LINENO" 5
2043 fi
2044
2045 CXX=`"${R_HOME}/bin/R" CMD config CXX`
2046 if test -z "${CXX}"; then
2047 as_fn_error $? "No C++ compiler available" "$LINENO" 5
2048 fi
2049 CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2050 CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2051 CXX11FLAGS=`"${R_HOME}/bin/R" CMD config CXX11FLAGS`
2052 ac_ext=cpp
2053 ac_cpp='$CXXCPP $CPPFLAGS'
2054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2057
2058
2059
2060
2061
2062
2063
2064 ac_ext=cpp
2065 ac_cpp='$CXXCPP $CPPFLAGS'
2066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2069 if test -z "$CXX"; then
2070 if test -n "$CCC"; then
2071 CXX=$CCC
2072 else
2073 if test -n "$ac_tool_prefix"; then
2074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2075 do
2076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2079 printf %s "checking for $ac_word... " >&6; }
2080 if test ${ac_cv_prog_CXX+y}
2081 then :
2082 printf %s "(cached) " >&6
2083 else case e in #(
2084 e) if test -n "$CXX"; then
2085 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090 IFS=$as_save_IFS
2091 case $as_dir in #(((
2092 '') as_dir=./ ;;
2093 */) ;;
2094 *) as_dir=$as_dir/ ;;
2095 esac
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2100 break 2
2101 fi
2102 done
2103 done
2104 IFS=$as_save_IFS
2105
2106 fi ;;
2107 esac
2108 fi
2109 CXX=$ac_cv_prog_CXX
2110 if test -n "$CXX"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2112 printf "%s\n" "$CXX" >&6; }
2113 else
2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2115 printf "%s\n" "no" >&6; }
2116 fi
2117
2118
2119 test -n "$CXX" && break
2120 done
2121 fi
2122 if test -z "$CXX"; then
2123 ac_ct_CXX=$CXX
2124 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2125 do
2126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2129 printf %s "checking for $ac_word... " >&6; }
2130 if test ${ac_cv_prog_ac_ct_CXX+y}
2131 then :
2132 printf %s "(cached) " >&6
2133 else case e in #(
2134 e) if test -n "$ac_ct_CXX"; then
2135 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 case $as_dir in #(((
2142 '') as_dir=./ ;;
2143 */) ;;
2144 *) as_dir=$as_dir/ ;;
2145 esac
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CXX="$ac_prog"
2149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152 done
2153 done
2154 IFS=$as_save_IFS
2155
2156 fi ;;
2157 esac
2158 fi
2159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2160 if test -n "$ac_ct_CXX"; then
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2162 printf "%s\n" "$ac_ct_CXX" >&6; }
2163 else
2164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2165 printf "%s\n" "no" >&6; }
2166 fi
2167
2168
2169 test -n "$ac_ct_CXX" && break
2170 done
2171
2172 if test "x$ac_ct_CXX" = x; then
2173 CXX="g++"
2174 else
2175 case $cross_compiling:$ac_tool_warned in
2176 yes:)
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2179 ac_tool_warned=yes ;;
2180 esac
2181 CXX=$ac_ct_CXX
2182 fi
2183 fi
2184
2185 fi
2186 fi
2187 # Provide some information about the compiler.
2188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2189 set X $ac_compile
2190 ac_compiler=$2
2191 for ac_option in --version -v -V -qversion; do
2192 { { ac_try="$ac_compiler $ac_option >&5"
2193 case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196 esac
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 printf "%s\n" "$ac_try_echo"; } >&5
2199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2200 ac_status=$?
2201 if test -s conftest.err; then
2202 sed '10a\
2203 ... rest of stderr output deleted ...
2204 10q' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 fi
2207 rm -f conftest.er1 conftest.err
2208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; }
2210 done
2211
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214
2215 int
2216 main (void)
2217 {
2218
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 ac_clean_files_save=$ac_clean_files
2224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2225 # Try to create an executable without -o first, disregard a.out.
2226 # It will help us diagnose broken compilers, and finding out an intuition
2227 # of exeext.
2228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2229 printf %s "checking whether the C++ compiler works... " >&6; }
2230 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231
2232 # The possible output files:
2233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2234
2235 ac_rmfiles=
2236 for ac_file in $ac_files
2237 do
2238 case $ac_file in
2239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2241 esac
2242 done
2243 rm -f $ac_rmfiles
2244
2245 if { { ac_try="$ac_link_default"
2246 case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 printf "%s\n" "$ac_try_echo"; } >&5
2252 (eval "$ac_link_default") 2>&5
2253 ac_status=$?
2254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; }
2256 then :
2257 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2258 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2260 # so that the user can short-circuit this test for compilers unknown to
2261 # Autoconf.
2262 for ac_file in $ac_files ''
2263 do
2264 test -f "$ac_file" || continue
2265 case $ac_file in
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2267 ;;
2268 [ab].out )
2269 # We found the default executable, but exeext='' is most
2270 # certainly right.
2271 break;;
2272 *.* )
2273 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2274 then :; else
2275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 fi
2277 # We set ac_cv_exeext here because the later test for it is not
2278 # safe: cross compilers may not add the suffix if given an '-o'
2279 # argument, so we may need to know it at that point already.
2280 # Even if this section looks crufty: it has the advantage of
2281 # actually working.
2282 break;;
2283 * )
2284 break;;
2285 esac
2286 done
2287 test "$ac_cv_exeext" = no && ac_cv_exeext=
2288
2289 else case e in #(
2290 e) ac_file='' ;;
2291 esac
2292 fi
2293 if test -z "$ac_file"
2294 then :
2295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296 printf "%s\n" "no" >&6; }
2297 printf "%s\n" "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2302 as_fn_error 77 "C++ compiler cannot create executables
2303 See 'config.log' for more details" "$LINENO" 5; }
2304 else case e in #(
2305 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2306 printf "%s\n" "yes" >&6; } ;;
2307 esac
2308 fi
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2310 printf %s "checking for C++ compiler default output file name... " >&6; }
2311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2312 printf "%s\n" "$ac_file" >&6; }
2313 ac_exeext=$ac_cv_exeext
2314
2315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2316 ac_clean_files=$ac_clean_files_save
2317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2318 printf %s "checking for suffix of executables... " >&6; }
2319 if { { ac_try="$ac_link"
2320 case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 printf "%s\n" "$ac_try_echo"; } >&5
2326 (eval "$ac_link") 2>&5
2327 ac_status=$?
2328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; }
2330 then :
2331 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
2332 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
2333 # work properly (i.e., refer to 'conftest.exe'), while it won't with
2334 # 'rm'.
2335 for ac_file in conftest.exe conftest conftest.*; do
2336 test -f "$ac_file" || continue
2337 case $ac_file in
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 break;;
2341 * ) break;;
2342 esac
2343 done
2344 else case e in #(
2345 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2346 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2347 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2348 See 'config.log' for more details" "$LINENO" 5; } ;;
2349 esac
2350 fi
2351 rm -f conftest conftest$ac_cv_exeext
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2353 printf "%s\n" "$ac_cv_exeext" >&6; }
2354
2355 rm -f conftest.$ac_ext
2356 EXEEXT=$ac_cv_exeext
2357 ac_exeext=$EXEEXT
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2360 #include <stdio.h>
2361 int
2362 main (void)
2363 {
2364 FILE *f = fopen ("conftest.out", "w");
2365 if (!f)
2366 return 1;
2367 return ferror (f) || fclose (f) != 0;
2368
2369 ;
2370 return 0;
2371 }
2372 _ACEOF
2373 ac_clean_files="$ac_clean_files conftest.out"
2374 # Check that the compiler produces executables we can run. If not, either
2375 # the compiler is broken, or we cross compile.
2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2377 printf %s "checking whether we are cross compiling... " >&6; }
2378 if test "$cross_compiling" != yes; then
2379 { { ac_try="$ac_link"
2380 case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383 esac
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 printf "%s\n" "$ac_try_echo"; } >&5
2386 (eval "$ac_link") 2>&5
2387 ac_status=$?
2388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; }
2390 if { ac_try='./conftest$ac_cv_exeext'
2391 { { case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 printf "%s\n" "$ac_try_echo"; } >&5
2397 (eval "$ac_try") 2>&5
2398 ac_status=$?
2399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; }; }; then
2401 cross_compiling=no
2402 else
2403 if test "$cross_compiling" = maybe; then
2404 cross_compiling=yes
2405 else
2406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2407 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2408 as_fn_error 77 "cannot run C++ compiled programs.
2409 If you meant to cross compile, use '--host'.
2410 See 'config.log' for more details" "$LINENO" 5; }
2411 fi
2412 fi
2413 fi
2414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2415 printf "%s\n" "$cross_compiling" >&6; }
2416
2417 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
2418 conftest.o conftest.obj conftest.out
2419 ac_clean_files=$ac_clean_files_save
2420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2421 printf %s "checking for suffix of object files... " >&6; }
2422 if test ${ac_cv_objext+y}
2423 then :
2424 printf %s "(cached) " >&6
2425 else case e in #(
2426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428
2429 int
2430 main (void)
2431 {
2432
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.o conftest.obj
2438 if { { ac_try="$ac_compile"
2439 case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444 printf "%s\n" "$ac_try_echo"; } >&5
2445 (eval "$ac_compile") 2>&5
2446 ac_status=$?
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2448 test $ac_status = 0; }
2449 then :
2450 for ac_file in conftest.o conftest.obj conftest.*; do
2451 test -f "$ac_file" || continue;
2452 case $ac_file in
2453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2455 break;;
2456 esac
2457 done
2458 else case e in #(
2459 e) printf "%s\n" "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2463 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2464 as_fn_error $? "cannot compute suffix of object files: cannot compile
2465 See 'config.log' for more details" "$LINENO" 5; } ;;
2466 esac
2467 fi
2468 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
2469 esac
2470 fi
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2472 printf "%s\n" "$ac_cv_objext" >&6; }
2473 OBJEXT=$ac_cv_objext
2474 ac_objext=$OBJEXT
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
2476 printf %s "checking whether the compiler supports GNU C++... " >&6; }
2477 if test ${ac_cv_cxx_compiler_gnu+y}
2478 then :
2479 printf %s "(cached) " >&6
2480 else case e in #(
2481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483
2484 int
2485 main (void)
2486 {
2487 #ifndef __GNUC__
2488 choke me
2489 #endif
2490
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_cxx_try_compile "$LINENO"
2496 then :
2497 ac_compiler_gnu=yes
2498 else case e in #(
2499 e) ac_compiler_gnu=no ;;
2500 esac
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2504 ;;
2505 esac
2506 fi
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2508 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
2509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2510
2511 if test $ac_compiler_gnu = yes; then
2512 GXX=yes
2513 else
2514 GXX=
2515 fi
2516 ac_test_CXXFLAGS=${CXXFLAGS+y}
2517 ac_save_CXXFLAGS=$CXXFLAGS
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2519 printf %s "checking whether $CXX accepts -g... " >&6; }
2520 if test ${ac_cv_prog_cxx_g+y}
2521 then :
2522 printf %s "(cached) " >&6
2523 else case e in #(
2524 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2525 ac_cxx_werror_flag=yes
2526 ac_cv_prog_cxx_g=no
2527 CXXFLAGS="-g"
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530
2531 int
2532 main (void)
2533 {
2534
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"
2540 then :
2541 ac_cv_prog_cxx_g=yes
2542 else case e in #(
2543 e) CXXFLAGS=""
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546
2547 int
2548 main (void)
2549 {
2550
2551 ;
2552 return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_cxx_try_compile "$LINENO"
2556 then :
2557
2558 else case e in #(
2559 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2560 CXXFLAGS="-g"
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563
2564 int
2565 main (void)
2566 {
2567
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_cxx_try_compile "$LINENO"
2573 then :
2574 ac_cv_prog_cxx_g=yes
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2577 esac
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2580 esac
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2583 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
2584 esac
2585 fi
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2587 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
2588 if test $ac_test_CXXFLAGS; then
2589 CXXFLAGS=$ac_save_CXXFLAGS
2590 elif test $ac_cv_prog_cxx_g = yes; then
2591 if test "$GXX" = yes; then
2592 CXXFLAGS="-g -O2"
2593 else
2594 CXXFLAGS="-g"
2595 fi
2596 else
2597 if test "$GXX" = yes; then
2598 CXXFLAGS="-O2"
2599 else
2600 CXXFLAGS=
2601 fi
2602 fi
2603 ac_prog_cxx_stdcxx=no
2604 if test x$ac_prog_cxx_stdcxx = xno
2605 then :
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
2607 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
2608 if test ${ac_cv_prog_cxx_cxx11+y}
2609 then :
2610 printf %s "(cached) " >&6
2611 else case e in #(
2612 e) ac_cv_prog_cxx_cxx11=no
2613 ac_save_CXX=$CXX
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 $ac_cxx_conftest_cxx11_program
2617 _ACEOF
2618 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
2619 do
2620 CXX="$ac_save_CXX $ac_arg"
2621 if ac_fn_cxx_try_compile "$LINENO"
2622 then :
2623 ac_cv_prog_cxx_cxx11=$ac_arg
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext conftest.beam
2626 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
2627 done
2628 rm -f conftest.$ac_ext
2629 CXX=$ac_save_CXX ;;
2630 esac
2631 fi
2632
2633 if test "x$ac_cv_prog_cxx_cxx11" = xno
2634 then :
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2636 printf "%s\n" "unsupported" >&6; }
2637 else case e in #(
2638 e) if test "x$ac_cv_prog_cxx_cxx11" = x
2639 then :
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2641 printf "%s\n" "none needed" >&6; }
2642 else case e in #(
2643 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
2644 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
2645 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
2646 esac
2647 fi
2648 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
2649 ac_prog_cxx_stdcxx=cxx11 ;;
2650 esac
2651 fi
2652 fi
2653 if test x$ac_prog_cxx_stdcxx = xno
2654 then :
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
2656 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
2657 if test ${ac_cv_prog_cxx_cxx98+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else case e in #(
2661 e) ac_cv_prog_cxx_cxx98=no
2662 ac_save_CXX=$CXX
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 $ac_cxx_conftest_cxx98_program
2666 _ACEOF
2667 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
2668 do
2669 CXX="$ac_save_CXX $ac_arg"
2670 if ac_fn_cxx_try_compile "$LINENO"
2671 then :
2672 ac_cv_prog_cxx_cxx98=$ac_arg
2673 fi
2674 rm -f core conftest.err conftest.$ac_objext conftest.beam
2675 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
2676 done
2677 rm -f conftest.$ac_ext
2678 CXX=$ac_save_CXX ;;
2679 esac
2680 fi
2681
2682 if test "x$ac_cv_prog_cxx_cxx98" = xno
2683 then :
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2685 printf "%s\n" "unsupported" >&6; }
2686 else case e in #(
2687 e) if test "x$ac_cv_prog_cxx_cxx98" = x
2688 then :
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2690 printf "%s\n" "none needed" >&6; }
2691 else case e in #(
2692 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
2693 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
2694 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
2695 esac
2696 fi
2697 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
2698 ac_prog_cxx_stdcxx=cxx98 ;;
2699 esac
2700 fi
2701 fi
2702
2703 ac_ext=cpp
2704 ac_cpp='$CXXCPP $CPPFLAGS'
2705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2708
2709
2710 ac_ext=cpp
2711 ac_cpp='$CXXCPP $CPPFLAGS'
2712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
2716 printf %s "checking how to run the C++ preprocessor... " >&6; }
2717 if test -z "$CXXCPP"; then
2718 if test ${ac_cv_prog_CXXCPP+y}
2719 then :
2720 printf %s "(cached) " >&6
2721 else case e in #(
2722 e) # Double quotes because $CXX needs to be expanded
2723 for CXXCPP in "$CXX -E" cpp /lib/cpp
2724 do
2725 ac_preproc_ok=false
2726 for ac_cxx_preproc_warn_flag in '' yes
2727 do
2728 # Use a header file that comes with gcc, so configuring glibc
2729 # with a fresh cross-compiler works.
2730 # On the NeXT, cc -E runs the code through the compiler's parser,
2731 # not just through cpp. "Syntax error" is here to catch this case.
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 #include <limits.h>
2735 Syntax error
2736 _ACEOF
2737 if ac_fn_cxx_try_cpp "$LINENO"
2738 then :
2739
2740 else case e in #(
2741 e) # Broken: fails on valid input.
2742 continue ;;
2743 esac
2744 fi
2745 rm -f conftest.err conftest.i conftest.$ac_ext
2746
2747 # OK, works on sane cases. Now check whether nonexistent headers
2748 # can be detected and how.
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <ac_nonexistent.h>
2752 _ACEOF
2753 if ac_fn_cxx_try_cpp "$LINENO"
2754 then :
2755 # Broken: success on invalid input.
2756 continue
2757 else case e in #(
2758 e) # Passes both tests.
2759 ac_preproc_ok=:
2760 break ;;
2761 esac
2762 fi
2763 rm -f conftest.err conftest.i conftest.$ac_ext
2764
2765 done
2766 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2767 rm -f conftest.i conftest.err conftest.$ac_ext
2768 if $ac_preproc_ok
2769 then :
2770 break
2771 fi
2772
2773 done
2774 ac_cv_prog_CXXCPP=$CXXCPP
2775 ;;
2776 esac
2777 fi
2778 CXXCPP=$ac_cv_prog_CXXCPP
2779 else
2780 ac_cv_prog_CXXCPP=$CXXCPP
2781 fi
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
2783 printf "%s\n" "$CXXCPP" >&6; }
2784 ac_preproc_ok=false
2785 for ac_cxx_preproc_warn_flag in '' yes
2786 do
2787 # Use a header file that comes with gcc, so configuring glibc
2788 # with a fresh cross-compiler works.
2789 # On the NeXT, cc -E runs the code through the compiler's parser,
2790 # not just through cpp. "Syntax error" is here to catch this case.
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2793 #include <limits.h>
2794 Syntax error
2795 _ACEOF
2796 if ac_fn_cxx_try_cpp "$LINENO"
2797 then :
2798
2799 else case e in #(
2800 e) # Broken: fails on valid input.
2801 continue ;;
2802 esac
2803 fi
2804 rm -f conftest.err conftest.i conftest.$ac_ext
2805
2806 # OK, works on sane cases. Now check whether nonexistent headers
2807 # can be detected and how.
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2810 #include <ac_nonexistent.h>
2811 _ACEOF
2812 if ac_fn_cxx_try_cpp "$LINENO"
2813 then :
2814 # Broken: success on invalid input.
2815 continue
2816 else case e in #(
2817 e) # Passes both tests.
2818 ac_preproc_ok=:
2819 break ;;
2820 esac
2821 fi
2822 rm -f conftest.err conftest.i conftest.$ac_ext
2823
2824 done
2825 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2826 rm -f conftest.i conftest.err conftest.$ac_ext
2827 if $ac_preproc_ok
2828 then :
2829
2830 else case e in #(
2831 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2832 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2833 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
2834 See 'config.log' for more details" "$LINENO" 5; } ;;
2835 esac
2836 fi
2837
2838 ac_ext=cpp
2839 ac_cpp='$CXXCPP $CPPFLAGS'
2840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2843
2844
2845
2846 ac_ext=cpp
2847 ac_cpp='$CXXCPP $CPPFLAGS'
2848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2851 if test -z "$CXX"; then
2852 if test -n "$CCC"; then
2853 CXX=$CCC
2854 else
2855 if test -n "$ac_tool_prefix"; then
2856 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2857 do
2858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 printf %s "checking for $ac_word... " >&6; }
2862 if test ${ac_cv_prog_CXX+y}
2863 then :
2864 printf %s "(cached) " >&6
2865 else case e in #(
2866 e) if test -n "$CXX"; then
2867 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 case $as_dir in #(((
2874 '') as_dir=./ ;;
2875 */) ;;
2876 *) as_dir=$as_dir/ ;;
2877 esac
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_CXX="$ac_tool_prefix$ac_prog"
2881 printf "%s\n" "$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 esac
2890 fi
2891 CXX=$ac_cv_prog_CXX
2892 if test -n "$CXX"; then
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2894 printf "%s\n" "$CXX" >&6; }
2895 else
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 printf "%s\n" "no" >&6; }
2898 fi
2899
2900
2901 test -n "$CXX" && break
2902 done
2903 fi
2904 if test -z "$CXX"; then
2905 ac_ct_CXX=$CXX
2906 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2907 do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 printf %s "checking for $ac_word... " >&6; }
2912 if test ${ac_cv_prog_ac_ct_CXX+y}
2913 then :
2914 printf %s "(cached) " >&6
2915 else case e in #(
2916 e) if test -n "$ac_ct_CXX"; then
2917 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 case $as_dir in #(((
2924 '') as_dir=./ ;;
2925 */) ;;
2926 *) as_dir=$as_dir/ ;;
2927 esac
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_CXX="$ac_prog"
2931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi ;;
2939 esac
2940 fi
2941 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2942 if test -n "$ac_ct_CXX"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2944 printf "%s\n" "$ac_ct_CXX" >&6; }
2945 else
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 printf "%s\n" "no" >&6; }
2948 fi
2949
2950
2951 test -n "$ac_ct_CXX" && break
2952 done
2953
2954 if test "x$ac_ct_CXX" = x; then
2955 CXX="g++"
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CXX=$ac_ct_CXX
2964 fi
2965 fi
2966
2967 fi
2968 fi
2969 # Provide some information about the compiler.
2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2971 set X $ac_compile
2972 ac_compiler=$2
2973 for ac_option in --version -v -V -qversion; do
2974 { { ac_try="$ac_compiler $ac_option >&5"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 printf "%s\n" "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 ac_status=$?
2983 if test -s conftest.err; then
2984 sed '10a\
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2988 fi
2989 rm -f conftest.er1 conftest.err
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2992 done
2993
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
2995 printf %s "checking whether the compiler supports GNU C++... " >&6; }
2996 if test ${ac_cv_cxx_compiler_gnu+y}
2997 then :
2998 printf %s "(cached) " >&6
2999 else case e in #(
3000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002
3003 int
3004 main (void)
3005 {
3006 #ifndef __GNUC__
3007 choke me
3008 #endif
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 if ac_fn_cxx_try_compile "$LINENO"
3015 then :
3016 ac_compiler_gnu=yes
3017 else case e in #(
3018 e) ac_compiler_gnu=no ;;
3019 esac
3020 fi
3021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3023 ;;
3024 esac
3025 fi
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3027 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029
3030 if test $ac_compiler_gnu = yes; then
3031 GXX=yes
3032 else
3033 GXX=
3034 fi
3035 ac_test_CXXFLAGS=${CXXFLAGS+y}
3036 ac_save_CXXFLAGS=$CXXFLAGS
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3038 printf %s "checking whether $CXX accepts -g... " >&6; }
3039 if test ${ac_cv_prog_cxx_g+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else case e in #(
3043 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3044 ac_cxx_werror_flag=yes
3045 ac_cv_prog_cxx_g=no
3046 CXXFLAGS="-g"
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049
3050 int
3051 main (void)
3052 {
3053
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 if ac_fn_cxx_try_compile "$LINENO"
3059 then :
3060 ac_cv_prog_cxx_g=yes
3061 else case e in #(
3062 e) CXXFLAGS=""
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3065
3066 int
3067 main (void)
3068 {
3069
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 if ac_fn_cxx_try_compile "$LINENO"
3075 then :
3076
3077 else case e in #(
3078 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3079 CXXFLAGS="-g"
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3082
3083 int
3084 main (void)
3085 {
3086
3087 ;
3088 return 0;
3089 }
3090 _ACEOF
3091 if ac_fn_cxx_try_compile "$LINENO"
3092 then :
3093 ac_cv_prog_cxx_g=yes
3094 fi
3095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3096 esac
3097 fi
3098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3099 esac
3100 fi
3101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
3103 esac
3104 fi
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3106 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3107 if test $ac_test_CXXFLAGS; then
3108 CXXFLAGS=$ac_save_CXXFLAGS
3109 elif test $ac_cv_prog_cxx_g = yes; then
3110 if test "$GXX" = yes; then
3111 CXXFLAGS="-g -O2"
3112 else
3113 CXXFLAGS="-g"
3114 fi
3115 else
3116 if test "$GXX" = yes; then
3117 CXXFLAGS="-O2"
3118 else
3119 CXXFLAGS=
3120 fi
3121 fi
3122 ac_prog_cxx_stdcxx=no
3123 if test x$ac_prog_cxx_stdcxx = xno
3124 then :
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3126 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3127 if test ${ac_cv_prog_cxx_cxx11+y}
3128 then :
3129 printf %s "(cached) " >&6
3130 else case e in #(
3131 e) ac_cv_prog_cxx_cxx11=no
3132 ac_save_CXX=$CXX
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135 $ac_cxx_conftest_cxx11_program
3136 _ACEOF
3137 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3138 do
3139 CXX="$ac_save_CXX $ac_arg"
3140 if ac_fn_cxx_try_compile "$LINENO"
3141 then :
3142 ac_cv_prog_cxx_cxx11=$ac_arg
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.beam
3145 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3146 done
3147 rm -f conftest.$ac_ext
3148 CXX=$ac_save_CXX ;;
3149 esac
3150 fi
3151
3152 if test "x$ac_cv_prog_cxx_cxx11" = xno
3153 then :
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3155 printf "%s\n" "unsupported" >&6; }
3156 else case e in #(
3157 e) if test "x$ac_cv_prog_cxx_cxx11" = x
3158 then :
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160 printf "%s\n" "none needed" >&6; }
3161 else case e in #(
3162 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3163 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3164 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
3165 esac
3166 fi
3167 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3168 ac_prog_cxx_stdcxx=cxx11 ;;
3169 esac
3170 fi
3171 fi
3172 if test x$ac_prog_cxx_stdcxx = xno
3173 then :
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3175 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3176 if test ${ac_cv_prog_cxx_cxx98+y}
3177 then :
3178 printf %s "(cached) " >&6
3179 else case e in #(
3180 e) ac_cv_prog_cxx_cxx98=no
3181 ac_save_CXX=$CXX
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184 $ac_cxx_conftest_cxx98_program
3185 _ACEOF
3186 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3187 do
3188 CXX="$ac_save_CXX $ac_arg"
3189 if ac_fn_cxx_try_compile "$LINENO"
3190 then :
3191 ac_cv_prog_cxx_cxx98=$ac_arg
3192 fi
3193 rm -f core conftest.err conftest.$ac_objext conftest.beam
3194 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3195 done
3196 rm -f conftest.$ac_ext
3197 CXX=$ac_save_CXX ;;
3198 esac
3199 fi
3200
3201 if test "x$ac_cv_prog_cxx_cxx98" = xno
3202 then :
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3204 printf "%s\n" "unsupported" >&6; }
3205 else case e in #(
3206 e) if test "x$ac_cv_prog_cxx_cxx98" = x
3207 then :
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3209 printf "%s\n" "none needed" >&6; }
3210 else case e in #(
3211 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
3212 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
3213 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
3214 esac
3215 fi
3216 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
3217 ac_prog_cxx_stdcxx=cxx98 ;;
3218 esac
3219 fi
3220 fi
3221
3222 ac_ext=cpp
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227
3228
3229 ## Default to build from source
3230 need_to_build="yes"
3231
3232 ## But: Can we use pkg-config?
3233 # Extract the first word of "pkg-config", so it can be a program name with args.
3234 set dummy pkg-config; ac_word=$2
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 printf %s "checking for $ac_word... " >&6; }
3237 if test ${ac_cv_path_have_pkg_config+y}
3238 then :
3239 printf %s "(cached) " >&6
3240 else case e in #(
3241 e) case $have_pkg_config in
3242 [\\/]* | ?:[\\/]*)
3243 ac_cv_path_have_pkg_config="$have_pkg_config" # Let the user override the test with a path.
3244 ;;
3245 *)
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 case $as_dir in #(((
3251 '') as_dir=./ ;;
3252 */) ;;
3253 *) as_dir=$as_dir/ ;;
3254 esac
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3257 ac_cv_path_have_pkg_config="$as_dir$ac_word$ac_exec_ext"
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 test -z "$ac_cv_path_have_pkg_config" && ac_cv_path_have_pkg_config="no"
3266 ;;
3267 esac ;;
3268 esac
3269 fi
3270 have_pkg_config=$ac_cv_path_have_pkg_config
3271 if test -n "$have_pkg_config"; then
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pkg_config" >&5
3273 printf "%s\n" "$have_pkg_config" >&6; }
3274 else
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 printf "%s\n" "no" >&6; }
3277 fi
3278
3279
3280 ## If yes, also check for whether pkg-config knows nlopt
3281 if test x"${have_pkg_config}" != x"no"; then
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows NLopt" >&5
3283 printf %s "checking if pkg-config knows NLopt... " >&6; }
3284 if pkg-config --exists nlopt; then
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 printf "%s\n" "yes" >&6; }
3287 ## Since nlopt has been found, test for minimal version requirement
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config checking NLopt version" >&5
3289 printf %s "checking for pkg-config checking NLopt version... " >&6; }
3290 if pkg-config --atleast-version=2.7.0 nlopt; then
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >= 2.7.0" >&5
3292 printf "%s\n" ">= 2.7.0" >&6; }
3293 nlopt_include=$(pkg-config --cflags nlopt)
3294 nlopt_libs=$(pkg-config --libs nlopt)
3295 ## copy headers to inst/include for reverse LinkingTo dependencies
3296 headers_location=$(pkg-config --variable=includedir nlopt)
3297 need_to_build="no"
3298 else
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: insufficient: NLopt 2.7.0 or later is preferred." >&5
3300 printf "%s\n" "insufficient: NLopt 2.7.0 or later is preferred." >&6; }
3301 fi
3302 else
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 printf "%s\n" "no" >&6; }
3305 fi
3306 fi
3307
3308 ## So do we need to build
3309 if test x"${need_to_build}" != x"no"; then
3310 # Extract the first word of "cmake", so it can be a program name with args.
3311 set dummy cmake; ac_word=$2
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 printf %s "checking for $ac_word... " >&6; }
3314 if test ${ac_cv_path_CMAKE_BIN+y}
3315 then :
3316 printf %s "(cached) " >&6
3317 else case e in #(
3318 e) case $CMAKE_BIN in
3319 [\\/]* | ?:[\\/]*)
3320 ac_cv_path_CMAKE_BIN="$CMAKE_BIN" # Let the user override the test with a path.
3321 ;;
3322 *)
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 case $as_dir in #(((
3328 '') as_dir=./ ;;
3329 */) ;;
3330 *) as_dir=$as_dir/ ;;
3331 esac
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3334 ac_cv_path_CMAKE_BIN="$as_dir$ac_word$ac_exec_ext"
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 test -z "$ac_cv_path_CMAKE_BIN" && ac_cv_path_CMAKE_BIN="no"
3343 ;;
3344 esac ;;
3345 esac
3346 fi
3347 CMAKE_BIN=$ac_cv_path_CMAKE_BIN
3348 if test -n "$CMAKE_BIN"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMAKE_BIN" >&5
3350 printf "%s\n" "$CMAKE_BIN" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356
3357 if test x"${CMAKE_BIN}" = x"no"; then
3358 . tools/cmake_config.sh
3359 if test -z "${CMAKE_BIN}"; then
3360 ## also error to end configure here
3361 as_fn_error $? "Could not find 'cmake'." "$LINENO" 5
3362 fi
3363 fi
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using cmake via $CMAKE_BIN" >&5
3365 printf "%s\n" "using cmake via $CMAKE_BIN" >&6; }
3366 ## 'uname -m' on M1 give x86_64 which is ... not helping
3367 machine=`"${R_HOME}/bin/Rscript" -e 'cat(Sys.info()["machine"])'`
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using NLopt via local cmake build on ${machine}" >&5
3369 printf "%s\n" "using NLopt via local cmake build on ${machine}" >&6; }
3370 tools/cmake_call.sh "$CMAKE_BIN"
3371 ## cmake_call.sh installs into nlopt/include, nlopt/lib
3372 nlopt_include="-Inlopt/include"
3373 nlopt_libs="nlopt/lib/libnlopt.a"
3374 ## copy headers to inst/include for reverse LinkingTo dependencies
3375 headers_location="src/nlopt/include"
3376 fi
3377
3378 ## does the actual copy of the headers into inst/include
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Copying headers found in ${headers_location} into inst/include" >&5
3380 printf "%s\n" "Copying headers found in ${headers_location} into inst/include" >&6; }
3381 cp ${headers_location}/nlopt.* inst/include/
3382
3383 ## Now use all the values
3384 NLOPT_CPPFLAGS="$nlopt_include"
3385
3386 NLOPT_LIBS="$nlopt_libs"
3387
3388 ac_config_files="$ac_config_files src/Makevars"
3389
3390 cat >confcache <<\_ACEOF
3391 # This file is a shell script that caches the results of configure
3392 # tests run on this system so they can be shared between configure
3393 # scripts and configure runs, see configure's option --config-cache.
3394 # It is not useful on other systems. If it contains results you don't
3395 # want to keep, you may remove or edit it.
3396 #
3397 # config.status only pays attention to the cache file if you give it
3398 # the --recheck option to rerun configure.
3399 #
3400 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
3401 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
3402 # following values.
3403
3404 _ACEOF
3405
3406 # The following way of writing the cache mishandles newlines in values,
3407 # but we know of no workaround that is simple, portable, and efficient.
3408 # So, we kill variables containing newlines.
3409 # Ultrix sh set writes to stderr and can't be redirected directly,
3410 # and sets the high bit in the cache file unless we assign to the vars.
3411 (
3412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3413 eval ac_val=\$$ac_var
3414 case $ac_val in #(
3415 *${as_nl}*)
3416 case $ac_var in #(
3417 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3418 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3419 esac
3420 case $ac_var in #(
3421 _ | IFS | as_nl) ;; #(
3422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3423 *) { eval $ac_var=; unset $ac_var;} ;;
3424 esac ;;
3425 esac
3426 done
3427
3428 (set) 2>&1 |
3429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3430 *${as_nl}ac_space=\ *)
3431 # 'set' does not quote correctly, so add quotes: double-quote
3432 # substitution turns \\\\ into \\, and sed turns \\ into \.
3433 sed -n \
3434 "s/'/'\\\\''/g;
3435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3436 ;; #(
3437 *)
3438 # 'set' quotes correctly as required by POSIX, so do not add quotes.
3439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3440 ;;
3441 esac |
3442 sort
3443 ) |
3444 sed '
3445 /^ac_cv_env_/b end
3446 t clear
3447 :clear
3448 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3449 t end
3450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3451 :end' >>confcache
3452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3453 if test -w "$cache_file"; then
3454 if test "x$cache_file" != "x/dev/null"; then
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3456 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3457 if test ! -f "$cache_file" || test -h "$cache_file"; then
3458 cat confcache >"$cache_file"
3459 else
3460 case $cache_file in #(
3461 */* | ?:*)
3462 mv -f confcache "$cache_file"$$ &&
3463 mv -f "$cache_file"$$ "$cache_file" ;; #(
3464 *)
3465 mv -f confcache "$cache_file" ;;
3466 esac
3467 fi
3468 fi
3469 else
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3471 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3472 fi
3473 fi
3474 rm -f confcache
3475
3476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3477 # Let make expand exec_prefix.
3478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3479
3480 # Transform confdefs.h into DEFS.
3481 # Protect against shell expansion while executing Makefile rules.
3482 # Protect against Makefile macro expansion.
3483 #
3484 # If the first sed substitution is executed (which looks for macros that
3485 # take arguments), then branch to the quote section. Otherwise,
3486 # look for a macro that doesn't take arguments.
3487 ac_script='
3488 :mline
3489 /\\$/{
3490 N
3491 s,\\\n,,
3492 b mline
3493 }
3494 t clear
3495 :clear
3496 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3497 t quote
3498 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3499 t quote
3500 b any
3501 :quote
3502 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3503 s/\$/$$/g
3504 H
3505 :any
3506 ${
3507 g
3508 s/^\n//
3509 s/\n/ /g
3510 p
3511 }
3512 '
3513 DEFS=`sed -n "$ac_script" confdefs.h`
3514
3515
3516 ac_libobjs=
3517 ac_ltlibobjs=
3518 U=
3519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3520 # 1. Remove the extension, and $U if already installed.
3521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3522 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3524 # will be set to the directory where LIBOBJS objects are built.
3525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3527 done
3528 LIBOBJS=$ac_libobjs
3529
3530 LTLIBOBJS=$ac_ltlibobjs
3531
3532
3533
3534 : "${CONFIG_STATUS=./config.status}"
3535 ac_write_fail=0
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3539 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3540 as_write_fail=0
3541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3542 #! $SHELL
3543 # Generated by $as_me.
3544 # Run this file to recreate the current configuration.
3545 # Compiler output produced by configure, useful for debugging
3546 # configure, is in config.log if it exists.
3547
3548 debug=false
3549 ac_cs_recheck=false
3550 ac_cs_silent=false
3551
3552 SHELL=\${CONFIG_SHELL-$SHELL}
3553 export SHELL
3554 _ASEOF
3555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3556 ## -------------------- ##
3557 ## M4sh Initialization. ##
3558 ## -------------------- ##
3559
3560 # Be more Bourne compatible
3561 DUALCASE=1; export DUALCASE # for MKS sh
3562 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3563 then :
3564 emulate sh
3565 NULLCMD=:
3566 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3567 # is contrary to our usage. Disable this feature.
3568 alias -g '${1+"$@"}'='"$@"'
3569 setopt NO_GLOB_SUBST
3570 else case e in #(
3571 e) case `(set -o) 2>/dev/null` in #(
3572 *posix*) :
3573 set -o posix ;; #(
3574 *) :
3575 ;;
3576 esac ;;
3577 esac
3578 fi
3579
3580
3581
3582 # Reset variables that may have inherited troublesome values from
3583 # the environment.
3584
3585 # IFS needs to be set, to space, tab, and newline, in precisely that order.
3586 # (If _AS_PATH_WALK were called with IFS unset, it would have the
3587 # side effect of setting IFS to empty, thus disabling word splitting.)
3588 # Quoting is to prevent editors from complaining about space-tab.
3589 as_nl='
3590 '
3591 export as_nl
3592 IFS=" "" $as_nl"
3593
3594 PS1='$ '
3595 PS2='> '
3596 PS4='+ '
3597
3598 # Ensure predictable behavior from utilities with locale-dependent output.
3599 LC_ALL=C
3600 export LC_ALL
3601 LANGUAGE=C
3602 export LANGUAGE
3603
3604 # We cannot yet rely on "unset" to work, but we need these variables
3605 # to be unset--not just set to an empty or harmless value--now, to
3606 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3607 # also avoids known problems related to "unset" and subshell syntax
3608 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3609 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3610 do eval test \${$as_var+y} \
3611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3612 done
3613
3614 # Ensure that fds 0, 1, and 2 are open.
3615 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3616 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3617 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3618
3619 # The user is always right.
3620 if ${PATH_SEPARATOR+false} :; then
3621 PATH_SEPARATOR=:
3622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3624 PATH_SEPARATOR=';'
3625 }
3626 fi
3627
3628
3629 # Find who we are. Look in the path if we contain no directory separator.
3630 as_myself=
3631 case $0 in #((
3632 *[\\/]* ) as_myself=$0 ;;
3633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 case $as_dir in #(((
3638 '') as_dir=./ ;;
3639 */) ;;
3640 *) as_dir=$as_dir/ ;;
3641 esac
3642 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3643 done
3644 IFS=$as_save_IFS
3645
3646 ;;
3647 esac
3648 # We did not find ourselves, most probably we were run as 'sh COMMAND'
3649 # in which case we are not to be found in the path.
3650 if test "x$as_myself" = x; then
3651 as_myself=$0
3652 fi
3653 if test ! -f "$as_myself"; then
3654 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3655 exit 1
3656 fi
3657
3658
3659
3660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3661 # ----------------------------------------
3662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3664 # script with STATUS, using 1 if that was 0.
3665 as_fn_error ()
3666 {
3667 as_status=$1; test $as_status -eq 0 && as_status=1
3668 if test "$4"; then
3669 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3671 fi
3672 printf "%s\n" "$as_me: error: $2" >&2
3673 as_fn_exit $as_status
3674 } # as_fn_error
3675
3676
3677 # as_fn_set_status STATUS
3678 # -----------------------
3679 # Set $? to STATUS, without forking.
3680 as_fn_set_status ()
3681 {
3682 return $1
3683 } # as_fn_set_status
3684
3685 # as_fn_exit STATUS
3686 # -----------------
3687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3688 as_fn_exit ()
3689 {
3690 set +e
3691 as_fn_set_status $1
3692 exit $1
3693 } # as_fn_exit
3694
3695 # as_fn_unset VAR
3696 # ---------------
3697 # Portably unset VAR.
3698 as_fn_unset ()
3699 {
3700 { eval $1=; unset $1;}
3701 }
3702 as_unset=as_fn_unset
3703
3704 # as_fn_append VAR VALUE
3705 # ----------------------
3706 # Append the text in VALUE to the end of the definition contained in VAR. Take
3707 # advantage of any shell optimizations that allow amortized linear growth over
3708 # repeated appends, instead of the typical quadratic growth present in naive
3709 # implementations.
3710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3711 then :
3712 eval 'as_fn_append ()
3713 {
3714 eval $1+=\$2
3715 }'
3716 else case e in #(
3717 e) as_fn_append ()
3718 {
3719 eval $1=\$$1\$2
3720 } ;;
3721 esac
3722 fi # as_fn_append
3723
3724 # as_fn_arith ARG...
3725 # ------------------
3726 # Perform arithmetic evaluation on the ARGs, and store the result in the
3727 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3728 # must be portable across $(()) and expr.
3729 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3730 then :
3731 eval 'as_fn_arith ()
3732 {
3733 as_val=$(( $* ))
3734 }'
3735 else case e in #(
3736 e) as_fn_arith ()
3737 {
3738 as_val=`expr "$@" || test $? -eq 1`
3739 } ;;
3740 esac
3741 fi # as_fn_arith
3742
3743
3744 if expr a : '\(a\)' >/dev/null 2>&1 &&
3745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3746 as_expr=expr
3747 else
3748 as_expr=false
3749 fi
3750
3751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3752 as_basename=basename
3753 else
3754 as_basename=false
3755 fi
3756
3757 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3758 as_dirname=dirname
3759 else
3760 as_dirname=false
3761 fi
3762
3763 as_me=`$as_basename -- "$0" ||
3764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3765 X"$0" : 'X\(//\)$' \| \
3766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3767 printf "%s\n" X/"$0" |
3768 sed '/^.*\/\([^/][^/]*\)\/*$/{
3769 s//\1/
3770 q
3771 }
3772 /^X\/\(\/\/\)$/{
3773 s//\1/
3774 q
3775 }
3776 /^X\/\(\/\).*/{
3777 s//\1/
3778 q
3779 }
3780 s/.*/./; q'`
3781
3782 # Avoid depending upon Character Ranges.
3783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3786 as_cr_digits='0123456789'
3787 as_cr_alnum=$as_cr_Letters$as_cr_digits
3788
3789
3790 # Determine whether it's possible to make 'echo' print without a newline.
3791 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3792 # for compatibility with existing Makefiles.
3793 ECHO_C= ECHO_N= ECHO_T=
3794 case `echo -n x` in #(((((
3795 -n*)
3796 case `echo 'xy\c'` in
3797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3798 xy) ECHO_C='\c';;
3799 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3800 ECHO_T=' ';;
3801 esac;;
3802 *)
3803 ECHO_N='-n';;
3804 esac
3805
3806 # For backward compatibility with old third-party macros, we provide
3807 # the shell variables $as_echo and $as_echo_n. New code should use
3808 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3809 as_echo='printf %s\n'
3810 as_echo_n='printf %s'
3811
3812 rm -f conf$$ conf$$.exe conf$$.file
3813 if test -d conf$$.dir; then
3814 rm -f conf$$.dir/conf$$.file
3815 else
3816 rm -f conf$$.dir
3817 mkdir conf$$.dir 2>/dev/null
3818 fi
3819 if (echo >conf$$.file) 2>/dev/null; then
3820 if ln -s conf$$.file conf$$ 2>/dev/null; then
3821 as_ln_s='ln -s'
3822 # ... but there are two gotchas:
3823 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
3824 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
3825 # In both cases, we have to default to 'cp -pR'.
3826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3827 as_ln_s='cp -pR'
3828 elif ln conf$$.file conf$$ 2>/dev/null; then
3829 as_ln_s=ln
3830 else
3831 as_ln_s='cp -pR'
3832 fi
3833 else
3834 as_ln_s='cp -pR'
3835 fi
3836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3837 rmdir conf$$.dir 2>/dev/null
3838
3839
3840 # as_fn_mkdir_p
3841 # -------------
3842 # Create "$as_dir" as a directory, including parents if necessary.
3843 as_fn_mkdir_p ()
3844 {
3845
3846 case $as_dir in #(
3847 -*) as_dir=./$as_dir;;
3848 esac
3849 test -d "$as_dir" || eval $as_mkdir_p || {
3850 as_dirs=
3851 while :; do
3852 case $as_dir in #(
3853 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3854 *) as_qdir=$as_dir;;
3855 esac
3856 as_dirs="'$as_qdir' $as_dirs"
3857 as_dir=`$as_dirname -- "$as_dir" ||
3858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3859 X"$as_dir" : 'X\(//\)[^/]' \| \
3860 X"$as_dir" : 'X\(//\)$' \| \
3861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3862 printf "%s\n" X"$as_dir" |
3863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3864 s//\1/
3865 q
3866 }
3867 /^X\(\/\/\)[^/].*/{
3868 s//\1/
3869 q
3870 }
3871 /^X\(\/\/\)$/{
3872 s//\1/
3873 q
3874 }
3875 /^X\(\/\).*/{
3876 s//\1/
3877 q
3878 }
3879 s/.*/./; q'`
3880 test -d "$as_dir" && break
3881 done
3882 test -z "$as_dirs" || eval "mkdir $as_dirs"
3883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3884
3885
3886 } # as_fn_mkdir_p
3887 if mkdir -p . 2>/dev/null; then
3888 as_mkdir_p='mkdir -p "$as_dir"'
3889 else
3890 test -d ./-p && rmdir ./-p
3891 as_mkdir_p=false
3892 fi
3893
3894
3895 # as_fn_executable_p FILE
3896 # -----------------------
3897 # Test if FILE is an executable regular file.
3898 as_fn_executable_p ()
3899 {
3900 test -f "$1" && test -x "$1"
3901 } # as_fn_executable_p
3902 as_test_x='test -x'
3903 as_executable_p=as_fn_executable_p
3904
3905 # Sed expression to map a string onto a valid CPP name.
3906 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3907 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
3908
3909 # Sed expression to map a string onto a valid variable name.
3910 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3911 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
3912
3913
3914 exec 6>&1
3915 ## ----------------------------------- ##
3916 ## Main body of $CONFIG_STATUS script. ##
3917 ## ----------------------------------- ##
3918 _ASEOF
3919 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3920
3921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3922 # Save the log message, to keep $0 and so on meaningful, and to
3923 # report actual input values of CONFIG_FILES etc. instead of their
3924 # values after options handling.
3925 ac_log="
3926 This file was extended by nloptr $as_me 2.0.0, which was
3927 generated by GNU Autoconf 2.72. Invocation command line was
3928
3929 CONFIG_FILES = $CONFIG_FILES
3930 CONFIG_HEADERS = $CONFIG_HEADERS
3931 CONFIG_LINKS = $CONFIG_LINKS
3932 CONFIG_COMMANDS = $CONFIG_COMMANDS
3933 $ $0 $@
3934
3935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3936 "
3937
3938 _ACEOF
3939
3940 case $ac_config_files in *"
3941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3942 esac
3943
3944
3945
3946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3947 # Files that config.status was made for.
3948 config_files="$ac_config_files"
3949
3950 _ACEOF
3951
3952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3953 ac_cs_usage="\
3954 '$as_me' instantiates files and other configuration actions
3955 from templates according to the current configuration. Unless the files
3956 and actions are specified as TAGs, all are instantiated by default.
3957
3958 Usage: $0 [OPTION]... [TAG]...
3959
3960 -h, --help print this help, then exit
3961 -V, --version print version number and configuration settings, then exit
3962 --config print configuration, then exit
3963 -q, --quiet, --silent
3964 do not print progress messages
3965 -d, --debug don't remove temporary files
3966 --recheck update $as_me by reconfiguring in the same conditions
3967 --file=FILE[:TEMPLATE]
3968 instantiate the configuration file FILE
3969
3970 Configuration files:
3971 $config_files
3972
3973 Report bugs to the package provider."
3974
3975 _ACEOF
3976 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
3977 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
3978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3979 ac_cs_config='$ac_cs_config_escaped'
3980 ac_cs_version="\\
3981 nloptr config.status 2.0.0
3982 configured by $0, generated by GNU Autoconf 2.72,
3983 with options \\"\$ac_cs_config\\"
3984
3985 Copyright (C) 2023 Free Software Foundation, Inc.
3986 This config.status script is free software; the Free Software Foundation
3987 gives unlimited permission to copy, distribute and modify it."
3988
3989 ac_pwd='$ac_pwd'
3990 srcdir='$srcdir'
3991 test -n "\$AWK" || AWK=awk
3992 _ACEOF
3993
3994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3995 # The default lists apply if the user does not specify any file.
3996 ac_need_defaults=:
3997 while test $# != 0
3998 do
3999 case $1 in
4000 --*=?*)
4001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4003 ac_shift=:
4004 ;;
4005 --*=)
4006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4007 ac_optarg=
4008 ac_shift=:
4009 ;;
4010 *)
4011 ac_option=$1
4012 ac_optarg=$2
4013 ac_shift=shift
4014 ;;
4015 esac
4016
4017 case $ac_option in
4018 # Handling of the options.
4019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4020 ac_cs_recheck=: ;;
4021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4022 printf "%s\n" "$ac_cs_version"; exit ;;
4023 --config | --confi | --conf | --con | --co | --c )
4024 printf "%s\n" "$ac_cs_config"; exit ;;
4025 --debug | --debu | --deb | --de | --d | -d )
4026 debug=: ;;
4027 --file | --fil | --fi | --f )
4028 $ac_shift
4029 case $ac_optarg in
4030 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4031 '') as_fn_error $? "missing file argument" ;;
4032 esac
4033 as_fn_append CONFIG_FILES " '$ac_optarg'"
4034 ac_need_defaults=false;;
4035 --he | --h | --help | --hel | -h )
4036 printf "%s\n" "$ac_cs_usage"; exit ;;
4037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4038 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4039 ac_cs_silent=: ;;
4040
4041 # This is an error.
4042 -*) as_fn_error $? "unrecognized option: '$1'
4043 Try '$0 --help' for more information." ;;
4044
4045 *) as_fn_append ac_config_targets " $1"
4046 ac_need_defaults=false ;;
4047
4048 esac
4049 shift
4050 done
4051
4052 ac_configure_extra_args=
4053
4054 if $ac_cs_silent; then
4055 exec 6>/dev/null
4056 ac_configure_extra_args="$ac_configure_extra_args --silent"
4057 fi
4058
4059 _ACEOF
4060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4061 if \$ac_cs_recheck; then
4062 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4063 shift
4064 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4065 CONFIG_SHELL='$SHELL'
4066 export CONFIG_SHELL
4067 exec "\$@"
4068 fi
4069
4070 _ACEOF
4071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4072 exec 5>>config.log
4073 {
4074 echo
4075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4076 ## Running $as_me. ##
4077 _ASBOX
4078 printf "%s\n" "$ac_log"
4079 } >&5
4080
4081 _ACEOF
4082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4083 _ACEOF
4084
4085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4086
4087 # Handling of arguments.
4088 for ac_config_target in $ac_config_targets
4089 do
4090 case $ac_config_target in
4091 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
4092
4093 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
4094 esac
4095 done
4096
4097
4098 # If the user did not use the arguments to specify the items to instantiate,
4099 # then the envvar interface is used. Set only those that are not.
4100 # We use the long form for the default assignment because of an extremely
4101 # bizarre bug on SunOS 4.1.3.
4102 if $ac_need_defaults; then
4103 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4104 fi
4105
4106 # Have a temporary directory for convenience. Make it in the build tree
4107 # simply because there is no reason against having it here, and in addition,
4108 # creating and moving files from /tmp can sometimes cause problems.
4109 # Hook for its removal unless debugging.
4110 # Note that there is a small window in which the directory will not be cleaned:
4111 # after its creation but before its name has been assigned to '$tmp'.
4112 $debug ||
4113 {
4114 tmp= ac_tmp=
4115 trap 'exit_status=$?
4116 : "${ac_tmp:=$tmp}"
4117 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4118 ' 0
4119 trap 'as_fn_exit 1' 1 2 13 15
4120 }
4121 # Create a (secure) tmp directory for tmp files.
4122
4123 {
4124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4125 test -d "$tmp"
4126 } ||
4127 {
4128 tmp=./conf$$-$RANDOM
4129 (umask 077 && mkdir "$tmp")
4130 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4131 ac_tmp=$tmp
4132
4133 # Set up the scripts for CONFIG_FILES section.
4134 # No need to generate them if there are no CONFIG_FILES.
4135 # This happens for instance with './config.status config.h'.
4136 if test -n "$CONFIG_FILES"; then
4137
4138
4139 ac_cr=`echo X | tr X '\015'`
4140 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4141 # But we know of no other shell where ac_cr would be empty at this
4142 # point, so we can use a bashism as a fallback.
4143 if test "x$ac_cr" = x; then
4144 eval ac_cr=\$\'\\r\'
4145 fi
4146 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4147 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4148 ac_cs_awk_cr='\\r'
4149 else
4150 ac_cs_awk_cr=$ac_cr
4151 fi
4152
4153 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4154 _ACEOF
4155
4156
4157 {
4158 echo "cat >conf$$subs.awk <<_ACEOF" &&
4159 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4160 echo "_ACEOF"
4161 } >conf$$subs.sh ||
4162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4163 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4164 ac_delim='%!_!# '
4165 for ac_last_try in false false false false false :; do
4166 . ./conf$$subs.sh ||
4167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4168
4169 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4170 if test $ac_delim_n = $ac_delim_num; then
4171 break
4172 elif $ac_last_try; then
4173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4174 else
4175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4176 fi
4177 done
4178 rm -f conf$$subs.sh
4179
4180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4181 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4182 _ACEOF
4183 sed -n '
4184 h
4185 s/^/S["/; s/!.*/"]=/
4186 p
4187 g
4188 s/^[^!]*!//
4189 :repl
4190 t repl
4191 s/'"$ac_delim"'$//
4192 t delim
4193 :nl
4194 h
4195 s/\(.\{148\}\)..*/\1/
4196 t more1
4197 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4198 p
4199 n
4200 b repl
4201 :more1
4202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4203 p
4204 g
4205 s/.\{148\}//
4206 t nl
4207 :delim
4208 h
4209 s/\(.\{148\}\)..*/\1/
4210 t more2
4211 s/["\\]/\\&/g; s/^/"/; s/$/"/
4212 p
4213 b
4214 :more2
4215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4216 p
4217 g
4218 s/.\{148\}//
4219 t delim
4220 ' <conf$$subs.awk | sed '
4221 /^[^""]/{
4222 N
4223 s/\n//
4224 }
4225 ' >>$CONFIG_STATUS || ac_write_fail=1
4226 rm -f conf$$subs.awk
4227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4228 _ACAWK
4229 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4230 for (key in S) S_is_set[key] = 1
4231 FS = ""
4232
4233 }
4234 {
4235 line = $ 0
4236 nfields = split(line, field, "@")
4237 substed = 0
4238 len = length(field[1])
4239 for (i = 2; i < nfields; i++) {
4240 key = field[i]
4241 keylen = length(key)
4242 if (S_is_set[key]) {
4243 value = S[key]
4244 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4245 len += length(value) + length(field[++i])
4246 substed = 1
4247 } else
4248 len += 1 + keylen
4249 }
4250
4251 print line
4252 }
4253
4254 _ACAWK
4255 _ACEOF
4256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4257 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4258 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4259 else
4260 cat
4261 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4262 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4263 _ACEOF
4264
4265 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4266 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4267 # trailing colons and then remove the whole line if VPATH becomes empty
4268 # (actually we leave an empty line to preserve line numbers).
4269 if test "x$srcdir" = x.; then
4270 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4271 h
4272 s///
4273 s/^/:/
4274 s/[ ]*$/:/
4275 s/:\$(srcdir):/:/g
4276 s/:\${srcdir}:/:/g
4277 s/:@srcdir@:/:/g
4278 s/^:*//
4279 s/:*$//
4280 x
4281 s/\(=[ ]*\).*/\1/
4282 G
4283 s/\n//
4284 s/^[^=]*=[ ]*$//
4285 }'
4286 fi
4287
4288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4289 fi # test -n "$CONFIG_FILES"
4290
4291
4292 eval set X " :F $CONFIG_FILES "
4293 shift
4294 for ac_tag
4295 do
4296 case $ac_tag in
4297 :[FHLC]) ac_mode=$ac_tag; continue;;
4298 esac
4299 case $ac_mode$ac_tag in
4300 :[FHL]*:*);;
4301 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
4302 :[FH]-) ac_tag=-:-;;
4303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4304 esac
4305 ac_save_IFS=$IFS
4306 IFS=:
4307 set x $ac_tag
4308 IFS=$ac_save_IFS
4309 shift
4310 ac_file=$1
4311 shift
4312
4313 case $ac_mode in
4314 :L) ac_source=$1;;
4315 :[FH])
4316 ac_file_inputs=
4317 for ac_f
4318 do
4319 case $ac_f in
4320 -) ac_f="$ac_tmp/stdin";;
4321 *) # Look for the file first in the build tree, then in the source tree
4322 # (if the path is not absolute). The absolute path cannot be DOS-style,
4323 # because $ac_f cannot contain ':'.
4324 test -f "$ac_f" ||
4325 case $ac_f in
4326 [\\/$]*) false;;
4327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4328 esac ||
4329 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
4330 esac
4331 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4332 as_fn_append ac_file_inputs " '$ac_f'"
4333 done
4334
4335 # Let's still pretend it is 'configure' which instantiates (i.e., don't
4336 # use $as_me), people would be surprised to read:
4337 # /* config.h. Generated by config.status. */
4338 configure_input='Generated from '`
4339 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4340 `' by configure.'
4341 if test x"$ac_file" != x-; then
4342 configure_input="$ac_file. $configure_input"
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4344 printf "%s\n" "$as_me: creating $ac_file" >&6;}
4345 fi
4346 # Neutralize special characters interpreted by sed in replacement strings.
4347 case $configure_input in #(
4348 *\&* | *\|* | *\\* )
4349 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4351 *) ac_sed_conf_input=$configure_input;;
4352 esac
4353
4354 case $ac_tag in
4355 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4357 esac
4358 ;;
4359 esac
4360
4361 ac_dir=`$as_dirname -- "$ac_file" ||
4362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4363 X"$ac_file" : 'X\(//\)[^/]' \| \
4364 X"$ac_file" : 'X\(//\)$' \| \
4365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4366 printf "%s\n" X"$ac_file" |
4367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4368 s//\1/
4369 q
4370 }
4371 /^X\(\/\/\)[^/].*/{
4372 s//\1/
4373 q
4374 }
4375 /^X\(\/\/\)$/{
4376 s//\1/
4377 q
4378 }
4379 /^X\(\/\).*/{
4380 s//\1/
4381 q
4382 }
4383 s/.*/./; q'`
4384 as_dir="$ac_dir"; as_fn_mkdir_p
4385 ac_builddir=.
4386
4387 case "$ac_dir" in
4388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4389 *)
4390 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4391 # A ".." for each directory in $ac_dir_suffix.
4392 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4393 case $ac_top_builddir_sub in
4394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4396 esac ;;
4397 esac
4398 ac_abs_top_builddir=$ac_pwd
4399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4400 # for backward compatibility:
4401 ac_top_builddir=$ac_top_build_prefix
4402
4403 case $srcdir in
4404 .) # We are building in place.
4405 ac_srcdir=.
4406 ac_top_srcdir=$ac_top_builddir_sub
4407 ac_abs_top_srcdir=$ac_pwd ;;
4408 [\\/]* | ?:[\\/]* ) # Absolute name.
4409 ac_srcdir=$srcdir$ac_dir_suffix;
4410 ac_top_srcdir=$srcdir
4411 ac_abs_top_srcdir=$srcdir ;;
4412 *) # Relative name.
4413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4414 ac_top_srcdir=$ac_top_build_prefix$srcdir
4415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4416 esac
4417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4418
4419
4420 case $ac_mode in
4421 :F)
4422 #
4423 # CONFIG_FILE
4424 #
4425
4426 _ACEOF
4427
4428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4429 # If the template does not know about datarootdir, expand it.
4430 # FIXME: This hack should be removed a few years after 2.60.
4431 ac_datarootdir_hack=; ac_datarootdir_seen=
4432 ac_sed_dataroot='
4433 /datarootdir/ {
4434 p
4435 q
4436 }
4437 /@datadir@/p
4438 /@docdir@/p
4439 /@infodir@/p
4440 /@localedir@/p
4441 /@mandir@/p'
4442 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4443 *datarootdir*) ac_datarootdir_seen=yes;;
4444 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4446 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4447 _ACEOF
4448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4449 ac_datarootdir_hack='
4450 s&@datadir@&$datadir&g
4451 s&@docdir@&$docdir&g
4452 s&@infodir@&$infodir&g
4453 s&@localedir@&$localedir&g
4454 s&@mandir@&$mandir&g
4455 s&\\\${datarootdir}&$datarootdir&g' ;;
4456 esac
4457 _ACEOF
4458
4459 # Neutralize VPATH when '$srcdir' = '.'.
4460 # Shell code in configure.ac might set extrasub.
4461 # FIXME: do we really want to maintain this feature?
4462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4463 ac_sed_extra="$ac_vpsub
4464 $extrasub
4465 _ACEOF
4466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4467 :t
4468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4469 s|@configure_input@|$ac_sed_conf_input|;t t
4470 s&@top_builddir@&$ac_top_builddir_sub&;t t
4471 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4472 s&@srcdir@&$ac_srcdir&;t t
4473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4474 s&@top_srcdir@&$ac_top_srcdir&;t t
4475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4476 s&@builddir@&$ac_builddir&;t t
4477 s&@abs_builddir@&$ac_abs_builddir&;t t
4478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4479 $ac_datarootdir_hack
4480 "
4481 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4482 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4483
4484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4485 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4487 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
4489 which seems to be undefined. Please make sure it is defined" >&5
4490 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
4491 which seems to be undefined. Please make sure it is defined" >&2;}
4492
4493 rm -f "$ac_tmp/stdin"
4494 case $ac_file in
4495 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4496 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4497 esac \
4498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4499 ;;
4500
4501
4502
4503 esac
4504
4505 done # for ac_tag
4506
4507
4508 as_fn_exit 0
4509 _ACEOF
4510 ac_clean_files=$ac_clean_files_save
4511
4512 test $ac_write_fail = 0 ||
4513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4514
4515
4516 # configure is writing to config.log, and then calls config.status.
4517 # config.status does its own redirection, appending to config.log.
4518 # Unfortunately, on DOS this fails, as config.log is still kept open
4519 # by configure, so config.status won't be able to write to it; its
4520 # output is simply discarded. So we exec the FD to /dev/null,
4521 # effectively closing config.log, so it can be properly (re)opened and
4522 # appended to by config.status. When coming back to configure, we
4523 # need to make the FD available again.
4524 if test "$no_create" != yes; then
4525 ac_cs_success=:
4526 ac_config_status_args=
4527 test "$silent" = yes &&
4528 ac_config_status_args="$ac_config_status_args --quiet"
4529 exec 5>/dev/null
4530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4531 exec 5>>config.log
4532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4533 # would make configure fail if this is the last instruction.
4534 $ac_cs_success || as_fn_exit 1
4535 fi
4536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4538 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4539 fi
4540
4541