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