Annotation of OpenXM_contrib/pari-2.2/config/paricfg.h.SH, Revision 1.2
1.1 noro 1: file="$objdir/paricfg.h"
2:
3: echo Extracting $file
4: rm -f $file
5:
6: case "$optimization" in
7: full) ;;
8: *) debuginfo=" -- $optimization";;
9: esac
10:
11: case "$osname" in
12: os2) gphelp="perl -S gphelp -detex" ;;
13: *) gphelp="$bindir/gphelp" ;;
14: esac
15:
16: cat > $file << EOT
17: /* This file was created by Configure. Any change made to it will be lost
18: * next time Configure is run.
19: */
20: #ifndef __CONFIG_H__
21: #define __CONFIG_H__
22: EOT
23:
24: # case "$osname" in
25: # cygwin*) echo '#ifdef __CYGWIN32__' >> $file ;
26: # echo '#include "libpari_dll.h"' >> $file ;
27: # echo '#endif' >> $file ;;
28: # esac
29:
30: cat >> $file << EOT
31: #define UNIX
32: #define GPHELP "$gphelp"
33: #define GPDATADIR "$datadir"
34: #define GPMISCDIR "$miscdir"
35: #define SHELL_Q '\\$shell_q'
36:
37: #define PARIVERSION "GP/PARI CALCULATOR Version ${version}.${patch} (${status})"
38: #ifdef __cplusplus
39: # define PARIINFO "C++ ${pretty}${debuginfo}"
40: #else
41: # define PARIINFO "${pretty}${debuginfo}"
42: #endif
1.2 ! noro 43: #define PARI_VERSION_CODE `expr $VersionMajor \\* 65536 + $VersionMinor \\* 256 + $patch`
! 44: #define PARI_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
1.1 noro 45:
1.2 ! noro 46: #define PARI_DOUBLE_FORMAT ${doubleformat}
1.1 noro 47: EOT
48:
49: case $asmarch in
50: none) echo '#define __HAS_NO_ASM__' >> $file;;
51: hppa) echo '#define __HPPA__' >> $file;;
52: m68k) echo '#define __M68K__' >> $file;;
53: esac
54:
1.2 ! noro 55: if test -n "$ASMINLINE"; then
! 56: echo '#define ASMINLINE' >> $file
! 57: fi
! 58:
1.1 noro 59: if test -n "$gzip"; then
60: cat >> $file << EOT
61:
62: /* Location of GNU gzip program (enables reading of .Z and .gz files). */
63: #define GNUZCAT
64: #define ZCAT "$gzip -dc"
65:
66: EOT
67: else if test -n "$zcat"; then
68: cat >> $file << EOT
69:
70: /* Location of zcat program (enables reading of .Z files). */
71: #define ZCAT "$zcat"
72:
73: EOT
74: fi
75: fi
76:
77: if test -n "$readline"; then
78: cat >> $file <<EOT
79: /* Use GNU readline library
80: * This is incompatible with SUN commandtools (not with shelltools).
81: */
82: #define READLINE "$readline"
83: EOT
84: if test -n "$rl_appendchar"; then
85: echo '#define HAS_COMPLETION_APPEND_CHAR' >> $file
86: fi
87: if test -n "$rl_genericbind"; then
88: echo '#define HAS_RL_GENERIC_BIND' >> $file
89: fi
90: if test -n "$rl_refresh_line_oldproto"; then
91: echo '#define OLD_RL_REFRESH_LINE' >> $file
92: fi
93: if test -n "$rl_save_prompt"; then
94: echo '#define HAS_RL_SAVE_PROMPT' >> $file
95: else
96: if test -n "$_rl_save_prompt"; then
97: echo '#define HAS_UNDERSCORE_RL_SAVE_PROMPT' >> $file
98: fi
99: fi
100: if test -n "$rl_message"; then
101: echo '#define HAS_RL_MESSAGE' >> $file
102: fi
103: if test -n "$rl_completion_matches"; then
104: echo '#define HAS_RL_COMPLETION_MATCHES' >> $file
105: fi
106: if test -n "$rl_completion_func_t"; then
107: echo '#define HAS_RL_COMPLETION_FUNC_T' >> $file
108: fi
109: echo >> $file
110: fi
111:
112: case "$CPPF_defined" in
113: yes) echo '#define CPPFunction_defined' >> $file;;
114: esac
115:
116: case "$sizeof_long" in
117: 8) echo '#define LONG_IS_64BIT' >> $file;;
118: esac
119:
120: case "$has_exp2" in
121: no) echo '#define NOEXP2' >> $file;;
122: esac
123:
124: case "$has_ulong" in
125: no) echo '#define ULONG_NOT_DEFINED' >> $file;;
126: esac
127:
128: case "$has_getrusage" in
129: yes) echo '#define USE_GETRUSAGE 1' >> $file;;
130: *) case "$has_times" in
131: yes) echo '#define USE_TIMES 1' >> $file;;
132: *) case "$has_ftime" in
133: yes) echo '#define USE_FTIME 1' >> $file;;
134: esac;;
135: esac;;
136: esac
137:
138: case "$has_sigrelse" in
139: yes) echo '#define USE_SIGRELSE 1' >> $file;;
140: *) case "$has_sigsetmask" in
141: yes) echo '#define USE_SIGSETMASK 1' >> $file;;
142: esac;;
143: esac
144:
145: case $has_dlopen in
1.2 ! noro 146: yes|builtin) cat >> $file << EOT
1.1 noro 147: #define HAS_DLOPEN
1.2 ! noro 148: #define DL_DFLT_NAME "lib$libpari_base.$DLSUFFIX$sodest"
1.1 noro 149: EOT
150: ;;
151: esac
152:
153: case $has_getrlimit in
154: yes) echo '#define STACK_CHECK' >> $file;;
1.2 ! noro 155: esac
! 156:
! 157: case $has_vsnprintf in
! 158: yes) echo '#define HAS_VSNPRINTF' >> $file;;
1.1 noro 159: esac
160:
161: case $has_TIOCGWINSZ in
162: yes) echo '#define HAS_TIOCGWINSZ' >> $file;;
163: esac
164:
165: case $has_strftime in
166: yes) echo '#define HAS_STRFTIME' >> $file;;
167: esac
168:
169: case $has_opendir in
170: yes) echo '#define HAS_OPENDIR' >> $file;;
171: esac
172:
173: echo '#endif' >> $file
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>