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