Debian Codegraph @

configure

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