Ticket #4326: configure

File configure, 127.2 KB (added by nils.henkel@…, 8 years ago)

configure script created by autoconf

Line 
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
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.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
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.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if 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; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_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
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$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 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
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
253done
254IFS=$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
261if 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
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
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
282if 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
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $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
357fi
358
359fi
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+"$@"}
369fi
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; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$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
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `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';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (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
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
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 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_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.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 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.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='OpenModelica'
598PACKAGE_TARNAME='openmodelica'
599PACKAGE_VERSION='dev'
600PACKAGE_STRING='OpenModelica dev'
601PACKAGE_BUGREPORT='https://trac.openmodelica.org/OpenModelica'
602
603ac_default_prefix=$PREFIX
604enable_option_checking=no
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607subdirs
608ALL_TARGETS
609IDLPATH
610IDLCMD
611CORBALIBS
612CORBACFLAGS
613CORBA_QMAKE_INCLUDES
614QT_USE_CORBA
615USE_CORBA
616CMAKE_LDFLAGS
617OMLIBRARY_TARGET
618OMC_TARGET
619APP
620SHREXT
621RPATH_QMAKE
622OPENMODELICAHOME
623host_short
624target_os
625target_vendor
626target_cpu
627target
628host_os
629host_vendor
630host_cpu
631host
632build_os
633build_vendor
634build_cpu
635build
636OMBUILDDIR
637OBJEXT
638EXEEXT
639ac_ct_CC
640CPPFLAGS
641LDFLAGS
642CFLAGS
643CC
644target_alias
645host_alias
646build_alias
647LIBS
648ECHO_T
649ECHO_N
650ECHO_C
651DEFS
652mandir
653localedir
654libdir
655psdir
656pdfdir
657dvidir
658htmldir
659infodir
660docdir
661oldincludedir
662includedir
663localstatedir
664sharedstatedir
665sysconfdir
666datadir
667datarootdir
668libexecdir
669sbindir
670bindir
671program_transform_name
672prefix
673exec_prefix
674PACKAGE_BUGREPORT
675PACKAGE_STRING
676PACKAGE_VERSION
677PACKAGE_TARNAME
678PACKAGE_NAME
679PATH_SEPARATOR
680SHELL'
681ac_subst_files=''
682ac_user_opts='
683enable_option_checking
684with_ombuilddir
685with_openmodelicahome
686with_cppruntime
687with_omlibrary
688with_MICO
689with_omniORB
690'
691 ac_precious_vars='build_alias
692host_alias
693target_alias
694CC
695CFLAGS
696LDFLAGS
697LIBS
698CPPFLAGS'
699ac_subdirs_all='OMCompiler OMPlot OMEdit
700OMShell OMNotebook OMOptim'
701
702# Initialize some variables set by options.
703ac_init_help=
704ac_init_version=false
705ac_unrecognized_opts=
706ac_unrecognized_sep=
707# The variables have the same names as the options, with
708# dashes changed to underlines.
709cache_file=/dev/null
710exec_prefix=NONE
711no_create=
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
720verbose=
721x_includes=NONE
722x_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.)
730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
738includedir='${prefix}/include'
739oldincludedir='/usr/include'
740docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741infodir='${datarootdir}/info'
742htmldir='${docdir}'
743dvidir='${docdir}'
744pdfdir='${docdir}'
745psdir='${docdir}'
746libdir='${exec_prefix}/lib'
747localedir='${datarootdir}/locale'
748mandir='${datarootdir}/man'
749
750ac_prev=
751ac_dashdash=
752for ac_option
753do
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
1089Try \`$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
1111done
1112
1113if 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; }; }
1117fi
1118
1119if 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
1126fi
1127
1128# Check all directory arguments for consistency.
1129for 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
1133do
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; }; }
1148done
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.
1153build=$build_alias
1154host=$host_alias
1155target=$target_alias
1156
1157# FIXME: To remove some day.
1158if 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
1166fi
1167
1168ac_tool_prefix=
1169test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171test "$silent" = yes && exec 6>/dev/null
1172
1173
1174ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175ac_ls_di=`ls -di .` &&
1176ac_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; }; }
1179test "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.
1185if 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
1215else
1216 ac_srcdir_defaulted=no
1217fi
1218if 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; }; }
1222fi
1223ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224ac_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=.
1229if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1231fi
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.
1235case $srcdir in
1236*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237esac
1238for 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}
1243done
1244
1245#
1246# Report the --help message.
1247#
1248if 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
1254Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257VAR=VALUE. See below for descriptions of some of the useful variables.
1258
1259Defaults for the options are specified in brackets.
1260
1261Configuration:
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
1272Installation 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
1278By default, \`make install' will install all the files in
1279\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281for instance \`--prefix=\$HOME'.
1282
1283For better control, use the options below.
1284
1285Fine 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
1309System 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
1314fi
1315
1316if 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
1322Optional 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
1332Some 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
1341Use these variables to override the choices made by `configure' or to help
1342it to find libraries and programs with nonstandard names/locations.
1343
1344Report bugs to <https://trac.openmodelica.org/OpenModelica>.
1345_ACEOF
1346ac_status=$?
1347fi
1348
1349if 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
1357case "$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 ;;
1367esac
1368ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix
1372
1373case $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 ;;
1386esac
1387ac_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
1402fi
1403
1404test -n "$ac_init_help" && exit $ac_status
1405if $ac_init_version; then
1406 cat <<\_ACEOF
1407OpenModelica configure dev
1408generated by GNU Autoconf 2.63
1409
1410Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1412This configure script is free software; the Free Software Foundation
1413gives unlimited permission to copy, distribute and modify it.
1414_ACEOF
1415 exit
1416fi
1417cat >config.log <<_ACEOF
1418This file contains any messages produced by compilers while
1419running configure, to aid debugging if configure makes a mistake.
1420
1421It was created by OpenModelica $as_me dev, which was
1422generated by GNU Autoconf 2.63. Invocation command line was
1423
1424 $ $0 $@
1425
1426_ACEOF
1427exec 5>>config.log
1428{
1429cat <<_ASUNAME
1430## --------- ##
1431## Platform. ##
1432## --------- ##
1433
1434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438uname -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
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 $as_echo "PATH: $as_dir"
1459done
1460IFS=$as_save_IFS
1461
1462} >&5
1463
1464cat >&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.
1479ac_configure_args=
1480ac_configure_args0=
1481ac_configure_args1=
1482ac_must_keep_next=false
1483for ac_pass in 1 2
1484do
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
1518done
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.
1527trap '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
1622for ac_signal in 1 2 13 15; do
1623 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1624done
1625ac_signal=0
1626
1627# confdefs.h avoids OS command line length limits that DEFS can exceed.
1628rm -f -r conftest* confdefs.h
1629
1630# Predefined preprocessor variables.
1631
1632cat >>confdefs.h <<_ACEOF
1633#define PACKAGE_NAME "$PACKAGE_NAME"
1634_ACEOF
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1639_ACEOF
1640
1641
1642cat >>confdefs.h <<_ACEOF
1643#define PACKAGE_VERSION "$PACKAGE_VERSION"
1644_ACEOF
1645
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_STRING "$PACKAGE_STRING"
1649_ACEOF
1650
1651
1652cat >>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.
1659ac_site_file1=NONE
1660ac_site_file2=NONE
1661if test -n "$CONFIG_SITE"; then
1662 ac_site_file1=$CONFIG_SITE
1663elif test "x$prefix" != xNONE; then
1664 ac_site_file1=$prefix/share/config.site
1665 ac_site_file2=$prefix/etc/config.site
1666else
1667 ac_site_file1=$ac_default_prefix/share/config.site
1668 ac_site_file2=$ac_default_prefix/etc/config.site
1669fi
1670for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1671do
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
1679done
1680
1681if 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
1692else
1693 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1694$as_echo "$as_me: creating cache $cache_file" >&6;}
1695 >$cache_file
1696fi
1697
1698# Check that the precious variables saved in the cache have kept the same
1699# value.
1700ac_cache_corrupted=false
1701for 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
1747done
1748if $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; }; }
1756fi
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
1782ac_ext=c
1783ac_cpp='$CPP $CPPFLAGS'
1784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787
1788
1789
1790ac_ext=c
1791ac_cpp='$CPP $CPPFLAGS'
1792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801if 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.
1803set 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; }
1806if test "${ac_cv_prog_CC+set}" = set; then
1807 $as_echo_n "(cached) " >&6
1808else
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
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
1823done
1824done
1825IFS=$as_save_IFS
1826
1827fi
1828fi
1829CC=$ac_cv_prog_CC
1830if test -n "$CC"; then
1831 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1832$as_echo "$CC" >&6; }
1833else
1834 { $as_echo "$as_me:$LINENO: result: no" >&5
1835$as_echo "no" >&6; }
1836fi
1837
1838
1839fi
1840if 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.
1843set 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; }
1846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1847 $as_echo_n "(cached) " >&6
1848else
1849 if test -n "$ac_ct_CC"; then
1850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
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
1863done
1864done
1865IFS=$as_save_IFS
1866
1867fi
1868fi
1869ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870if test -n "$ac_ct_CC"; then
1871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872$as_echo "$ac_ct_CC" >&6; }
1873else
1874 { $as_echo "$as_me:$LINENO: result: no" >&5
1875$as_echo "no" >&6; }
1876fi
1877
1878 if test "x$ac_ct_CC" = x; then
1879 CC=""
1880 else
1881 case $cross_compiling:$ac_tool_warned in
1882yes:)
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;}
1885ac_tool_warned=yes ;;
1886esac
1887 CC=$ac_ct_CC
1888 fi
1889else
1890 CC="$ac_cv_prog_CC"
1891fi
1892
1893if 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.
1896set 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; }
1899if test "${ac_cv_prog_CC+set}" = set; then
1900 $as_echo_n "(cached) " >&6
1901else
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
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
1916done
1917done
1918IFS=$as_save_IFS
1919
1920fi
1921fi
1922CC=$ac_cv_prog_CC
1923if test -n "$CC"; then
1924 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1925$as_echo "$CC" >&6; }
1926else
1927 { $as_echo "$as_me:$LINENO: result: no" >&5
1928$as_echo "no" >&6; }
1929fi
1930
1931
1932 fi
1933fi
1934if test -z "$CC"; then
1935 # Extract the first word of "cc", so it can be a program name with args.
1936set 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; }
1939if test "${ac_cv_prog_CC+set}" = set; then
1940 $as_echo_n "(cached) " >&6
1941else
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1944else
1945 ac_prog_rejected=no
1946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947for as_dir in $PATH
1948do
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
1961done
1962done
1963IFS=$as_save_IFS
1964
1965if 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
1976fi
1977fi
1978fi
1979CC=$ac_cv_prog_CC
1980if test -n "$CC"; then
1981 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1982$as_echo "$CC" >&6; }
1983else
1984 { $as_echo "$as_me:$LINENO: result: no" >&5
1985$as_echo "no" >&6; }
1986fi
1987
1988
1989fi
1990if 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.
1995set 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; }
1998if test "${ac_cv_prog_CC+set}" = set; then
1999 $as_echo_n "(cached) " >&6
2000else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
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
2015done
2016done
2017IFS=$as_save_IFS
2018
2019fi
2020fi
2021CC=$ac_cv_prog_CC
2022if test -n "$CC"; then
2023 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2024$as_echo "$CC" >&6; }
2025else
2026 { $as_echo "$as_me:$LINENO: result: no" >&5
2027$as_echo "no" >&6; }
2028fi
2029
2030
2031 test -n "$CC" && break
2032 done
2033fi
2034if test -z "$CC"; then
2035 ac_ct_CC=$CC
2036 for ac_prog in cl.exe
2037do
2038 # Extract the first word of "$ac_prog", so it can be a program name with args.
2039set 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; }
2042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 $as_echo_n "(cached) " >&6
2044else
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
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
2059done
2060done
2061IFS=$as_save_IFS
2062
2063fi
2064fi
2065ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066if test -n "$ac_ct_CC"; then
2067 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068$as_echo "$ac_ct_CC" >&6; }
2069else
2070 { $as_echo "$as_me:$LINENO: result: no" >&5
2071$as_echo "no" >&6; }
2072fi
2073
2074
2075 test -n "$ac_ct_CC" && break
2076done
2077
2078 if test "x$ac_ct_CC" = x; then
2079 CC=""
2080 else
2081 case $cross_compiling:$ac_tool_warned in
2082yes:)
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;}
2085ac_tool_warned=yes ;;
2086esac
2087 CC=$ac_ct_CC
2088 fi
2089fi
2090
2091fi
2092
2093
2094test -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
2097See \`config.log' for more details." >&5
2098$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2099See \`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
2104set X $ac_compile
2105ac_compiler=$2
2106{ (ac_try="$ac_compiler --version >&5"
2107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
2111eval 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"
2118case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121esac
2122eval 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"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval 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
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h. */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h. */
2146
2147int
2148main ()
2149{
2150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
2156ac_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; }
2162ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163
2164# The possible output files:
2165ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2166
2167ac_rmfiles=
2168for ac_file in $ac_files
2169do
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
2174done
2175rm -f $ac_rmfiles
2176
2177if { (ac_try="$ac_link_default"
2178case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181esac
2182eval 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.
2193for ac_file in $ac_files ''
2194do
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
2217done
2218test "$ac_cv_exeext" = no && ac_cv_exeext=
2219
2220else
2221 ac_file=''
2222fi
2223
2224{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2225$as_echo "$ac_file" >&6; }
2226if test -z "$ac_file"; then
2227 $as_echo "$as_me: failed program was:" >&5
2228sed '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
2233See \`config.log' for more details." >&5
2234$as_echo "$as_me: error: C compiler cannot create executables
2235See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }; }
2237fi
2238
2239ac_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.
2247if 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;;
2252esac
2253eval 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.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269$as_echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }; }
2273 fi
2274 fi
2275fi
2276{ $as_echo "$as_me:$LINENO: result: yes" >&5
2277$as_echo "yes" >&6; }
2278
2279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2280ac_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; }
2290if { (ac_try="$ac_link"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval 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'.
2305for 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
2313done
2314else
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
2318See \`config.log' for more details." >&5
2319$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2320See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }; }
2322fi
2323
2324rm -f conftest$ac_cv_exeext
2325{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2326$as_echo "$ac_cv_exeext" >&6; }
2327
2328rm -f conftest.$ac_ext
2329EXEEXT=$ac_cv_exeext
2330ac_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; }
2333if test "${ac_cv_objext+set}" = set; then
2334 $as_echo_n "(cached) " >&6
2335else
2336 cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h. */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h. */
2342
2343int
2344main ()
2345{
2346
2347 ;
2348 return 0;
2349}
2350_ACEOF
2351rm -f conftest.o conftest.obj
2352if { (ac_try="$ac_compile"
2353case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval 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
2370done
2371else
2372 $as_echo "$as_me: failed program was:" >&5
2373sed '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
2378See \`config.log' for more details." >&5
2379$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }; }
2382fi
2383
2384rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385fi
2386{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387$as_echo "$ac_cv_objext" >&6; }
2388OBJEXT=$ac_cv_objext
2389ac_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; }
2392if test "${ac_cv_c_compiler_gnu+set}" = set; then
2393 $as_echo_n "(cached) " >&6
2394else
2395 cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h. */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h. */
2401
2402int
2403main ()
2404{
2405#ifndef __GNUC__
2406 choke me
2407#endif
2408
2409 ;
2410 return 0;
2411}
2412_ACEOF
2413rm -f conftest.$ac_objext
2414if { (ac_try="$ac_compile"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval 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
2432else
2433 $as_echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 ac_compiler_gnu=no
2437fi
2438
2439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440ac_cv_c_compiler_gnu=$ac_compiler_gnu
2441
2442fi
2443{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2444$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2445if test $ac_compiler_gnu = yes; then
2446 GCC=yes
2447else
2448 GCC=
2449fi
2450ac_test_CFLAGS=${CFLAGS+set}
2451ac_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; }
2454if test "${ac_cv_prog_cc_g+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456else
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
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h. */
2467
2468int
2469main ()
2470{
2471
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (ac_try="$ac_compile"
2478case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval 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
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 CFLAGS=""
2500 cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h. */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h. */
2506
2507int
2508main ()
2509{
2510
2511 ;
2512 return 0;
2513}
2514_ACEOF
2515rm -f conftest.$ac_objext
2516if { (ac_try="$ac_compile"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval 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 :
2534else
2535 $as_echo "$as_me: failed program was:" >&5
2536sed '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
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h. */
2546
2547int
2548main ()
2549{
2550
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555rm -f conftest.$ac_objext
2556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval 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
2574else
2575 $as_echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578
2579fi
2580
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585fi
2586
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_c_werror_flag=$ac_save_c_werror_flag
2589fi
2590{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591$as_echo "$ac_cv_prog_cc_g" >&6; }
2592if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594elif 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
2600else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2605 fi
2606fi
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; }
2609if test "${ac_cv_prog_cc_c89+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2611else
2612 ac_cv_prog_cc_c89=no
2613ac_save_CC=$CC
2614cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>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. */
2625struct buf { int x; };
2626FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627static char *e (p, i)
2628 char **p;
2629 int i;
2630{
2631 return p[i];
2632}
2633static 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. */
2650int 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'
2655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2656
2657int test (int i, double x);
2658struct s1 {int (*f) (int a);};
2659struct s2 {int (*f) (double a);};
2660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661int argc;
2662char **argv;
2663int
2664main ()
2665{
2666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2673do
2674 CC="$ac_save_CC $ac_arg"
2675 rm -f conftest.$ac_objext
2676if { (ac_try="$ac_compile"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
2681eval 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
2694else
2695 $as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698
2699fi
2700
2701rm -f core conftest.err conftest.$ac_objext
2702 test "x$ac_cv_prog_cc_c89" != "xno" && break
2703done
2704rm -f conftest.$ac_ext
2705CC=$ac_save_CC
2706
2707fi
2708# AC_CACHE_VAL
2709case "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; } ;;
2720esac
2721
2722
2723ac_ext=c
2724ac_cpp='$CPP $CPPFLAGS'
2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729
2730if 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
2742fi
2743
2744
2745
2746# Check whether --with-ombuilddir was given.
2747if test "${with_ombuilddir+set}" = set; then
2748 withval=$with_ombuilddir; OMBUILDDIR="$withval"; USINGPRESETBUILDDIR="yes"
2749else
2750 OMBUILDDIR="no"
2751fi
2752
2753if test "$OMBUILDDIR" = "no"; then
2754 OMBUILDDIR=$ac_pwd/build
2755 ac_configure_args="$ac_configure_args --with-ombuilddir=$OMBUILDDIR"
2756fi
2757
2758if test "$prefix" = "NONE"; then
2759 PREFIX="$OMBUILDDIR"
2760else
2761 PREFIX=$prefix
2762fi
2763
2764prefix=$PREFIX
2765
2766cp common/install-sh common/config.guess common/config.sub ./
2767ac_aux_dir=
2768for 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
2782done
2783if 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; }; }
2787fi
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.
2793ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2794ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2795ac_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; }
2806if test "${ac_cv_build+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2808else
2809 ac_build_alias=$build_alias
2810test "x$ac_build_alias" = x &&
2811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2812test "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; }; }
2816ac_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
2821fi
2822{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2823$as_echo "$ac_cv_build" >&6; }
2824case $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; }; };;
2829esac
2830build=$ac_cv_build
2831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_build
2833shift
2834build_cpu=$1
2835build_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839build_os=$*
2840IFS=$ac_save_IFS
2841case $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; }
2846if test "${ac_cv_host+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848else
2849 if test "x$host_alias" = x; then
2850 ac_cv_host=$ac_cv_build
2851else
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; }; }
2856fi
2857
2858fi
2859{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2860$as_echo "$ac_cv_host" >&6; }
2861case $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; }; };;
2866esac
2867host=$ac_cv_host
2868ac_save_IFS=$IFS; IFS='-'
2869set x $ac_cv_host
2870shift
2871host_cpu=$1
2872host_vendor=$2
2873shift; shift
2874# Remember, the first character of IFS is used to create $*,
2875# except with old shells:
2876host_os=$*
2877IFS=$ac_save_IFS
2878case $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; }
2883if test "${ac_cv_target+set}" = set; then
2884 $as_echo_n "(cached) " >&6
2885else
2886 if test "x$target_alias" = x; then
2887 ac_cv_target=$ac_cv_host
2888else
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; }; }
2893fi
2894
2895fi
2896{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2897$as_echo "$ac_cv_target" >&6; }
2898case $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; }; };;
2903esac
2904target=$ac_cv_target
2905ac_save_IFS=$IFS; IFS='-'
2906set x $ac_cv_target
2907shift
2908target_cpu=$1
2909target_vendor=$2
2910shift; shift
2911# Remember, the first character of IFS is used to create $*,
2912# except with old shells:
2913target_os=$*
2914IFS=$ac_save_IFS
2915case $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.
2920test -n "$target_alias" &&
2921 test "$program_prefix$program_suffix$program_transform_name" = \
2922 NONENONEs,x,x, &&
2923 program_prefix=${target_alias}-
2924
2925build_short=$build_cpu-$build_os
2926host_short=$host_cpu-$host_os
2927echo "build_short: $build_short"
2928echo "host_short: $host_short"
2929
2930
2931
2932# Check whether --with-openmodelicahome was given.
2933if test "${with_openmodelicahome+set}" = set; then
2934 withval=$with_openmodelicahome; OMHOME="$withval"
2935else
2936 OMHOME=no
2937fi
2938
2939
2940if 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/'"
2946elif 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\\'"
2953else
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\\'"
2959fi
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973# Check whether --with-cppruntime was given.
2974if test "${with_cppruntime+set}" = set; then
2975 withval=$with_cppruntime; OMC_TARGET="$withval"
2976else
2977 OMC_TARGET="no"
2978fi
2979
2980
2981{ $as_echo "$as_me:$LINENO: checking if cppruntime is requested" >&5
2982$as_echo_n "checking if cppruntime is requested... " >&6; }
2983if test "$OMC_TARGET" = "yes"; then
2984 OMC_TARGET=all-runtimeCPPinstall
2985 { $as_echo "$as_me:$LINENO: result: yes" >&5
2986$as_echo "yes" >&6; }
2987else
2988 OMC_TARGET=
2989 { $as_echo "$as_me:$LINENO: result: no" >&5
2990$as_echo "no" >&6; }
2991fi
2992
2993
2994
2995# Check whether --with-omlibrary was given.
2996if test "${with_omlibrary+set}" = set; then
2997 withval=$with_omlibrary; OMLIBRARY_TARGET="$withval"
2998else
2999 OMLIBRARY_TARGET="core"
3000fi
3001
3002
3003{ $as_echo "$as_me:$LINENO: checking for omlibrary target" >&5
3004$as_echo_n "checking for omlibrary target... " >&6; }
3005case "$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 ;;
3026esac
3027
3028if 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
3039fi
3040
3041
3042if echo $host | grep -i darwin; then
3043 CMAKE_LDFLAGS="-Wl,-undefined -Wl,dynamic_lookup"
3044fi
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054if test -z "$OMNIORB_DEFAULT"; then
3055 OMNIORB_DEFAULT="no"
3056fi
3057
3058WANT_ORBIT2="no"
3059WANT_MICO="no"
3060
3061# Check whether --with-MICO was given.
3062if test "${with_MICO+set}" = set; then
3063 withval=$with_MICO; WANT_MICO="$withval"
3064fi
3065
3066
3067# Check whether --with-omniORB was given.
3068if test "${with_omniORB+set}" = set; then
3069 withval=$with_omniORB; WANT_OMNIORB="$withval"
3070else
3071 WANT_OMNIORB="$OMNIORB_DEFAULT"
3072fi
3073
3074
3075if 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"
3105elif 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.
3112set 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; }
3115if test "${ac_cv_prog_USE_CORBA+set}" = set; then
3116 $as_echo_n "(cached) " >&6
3117else
3118 if test -n "$USE_CORBA"; then
3119 ac_cv_prog_USE_CORBA="$USE_CORBA" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
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
3132done
3133done
3134IFS=$as_save_IFS
3135
3136 test -z "$ac_cv_prog_USE_CORBA" && ac_cv_prog_USE_CORBA="no"
3137fi
3138fi
3139USE_CORBA=$ac_cv_prog_USE_CORBA
3140if test -n "$USE_CORBA"; then
3141 { $as_echo "$as_me:$LINENO: result: $USE_CORBA" >&5
3142$as_echo "$USE_CORBA" >&6; }
3143else
3144 { $as_echo "$as_me:$LINENO: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
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; }; }
3165elif 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.
3176set 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; }
3179if test "${ac_cv_path_IDLPATH+set}" = set; then
3180 $as_echo_n "(cached) " >&6
3181else
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
3188for as_dir in $PATH
3189do
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
3198done
3199done
3200IFS=$as_save_IFS
3201
3202 test -z "$ac_cv_path_IDLPATH" && ac_cv_path_IDLPATH="no"
3203 ;;
3204esac
3205fi
3206IDLPATH=$ac_cv_path_IDLPATH
3207if test -n "$IDLPATH"; then
3208 { $as_echo "$as_me:$LINENO: result: $IDLPATH" >&5
3209$as_echo "$IDLPATH" >&6; }
3210else
3211 { $as_echo "$as_me:$LINENO: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
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"
3229else
3230 USE_CORBA="";
3231 CORBACFLAGS="";
3232 CORBALIBS="";
3233 IDLCMD="";
3234 DESIRED_CORBA="none"
3235fi
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
3243if test ! -z "$USE_CORBA"; then
3244 CORBA_TARGETS="OMNotebook-omnotebook OMOptim-omoptim OMShell-omshell"
3245fi
3246
3247for 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
3260done
3261
3262
3263if test -f testsuite/Makefile; then
3264 ALL_TARGETS="$ALL_TARGETS testsuite-depends"
3265fi
3266
3267
3268
3269
3270subdirs="$subdirs OMCompiler OMPlot OMEdit"
3271
3272if test ! -z "$USE_CORBA"; then
3273 subdirs="$subdirs OMShell OMNotebook OMOptim"
3274
3275fi
3276
3277ac_config_files="$ac_config_files Makefile"
3278
3279cat >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
3341if 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
3351fi
3352rm -f confcache
3353
3354test "x$prefix" = xNONE && prefix=$ac_default_prefix
3355# Let make expand exec_prefix.
3356test "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.
3365ac_script='
3366:mline
3367/\\$/{
3368 N
3369 s,\\\n,,
3370 b mline
3371}
3372t clear
3373:clear
3374s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3375t quote
3376s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3377t quote
3378b any
3379:quote
3380s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3381s/\[/\\&/g
3382s/\]/\\&/g
3383s/\$/$$/g
3384H
3385:any
3386${
3387 g
3388 s/^\n//
3389 s/\n/ /g
3390 p
3391}
3392'
3393DEFS=`sed -n "$ac_script" confdefs.h`
3394
3395
3396ac_libobjs=
3397ac_ltlibobjs=
3398for 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'
3406done
3407LIBOBJS=$ac_libobjs
3408
3409LTLIBOBJS=$ac_ltlibobjs
3410
3411
3412
3413: ${CONFIG_STATUS=./config.status}
3414ac_write_fail=0
3415ac_clean_files_save=$ac_clean_files
3416ac_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;}
3419cat >$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
3426debug=false
3427ac_cs_recheck=false
3428ac_cs_silent=false
3429SHELL=\${CONFIG_SHELL-$SHELL}
3430_ACEOF
3431
3432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3433## --------------------- ##
3434## M4sh Initialization. ##
3435## --------------------- ##
3436
3437# Be more Bourne compatible
3438DUALCASE=1; export DUALCASE # for MKS sh
3439if 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
3446else
3447 case `(set -o) 2>/dev/null` in
3448 *posix*) set -o posix ;;
3449esac
3450
3451fi
3452
3453
3454
3455
3456# PATH needs CR
3457# Avoid depending upon Character Ranges.
3458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3461as_cr_digits='0123456789'
3462as_cr_alnum=$as_cr_Letters$as_cr_digits
3463
3464as_nl='
3465'
3466export as_nl
3467# Printing a long string crashes Solaris 7 /usr/bin/printf.
3468as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3471if (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'
3474else
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'
3494fi
3495
3496# The user is always right.
3497if 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 }
3503fi
3504
3505# Support unset when possible.
3506if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3507 as_unset=unset
3508else
3509 as_unset=false
3510fi
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.)
3518IFS=" "" $as_nl"
3519
3520# Find who we are. Look in the path if we contain no directory separator.
3521case $0 in
3522 *[\\/]* ) as_myself=$0 ;;
3523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3529done
3530IFS=$as_save_IFS
3531
3532 ;;
3533esac
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.
3536if test "x$as_myself" = x; then
3537 as_myself=$0
3538fi
3539if 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; }
3542fi
3543
3544# Work around bugs in pre-3.0 UWIN ksh.
3545for as_var in ENV MAIL MAILPATH
3546do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3547done
3548PS1='$ '
3549PS2='> '
3550PS4='+ '
3551
3552# NLS nuisances.
3553LC_ALL=C
3554export LC_ALL
3555LANGUAGE=C
3556export LANGUAGE
3557
3558# Required to use basename.
3559if expr a : '\(a\)' >/dev/null 2>&1 &&
3560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3561 as_expr=expr
3562else
3563 as_expr=false
3564fi
3565
3566if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3567 as_basename=basename
3568else
3569 as_basename=false
3570fi
3571
3572
3573# Name of the executable.
3574as_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
3641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3642 as_dirname=dirname
3643else
3644 as_dirname=false
3645fi
3646
3647ECHO_C= ECHO_N= ECHO_T=
3648case `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';;
3656esac
3657if expr a : '\(a\)' >/dev/null 2>&1 &&
3658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3659 as_expr=expr
3660else
3661 as_expr=false
3662fi
3663
3664rm -f conf$$ conf$$.exe conf$$.file
3665if test -d conf$$.dir; then
3666 rm -f conf$$.dir/conf$$.file
3667else
3668 rm -f conf$$.dir
3669 mkdir conf$$.dir 2>/dev/null
3670fi
3671if (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
3685else
3686 as_ln_s='cp -p'
3687fi
3688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3689rmdir conf$$.dir 2>/dev/null
3690
3691if mkdir -p . 2>/dev/null; then
3692 as_mkdir_p=:
3693else
3694 test -d ./-p && rmdir ./-p
3695 as_mkdir_p=false
3696fi
3697
3698if test -x / >/dev/null 2>&1; then
3699 as_test_x='test -x'
3700else
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 '
3718fi
3719as_executable_p=$as_test_x
3720
3721# Sed expression to map a string onto a valid CPP name.
3722as_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.
3725as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3726
3727
3728exec 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.
3733ac_log="
3734This file was extended by OpenModelica $as_me dev, which was
3735generated 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
3743on `(hostname || uname -n) 2>/dev/null | sed 1q`
3744"
3745
3746_ACEOF
3747
3748case $ac_config_files in *"
3749"*) set x $ac_config_files; shift; ac_config_files=$*;;
3750esac
3751
3752
3753
3754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3755# Files that config.status was made for.
3756config_files="$ac_config_files"
3757
3758_ACEOF
3759
3760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3761ac_cs_usage="\
3762\`$as_me' instantiates files from templates according to the
3763current configuration.
3764
3765Usage: $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
3776Configuration files:
3777$config_files
3778
3779Report bugs to <bug-autoconf@gnu.org>."
3780
3781_ACEOF
3782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3783ac_cs_version="\\
3784OpenModelica config.status dev
3785configured by $0, generated by GNU Autoconf 2.63,
3786 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3787
3788Copyright (C) 2008 Free Software Foundation, Inc.
3789This config.status script is free software; the Free Software Foundation
3790gives unlimited permission to copy, distribute and modify it."
3791
3792ac_pwd='$ac_pwd'
3793srcdir='$srcdir'
3794test -n "\$AWK" || AWK=awk
3795_ACEOF
3796
3797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3798# The default lists apply if the user does not specify any file.
3799ac_need_defaults=:
3800while test $# != 0
3801do
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
3838Try \`$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
3846done
3847
3848ac_configure_extra_args=
3849
3850if $ac_cs_silent; then
3851 exec 6>/dev/null
3852 ac_configure_extra_args="$ac_configure_extra_args --silent"
3853fi
3854
3855_ACEOF
3856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3857if \$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 "\$@"
3864fi
3865
3866_ACEOF
3867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3868exec 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
3878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3879_ACEOF
3880
3881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3882
3883# Handling of arguments.
3884for ac_config_target in $ac_config_targets
3885do
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
3893done
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.
3900if $ac_need_defaults; then
3901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3902fi
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'.
3936if test -n "$CONFIG_FILES"; then
3937
3938
3939ac_cr='
3940'
3941ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3942if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3943 ac_cs_awk_cr='\\r'
3944else
3945 ac_cs_awk_cr=$ac_cr
3946fi
3947
3948echo '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; }; }
3960ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3961ac_delim='%!_!# '
3962for 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
3978done
3979rm -f conf$$subs.sh
3980
3981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3982cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3983_ACEOF
3984sed -n '
3985h
3986s/^/S["/; s/!.*/"]=/
3987p
3988g
3989s/^[^!]*!//
3990:repl
3991t repl
3992s/'"$ac_delim"'$//
3993t delim
3994:nl
3995h
3996s/\(.\{148\}\).*/\1/
3997t more1
3998s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3999p
4000n
4001b repl
4002:more1
4003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4004p
4005g
4006s/.\{148\}//
4007t nl
4008:delim
4009h
4010s/\(.\{148\}\).*/\1/
4011t more2
4012s/["\\]/\\&/g; s/^/"/; s/$/"/
4013p
4014b
4015:more2
4016s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4017p
4018g
4019s/.\{148\}//
4020t delim
4021' <conf$$subs.awk | sed '
4022/^[^""]/{
4023 N
4024 s/\n//
4025}
4026' >>$CONFIG_STATUS || ac_write_fail=1
4027rm -f conf$$subs.awk
4028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4029_ACAWK
4030cat >>"\$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
4057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4058if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4060else
4061 cat
4062fi < "$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).
4072if test "x$srcdir" = x.; then
4073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4074s/:*\$(srcdir):*/:/
4075s/:*\${srcdir}:*/:/
4076s/:*@srcdir@:*/:/
4077s/^\([^=]*=[ ]*\):*/\1/
4078s/:*$//
4079s/^[^=]*=[ ]*$//
4080}'
4081fi
4082
4083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4084fi # test -n "$CONFIG_FILES"
4085
4086
4087eval set X " :F $CONFIG_FILES "
4088shift
4089for ac_tag
4090do
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
4228case "$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 ;;
4238esac
4239ac_abs_top_builddir=$ac_pwd
4240ac_abs_builddir=$ac_pwd$ac_dir_suffix
4241# for backward compatibility:
4242ac_top_builddir=$ac_top_build_prefix
4243
4244case $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 ;;
4257esac
4258ac_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
4269cat >>$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.
4272ac_datarootdir_hack=; ac_datarootdir_seen=
4273
4274ac_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'
4285case `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
4291cat >>$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' ;;
4299esac
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?
4305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4306ac_sed_extra="$ac_vpsub
4307$extrasub
4308_ACEOF
4309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4310:t
4311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4312s|@configure_input@|$ac_sed_conf_input|;t t
4313s&@top_builddir@&$ac_top_builddir_sub&;t t
4314s&@top_build_prefix@&$ac_top_build_prefix&;t t
4315s&@srcdir@&$ac_srcdir&;t t
4316s&@abs_srcdir@&$ac_abs_srcdir&;t t
4317s&@top_srcdir@&$ac_top_srcdir&;t t
4318s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4319s&@builddir@&$ac_builddir&;t t
4320s&@abs_builddir@&$ac_abs_builddir&;t t
4321s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4322$ac_datarootdir_hack
4323"
4324eval 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
4329test -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'
4333which 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'
4335which 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
4351done # for ac_tag
4352
4353
4354{ (exit 0); exit 0; }
4355_ACEOF
4356chmod +x $CONFIG_STATUS
4357ac_clean_files=$ac_clean_files_save
4358
4359test $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.
4373if 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; }
4384fi
4385
4386#
4387# CONFIG_SUBDIRS section.
4388#
4389if 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
4501case "$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 ;;
4511esac
4512ac_abs_top_builddir=$ac_pwd
4513ac_abs_builddir=$ac_pwd$ac_dir_suffix
4514# for backward compatibility:
4515ac_top_builddir=$ac_top_build_prefix
4516
4517case $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 ;;
4530esac
4531ac_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
4571fi
4572if 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;}
4575fi
4576