| 87 echo "Usage: $0 [OPTIONS]..." |
87 echo "Usage: $0 [OPTIONS]..." |
| 88 if [ $has_overridable_config_vars__ -eq 1 ] ; then |
88 if [ $has_overridable_config_vars__ -eq 1 ] ; then |
| 89 echo |
89 echo |
| 90 echo "Configuration:" |
90 echo "Configuration:" |
| 91 fi |
91 fi |
| |
92 if true \ |
| |
93 ; then |
| |
94 : |
| |
95 if [ -z "$prefix__described__" ] ; then |
| |
96 prefix__described__=1 |
| |
97 cat << '__EOF__' |
| |
98 --prefix path prefix for architecture-independent files [/usr] |
| |
99 __EOF__ |
| |
100 fi |
| |
101 if [ -z "$exec_prefix__described__" ] ; then |
| |
102 exec_prefix__described__=1 |
| |
103 cat << '__EOF__' |
| |
104 --exec-prefix path prefix for architecture-dependent files [PREFIX] |
| |
105 __EOF__ |
| |
106 fi |
| |
107 if [ -z "$bindir__described__" ] ; then |
| |
108 bindir__described__=1 |
| |
109 cat << '__EOF__' |
| |
110 --bindir user executables [EPREFIX/bin] |
| |
111 __EOF__ |
| |
112 fi |
| |
113 if [ -z "$datarootdir__described__" ] ; then |
| |
114 datarootdir__described__=1 |
| |
115 cat << '__EOF__' |
| |
116 --datarootdir read-only architecture-independent data root |
| |
117 [PREFIX/share] |
| |
118 __EOF__ |
| |
119 fi |
| |
120 if [ -z "$mandir__described__" ] ; then |
| |
121 mandir__described__=1 |
| |
122 cat << '__EOF__' |
| |
123 --mandir man documentation [DATAROOTDIR/man] |
| |
124 __EOF__ |
| |
125 fi |
| |
126 fi |
| 92 cat << '__EOF__' |
127 cat << '__EOF__' |
| 93 |
128 |
| 94 Build Types: |
129 Build Types: |
| 95 --debug add extra compile flags for debug builds |
130 --debug add extra compile flags for debug builds |
| 96 --release add extra compile flags for release builds |
131 --release add extra compile flags for release builds |
| 112 touch "$TEMP_DIR/options" |
147 touch "$TEMP_DIR/options" |
| 113 touch "$TEMP_DIR/features" |
148 touch "$TEMP_DIR/features" |
| 114 |
149 |
| 115 # config variables |
150 # config variables |
| 116 has_overridable_config_vars__=0 |
151 has_overridable_config_vars__=0 |
| |
152 if true \ |
| |
153 ; then |
| |
154 : |
| |
155 if [ -z "$prefix__initialized__" ] ; then |
| |
156 has_overridable_config_vars__=1 |
| |
157 prefix__initialized__=1 |
| |
158 prefix='/usr' |
| |
159 fi |
| |
160 if [ -z "$exec_prefix__initialized__" ] ; then |
| |
161 has_overridable_config_vars__=1 |
| |
162 exec_prefix__initialized__=1 |
| |
163 exec_prefix='' |
| |
164 fi |
| |
165 if [ -z "$bindir__initialized__" ] ; then |
| |
166 has_overridable_config_vars__=1 |
| |
167 bindir__initialized__=1 |
| |
168 bindir='' |
| |
169 fi |
| |
170 if [ -z "$datarootdir__initialized__" ] ; then |
| |
171 has_overridable_config_vars__=1 |
| |
172 datarootdir__initialized__=1 |
| |
173 datarootdir='' |
| |
174 fi |
| |
175 if [ -z "$mandir__initialized__" ] ; then |
| |
176 has_overridable_config_vars__=1 |
| |
177 mandir__initialized__=1 |
| |
178 mandir='' |
| |
179 fi |
| |
180 fi |
| 117 |
181 |
| 118 # features |
182 # features |
| 119 |
183 |
| 120 # |
184 # |
| 121 # parse arguments |
185 # parse arguments |
| 122 # |
186 # |
| 123 BUILD_TYPE="default" |
187 BUILD_TYPE="default" |
| 124 for ARG in "$@" |
188 for ARG in "$@" |
| 125 do |
189 do |
| 126 case "$ARG" in |
190 case "$ARG" in |
| |
191 "--prefix="*) prefix=${ARG#--prefix=} ;; |
| |
192 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; |
| |
193 "--bindir="*) bindir=${ARG#--bindir=} ;; |
| |
194 "--datarootdir="*) datarootdir=${ARG#--datarootdir=} ;; |
| |
195 "--mandir="*) mandir=${ARG#--mandir=} ;; |
| 127 "--help"*) printhelp ;; |
196 "--help"*) printhelp ;; |
| 128 "--debug") BUILD_TYPE="debug" ;; |
197 "--debug") BUILD_TYPE="debug" ;; |
| 129 "--release") BUILD_TYPE="release" ;; |
198 "--release") BUILD_TYPE="release" ;; |
| 130 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
199 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
| 131 esac |
200 esac |
| 359 echo " default C std: $TOOLCHAIN_CSTD" |
433 echo " default C std: $TOOLCHAIN_CSTD" |
| 360 fi |
434 fi |
| 361 if [ $has_overridable_config_vars__ -eq 1 ]; then |
435 if [ $has_overridable_config_vars__ -eq 1 ]; then |
| 362 echo |
436 echo |
| 363 echo "Config:" |
437 echo "Config:" |
| |
438 if [ -n "$prefix__initialized__" ]; then |
| |
439 printf ' %-16s' 'prefix:' |
| |
440 echo "$prefix" |
| |
441 fi |
| |
442 if [ -n "$exec_prefix__initialized__" ]; then |
| |
443 printf ' %-16s' 'exec-prefix:' |
| |
444 echo "$exec_prefix" |
| |
445 fi |
| |
446 if [ -n "$bindir__initialized__" ]; then |
| |
447 printf ' %-16s' 'bindir:' |
| |
448 echo "$bindir" |
| |
449 fi |
| |
450 if [ -n "$datarootdir__initialized__" ]; then |
| |
451 printf ' %-16s' 'datarootdir:' |
| |
452 echo "$datarootdir" |
| |
453 fi |
| |
454 if [ -n "$mandir__initialized__" ]; then |
| |
455 printf ' %-16s' 'mandir:' |
| |
456 echo "$mandir" |
| |
457 fi |
| 364 fi |
458 fi |
| 365 echo |
459 echo |
| 366 |
460 |
| 367 # generate the config.mk file |
461 # generate the config.mk file |
| 368 pwd=`pwd` |
462 pwd=`pwd` |