Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.70 for ddpt 0.97.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
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 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 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 $as_nop
230 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 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
319 {
320 return $?
321 }
322 as_nop=as_fn_nop
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414 fi # as_fn_arith
415
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
420 {
421 return $?
422 }
423 as_nop=as_fn_nop
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535 *)
536 ECHO_N='-n';;
537 esac
538
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
544
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
592
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598 #
599 # Initializations.
600 #
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
609
610 # Identity of this package.
611 PACKAGE_NAME='ddpt'
612 PACKAGE_TARNAME='ddpt'
613 PACKAGE_VERSION='0.97'
614 PACKAGE_STRING='ddpt 0.97'
615 PACKAGE_BUGREPORT='[email protected]'
616 PACKAGE_URL=''
617
618 # Factoring default headers for most tests.
619 ac_includes_default="\
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
623 #endif
624 #ifdef HAVE_STDLIB_H
625 # include <stdlib.h>
626 #endif
627 #ifdef HAVE_STRING_H
628 # include <string.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
645 #ifdef HAVE_UNISTD_H
646 # include <unistd.h>
647 #endif"
648
649 ac_header_c_list=
650 ac_subst_vars='am__EXEEXT_FALSE
651 am__EXEEXT_TRUE
652 LTLIBOBJS
653 LIBOBJS
654 HAVE_SGUTILS_FALSE
655 HAVE_SGUTILS_TRUE
656 SGUTILS_LIBS
657 DEBUG_FALSE
658 DEBUG_TRUE
659 OS_ANDROID_FALSE
660 OS_ANDROID_TRUE
661 OS_WIN32_CYGWIN_FALSE
662 OS_WIN32_CYGWIN_TRUE
663 OS_WIN32_MINGW_FALSE
664 OS_WIN32_MINGW_TRUE
665 OS_SOLARIS_FALSE
666 OS_SOLARIS_TRUE
667 OS_LINUX_FALSE
668 OS_LINUX_TRUE
669 OS_FREEBSD_FALSE
670 OS_FREEBSD_TRUE
671 os_deps
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 EGREP
681 GREP
682 ac_ct_AR
683 AR
684 am__fastdepCXX_FALSE
685 am__fastdepCXX_TRUE
686 CXXDEPMODE
687 ac_ct_CXX
688 CXXFLAGS
689 CXX
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_maintainer_mode
781 enable_dependency_tracking
782 enable_debug
783 enable_linuxbsg
784 enable_libsgutils
785 enable_scsistrings
786 enable_nvme_supp
787 enable_fast_lebe
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CXX
798 CXXFLAGS
799 CCC'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: \`$ac_useropt'"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: \`$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -runstatedir | --runstatedir | --runstatedi | --runstated \
1090 | --runstate | --runstat | --runsta | --runst | --runs \
1091 | --run | --ru | --r)
1092 ac_prev=runstatedir ;;
1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095 | --run=* | --ru=* | --r=*)
1096 runstatedir=$ac_optarg ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: \`$ac_useropt'"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir runstatedir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 printf "%s\n" X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures ddpt 0.97 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/ddpt]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of ddpt 0.97:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful (and
1431 sometimes confusing) to the casual installer
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-debug Turn on debugging
1437 --disable-linuxbsg option ignored, this is placeholder
1438 --disable-libsgutils ignore libsgutils if present
1439 --disable-scsistrings Disable full SCSI sense strings
1440 --disable-nvme-supp remove all or most NVMe code
1441 --disable-fast-lebe use generic little-endian/big-endian code instead
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <[email protected]>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for configure.gnu first; this name is used for a wrapper for
1504 # Metaconfig's "Configure" on case-insensitive file systems.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 ddpt configure 0.97
1522 generated by GNU Autoconf 2.70
1523
1524 Copyright (C) 2020 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext conftest.beam
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 printf "%s\n" "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext
1561 then :
1562 ac_retval=0
1563 else $as_nop
1564 printf "%s\n" "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_cxx_try_compile LINENO
1575 # ----------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_cxx_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest.beam
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 printf "%s\n" "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_cxx_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext
1600 then :
1601 ac_retval=0
1602 else $as_nop
1603 printf "%s\n" "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_cxx_try_compile
1612
1613 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists and can be compiled using the include files in
1616 # INCLUDES, setting the cache variable VAR accordingly.
1617 ac_fn_c_check_header_compile ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 printf %s "checking for $2... " >&6; }
1622 if eval test \${$3+y}
1623 then :
1624 printf %s "(cached) " >&6
1625 else $as_nop
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1628 $4
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"
1632 then :
1633 eval "$3=yes"
1634 else $as_nop
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 printf "%s\n" "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 printf "%s\n" "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }
1675 then :
1676 ac_retval=0
1677 else $as_nop
1678 printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685 # interfere with the next link command; also delete a directory that is
1686 # left behind by Apple's compiler. We do this before executing the actions.
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_link
1692
1693 # ac_fn_c_check_func LINENO FUNC VAR
1694 # ----------------------------------
1695 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 printf %s "checking for $2... " >&6; }
1701 if eval test \${$3+y}
1702 then :
1703 printf %s "(cached) " >&6
1704 else $as_nop
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1709 #define $2 innocuous_$2
1710
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $2 (); below. */
1713
1714 #include <limits.h>
1715 #undef $2
1716
1717 /* Override any GCC internal prototype to avoid an error.
1718 Use char because int might match the return type of a GCC
1719 builtin and then its argument prototype would still apply. */
1720 #ifdef __cplusplus
1721 extern "C"
1722 #endif
1723 char $2 ();
1724 /* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727 #if defined __stub_$2 || defined __stub___$2
1728 choke me
1729 #endif
1730
1731 int
1732 main (void)
1733 {
1734 return $2 ();
1735 ;
1736 return 0;
1737 }
1738 _ACEOF
1739 if ac_fn_c_try_link "$LINENO"
1740 then :
1741 eval "$3=yes"
1742 else $as_nop
1743 eval "$3=no"
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1746 conftest$ac_exeext conftest.$ac_ext
1747 fi
1748 eval ac_res=\$$3
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 printf "%s\n" "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_func
1754 ac_configure_args_raw=
1755 for ac_arg
1756 do
1757 case $ac_arg in
1758 *\'*)
1759 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 esac
1761 as_fn_append ac_configure_args_raw " '$ac_arg'"
1762 done
1763
1764 case $ac_configure_args_raw in
1765 *$as_nl*)
1766 ac_safe_unquote= ;;
1767 *)
1768 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1769 ac_unsafe_a="$ac_unsafe_z#~"
1770 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1771 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1772 esac
1773
1774 cat >config.log <<_ACEOF
1775 This file contains any messages produced by compilers while
1776 running configure, to aid debugging if configure makes a mistake.
1777
1778 It was created by ddpt $as_me 0.97, which was
1779 generated by GNU Autoconf 2.70. Invocation command line was
1780
1781 $ $0$ac_configure_args_raw
1782
1783 _ACEOF
1784 exec 5>>config.log
1785 {
1786 cat <<_ASUNAME
1787 ## --------- ##
1788 ## Platform. ##
1789 ## --------- ##
1790
1791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1796
1797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1799
1800 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1801 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1804 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1805 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1806 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1807
1808 _ASUNAME
1809
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1812 do
1813 IFS=$as_save_IFS
1814 case $as_dir in #(((
1815 '') as_dir=./ ;;
1816 */) ;;
1817 *) as_dir=$as_dir/ ;;
1818 esac
1819 printf "%s\n" "PATH: $as_dir"
1820 done
1821 IFS=$as_save_IFS
1822
1823 } >&5
1824
1825 cat >&5 <<_ACEOF
1826
1827
1828 ## ----------- ##
1829 ## Core tests. ##
1830 ## ----------- ##
1831
1832 _ACEOF
1833
1834
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1840 ac_configure_args=
1841 ac_configure_args0=
1842 ac_configure_args1=
1843 ac_must_keep_next=false
1844 for ac_pass in 1 2
1845 do
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 | -silent | --silent | --silen | --sile | --sil)
1852 continue ;;
1853 *\'*)
1854 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 case $ac_pass in
1857 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858 2)
1859 as_fn_append ac_configure_args1 " '$ac_arg'"
1860 if test $ac_must_keep_next = true; then
1861 ac_must_keep_next=false # Got value, back to normal.
1862 else
1863 case $ac_arg in
1864 *=* | --config-cache | -C | -disable-* | --disable-* \
1865 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 | -with-* | --with-* | -without-* | --without-* | --x)
1868 case "$ac_configure_args0 " in
1869 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 esac
1871 ;;
1872 -* ) ac_must_keep_next=true ;;
1873 esac
1874 fi
1875 as_fn_append ac_configure_args " '$ac_arg'"
1876 ;;
1877 esac
1878 done
1879 done
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1882
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log. We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889 # Sanitize IFS.
1890 IFS=" "" $as_nl"
1891 # Save into config.log some information that might help in debugging.
1892 {
1893 echo
1894
1895 printf "%s\n" "## ---------------- ##
1896 ## Cache variables. ##
1897 ## ---------------- ##"
1898 echo
1899 # The following way of writing the cache mishandles newlines in values,
1900 (
1901 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in #(
1904 *${as_nl}*)
1905 case $ac_var in #(
1906 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1907 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1908 esac
1909 case $ac_var in #(
1910 _ | IFS | as_nl) ;; #(
1911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1912 *) { eval $ac_var=; unset $ac_var;} ;;
1913 esac ;;
1914 esac
1915 done
1916 (set) 2>&1 |
1917 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1918 *${as_nl}ac_space=\ *)
1919 sed -n \
1920 "s/'\''/'\''\\\\'\'''\''/g;
1921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1922 ;; #(
1923 *)
1924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1925 ;;
1926 esac |
1927 sort
1928 )
1929 echo
1930
1931 printf "%s\n" "## ----------------- ##
1932 ## Output variables. ##
1933 ## ----------------- ##"
1934 echo
1935 for ac_var in $ac_subst_vars
1936 do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 printf "%s\n" "$ac_var='\''$ac_val'\''"
1942 done | sort
1943 echo
1944
1945 if test -n "$ac_subst_files"; then
1946 printf "%s\n" "## ------------------- ##
1947 ## File substitutions. ##
1948 ## ------------------- ##"
1949 echo
1950 for ac_var in $ac_subst_files
1951 do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in
1954 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 esac
1956 printf "%s\n" "$ac_var='\''$ac_val'\''"
1957 done | sort
1958 echo
1959 fi
1960
1961 if test -s confdefs.h; then
1962 printf "%s\n" "## ----------- ##
1963 ## confdefs.h. ##
1964 ## ----------- ##"
1965 echo
1966 cat confdefs.h
1967 echo
1968 fi
1969 test "$ac_signal" != 0 &&
1970 printf "%s\n" "$as_me: caught signal $ac_signal"
1971 printf "%s\n" "$as_me: exit $exit_status"
1972 } >&5
1973 rm -f core *.core core.conftest.* &&
1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1975 exit $exit_status
1976 ' 0
1977 for ac_signal in 1 2 13 15; do
1978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1979 done
1980 ac_signal=0
1981
1982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1983 rm -f -r conftest* confdefs.h
1984
1985 printf "%s\n" "/* confdefs.h */" > confdefs.h
1986
1987 # Predefined preprocessor variables.
1988
1989 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1990
1991 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1992
1993 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1994
1995 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1996
1997 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1998
1999 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2000
2001
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2004 if test -n "$CONFIG_SITE"; then
2005 ac_site_files="$CONFIG_SITE"
2006 elif test "x$prefix" != xNONE; then
2007 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2008 else
2009 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2010 fi
2011
2012 for ac_site_file in $ac_site_files
2013 do
2014 case $ac_site_file in #(
2015 */*) :
2016 ;; #(
2017 *) :
2018 ac_site_file=./$ac_site_file ;;
2019 esac
2020 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2022 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2023 sed 's/^/| /' "$ac_site_file" >&5
2024 . "$ac_site_file" \
2025 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2027 as_fn_error $? "failed to load site script $ac_site_file
2028 See \`config.log' for more details" "$LINENO" 5; }
2029 fi
2030 done
2031
2032 if test -r "$cache_file"; then
2033 # Some versions of bash will fail to source /dev/null (special files
2034 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2035 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2037 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2038 case $cache_file in
2039 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2040 *) . "./$cache_file";;
2041 esac
2042 fi
2043 else
2044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2045 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2046 >$cache_file
2047 fi
2048
2049 # Test code for whether the C compiler supports C89 (global declarations)
2050 ac_c_conftest_c89_globals='
2051 /* Does the compiler advertise C89 conformance?
2052 Do not test the value of __STDC__, because some compilers set it to 0
2053 while being otherwise adequately conformant. */
2054 #if !defined __STDC__
2055 # error "Compiler does not advertise C89 conformance"
2056 #endif
2057
2058 #include <stddef.h>
2059 #include <stdarg.h>
2060 struct stat;
2061 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2062 struct buf { int x; };
2063 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2064 static char *e (p, i)
2065 char **p;
2066 int i;
2067 {
2068 return p[i];
2069 }
2070 static char *f (char * (*g) (char **, int), char **p, ...)
2071 {
2072 char *s;
2073 va_list v;
2074 va_start (v,p);
2075 s = g (p, va_arg (v,int));
2076 va_end (v);
2077 return s;
2078 }
2079
2080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2081 function prototypes and stuff, but not \xHH hex character constants.
2082 These do not provoke an error unfortunately, instead are silently treated
2083 as an "x". The following induces an error, until -std is added to get
2084 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2085 array size at least. It is necessary to write \x00 == 0 to get something
2086 that is true only with -std. */
2087 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2088
2089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2090 inside strings and character constants. */
2091 #define FOO(x) '\''x'\''
2092 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2093
2094 int test (int i, double x);
2095 struct s1 {int (*f) (int a);};
2096 struct s2 {int (*f) (double a);};
2097 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2098 int, int);'
2099
2100 # Test code for whether the C compiler supports C89 (body of main).
2101 ac_c_conftest_c89_main='
2102 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2103 '
2104
2105 # Test code for whether the C compiler supports C99 (global declarations)
2106 ac_c_conftest_c99_globals='
2107 // Does the compiler advertise C99 conformance?
2108 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2109 # error "Compiler does not advertise C99 conformance"
2110 #endif
2111
2112 #include <stdbool.h>
2113 extern int puts (const char *);
2114 extern int printf (const char *, ...);
2115 extern int dprintf (int, const char *, ...);
2116 extern void *malloc (size_t);
2117
2118 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2119 // dprintf is used instead of fprintf to avoid needing to declare
2120 // FILE and stderr.
2121 #define debug(...) dprintf (2, __VA_ARGS__)
2122 #define showlist(...) puts (#__VA_ARGS__)
2123 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2124 static void
2125 test_varargs_macros (void)
2126 {
2127 int x = 1234;
2128 int y = 5678;
2129 debug ("Flag");
2130 debug ("X = %d\n", x);
2131 showlist (The first, second, and third items.);
2132 report (x>y, "x is %d but y is %d", x, y);
2133 }
2134
2135 // Check long long types.
2136 #define BIG64 18446744073709551615ull
2137 #define BIG32 4294967295ul
2138 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2139 #if !BIG_OK
2140 #error "your preprocessor is broken"
2141 #endif
2142 #if BIG_OK
2143 #else
2144 #error "your preprocessor is broken"
2145 #endif
2146 static long long int bignum = -9223372036854775807LL;
2147 static unsigned long long int ubignum = BIG64;
2148
2149 struct incomplete_array
2150 {
2151 int datasize;
2152 double data[];
2153 };
2154
2155 struct named_init {
2156 int number;
2157 const wchar_t *name;
2158 double average;
2159 };
2160
2161 typedef const char *ccp;
2162
2163 static inline int
2164 test_restrict (ccp restrict text)
2165 {
2166 // See if C++-style comments work.
2167 // Iterate through items via the restricted pointer.
2168 // Also check for declarations in for loops.
2169 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2170 continue;
2171 return 0;
2172 }
2173
2174 // Check varargs and va_copy.
2175 static bool
2176 test_varargs (const char *format, ...)
2177 {
2178 va_list args;
2179 va_start (args, format);
2180 va_list args_copy;
2181 va_copy (args_copy, args);
2182
2183 const char *str = "";
2184 int number = 0;
2185 float fnumber = 0;
2186
2187 while (*format)
2188 {
2189 switch (*format++)
2190 {
2191 case '\''s'\'': // string
2192 str = va_arg (args_copy, const char *);
2193 break;
2194 case '\''d'\'': // int
2195 number = va_arg (args_copy, int);
2196 break;
2197 case '\''f'\'': // float
2198 fnumber = va_arg (args_copy, double);
2199 break;
2200 default:
2201 break;
2202 }
2203 }
2204 va_end (args_copy);
2205 va_end (args);
2206
2207 return *str && number && fnumber;
2208 }
2209 '
2210
2211 # Test code for whether the C compiler supports C99 (body of main).
2212 ac_c_conftest_c99_main='
2213 // Check bool.
2214 _Bool success = false;
2215 success |= (argc != 0);
2216
2217 // Check restrict.
2218 if (test_restrict ("String literal") == 0)
2219 success = true;
2220 char *restrict newvar = "Another string";
2221
2222 // Check varargs.
2223 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2224 test_varargs_macros ();
2225
2226 // Check flexible array members.
2227 struct incomplete_array *ia =
2228 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2229 ia->datasize = 10;
2230 for (int i = 0; i < ia->datasize; ++i)
2231 ia->data[i] = i * 1.234;
2232
2233 // Check named initializers.
2234 struct named_init ni = {
2235 .number = 34,
2236 .name = L"Test wide string",
2237 .average = 543.34343,
2238 };
2239
2240 ni.number = 58;
2241
2242 int dynamic_array[ni.number];
2243 dynamic_array[0] = argv[0][0];
2244 dynamic_array[ni.number - 1] = 543;
2245
2246 // work around unused variable warnings
2247 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2248 || dynamic_array[ni.number - 1] != 543);
2249 '
2250
2251 # Test code for whether the C compiler supports C11 (global declarations)
2252 ac_c_conftest_c11_globals='
2253 // Does the compiler advertise C11 conformance?
2254 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2255 # error "Compiler does not advertise C11 conformance"
2256 #endif
2257
2258 // Check _Alignas.
2259 char _Alignas (double) aligned_as_double;
2260 char _Alignas (0) no_special_alignment;
2261 extern char aligned_as_int;
2262 char _Alignas (0) _Alignas (int) aligned_as_int;
2263
2264 // Check _Alignof.
2265 enum
2266 {
2267 int_alignment = _Alignof (int),
2268 int_array_alignment = _Alignof (int[100]),
2269 char_alignment = _Alignof (char)
2270 };
2271 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2272
2273 // Check _Noreturn.
2274 int _Noreturn does_not_return (void) { for (;;) continue; }
2275
2276 // Check _Static_assert.
2277 struct test_static_assert
2278 {
2279 int x;
2280 _Static_assert (sizeof (int) <= sizeof (long int),
2281 "_Static_assert does not work in struct");
2282 long int y;
2283 };
2284
2285 // Check UTF-8 literals.
2286 #define u8 syntax error!
2287 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2288
2289 // Check duplicate typedefs.
2290 typedef long *long_ptr;
2291 typedef long int *long_ptr;
2292 typedef long_ptr long_ptr;
2293
2294 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2295 struct anonymous
2296 {
2297 union {
2298 struct { int i; int j; };
2299 struct { int k; long int l; } w;
2300 };
2301 int m;
2302 } v1;
2303 '
2304
2305 # Test code for whether the C compiler supports C11 (body of main).
2306 ac_c_conftest_c11_main='
2307 _Static_assert ((offsetof (struct anonymous, i)
2308 == offsetof (struct anonymous, w.k)),
2309 "Anonymous union alignment botch");
2310 v1.i = 2;
2311 v1.w.k = 5;
2312 ok |= v1.i != 5;
2313 '
2314
2315 # Test code for whether the C compiler supports C11 (complete).
2316 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2317 ${ac_c_conftest_c99_globals}
2318 ${ac_c_conftest_c11_globals}
2319
2320 int
2321 main (int argc, char **argv)
2322 {
2323 int ok = 0;
2324 ${ac_c_conftest_c89_main}
2325 ${ac_c_conftest_c99_main}
2326 ${ac_c_conftest_c11_main}
2327 return ok;
2328 }
2329 "
2330
2331 # Test code for whether the C compiler supports C99 (complete).
2332 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2333 ${ac_c_conftest_c99_globals}
2334
2335 int
2336 main (int argc, char **argv)
2337 {
2338 int ok = 0;
2339 ${ac_c_conftest_c89_main}
2340 ${ac_c_conftest_c99_main}
2341 return ok;
2342 }
2343 "
2344
2345 # Test code for whether the C compiler supports C89 (complete).
2346 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2347
2348 int
2349 main (int argc, char **argv)
2350 {
2351 int ok = 0;
2352 ${ac_c_conftest_c89_main}
2353 return ok;
2354 }
2355 "
2356
2357 # Test code for whether the C++ compiler supports C++98 (global declarations)
2358 ac_cxx_conftest_cxx98_globals='
2359 // Does the compiler advertise C++98 conformance?
2360 #if !defined __cplusplus || __cplusplus < 199711L
2361 # error "Compiler does not advertise C++98 conformance"
2362 #endif
2363
2364 // These inclusions are to reject old compilers that
2365 // lack the unsuffixed header files.
2366 #include <cstdlib>
2367 #include <exception>
2368
2369 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2370 extern void assert (int);
2371 namespace std {
2372 extern int strcmp (const char *, const char *);
2373 }
2374
2375 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2376 using std::exception;
2377 using std::strcmp;
2378
2379 namespace {
2380
2381 void test_exception_syntax()
2382 {
2383 try {
2384 throw "test";
2385 } catch (const char *s) {
2386 // Extra parentheses suppress a warning when building autoconf itself,
2387 // due to lint rules shared with more typical C programs.
2388 assert (!(strcmp) (s, "test"));
2389 }
2390 }
2391
2392 template <typename T> struct test_template
2393 {
2394 T const val;
2395 explicit test_template(T t) : val(t) {}
2396 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2397 };
2398
2399 } // anonymous namespace
2400 '
2401
2402 # Test code for whether the C++ compiler supports C++98 (body of main)
2403 ac_cxx_conftest_cxx98_main='
2404 assert (argc);
2405 assert (! argv[0]);
2406 {
2407 test_exception_syntax ();
2408 test_template<double> tt (2.0);
2409 assert (tt.add (4) == 6.0);
2410 assert (true && !false);
2411 }
2412 '
2413
2414 # Test code for whether the C++ compiler supports C++11 (global declarations)
2415 ac_cxx_conftest_cxx11_globals='
2416 // Does the compiler advertise C++ 2011 conformance?
2417 #if !defined __cplusplus || __cplusplus < 201103L
2418 # error "Compiler does not advertise C++11 conformance"
2419 #endif
2420
2421 namespace cxx11test
2422 {
2423 constexpr int get_val() { return 20; }
2424
2425 struct testinit
2426 {
2427 int i;
2428 double d;
2429 };
2430
2431 class delegate
2432 {
2433 public:
2434 delegate(int n) : n(n) {}
2435 delegate(): delegate(2354) {}
2436
2437 virtual int getval() { return this->n; };
2438 protected:
2439 int n;
2440 };
2441
2442 class overridden : public delegate
2443 {
2444 public:
2445 overridden(int n): delegate(n) {}
2446 virtual int getval() override final { return this->n * 2; }
2447 };
2448
2449 class nocopy
2450 {
2451 public:
2452 nocopy(int i): i(i) {}
2453 nocopy() = default;
2454 nocopy(const nocopy&) = delete;
2455 nocopy & operator=(const nocopy&) = delete;
2456 private:
2457 int i;
2458 };
2459
2460 // for testing lambda expressions
2461 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2462 {
2463 return f(v);
2464 }
2465
2466 // for testing variadic templates and trailing return types
2467 template <typename V> auto sum(V first) -> V
2468 {
2469 return first;
2470 }
2471 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2472 {
2473 return first + sum(rest...);
2474 }
2475 }
2476 '
2477
2478 # Test code for whether the C++ compiler supports C++11 (body of main)
2479 ac_cxx_conftest_cxx11_main='
2480 {
2481 // Test auto and decltype
2482 auto a1 = 6538;
2483 auto a2 = 48573953.4;
2484 auto a3 = "String literal";
2485
2486 int total = 0;
2487 for (auto i = a3; *i; ++i) { total += *i; }
2488
2489 decltype(a2) a4 = 34895.034;
2490 }
2491 {
2492 // Test constexpr
2493 short sa[cxx11test::get_val()] = { 0 };
2494 }
2495 {
2496 // Test initializer lists
2497 cxx11test::testinit il = { 4323, 435234.23544 };
2498 }
2499 {
2500 // Test range-based for
2501 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2502 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2503 for (auto &x : array) { x += 23; }
2504 }
2505 {
2506 // Test lambda expressions
2507 using cxx11test::eval;
2508 assert (eval ([](int x) { return x*2; }, 21) == 42);
2509 double d = 2.0;
2510 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2511 assert (d == 5.0);
2512 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2513 assert (d == 5.0);
2514 }
2515 {
2516 // Test use of variadic templates
2517 using cxx11test::sum;
2518 auto a = sum(1);
2519 auto b = sum(1, 2);
2520 auto c = sum(1.0, 2.0, 3.0);
2521 }
2522 {
2523 // Test constructor delegation
2524 cxx11test::delegate d1;
2525 cxx11test::delegate d2();
2526 cxx11test::delegate d3(45);
2527 }
2528 {
2529 // Test override and final
2530 cxx11test::overridden o1(55464);
2531 }
2532 {
2533 // Test nullptr
2534 char *c = nullptr;
2535 }
2536 {
2537 // Test template brackets
2538 test_template<::test_template<int>> v(test_template<int>(12));
2539 }
2540 {
2541 // Unicode literals
2542 char const *utf8 = u8"UTF-8 string \u2500";
2543 char16_t const *utf16 = u"UTF-8 string \u2500";
2544 char32_t const *utf32 = U"UTF-32 string \u2500";
2545 }
2546 '
2547
2548 # Test code for whether the C compiler supports C++11 (complete).
2549 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2550 ${ac_cxx_conftest_cxx11_globals}
2551
2552 int
2553 main (int argc, char **argv)
2554 {
2555 int ok = 0;
2556 ${ac_cxx_conftest_cxx98_main}
2557 ${ac_cxx_conftest_cxx11_main}
2558 return ok;
2559 }
2560 "
2561
2562 # Test code for whether the C compiler supports C++98 (complete).
2563 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2564 int
2565 main (int argc, char **argv)
2566 {
2567 int ok = 0;
2568 ${ac_cxx_conftest_cxx98_main}
2569 return ok;
2570 }
2571 "
2572
2573 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2574 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2575 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2576 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2577 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2578 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2579 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2580 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2581 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2582
2583 # Auxiliary files required by this configure script.
2584 ac_aux_files="config.guess config.sub ar-lib compile missing install-sh"
2585
2586 # Locations in which to look for auxiliary files.
2587 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2588
2589 # Search for a directory containing all of the required auxiliary files,
2590 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2591 # If we don't find one directory that contains all the files we need,
2592 # we report the set of missing files from the *first* directory in
2593 # $ac_aux_dir_candidates and give up.
2594 ac_missing_aux_files=""
2595 ac_first_candidate=:
2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 as_found=false
2599 for as_dir in $ac_aux_dir_candidates
2600 do
2601 IFS=$as_save_IFS
2602 case $as_dir in #(((
2603 '') as_dir=./ ;;
2604 */) ;;
2605 *) as_dir=$as_dir/ ;;
2606 esac
2607 as_found=:
2608
2609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2610 ac_aux_dir_found=yes
2611 ac_install_sh=
2612 for ac_aux in $ac_aux_files
2613 do
2614 # As a special case, if "install-sh" is required, that requirement
2615 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2616 # and $ac_install_sh is set appropriately for whichever one is found.
2617 if test x"$ac_aux" = x"install-sh"
2618 then
2619 if test -f "${as_dir}install-sh"; then
2620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2621 ac_install_sh="${as_dir}install-sh -c"
2622 elif test -f "${as_dir}install.sh"; then
2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2624 ac_install_sh="${as_dir}install.sh -c"
2625 elif test -f "${as_dir}shtool"; then
2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2627 ac_install_sh="${as_dir}shtool install -c"
2628 else
2629 ac_aux_dir_found=no
2630 if $ac_first_candidate; then
2631 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2632 else
2633 break
2634 fi
2635 fi
2636 else
2637 if test -f "${as_dir}${ac_aux}"; then
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2639 else
2640 ac_aux_dir_found=no
2641 if $ac_first_candidate; then
2642 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2643 else
2644 break
2645 fi
2646 fi
2647 fi
2648 done
2649 if test "$ac_aux_dir_found" = yes; then
2650 ac_aux_dir="$as_dir"
2651 break
2652 fi
2653 ac_first_candidate=false
2654
2655 as_found=false
2656 done
2657 IFS=$as_save_IFS
2658 if $as_found
2659 then :
2660
2661 else $as_nop
2662 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2663 fi
2664
2665
2666 # These three variables are undocumented and unsupported,
2667 # and are intended to be withdrawn in a future Autoconf release.
2668 # They can cause serious problems if a builder's source tree is in a directory
2669 # whose full name contains unusual characters.
2670 if test -f "${ac_aux_dir}config.guess"; then
2671 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2672 fi
2673 if test -f "${ac_aux_dir}config.sub"; then
2674 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2675 fi
2676 if test -f "$ac_aux_dir/configure"; then
2677 ac_configure="$SHELL ${ac_aux_dir}configure"
2678 fi
2679
2680 # Check that the precious variables saved in the cache have kept the same
2681 # value.
2682 ac_cache_corrupted=false
2683 for ac_var in $ac_precious_vars; do
2684 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2685 eval ac_new_set=\$ac_env_${ac_var}_set
2686 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2687 eval ac_new_val=\$ac_env_${ac_var}_value
2688 case $ac_old_set,$ac_new_set in
2689 set,)
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2691 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2692 ac_cache_corrupted=: ;;
2693 ,set)
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2695 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2696 ac_cache_corrupted=: ;;
2697 ,);;
2698 *)
2699 if test "x$ac_old_val" != "x$ac_new_val"; then
2700 # differences in whitespace do not lead to failure.
2701 ac_old_val_w=`echo x $ac_old_val`
2702 ac_new_val_w=`echo x $ac_new_val`
2703 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2705 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2706 ac_cache_corrupted=:
2707 else
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2709 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2710 eval $ac_var=\$ac_old_val
2711 fi
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2713 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2715 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2716 fi;;
2717 esac
2718 # Pass precious variables to config.status.
2719 if test "$ac_new_set" = set; then
2720 case $ac_new_val in
2721 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2722 *) ac_arg=$ac_var=$ac_new_val ;;
2723 esac
2724 case " $ac_configure_args " in
2725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2726 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2727 esac
2728 fi
2729 done
2730 if $ac_cache_corrupted; then
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2732 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2734 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2735 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2736 and start over" "$LINENO" 5
2737 fi
2738 ## -------------------- ##
2739 ## Main body of script. ##
2740 ## -------------------- ##
2741
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747
2748
2749
2750 am__api_version='1.16'
2751
2752
2753
2754 # Find a good install program. We prefer a C program (faster),
2755 # so one script is as good as another. But avoid the broken or
2756 # incompatible versions:
2757 # SysV /etc/install, /usr/sbin/install
2758 # SunOS /usr/etc/install
2759 # IRIX /sbin/install
2760 # AIX /bin/install
2761 # AmigaOS /C/install, which installs bootblocks on floppy discs
2762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2765 # OS/2's system install, which has a completely different semantic
2766 # ./install, which can be erroneously created by make from ./install.sh.
2767 # Reject install programs that cannot install multiple files.
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2769 printf %s "checking for a BSD-compatible install... " >&6; }
2770 if test -z "$INSTALL"; then
2771 if test ${ac_cv_path_install+y}
2772 then :
2773 printf %s "(cached) " >&6
2774 else $as_nop
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 case $as_dir in #(((
2780 '') as_dir=./ ;;
2781 */) ;;
2782 *) as_dir=$as_dir/ ;;
2783 esac
2784 # Account for fact that we put trailing slashes in our PATH walk.
2785 case $as_dir in #((
2786 ./ | /[cC]/* | \
2787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2788 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2789 /usr/ucb/* ) ;;
2790 *)
2791 # OSF1 and SCO ODT 3.0 have their own names for install.
2792 # Don't use installbsd from OSF since it installs stuff as root
2793 # by default.
2794 for ac_prog in ginstall scoinst install; do
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2797 if test $ac_prog = install &&
2798 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2799 # AIX install. It has an incompatible calling convention.
2800 :
2801 elif test $ac_prog = install &&
2802 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2803 # program-specific install script used by HP pwplus--don't use.
2804 :
2805 else
2806 rm -rf conftest.one conftest.two conftest.dir
2807 echo one > conftest.one
2808 echo two > conftest.two
2809 mkdir conftest.dir
2810 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2811 test -s conftest.one && test -s conftest.two &&
2812 test -s conftest.dir/conftest.one &&
2813 test -s conftest.dir/conftest.two
2814 then
2815 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2816 break 3
2817 fi
2818 fi
2819 fi
2820 done
2821 done
2822 ;;
2823 esac
2824
2825 done
2826 IFS=$as_save_IFS
2827
2828 rm -rf conftest.one conftest.two conftest.dir
2829
2830 fi
2831 if test ${ac_cv_path_install+y}; then
2832 INSTALL=$ac_cv_path_install
2833 else
2834 # As a last resort, use the slow shell script. Don't cache a
2835 # value for INSTALL within a source directory, because that will
2836 # break other packages using the cache if that directory is
2837 # removed, or if the value is a relative name.
2838 INSTALL=$ac_install_sh
2839 fi
2840 fi
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2842 printf "%s\n" "$INSTALL" >&6; }
2843
2844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2845 # It thinks the first close brace ends the variable substitution.
2846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2847
2848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2849
2850 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2851
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2853 printf %s "checking whether build environment is sane... " >&6; }
2854 # Reject unsafe characters in $srcdir or the absolute working directory
2855 # name. Accept space and tab only in the latter.
2856 am_lf='
2857 '
2858 case `pwd` in
2859 *[\\\"\#\$\&\'\`$am_lf]*)
2860 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2861 esac
2862 case $srcdir in
2863 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2864 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2865 esac
2866
2867 # Do 'set' in a subshell so we don't clobber the current shell's
2868 # arguments. Must try -L first in case configure is actually a
2869 # symlink; some systems play weird games with the mod time of symlinks
2870 # (eg FreeBSD returns the mod time of the symlink's containing
2871 # directory).
2872 if (
2873 am_has_slept=no
2874 for am_try in 1 2; do
2875 echo "timestamp, slept: $am_has_slept" > conftest.file
2876 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2877 if test "$*" = "X"; then
2878 # -L didn't work.
2879 set X `ls -t "$srcdir/configure" conftest.file`
2880 fi
2881 if test "$*" != "X $srcdir/configure conftest.file" \
2882 && test "$*" != "X conftest.file $srcdir/configure"; then
2883
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2889 alias in your environment" "$LINENO" 5
2890 fi
2891 if test "$2" = conftest.file || test $am_try -eq 2; then
2892 break
2893 fi
2894 # Just in case.
2895 sleep 1
2896 am_has_slept=yes
2897 done
2898 test "$2" = conftest.file
2899 )
2900 then
2901 # Ok.
2902 :
2903 else
2904 as_fn_error $? "newly created file is older than distributed files!
2905 Check your system clock" "$LINENO" 5
2906 fi
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908 printf "%s\n" "yes" >&6; }
2909 # If we didn't sleep, we still need to ensure time stamps of config.status and
2910 # generated files are strictly newer.
2911 am_sleep_pid=
2912 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2913 ( sleep 1 ) &
2914 am_sleep_pid=$!
2915 fi
2916
2917 rm -f conftest.file
2918
2919 test "$program_prefix" != NONE &&
2920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2921 # Use a double $ so make ignores it.
2922 test "$program_suffix" != NONE &&
2923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2924 # Double any \ or $.
2925 # By default was `s,x,x', remove it if useless.
2926 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2927 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2928
2929
2930 # Expand $ac_aux_dir to an absolute path.
2931 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2932
2933
2934 if test x"${MISSING+set}" != xset; then
2935 case $am_aux_dir in
2936 *\ * | *\ *)
2937 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938 *)
2939 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2940 esac
2941 fi
2942 # Use eval to expand $SHELL
2943 if eval "$MISSING --is-lightweight"; then
2944 am_missing_run="$MISSING "
2945 else
2946 am_missing_run=
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2948 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2949 fi
2950
2951 if test x"${install_sh+set}" != xset; then
2952 case $am_aux_dir in
2953 *\ * | *\ *)
2954 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955 *)
2956 install_sh="\${SHELL} $am_aux_dir/install-sh"
2957 esac
2958 fi
2959
2960 # Installed binaries are usually stripped using 'strip' when the user
2961 # run "make install-strip". However 'strip' might not be the right
2962 # tool to use in cross-compilation environments, therefore Automake
2963 # will honor the 'STRIP' environment variable to overrule this program.
2964 if test "$cross_compiling" != no; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}strip; ac_word=$2
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 printf %s "checking for $ac_word... " >&6; }
2970 if test ${ac_cv_prog_STRIP+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else $as_nop
2974 if test -n "$STRIP"; then
2975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 case $as_dir in #(((
2982 '') as_dir=./ ;;
2983 */) ;;
2984 *) as_dir=$as_dir/ ;;
2985 esac
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 STRIP=$ac_cv_prog_STRIP
2999 if test -n "$STRIP"; then
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3001 printf "%s\n" "$STRIP" >&6; }
3002 else
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 printf "%s\n" "no" >&6; }
3005 fi
3006
3007
3008 fi
3009 if test -z "$ac_cv_prog_STRIP"; then
3010 ac_ct_STRIP=$STRIP
3011 # Extract the first word of "strip", so it can be a program name with args.
3012 set dummy strip; ac_word=$2
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 printf %s "checking for $ac_word... " >&6; }
3015 if test ${ac_cv_prog_ac_ct_STRIP+y}
3016 then :
3017 printf %s "(cached) " >&6
3018 else $as_nop
3019 if test -n "$ac_ct_STRIP"; then
3020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 case $as_dir in #(((
3027 '') as_dir=./ ;;
3028 */) ;;
3029 *) as_dir=$as_dir/ ;;
3030 esac
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_STRIP="strip"
3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3044 if test -n "$ac_ct_STRIP"; then
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3046 printf "%s\n" "$ac_ct_STRIP" >&6; }
3047 else
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 printf "%s\n" "no" >&6; }
3050 fi
3051
3052 if test "x$ac_ct_STRIP" = x; then
3053 STRIP=":"
3054 else
3055 case $cross_compiling:$ac_tool_warned in
3056 yes:)
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061 STRIP=$ac_ct_STRIP
3062 fi
3063 else
3064 STRIP="$ac_cv_prog_STRIP"
3065 fi
3066
3067 fi
3068 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3069
3070
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3072 printf %s "checking for a race-free mkdir -p... " >&6; }
3073 if test -z "$MKDIR_P"; then
3074 if test ${ac_cv_path_mkdir+y}
3075 then :
3076 printf %s "(cached) " >&6
3077 else $as_nop
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3080 do
3081 IFS=$as_save_IFS
3082 case $as_dir in #(((
3083 '') as_dir=./ ;;
3084 */) ;;
3085 *) as_dir=$as_dir/ ;;
3086 esac
3087 for ac_prog in mkdir gmkdir; do
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3090 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3091 'mkdir ('*'coreutils) '* | \
3092 'BusyBox '* | \
3093 'mkdir (fileutils) '4.1*)
3094 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3095 break 3;;
3096 esac
3097 done
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103
3104 test -d ./--version && rmdir ./--version
3105 if test ${ac_cv_path_mkdir+y}; then
3106 MKDIR_P="$ac_cv_path_mkdir -p"
3107 else
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for MKDIR_P within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 MKDIR_P="$ac_install_sh -d"
3113 fi
3114 fi
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3116 printf "%s\n" "$MKDIR_P" >&6; }
3117
3118 for ac_prog in gawk mawk nawk awk
3119 do
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 printf %s "checking for $ac_word... " >&6; }
3124 if test ${ac_cv_prog_AWK+y}
3125 then :
3126 printf %s "(cached) " >&6
3127 else $as_nop
3128 if test -n "$AWK"; then
3129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 case $as_dir in #(((
3136 '') as_dir=./ ;;
3137 */) ;;
3138 *) as_dir=$as_dir/ ;;
3139 esac
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_AWK="$ac_prog"
3143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 AWK=$ac_cv_prog_AWK
3153 if test -n "$AWK"; then
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3155 printf "%s\n" "$AWK" >&6; }
3156 else
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 printf "%s\n" "no" >&6; }
3159 fi
3160
3161
3162 test -n "$AWK" && break
3163 done
3164
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3166 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3167 set x ${MAKE-make}
3168 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3169 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3170 then :
3171 printf %s "(cached) " >&6
3172 else $as_nop
3173 cat >conftest.make <<\_ACEOF
3174 SHELL = /bin/sh
3175 all:
3176 @echo '@@@%%%=$(MAKE)=@@@%%%'
3177 _ACEOF
3178 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3179 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3180 *@@@%%%=?*=@@@%%%*)
3181 eval ac_cv_prog_make_${ac_make}_set=yes;;
3182 *)
3183 eval ac_cv_prog_make_${ac_make}_set=no;;
3184 esac
3185 rm -f conftest.make
3186 fi
3187 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 printf "%s\n" "yes" >&6; }
3190 SET_MAKE=
3191 else
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 printf "%s\n" "no" >&6; }
3194 SET_MAKE="MAKE=${MAKE-make}"
3195 fi
3196
3197 rm -rf .tst 2>/dev/null
3198 mkdir .tst 2>/dev/null
3199 if test -d .tst; then
3200 am__leading_dot=.
3201 else
3202 am__leading_dot=_
3203 fi
3204 rmdir .tst 2>/dev/null
3205
3206 # Check whether --enable-silent-rules was given.
3207 if test ${enable_silent_rules+y}
3208 then :
3209 enableval=$enable_silent_rules;
3210 fi
3211
3212 case $enable_silent_rules in # (((
3213 yes) AM_DEFAULT_VERBOSITY=0;;
3214 no) AM_DEFAULT_VERBOSITY=1;;
3215 *) AM_DEFAULT_VERBOSITY=1;;
3216 esac
3217 am_make=${MAKE-make}
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3219 printf %s "checking whether $am_make supports nested variables... " >&6; }
3220 if test ${am_cv_make_support_nested_variables+y}
3221 then :
3222 printf %s "(cached) " >&6
3223 else $as_nop
3224 if printf "%s\n" 'TRUE=$(BAR$(V))
3225 BAR0=false
3226 BAR1=true
3227 V=1
3228 am__doit:
3229 @$(TRUE)
3230 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3231 am_cv_make_support_nested_variables=yes
3232 else
3233 am_cv_make_support_nested_variables=no
3234 fi
3235 fi
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3237 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3238 if test $am_cv_make_support_nested_variables = yes; then
3239 AM_V='$(V)'
3240 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3241 else
3242 AM_V=$AM_DEFAULT_VERBOSITY
3243 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3244 fi
3245 AM_BACKSLASH='\'
3246
3247 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3249 # is not polluted with repeated "-I."
3250 am__isrc=' -I$(srcdir)'
3251 # test to see if srcdir already configured
3252 if test -f $srcdir/config.status; then
3253 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3254 fi
3255 fi
3256
3257 # test whether we have cygpath
3258 if test -z "$CYGPATH_W"; then
3259 if (cygpath --version) >/dev/null 2>/dev/null; then
3260 CYGPATH_W='cygpath -w'
3261 else
3262 CYGPATH_W=echo
3263 fi
3264 fi
3265
3266
3267 # Define the identity of the package.
3268 PACKAGE='ddpt'
3269 VERSION='0.97'
3270
3271
3272 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3273
3274
3275 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3276
3277 # Some tools Automake needs.
3278
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293 # For better backward compatibility. To be removed once Automake 1.9.x
3294 # dies out for good. For more background, see:
3295 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3296 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3297 mkdir_p='$(MKDIR_P)'
3298
3299 # We need awk for the "check" target (and possibly the TAP driver). The
3300 # system "awk" is bad on some platforms.
3301 # Always define AMTAR for backward compatibility. Yes, it's still used
3302 # in the wild :-( We should find a proper way to deprecate it ...
3303 AMTAR='$${TAR-tar}'
3304
3305
3306 # We'll loop over all known methods to create a tar archive until one works.
3307 _am_tools='gnutar pax cpio none'
3308
3309 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3310
3311
3312
3313
3314
3315
3316 # POSIX will say in a future version that running "rm -f" with no argument
3317 # is OK; and we want to be able to make that assumption in our Makefile
3318 # recipes. So use an aggressive probe to check that the usage we want is
3319 # actually supported "in the wild" to an acceptable degree.
3320 # See automake bug#10828.
3321 # To make any issue more visible, cause the running configure to be aborted
3322 # by default if the 'rm' program in use doesn't match our expectations; the
3323 # user can still override this though.
3324 if rm -f && rm -fr && rm -rf; then : OK; else
3325 cat >&2 <<'END'
3326 Oops!
3327
3328 Your 'rm' program seems unable to run without file operands specified
3329 on the command line, even when the '-f' option is present. This is contrary
3330 to the behaviour of most rm programs out there, and not conforming with
3331 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3332
3333 Please tell [email protected] about your system, including the value
3334 of your $PATH and any error possibly output before this message. This
3335 can help us improve future automake versions.
3336
3337 END
3338 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3339 echo 'Configuration will proceed anyway, since you have set the' >&2
3340 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3341 echo >&2
3342 else
3343 cat >&2 <<'END'
3344 Aborting the configuration process, to ensure you take notice of the issue.
3345
3346 You can download and install GNU coreutils to get an 'rm' implementation
3347 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3348
3349 If you want to complete the configuration process using your problematic
3350 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3351 to "yes", and re-run configure.
3352
3353 END
3354 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3355 fi
3356 fi
3357
3358
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 # Check whether --enable-maintainer-mode was given.
3362 if test ${enable_maintainer_mode+y}
3363 then :
3364 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3365 else $as_nop
3366 USE_MAINTAINER_MODE=no
3367 fi
3368
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3370 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3371 if test $USE_MAINTAINER_MODE = yes; then
3372 MAINTAINER_MODE_TRUE=
3373 MAINTAINER_MODE_FALSE='#'
3374 else
3375 MAINTAINER_MODE_TRUE='#'
3376 MAINTAINER_MODE_FALSE=
3377 fi
3378
3379 MAINT=$MAINTAINER_MODE_TRUE
3380
3381
3382 ac_config_headers="$ac_config_headers config.h"
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 printf %s "checking for $ac_word... " >&6; }
3404 if test ${ac_cv_prog_CC+y}
3405 then :
3406 printf %s "(cached) " >&6
3407 else $as_nop
3408 if test -n "$CC"; then
3409 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414 IFS=$as_save_IFS
3415 case $as_dir in #(((
3416 '') as_dir=./ ;;
3417 */) ;;
3418 *) as_dir=$as_dir/ ;;
3419 esac
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 fi
3431 fi
3432 CC=$ac_cv_prog_CC
3433 if test -n "$CC"; then
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 printf "%s\n" "$CC" >&6; }
3436 else
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 printf "%s\n" "no" >&6; }
3439 fi
3440
3441
3442 fi
3443 if test -z "$ac_cv_prog_CC"; then
3444 ac_ct_CC=$CC
3445 # Extract the first word of "gcc", so it can be a program name with args.
3446 set dummy gcc; ac_word=$2
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 printf %s "checking for $ac_word... " >&6; }
3449 if test ${ac_cv_prog_ac_ct_CC+y}
3450 then :
3451 printf %s "(cached) " >&6
3452 else $as_nop
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 case $as_dir in #(((
3461 '') as_dir=./ ;;
3462 */) ;;
3463 *) as_dir=$as_dir/ ;;
3464 esac
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="gcc"
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471 done
3472 done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 printf "%s\n" "$ac_ct_CC" >&6; }
3481 else
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 printf "%s\n" "no" >&6; }
3484 fi
3485
3486 if test "x$ac_ct_CC" = x; then
3487 CC=""
3488 else
3489 case $cross_compiling:$ac_tool_warned in
3490 yes:)
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3494 esac
3495 CC=$ac_ct_CC
3496 fi
3497 else
3498 CC="$ac_cv_prog_CC"
3499 fi
3500
3501 if test -z "$CC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 printf %s "checking for $ac_word... " >&6; }
3507 if test ${ac_cv_prog_CC+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else $as_nop
3511 if test -n "$CC"; then
3512 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 case $as_dir in #(((
3519 '') as_dir=./ ;;
3520 */) ;;
3521 *) as_dir=$as_dir/ ;;
3522 esac
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_CC="${ac_tool_prefix}cc"
3526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 printf "%s\n" "$CC" >&6; }
3539 else
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 printf "%s\n" "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 fi
3547 if test -z "$CC"; then
3548 # Extract the first word of "cc", so it can be a program name with args.
3549 set dummy cc; ac_word=$2
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 printf %s "checking for $ac_word... " >&6; }
3552 if test ${ac_cv_prog_CC+y}
3553 then :
3554 printf %s "(cached) " >&6
3555 else $as_nop
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 ac_prog_rejected=no
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 case $as_dir in #(((
3565 '') as_dir=./ ;;
3566 */) ;;
3567 *) as_dir=$as_dir/ ;;
3568 esac
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3571 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572 ac_prog_rejected=yes
3573 continue
3574 fi
3575 ac_cv_prog_CC="cc"
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 if test $ac_prog_rejected = yes; then
3584 # We found a bogon in the path, so make sure we never use it.
3585 set dummy $ac_cv_prog_CC
3586 shift
3587 if test $# != 0; then
3588 # We chose a different compiler from the bogus one.
3589 # However, it has the same basename, so the bogon will be chosen
3590 # first if we set CC to just the basename; use the full file name.
3591 shift
3592 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3593 fi
3594 fi
3595 fi
3596 fi
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 printf "%s\n" "$CC" >&6; }
3601 else
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 printf "%s\n" "no" >&6; }
3604 fi
3605
3606
3607 fi
3608 if test -z "$CC"; then
3609 if test -n "$ac_tool_prefix"; then
3610 for ac_prog in cl.exe
3611 do
3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 printf %s "checking for $ac_word... " >&6; }
3616 if test ${ac_cv_prog_CC+y}
3617 then :
3618 printf %s "(cached) " >&6
3619 else $as_nop
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626 IFS=$as_save_IFS
3627 case $as_dir in #(((
3628 '') as_dir=./ ;;
3629 */) ;;
3630 *) as_dir=$as_dir/ ;;
3631 esac
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638 done
3639 done
3640 IFS=$as_save_IFS
3641
3642 fi
3643 fi
3644 CC=$ac_cv_prog_CC
3645 if test -n "$CC"; then
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647 printf "%s\n" "$CC" >&6; }
3648 else
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 printf "%s\n" "no" >&6; }
3651 fi
3652
3653
3654 test -n "$CC" && break
3655 done
3656 fi
3657 if test -z "$CC"; then
3658 ac_ct_CC=$CC
3659 for ac_prog in cl.exe
3660 do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 printf %s "checking for $ac_word... " >&6; }
3665 if test ${ac_cv_prog_ac_ct_CC+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else $as_nop
3669 if test -n "$ac_ct_CC"; then
3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 case $as_dir in #(((
3677 '') as_dir=./ ;;
3678 */) ;;
3679 *) as_dir=$as_dir/ ;;
3680 esac
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_ac_ct_CC="$ac_prog"
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696 printf "%s\n" "$ac_ct_CC" >&6; }
3697 else
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 printf "%s\n" "no" >&6; }
3700 fi
3701
3702
3703 test -n "$ac_ct_CC" && break
3704 done
3705
3706 if test "x$ac_ct_CC" = x; then
3707 CC=""
3708 else
3709 case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715 CC=$ac_ct_CC
3716 fi
3717 fi
3718
3719 fi
3720 if test -z "$CC"; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}clang; ac_word=$2
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 printf %s "checking for $ac_word... " >&6; }
3726 if test ${ac_cv_prog_CC+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else $as_nop
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 case $as_dir in #(((
3738 '') as_dir=./ ;;
3739 */) ;;
3740 *) as_dir=$as_dir/ ;;
3741 esac
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_CC="${ac_tool_prefix}clang"
3745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 printf "%s\n" "$CC" >&6; }
3758 else
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 printf "%s\n" "no" >&6; }
3761 fi
3762
3763
3764 fi
3765 if test -z "$ac_cv_prog_CC"; then
3766 ac_ct_CC=$CC
3767 # Extract the first word of "clang", so it can be a program name with args.
3768 set dummy clang; ac_word=$2
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 printf %s "checking for $ac_word... " >&6; }
3771 if test ${ac_cv_prog_ac_ct_CC+y}
3772 then :
3773 printf %s "(cached) " >&6
3774 else $as_nop
3775 if test -n "$ac_ct_CC"; then
3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 case $as_dir in #(((
3783 '') as_dir=./ ;;
3784 */) ;;
3785 *) as_dir=$as_dir/ ;;
3786 esac
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC="clang"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 printf "%s\n" "$ac_ct_CC" >&6; }
3803 else
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3806 fi
3807
3808 if test "x$ac_ct_CC" = x; then
3809 CC=""
3810 else
3811 case $cross_compiling:$ac_tool_warned in
3812 yes:)
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3815 ac_tool_warned=yes ;;
3816 esac
3817 CC=$ac_ct_CC
3818 fi
3819 else
3820 CC="$ac_cv_prog_CC"
3821 fi
3822
3823 fi
3824
3825
3826 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "no acceptable C compiler found in \$PATH
3829 See \`config.log' for more details" "$LINENO" 5; }
3830
3831 # Provide some information about the compiler.
3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3833 set X $ac_compile
3834 ac_compiler=$2
3835 for ac_option in --version -v -V -qversion -version; do
3836 { { ac_try="$ac_compiler $ac_option >&5"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 printf "%s\n" "$ac_try_echo"; } >&5
3843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3844 ac_status=$?
3845 if test -s conftest.err; then
3846 sed '10a\
3847 ... rest of stderr output deleted ...
3848 10q' conftest.err >conftest.er1
3849 cat conftest.er1 >&5
3850 fi
3851 rm -f conftest.er1 conftest.err
3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }
3854 done
3855
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858
3859 int
3860 main (void)
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 ac_clean_files_save=$ac_clean_files
3868 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3869 # Try to create an executable without -o first, disregard a.out.
3870 # It will help us diagnose broken compilers, and finding out an intuition
3871 # of exeext.
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3873 printf %s "checking whether the C compiler works... " >&6; }
3874 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3875
3876 # The possible output files:
3877 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3878
3879 ac_rmfiles=
3880 for ac_file in $ac_files
3881 do
3882 case $ac_file in
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3884 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3885 esac
3886 done
3887 rm -f $ac_rmfiles
3888
3889 if { { ac_try="$ac_link_default"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 printf "%s\n" "$ac_try_echo"; } >&5
3896 (eval "$ac_link_default") 2>&5
3897 ac_status=$?
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }
3900 then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3907 do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911 ;;
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 fi
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3927 * )
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933 else $as_nop
3934 ac_file=''
3935 fi
3936 if test -z "$ac_file"
3937 then :
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 printf "%s\n" "no" >&6; }
3940 printf "%s\n" "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error 77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3947 else $as_nop
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 printf "%s\n" "yes" >&6; }
3950 fi
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 printf %s "checking for C compiler default output file name... " >&6; }
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 printf "%s\n" "$ac_file" >&6; }
3955 ac_exeext=$ac_cv_exeext
3956
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3958 ac_clean_files=$ac_clean_files_save
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 printf %s "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 printf "%s\n" "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3969 ac_status=$?
3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }
3972 then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else $as_nop
3987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details" "$LINENO" 5; }
3991 fi
3992 rm -f conftest conftest$ac_cv_exeext
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 printf "%s\n" "$ac_cv_exeext" >&6; }
3995
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <stdio.h>
4002 int
4003 main (void)
4004 {
4005 FILE *f = fopen ("conftest.out", "w");
4006 return ferror (f) || fclose (f) != 0;
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 ac_clean_files="$ac_clean_files conftest.out"
4013 # Check that the compiler produces executables we can run. If not, either
4014 # the compiler is broken, or we cross compile.
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4016 printf %s "checking whether we are cross compiling... " >&6; }
4017 if test "$cross_compiling" != yes; then
4018 { { ac_try="$ac_link"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 printf "%s\n" "$ac_try_echo"; } >&5
4025 (eval "$ac_link") 2>&5
4026 ac_status=$?
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 if { ac_try='./conftest$ac_cv_exeext'
4030 { { case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 printf "%s\n" "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
4040 cross_compiling=no
4041 else
4042 if test "$cross_compiling" = maybe; then
4043 cross_compiling=yes
4044 else
4045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error 77 "cannot run C compiled programs.
4048 If you meant to cross compile, use \`--host'.
4049 See \`config.log' for more details" "$LINENO" 5; }
4050 fi
4051 fi
4052 fi
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4054 printf "%s\n" "$cross_compiling" >&6; }
4055
4056 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4057 ac_clean_files=$ac_clean_files_save
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4059 printf %s "checking for suffix of object files... " >&6; }
4060 if test ${ac_cv_objext+y}
4061 then :
4062 printf %s "(cached) " >&6
4063 else $as_nop
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066
4067 int
4068 main (void)
4069 {
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 rm -f conftest.o conftest.obj
4076 if { { ac_try="$ac_compile"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 printf "%s\n" "$ac_try_echo"; } >&5
4083 (eval "$ac_compile") 2>&5
4084 ac_status=$?
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087 then :
4088 for ac_file in conftest.o conftest.obj conftest.*; do
4089 test -f "$ac_file" || continue;
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4093 break;;
4094 esac
4095 done
4096 else $as_nop
4097 printf "%s\n" "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "cannot compute suffix of object files: cannot compile
4103 See \`config.log' for more details" "$LINENO" 5; }
4104 fi
4105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4106 fi
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4108 printf "%s\n" "$ac_cv_objext" >&6; }
4109 OBJEXT=$ac_cv_objext
4110 ac_objext=$OBJEXT
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4112 printf %s "checking whether the compiler supports GNU C... " >&6; }
4113 if test ${ac_cv_c_compiler_gnu+y}
4114 then :
4115 printf %s "(cached) " >&6
4116 else $as_nop
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main (void)
4122 {
4123 #ifndef __GNUC__
4124 choke me
4125 #endif
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133 ac_compiler_gnu=yes
4134 else $as_nop
4135 ac_compiler_gnu=no
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139
4140 fi
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145 if test $ac_compiler_gnu = yes; then
4146 GCC=yes
4147 else
4148 GCC=
4149 fi
4150 ac_test_CFLAGS=${CFLAGS+y}
4151 ac_save_CFLAGS=$CFLAGS
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4153 printf %s "checking whether $CC accepts -g... " >&6; }
4154 if test ${ac_cv_prog_cc_g+y}
4155 then :
4156 printf %s "(cached) " >&6
4157 else $as_nop
4158 ac_save_c_werror_flag=$ac_c_werror_flag
4159 ac_c_werror_flag=yes
4160 ac_cv_prog_cc_g=no
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main (void)
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"
4174 then :
4175 ac_cv_prog_cc_g=yes
4176 else $as_nop
4177 CFLAGS=""
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main (void)
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"
4190 then :
4191
4192 else $as_nop
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="-g"
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197
4198 int
4199 main (void)
4200 {
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208 ac_cv_prog_cc_g=yes
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4216 fi
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4219 if test $ac_test_CFLAGS; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4226 fi
4227 else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4232 fi
4233 fi
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4235 printf %s "checking for $CC option to enable C11 features... " >&6; }
4236 if test ${ac_cv_prog_cc_c11+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 ac_cv_prog_cc_c11=no
4241 ac_save_CC=$CC
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 $ac_c_conftest_c11_program
4245 _ACEOF
4246 for ac_arg in '' -std=gnu11
4247 do
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"
4250 then :
4251 ac_cv_prog_cc_c11=$ac_arg
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.beam
4254 test "x$ac_cv_prog_cc_c11" != "xno" && break
4255 done
4256 rm -f conftest.$ac_ext
4257 CC=$ac_save_CC
4258
4259 fi
4260 # AC_CACHE_VAL
4261 ac_prog_cc_stdc_options=
4262 case "x$ac_cv_prog_cc_c11" in #(
4263 x) :
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 printf "%s\n" "none needed" >&6; } ;; #(
4266 xno) :
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268 printf "%s\n" "unsupported" >&6; } ;; #(
4269 *) :
4270 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4271 CC="$CC$ac_prog_cc_stdc_options"
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4273 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
4274 esac
4275 if test "x$ac_cv_prog_cc_c11" != xno
4276 then :
4277 ac_prog_cc_stdc=c11
4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4279 else $as_nop
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4281 printf %s "checking for $CC option to enable C99 features... " >&6; }
4282 if test ${ac_cv_prog_cc_c99+y}
4283 then :
4284 printf %s "(cached) " >&6
4285 else $as_nop
4286 ac_cv_prog_cc_c99=no
4287 ac_save_CC=$CC
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 $ac_c_conftest_c89_program
4291 _ACEOF
4292 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4293 do
4294 CC="$ac_save_CC $ac_arg"
4295 if ac_fn_c_try_compile "$LINENO"
4296 then :
4297 ac_cv_prog_cc_c99=$ac_arg
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.beam
4300 test "x$ac_cv_prog_cc_c99" != "xno" && break
4301 done
4302 rm -f conftest.$ac_ext
4303 CC=$ac_save_CC
4304
4305 fi
4306 # AC_CACHE_VAL
4307 ac_prog_cc_stdc_options=
4308 case "x$ac_cv_prog_cc_c99" in #(
4309 x) :
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; } ;; #(
4312 xno) :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 printf "%s\n" "unsupported" >&6; } ;; #(
4315 *) :
4316 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4317 CC="$CC$ac_prog_cc_stdc_options"
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4319 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c99" != xno
4322 then :
4323 ac_prog_cc_stdc=c99
4324 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4325 else $as_nop
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4327 printf %s "checking for $CC option to enable C89 features... " >&6; }
4328 if test ${ac_cv_prog_cc_c89+y}
4329 then :
4330 printf %s "(cached) " >&6
4331 else $as_nop
4332 ac_cv_prog_cc_c89=no
4333 ac_save_CC=$CC
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 $ac_c_conftest_c89_program
4337 _ACEOF
4338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4340 do
4341 CC="$ac_save_CC $ac_arg"
4342 if ac_fn_c_try_compile "$LINENO"
4343 then :
4344 ac_cv_prog_cc_c89=$ac_arg
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.beam
4347 test "x$ac_cv_prog_cc_c89" != "xno" && break
4348 done
4349 rm -f conftest.$ac_ext
4350 CC=$ac_save_CC
4351
4352 fi
4353 # AC_CACHE_VAL
4354 ac_prog_cc_stdc_options=
4355 case "x$ac_cv_prog_cc_c89" in #(
4356 x) :
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358 printf "%s\n" "none needed" >&6; } ;; #(
4359 xno) :
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4361 printf "%s\n" "unsupported" >&6; } ;; #(
4362 *) :
4363 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
4364 CC="$CC$ac_prog_cc_stdc_options"
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4366 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
4367 esac
4368 if test "x$ac_cv_prog_cc_c89" != xno
4369 then :
4370 ac_prog_cc_stdc=c89
4371 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4372 else $as_nop
4373 ac_prog_cc_stdc=no
4374 ac_cv_prog_cc_stdc=no
4375 fi
4376
4377 fi
4378
4379 fi
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4394 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4395 if test ${am_cv_prog_cc_c_o+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else $as_nop
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401
4402 int
4403 main (void)
4404 {
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 # Make sure it works both with $CC and with simple cc.
4411 # Following AC_PROG_CC_C_O, we do the test twice because some
4412 # compilers refuse to overwrite an existing .o file with -o,
4413 # though they will create one.
4414 am_cv_prog_cc_c_o=yes
4415 for am_i in 1 2; do
4416 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4417 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } \
4421 && test -f conftest2.$ac_objext; then
4422 : OK
4423 else
4424 am_cv_prog_cc_c_o=no
4425 break
4426 fi
4427 done
4428 rm -f core conftest*
4429 unset am_i
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4432 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4433 if test "$am_cv_prog_cc_c_o" != yes; then
4434 # Losing compiler, so override with the script.
4435 # FIXME: It is wrong to rewrite CC.
4436 # But if we don't then we get into trouble of one sort or another.
4437 # A longer-term fix would be to have automake use am__CC in this case,
4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4439 CC="$am_aux_dir/compile $CC"
4440 fi
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447 DEPDIR="${am__leading_dot}deps"
4448
4449 ac_config_commands="$ac_config_commands depfiles"
4450
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4452 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4453 cat > confinc.mk << 'END'
4454 am__doit:
4455 @echo this is the am__doit target >confinc.out
4456 .PHONY: am__doit
4457 END
4458 am__include="#"
4459 am__quote=
4460 # BSD make does it like this.
4461 echo '.include "confinc.mk" # ignored' > confmf.BSD
4462 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4463 echo 'include confinc.mk # ignored' > confmf.GNU
4464 _am_result=no
4465 for s in GNU BSD; do
4466 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4467 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }
4471 case $?:`cat confinc.out 2>/dev/null` in #(
4472 '0:this is the am__doit target') :
4473 case $s in #(
4474 BSD) :
4475 am__include='.include' am__quote='"' ;; #(
4476 *) :
4477 am__include='include' am__quote='' ;;
4478 esac ;; #(
4479 *) :
4480 ;;
4481 esac
4482 if test "$am__include" != "#"; then
4483 _am_result="yes ($s style)"
4484 break
4485 fi
4486 done
4487 rm -f confinc.* confmf.*
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4489 printf "%s\n" "${_am_result}" >&6; }
4490
4491 # Check whether --enable-dependency-tracking was given.
4492 if test ${enable_dependency_tracking+y}
4493 then :
4494 enableval=$enable_dependency_tracking;
4495 fi
4496
4497 if test "x$enable_dependency_tracking" != xno; then
4498 am_depcomp="$ac_aux_dir/depcomp"
4499 AMDEPBACKSLASH='\'
4500 am__nodep='_no'
4501 fi
4502 if test "x$enable_dependency_tracking" != xno; then
4503 AMDEP_TRUE=
4504 AMDEP_FALSE='#'
4505 else
4506 AMDEP_TRUE='#'
4507 AMDEP_FALSE=
4508 fi
4509
4510
4511
4512 depcc="$CC" am_compiler_list=
4513
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4515 printf %s "checking dependency style of $depcc... " >&6; }
4516 if test ${am_cv_CC_dependencies_compiler_type+y}
4517 then :
4518 printf %s "(cached) " >&6
4519 else $as_nop
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
4524 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # in D".
4526 rm -rf conftest.dir
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4539
4540 am_cv_CC_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4543 fi
4544 am__universal=false
4545 case " $depcc " in #(
4546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 esac
4548
4549 for depmode in $am_compiler_list; do
4550 # Setup a source with many dependencies, because some compilers
4551 # like to wrap large dependency lists on column 80 (with \), and
4552 # we should not choose a depcomp mode which is confused by this.
4553 #
4554 # We need to recreate these files for each test, as the compiler may
4555 # overwrite some of them when testing with obscure command lines.
4556 # This happens at least with the AIX C compiler.
4557 : > sub/conftest.c
4558 for i in 1 2 3 4 5 6; do
4559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4561 # Solaris 10 /bin/sh.
4562 echo '/* dummy */' > sub/conftst$i.h
4563 done
4564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4565
4566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4567 # mode. It turns out that the SunPro C++ compiler does not properly
4568 # handle '-M -o', and we need to detect this. Also, some Intel
4569 # versions had trouble with output in subdirs.
4570 am__obj=sub/conftest.${OBJEXT-o}
4571 am__minus_obj="-o $am__obj"
4572 case $depmode in
4573 gcc)
4574 # This depmode causes a compiler race in universal mode.
4575 test "$am__universal" = false || continue
4576 ;;
4577 nosideeffect)
4578 # After this tag, mechanisms are not by side-effect, so they'll
4579 # only be used when explicitly requested.
4580 if test "x$enable_dependency_tracking" = xyes; then
4581 continue
4582 else
4583 break
4584 fi
4585 ;;
4586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4587 # This compiler won't grok '-c -o', but also, the minuso test has
4588 # not run yet. These depmodes are late enough in the game, and
4589 # so weak that their functioning should not be impacted.
4590 am__obj=conftest.${OBJEXT-o}
4591 am__minus_obj=
4592 ;;
4593 none) break ;;
4594 esac
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=$am__obj \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4615 fi
4616 fi
4617 done
4618
4619 cd ..
4620 rm -rf conftest.dir
4621 else
4622 am_cv_CC_dependencies_compiler_type=none
4623 fi
4624
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4627 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4629
4630 if
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635 else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4638 fi
4639
4640
4641
4642
4643
4644
4645
4646
4647 ac_ext=cpp
4648 ac_cpp='$CXXCPP $CPPFLAGS'
4649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4652 if test -z "$CXX"; then
4653 if test -n "$CCC"; then
4654 CXX=$CCC
4655 else
4656 if test -n "$ac_tool_prefix"; then
4657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4658 do
4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 printf %s "checking for $ac_word... " >&6; }
4663 if test ${ac_cv_prog_CXX+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else $as_nop
4667 if test -n "$CXX"; then
4668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 case $as_dir in #(((
4675 '') as_dir=./ ;;
4676 */) ;;
4677 *) as_dir=$as_dir/ ;;
4678 esac
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 CXX=$ac_cv_prog_CXX
4692 if test -n "$CXX"; then
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4694 printf "%s\n" "$CXX" >&6; }
4695 else
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 printf "%s\n" "no" >&6; }
4698 fi
4699
4700
4701 test -n "$CXX" && break
4702 done
4703 fi
4704 if test -z "$CXX"; then
4705 ac_ct_CXX=$CXX
4706 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4707 do
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 printf %s "checking for $ac_word... " >&6; }
4712 if test ${ac_cv_prog_ac_ct_CXX+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else $as_nop
4716 if test -n "$ac_ct_CXX"; then
4717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722 IFS=$as_save_IFS
4723 case $as_dir in #(((
4724 '') as_dir=./ ;;
4725 */) ;;
4726 *) as_dir=$as_dir/ ;;
4727 esac
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_ac_ct_CXX="$ac_prog"
4731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4741 if test -n "$ac_ct_CXX"; then
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4743 printf "%s\n" "$ac_ct_CXX" >&6; }
4744 else
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 printf "%s\n" "no" >&6; }
4747 fi
4748
4749
4750 test -n "$ac_ct_CXX" && break
4751 done
4752
4753 if test "x$ac_ct_CXX" = x; then
4754 CXX="g++"
4755 else
4756 case $cross_compiling:$ac_tool_warned in
4757 yes:)
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4761 esac
4762 CXX=$ac_ct_CXX
4763 fi
4764 fi
4765
4766 fi
4767 fi
4768 # Provide some information about the compiler.
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4770 set X $ac_compile
4771 ac_compiler=$2
4772 for ac_option in --version -v -V -qversion; do
4773 { { ac_try="$ac_compiler $ac_option >&5"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 printf "%s\n" "$ac_try_echo"; } >&5
4780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4781 ac_status=$?
4782 if test -s conftest.err; then
4783 sed '10a\
4784 ... rest of stderr output deleted ...
4785 10q' conftest.err >conftest.er1
4786 cat conftest.er1 >&5
4787 fi
4788 rm -f conftest.er1 conftest.err
4789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }
4791 done
4792
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4794 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4795 if test ${ac_cv_cxx_compiler_gnu+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801
4802 int
4803 main (void)
4804 {
4805 #ifndef __GNUC__
4806 choke me
4807 #endif
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_cxx_try_compile "$LINENO"
4814 then :
4815 ac_compiler_gnu=yes
4816 else $as_nop
4817 ac_compiler_gnu=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4820 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4821
4822 fi
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4824 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4826
4827 if test $ac_compiler_gnu = yes; then
4828 GXX=yes
4829 else
4830 GXX=
4831 fi
4832 ac_test_CXXFLAGS=${CXXFLAGS+y}
4833 ac_save_CXXFLAGS=$CXXFLAGS
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4835 printf %s "checking whether $CXX accepts -g... " >&6; }
4836 if test ${ac_cv_prog_cxx_g+y}
4837 then :
4838 printf %s "(cached) " >&6
4839 else $as_nop
4840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4841 ac_cxx_werror_flag=yes
4842 ac_cv_prog_cxx_g=no
4843 CXXFLAGS="-g"
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main (void)
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_cxx_try_compile "$LINENO"
4856 then :
4857 ac_cv_prog_cxx_g=yes
4858 else $as_nop
4859 CXXFLAGS=""
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main (void)
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_cxx_try_compile "$LINENO"
4872 then :
4873
4874 else $as_nop
4875 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4876 CXXFLAGS="-g"
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879
4880 int
4881 main (void)
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_cxx_try_compile "$LINENO"
4889 then :
4890 ac_cv_prog_cxx_g=yes
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4898 fi
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4900 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4901 if test $ac_test_CXXFLAGS; then
4902 CXXFLAGS=$ac_save_CXXFLAGS
4903 elif test $ac_cv_prog_cxx_g = yes; then
4904 if test "$GXX" = yes; then
4905 CXXFLAGS="-g -O2"
4906 else
4907 CXXFLAGS="-g"
4908 fi
4909 else
4910 if test "$GXX" = yes; then
4911 CXXFLAGS="-O2"
4912 else
4913 CXXFLAGS=
4914 fi
4915 fi
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4917 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4918 if test ${ac_cv_prog_cxx_cxx11+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922 ac_cv_prog_cxx_cxx11=no
4923 ac_save_CXX=$CXX
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 $ac_cxx_conftest_cxx11_program
4927 _ACEOF
4928 for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
4929 do
4930 CXX="$ac_save_CXX $ac_arg"
4931 if ac_fn_cxx_try_compile "$LINENO"
4932 then :
4933 ac_cv_prog_cxx_cxx11=$ac_arg
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.beam
4936 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4937 done
4938 rm -f conftest.$ac_ext
4939 CXX=$ac_save_CXX
4940
4941 fi
4942 # AC_CACHE_VAL
4943 ac_prog_cxx_stdcxx_options=
4944 case "x$ac_cv_prog_cxx_cxx11" in #(
4945 x) :
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4947 printf "%s\n" "none needed" >&6; } ;; #(
4948 xno) :
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4950 printf "%s\n" "unsupported" >&6; } ;; #(
4951 *) :
4952 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
4953 CXX=$CXX$ac_prog_cxx_stdcxx_options
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4955 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } ;;
4956 esac
4957 if test "x$ac_cv_prog_cxx_cxx11" != xno
4958 then :
4959 ac_prog_cxx_stdcxx=cxx11
4960 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4961 ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
4962 else $as_nop
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4964 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4965 if test ${ac_cv_prog_cxx_cxx98+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else $as_nop
4969 ac_cv_prog_cxx_cxx98=no
4970 ac_save_CXX=$CXX
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 $ac_cxx_conftest_cxx98_program
4974 _ACEOF
4975 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4976 do
4977 CXX="$ac_save_CXX $ac_arg"
4978 if ac_fn_cxx_try_compile "$LINENO"
4979 then :
4980 ac_cv_prog_cxx_cxx98=$ac_arg
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam
4983 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4984 done
4985 rm -f conftest.$ac_ext
4986 CXX=$ac_save_CXX
4987
4988 fi
4989 # AC_CACHE_VAL
4990 ac_prog_cxx_stdcxx_options=
4991 case "x$ac_cv_prog_cxx_cxx98" in #(
4992 x) :
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4994 printf "%s\n" "none needed" >&6; } ;; #(
4995 xno) :
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4997 printf "%s\n" "unsupported" >&6; } ;; #(
4998 *) :
4999 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
5000 CXX=$CXX$ac_prog_cxx_stdcxx_options
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5002 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } ;;
5003 esac
5004 if test "x$ac_cv_prog_cxx_cxx98" != xno
5005 then :
5006 ac_prog_cxx_stdcxx=cxx98
5007 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5008 else $as_nop
5009 ac_prog_cxx_stdcxx=no
5010 ac_cv_prog_cxx_stdcxx=no
5011 fi
5012
5013 fi
5014
5015 ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021 depcc="$CXX" am_compiler_list=
5022
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5024 printf %s "checking dependency style of $depcc... " >&6; }
5025 if test ${am_cv_CXX_dependencies_compiler_type+y}
5026 then :
5027 printf %s "(cached) " >&6
5028 else $as_nop
5029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5030 # We make a subdir and do the tests there. Otherwise we can end up
5031 # making bogus files that we don't know about and never remove. For
5032 # instance it was reported that on HP-UX the gcc test will end up
5033 # making a dummy file named 'D' -- because '-MD' means "put the output
5034 # in D".
5035 rm -rf conftest.dir
5036 mkdir conftest.dir
5037 # Copy depcomp to subdir because otherwise we won't find it if we're
5038 # using a relative directory.
5039 cp "$am_depcomp" conftest.dir
5040 cd conftest.dir
5041 # We will build objects and dependencies in a subdirectory because
5042 # it helps to detect inapplicable dependency modes. For instance
5043 # both Tru64's cc and ICC support -MD to output dependencies as a
5044 # side effect of compilation, but ICC will put the dependencies in
5045 # the current directory while Tru64 will put them in the object
5046 # directory.
5047 mkdir sub
5048
5049 am_cv_CXX_dependencies_compiler_type=none
5050 if test "$am_compiler_list" = ""; then
5051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5052 fi
5053 am__universal=false
5054 case " $depcc " in #(
5055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5056 esac
5057
5058 for depmode in $am_compiler_list; do
5059 # Setup a source with many dependencies, because some compilers
5060 # like to wrap large dependency lists on column 80 (with \), and
5061 # we should not choose a depcomp mode which is confused by this.
5062 #
5063 # We need to recreate these files for each test, as the compiler may
5064 # overwrite some of them when testing with obscure command lines.
5065 # This happens at least with the AIX C compiler.
5066 : > sub/conftest.c
5067 for i in 1 2 3 4 5 6; do
5068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5070 # Solaris 10 /bin/sh.
5071 echo '/* dummy */' > sub/conftst$i.h
5072 done
5073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5074
5075 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5076 # mode. It turns out that the SunPro C++ compiler does not properly
5077 # handle '-M -o', and we need to detect this. Also, some Intel
5078 # versions had trouble with output in subdirs.
5079 am__obj=sub/conftest.${OBJEXT-o}
5080 am__minus_obj="-o $am__obj"
5081 case $depmode in
5082 gcc)
5083 # This depmode causes a compiler race in universal mode.
5084 test "$am__universal" = false || continue
5085 ;;
5086 nosideeffect)
5087 # After this tag, mechanisms are not by side-effect, so they'll
5088 # only be used when explicitly requested.
5089 if test "x$enable_dependency_tracking" = xyes; then
5090 continue
5091 else
5092 break
5093 fi
5094 ;;
5095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5096 # This compiler won't grok '-c -o', but also, the minuso test has
5097 # not run yet. These depmodes are late enough in the game, and
5098 # so weak that their functioning should not be impacted.
5099 am__obj=conftest.${OBJEXT-o}
5100 am__minus_obj=
5101 ;;
5102 none) break ;;
5103 esac
5104 if depmode=$depmode \
5105 source=sub/conftest.c object=$am__obj \
5106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5108 >/dev/null 2>conftest.err &&
5109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113 # icc doesn't choke on unknown options, it will just issue warnings
5114 # or remarks (even with -Werror). So we grep stderr for any message
5115 # that says an option was ignored or not supported.
5116 # When given -MP, icc 7.0 and 7.1 complain thusly:
5117 # icc: Command line warning: ignoring option '-M'; no argument required
5118 # The diagnosis changed in icc 8.0:
5119 # icc: Command line remark: option '-MP' not supported
5120 if (grep 'ignoring option' conftest.err ||
5121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122 am_cv_CXX_dependencies_compiler_type=$depmode
5123 break
5124 fi
5125 fi
5126 done
5127
5128 cd ..
5129 rm -rf conftest.dir
5130 else
5131 am_cv_CXX_dependencies_compiler_type=none
5132 fi
5133
5134 fi
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5136 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5137 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5138
5139 if
5140 test "x$enable_dependency_tracking" != xno \
5141 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5142 am__fastdepCXX_TRUE=
5143 am__fastdepCXX_FALSE='#'
5144 else
5145 am__fastdepCXX_TRUE='#'
5146 am__fastdepCXX_FALSE=
5147 fi
5148
5149
5150
5151
5152 # AM_PROG_AR is supported and needed since automake v1.12+
5153
5154
5155 if test -n "$ac_tool_prefix"; then
5156 for ac_prog in ar lib "link -lib"
5157 do
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 printf %s "checking for $ac_word... " >&6; }
5162 if test ${ac_cv_prog_AR+y}
5163 then :
5164 printf %s "(cached) " >&6
5165 else $as_nop
5166 if test -n "$AR"; then
5167 ac_cv_prog_AR="$AR" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 case $as_dir in #(((
5174 '') as_dir=./ ;;
5175 */) ;;
5176 *) as_dir=$as_dir/ ;;
5177 esac
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 AR=$ac_cv_prog_AR
5191 if test -n "$AR"; then
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5193 printf "%s\n" "$AR" >&6; }
5194 else
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 printf "%s\n" "no" >&6; }
5197 fi
5198
5199
5200 test -n "$AR" && break
5201 done
5202 fi
5203 if test -z "$AR"; then
5204 ac_ct_AR=$AR
5205 for ac_prog in ar lib "link -lib"
5206 do
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 printf %s "checking for $ac_word... " >&6; }
5211 if test ${ac_cv_prog_ac_ct_AR+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else $as_nop
5215 if test -n "$ac_ct_AR"; then
5216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 case $as_dir in #(((
5223 '') as_dir=./ ;;
5224 */) ;;
5225 *) as_dir=$as_dir/ ;;
5226 esac
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_AR="$ac_prog"
5230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5240 if test -n "$ac_ct_AR"; then
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5242 printf "%s\n" "$ac_ct_AR" >&6; }
5243 else
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 printf "%s\n" "no" >&6; }
5246 fi
5247
5248
5249 test -n "$ac_ct_AR" && break
5250 done
5251
5252 if test "x$ac_ct_AR" = x; then
5253 AR="false"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 AR=$ac_ct_AR
5262 fi
5263 fi
5264
5265 : ${AR=ar}
5266
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5268 printf %s "checking the archiver ($AR) interface... " >&6; }
5269 if test ${am_cv_ar_interface+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else $as_nop
5273 ac_ext=c
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
5279 am_cv_ar_interface=ar
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 int some_variable = 0;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"
5285 then :
5286 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5288 (eval $am_ar_try) 2>&5
5289 ac_status=$?
5290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5291 test $ac_status = 0; }
5292 if test "$ac_status" -eq 0; then
5293 am_cv_ar_interface=ar
5294 else
5295 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5297 (eval $am_ar_try) 2>&5
5298 ac_status=$?
5299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5300 test $ac_status = 0; }
5301 if test "$ac_status" -eq 0; then
5302 am_cv_ar_interface=lib
5303 else
5304 am_cv_ar_interface=unknown
5305 fi
5306 fi
5307 rm -f conftest.lib libconftest.a
5308
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5311 ac_ext=c
5312 ac_cpp='$CPP $CPPFLAGS'
5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5316
5317 fi
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5319 printf "%s\n" "$am_cv_ar_interface" >&6; }
5320
5321 case $am_cv_ar_interface in
5322 ar)
5323 ;;
5324 lib)
5325 # Microsoft lib, so override with the ar-lib wrapper script.
5326 # FIXME: It is wrong to rewrite AR.
5327 # But if we don't then we get into trouble of one sort or another.
5328 # A longer-term fix would be to have automake use am__AR in this case,
5329 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5330 # similar.
5331 AR="$am_aux_dir/ar-lib $AR"
5332 ;;
5333 unknown)
5334 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5335 ;;
5336 esac
5337
5338
5339 # check for headers
5340 ac_header= ac_cache=
5341 for ac_item in $ac_header_c_list
5342 do
5343 if test $ac_cache; then
5344 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5345 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5346 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5347 fi
5348 ac_header= ac_cache=
5349 elif test $ac_header; then
5350 ac_cache=$ac_item
5351 else
5352 ac_header=$ac_item
5353 fi
5354 done
5355
5356
5357
5358
5359
5360
5361
5362
5363 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5364 then :
5365
5366 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5367
5368 fi
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5370 printf %s "checking for grep that handles long lines and -e... " >&6; }
5371 if test ${ac_cv_path_GREP+y}
5372 then :
5373 printf %s "(cached) " >&6
5374 else $as_nop
5375 if test -z "$GREP"; then
5376 ac_path_GREP_found=false
5377 # Loop through the user's path and test for each of PROGNAME-LIST
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5380 do
5381 IFS=$as_save_IFS
5382 case $as_dir in #(((
5383 '') as_dir=./ ;;
5384 */) ;;
5385 *) as_dir=$as_dir/ ;;
5386 esac
5387 for ac_prog in grep ggrep
5388 do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_GREP" || continue
5392 # Check for GNU ac_path_GREP and select it if it is found.
5393 # Check for GNU $ac_path_GREP
5394 case `"$ac_path_GREP" --version 2>&1` in
5395 *GNU*)
5396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5397 *)
5398 ac_count=0
5399 printf %s 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 printf "%s\n" 'GREP' >> "conftest.nl"
5406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_GREP="$ac_path_GREP"
5412 ac_path_GREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420 $ac_path_GREP_found && break 3
5421 done
5422 done
5423 done
5424 IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_GREP"; then
5426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 fi
5428 else
5429 ac_cv_path_GREP=$GREP
5430 fi
5431
5432 fi
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5434 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5435 GREP="$ac_cv_path_GREP"
5436
5437
5438 # Autoupdate added the next two lines to ensure that your configure
5439 # script's behavior did not change. They are probably safe to remove.
5440
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5442 printf %s "checking for egrep... " >&6; }
5443 if test ${ac_cv_path_EGREP+y}
5444 then :
5445 printf %s "(cached) " >&6
5446 else $as_nop
5447 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5448 then ac_cv_path_EGREP="$GREP -E"
5449 else
5450 if test -z "$EGREP"; then
5451 ac_path_EGREP_found=false
5452 # Loop through the user's path and test for each of PROGNAME-LIST
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5455 do
5456 IFS=$as_save_IFS
5457 case $as_dir in #(((
5458 '') as_dir=./ ;;
5459 */) ;;
5460 *) as_dir=$as_dir/ ;;
5461 esac
5462 for ac_prog in egrep
5463 do
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5466 as_fn_executable_p "$ac_path_EGREP" || continue
5467 # Check for GNU ac_path_EGREP and select it if it is found.
5468 # Check for GNU $ac_path_EGREP
5469 case `"$ac_path_EGREP" --version 2>&1` in
5470 *GNU*)
5471 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5472 *)
5473 ac_count=0
5474 printf %s 0123456789 >"conftest.in"
5475 while :
5476 do
5477 cat "conftest.in" "conftest.in" >"conftest.tmp"
5478 mv "conftest.tmp" "conftest.in"
5479 cp "conftest.in" "conftest.nl"
5480 printf "%s\n" 'EGREP' >> "conftest.nl"
5481 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5483 as_fn_arith $ac_count + 1 && ac_count=$as_val
5484 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5485 # Best one so far, save it but keep looking for a better one
5486 ac_cv_path_EGREP="$ac_path_EGREP"
5487 ac_path_EGREP_max=$ac_count
5488 fi
5489 # 10*(2^10) chars as input seems more than enough
5490 test $ac_count -gt 10 && break
5491 done
5492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493 esac
5494
5495 $ac_path_EGREP_found && break 3
5496 done
5497 done
5498 done
5499 IFS=$as_save_IFS
5500 if test -z "$ac_cv_path_EGREP"; then
5501 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5502 fi
5503 else
5504 ac_cv_path_EGREP=$EGREP
5505 fi
5506
5507 fi
5508 fi
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5510 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5511 EGREP="$ac_cv_path_EGREP"
5512
5513
5514
5515 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
5516 if test "x$ac_cv_header_byteswap_h" = xyes
5517 then :
5518 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
5519
5520 fi
5521
5522
5523 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
5524 if test "x$ac_cv_func_posix_fadvise" = xyes
5525 then :
5526 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
5527
5528 fi
5529
5530 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
5531 if test "x$ac_cv_func_fsync" = xyes
5532 then :
5533 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
5534
5535 fi
5536
5537 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
5538 if test "x$ac_cv_func_fdatasync" = xyes
5539 then :
5540 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
5541
5542 fi
5543
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5545 printf %s "checking for clock_gettime in -lrt... " >&6; }
5546 if test ${ac_cv_lib_rt_clock_gettime+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else $as_nop
5550 ac_check_lib_save_LIBS=$LIBS
5551 LIBS="-lrt $LIBS"
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554
5555 /* Override any GCC internal prototype to avoid an error.
5556 Use char because int might match the return type of a GCC
5557 builtin and then its argument prototype would still apply. */
5558 char clock_gettime ();
5559 int
5560 main (void)
5561 {
5562 return clock_gettime ();
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_link "$LINENO"
5568 then :
5569 ac_cv_lib_rt_clock_gettime=yes
5570 else $as_nop
5571 ac_cv_lib_rt_clock_gettime=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5574 conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
5576 fi
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5578 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
5579 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
5580 then :
5581 LIBS="$LIBS -lrt"
5582 fi
5583
5584 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5585 if test "x$ac_cv_func_clock_gettime" = xyes
5586 then :
5587 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5588
5589 fi
5590
5591 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5592 if test "x$ac_cv_func_gettimeofday" = xyes
5593 then :
5594 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5595
5596 fi
5597
5598 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5599 if test "x$ac_cv_func_nanosleep" = xyes
5600 then :
5601 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5602
5603 fi
5604
5605 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5606 if test "x$ac_cv_func_siginterrupt" = xyes
5607 then :
5608 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
5609
5610 fi
5611
5612 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
5613 if test "x$ac_cv_func_fallocate" = xyes
5614 then :
5615 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
5616
5617 fi
5618
5619 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
5620 if test "x$ac_cv_func_posix_fallocate" = xyes
5621 then :
5622 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
5623
5624 fi
5625
5626 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
5627 if test "x$ac_cv_func_posix_memalign" = xyes
5628 then :
5629 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
5630
5631 fi
5632
5633 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
5634 if test "x$ac_cv_func_sysconf" = xyes
5635 then :
5636 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
5637
5638 fi
5639
5640
5641
5642
5643 # Make sure we can run config.sub.
5644 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5645 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5646
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5648 printf %s "checking build system type... " >&6; }
5649 if test ${ac_cv_build+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 ac_build_alias=$build_alias
5654 test "x$ac_build_alias" = x &&
5655 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5656 test "x$ac_build_alias" = x &&
5657 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5658 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5659 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5660
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5663 printf "%s\n" "$ac_cv_build" >&6; }
5664 case $ac_cv_build in
5665 *-*-*) ;;
5666 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5667 esac
5668 build=$ac_cv_build
5669 ac_save_IFS=$IFS; IFS='-'
5670 set x $ac_cv_build
5671 shift
5672 build_cpu=$1
5673 build_vendor=$2
5674 shift; shift
5675 # Remember, the first character of IFS is used to create $*,
5676 # except with old shells:
5677 build_os=$*
5678 IFS=$ac_save_IFS
5679 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5680
5681
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5683 printf %s "checking host system type... " >&6; }
5684 if test ${ac_cv_host+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else $as_nop
5688 if test "x$host_alias" = x; then
5689 ac_cv_host=$ac_cv_build
5690 else
5691 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5692 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5693 fi
5694
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5697 printf "%s\n" "$ac_cv_host" >&6; }
5698 case $ac_cv_host in
5699 *-*-*) ;;
5700 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5701 esac
5702 host=$ac_cv_host
5703 ac_save_IFS=$IFS; IFS='-'
5704 set x $ac_cv_host
5705 shift
5706 host_cpu=$1
5707 host_vendor=$2
5708 shift; shift
5709 # Remember, the first character of IFS is used to create $*,
5710 # except with old shells:
5711 host_os=$*
5712 IFS=$ac_save_IFS
5713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5714
5715
5716
5717
5718 printf "%s\n" "#define SG_LIB_BUILD_HOST \"${host}\"" >>confdefs.h
5719
5720
5721 check_for_linux_nvme_headers() {
5722 for ac_header in linux/nvme_ioctl.h
5723 do :
5724 ac_fn_c_check_header_compile "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
5725 if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes
5726 then :
5727 printf "%s\n" "#define HAVE_LINUX_NVME_IOCTL_H 1" >>confdefs.h
5728
5729 printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
5730
5731 fi
5732
5733 done
5734 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "#ifdef HAVE_LINUX_TYPES_H
5735 # include <linux/types.h>
5736 #endif
5737
5738 "
5739 if test "x$ac_cv_header_linux_types_h" = xyes
5740 then :
5741 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
5742
5743 fi
5744 ac_fn_c_check_header_compile "$LINENO" "linux/bsg.h" "ac_cv_header_linux_bsg_h" "#ifdef HAVE_LINUX_TYPES_H
5745 # include <linux/types.h>
5746 #endif
5747
5748 "
5749 if test "x$ac_cv_header_linux_bsg_h" = xyes
5750 then :
5751 printf "%s\n" "#define HAVE_LINUX_BSG_H 1" >>confdefs.h
5752
5753 fi
5754 ac_fn_c_check_header_compile "$LINENO" "linux/kdev_t.h" "ac_cv_header_linux_kdev_t_h" "#ifdef HAVE_LINUX_TYPES_H
5755 # include <linux/types.h>
5756 #endif
5757
5758 "
5759 if test "x$ac_cv_header_linux_kdev_t_h" = xyes
5760 then :
5761 printf "%s\n" "#define HAVE_LINUX_KDEV_T_H 1" >>confdefs.h
5762
5763 fi
5764
5765 }
5766
5767 case "${host}" in
5768 *-*-android*)
5769 os_deps='sg_pt_linux.o sg_pt_linux_nvme.o'
5770
5771
5772 printf "%s\n" "#define SG_LIB_ANDROID 1" >>confdefs.h
5773
5774
5775 printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
5776
5777 check_for_linux_nvme_headers;;
5778 *-*-freebsd*|*-*-kfreebsd*-gnu*)
5779 os_deps='sg_pt_freebsd.o'
5780
5781
5782 printf "%s\n" "#define SG_LIB_FREEBSD 1" >>confdefs.h
5783
5784
5785 printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
5786
5787 LIBS="$LIBS -lcam";;
5788 *-*-solaris*)
5789 os_deps='sg_pt_solaris.o'
5790
5791
5792 printf "%s\n" "#define SG_LIB_SOLARIS 1" >>confdefs.h
5793 ;;
5794 *-*-osf*)
5795 os_deps='sg_pt_osf1.o'
5796
5797
5798 printf "%s\n" "#define SG_LIB_OSF1 1" >>confdefs.h
5799 ;;
5800 *-*-cygwin*)
5801 os_deps='sg_pt_win32.o'
5802
5803
5804 printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
5805
5806
5807 printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
5808
5809 CFLAGS="$CFLAGS -Wno-char-subscripts";;
5810 *-*-mingw*)
5811 os_deps='sg_pt_win32.o'
5812
5813
5814 printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
5815
5816
5817 printf "%s\n" "#define SG_LIB_MINGW 1" >>confdefs.h
5818
5819
5820 printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
5821
5822 CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";;
5823 *-*-linux-gnu* | *-*-linux* | *)
5824 os_deps='sg_pt_linux.o sg_pt_linux_nvme.o'
5825
5826
5827 printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
5828
5829 check_for_linux_nvme_headers;;
5830 esac
5831
5832 # Define platform-specific symbol.
5833 if echo $host_os | grep 'freebsd' > /dev/null; then
5834 OS_FREEBSD_TRUE=
5835 OS_FREEBSD_FALSE='#'
5836 else
5837 OS_FREEBSD_TRUE='#'
5838 OS_FREEBSD_FALSE=
5839 fi
5840
5841 if echo $host_os | grep '^linux' > /dev/null; then
5842 OS_LINUX_TRUE=
5843 OS_LINUX_FALSE='#'
5844 else
5845 OS_LINUX_TRUE='#'
5846 OS_LINUX_FALSE=
5847 fi
5848
5849 if echo $host_os | grep '^solaris' > /dev/null; then
5850 OS_SOLARIS_TRUE=
5851 OS_SOLARIS_FALSE='#'
5852 else
5853 OS_SOLARIS_TRUE='#'
5854 OS_SOLARIS_FALSE=
5855 fi
5856
5857 if echo $host_os | grep '^mingw' > /dev/null; then
5858 OS_WIN32_MINGW_TRUE=
5859 OS_WIN32_MINGW_FALSE='#'
5860 else
5861 OS_WIN32_MINGW_TRUE='#'
5862 OS_WIN32_MINGW_FALSE=
5863 fi
5864
5865 if echo $host_os | grep '^cygwin' > /dev/null; then
5866 OS_WIN32_CYGWIN_TRUE=
5867 OS_WIN32_CYGWIN_FALSE='#'
5868 else
5869 OS_WIN32_CYGWIN_TRUE='#'
5870 OS_WIN32_CYGWIN_FALSE=
5871 fi
5872
5873 if echo $host_os | grep 'android' > /dev/null; then
5874 OS_ANDROID_TRUE=
5875 OS_ANDROID_FALSE='#'
5876 else
5877 OS_ANDROID_TRUE='#'
5878 OS_ANDROID_FALSE=
5879 fi
5880
5881
5882 # Check whether --enable-debug was given.
5883 if test ${enable_debug+y}
5884 then :
5885 enableval=$enable_debug; case "${enableval}" in
5886 yes) debug=true ;;
5887 no) debug=false ;;
5888 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5889 esac
5890 else $as_nop
5891 debug=false
5892 fi
5893
5894 if test x$debug = xtrue; then
5895 DEBUG_TRUE=
5896 DEBUG_FALSE='#'
5897 else
5898 DEBUG_TRUE='#'
5899 DEBUG_FALSE=
5900 fi
5901
5902
5903 # Check whether --enable-linuxbsg was given.
5904 if test ${enable_linuxbsg+y}
5905 then :
5906 enableval=$enable_linuxbsg;
5907 printf "%s\n" "#define IGNORE_LINUX_BSG 1" >>confdefs.h
5908
5909 fi
5910
5911
5912 # Check whether --enable-libsgutils was given.
5913 if test ${enable_libsgutils+y}
5914 then :
5915 enableval=$enable_libsgutils; have_sgutils=no
5916 else $as_nop
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sg_ll_inquiry in -lsgutils2" >&5
5918 printf %s "checking for sg_ll_inquiry in -lsgutils2... " >&6; }
5919 if test ${ac_cv_lib_sgutils2_sg_ll_inquiry+y}
5920 then :
5921 printf %s "(cached) " >&6
5922 else $as_nop
5923 ac_check_lib_save_LIBS=$LIBS
5924 LIBS="-lsgutils2 $LIBS"
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5931 char sg_ll_inquiry ();
5932 int
5933 main (void)
5934 {
5935 return sg_ll_inquiry ();
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_link "$LINENO"
5941 then :
5942 ac_cv_lib_sgutils2_sg_ll_inquiry=yes
5943 else $as_nop
5944 ac_cv_lib_sgutils2_sg_ll_inquiry=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5947 conftest$ac_exeext conftest.$ac_ext
5948 LIBS=$ac_check_lib_save_LIBS
5949 fi
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgutils2_sg_ll_inquiry" >&5
5951 printf "%s\n" "$ac_cv_lib_sgutils2_sg_ll_inquiry" >&6; }
5952 if test "x$ac_cv_lib_sgutils2_sg_ll_inquiry" = xyes
5953 then :
5954 SGUTILS_LIBS="-lsgutils2"; have_sgutils=yes
5955 else $as_nop
5956 have_sgutils=no
5957 fi
5958
5959 fi
5960
5961
5962 if test x"$have_sgutils" = xyes; then
5963 HAVE_SGUTILS_TRUE=
5964 HAVE_SGUTILS_FALSE='#'
5965 else
5966 HAVE_SGUTILS_TRUE='#'
5967 HAVE_SGUTILS_FALSE=
5968 fi
5969
5970
5971 # Check whether --enable-scsistrings was given.
5972 if test ${enable_scsistrings+y}
5973 then :
5974 enableval=$enable_scsistrings;
5975 else $as_nop
5976
5977 printf "%s\n" "#define SG_SCSI_STRINGS 1" >>confdefs.h
5978
5979 fi
5980
5981
5982 # Check whether --enable-nvme-supp was given.
5983 if test ${enable_nvme_supp+y}
5984 then :
5985 enableval=$enable_nvme_supp;
5986 printf "%s\n" "#define IGNORE_NVME 1" >>confdefs.h
5987
5988 fi
5989
5990
5991 # Check whether --enable-fast-lebe was given.
5992 if test ${enable_fast_lebe+y}
5993 then :
5994 enableval=$enable_fast_lebe;
5995 printf "%s\n" "#define IGNORE_FAST_LEBE 1" >>confdefs.h
5996
5997 fi
5998
5999
6000 # AC_PROG_LIBTOOL
6001 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
6002
6003 cat >confcache <<\_ACEOF
6004 # This file is a shell script that caches the results of configure
6005 # tests run on this system so they can be shared between configure
6006 # scripts and configure runs, see configure's option --config-cache.
6007 # It is not useful on other systems. If it contains results you don't
6008 # want to keep, you may remove or edit it.
6009 #
6010 # config.status only pays attention to the cache file if you give it
6011 # the --recheck option to rerun configure.
6012 #
6013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6015 # following values.
6016
6017 _ACEOF
6018
6019 # The following way of writing the cache mishandles newlines in values,
6020 # but we know of no workaround that is simple, portable, and efficient.
6021 # So, we kill variables containing newlines.
6022 # Ultrix sh set writes to stderr and can't be redirected directly,
6023 # and sets the high bit in the cache file unless we assign to the vars.
6024 (
6025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6026 eval ac_val=\$$ac_var
6027 case $ac_val in #(
6028 *${as_nl}*)
6029 case $ac_var in #(
6030 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6031 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6032 esac
6033 case $ac_var in #(
6034 _ | IFS | as_nl) ;; #(
6035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6036 *) { eval $ac_var=; unset $ac_var;} ;;
6037 esac ;;
6038 esac
6039 done
6040
6041 (set) 2>&1 |
6042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6043 *${as_nl}ac_space=\ *)
6044 # `set' does not quote correctly, so add quotes: double-quote
6045 # substitution turns \\\\ into \\, and sed turns \\ into \.
6046 sed -n \
6047 "s/'/'\\\\''/g;
6048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6049 ;; #(
6050 *)
6051 # `set' quotes correctly as required by POSIX, so do not add quotes.
6052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6053 ;;
6054 esac |
6055 sort
6056 ) |
6057 sed '
6058 /^ac_cv_env_/b end
6059 t clear
6060 :clear
6061 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6062 t end
6063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6064 :end' >>confcache
6065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6066 if test -w "$cache_file"; then
6067 if test "x$cache_file" != "x/dev/null"; then
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6069 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6070 if test ! -f "$cache_file" || test -h "$cache_file"; then
6071 cat confcache >"$cache_file"
6072 else
6073 case $cache_file in #(
6074 */* | ?:*)
6075 mv -f confcache "$cache_file"$$ &&
6076 mv -f "$cache_file"$$ "$cache_file" ;; #(
6077 *)
6078 mv -f confcache "$cache_file" ;;
6079 esac
6080 fi
6081 fi
6082 else
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6084 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6085 fi
6086 fi
6087 rm -f confcache
6088
6089 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6090 # Let make expand exec_prefix.
6091 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6092
6093 DEFS=-DHAVE_CONFIG_H
6094
6095 ac_libobjs=
6096 ac_ltlibobjs=
6097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6098 # 1. Remove the extension, and $U if already installed.
6099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6100 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6102 # will be set to the directory where LIBOBJS objects are built.
6103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6105 done
6106 LIBOBJS=$ac_libobjs
6107
6108 LTLIBOBJS=$ac_ltlibobjs
6109
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6112 printf %s "checking that generated files are newer than configure... " >&6; }
6113 if test -n "$am_sleep_pid"; then
6114 # Hide warnings about reused PIDs.
6115 wait $am_sleep_pid 2>/dev/null
6116 fi
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6118 printf "%s\n" "done" >&6; }
6119 if test -n "$EXEEXT"; then
6120 am__EXEEXT_TRUE=
6121 am__EXEEXT_FALSE='#'
6122 else
6123 am__EXEEXT_TRUE='#'
6124 am__EXEEXT_FALSE=
6125 fi
6126
6127 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6128 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6130 fi
6131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6132 as_fn_error $? "conditional \"AMDEP\" was never defined.
6133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6134 fi
6135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6136 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6138 fi
6139 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6140 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6142 fi
6143 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
6144 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
6145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6146 fi
6147 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
6148 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
6149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6150 fi
6151 if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
6152 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
6153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6154 fi
6155 if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
6156 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
6157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6158 fi
6159 if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
6160 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
6161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6162 fi
6163 if test -z "${OS_ANDROID_TRUE}" && test -z "${OS_ANDROID_FALSE}"; then
6164 as_fn_error $? "conditional \"OS_ANDROID\" was never defined.
6165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6166 fi
6167 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
6168 as_fn_error $? "conditional \"DEBUG\" was never defined.
6169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6170 fi
6171 if test -z "${HAVE_SGUTILS_TRUE}" && test -z "${HAVE_SGUTILS_FALSE}"; then
6172 as_fn_error $? "conditional \"HAVE_SGUTILS\" was never defined.
6173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6174 fi
6175
6176 : "${CONFIG_STATUS=./config.status}"
6177 ac_write_fail=0
6178 ac_clean_files_save=$ac_clean_files
6179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6181 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6182 as_write_fail=0
6183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6184 #! $SHELL
6185 # Generated by $as_me.
6186 # Run this file to recreate the current configuration.
6187 # Compiler output produced by configure, useful for debugging
6188 # configure, is in config.log if it exists.
6189
6190 debug=false
6191 ac_cs_recheck=false
6192 ac_cs_silent=false
6193
6194 SHELL=\${CONFIG_SHELL-$SHELL}
6195 export SHELL
6196 _ASEOF
6197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6198 ## -------------------- ##
6199 ## M4sh Initialization. ##
6200 ## -------------------- ##
6201
6202 # Be more Bourne compatible
6203 DUALCASE=1; export DUALCASE # for MKS sh
6204 as_nop=:
6205 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6206 then :
6207 emulate sh
6208 NULLCMD=:
6209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6210 # is contrary to our usage. Disable this feature.
6211 alias -g '${1+"$@"}'='"$@"'
6212 setopt NO_GLOB_SUBST
6213 else $as_nop
6214 case `(set -o) 2>/dev/null` in #(
6215 *posix*) :
6216 set -o posix ;; #(
6217 *) :
6218 ;;
6219 esac
6220 fi
6221
6222
6223
6224 # Reset variables that may have inherited troublesome values from
6225 # the environment.
6226
6227 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6228 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6229 # side effect of setting IFS to empty, thus disabling word splitting.)
6230 # Quoting is to prevent editors from complaining about space-tab.
6231 as_nl='
6232 '
6233 export as_nl
6234 IFS=" "" $as_nl"
6235
6236 PS1='$ '
6237 PS2='> '
6238 PS4='+ '
6239
6240 # Ensure predictable behavior from utilities with locale-dependent output.
6241 LC_ALL=C
6242 export LC_ALL
6243 LANGUAGE=C
6244 export LANGUAGE
6245
6246 # We cannot yet rely on "unset" to work, but we need these variables
6247 # to be unset--not just set to an empty or harmless value--now, to
6248 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6249 # also avoids known problems related to "unset" and subshell syntax
6250 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6251 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6252 do eval test \${$as_var+y} \
6253 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6254 done
6255
6256 # Ensure that fds 0, 1, and 2 are open.
6257 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6258 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6259 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6260
6261 # The user is always right.
6262 if ${PATH_SEPARATOR+false} :; then
6263 PATH_SEPARATOR=:
6264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6266 PATH_SEPARATOR=';'
6267 }
6268 fi
6269
6270
6271 # Find who we are. Look in the path if we contain no directory separator.
6272 as_myself=
6273 case $0 in #((
6274 *[\\/]* ) as_myself=$0 ;;
6275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 case $as_dir in #(((
6280 '') as_dir=./ ;;
6281 */) ;;
6282 *) as_dir=$as_dir/ ;;
6283 esac
6284 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6285 done
6286 IFS=$as_save_IFS
6287
6288 ;;
6289 esac
6290 # We did not find ourselves, most probably we were run as `sh COMMAND'
6291 # in which case we are not to be found in the path.
6292 if test "x$as_myself" = x; then
6293 as_myself=$0
6294 fi
6295 if test ! -f "$as_myself"; then
6296 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6297 exit 1
6298 fi
6299
6300
6301
6302 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6303 # ----------------------------------------
6304 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6305 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6306 # script with STATUS, using 1 if that was 0.
6307 as_fn_error ()
6308 {
6309 as_status=$1; test $as_status -eq 0 && as_status=1
6310 if test "$4"; then
6311 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6313 fi
6314 printf "%s\n" "$as_me: error: $2" >&2
6315 as_fn_exit $as_status
6316 } # as_fn_error
6317
6318
6319
6320 # as_fn_set_status STATUS
6321 # -----------------------
6322 # Set $? to STATUS, without forking.
6323 as_fn_set_status ()
6324 {
6325 return $1
6326 } # as_fn_set_status
6327
6328 # as_fn_exit STATUS
6329 # -----------------
6330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6331 as_fn_exit ()
6332 {
6333 set +e
6334 as_fn_set_status $1
6335 exit $1
6336 } # as_fn_exit
6337
6338 # as_fn_unset VAR
6339 # ---------------
6340 # Portably unset VAR.
6341 as_fn_unset ()
6342 {
6343 { eval $1=; unset $1;}
6344 }
6345 as_unset=as_fn_unset
6346
6347 # as_fn_append VAR VALUE
6348 # ----------------------
6349 # Append the text in VALUE to the end of the definition contained in VAR. Take
6350 # advantage of any shell optimizations that allow amortized linear growth over
6351 # repeated appends, instead of the typical quadratic growth present in naive
6352 # implementations.
6353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6354 then :
6355 eval 'as_fn_append ()
6356 {
6357 eval $1+=\$2
6358 }'
6359 else $as_nop
6360 as_fn_append ()
6361 {
6362 eval $1=\$$1\$2
6363 }
6364 fi # as_fn_append
6365
6366 # as_fn_arith ARG...
6367 # ------------------
6368 # Perform arithmetic evaluation on the ARGs, and store the result in the
6369 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6370 # must be portable across $(()) and expr.
6371 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6372 then :
6373 eval 'as_fn_arith ()
6374 {
6375 as_val=$(( $* ))
6376 }'
6377 else $as_nop
6378 as_fn_arith ()
6379 {
6380 as_val=`expr "$@" || test $? -eq 1`
6381 }
6382 fi # as_fn_arith
6383
6384
6385 if expr a : '\(a\)' >/dev/null 2>&1 &&
6386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6387 as_expr=expr
6388 else
6389 as_expr=false
6390 fi
6391
6392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6393 as_basename=basename
6394 else
6395 as_basename=false
6396 fi
6397
6398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6399 as_dirname=dirname
6400 else
6401 as_dirname=false
6402 fi
6403
6404 as_me=`$as_basename -- "$0" ||
6405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6406 X"$0" : 'X\(//\)$' \| \
6407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6408 printf "%s\n" X/"$0" |
6409 sed '/^.*\/\([^/][^/]*\)\/*$/{
6410 s//\1/
6411 q
6412 }
6413 /^X\/\(\/\/\)$/{
6414 s//\1/
6415 q
6416 }
6417 /^X\/\(\/\).*/{
6418 s//\1/
6419 q
6420 }
6421 s/.*/./; q'`
6422
6423 # Avoid depending upon Character Ranges.
6424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6427 as_cr_digits='0123456789'
6428 as_cr_alnum=$as_cr_Letters$as_cr_digits
6429
6430
6431 # Determine whether it's possible to make 'echo' print without a newline.
6432 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6433 # for compatibility with existing Makefiles.
6434 ECHO_C= ECHO_N= ECHO_T=
6435 case `echo -n x` in #(((((
6436 -n*)
6437 case `echo 'xy\c'` in
6438 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6439 xy) ECHO_C='\c';;
6440 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6441 ECHO_T=' ';;
6442 esac;;
6443 *)
6444 ECHO_N='-n';;
6445 esac
6446
6447 # For backward compatibility with old third-party macros, we provide
6448 # the shell variables $as_echo and $as_echo_n. New code should use
6449 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6450 as_echo='printf %s\n'
6451 as_echo_n='printf %s'
6452
6453 rm -f conf$$ conf$$.exe conf$$.file
6454 if test -d conf$$.dir; then
6455 rm -f conf$$.dir/conf$$.file
6456 else
6457 rm -f conf$$.dir
6458 mkdir conf$$.dir 2>/dev/null
6459 fi
6460 if (echo >conf$$.file) 2>/dev/null; then
6461 if ln -s conf$$.file conf$$ 2>/dev/null; then
6462 as_ln_s='ln -s'
6463 # ... but there are two gotchas:
6464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6466 # In both cases, we have to default to `cp -pR'.
6467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6468 as_ln_s='cp -pR'
6469 elif ln conf$$.file conf$$ 2>/dev/null; then
6470 as_ln_s=ln
6471 else
6472 as_ln_s='cp -pR'
6473 fi
6474 else
6475 as_ln_s='cp -pR'
6476 fi
6477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6478 rmdir conf$$.dir 2>/dev/null
6479
6480
6481 # as_fn_mkdir_p
6482 # -------------
6483 # Create "$as_dir" as a directory, including parents if necessary.
6484 as_fn_mkdir_p ()
6485 {
6486
6487 case $as_dir in #(
6488 -*) as_dir=./$as_dir;;
6489 esac
6490 test -d "$as_dir" || eval $as_mkdir_p || {
6491 as_dirs=
6492 while :; do
6493 case $as_dir in #(
6494 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6495 *) as_qdir=$as_dir;;
6496 esac
6497 as_dirs="'$as_qdir' $as_dirs"
6498 as_dir=`$as_dirname -- "$as_dir" ||
6499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6500 X"$as_dir" : 'X\(//\)[^/]' \| \
6501 X"$as_dir" : 'X\(//\)$' \| \
6502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6503 printf "%s\n" X"$as_dir" |
6504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6505 s//\1/
6506 q
6507 }
6508 /^X\(\/\/\)[^/].*/{
6509 s//\1/
6510 q
6511 }
6512 /^X\(\/\/\)$/{
6513 s//\1/
6514 q
6515 }
6516 /^X\(\/\).*/{
6517 s//\1/
6518 q
6519 }
6520 s/.*/./; q'`
6521 test -d "$as_dir" && break
6522 done
6523 test -z "$as_dirs" || eval "mkdir $as_dirs"
6524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6525
6526
6527 } # as_fn_mkdir_p
6528 if mkdir -p . 2>/dev/null; then
6529 as_mkdir_p='mkdir -p "$as_dir"'
6530 else
6531 test -d ./-p && rmdir ./-p
6532 as_mkdir_p=false
6533 fi
6534
6535
6536 # as_fn_executable_p FILE
6537 # -----------------------
6538 # Test if FILE is an executable regular file.
6539 as_fn_executable_p ()
6540 {
6541 test -f "$1" && test -x "$1"
6542 } # as_fn_executable_p
6543 as_test_x='test -x'
6544 as_executable_p=as_fn_executable_p
6545
6546 # Sed expression to map a string onto a valid CPP name.
6547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6548
6549 # Sed expression to map a string onto a valid variable name.
6550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6551
6552
6553 exec 6>&1
6554 ## ----------------------------------- ##
6555 ## Main body of $CONFIG_STATUS script. ##
6556 ## ----------------------------------- ##
6557 _ASEOF
6558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6559
6560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6561 # Save the log message, to keep $0 and so on meaningful, and to
6562 # report actual input values of CONFIG_FILES etc. instead of their
6563 # values after options handling.
6564 ac_log="
6565 This file was extended by ddpt $as_me 0.97, which was
6566 generated by GNU Autoconf 2.70. Invocation command line was
6567
6568 CONFIG_FILES = $CONFIG_FILES
6569 CONFIG_HEADERS = $CONFIG_HEADERS
6570 CONFIG_LINKS = $CONFIG_LINKS
6571 CONFIG_COMMANDS = $CONFIG_COMMANDS
6572 $ $0 $@
6573
6574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6575 "
6576
6577 _ACEOF
6578
6579 case $ac_config_files in *"
6580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6581 esac
6582
6583 case $ac_config_headers in *"
6584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6585 esac
6586
6587
6588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6589 # Files that config.status was made for.
6590 config_files="$ac_config_files"
6591 config_headers="$ac_config_headers"
6592 config_commands="$ac_config_commands"
6593
6594 _ACEOF
6595
6596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6597 ac_cs_usage="\
6598 \`$as_me' instantiates files and other configuration actions
6599 from templates according to the current configuration. Unless the files
6600 and actions are specified as TAGs, all are instantiated by default.
6601
6602 Usage: $0 [OPTION]... [TAG]...
6603
6604 -h, --help print this help, then exit
6605 -V, --version print version number and configuration settings, then exit
6606 --config print configuration, then exit
6607 -q, --quiet, --silent
6608 do not print progress messages
6609 -d, --debug don't remove temporary files
6610 --recheck update $as_me by reconfiguring in the same conditions
6611 --file=FILE[:TEMPLATE]
6612 instantiate the configuration file FILE
6613 --header=FILE[:TEMPLATE]
6614 instantiate the configuration header FILE
6615
6616 Configuration files:
6617 $config_files
6618
6619 Configuration headers:
6620 $config_headers
6621
6622 Configuration commands:
6623 $config_commands
6624
6625 Report bugs to <[email protected]>."
6626
6627 _ACEOF
6628 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6629 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6631 ac_cs_config='$ac_cs_config_escaped'
6632 ac_cs_version="\\
6633 ddpt config.status 0.97
6634 configured by $0, generated by GNU Autoconf 2.70,
6635 with options \\"\$ac_cs_config\\"
6636
6637 Copyright (C) 2020 Free Software Foundation, Inc.
6638 This config.status script is free software; the Free Software Foundation
6639 gives unlimited permission to copy, distribute and modify it."
6640
6641 ac_pwd='$ac_pwd'
6642 srcdir='$srcdir'
6643 INSTALL='$INSTALL'
6644 MKDIR_P='$MKDIR_P'
6645 AWK='$AWK'
6646 test -n "\$AWK" || AWK=awk
6647 _ACEOF
6648
6649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6650 # The default lists apply if the user does not specify any file.
6651 ac_need_defaults=:
6652 while test $# != 0
6653 do
6654 case $1 in
6655 --*=?*)
6656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6658 ac_shift=:
6659 ;;
6660 --*=)
6661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6662 ac_optarg=
6663 ac_shift=:
6664 ;;
6665 *)
6666 ac_option=$1
6667 ac_optarg=$2
6668 ac_shift=shift
6669 ;;
6670 esac
6671
6672 case $ac_option in
6673 # Handling of the options.
6674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6675 ac_cs_recheck=: ;;
6676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6677 printf "%s\n" "$ac_cs_version"; exit ;;
6678 --config | --confi | --conf | --con | --co | --c )
6679 printf "%s\n" "$ac_cs_config"; exit ;;
6680 --debug | --debu | --deb | --de | --d | -d )
6681 debug=: ;;
6682 --file | --fil | --fi | --f )
6683 $ac_shift
6684 case $ac_optarg in
6685 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6686 '') as_fn_error $? "missing file argument" ;;
6687 esac
6688 as_fn_append CONFIG_FILES " '$ac_optarg'"
6689 ac_need_defaults=false;;
6690 --header | --heade | --head | --hea )
6691 $ac_shift
6692 case $ac_optarg in
6693 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6694 esac
6695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6696 ac_need_defaults=false;;
6697 --he | --h)
6698 # Conflict between --help and --header
6699 as_fn_error $? "ambiguous option: \`$1'
6700 Try \`$0 --help' for more information.";;
6701 --help | --hel | -h )
6702 printf "%s\n" "$ac_cs_usage"; exit ;;
6703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6705 ac_cs_silent=: ;;
6706
6707 # This is an error.
6708 -*) as_fn_error $? "unrecognized option: \`$1'
6709 Try \`$0 --help' for more information." ;;
6710
6711 *) as_fn_append ac_config_targets " $1"
6712 ac_need_defaults=false ;;
6713
6714 esac
6715 shift
6716 done
6717
6718 ac_configure_extra_args=
6719
6720 if $ac_cs_silent; then
6721 exec 6>/dev/null
6722 ac_configure_extra_args="$ac_configure_extra_args --silent"
6723 fi
6724
6725 _ACEOF
6726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6727 if \$ac_cs_recheck; then
6728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6729 shift
6730 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6731 CONFIG_SHELL='$SHELL'
6732 export CONFIG_SHELL
6733 exec "\$@"
6734 fi
6735
6736 _ACEOF
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 exec 5>>config.log
6739 {
6740 echo
6741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6742 ## Running $as_me. ##
6743 _ASBOX
6744 printf "%s\n" "$ac_log"
6745 } >&5
6746
6747 _ACEOF
6748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6749 #
6750 # INIT-COMMANDS
6751 #
6752 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
6753
6754 _ACEOF
6755
6756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6757
6758 # Handling of arguments.
6759 for ac_config_target in $ac_config_targets
6760 do
6761 case $ac_config_target in
6762 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6763 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6765 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6766 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6767
6768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6769 esac
6770 done
6771
6772
6773 # If the user did not use the arguments to specify the items to instantiate,
6774 # then the envvar interface is used. Set only those that are not.
6775 # We use the long form for the default assignment because of an extremely
6776 # bizarre bug on SunOS 4.1.3.
6777 if $ac_need_defaults; then
6778 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6779 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6780 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
6781 fi
6782
6783 # Have a temporary directory for convenience. Make it in the build tree
6784 # simply because there is no reason against having it here, and in addition,
6785 # creating and moving files from /tmp can sometimes cause problems.
6786 # Hook for its removal unless debugging.
6787 # Note that there is a small window in which the directory will not be cleaned:
6788 # after its creation but before its name has been assigned to `$tmp'.
6789 $debug ||
6790 {
6791 tmp= ac_tmp=
6792 trap 'exit_status=$?
6793 : "${ac_tmp:=$tmp}"
6794 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6795 ' 0
6796 trap 'as_fn_exit 1' 1 2 13 15
6797 }
6798 # Create a (secure) tmp directory for tmp files.
6799
6800 {
6801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6802 test -d "$tmp"
6803 } ||
6804 {
6805 tmp=./conf$$-$RANDOM
6806 (umask 077 && mkdir "$tmp")
6807 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6808 ac_tmp=$tmp
6809
6810 # Set up the scripts for CONFIG_FILES section.
6811 # No need to generate them if there are no CONFIG_FILES.
6812 # This happens for instance with `./config.status config.h'.
6813 if test -n "$CONFIG_FILES"; then
6814
6815
6816 ac_cr=`echo X | tr X '\015'`
6817 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6818 # But we know of no other shell where ac_cr would be empty at this
6819 # point, so we can use a bashism as a fallback.
6820 if test "x$ac_cr" = x; then
6821 eval ac_cr=\$\'\\r\'
6822 fi
6823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6825 ac_cs_awk_cr='\\r'
6826 else
6827 ac_cs_awk_cr=$ac_cr
6828 fi
6829
6830 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6831 _ACEOF
6832
6833
6834 {
6835 echo "cat >conf$$subs.awk <<_ACEOF" &&
6836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6837 echo "_ACEOF"
6838 } >conf$$subs.sh ||
6839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6841 ac_delim='%!_!# '
6842 for ac_last_try in false false false false false :; do
6843 . ./conf$$subs.sh ||
6844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6845
6846 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6847 if test $ac_delim_n = $ac_delim_num; then
6848 break
6849 elif $ac_last_try; then
6850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6851 else
6852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6853 fi
6854 done
6855 rm -f conf$$subs.sh
6856
6857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6858 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6859 _ACEOF
6860 sed -n '
6861 h
6862 s/^/S["/; s/!.*/"]=/
6863 p
6864 g
6865 s/^[^!]*!//
6866 :repl
6867 t repl
6868 s/'"$ac_delim"'$//
6869 t delim
6870 :nl
6871 h
6872 s/\(.\{148\}\)..*/\1/
6873 t more1
6874 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6875 p
6876 n
6877 b repl
6878 :more1
6879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6880 p
6881 g
6882 s/.\{148\}//
6883 t nl
6884 :delim
6885 h
6886 s/\(.\{148\}\)..*/\1/
6887 t more2
6888 s/["\\]/\\&/g; s/^/"/; s/$/"/
6889 p
6890 b
6891 :more2
6892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6893 p
6894 g
6895 s/.\{148\}//
6896 t delim
6897 ' <conf$$subs.awk | sed '
6898 /^[^""]/{
6899 N
6900 s/\n//
6901 }
6902 ' >>$CONFIG_STATUS || ac_write_fail=1
6903 rm -f conf$$subs.awk
6904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6905 _ACAWK
6906 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6907 for (key in S) S_is_set[key] = 1
6908 FS = ""
6909
6910 }
6911 {
6912 line = $ 0
6913 nfields = split(line, field, "@")
6914 substed = 0
6915 len = length(field[1])
6916 for (i = 2; i < nfields; i++) {
6917 key = field[i]
6918 keylen = length(key)
6919 if (S_is_set[key]) {
6920 value = S[key]
6921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6922 len += length(value) + length(field[++i])
6923 substed = 1
6924 } else
6925 len += 1 + keylen
6926 }
6927
6928 print line
6929 }
6930
6931 _ACAWK
6932 _ACEOF
6933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6934 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6936 else
6937 cat
6938 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6939 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6940 _ACEOF
6941
6942 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6943 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6944 # trailing colons and then remove the whole line if VPATH becomes empty
6945 # (actually we leave an empty line to preserve line numbers).
6946 if test "x$srcdir" = x.; then
6947 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6948 h
6949 s///
6950 s/^/:/
6951 s/[ ]*$/:/
6952 s/:\$(srcdir):/:/g
6953 s/:\${srcdir}:/:/g
6954 s/:@srcdir@:/:/g
6955 s/^:*//
6956 s/:*$//
6957 x
6958 s/\(=[ ]*\).*/\1/
6959 G
6960 s/\n//
6961 s/^[^=]*=[ ]*$//
6962 }'
6963 fi
6964
6965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6966 fi # test -n "$CONFIG_FILES"
6967
6968 # Set up the scripts for CONFIG_HEADERS section.
6969 # No need to generate them if there are no CONFIG_HEADERS.
6970 # This happens for instance with `./config.status Makefile'.
6971 if test -n "$CONFIG_HEADERS"; then
6972 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6973 BEGIN {
6974 _ACEOF
6975
6976 # Transform confdefs.h into an awk script `defines.awk', embedded as
6977 # here-document in config.status, that substitutes the proper values into
6978 # config.h.in to produce config.h.
6979
6980 # Create a delimiter string that does not exist in confdefs.h, to ease
6981 # handling of long lines.
6982 ac_delim='%!_!# '
6983 for ac_last_try in false false :; do
6984 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6985 if test -z "$ac_tt"; then
6986 break
6987 elif $ac_last_try; then
6988 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6989 else
6990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6991 fi
6992 done
6993
6994 # For the awk script, D is an array of macro values keyed by name,
6995 # likewise P contains macro parameters if any. Preserve backslash
6996 # newline sequences.
6997
6998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6999 sed -n '
7000 s/.\{148\}/&'"$ac_delim"'/g
7001 t rset
7002 :rset
7003 s/^[ ]*#[ ]*define[ ][ ]*/ /
7004 t def
7005 d
7006 :def
7007 s/\\$//
7008 t bsnl
7009 s/["\\]/\\&/g
7010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7011 D["\1"]=" \3"/p
7012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7013 d
7014 :bsnl
7015 s/["\\]/\\&/g
7016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7017 D["\1"]=" \3\\\\\\n"\\/p
7018 t cont
7019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7020 t cont
7021 d
7022 :cont
7023 n
7024 s/.\{148\}/&'"$ac_delim"'/g
7025 t clear
7026 :clear
7027 s/\\$//
7028 t bsnlc
7029 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7030 d
7031 :bsnlc
7032 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7033 b cont
7034 ' <confdefs.h | sed '
7035 s/'"$ac_delim"'/"\\\
7036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7037
7038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7039 for (key in D) D_is_set[key] = 1
7040 FS = ""
7041 }
7042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7043 line = \$ 0
7044 split(line, arg, " ")
7045 if (arg[1] == "#") {
7046 defundef = arg[2]
7047 mac1 = arg[3]
7048 } else {
7049 defundef = substr(arg[1], 2)
7050 mac1 = arg[2]
7051 }
7052 split(mac1, mac2, "(") #)
7053 macro = mac2[1]
7054 prefix = substr(line, 1, index(line, defundef) - 1)
7055 if (D_is_set[macro]) {
7056 # Preserve the white space surrounding the "#".
7057 print prefix "define", macro P[macro] D[macro]
7058 next
7059 } else {
7060 # Replace #undef with comments. This is necessary, for example,
7061 # in the case of _POSIX_SOURCE, which is predefined and required
7062 # on some systems where configure will not decide to define it.
7063 if (defundef == "undef") {
7064 print "/*", prefix defundef, macro, "*/"
7065 next
7066 }
7067 }
7068 }
7069 { print }
7070 _ACAWK
7071 _ACEOF
7072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7073 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7074 fi # test -n "$CONFIG_HEADERS"
7075
7076
7077 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7078 shift
7079 for ac_tag
7080 do
7081 case $ac_tag in
7082 :[FHLC]) ac_mode=$ac_tag; continue;;
7083 esac
7084 case $ac_mode$ac_tag in
7085 :[FHL]*:*);;
7086 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7087 :[FH]-) ac_tag=-:-;;
7088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7089 esac
7090 ac_save_IFS=$IFS
7091 IFS=:
7092 set x $ac_tag
7093 IFS=$ac_save_IFS
7094 shift
7095 ac_file=$1
7096 shift
7097
7098 case $ac_mode in
7099 :L) ac_source=$1;;
7100 :[FH])
7101 ac_file_inputs=
7102 for ac_f
7103 do
7104 case $ac_f in
7105 -) ac_f="$ac_tmp/stdin";;
7106 *) # Look for the file first in the build tree, then in the source tree
7107 # (if the path is not absolute). The absolute path cannot be DOS-style,
7108 # because $ac_f cannot contain `:'.
7109 test -f "$ac_f" ||
7110 case $ac_f in
7111 [\\/$]*) false;;
7112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7113 esac ||
7114 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7115 esac
7116 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7117 as_fn_append ac_file_inputs " '$ac_f'"
7118 done
7119
7120 # Let's still pretend it is `configure' which instantiates (i.e., don't
7121 # use $as_me), people would be surprised to read:
7122 # /* config.h. Generated by config.status. */
7123 configure_input='Generated from '`
7124 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7125 `' by configure.'
7126 if test x"$ac_file" != x-; then
7127 configure_input="$ac_file. $configure_input"
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7129 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7130 fi
7131 # Neutralize special characters interpreted by sed in replacement strings.
7132 case $configure_input in #(
7133 *\&* | *\|* | *\\* )
7134 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7136 *) ac_sed_conf_input=$configure_input;;
7137 esac
7138
7139 case $ac_tag in
7140 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7142 esac
7143 ;;
7144 esac
7145
7146 ac_dir=`$as_dirname -- "$ac_file" ||
7147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7148 X"$ac_file" : 'X\(//\)[^/]' \| \
7149 X"$ac_file" : 'X\(//\)$' \| \
7150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7151 printf "%s\n" X"$ac_file" |
7152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7153 s//\1/
7154 q
7155 }
7156 /^X\(\/\/\)[^/].*/{
7157 s//\1/
7158 q
7159 }
7160 /^X\(\/\/\)$/{
7161 s//\1/
7162 q
7163 }
7164 /^X\(\/\).*/{
7165 s//\1/
7166 q
7167 }
7168 s/.*/./; q'`
7169 as_dir="$ac_dir"; as_fn_mkdir_p
7170 ac_builddir=.
7171
7172 case "$ac_dir" in
7173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7174 *)
7175 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7176 # A ".." for each directory in $ac_dir_suffix.
7177 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7178 case $ac_top_builddir_sub in
7179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7181 esac ;;
7182 esac
7183 ac_abs_top_builddir=$ac_pwd
7184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7185 # for backward compatibility:
7186 ac_top_builddir=$ac_top_build_prefix
7187
7188 case $srcdir in
7189 .) # We are building in place.
7190 ac_srcdir=.
7191 ac_top_srcdir=$ac_top_builddir_sub
7192 ac_abs_top_srcdir=$ac_pwd ;;
7193 [\\/]* | ?:[\\/]* ) # Absolute name.
7194 ac_srcdir=$srcdir$ac_dir_suffix;
7195 ac_top_srcdir=$srcdir
7196 ac_abs_top_srcdir=$srcdir ;;
7197 *) # Relative name.
7198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7199 ac_top_srcdir=$ac_top_build_prefix$srcdir
7200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7201 esac
7202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7203
7204
7205 case $ac_mode in
7206 :F)
7207 #
7208 # CONFIG_FILE
7209 #
7210
7211 case $INSTALL in
7212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7214 esac
7215 ac_MKDIR_P=$MKDIR_P
7216 case $MKDIR_P in
7217 [\\/$]* | ?:[\\/]* ) ;;
7218 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7219 esac
7220 _ACEOF
7221
7222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7223 # If the template does not know about datarootdir, expand it.
7224 # FIXME: This hack should be removed a few years after 2.60.
7225 ac_datarootdir_hack=; ac_datarootdir_seen=
7226 ac_sed_dataroot='
7227 /datarootdir/ {
7228 p
7229 q
7230 }
7231 /@datadir@/p
7232 /@docdir@/p
7233 /@infodir@/p
7234 /@localedir@/p
7235 /@mandir@/p'
7236 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7237 *datarootdir*) ac_datarootdir_seen=yes;;
7238 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7240 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7241 _ACEOF
7242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7243 ac_datarootdir_hack='
7244 s&@datadir@&$datadir&g
7245 s&@docdir@&$docdir&g
7246 s&@infodir@&$infodir&g
7247 s&@localedir@&$localedir&g
7248 s&@mandir@&$mandir&g
7249 s&\\\${datarootdir}&$datarootdir&g' ;;
7250 esac
7251 _ACEOF
7252
7253 # Neutralize VPATH when `$srcdir' = `.'.
7254 # Shell code in configure.ac might set extrasub.
7255 # FIXME: do we really want to maintain this feature?
7256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7257 ac_sed_extra="$ac_vpsub
7258 $extrasub
7259 _ACEOF
7260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7261 :t
7262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7263 s|@configure_input@|$ac_sed_conf_input|;t t
7264 s&@top_builddir@&$ac_top_builddir_sub&;t t
7265 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7266 s&@srcdir@&$ac_srcdir&;t t
7267 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7268 s&@top_srcdir@&$ac_top_srcdir&;t t
7269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7270 s&@builddir@&$ac_builddir&;t t
7271 s&@abs_builddir@&$ac_abs_builddir&;t t
7272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7273 s&@INSTALL@&$ac_INSTALL&;t t
7274 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7275 $ac_datarootdir_hack
7276 "
7277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7278 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7279
7280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7281 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7283 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7285 which seems to be undefined. Please make sure it is defined" >&5
7286 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7287 which seems to be undefined. Please make sure it is defined" >&2;}
7288
7289 rm -f "$ac_tmp/stdin"
7290 case $ac_file in
7291 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7292 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7293 esac \
7294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7295 ;;
7296 :H)
7297 #
7298 # CONFIG_HEADER
7299 #
7300 if test x"$ac_file" != x-; then
7301 {
7302 printf "%s\n" "/* $configure_input */" >&1 \
7303 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7304 } >"$ac_tmp/config.h" \
7305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7306 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7308 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7309 else
7310 rm -f "$ac_file"
7311 mv "$ac_tmp/config.h" "$ac_file" \
7312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7313 fi
7314 else
7315 printf "%s\n" "/* $configure_input */" >&1 \
7316 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7317 || as_fn_error $? "could not create -" "$LINENO" 5
7318 fi
7319 # Compute "$ac_file"'s index in $config_headers.
7320 _am_arg="$ac_file"
7321 _am_stamp_count=1
7322 for _am_header in $config_headers :; do
7323 case $_am_header in
7324 $_am_arg | $_am_arg:* )
7325 break ;;
7326 * )
7327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7328 esac
7329 done
7330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7332 X"$_am_arg" : 'X\(//\)[^/]' \| \
7333 X"$_am_arg" : 'X\(//\)$' \| \
7334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7335 printf "%s\n" X"$_am_arg" |
7336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7337 s//\1/
7338 q
7339 }
7340 /^X\(\/\/\)[^/].*/{
7341 s//\1/
7342 q
7343 }
7344 /^X\(\/\/\)$/{
7345 s//\1/
7346 q
7347 }
7348 /^X\(\/\).*/{
7349 s//\1/
7350 q
7351 }
7352 s/.*/./; q'`/stamp-h$_am_stamp_count
7353 ;;
7354
7355 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7356 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7357 ;;
7358 esac
7359
7360
7361 case $ac_file$ac_mode in
7362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7363 # Older Autoconf quotes --file arguments for eval, but not when files
7364 # are listed without --file. Let's play safe and only enable the eval
7365 # if we detect the quoting.
7366 # TODO: see whether this extra hack can be removed once we start
7367 # requiring Autoconf 2.70 or later.
7368 case $CONFIG_FILES in #(
7369 *\'*) :
7370 eval set x "$CONFIG_FILES" ;; #(
7371 *) :
7372 set x $CONFIG_FILES ;; #(
7373 *) :
7374 ;;
7375 esac
7376 shift
7377 # Used to flag and report bootstrapping failures.
7378 am_rc=0
7379 for am_mf
7380 do
7381 # Strip MF so we end up with the name of the file.
7382 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7383 # Check whether this is an Automake generated Makefile which includes
7384 # dependency-tracking related rules and includes.
7385 # Grep'ing the whole file directly is not great: AIX grep has a line
7386 # limit of 2048, but all sed's we know have understand at least 4000.
7387 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7388 || continue
7389 am_dirpart=`$as_dirname -- "$am_mf" ||
7390 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7391 X"$am_mf" : 'X\(//\)[^/]' \| \
7392 X"$am_mf" : 'X\(//\)$' \| \
7393 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7394 printf "%s\n" X"$am_mf" |
7395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7396 s//\1/
7397 q
7398 }
7399 /^X\(\/\/\)[^/].*/{
7400 s//\1/
7401 q
7402 }
7403 /^X\(\/\/\)$/{
7404 s//\1/
7405 q
7406 }
7407 /^X\(\/\).*/{
7408 s//\1/
7409 q
7410 }
7411 s/.*/./; q'`
7412 am_filepart=`$as_basename -- "$am_mf" ||
7413 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7414 X"$am_mf" : 'X\(//\)$' \| \
7415 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7416 printf "%s\n" X/"$am_mf" |
7417 sed '/^.*\/\([^/][^/]*\)\/*$/{
7418 s//\1/
7419 q
7420 }
7421 /^X\/\(\/\/\)$/{
7422 s//\1/
7423 q
7424 }
7425 /^X\/\(\/\).*/{
7426 s//\1/
7427 q
7428 }
7429 s/.*/./; q'`
7430 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7431 && sed -e '/# am--include-marker/d' "$am_filepart" \
7432 | $MAKE -f - am--depfiles" >&5
7433 (cd "$am_dirpart" \
7434 && sed -e '/# am--include-marker/d' "$am_filepart" \
7435 | $MAKE -f - am--depfiles) >&5 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } || am_rc=$?
7439 done
7440 if test $am_rc -ne 0; then
7441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7443 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7444 for automatic dependency tracking. Try re-running configure with the
7445 '--disable-dependency-tracking' option to at least be able to build
7446 the package (albeit without support for automatic dependency tracking).
7447 See \`config.log' for more details" "$LINENO" 5; }
7448 fi
7449 { am_dirpart=; unset am_dirpart;}
7450 { am_filepart=; unset am_filepart;}
7451 { am_mf=; unset am_mf;}
7452 { am_rc=; unset am_rc;}
7453 rm -f conftest-deps.mk
7454 }
7455 ;;
7456
7457 esac
7458 done # for ac_tag
7459
7460
7461 as_fn_exit 0
7462 _ACEOF
7463 ac_clean_files=$ac_clean_files_save
7464
7465 test $ac_write_fail = 0 ||
7466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7467
7468
7469 # configure is writing to config.log, and then calls config.status.
7470 # config.status does its own redirection, appending to config.log.
7471 # Unfortunately, on DOS this fails, as config.log is still kept open
7472 # by configure, so config.status won't be able to write to it; its
7473 # output is simply discarded. So we exec the FD to /dev/null,
7474 # effectively closing config.log, so it can be properly (re)opened and
7475 # appended to by config.status. When coming back to configure, we
7476 # need to make the FD available again.
7477 if test "$no_create" != yes; then
7478 ac_cs_success=:
7479 ac_config_status_args=
7480 test "$silent" = yes &&
7481 ac_config_status_args="$ac_config_status_args --quiet"
7482 exec 5>/dev/null
7483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7484 exec 5>>config.log
7485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7486 # would make configure fail if this is the last instruction.
7487 $ac_cs_success || as_fn_exit 1
7488 fi
7489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7491 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7492 fi
7493
7494