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