/[zanavi_public1]/navit/autom4te.cache/output.2
ZANavi

Contents of /navit/autom4te.cache/output.2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (show annotations) (download)
Tue Aug 11 18:50:37 2015 UTC (8 years, 7 months ago) by zoff99
File size: 862280 byte(s)
many fixes, and new features
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for zanavi 1.0.0.
4 @%:@
5 @%:@
6 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 @%:@
8 @%:@
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in @%:@(
26 *posix*) :
27 set -o posix ;; @%:@(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in @%:@(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in @%:@((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in @%:@ ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in @%:@(
170 *posix*) :
171 set -o posix ;; @%:@(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in @%:@(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in @%:@ ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 @%:@ as_fn_unset VAR
286 @%:@ ---------------
287 @%:@ Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 @%:@ as_fn_set_status STATUS
295 @%:@ -----------------------
296 @%:@ Set @S|@? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } @%:@ as_fn_set_status
301
302 @%:@ as_fn_exit STATUS
303 @%:@ -----------------
304 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } @%:@ as_fn_exit
311
312 @%:@ as_fn_mkdir_p
313 @%:@ -------------
314 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } @%:@ as_fn_mkdir_p
359
360 @%:@ as_fn_executable_p FILE
361 @%:@ -----------------------
362 @%:@ Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } @%:@ as_fn_executable_p
367 @%:@ as_fn_append VAR VALUE
368 @%:@ ----------------------
369 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
370 @%:@ advantage of any shell optimizations that allow amortized linear growth over
371 @%:@ repeated appends, instead of the typical quadratic growth present in naive
372 @%:@ implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 @%:@ as_fn_arith ARG...
386 @%:@ ------------------
387 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
388 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
389 @%:@ must be portable across @S|@(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
404 @%:@ ----------------------------------------
405 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 @%:@ script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } @%:@ as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in @%:@(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566 esac
567
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
577 :
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
587 $*
588 _LT_EOF
589 exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
608
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
691 fi
692 fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIB@&t@OBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725
726 # Identity of this package.
727 PACKAGE_NAME='zanavi'
728 PACKAGE_TARNAME='zanavi'
729 PACKAGE_VERSION='1.0.0'
730 PACKAGE_STRING='zanavi 1.0.0'
731 PACKAGE_BUGREPORT=''
732 PACKAGE_URL=''
733
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_header_list=
771 ac_subst_vars='am__EXEEXT_FALSE
772 am__EXEEXT_TRUE
773 LTLIBOBJS
774 LIB@&t@OBJS
775 WINDRES
776 LIBC_LIBS
777 WORDEXP_LIBS
778 NAVIT_LIBS
779 NAVIT_CFLAGS
780 LIBPDL_LIBS
781 LIBPDL_CFLAGS
782 VEHICLE_WEBOS_FALSE
783 VEHICLE_WEBOS_TRUE
784 IPHONE_LIBS
785 IPHONE_CFLAGS
786 VEHICLE_IPHONE_FALSE
787 VEHICLE_IPHONE_TRUE
788 VEHICLE_WINCE_FALSE
789 VEHICLE_WINCE_TRUE
790 VEHICLE_NULL_FALSE
791 VEHICLE_NULL_TRUE
792 VEHICLE_MAEMO_FALSE
793 VEHICLE_MAEMO_TRUE
794 LIBLOCATION_LIBS
795 LIBLOCATION_CFLAGS
796 VEHICLE_GYPSY_FALSE
797 VEHICLE_GYPSY_TRUE
798 GYPSY_LIBS
799 GYPSY_CFLAGS
800 VEHICLE_GPSD_FALSE
801 VEHICLE_GPSD_TRUE
802 LIBGPS19_LIBS
803 LIBGPS19_CFLAGS
804 GPSD_LIBS
805 GPSD_CFLAGS
806 VEHICLE_FILE_FALSE
807 VEHICLE_FILE_TRUE
808 VEHICLE_DEMO_FALSE
809 VEHICLE_DEMO_TRUE
810 VEHICLE_ANDROID_FALSE
811 VEHICLE_ANDROID_TRUE
812 SUPPORT_ESPEAK_FALSE
813 SUPPORT_ESPEAK_TRUE
814 SPEECH_SPEECH_DISPATCHER_FALSE
815 SPEECH_SPEECH_DISPATCHER_TRUE
816 SPEECHD_LIBS
817 SPEECHD_CFLAGS
818 SPEECH_ESPEAK_FALSE
819 SPEECH_ESPEAK_TRUE
820 SPEECH_CMDLINE_FALSE
821 SPEECH_CMDLINE_TRUE
822 SPEECH_ANDROID_FALSE
823 SPEECH_ANDROID_TRUE
824 ROUTING_FALSE
825 ROUTING_TRUE
826 PLUGIN_PEDESTRIAN_FALSE
827 PLUGIN_PEDESTRIAN_TRUE
828 GUI_QML_FALSE
829 GUI_QML_TRUE
830 QT_DECLARATIVE_LIBS
831 QT_DECLARATIVE_CFLAGS
832 QT_XML_LIBS
833 QT_XML_CFLAGS
834 GUI_WIN32_FALSE
835 GUI_WIN32_TRUE
836 GUI_INTERNAL_FALSE
837 GUI_INTERNAL_TRUE
838 GUI_GTK_FALSE
839 GUI_GTK_TRUE
840 OSD_CORE_FALSE
841 OSD_CORE_TRUE
842 MAP_CSV_FALSE
843 MAP_CSV_TRUE
844 MAP_TEXTFILE_FALSE
845 MAP_TEXTFILE_TRUE
846 MAP_SHAPEFILE_FALSE
847 MAP_SHAPEFILE_TRUE
848 MAP_MG_FALSE
849 MAP_MG_TRUE
850 MAP_FILTER_FALSE
851 MAP_FILTER_TRUE
852 MAP_BINFILE_FALSE
853 MAP_BINFILE_TRUE
854 MOC
855 GRAPHICS_QT_QPAINTER_FALSE
856 GRAPHICS_QT_QPAINTER_TRUE
857 QT_SVG_LIBS
858 QT_SVG_CFLAGS
859 QT_GUI_LIBS
860 QT_GUI_CFLAGS
861 GRAPHICS_WIN32_FALSE
862 GRAPHICS_WIN32_TRUE
863 GRAPHICS_NULL_FALSE
864 GRAPHICS_NULL_TRUE
865 GRAPHICS_GTK_DRAWING_AREA_FALSE
866 GRAPHICS_GTK_DRAWING_AREA_TRUE
867 GRAPHICS_GD_FALSE
868 GRAPHICS_GD_TRUE
869 GD_LIBS
870 GD_CFLAGS
871 GDLIB_CONFIG
872 GRAPHICS_ANDROID_FALSE
873 GRAPHICS_ANDROID_TRUE
874 GRAPHICS_FALSE
875 GRAPHICS_TRUE
876 SUPPORT_LIBC_FALSE
877 SUPPORT_LIBC_TRUE
878 SUPPORT_WORDEXP_FALSE
879 SUPPORT_WORDEXP_TRUE
880 XGETTEXT_GLADE_FALSE
881 XGETTEXT_GLADE_TRUE
882 ENABLE_NLS_FALSE
883 ENABLE_NLS_TRUE
884 POSUB
885 LTLIBINTL
886 LIBINTL
887 INTLLIBS
888 INTL_LIBTOOL_SUFFIX_PREFIX
889 INTLOBJS
890 GENCAT
891 INSTOBJEXT
892 DATADIRNAME
893 CATOBJEXT
894 USE_INCLUDED_LIBINTL
895 BUILD_INCLUDED_LIBINTL
896 INTLBISON
897 LTLIBICONV
898 LIBICONV
899 HAVE_WPRINTF
900 HAVE_SNPRINTF
901 HAVE_ASPRINTF
902 HAVE_POSIX_PRINTF
903 GLIBC21
904 ALLOCA
905 GMSGFMT
906 USE_NLS
907 MKINSTALLDIRS
908 POIFILES
909 POFILES
910 MOFILES
911 INTLIBS
912 MSGFMT
913 MSGMERGE
914 XGETTEXT
915 ANDROID_PROJECT
916 ANDROID_PERMISSIONS
917 SAXON
918 XSLTS
919 USE_SVG_FALSE
920 USE_SVG_TRUE
921 USE_SVG2PNG_FALSE
922 USE_SVG2PNG_TRUE
923 USE_SVG2PNG_SCALES_NAV_FALSE
924 USE_SVG2PNG_SCALES_NAV_TRUE
925 USE_SVG2PNG_SCALES_FLAG_FALSE
926 USE_SVG2PNG_SCALES_FLAG_TRUE
927 USE_SVG2PNG_SCALES_FALSE
928 USE_SVG2PNG_SCALES_TRUE
929 SVG2PNG_SCALES_NAV
930 SVG2PNG_SCALES_FLAG
931 SVG2PNG_SCALES
932 SVG2PNG
933 DBUS_SERVICE_DIR
934 SPEECH_DBUS_FALSE
935 SPEECH_DBUS_TRUE
936 VEHICLE_GPSD_DBUS_FALSE
937 VEHICLE_GPSD_DBUS_TRUE
938 BINDING_DBUS_FALSE
939 BINDING_DBUS_TRUE
940 DBUS_LIBS
941 DBUS_CFLAGS
942 BINDING_PYTHON_FALSE
943 BINDING_PYTHON_TRUE
944 PYTHON_LIBS
945 PYTHON_CFLAGS
946 PYTHONCONFIG
947 _PATH_PYTHON
948 HAVELIBGARMIN_FALSE
949 HAVELIBGARMIN_TRUE
950 LIBGARMIN_LIBS
951 LIBGARMIN_CFLAGS
952 HAVE_SYSTEM_SHAPEFILELIB_FALSE
953 HAVE_SYSTEM_SHAPEFILELIB_TRUE
954 SHAPEFILE_LIBS
955 SHAPEFILE_CFLAGS
956 GRAPHICS_OPENGL_FALSE
957 GRAPHICS_OPENGL_TRUE
958 GLC_LIBS
959 GLC_CFLAGS
960 FREEIMAGE_LIBS
961 OPENGL_LIBS
962 OPENGL_CFLAGS
963 IMLIB2_LIBS
964 IMLIB2_CFLAGS
965 FRIBIDI_LIBS
966 FRIBIDI_CFLAGS
967 FRIBIDI2_LIBS
968 FRIBIDI2_CFLAGS
969 FONTS_FALSE
970 FONTS_TRUE
971 FONTCONFIG_LIBS
972 FONTCONFIG_CFLAGS
973 FONT_FREETYPE_FALSE
974 FONT_FREETYPE_TRUE
975 FREETYPE2_LIBS
976 FREETYPE2_CFLAGS
977 HAVE_POSTGRESQL_FALSE
978 HAVE_POSTGRESQL_TRUE
979 POSTGRESQL_LIBS
980 POSTGRESQL_CFLAGS
981 PG_CONFIG
982 GRAPHICS_SDL_FALSE
983 GRAPHICS_SDL_TRUE
984 SDL_IMAGE_LIBS
985 SDL_LIBS
986 SDL_CFLAGS
987 GTK2_LIBS
988 GTK2_CFLAGS
989 ZLIB_LIBS
990 ZLIB_CFLAGS
991 SUPPORT_ZLIB_FALSE
992 SUPPORT_ZLIB_TRUE
993 SUPPORT_EZXML_FALSE
994 SUPPORT_EZXML_TRUE
995 SUPPORT_GLIB_FALSE
996 SUPPORT_GLIB_TRUE
997 EVENT_GLIB_FALSE
998 EVENT_GLIB_TRUE
999 LIBNAVIT
1000 CXXCPP
1001 OTOOL64
1002 OTOOL
1003 LIPO
1004 NMEDIT
1005 DSYMUTIL
1006 lt_ECHO
1007 RANLIB
1008 AR
1009 OBJDUMP
1010 LN_S
1011 NM
1012 ac_ct_DUMPBIN
1013 DUMPBIN
1014 LD
1015 FGREP
1016 SED
1017 LIBTOOL
1018 BIN_NAVIT_FALSE
1019 BIN_NAVIT_TRUE
1020 SHARED_LIBNAVIT_FALSE
1021 SHARED_LIBNAVIT_TRUE
1022 PLUGINS_FALSE
1023 PLUGINS_TRUE
1024 CRYPTO_LIBS
1025 GMODULE_LIBS
1026 GMODULE_CFLAGS
1027 GLIB_LIBS
1028 GLIB_CFLAGS
1029 FASTMATH_FALSE
1030 FASTMATH_TRUE
1031 BUILD_SAMPLEMAP_FALSE
1032 BUILD_SAMPLEMAP_TRUE
1033 MAPTOOL_FALSE
1034 MAPTOOL_TRUE
1035 _PATH_BZCAT
1036 USE_OSSO_FALSE
1037 USE_OSSO_TRUE
1038 LIBOSSO_LIBS
1039 LIBOSSO_CFLAGS
1040 USE_HILDON_FALSE
1041 USE_HILDON_TRUE
1042 GPSBT_LIBS
1043 GPSBT_CFLAGS
1044 HILDON_LIBS
1045 HILDON_CFLAGS
1046 NAVIT_VARIANT
1047 CCLD_FOR_BUILD
1048 CROSS_COMPILING_FALSE
1049 CROSS_COMPILING_TRUE
1050 cross_compiling
1051 CC_FOR_BUILD
1052 PKG_CONFIG
1053 am__fastdepCXX_FALSE
1054 am__fastdepCXX_TRUE
1055 CXXDEPMODE
1056 ac_ct_CXX
1057 CXXFLAGS
1058 CXX
1059 am__fastdepOBJC_FALSE
1060 am__fastdepOBJC_TRUE
1061 OBJCDEPMODE
1062 ac_ct_OBJC
1063 OBJCFLAGS
1064 OBJC
1065 EGREP
1066 GREP
1067 CPP
1068 am__fastdepCC_FALSE
1069 am__fastdepCC_TRUE
1070 CCDEPMODE
1071 AMDEPBACKSLASH
1072 AMDEP_FALSE
1073 AMDEP_TRUE
1074 am__quote
1075 am__include
1076 DEPDIR
1077 OBJEXT
1078 EXEEXT
1079 ac_ct_CC
1080 CPPFLAGS
1081 LDFLAGS
1082 CFLAGS
1083 CC
1084 NAVIT_SOCKET_LDFLAGS
1085 NAVIT_MODULE_LDFLAGS
1086 MODULE_LIBADD
1087 MODULE_LDFLAGS
1088 SUPPORT_LIBPNG_FALSE
1089 SUPPORT_LIBPNG_TRUE
1090 SUPPORT_ANDROID_FALSE
1091 SUPPORT_ANDROID_TRUE
1092 SUPPORT_WIN32CE_FALSE
1093 SUPPORT_WIN32CE_TRUE
1094 SUPPORT_WIN32_FALSE
1095 SUPPORT_WIN32_TRUE
1096 host_os
1097 host_vendor
1098 host_cpu
1099 host
1100 build_os
1101 build_vendor
1102 build_cpu
1103 build
1104 MAINT
1105 MAINTAINER_MODE_FALSE
1106 MAINTAINER_MODE_TRUE
1107 SOURCE_MODE_SVN_FALSE
1108 SOURCE_MODE_SVN_TRUE
1109 SOURCE_MODE
1110 am__untar
1111 am__tar
1112 AMTAR
1113 am__leading_dot
1114 SET_MAKE
1115 AWK
1116 mkdir_p
1117 MKDIR_P
1118 INSTALL_STRIP_PROGRAM
1119 STRIP
1120 install_sh
1121 MAKEINFO
1122 AUTOHEADER
1123 AUTOMAKE
1124 AUTOCONF
1125 ACLOCAL
1126 VERSION
1127 PACKAGE
1128 CYGPATH_W
1129 am__isrc
1130 INSTALL_DATA
1131 INSTALL_SCRIPT
1132 INSTALL_PROGRAM
1133 target_alias
1134 host_alias
1135 build_alias
1136 LIBS
1137 ECHO_T
1138 ECHO_N
1139 ECHO_C
1140 DEFS
1141 mandir
1142 localedir
1143 libdir
1144 psdir
1145 pdfdir
1146 dvidir
1147 htmldir
1148 infodir
1149 docdir
1150 oldincludedir
1151 includedir
1152 localstatedir
1153 sharedstatedir
1154 sysconfdir
1155 datadir
1156 datarootdir
1157 libexecdir
1158 sbindir
1159 bindir
1160 program_transform_name
1161 prefix
1162 exec_prefix
1163 PACKAGE_URL
1164 PACKAGE_BUGREPORT
1165 PACKAGE_STRING
1166 PACKAGE_VERSION
1167 PACKAGE_TARNAME
1168 PACKAGE_NAME
1169 PATH_SEPARATOR
1170 SHELL'
1171 ac_subst_files=''
1172 ac_user_opts='
1173 enable_option_checking
1174 enable_maintainer_mode
1175 enable_dependency_tracking
1176 enable_variant
1177 enable_cache_size
1178 enable_avoid_unaligned
1179 enable_avoid_float
1180 enable_transformation_roll
1181 enable_hildon
1182 enable_osso
1183 enable_garmin
1184 enable_maptool
1185 enable_samplemap
1186 enable_fastmath
1187 enable_glib
1188 enable_gmodule
1189 enable_plugins
1190 enable_shared_libnavit
1191 enable_shared
1192 enable_static
1193 with_pic
1194 enable_fast_install
1195 with_gnu_ld
1196 enable_libtool_lock
1197 enable_graphics_sdl
1198 enable_postgresql
1199 enable_font_freetype
1200 with_freetype_fonts
1201 enable_fontconfig
1202 enable_fribidi
1203 enable_graphics_opengl
1204 enable_binding_python
1205 enable_binding_dbus
1206 enable_binding_dbus_use_system_bus
1207 with_dbus_service_dir
1208 enable_svg
1209 enable_svg2png
1210 enable_svg2png_scaling
1211 enable_svg2png_scaling_flag
1212 enable_svg2png_scaling_nav
1213 with_svg2png_use_convert
1214 with_svg2png_use_rsvg_convert
1215 with_svg2png_use_inkscape
1216 with_svg2png_use_ksvgtopng4
1217 with_svg2png_use_ksvgtopng
1218 with_xslts
1219 with_saxon
1220 with_android_permissions
1221 with_android_project
1222 enable_nls
1223 enable_rpath
1224 with_libiconv_prefix
1225 with_included_gettext
1226 with_libintl_prefix
1227 enable_support_libc
1228 enable_graphics
1229 enable_graphics_android
1230 enable_graphics_gd
1231 enable_graphics_gtk_drawing_area
1232 enable_graphics_null
1233 enable_graphics_win32
1234 enable_graphics_qt_qpainter
1235 enable_map_binfile
1236 enable_map_filter
1237 enable_map_mg
1238 enable_map_shapefile
1239 enable_map_textfile
1240 enable_map_csv
1241 enable_osd_core
1242 enable_gui_gtk
1243 enable_gui_internal
1244 enable_gui_win32
1245 enable_gui_qml
1246 enable_plugin_pedestrian
1247 enable_routing
1248 enable_speech_android
1249 enable_speech_cmdline
1250 enable_speech_espeak
1251 enable_speech_speech_dispatcher
1252 enable_vehicle_android
1253 enable_vehicle_demo
1254 enable_vehicle_file
1255 enable_vehicle_gpsd
1256 enable_vehicle_gypsy
1257 enable_vehicle_maemo
1258 enable_vehicle_null
1259 enable_vehicle_wince
1260 enable_vehicle_iphone
1261 enable_vehicle_webos
1262 '
1263 ac_precious_vars='build_alias
1264 host_alias
1265 target_alias
1266 CC
1267 CFLAGS
1268 LDFLAGS
1269 LIBS
1270 CPPFLAGS
1271 CPP
1272 OBJC
1273 OBJCFLAGS
1274 CXX
1275 CXXFLAGS
1276 CCC
1277 PKG_CONFIG
1278 HILDON_CFLAGS
1279 HILDON_LIBS
1280 GPSBT_CFLAGS
1281 GPSBT_LIBS
1282 LIBOSSO_CFLAGS
1283 LIBOSSO_LIBS
1284 GLIB_CFLAGS
1285 GLIB_LIBS
1286 GMODULE_CFLAGS
1287 GMODULE_LIBS
1288 CXXCPP
1289 GTK2_CFLAGS
1290 GTK2_LIBS
1291 SDL_CFLAGS
1292 SDL_LIBS
1293 FREETYPE2_CFLAGS
1294 FREETYPE2_LIBS
1295 FONTCONFIG_CFLAGS
1296 FONTCONFIG_LIBS
1297 FRIBIDI2_CFLAGS
1298 FRIBIDI2_LIBS
1299 FRIBIDI_CFLAGS
1300 FRIBIDI_LIBS
1301 IMLIB2_CFLAGS
1302 IMLIB2_LIBS
1303 LIBGARMIN_CFLAGS
1304 LIBGARMIN_LIBS
1305 DBUS_CFLAGS
1306 DBUS_LIBS
1307 QT_GUI_CFLAGS
1308 QT_GUI_LIBS
1309 QT_SVG_CFLAGS
1310 QT_SVG_LIBS
1311 QT_XML_CFLAGS
1312 QT_XML_LIBS
1313 QT_DECLARATIVE_CFLAGS
1314 QT_DECLARATIVE_LIBS
1315 GPSD_CFLAGS
1316 GPSD_LIBS
1317 LIBGPS19_CFLAGS
1318 LIBGPS19_LIBS
1319 GYPSY_CFLAGS
1320 GYPSY_LIBS
1321 LIBLOCATION_CFLAGS
1322 LIBLOCATION_LIBS'
1323
1324
1325 # Initialize some variables set by options.
1326 ac_init_help=
1327 ac_init_version=false
1328 ac_unrecognized_opts=
1329 ac_unrecognized_sep=
1330 # The variables have the same names as the options, with
1331 # dashes changed to underlines.
1332 cache_file=/dev/null
1333 exec_prefix=NONE
1334 no_create=
1335 no_recursion=
1336 prefix=NONE
1337 program_prefix=NONE
1338 program_suffix=NONE
1339 program_transform_name=s,x,x,
1340 silent=
1341 site=
1342 srcdir=
1343 verbose=
1344 x_includes=NONE
1345 x_libraries=NONE
1346
1347 # Installation directory options.
1348 # These are left unexpanded so users can "make install exec_prefix=/foo"
1349 # and all the variables that are supposed to be based on exec_prefix
1350 # by default will actually change.
1351 # Use braces instead of parens because sh, perl, etc. also accept them.
1352 # (The list follows the same order as the GNU Coding Standards.)
1353 bindir='${exec_prefix}/bin'
1354 sbindir='${exec_prefix}/sbin'
1355 libexecdir='${exec_prefix}/libexec'
1356 datarootdir='${prefix}/share'
1357 datadir='${datarootdir}'
1358 sysconfdir='${prefix}/etc'
1359 sharedstatedir='${prefix}/com'
1360 localstatedir='${prefix}/var'
1361 includedir='${prefix}/include'
1362 oldincludedir='/usr/include'
1363 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1364 infodir='${datarootdir}/info'
1365 htmldir='${docdir}'
1366 dvidir='${docdir}'
1367 pdfdir='${docdir}'
1368 psdir='${docdir}'
1369 libdir='${exec_prefix}/lib'
1370 localedir='${datarootdir}/locale'
1371 mandir='${datarootdir}/man'
1372
1373 ac_prev=
1374 ac_dashdash=
1375 for ac_option
1376 do
1377 # If the previous option needs an argument, assign it.
1378 if test -n "$ac_prev"; then
1379 eval $ac_prev=\$ac_option
1380 ac_prev=
1381 continue
1382 fi
1383
1384 case $ac_option in
1385 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1386 *=) ac_optarg= ;;
1387 *) ac_optarg=yes ;;
1388 esac
1389
1390 # Accept the important Cygnus configure options, so we can diagnose typos.
1391
1392 case $ac_dashdash$ac_option in
1393 --)
1394 ac_dashdash=yes ;;
1395
1396 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1397 ac_prev=bindir ;;
1398 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1399 bindir=$ac_optarg ;;
1400
1401 -build | --build | --buil | --bui | --bu)
1402 ac_prev=build_alias ;;
1403 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1404 build_alias=$ac_optarg ;;
1405
1406 -cache-file | --cache-file | --cache-fil | --cache-fi \
1407 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1408 ac_prev=cache_file ;;
1409 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1410 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1411 cache_file=$ac_optarg ;;
1412
1413 --config-cache | -C)
1414 cache_file=config.cache ;;
1415
1416 -datadir | --datadir | --datadi | --datad)
1417 ac_prev=datadir ;;
1418 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1419 datadir=$ac_optarg ;;
1420
1421 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1422 | --dataroo | --dataro | --datar)
1423 ac_prev=datarootdir ;;
1424 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1425 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1426 datarootdir=$ac_optarg ;;
1427
1428 -disable-* | --disable-*)
1429 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1430 # Reject names that are not valid shell variable names.
1431 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1432 as_fn_error $? "invalid feature name: $ac_useropt"
1433 ac_useropt_orig=$ac_useropt
1434 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1435 case $ac_user_opts in
1436 *"
1437 "enable_$ac_useropt"
1438 "*) ;;
1439 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1440 ac_unrecognized_sep=', ';;
1441 esac
1442 eval enable_$ac_useropt=no ;;
1443
1444 -docdir | --docdir | --docdi | --doc | --do)
1445 ac_prev=docdir ;;
1446 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1447 docdir=$ac_optarg ;;
1448
1449 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1450 ac_prev=dvidir ;;
1451 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1452 dvidir=$ac_optarg ;;
1453
1454 -enable-* | --enable-*)
1455 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1456 # Reject names that are not valid shell variable names.
1457 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1458 as_fn_error $? "invalid feature name: $ac_useropt"
1459 ac_useropt_orig=$ac_useropt
1460 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1461 case $ac_user_opts in
1462 *"
1463 "enable_$ac_useropt"
1464 "*) ;;
1465 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1466 ac_unrecognized_sep=', ';;
1467 esac
1468 eval enable_$ac_useropt=\$ac_optarg ;;
1469
1470 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1471 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1472 | --exec | --exe | --ex)
1473 ac_prev=exec_prefix ;;
1474 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1475 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1476 | --exec=* | --exe=* | --ex=*)
1477 exec_prefix=$ac_optarg ;;
1478
1479 -gas | --gas | --ga | --g)
1480 # Obsolete; use --with-gas.
1481 with_gas=yes ;;
1482
1483 -help | --help | --hel | --he | -h)
1484 ac_init_help=long ;;
1485 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1486 ac_init_help=recursive ;;
1487 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1488 ac_init_help=short ;;
1489
1490 -host | --host | --hos | --ho)
1491 ac_prev=host_alias ;;
1492 -host=* | --host=* | --hos=* | --ho=*)
1493 host_alias=$ac_optarg ;;
1494
1495 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1496 ac_prev=htmldir ;;
1497 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1498 | --ht=*)
1499 htmldir=$ac_optarg ;;
1500
1501 -includedir | --includedir | --includedi | --included | --include \
1502 | --includ | --inclu | --incl | --inc)
1503 ac_prev=includedir ;;
1504 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1505 | --includ=* | --inclu=* | --incl=* | --inc=*)
1506 includedir=$ac_optarg ;;
1507
1508 -infodir | --infodir | --infodi | --infod | --info | --inf)
1509 ac_prev=infodir ;;
1510 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1511 infodir=$ac_optarg ;;
1512
1513 -libdir | --libdir | --libdi | --libd)
1514 ac_prev=libdir ;;
1515 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1516 libdir=$ac_optarg ;;
1517
1518 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1519 | --libexe | --libex | --libe)
1520 ac_prev=libexecdir ;;
1521 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1522 | --libexe=* | --libex=* | --libe=*)
1523 libexecdir=$ac_optarg ;;
1524
1525 -localedir | --localedir | --localedi | --localed | --locale)
1526 ac_prev=localedir ;;
1527 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1528 localedir=$ac_optarg ;;
1529
1530 -localstatedir | --localstatedir | --localstatedi | --localstated \
1531 | --localstate | --localstat | --localsta | --localst | --locals)
1532 ac_prev=localstatedir ;;
1533 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1534 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1535 localstatedir=$ac_optarg ;;
1536
1537 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1538 ac_prev=mandir ;;
1539 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1540 mandir=$ac_optarg ;;
1541
1542 -nfp | --nfp | --nf)
1543 # Obsolete; use --without-fp.
1544 with_fp=no ;;
1545
1546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1547 | --no-cr | --no-c | -n)
1548 no_create=yes ;;
1549
1550 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1551 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1552 no_recursion=yes ;;
1553
1554 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1555 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1556 | --oldin | --oldi | --old | --ol | --o)
1557 ac_prev=oldincludedir ;;
1558 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1559 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1560 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1561 oldincludedir=$ac_optarg ;;
1562
1563 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1564 ac_prev=prefix ;;
1565 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1566 prefix=$ac_optarg ;;
1567
1568 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1569 | --program-pre | --program-pr | --program-p)
1570 ac_prev=program_prefix ;;
1571 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1572 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1573 program_prefix=$ac_optarg ;;
1574
1575 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1576 | --program-suf | --program-su | --program-s)
1577 ac_prev=program_suffix ;;
1578 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1579 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1580 program_suffix=$ac_optarg ;;
1581
1582 -program-transform-name | --program-transform-name \
1583 | --program-transform-nam | --program-transform-na \
1584 | --program-transform-n | --program-transform- \
1585 | --program-transform | --program-transfor \
1586 | --program-transfo | --program-transf \
1587 | --program-trans | --program-tran \
1588 | --progr-tra | --program-tr | --program-t)
1589 ac_prev=program_transform_name ;;
1590 -program-transform-name=* | --program-transform-name=* \
1591 | --program-transform-nam=* | --program-transform-na=* \
1592 | --program-transform-n=* | --program-transform-=* \
1593 | --program-transform=* | --program-transfor=* \
1594 | --program-transfo=* | --program-transf=* \
1595 | --program-trans=* | --program-tran=* \
1596 | --progr-tra=* | --program-tr=* | --program-t=*)
1597 program_transform_name=$ac_optarg ;;
1598
1599 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1600 ac_prev=pdfdir ;;
1601 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1602 pdfdir=$ac_optarg ;;
1603
1604 -psdir | --psdir | --psdi | --psd | --ps)
1605 ac_prev=psdir ;;
1606 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1607 psdir=$ac_optarg ;;
1608
1609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1610 | -silent | --silent | --silen | --sile | --sil)
1611 silent=yes ;;
1612
1613 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1614 ac_prev=sbindir ;;
1615 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1616 | --sbi=* | --sb=*)
1617 sbindir=$ac_optarg ;;
1618
1619 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1620 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1621 | --sharedst | --shareds | --shared | --share | --shar \
1622 | --sha | --sh)
1623 ac_prev=sharedstatedir ;;
1624 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1625 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1626 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1627 | --sha=* | --sh=*)
1628 sharedstatedir=$ac_optarg ;;
1629
1630 -site | --site | --sit)
1631 ac_prev=site ;;
1632 -site=* | --site=* | --sit=*)
1633 site=$ac_optarg ;;
1634
1635 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1636 ac_prev=srcdir ;;
1637 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1638 srcdir=$ac_optarg ;;
1639
1640 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1641 | --syscon | --sysco | --sysc | --sys | --sy)
1642 ac_prev=sysconfdir ;;
1643 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1644 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1645 sysconfdir=$ac_optarg ;;
1646
1647 -target | --target | --targe | --targ | --tar | --ta | --t)
1648 ac_prev=target_alias ;;
1649 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1650 target_alias=$ac_optarg ;;
1651
1652 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1653 verbose=yes ;;
1654
1655 -version | --version | --versio | --versi | --vers | -V)
1656 ac_init_version=: ;;
1657
1658 -with-* | --with-*)
1659 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1660 # Reject names that are not valid shell variable names.
1661 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1662 as_fn_error $? "invalid package name: $ac_useropt"
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667 "with_$ac_useropt"
1668 "*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval with_$ac_useropt=\$ac_optarg ;;
1673
1674 -without-* | --without-*)
1675 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1676 # Reject names that are not valid shell variable names.
1677 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678 as_fn_error $? "invalid package name: $ac_useropt"
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683 "with_$ac_useropt"
1684 "*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=no ;;
1689
1690 --x)
1691 # Obsolete; use --with-x.
1692 with_x=yes ;;
1693
1694 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1695 | --x-incl | --x-inc | --x-in | --x-i)
1696 ac_prev=x_includes ;;
1697 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1698 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1699 x_includes=$ac_optarg ;;
1700
1701 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1702 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1703 ac_prev=x_libraries ;;
1704 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1705 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1706 x_libraries=$ac_optarg ;;
1707
1708 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1709 Try \`$0 --help' for more information"
1710 ;;
1711
1712 *=*)
1713 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1714 # Reject names that are not valid shell variable names.
1715 case $ac_envvar in #(
1716 '' | [0-9]* | *[!_$as_cr_alnum]* )
1717 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1718 esac
1719 eval $ac_envvar=\$ac_optarg
1720 export $ac_envvar ;;
1721
1722 *)
1723 # FIXME: should be removed in autoconf 3.0.
1724 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1725 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1726 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1727 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1728 ;;
1729
1730 esac
1731 done
1732
1733 if test -n "$ac_prev"; then
1734 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1735 as_fn_error $? "missing argument to $ac_option"
1736 fi
1737
1738 if test -n "$ac_unrecognized_opts"; then
1739 case $enable_option_checking in
1740 no) ;;
1741 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1742 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1743 esac
1744 fi
1745
1746 # Check all directory arguments for consistency.
1747 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1748 datadir sysconfdir sharedstatedir localstatedir includedir \
1749 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1750 libdir localedir mandir
1751 do
1752 eval ac_val=\$$ac_var
1753 # Remove trailing slashes.
1754 case $ac_val in
1755 */ )
1756 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1757 eval $ac_var=\$ac_val;;
1758 esac
1759 # Be sure to have absolute directory names.
1760 case $ac_val in
1761 [\\/$]* | ?:[\\/]* ) continue;;
1762 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1763 esac
1764 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1765 done
1766
1767 # There might be people who depend on the old broken behavior: `$host'
1768 # used to hold the argument of --host etc.
1769 # FIXME: To remove some day.
1770 build=$build_alias
1771 host=$host_alias
1772 target=$target_alias
1773
1774 # FIXME: To remove some day.
1775 if test "x$host_alias" != x; then
1776 if test "x$build_alias" = x; then
1777 cross_compiling=maybe
1778 elif test "x$build_alias" != "x$host_alias"; then
1779 cross_compiling=yes
1780 fi
1781 fi
1782
1783 ac_tool_prefix=
1784 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1785
1786 test "$silent" = yes && exec 6>/dev/null
1787
1788
1789 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1790 ac_ls_di=`ls -di .` &&
1791 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1792 as_fn_error $? "working directory cannot be determined"
1793 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1794 as_fn_error $? "pwd does not report name of working directory"
1795
1796
1797 # Find the source files, if location was not specified.
1798 if test -z "$srcdir"; then
1799 ac_srcdir_defaulted=yes
1800 # Try the directory containing this script, then the parent directory.
1801 ac_confdir=`$as_dirname -- "$as_myself" ||
1802 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1803 X"$as_myself" : 'X\(//\)[^/]' \| \
1804 X"$as_myself" : 'X\(//\)$' \| \
1805 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1806 $as_echo X"$as_myself" |
1807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1808 s//\1/
1809 q
1810 }
1811 /^X\(\/\/\)[^/].*/{
1812 s//\1/
1813 q
1814 }
1815 /^X\(\/\/\)$/{
1816 s//\1/
1817 q
1818 }
1819 /^X\(\/\).*/{
1820 s//\1/
1821 q
1822 }
1823 s/.*/./; q'`
1824 srcdir=$ac_confdir
1825 if test ! -r "$srcdir/$ac_unique_file"; then
1826 srcdir=..
1827 fi
1828 else
1829 ac_srcdir_defaulted=no
1830 fi
1831 if test ! -r "$srcdir/$ac_unique_file"; then
1832 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1833 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1834 fi
1835 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1836 ac_abs_confdir=`(
1837 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1838 pwd)`
1839 # When building in place, set srcdir=.
1840 if test "$ac_abs_confdir" = "$ac_pwd"; then
1841 srcdir=.
1842 fi
1843 # Remove unnecessary trailing slashes from srcdir.
1844 # Double slashes in file names in object file debugging info
1845 # mess up M-x gdb in Emacs.
1846 case $srcdir in
1847 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1848 esac
1849 for ac_var in $ac_precious_vars; do
1850 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1851 eval ac_env_${ac_var}_value=\$${ac_var}
1852 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1853 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1854 done
1855
1856 #
1857 # Report the --help message.
1858 #
1859 if test "$ac_init_help" = "long"; then
1860 # Omit some internal or obsolete options to make the list less imposing.
1861 # This message is too long to be a string in the A/UX 3.1 sh.
1862 cat <<_ACEOF
1863 \`configure' configures zanavi 1.0.0 to adapt to many kinds of systems.
1864
1865 Usage: $0 [OPTION]... [VAR=VALUE]...
1866
1867 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1868 VAR=VALUE. See below for descriptions of some of the useful variables.
1869
1870 Defaults for the options are specified in brackets.
1871
1872 Configuration:
1873 -h, --help display this help and exit
1874 --help=short display options specific to this package
1875 --help=recursive display the short help of all the included packages
1876 -V, --version display version information and exit
1877 -q, --quiet, --silent do not print \`checking ...' messages
1878 --cache-file=FILE cache test results in FILE [disabled]
1879 -C, --config-cache alias for \`--cache-file=config.cache'
1880 -n, --no-create do not create output files
1881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1882
1883 Installation directories:
1884 --prefix=PREFIX install architecture-independent files in PREFIX
1885 @<:@@S|@ac_default_prefix@:>@
1886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1887 @<:@PREFIX@:>@
1888
1889 By default, \`make install' will install all the files in
1890 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1891 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1892 for instance \`--prefix=\$HOME'.
1893
1894 For better control, use the options below.
1895
1896 Fine tuning of the installation directories:
1897 --bindir=DIR user executables [EPREFIX/bin]
1898 --sbindir=DIR system admin executables [EPREFIX/sbin]
1899 --libexecdir=DIR program executables [EPREFIX/libexec]
1900 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1901 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1902 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1903 --libdir=DIR object code libraries [EPREFIX/lib]
1904 --includedir=DIR C header files [PREFIX/include]
1905 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1906 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1907 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1908 --infodir=DIR info documentation [DATAROOTDIR/info]
1909 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1910 --mandir=DIR man documentation [DATAROOTDIR/man]
1911 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/zanavi@:>@
1912 --htmldir=DIR html documentation [DOCDIR]
1913 --dvidir=DIR dvi documentation [DOCDIR]
1914 --pdfdir=DIR pdf documentation [DOCDIR]
1915 --psdir=DIR ps documentation [DOCDIR]
1916 _ACEOF
1917
1918 cat <<\_ACEOF
1919
1920 Program names:
1921 --program-prefix=PREFIX prepend PREFIX to installed program names
1922 --program-suffix=SUFFIX append SUFFIX to installed program names
1923 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1924
1925 System types:
1926 --build=BUILD configure for building on BUILD [guessed]
1927 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1928 _ACEOF
1929 fi
1930
1931 if test -n "$ac_init_help"; then
1932 case $ac_init_help in
1933 short | recursive ) echo "Configuration of zanavi 1.0.0:";;
1934 esac
1935 cat <<\_ACEOF
1936
1937 Optional Features:
1938 --disable-option-checking ignore unrecognized --enable/--with options
1939 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1940 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1941 --enable-maintainer-mode enable make rules and dependencies not useful
1942 (and sometimes confusing) to the casual installer
1943 --disable-dependency-tracking speeds up one-time build
1944 --enable-dependency-tracking do not reject slow dependency extractors
1945 --enable-variant=something set variant
1946 --enable-cache-size=size in bytes set cache size
1947 --enable-avoid-unaligned avoid unaligned accesses
1948 --enable-avoid-float avoid floating point calculations
1949 --enable-transformation-roll add support for specifying roll angle in transformation
1950 --disable-hildon build without maemo/hildon support
1951 --disable-osso build without maemo/osso support
1952 --disable-garmin disable garmin support
1953 --disable-maptool don't build maptool
1954 --disable-samplemap don't build the samplemap
1955 --disable-fastmath don't build with fastmath
1956 --disable-glib don't build with external glib
1957 --disable-gmodule don't build with gmodule
1958 --disable-plugins disable plugins
1959 --enable-shared-libnavit
1960 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1961 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1962 --enable-fast-install@<:@=PKGS@:>@
1963 optimize for fast installation @<:@default=yes@:>@
1964 --disable-libtool-lock avoid locking (might break parallel builds)
1965 --disable-graphics-sdl don't create graphics sdl
1966 --disable-postgresql don't add postgresql support to maptool
1967 --disable-font-freetype don't add freetype support
1968 --disable-fontconfig don't' add fontconfig support
1969 --disable-fribidi dont build with fribidi
1970 --disable-graphics-opengl disable graphics type OpenGL
1971 --disable-binding-python don't create binding python
1972 --disable-binding-dbus don't create binding dbus
1973 --enable-binding-dbus-use-system-bus use system bus for dbus binding
1974 --disable-svg disable Scalable Vector Graphics
1975 --disable-svg2png disable conversion of svgs to pngs
1976 --enable-svg2png-scaling enable conversion of svgs to pngs with specified sizes
1977 --enable-svg2png-scaling-flag enable conversion of flag svgs to pngs with specified sizes
1978 --enable-svg2png-scaling-nav enable conversion of nav svgs to pngs with specified sizes
1979 --disable-nls disable Native Language Support ( gettext/libintl )
1980 --disable-nls do not use Native Language Support
1981 --disable-rpath do not hardcode runtime library paths
1982 --enable-support-libc enable builtin mini libc
1983 --disable-graphics disable graphics
1984 --disable-graphics-android disable graphics type android
1985 --enable-graphics-gd enable graphics type gd
1986 --disable-graphics-gtk-drawing-area disable graphics type gtk_drawing_area
1987 --disable-graphics-null disable graphics type null
1988 --disable-graphics-win32 disable graphics type win32
1989 --disable-graphics-qt-qpainter disable graphics type qt-qpainter
1990 --disable-map-binfile disable map binfile
1991 --disable-map-filter disable map filter
1992 --disable-map-mg disable map mg
1993 --disable-map-shapefile disable map shapefile
1994 --disable-map-textfile disable map textfile
1995 --disable-map-csv disable map csv
1996 --disable-osd-core disable osd core
1997 --disable-gui-gtk disable gui type gtk
1998 --disable-gui-internal disable gui type internal
1999 --disable-gui-win32 disable gui type win32
2000 --disable-gui-qml disable gui type QML
2001 --enable-plugin-pedestrian enable pedestrian plugin
2002 --disable-routing disable routing
2003 --disable-speech-android disable speech type android
2004 --disable-speech-cmdline disable speech type cmdline
2005 --disable-speech-espeak disable speech type espeak
2006 --disable-speech-speech-dispatcher disable speech type speech-dispatcher
2007 --disable-vehicle-android disable vehicle type android
2008 --disable-vehicle-demo disable vehicle type demo
2009 --disable-vehicle-file disable vehicle type file
2010 --disable-vehicle-gpsd disable vehicle type gpsd
2011 --disable-vehicle-gypsy disable vehicle type gypsy
2012 --disable-vehicle-maemo disable vehicle type maemo
2013 --enable-vehicle-null enable vehicle type null
2014 --disable-vehicle-wince disable vehicle type wince
2015 --disable-vehicle-iphone disable vehicle type iphone
2016 --enable-vehicle-webos enable vehicle type webos
2017
2018 Optional Packages:
2019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2021 --with-pic try to use only PIC/non-PIC objects @<:@default=use
2022 both@:>@
2023 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
2024 --with-freetype-fonts specify what fonts to use
2025 --with-dbus-service-dir specify where the dbus service dir resides
2026 --with-svg2png-use-convert use imagemagick's convert for png creation
2027 --with-svg2png-use-rsvg-convert use librsvg's rsvg-convert for png creation
2028 --with-svg2png-use-inkscape use inkscapes internal convert routines for png creation
2029 --with-svg2png-use-ksvgtopng4 use kde4's ksvgtopng4 for png creation
2030 --with-svg2png-use-ksvgtopng use kde3's convert for png creation
2031 --with-xslts enable processing of navit.xml with given xslt scripts
2032 --with-saxon specify the saxon xslt processor
2033 --with-android-permissions Set additional android permissions
2034 --with-android-project Set android project
2035 --with-gnu-ld assume the C compiler uses GNU ld default=no
2036 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2037 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2038 --with-included-gettext use the GNU gettext library included here
2039 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2040 --without-libintl-prefix don't search for libintl in includedir and libdir
2041
2042 Some influential environment variables:
2043 CC C compiler command
2044 CFLAGS C compiler flags
2045 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2046 nonstandard directory <lib dir>
2047 LIBS libraries to pass to the linker, e.g. -l<library>
2048 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2049 you have headers in a nonstandard directory <include dir>
2050 CPP C preprocessor
2051 OBJC Objective C compiler command
2052 OBJCFLAGS Objective C compiler flags
2053 CXX C++ compiler command
2054 CXXFLAGS C++ compiler flags
2055 PKG_CONFIG path to pkg-config utility
2056 HILDON_CFLAGS
2057 C compiler flags for HILDON, overriding pkg-config
2058 HILDON_LIBS linker flags for HILDON, overriding pkg-config
2059 GPSBT_CFLAGS
2060 C compiler flags for GPSBT, overriding pkg-config
2061 GPSBT_LIBS linker flags for GPSBT, overriding pkg-config
2062 LIBOSSO_CFLAGS
2063 C compiler flags for LIBOSSO, overriding pkg-config
2064 LIBOSSO_LIBS
2065 linker flags for LIBOSSO, overriding pkg-config
2066 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2067 GLIB_LIBS linker flags for GLIB, overriding pkg-config
2068 GMODULE_CFLAGS
2069 C compiler flags for GMODULE, overriding pkg-config
2070 GMODULE_LIBS
2071 linker flags for GMODULE, overriding pkg-config
2072 CXXCPP C++ preprocessor
2073 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2074 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2075 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
2076 SDL_LIBS linker flags for SDL, overriding pkg-config
2077 FREETYPE2_CFLAGS
2078 C compiler flags for FREETYPE2, overriding pkg-config
2079 FREETYPE2_LIBS
2080 linker flags for FREETYPE2, overriding pkg-config
2081 FONTCONFIG_CFLAGS
2082 C compiler flags for FONTCONFIG, overriding pkg-config
2083 FONTCONFIG_LIBS
2084 linker flags for FONTCONFIG, overriding pkg-config
2085 FRIBIDI2_CFLAGS
2086 C compiler flags for FRIBIDI2, overriding pkg-config
2087 FRIBIDI2_LIBS
2088 linker flags for FRIBIDI2, overriding pkg-config
2089 FRIBIDI_CFLAGS
2090 C compiler flags for FRIBIDI, overriding pkg-config
2091 FRIBIDI_LIBS
2092 linker flags for FRIBIDI, overriding pkg-config
2093 IMLIB2_CFLAGS
2094 C compiler flags for IMLIB2, overriding pkg-config
2095 IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
2096 LIBGARMIN_CFLAGS
2097 C compiler flags for LIBGARMIN, overriding pkg-config
2098 LIBGARMIN_LIBS
2099 linker flags for LIBGARMIN, overriding pkg-config
2100 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2101 DBUS_LIBS linker flags for DBUS, overriding pkg-config
2102 QT_GUI_CFLAGS
2103 C compiler flags for QT_GUI, overriding pkg-config
2104 QT_GUI_LIBS linker flags for QT_GUI, overriding pkg-config
2105 QT_SVG_CFLAGS
2106 C compiler flags for QT_SVG, overriding pkg-config
2107 QT_SVG_LIBS linker flags for QT_SVG, overriding pkg-config
2108 QT_XML_CFLAGS
2109 C compiler flags for QT_XML, overriding pkg-config
2110 QT_XML_LIBS linker flags for QT_XML, overriding pkg-config
2111 QT_DECLARATIVE_CFLAGS
2112 C compiler flags for QT_DECLARATIVE, overriding pkg-config
2113 QT_DECLARATIVE_LIBS
2114 linker flags for QT_DECLARATIVE, overriding pkg-config
2115 GPSD_CFLAGS C compiler flags for GPSD, overriding pkg-config
2116 GPSD_LIBS linker flags for GPSD, overriding pkg-config
2117 LIBGPS19_CFLAGS
2118 C compiler flags for LIBGPS19, overriding pkg-config
2119 LIBGPS19_LIBS
2120 linker flags for LIBGPS19, overriding pkg-config
2121 GYPSY_CFLAGS
2122 C compiler flags for GYPSY, overriding pkg-config
2123 GYPSY_LIBS linker flags for GYPSY, overriding pkg-config
2124 LIBLOCATION_CFLAGS
2125 C compiler flags for LIBLOCATION, overriding pkg-config
2126 LIBLOCATION_LIBS
2127 linker flags for LIBLOCATION, overriding pkg-config
2128
2129 Use these variables to override the choices made by `configure' or to help
2130 it to find libraries and programs with nonstandard names/locations.
2131
2132 Report bugs to the package provider.
2133 _ACEOF
2134 ac_status=$?
2135 fi
2136
2137 if test "$ac_init_help" = "recursive"; then
2138 # If there are subdirs, report their specific --help.
2139 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2140 test -d "$ac_dir" ||
2141 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2142 continue
2143 ac_builddir=.
2144
2145 case "$ac_dir" in
2146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147 *)
2148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2149 # A ".." for each directory in $ac_dir_suffix.
2150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2151 case $ac_top_builddir_sub in
2152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154 esac ;;
2155 esac
2156 ac_abs_top_builddir=$ac_pwd
2157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2158 # for backward compatibility:
2159 ac_top_builddir=$ac_top_build_prefix
2160
2161 case $srcdir in
2162 .) # We are building in place.
2163 ac_srcdir=.
2164 ac_top_srcdir=$ac_top_builddir_sub
2165 ac_abs_top_srcdir=$ac_pwd ;;
2166 [\\/]* | ?:[\\/]* ) # Absolute name.
2167 ac_srcdir=$srcdir$ac_dir_suffix;
2168 ac_top_srcdir=$srcdir
2169 ac_abs_top_srcdir=$srcdir ;;
2170 *) # Relative name.
2171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2172 ac_top_srcdir=$ac_top_build_prefix$srcdir
2173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2174 esac
2175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2176
2177 cd "$ac_dir" || { ac_status=$?; continue; }
2178 # Check for guested configure.
2179 if test -f "$ac_srcdir/configure.gnu"; then
2180 echo &&
2181 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2182 elif test -f "$ac_srcdir/configure"; then
2183 echo &&
2184 $SHELL "$ac_srcdir/configure" --help=recursive
2185 else
2186 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2187 fi || ac_status=$?
2188 cd "$ac_pwd" || { ac_status=$?; break; }
2189 done
2190 fi
2191
2192 test -n "$ac_init_help" && exit $ac_status
2193 if $ac_init_version; then
2194 cat <<\_ACEOF
2195 zanavi configure 1.0.0
2196 generated by GNU Autoconf 2.69
2197
2198 Copyright (C) 2012 Free Software Foundation, Inc.
2199 This configure script is free software; the Free Software Foundation
2200 gives unlimited permission to copy, distribute and modify it.
2201 _ACEOF
2202 exit
2203 fi
2204
2205 ## ------------------------ ##
2206 ## Autoconf initialization. ##
2207 ## ------------------------ ##
2208
2209 @%:@ ac_fn_c_try_compile LINENO
2210 @%:@ --------------------------
2211 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_compile ()
2213 {
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 rm -f conftest.$ac_objext
2216 if { { ac_try="$ac_compile"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_compile") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2229 fi
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && {
2232 test -z "$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 } && test -s conftest.$ac_objext; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2244
2245 } @%:@ ac_fn_c_try_compile
2246
2247 @%:@ ac_fn_c_try_cpp LINENO
2248 @%:@ ----------------------
2249 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2266 fi
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=1
2278 fi
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2281
2282 } @%:@ ac_fn_c_try_cpp
2283
2284 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2285 @%:@ -------------------------------------------------------
2286 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2287 @%:@ the include files in INCLUDES and setting the cache variable VAR
2288 @%:@ accordingly.
2289 ac_fn_c_check_header_mongrel ()
2290 {
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if eval \${$3+:} false; then :
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 fi
2298 eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 else
2302 # Is the header compilable?
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2304 $as_echo_n "checking $2 usability... " >&6; }
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 $4
2308 @%:@include <$2>
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311 ac_header_compiler=yes
2312 else
2313 ac_header_compiler=no
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2317 $as_echo "$ac_header_compiler" >&6; }
2318
2319 # Is the header present?
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2321 $as_echo_n "checking $2 presence... " >&6; }
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 @%:@include <$2>
2325 _ACEOF
2326 if ac_fn_c_try_cpp "$LINENO"; then :
2327 ac_header_preproc=yes
2328 else
2329 ac_header_preproc=no
2330 fi
2331 rm -f conftest.err conftest.i conftest.$ac_ext
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2333 $as_echo "$ac_header_preproc" >&6; }
2334
2335 # So? What about this header?
2336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2337 yes:no: )
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2339 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2342 ;;
2343 no:yes:* )
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2345 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2347 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2349 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2351 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 ;;
2355 esac
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if eval \${$3+:} false; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 eval "$3=\$ac_header_compiler"
2362 fi
2363 eval ac_res=\$$3
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 fi
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369 } @%:@ ac_fn_c_check_header_mongrel
2370
2371 @%:@ ac_fn_c_try_run LINENO
2372 @%:@ ----------------------
2373 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
2374 @%:@ that executables *can* be run.
2375 ac_fn_c_try_run ()
2376 {
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 if { { ac_try="$ac_link"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_link") 2>&5
2386 ac_status=$?
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2389 { { case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_try") 2>&5
2396 ac_status=$?
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; }; }; then :
2399 ac_retval=0
2400 else
2401 $as_echo "$as_me: program exited with status $ac_status" >&5
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_retval=$ac_status
2406 fi
2407 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 as_fn_set_status $ac_retval
2410
2411 } @%:@ ac_fn_c_try_run
2412
2413 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2414 @%:@ -------------------------------------------------------
2415 @%:@ Tests whether HEADER exists and can be compiled using the include files in
2416 @%:@ INCLUDES, setting the cache variable VAR accordingly.
2417 ac_fn_c_check_header_compile ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421 $as_echo_n "checking for $2... " >&6; }
2422 if eval \${$3+:} false; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2427 $4
2428 @%:@include <$2>
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 eval "$3=yes"
2432 else
2433 eval "$3=no"
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 fi
2437 eval ac_res=\$$3
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441
2442 } @%:@ ac_fn_c_check_header_compile
2443
2444 @%:@ ac_fn_objc_try_compile LINENO
2445 @%:@ -----------------------------
2446 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2447 ac_fn_objc_try_compile ()
2448 {
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext
2451 if { { ac_try="$ac_compile"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_compile") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2464 fi
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_objc_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then :
2470 ac_retval=0
2471 else
2472 $as_echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_retval=1
2476 fi
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 as_fn_set_status $ac_retval
2479
2480 } @%:@ ac_fn_objc_try_compile
2481
2482 @%:@ ac_fn_cxx_try_compile LINENO
2483 @%:@ ----------------------------
2484 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2485 ac_fn_cxx_try_compile ()
2486 {
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 rm -f conftest.$ac_objext
2489 if { { ac_try="$ac_compile"
2490 case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493 esac
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_compile") 2>conftest.err
2497 ac_status=$?
2498 if test -s conftest.err; then
2499 grep -v '^ *+' conftest.err >conftest.er1
2500 cat conftest.er1 >&5
2501 mv -f conftest.er1 conftest.err
2502 fi
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; } && {
2505 test -z "$ac_cxx_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest.$ac_objext; then :
2508 ac_retval=0
2509 else
2510 $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 ac_retval=1
2514 fi
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 as_fn_set_status $ac_retval
2517
2518 } @%:@ ac_fn_cxx_try_compile
2519
2520 @%:@ ac_fn_c_try_link LINENO
2521 @%:@ -----------------------
2522 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2523 ac_fn_c_try_link ()
2524 {
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { { ac_try="$ac_link"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533 $as_echo "$ac_try_echo"; } >&5
2534 (eval "$ac_link") 2>conftest.err
2535 ac_status=$?
2536 if test -s conftest.err; then
2537 grep -v '^ *+' conftest.err >conftest.er1
2538 cat conftest.er1 >&5
2539 mv -f conftest.er1 conftest.err
2540 fi
2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542 test $ac_status = 0; } && {
2543 test -z "$ac_c_werror_flag" ||
2544 test ! -s conftest.err
2545 } && test -s conftest$ac_exeext && {
2546 test "$cross_compiling" = yes ||
2547 test -x conftest$ac_exeext
2548 }; then :
2549 ac_retval=0
2550 else
2551 $as_echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_retval=1
2555 fi
2556 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2557 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2558 # interfere with the next link command; also delete a directory that is
2559 # left behind by Apple's compiler. We do this before executing the actions.
2560 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562 as_fn_set_status $ac_retval
2563
2564 } @%:@ ac_fn_c_try_link
2565
2566 @%:@ ac_fn_c_check_func LINENO FUNC VAR
2567 @%:@ ----------------------------------
2568 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2569 ac_fn_c_check_func ()
2570 {
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2573 $as_echo_n "checking for $2... " >&6; }
2574 if eval \${$3+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2579 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2581 #define $2 innocuous_$2
2582
2583 /* System header to define __stub macros and hopefully few prototypes,
2584 which can conflict with char $2 (); below.
2585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2586 <limits.h> exists even on freestanding compilers. */
2587
2588 #ifdef __STDC__
2589 # include <limits.h>
2590 #else
2591 # include <assert.h>
2592 #endif
2593
2594 #undef $2
2595
2596 /* Override any GCC internal prototype to avoid an error.
2597 Use char because int might match the return type of a GCC
2598 builtin and then its argument prototype would still apply. */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 char $2 ();
2603 /* The GNU C library defines this for functions which it implements
2604 to always fail with ENOSYS. Some functions are actually named
2605 something starting with __ and the normal name is an alias. */
2606 #if defined __stub_$2 || defined __stub___$2
2607 choke me
2608 #endif
2609
2610 int
2611 main ()
2612 {
2613 return $2 ();
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_c_try_link "$LINENO"; then :
2619 eval "$3=yes"
2620 else
2621 eval "$3=no"
2622 fi
2623 rm -f core conftest.err conftest.$ac_objext \
2624 conftest$ac_exeext conftest.$ac_ext
2625 fi
2626 eval ac_res=\$$3
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630
2631 } @%:@ ac_fn_c_check_func
2632
2633 @%:@ ac_fn_cxx_try_cpp LINENO
2634 @%:@ ------------------------
2635 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2636 ac_fn_cxx_try_cpp ()
2637 {
2638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639 if { { ac_try="$ac_cpp conftest.$ac_ext"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645 $as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2647 ac_status=$?
2648 if test -s conftest.err; then
2649 grep -v '^ *+' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 mv -f conftest.er1 conftest.err
2652 fi
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; } > conftest.i && {
2655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2656 test ! -s conftest.err
2657 }; then :
2658 ac_retval=0
2659 else
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_retval=1
2664 fi
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666 as_fn_set_status $ac_retval
2667
2668 } @%:@ ac_fn_cxx_try_cpp
2669
2670 @%:@ ac_fn_cxx_try_link LINENO
2671 @%:@ -------------------------
2672 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2673 ac_fn_cxx_try_link ()
2674 {
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 rm -f conftest.$ac_objext conftest$ac_exeext
2677 if { { ac_try="$ac_link"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2683 $as_echo "$ac_try_echo"; } >&5
2684 (eval "$ac_link") 2>conftest.err
2685 ac_status=$?
2686 if test -s conftest.err; then
2687 grep -v '^ *+' conftest.err >conftest.er1
2688 cat conftest.er1 >&5
2689 mv -f conftest.er1 conftest.err
2690 fi
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; } && {
2693 test -z "$ac_cxx_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest$ac_exeext && {
2696 test "$cross_compiling" = yes ||
2697 test -x conftest$ac_exeext
2698 }; then :
2699 ac_retval=0
2700 else
2701 $as_echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 ac_retval=1
2705 fi
2706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2708 # interfere with the next link command; also delete a directory that is
2709 # left behind by Apple's compiler. We do this before executing the actions.
2710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 as_fn_set_status $ac_retval
2713
2714 } @%:@ ac_fn_cxx_try_link
2715
2716 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2717 @%:@ -------------------------------------------
2718 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2719 @%:@ variable VAR accordingly.
2720 ac_fn_c_check_type ()
2721 {
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 eval "$3=no"
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731 $4
2732 int
2733 main ()
2734 {
2735 if (sizeof ($2))
2736 return 0;
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 if ac_fn_c_try_compile "$LINENO"; then :
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2744 $4
2745 int
2746 main ()
2747 {
2748 if (sizeof (($2)))
2749 return 0;
2750 ;
2751 return 0;
2752 }
2753 _ACEOF
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755
2756 else
2757 eval "$3=yes"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 eval ac_res=\$$3
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767
2768 } @%:@ ac_fn_c_check_type
2769
2770 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2771 @%:@ --------------------------------------------
2772 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2773 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2774 @%:@ computed
2775 ac_fn_c_compute_int ()
2776 {
2777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778 if test "$cross_compiling" = yes; then
2779 # Depending upon the size, compute the lo and hi bounds.
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2782 $4
2783 int
2784 main ()
2785 {
2786 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2787 test_array @<:@0@:>@ = 0;
2788 return test_array @<:@0@:>@;
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_c_try_compile "$LINENO"; then :
2795 ac_lo=0 ac_mid=0
2796 while :; do
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2799 $4
2800 int
2801 main ()
2802 {
2803 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2804 test_array @<:@0@:>@ = 0;
2805 return test_array @<:@0@:>@;
2806
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812 ac_hi=$ac_mid; break
2813 else
2814 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2815 if test $ac_lo -le $ac_mid; then
2816 ac_lo= ac_hi=
2817 break
2818 fi
2819 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 done
2823 else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2831 test_array @<:@0@:>@ = 0;
2832 return test_array @<:@0@:>@;
2833
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_c_try_compile "$LINENO"; then :
2839 ac_hi=-1 ac_mid=-1
2840 while :; do
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2843 $4
2844 int
2845 main ()
2846 {
2847 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2848 test_array @<:@0@:>@ = 0;
2849 return test_array @<:@0@:>@;
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_lo=$ac_mid; break
2857 else
2858 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859 if test $ac_mid -le $ac_hi; then
2860 ac_lo= ac_hi=
2861 break
2862 fi
2863 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 done
2867 else
2868 ac_lo= ac_hi=
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2878 $4
2879 int
2880 main ()
2881 {
2882 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2883 test_array @<:@0@:>@ = 0;
2884 return test_array @<:@0@:>@;
2885
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_hi=$ac_mid
2892 else
2893 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897 case $ac_lo in @%:@((
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899 '') ac_retval=1 ;;
2900 esac
2901 else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2904 $4
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2907 @%:@include <stdio.h>
2908 @%:@include <stdlib.h>
2909 int
2910 main ()
2911 {
2912
2913 FILE *f = fopen ("conftest.val", "w");
2914 if (! f)
2915 return 1;
2916 if (($2) < 0)
2917 {
2918 long int i = longval ();
2919 if (i != ($2))
2920 return 1;
2921 fprintf (f, "%ld", i);
2922 }
2923 else
2924 {
2925 unsigned long int i = ulongval ();
2926 if (i != ($2))
2927 return 1;
2928 fprintf (f, "%lu", i);
2929 }
2930 /* Do not output a trailing newline, as this causes \r\n confusion
2931 on some platforms. */
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_c_try_run "$LINENO"; then :
2939 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940 else
2941 ac_retval=1
2942 fi
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944 conftest.$ac_objext conftest.beam conftest.$ac_ext
2945 rm -f conftest.val
2946
2947 fi
2948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949 as_fn_set_status $ac_retval
2950
2951 } @%:@ ac_fn_c_compute_int
2952 cat >config.log <<_ACEOF
2953 This file contains any messages produced by compilers while
2954 running configure, to aid debugging if configure makes a mistake.
2955
2956 It was created by zanavi $as_me 1.0.0, which was
2957 generated by GNU Autoconf 2.69. Invocation command line was
2958
2959 $ $0 $@
2960
2961 _ACEOF
2962 exec 5>>config.log
2963 {
2964 cat <<_ASUNAME
2965 ## --------- ##
2966 ## Platform. ##
2967 ## --------- ##
2968
2969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2974
2975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2977
2978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2985
2986 _ASUNAME
2987
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 $as_echo "PATH: $as_dir"
2994 done
2995 IFS=$as_save_IFS
2996
2997 } >&5
2998
2999 cat >&5 <<_ACEOF
3000
3001
3002 ## ----------- ##
3003 ## Core tests. ##
3004 ## ----------- ##
3005
3006 _ACEOF
3007
3008
3009 # Keep a trace of the command line.
3010 # Strip out --no-create and --no-recursion so they do not pile up.
3011 # Strip out --silent because we don't want to record it for future runs.
3012 # Also quote any args containing shell meta-characters.
3013 # Make two passes to allow for proper duplicate-argument suppression.
3014 ac_configure_args=
3015 ac_configure_args0=
3016 ac_configure_args1=
3017 ac_must_keep_next=false
3018 for ac_pass in 1 2
3019 do
3020 for ac_arg
3021 do
3022 case $ac_arg in
3023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3025 | -silent | --silent | --silen | --sile | --sil)
3026 continue ;;
3027 *\'*)
3028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3029 esac
3030 case $ac_pass in
3031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3032 2)
3033 as_fn_append ac_configure_args1 " '$ac_arg'"
3034 if test $ac_must_keep_next = true; then
3035 ac_must_keep_next=false # Got value, back to normal.
3036 else
3037 case $ac_arg in
3038 *=* | --config-cache | -C | -disable-* | --disable-* \
3039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3041 | -with-* | --with-* | -without-* | --without-* | --x)
3042 case "$ac_configure_args0 " in
3043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3044 esac
3045 ;;
3046 -* ) ac_must_keep_next=true ;;
3047 esac
3048 fi
3049 as_fn_append ac_configure_args " '$ac_arg'"
3050 ;;
3051 esac
3052 done
3053 done
3054 { ac_configure_args0=; unset ac_configure_args0;}
3055 { ac_configure_args1=; unset ac_configure_args1;}
3056
3057 # When interrupted or exit'd, cleanup temporary files, and complete
3058 # config.log. We remove comments because anyway the quotes in there
3059 # would cause problems or look ugly.
3060 # WARNING: Use '\'' to represent an apostrophe within the trap.
3061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3062 trap 'exit_status=$?
3063 # Save into config.log some information that might help in debugging.
3064 {
3065 echo
3066
3067 $as_echo "## ---------------- ##
3068 ## Cache variables. ##
3069 ## ---------------- ##"
3070 echo
3071 # The following way of writing the cache mishandles newlines in values,
3072 (
3073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3074 eval ac_val=\$$ac_var
3075 case $ac_val in #(
3076 *${as_nl}*)
3077 case $ac_var in #(
3078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3080 esac
3081 case $ac_var in #(
3082 _ | IFS | as_nl) ;; #(
3083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3084 *) { eval $ac_var=; unset $ac_var;} ;;
3085 esac ;;
3086 esac
3087 done
3088 (set) 2>&1 |
3089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3090 *${as_nl}ac_space=\ *)
3091 sed -n \
3092 "s/'\''/'\''\\\\'\'''\''/g;
3093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3094 ;; #(
3095 *)
3096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3097 ;;
3098 esac |
3099 sort
3100 )
3101 echo
3102
3103 $as_echo "## ----------------- ##
3104 ## Output variables. ##
3105 ## ----------------- ##"
3106 echo
3107 for ac_var in $ac_subst_vars
3108 do
3109 eval ac_val=\$$ac_var
3110 case $ac_val in
3111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3112 esac
3113 $as_echo "$ac_var='\''$ac_val'\''"
3114 done | sort
3115 echo
3116
3117 if test -n "$ac_subst_files"; then
3118 $as_echo "## ------------------- ##
3119 ## File substitutions. ##
3120 ## ------------------- ##"
3121 echo
3122 for ac_var in $ac_subst_files
3123 do
3124 eval ac_val=\$$ac_var
3125 case $ac_val in
3126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3127 esac
3128 $as_echo "$ac_var='\''$ac_val'\''"
3129 done | sort
3130 echo
3131 fi
3132
3133 if test -s confdefs.h; then
3134 $as_echo "## ----------- ##
3135 ## confdefs.h. ##
3136 ## ----------- ##"
3137 echo
3138 cat confdefs.h
3139 echo
3140 fi
3141 test "$ac_signal" != 0 &&
3142 $as_echo "$as_me: caught signal $ac_signal"
3143 $as_echo "$as_me: exit $exit_status"
3144 } >&5
3145 rm -f core *.core core.conftest.* &&
3146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3147 exit $exit_status
3148 ' 0
3149 for ac_signal in 1 2 13 15; do
3150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3151 done
3152 ac_signal=0
3153
3154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3155 rm -f -r conftest* confdefs.h
3156
3157 $as_echo "/* confdefs.h */" > confdefs.h
3158
3159 # Predefined preprocessor variables.
3160
3161 cat >>confdefs.h <<_ACEOF
3162 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
3163 _ACEOF
3164
3165 cat >>confdefs.h <<_ACEOF
3166 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3167 _ACEOF
3168
3169 cat >>confdefs.h <<_ACEOF
3170 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
3171 _ACEOF
3172
3173 cat >>confdefs.h <<_ACEOF
3174 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
3175 _ACEOF
3176
3177 cat >>confdefs.h <<_ACEOF
3178 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3179 _ACEOF
3180
3181 cat >>confdefs.h <<_ACEOF
3182 @%:@define PACKAGE_URL "$PACKAGE_URL"
3183 _ACEOF
3184
3185
3186 # Let the site file select an alternate cache file if it wants to.
3187 # Prefer an explicitly selected file to automatically selected ones.
3188 ac_site_file1=NONE
3189 ac_site_file2=NONE
3190 if test -n "$CONFIG_SITE"; then
3191 # We do not want a PATH search for config.site.
3192 case $CONFIG_SITE in @%:@((
3193 -*) ac_site_file1=./$CONFIG_SITE;;
3194 */*) ac_site_file1=$CONFIG_SITE;;
3195 *) ac_site_file1=./$CONFIG_SITE;;
3196 esac
3197 elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3200 else
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3203 fi
3204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3205 do
3206 test "x$ac_site_file" = xNONE && continue
3207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3211 . "$ac_site_file" \
3212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "failed to load site script $ac_site_file
3215 See \`config.log' for more details" "$LINENO" 5; }
3216 fi
3217 done
3218
3219 if test -r "$cache_file"; then
3220 # Some versions of bash will fail to source /dev/null (special files
3221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3224 $as_echo "$as_me: loading cache $cache_file" >&6;}
3225 case $cache_file in
3226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3227 *) . "./$cache_file";;
3228 esac
3229 fi
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3232 $as_echo "$as_me: creating cache $cache_file" >&6;}
3233 >$cache_file
3234 fi
3235
3236 as_fn_append ac_header_list " stdlib.h"
3237 as_fn_append ac_header_list " unistd.h"
3238 as_fn_append ac_header_list " sys/param.h"
3239 # Check that the precious variables saved in the cache have kept the same
3240 # value.
3241 ac_cache_corrupted=false
3242 for ac_var in $ac_precious_vars; do
3243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3244 eval ac_new_set=\$ac_env_${ac_var}_set
3245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3246 eval ac_new_val=\$ac_env_${ac_var}_value
3247 case $ac_old_set,$ac_new_set in
3248 set,)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3252 ,set)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3256 ,);;
3257 *)
3258 if test "x$ac_old_val" != "x$ac_new_val"; then
3259 # differences in whitespace do not lead to failure.
3260 ac_old_val_w=`echo x $ac_old_val`
3261 ac_new_val_w=`echo x $ac_new_val`
3262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3265 ac_cache_corrupted=:
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3269 eval $ac_var=\$ac_old_val
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3275 fi;;
3276 esac
3277 # Pass precious variables to config.status.
3278 if test "$ac_new_set" = set; then
3279 case $ac_new_val in
3280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3281 *) ac_arg=$ac_var=$ac_new_val ;;
3282 esac
3283 case " $ac_configure_args " in
3284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3286 esac
3287 fi
3288 done
3289 if $ac_cache_corrupted; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3295 fi
3296 ## -------------------- ##
3297 ## Main body of script. ##
3298 ## -------------------- ##
3299
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305
3306
3307
3308 SOURCE_MODE=svn
3309
3310 am__api_version='1.11'
3311
3312 ac_aux_dir=
3313 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3314 if test -f "$ac_dir/install-sh"; then
3315 ac_aux_dir=$ac_dir
3316 ac_install_sh="$ac_aux_dir/install-sh -c"
3317 break
3318 elif test -f "$ac_dir/install.sh"; then
3319 ac_aux_dir=$ac_dir
3320 ac_install_sh="$ac_aux_dir/install.sh -c"
3321 break
3322 elif test -f "$ac_dir/shtool"; then
3323 ac_aux_dir=$ac_dir
3324 ac_install_sh="$ac_aux_dir/shtool install -c"
3325 break
3326 fi
3327 done
3328 if test -z "$ac_aux_dir"; then
3329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3330 fi
3331
3332 # These three variables are undocumented and unsupported,
3333 # and are intended to be withdrawn in a future Autoconf release.
3334 # They can cause serious problems if a builder's source tree is in a directory
3335 # whose full name contains unusual characters.
3336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3339
3340
3341 # Find a good install program. We prefer a C program (faster),
3342 # so one script is as good as another. But avoid the broken or
3343 # incompatible versions:
3344 # SysV /etc/install, /usr/sbin/install
3345 # SunOS /usr/etc/install
3346 # IRIX /sbin/install
3347 # AIX /bin/install
3348 # AmigaOS /C/install, which installs bootblocks on floppy discs
3349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3352 # OS/2's system install, which has a completely different semantic
3353 # ./install, which can be erroneously created by make from ./install.sh.
3354 # Reject install programs that cannot install multiple files.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3356 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3357 if test -z "$INSTALL"; then
3358 if ${ac_cv_path_install+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 # Account for people who put trailing slashes in PATH elements.
3367 case $as_dir/ in @%:@((
3368 ./ | .// | /[cC]/* | \
3369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3370 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3371 /usr/ucb/* ) ;;
3372 *)
3373 # OSF1 and SCO ODT 3.0 have their own names for install.
3374 # Don't use installbsd from OSF since it installs stuff as root
3375 # by default.
3376 for ac_prog in ginstall scoinst install; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3379 if test $ac_prog = install &&
3380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3381 # AIX install. It has an incompatible calling convention.
3382 :
3383 elif test $ac_prog = install &&
3384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385 # program-specific install script used by HP pwplus--don't use.
3386 :
3387 else
3388 rm -rf conftest.one conftest.two conftest.dir
3389 echo one > conftest.one
3390 echo two > conftest.two
3391 mkdir conftest.dir
3392 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3393 test -s conftest.one && test -s conftest.two &&
3394 test -s conftest.dir/conftest.one &&
3395 test -s conftest.dir/conftest.two
3396 then
3397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3398 break 3
3399 fi
3400 fi
3401 fi
3402 done
3403 done
3404 ;;
3405 esac
3406
3407 done
3408 IFS=$as_save_IFS
3409
3410 rm -rf conftest.one conftest.two conftest.dir
3411
3412 fi
3413 if test "${ac_cv_path_install+set}" = set; then
3414 INSTALL=$ac_cv_path_install
3415 else
3416 # As a last resort, use the slow shell script. Don't cache a
3417 # value for INSTALL within a source directory, because that will
3418 # break other packages using the cache if that directory is
3419 # removed, or if the value is a relative name.
3420 INSTALL=$ac_install_sh
3421 fi
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3424 $as_echo "$INSTALL" >&6; }
3425
3426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3427 # It thinks the first close brace ends the variable substitution.
3428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3429
3430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3431
3432 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3433
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3435 $as_echo_n "checking whether build environment is sane... " >&6; }
3436 # Just in case
3437 sleep 1
3438 echo timestamp > conftest.file
3439 # Reject unsafe characters in $srcdir or the absolute working directory
3440 # name. Accept space and tab only in the latter.
3441 am_lf='
3442 '
3443 case `pwd` in
3444 *[\\\"\#\$\&\'\`$am_lf]*)
3445 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3446 esac
3447 case $srcdir in
3448 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3449 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3450 esac
3451
3452 # Do `set' in a subshell so we don't clobber the current shell's
3453 # arguments. Must try -L first in case configure is actually a
3454 # symlink; some systems play weird games with the mod time of symlinks
3455 # (eg FreeBSD returns the mod time of the symlink's containing
3456 # directory).
3457 if (
3458 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3459 if test "$*" = "X"; then
3460 # -L didn't work.
3461 set X `ls -t "$srcdir/configure" conftest.file`
3462 fi
3463 rm -f conftest.file
3464 if test "$*" != "X $srcdir/configure conftest.file" \
3465 && test "$*" != "X conftest.file $srcdir/configure"; then
3466
3467 # If neither matched, then we have a broken ls. This can happen
3468 # if, for instance, CONFIG_SHELL is bash and it inherits a
3469 # broken ls alias from the environment. This has actually
3470 # happened. Such a system could not be considered "sane".
3471 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3472 alias in your environment" "$LINENO" 5
3473 fi
3474
3475 test "$2" = conftest.file
3476 )
3477 then
3478 # Ok.
3479 :
3480 else
3481 as_fn_error $? "newly created file is older than distributed files!
3482 Check your system clock" "$LINENO" 5
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3486 test "$program_prefix" != NONE &&
3487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3488 # Use a double $ so make ignores it.
3489 test "$program_suffix" != NONE &&
3490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3491 # Double any \ or $.
3492 # By default was `s,x,x', remove it if useless.
3493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3495
3496 # expand $ac_aux_dir to an absolute path
3497 am_aux_dir=`cd $ac_aux_dir && pwd`
3498
3499 if test x"${MISSING+set}" != xset; then
3500 case $am_aux_dir in
3501 *\ * | *\ *)
3502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3503 *)
3504 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3505 esac
3506 fi
3507 # Use eval to expand $SHELL
3508 if eval "$MISSING --run true"; then
3509 am_missing_run="$MISSING --run "
3510 else
3511 am_missing_run=
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3513 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3514 fi
3515
3516 if test x"${install_sh}" != xset; then
3517 case $am_aux_dir in
3518 *\ * | *\ *)
3519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3520 *)
3521 install_sh="\${SHELL} $am_aux_dir/install-sh"
3522 esac
3523 fi
3524
3525 # Installed binaries are usually stripped using `strip' when the user
3526 # run `make install-strip'. However `strip' might not be the right
3527 # tool to use in cross-compilation environments, therefore Automake
3528 # will honor the `STRIP' environment variable to overrule this program.
3529 if test "$cross_compiling" != no; then
3530 if test -n "$ac_tool_prefix"; then
3531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3532 set dummy ${ac_tool_prefix}strip; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_STRIP+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$STRIP"; then
3539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 STRIP=$ac_cv_prog_STRIP
3559 if test -n "$STRIP"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3561 $as_echo "$STRIP" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567
3568 fi
3569 if test -z "$ac_cv_prog_STRIP"; then
3570 ac_ct_STRIP=$STRIP
3571 # Extract the first word of "strip", so it can be a program name with args.
3572 set dummy strip; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if test -n "$ac_ct_STRIP"; then
3579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_ac_ct_STRIP="strip"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592 done
3593 done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3599 if test -n "$ac_ct_STRIP"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3601 $as_echo "$ac_ct_STRIP" >&6; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 fi
3606
3607 if test "x$ac_ct_STRIP" = x; then
3608 STRIP=":"
3609 else
3610 case $cross_compiling:$ac_tool_warned in
3611 yes:)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614 ac_tool_warned=yes ;;
3615 esac
3616 STRIP=$ac_ct_STRIP
3617 fi
3618 else
3619 STRIP="$ac_cv_prog_STRIP"
3620 fi
3621
3622 fi
3623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3627 if test -z "$MKDIR_P"; then
3628 if ${ac_cv_path_mkdir+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in mkdir gmkdir; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3640 'mkdir (GNU coreutils) '* | \
3641 'mkdir (coreutils) '* | \
3642 'mkdir (fileutils) '4.1*)
3643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3644 break 3;;
3645 esac
3646 done
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652
3653 test -d ./--version && rmdir ./--version
3654 if test "${ac_cv_path_mkdir+set}" = set; then
3655 MKDIR_P="$ac_cv_path_mkdir -p"
3656 else
3657 # As a last resort, use the slow shell script. Don't cache a
3658 # value for MKDIR_P within a source directory, because that will
3659 # break other packages using the cache if that directory is
3660 # removed, or if the value is a relative name.
3661 MKDIR_P="$ac_install_sh -d"
3662 fi
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3665 $as_echo "$MKDIR_P" >&6; }
3666
3667 mkdir_p="$MKDIR_P"
3668 case $mkdir_p in
3669 [\\/$]* | ?:[\\/]*) ;;
3670 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3671 esac
3672
3673 for ac_prog in gawk mawk nawk awk
3674 do
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_AWK+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$AWK"; then
3683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_AWK="$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 AWK=$ac_cv_prog_AWK
3703 if test -n "$AWK"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3705 $as_echo "$AWK" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 test -n "$AWK" && break
3713 done
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3717 set x ${MAKE-make}
3718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3719 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat >conftest.make <<\_ACEOF
3723 SHELL = /bin/sh
3724 all:
3725 @echo '@@@%%%=$(MAKE)=@@@%%%'
3726 _ACEOF
3727 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3729 *@@@%%%=?*=@@@%%%*)
3730 eval ac_cv_prog_make_${ac_make}_set=yes;;
3731 *)
3732 eval ac_cv_prog_make_${ac_make}_set=no;;
3733 esac
3734 rm -f conftest.make
3735 fi
3736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738 $as_echo "yes" >&6; }
3739 SET_MAKE=
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 SET_MAKE="MAKE=${MAKE-make}"
3744 fi
3745
3746 rm -rf .tst 2>/dev/null
3747 mkdir .tst 2>/dev/null
3748 if test -d .tst; then
3749 am__leading_dot=.
3750 else
3751 am__leading_dot=_
3752 fi
3753 rmdir .tst 2>/dev/null
3754
3755 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3757 # is not polluted with repeated "-I."
3758 am__isrc=' -I$(srcdir)'
3759 # test to see if srcdir already configured
3760 if test -f $srcdir/config.status; then
3761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3762 fi
3763 fi
3764
3765 # test whether we have cygpath
3766 if test -z "$CYGPATH_W"; then
3767 if (cygpath --version) >/dev/null 2>/dev/null; then
3768 CYGPATH_W='cygpath -w'
3769 else
3770 CYGPATH_W=echo
3771 fi
3772 fi
3773
3774
3775 # Define the identity of the package.
3776 PACKAGE='zanavi'
3777 VERSION='1.0.0'
3778
3779
3780 cat >>confdefs.h <<_ACEOF
3781 @%:@define PACKAGE "$PACKAGE"
3782 _ACEOF
3783
3784
3785 cat >>confdefs.h <<_ACEOF
3786 @%:@define VERSION "$VERSION"
3787 _ACEOF
3788
3789 # Some tools Automake needs.
3790
3791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3792
3793
3794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3795
3796
3797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3798
3799
3800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3801
3802
3803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3804
3805 # We need awk for the "check" target. The system "awk" is bad on
3806 # some platforms.
3807 # Always define AMTAR for backward compatibility.
3808
3809 AMTAR=${AMTAR-"${am_missing_run}tar"}
3810
3811 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3812
3813
3814
3815
3816
3817 ac_config_headers="$ac_config_headers config.h"
3818
3819
3820
3821 if test "x${SOURCE_MODE}" = "xsvn"; then
3822 SOURCE_MODE_SVN_TRUE=
3823 SOURCE_MODE_SVN_FALSE='#'
3824 else
3825 SOURCE_MODE_SVN_TRUE='#'
3826 SOURCE_MODE_SVN_FALSE=
3827 fi
3828
3829
3830 if test "x${SOURCE_MODE}" = "xsvn" ; then
3831 USE_MAINTAINER_MODE=yes
3832 else
3833 USE_MAINTAINER_MODE=no
3834 fi
3835
3836
3837
3838 # This is what autoupdate's m4 run will expand. It fires
3839 # the warning (with _au_warn_XXX), outputs it into the
3840 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3841 # the replacement expansion.
3842
3843
3844 # This is an auxiliary macro that is also run when
3845 # autoupdate runs m4. It simply calls m4_warning, but
3846 # we need a wrapper so that each warning is emitted only
3847 # once. We break the quoting in m4_warning's argument in
3848 # order to expand this macro's arguments, not AU_DEFUN's.
3849
3850
3851 # Finally, this is the expansion that is picked up by
3852 # autoconf. It tells the user to run autoupdate, and
3853 # then outputs the replacement expansion. We do not care
3854 # about autoupdate's warning because that contains
3855 # information on what to do *after* running autoupdate.
3856
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3859 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3860 @%:@ Check whether --enable-maintainer-mode was given.
3861 if test "${enable_maintainer_mode+set}" = set; then :
3862 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3863 fi
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3866 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3867 if test $USE_MAINTAINER_MODE = yes; then
3868 MAINTAINER_MODE_TRUE=
3869 MAINTAINER_MODE_FALSE='#'
3870 else
3871 MAINTAINER_MODE_TRUE='#'
3872 MAINTAINER_MODE_FALSE=
3873 fi
3874
3875 MAINT=$MAINTAINER_MODE_TRUE
3876
3877
3878
3879
3880 plugins=yes; plugins_reason=default
3881 postgresql=yes; postgresql_reason=default
3882 samplemap=yes; samplemap_reason=default
3883 binding_dbus=yes; binding_dbus_reason=default
3884 binding_dbus_use_system_bus=no
3885 binding_python=yes; binding_python_reason=default
3886 font_freetype=yes; font_freetype_reason=default
3887 fontconfig=yes; fontconfig_reason=default
3888 fribidi=yes; fribidi_reason=default
3889 gui_gtk=no; gui_gtk_reason=default
3890 gui_win32=no; gui_win32_reason=default
3891 gui_internal=yes; gui_internal_reason=default
3892 gui_qml=no; gui_qml_reason=default
3893 graphics=yes; graphics_reason=default
3894 graphics_gd=no; graphics_gd_reason=default
3895 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
3896 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
3897 graphics_null=yes; graphics_null_reason=default
3898 graphics_opengl=yes; graphics_opengl_reason=default
3899 graphics_sdl=yes; graphics_sdl_reason=default
3900 graphics_win32=no; graphics_win32_reason=default
3901 maptool=yes; maptool_reason=default
3902 map_binfile=yes; map_binfile_reason=default
3903 map_filter=yes; map_filter_reason=default
3904 map_mg=yes; map_mg_reason=default
3905 map_shapefile=yes; map_shapefile_reason=default
3906 map_textfile=yes; map_textfile_reason=default
3907 map_csv=yes; map_csv_reason=default
3908 osd_core=yes; osd_core_reason=default
3909 plugin_pedestrian=no; plugin_pedestrian_reason=default
3910 routing=yes; routing_reason=default
3911 speech_android=no; speech_android_reason=default
3912 speech_cmdline=yes; speech_cmdline_reason=default
3913 speech_dbus=no; speech_dbus_reason=default
3914 speech_espeak=no; speech_espeak_reason=default
3915 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
3916 vehicle_demo=yes; vehicle_demo_reason=default
3917 vehicle_file=yes; vehicle_file_reason=default
3918 vehicle_gpsd=yes; vehicle_gpsd_reason=default
3919 vehicle_gpsd_dbus=no; vehicle_gpsd_dbus_reason=default
3920 vehicle_gypsy=yes; vehicle_gypsy_reason=default
3921 vehicle_null=no; vehicle_null_reason=default
3922 vehicle_wince=no; vehicle_wince_reason=default
3923 vehicle_iphone=no; vehicle_iphone_reason=default
3924 vehicle_android=no; vehicle_android_reason=default
3925 graphics_android=no; graphics_android_reason=default
3926 vehicle_maemo=no; vehicle_maemo_reason=default
3927 vehicle_webos=no; vehicle_webos_reason=default
3928
3929 shared_libnavit=no
3930 LIBNAVIT=navit
3931 bin_navit=yes
3932
3933 # Make sure we can run config.sub.
3934 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3935 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3938 $as_echo_n "checking build system type... " >&6; }
3939 if ${ac_cv_build+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 ac_build_alias=$build_alias
3943 test "x$ac_build_alias" = x &&
3944 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3945 test "x$ac_build_alias" = x &&
3946 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3947 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3949
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3952 $as_echo "$ac_cv_build" >&6; }
3953 case $ac_cv_build in
3954 *-*-*) ;;
3955 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3956 esac
3957 build=$ac_cv_build
3958 ac_save_IFS=$IFS; IFS='-'
3959 set x $ac_cv_build
3960 shift
3961 build_cpu=$1
3962 build_vendor=$2
3963 shift; shift
3964 # Remember, the first character of IFS is used to create $*,
3965 # except with old shells:
3966 build_os=$*
3967 IFS=$ac_save_IFS
3968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3969
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3972 $as_echo_n "checking host system type... " >&6; }
3973 if ${ac_cv_host+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test "x$host_alias" = x; then
3977 ac_cv_host=$ac_cv_build
3978 else
3979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3980 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3981 fi
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3985 $as_echo "$ac_cv_host" >&6; }
3986 case $ac_cv_host in
3987 *-*-*) ;;
3988 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3989 esac
3990 host=$ac_cv_host
3991 ac_save_IFS=$IFS; IFS='-'
3992 set x $ac_cv_host
3993 shift
3994 host_cpu=$1
3995 host_vendor=$2
3996 shift; shift
3997 # Remember, the first character of IFS is used to create $*,
3998 # except with old shells:
3999 host_os=$*
4000 IFS=$ac_save_IFS
4001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4002
4003
4004 win32=no
4005 win32ce=no
4006 case $host_os in
4007 wince|mingw32ce|cegcc)
4008 win32=yes
4009 win32ce=yes
4010
4011 $as_echo "@%:@define HAVE_API_WIN32_BASE 1" >>confdefs.h
4012
4013
4014 $as_echo "@%:@define HAVE_API_WIN32_CE 1" >>confdefs.h
4015
4016 gui_win32=yes; gui_win32_reason="host_os is wince"
4017 graphics_win32=yes; graphics_win32_reason="host_os is wince"
4018 vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
4019 speech_espeak=yes; speech_espeak_reason="host_os is wince"
4020 support_libpng=yes
4021 maptool=no; maptool_reason="host_os is wince"
4022 ;;
4023 mingw32)
4024 win32=yes
4025
4026 $as_echo "@%:@define HAVE_API_WIN32_BASE 1" >>confdefs.h
4027
4028
4029 $as_echo "@%:@define HAVE_API_WIN32 1" >>confdefs.h
4030
4031 gui_win32=yes; gui_win32_reason="host_os is mingw32"
4032 graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
4033 speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
4034 support_libpng=yes
4035 ;;
4036 linux*_android)
4037 android=yes
4038 shared_libnavit=yes
4039 bin_navit=no
4040
4041 $as_echo "@%:@define HAVE_API_ANDROID 1" >>confdefs.h
4042
4043 echo "void dl_unwind_find_exidx(void) {}" >crt0.c
4044 $CC -c crt0.c
4045 $AR r libg.a crt0.o
4046 vehicle_android=yes; vehicle_android_reason="host_os is android"
4047 graphics_android=yes; graphics_android_reason="host_os is android"
4048 speech_android=yes; speech_android_reason="host_os is android"
4049 MODULE_LDFLAGS="-module -Xcompiler -nostdlib -Xcompiler -Wl,-rpath -Xcompiler -Wl,/data/data/com.zoffcc.applications.zanavi/lib"
4050 MODULE_LIBADD="-llog"
4051 LIBNAVIT=_data_data_com.zoffcc.applications.zanavi_lib_navit
4052 NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -l$LIBNAVIT"
4053 ;;
4054 esac
4055 if test "x$win32" = "xyes"
4056 then
4057 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
4058 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
4059 NAVIT_SOCKET_LDFLAGS="$MODULE_LDFLAGS -lws2_32"
4060 fi
4061
4062
4063 if test "x$win32" = "xyes"; then
4064 SUPPORT_WIN32_TRUE=
4065 SUPPORT_WIN32_FALSE='#'
4066 else
4067 SUPPORT_WIN32_TRUE='#'
4068 SUPPORT_WIN32_FALSE=
4069 fi
4070
4071 if test "x$win32ce" = "xyes"; then
4072 SUPPORT_WIN32CE_TRUE=
4073 SUPPORT_WIN32CE_FALSE='#'
4074 else
4075 SUPPORT_WIN32CE_TRUE='#'
4076 SUPPORT_WIN32CE_FALSE=
4077 fi
4078
4079 if test "x$android" = "xyes"; then
4080 SUPPORT_ANDROID_TRUE=
4081 SUPPORT_ANDROID_FALSE='#'
4082 else
4083 SUPPORT_ANDROID_TRUE='#'
4084 SUPPORT_ANDROID_FALSE=
4085 fi
4086
4087
4088 if test "x$support_libpng" = "xyes"
4089 then
4090 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
4091 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
4092 fi
4093 if test "x$support_libpng" = "xyes"; then
4094 SUPPORT_LIBPNG_TRUE=
4095 SUPPORT_LIBPNG_FALSE='#'
4096 else
4097 SUPPORT_LIBPNG_TRUE='#'
4098 SUPPORT_LIBPNG_FALSE=
4099 fi
4100
4101
4102
4103
4104
4105
4106
4107 LIBS="$LIBS -lm"
4108 if test "$win32" == "no" -a "$host_os" != "cygwin"; then
4109 LIBS="$LIBS -rdynamic"
4110 fi
4111
4112
4113
4114 DEPDIR="${am__leading_dot}deps"
4115
4116 ac_config_commands="$ac_config_commands depfiles"
4117
4118
4119 am_make=${MAKE-make}
4120 cat > confinc << 'END'
4121 am__doit:
4122 @echo this is the am__doit target
4123 .PHONY: am__doit
4124 END
4125 # If we don't find an include directive, just comment out the code.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4127 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4128 am__include="#"
4129 am__quote=
4130 _am_result=none
4131 # First try GNU make style include.
4132 echo "include confinc" > confmf
4133 # Ignore all kinds of additional output from `make'.
4134 case `$am_make -s -f confmf 2> /dev/null` in #(
4135 *the\ am__doit\ target*)
4136 am__include=include
4137 am__quote=
4138 _am_result=GNU
4139 ;;
4140 esac
4141 # Now try BSD make style include.
4142 if test "$am__include" = "#"; then
4143 echo '.include "confinc"' > confmf
4144 case `$am_make -s -f confmf 2> /dev/null` in #(
4145 *the\ am__doit\ target*)
4146 am__include=.include
4147 am__quote="\""
4148 _am_result=BSD
4149 ;;
4150 esac
4151 fi
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4155 $as_echo "$_am_result" >&6; }
4156 rm -f confinc confmf
4157
4158 @%:@ Check whether --enable-dependency-tracking was given.
4159 if test "${enable_dependency_tracking+set}" = set; then :
4160 enableval=$enable_dependency_tracking;
4161 fi
4162
4163 if test "x$enable_dependency_tracking" != xno; then
4164 am_depcomp="$ac_aux_dir/depcomp"
4165 AMDEPBACKSLASH='\'
4166 fi
4167 if test "x$enable_dependency_tracking" != xno; then
4168 AMDEP_TRUE=
4169 AMDEP_FALSE='#'
4170 else
4171 AMDEP_TRUE='#'
4172 AMDEP_FALSE=
4173 fi
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 fi
4220 if test -z "$ac_cv_prog_CC"; then
4221 ac_ct_CC=$CC
4222 # Extract the first word of "gcc", so it can be a program name with args.
4223 set dummy gcc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$ac_ct_CC"; then
4230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_ac_ct_CC="gcc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243 done
4244 done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250 if test -n "$ac_ct_CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4252 $as_echo "$ac_ct_CC" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258 if test "x$ac_ct_CC" = x; then
4259 CC=""
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267 CC=$ac_ct_CC
4268 fi
4269 else
4270 CC="$ac_cv_prog_CC"
4271 fi
4272
4273 if test -z "$CC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}cc; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_CC+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -n "$CC"; then
4283 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 ac_cv_prog_CC="${ac_tool_prefix}cc"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296 done
4297 done
4298 IFS=$as_save_IFS
4299
4300 fi
4301 fi
4302 CC=$ac_cv_prog_CC
4303 if test -n "$CC"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4305 $as_echo "$CC" >&6; }
4306 else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4309 fi
4310
4311
4312 fi
4313 fi
4314 if test -z "$CC"; then
4315 # Extract the first word of "cc", so it can be a program name with args.
4316 set dummy cc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_CC+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325 ac_prog_rejected=no
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4334 ac_prog_rejected=yes
4335 continue
4336 fi
4337 ac_cv_prog_CC="cc"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341 done
4342 done
4343 IFS=$as_save_IFS
4344
4345 if test $ac_prog_rejected = yes; then
4346 # We found a bogon in the path, so make sure we never use it.
4347 set dummy $ac_cv_prog_CC
4348 shift
4349 if test $@%:@ != 0; then
4350 # We chose a different compiler from the bogus one.
4351 # However, it has the same basename, so the bogon will be chosen
4352 # first if we set CC to just the basename; use the full file name.
4353 shift
4354 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4355 fi
4356 fi
4357 fi
4358 fi
4359 CC=$ac_cv_prog_CC
4360 if test -n "$CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369 fi
4370 if test -z "$CC"; then
4371 if test -n "$ac_tool_prefix"; then
4372 for ac_prog in cl.exe
4373 do
4374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 CC=$ac_cv_prog_CC
4402 if test -n "$CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411 test -n "$CC" && break
4412 done
4413 fi
4414 if test -z "$CC"; then
4415 ac_ct_CC=$CC
4416 for ac_prog in cl.exe
4417 do
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$ac_ct_CC"; then
4426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_ac_ct_CC="$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446 if test -n "$ac_ct_CC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4448 $as_echo "$ac_ct_CC" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454
4455 test -n "$ac_ct_CC" && break
4456 done
4457
4458 if test "x$ac_ct_CC" = x; then
4459 CC=""
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 CC=$ac_ct_CC
4468 fi
4469 fi
4470
4471 fi
4472
4473
4474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "no acceptable C compiler found in \$PATH
4477 See \`config.log' for more details" "$LINENO" 5; }
4478
4479 # Provide some information about the compiler.
4480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4481 set X $ac_compile
4482 ac_compiler=$2
4483 for ac_option in --version -v -V -qversion; do
4484 { { ac_try="$ac_compiler $ac_option >&5"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4492 ac_status=$?
4493 if test -s conftest.err; then
4494 sed '10a\
4495 ... rest of stderr output deleted ...
4496 10q' conftest.err >conftest.er1
4497 cat conftest.er1 >&5
4498 fi
4499 rm -f conftest.er1 conftest.err
4500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }
4502 done
4503
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506
4507 int
4508 main ()
4509 {
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 ac_clean_files_save=$ac_clean_files
4516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4517 # Try to create an executable without -o first, disregard a.out.
4518 # It will help us diagnose broken compilers, and finding out an intuition
4519 # of exeext.
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4521 $as_echo_n "checking whether the C compiler works... " >&6; }
4522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4523
4524 # The possible output files:
4525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4526
4527 ac_rmfiles=
4528 for ac_file in $ac_files
4529 do
4530 case $ac_file in
4531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4532 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4533 esac
4534 done
4535 rm -f $ac_rmfiles
4536
4537 if { { ac_try="$ac_link_default"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_link_default") 2>&5
4545 ac_status=$?
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }; then :
4548 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4550 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4551 # so that the user can short-circuit this test for compilers unknown to
4552 # Autoconf.
4553 for ac_file in $ac_files ''
4554 do
4555 test -f "$ac_file" || continue
4556 case $ac_file in
4557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4558 ;;
4559 [ab].out )
4560 # We found the default executable, but exeext='' is most
4561 # certainly right.
4562 break;;
4563 *.* )
4564 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4565 then :; else
4566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4567 fi
4568 # We set ac_cv_exeext here because the later test for it is not
4569 # safe: cross compilers may not add the suffix if given an `-o'
4570 # argument, so we may need to know it at that point already.
4571 # Even if this section looks crufty: it has the advantage of
4572 # actually working.
4573 break;;
4574 * )
4575 break;;
4576 esac
4577 done
4578 test "$ac_cv_exeext" = no && ac_cv_exeext=
4579
4580 else
4581 ac_file=''
4582 fi
4583 if test -z "$ac_file"; then :
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error 77 "C compiler cannot create executables
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595 $as_echo "yes" >&6; }
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4598 $as_echo_n "checking for C compiler default output file name... " >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4600 $as_echo "$ac_file" >&6; }
4601 ac_exeext=$ac_cv_exeext
4602
4603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4604 ac_clean_files=$ac_clean_files_save
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4606 $as_echo_n "checking for suffix of executables... " >&6; }
4607 if { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }; then :
4618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4620 # work properly (i.e., refer to `conftest.exe'), while it won't with
4621 # `rm'.
4622 for ac_file in conftest.exe conftest conftest.*; do
4623 test -f "$ac_file" || continue
4624 case $ac_file in
4625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4627 break;;
4628 * ) break;;
4629 esac
4630 done
4631 else
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4635 See \`config.log' for more details" "$LINENO" 5; }
4636 fi
4637 rm -f conftest conftest$ac_cv_exeext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4639 $as_echo "$ac_cv_exeext" >&6; }
4640
4641 rm -f conftest.$ac_ext
4642 EXEEXT=$ac_cv_exeext
4643 ac_exeext=$EXEEXT
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 @%:@include <stdio.h>
4647 int
4648 main ()
4649 {
4650 FILE *f = fopen ("conftest.out", "w");
4651 return ferror (f) || fclose (f) != 0;
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 ac_clean_files="$ac_clean_files conftest.out"
4658 # Check that the compiler produces executables we can run. If not, either
4659 # the compiler is broken, or we cross compile.
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4661 $as_echo_n "checking whether we are cross compiling... " >&6; }
4662 if test "$cross_compiling" != yes; then
4663 { { ac_try="$ac_link"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_link") 2>&5
4671 ac_status=$?
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4674 if { ac_try='./conftest$ac_cv_exeext'
4675 { { case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_try") 2>&5
4682 ac_status=$?
4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }; }; then
4685 cross_compiling=no
4686 else
4687 if test "$cross_compiling" = maybe; then
4688 cross_compiling=yes
4689 else
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "cannot run C compiled programs.
4693 If you meant to cross compile, use \`--host'.
4694 See \`config.log' for more details" "$LINENO" 5; }
4695 fi
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4699 $as_echo "$cross_compiling" >&6; }
4700
4701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4702 ac_clean_files=$ac_clean_files_save
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704 $as_echo_n "checking for suffix of object files... " >&6; }
4705 if ${ac_cv_objext+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710
4711 int
4712 main ()
4713 {
4714
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.o conftest.obj
4720 if { { ac_try="$ac_compile"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compile") 2>&5
4728 ac_status=$?
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; then :
4731 for ac_file in conftest.o conftest.obj conftest.*; do
4732 test -f "$ac_file" || continue;
4733 case $ac_file in
4734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4736 break;;
4737 esac
4738 done
4739 else
4740 $as_echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "cannot compute suffix of object files: cannot compile
4746 See \`config.log' for more details" "$LINENO" 5; }
4747 fi
4748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4751 $as_echo "$ac_cv_objext" >&6; }
4752 OBJEXT=$ac_cv_objext
4753 ac_objext=$OBJEXT
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4756 if ${ac_cv_c_compiler_gnu+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765 #ifndef __GNUC__
4766 choke me
4767 #endif
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_compiler_gnu=yes
4775 else
4776 ac_compiler_gnu=no
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4780
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4784 if test $ac_compiler_gnu = yes; then
4785 GCC=yes
4786 else
4787 GCC=
4788 fi
4789 ac_test_CFLAGS=${CFLAGS+set}
4790 ac_save_CFLAGS=$CFLAGS
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4793 if ${ac_cv_prog_cc_g+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 ac_save_c_werror_flag=$ac_c_werror_flag
4797 ac_c_werror_flag=yes
4798 ac_cv_prog_cc_g=no
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813 else
4814 CFLAGS=""
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817
4818 int
4819 main ()
4820 {
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827
4828 else
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4830 CFLAGS="-g"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 ac_cv_prog_cc_g=yes
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_c_werror_flag=$ac_save_c_werror_flag
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4853 $as_echo "$ac_cv_prog_cc_g" >&6; }
4854 if test "$ac_test_CFLAGS" = set; then
4855 CFLAGS=$ac_save_CFLAGS
4856 elif test $ac_cv_prog_cc_g = yes; then
4857 if test "$GCC" = yes; then
4858 CFLAGS="-g -O2"
4859 else
4860 CFLAGS="-g"
4861 fi
4862 else
4863 if test "$GCC" = yes; then
4864 CFLAGS="-O2"
4865 else
4866 CFLAGS=
4867 fi
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4871 if ${ac_cv_prog_cc_c89+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 ac_cv_prog_cc_c89=no
4875 ac_save_CC=$CC
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878 #include <stdarg.h>
4879 #include <stdio.h>
4880 struct stat;
4881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4882 struct buf { int x; };
4883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4884 static char *e (p, i)
4885 char **p;
4886 int i;
4887 {
4888 return p[i];
4889 }
4890 static char *f (char * (*g) (char **, int), char **p, ...)
4891 {
4892 char *s;
4893 va_list v;
4894 va_start (v,p);
4895 s = g (p, va_arg (v,int));
4896 va_end (v);
4897 return s;
4898 }
4899
4900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4901 function prototypes and stuff, but not '\xHH' hex character constants.
4902 These don't provoke an error unfortunately, instead are silently treated
4903 as 'x'. The following induces an error, until -std is added to get
4904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4905 array size at least. It's necessary to write '\x00'==0 to get something
4906 that's true only with -std. */
4907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4908
4909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4910 inside strings and character constants. */
4911 #define FOO(x) 'x'
4912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4913
4914 int test (int i, double x);
4915 struct s1 {int (*f) (int a);};
4916 struct s2 {int (*f) (double a);};
4917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4918 int argc;
4919 char **argv;
4920 int
4921 main ()
4922 {
4923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4930 do
4931 CC="$ac_save_CC $ac_arg"
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_prog_cc_c89=$ac_arg
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext
4936 test "x$ac_cv_prog_cc_c89" != "xno" && break
4937 done
4938 rm -f conftest.$ac_ext
4939 CC=$ac_save_CC
4940
4941 fi
4942 # AC_CACHE_VAL
4943 case "x$ac_cv_prog_cc_c89" in
4944 x)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4946 $as_echo "none needed" >&6; } ;;
4947 xno)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4949 $as_echo "unsupported" >&6; } ;;
4950 *)
4951 CC="$CC $ac_cv_prog_cc_c89"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4954 esac
4955 if test "x$ac_cv_prog_cc_c89" != xno; then :
4956
4957 fi
4958
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965 depcc="$CC" am_compiler_list=
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4968 $as_echo_n "checking dependency style of $depcc... " >&6; }
4969 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4973 # We make a subdir and do the tests there. Otherwise we can end up
4974 # making bogus files that we don't know about and never remove. For
4975 # instance it was reported that on HP-UX the gcc test will end up
4976 # making a dummy file named `D' -- because `-MD' means `put the output
4977 # in D'.
4978 mkdir conftest.dir
4979 # Copy depcomp to subdir because otherwise we won't find it if we're
4980 # using a relative directory.
4981 cp "$am_depcomp" conftest.dir
4982 cd conftest.dir
4983 # We will build objects and dependencies in a subdirectory because
4984 # it helps to detect inapplicable dependency modes. For instance
4985 # both Tru64's cc and ICC support -MD to output dependencies as a
4986 # side effect of compilation, but ICC will put the dependencies in
4987 # the current directory while Tru64 will put them in the object
4988 # directory.
4989 mkdir sub
4990
4991 am_cv_CC_dependencies_compiler_type=none
4992 if test "$am_compiler_list" = ""; then
4993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4994 fi
4995 am__universal=false
4996 case " $depcc " in #(
4997 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4998 esac
4999
5000 for depmode in $am_compiler_list; do
5001 # Setup a source with many dependencies, because some compilers
5002 # like to wrap large dependency lists on column 80 (with \), and
5003 # we should not choose a depcomp mode which is confused by this.
5004 #
5005 # We need to recreate these files for each test, as the compiler may
5006 # overwrite some of them when testing with obscure command lines.
5007 # This happens at least with the AIX C compiler.
5008 : > sub/conftest.c
5009 for i in 1 2 3 4 5 6; do
5010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5012 # Solaris 8's {/usr,}/bin/sh.
5013 touch sub/conftst$i.h
5014 done
5015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5016
5017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5018 # mode. It turns out that the SunPro C++ compiler does not properly
5019 # handle `-M -o', and we need to detect this. Also, some Intel
5020 # versions had trouble with output in subdirs
5021 am__obj=sub/conftest.${OBJEXT-o}
5022 am__minus_obj="-o $am__obj"
5023 case $depmode in
5024 gcc)
5025 # This depmode causes a compiler race in universal mode.
5026 test "$am__universal" = false || continue
5027 ;;
5028 nosideeffect)
5029 # after this tag, mechanisms are not by side-effect, so they'll
5030 # only be used when explicitly requested
5031 if test "x$enable_dependency_tracking" = xyes; then
5032 continue
5033 else
5034 break
5035 fi
5036 ;;
5037 msvisualcpp | msvcmsys)
5038 # This compiler won't grok `-c -o', but also, the minuso test has
5039 # not run yet. These depmodes are late enough in the game, and
5040 # so weak that their functioning should not be impacted.
5041 am__obj=conftest.${OBJEXT-o}
5042 am__minus_obj=
5043 ;;
5044 none) break ;;
5045 esac
5046 if depmode=$depmode \
5047 source=sub/conftest.c object=$am__obj \
5048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5049 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5050 >/dev/null 2>conftest.err &&
5051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5053 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5055 # icc doesn't choke on unknown options, it will just issue warnings
5056 # or remarks (even with -Werror). So we grep stderr for any message
5057 # that says an option was ignored or not supported.
5058 # When given -MP, icc 7.0 and 7.1 complain thusly:
5059 # icc: Command line warning: ignoring option '-M'; no argument required
5060 # The diagnosis changed in icc 8.0:
5061 # icc: Command line remark: option '-MP' not supported
5062 if (grep 'ignoring option' conftest.err ||
5063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5064 am_cv_CC_dependencies_compiler_type=$depmode
5065 break
5066 fi
5067 fi
5068 done
5069
5070 cd ..
5071 rm -rf conftest.dir
5072 else
5073 am_cv_CC_dependencies_compiler_type=none
5074 fi
5075
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5078 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5080
5081 if
5082 test "x$enable_dependency_tracking" != xno \
5083 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5084 am__fastdepCC_TRUE=
5085 am__fastdepCC_FALSE='#'
5086 else
5087 am__fastdepCC_TRUE='#'
5088 am__fastdepCC_FALSE=
5089 fi
5090
5091
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5099 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5100 # On Suns, sometimes $CPP names a directory.
5101 if test -n "$CPP" && test -d "$CPP"; then
5102 CPP=
5103 fi
5104 if test -z "$CPP"; then
5105 if ${ac_cv_prog_CPP+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 # Double quotes because CPP needs to be expanded
5109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5110 do
5111 ac_preproc_ok=false
5112 for ac_c_preproc_warn_flag in '' yes
5113 do
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 @%:@ifdef __STDC__
5123 @%:@ include <limits.h>
5124 @%:@else
5125 @%:@ include <assert.h>
5126 @%:@endif
5127 Syntax error
5128 _ACEOF
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5130
5131 else
5132 # Broken: fails on valid input.
5133 continue
5134 fi
5135 rm -f conftest.err conftest.i conftest.$ac_ext
5136
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 @%:@include <ac_nonexistent.h>
5142 _ACEOF
5143 if ac_fn_c_try_cpp "$LINENO"; then :
5144 # Broken: success on invalid input.
5145 continue
5146 else
5147 # Passes both tests.
5148 ac_preproc_ok=:
5149 break
5150 fi
5151 rm -f conftest.err conftest.i conftest.$ac_ext
5152
5153 done
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.i conftest.err conftest.$ac_ext
5156 if $ac_preproc_ok; then :
5157 break
5158 fi
5159
5160 done
5161 ac_cv_prog_CPP=$CPP
5162
5163 fi
5164 CPP=$ac_cv_prog_CPP
5165 else
5166 ac_cv_prog_CPP=$CPP
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5169 $as_echo "$CPP" >&6; }
5170 ac_preproc_ok=false
5171 for ac_c_preproc_warn_flag in '' yes
5172 do
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 @%:@ifdef __STDC__
5182 @%:@ include <limits.h>
5183 @%:@else
5184 @%:@ include <assert.h>
5185 @%:@endif
5186 Syntax error
5187 _ACEOF
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5189
5190 else
5191 # Broken: fails on valid input.
5192 continue
5193 fi
5194 rm -f conftest.err conftest.i conftest.$ac_ext
5195
5196 # OK, works on sane cases. Now check whether nonexistent headers
5197 # can be detected and how.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 @%:@include <ac_nonexistent.h>
5201 _ACEOF
5202 if ac_fn_c_try_cpp "$LINENO"; then :
5203 # Broken: success on invalid input.
5204 continue
5205 else
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5209 fi
5210 rm -f conftest.err conftest.i conftest.$ac_ext
5211
5212 done
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.i conftest.err conftest.$ac_ext
5215 if $ac_preproc_ok; then :
5216
5217 else
5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5221 See \`config.log' for more details" "$LINENO" 5; }
5222 fi
5223
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5233 if ${ac_cv_path_GREP+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -z "$GREP"; then
5237 ac_path_GREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_GREP" || continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250 case `"$ac_path_GREP" --version 2>&1` in
5251 *GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253 *)
5254 ac_count=0
5255 $as_echo_n 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5275
5276 $ac_path_GREP_found && break 3
5277 done
5278 done
5279 done
5280 IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_GREP"; then
5282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 fi
5284 else
5285 ac_cv_path_GREP=$GREP
5286 fi
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5290 $as_echo "$ac_cv_path_GREP" >&6; }
5291 GREP="$ac_cv_path_GREP"
5292
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5295 $as_echo_n "checking for egrep... " >&6; }
5296 if ${ac_cv_path_EGREP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5300 then ac_cv_path_EGREP="$GREP -E"
5301 else
5302 if test -z "$EGREP"; then
5303 ac_path_EGREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in egrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_EGREP" || continue
5314 # Check for GNU ac_path_EGREP and select it if it is found.
5315 # Check for GNU $ac_path_EGREP
5316 case `"$ac_path_EGREP" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5319 *)
5320 ac_count=0
5321 $as_echo_n 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'EGREP' >> "conftest.nl"
5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_EGREP="$ac_path_EGREP"
5334 ac_path_EGREP_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5341
5342 $ac_path_EGREP_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_EGREP"; then
5348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 fi
5350 else
5351 ac_cv_path_EGREP=$EGREP
5352 fi
5353
5354 fi
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5357 $as_echo "$ac_cv_path_EGREP" >&6; }
5358 EGREP="$ac_cv_path_EGREP"
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5362 $as_echo_n "checking for ANSI C header files... " >&6; }
5363 if ${ac_cv_header_stdc+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5369 #include <stdarg.h>
5370 #include <string.h>
5371 #include <float.h>
5372
5373 int
5374 main ()
5375 {
5376
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_header_stdc=yes
5383 else
5384 ac_cv_header_stdc=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387
5388 if test $ac_cv_header_stdc = yes; then
5389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #include <string.h>
5393
5394 _ACEOF
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 $EGREP "memchr" >/dev/null 2>&1; then :
5397
5398 else
5399 ac_cv_header_stdc=no
5400 fi
5401 rm -f conftest*
5402
5403 fi
5404
5405 if test $ac_cv_header_stdc = yes; then
5406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <stdlib.h>
5410
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "free" >/dev/null 2>&1; then :
5414
5415 else
5416 ac_cv_header_stdc=no
5417 fi
5418 rm -f conftest*
5419
5420 fi
5421
5422 if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5424 if test "$cross_compiling" = yes; then :
5425 :
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ctype.h>
5430 #include <stdlib.h>
5431 #if ((' ' & 0x0FF) == 0x020)
5432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 #else
5435 # define ISLOWER(c) \
5436 (('a' <= (c) && (c) <= 'i') \
5437 || ('j' <= (c) && (c) <= 'r') \
5438 || ('s' <= (c) && (c) <= 'z'))
5439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5440 #endif
5441
5442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5443 int
5444 main ()
5445 {
5446 int i;
5447 for (i = 0; i < 256; i++)
5448 if (XOR (islower (i), ISLOWER (i))
5449 || toupper (i) != TOUPPER (i))
5450 return 2;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_run "$LINENO"; then :
5455
5456 else
5457 ac_cv_header_stdc=no
5458 fi
5459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5460 conftest.$ac_objext conftest.beam conftest.$ac_ext
5461 fi
5462
5463 fi
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5466 $as_echo "$ac_cv_header_stdc" >&6; }
5467 if test $ac_cv_header_stdc = yes; then
5468
5469 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5470
5471 fi
5472
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5475 inttypes.h stdint.h unistd.h
5476 do :
5477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5479 "
5480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5481 cat >>confdefs.h <<_ACEOF
5482 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 _ACEOF
5484
5485 fi
5486
5487 done
5488
5489
5490
5491 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5492 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5493 MINIX=yes
5494 else
5495 MINIX=
5496 fi
5497
5498
5499 if test "$MINIX" = yes; then
5500
5501 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
5502
5503
5504 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
5505
5506
5507 $as_echo "@%:@define _MINIX 1" >>confdefs.h
5508
5509 fi
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5513 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5514 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519
5520 # define __EXTENSIONS__ 1
5521 $ac_includes_default
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"; then :
5531 ac_cv_safe_to_define___extensions__=yes
5532 else
5533 ac_cv_safe_to_define___extensions__=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5538 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5539 test $ac_cv_safe_to_define___extensions__ = yes &&
5540 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
5541
5542 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
5543
5544 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
5545
5546 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5547
5548 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
5549
5550
5551
5552 ac_ext=m
5553 ac_cpp='$OBJCPP $CPPFLAGS'
5554 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog in gcc objcc objc cc CC
5559 do
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_OBJC+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$OBJC"; then
5568 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 OBJC=$ac_cv_prog_OBJC
5588 if test -n "$OBJC"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
5590 $as_echo "$OBJC" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597 test -n "$OBJC" && break
5598 done
5599 fi
5600 if test -z "$OBJC"; then
5601 ac_ct_OBJC=$OBJC
5602 for ac_prog in gcc objcc objc cc CC
5603 do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_OBJC"; then
5612 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5632 if test -n "$ac_ct_OBJC"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
5634 $as_echo "$ac_ct_OBJC" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 test -n "$ac_ct_OBJC" && break
5642 done
5643
5644 if test "x$ac_ct_OBJC" = x; then
5645 OBJC="gcc"
5646 else
5647 case $cross_compiling:$ac_tool_warned in
5648 yes:)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned=yes ;;
5652 esac
5653 OBJC=$ac_ct_OBJC
5654 fi
5655 fi
5656
5657 # Provide some information about the compiler.
5658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
5659 set X $ac_compile
5660 ac_compiler=$2
5661 for ac_option in --version -v -V -qversion; do
5662 { { ac_try="$ac_compiler $ac_option >&5"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5670 ac_status=$?
5671 if test -s conftest.err; then
5672 sed '10a\
5673 ... rest of stderr output deleted ...
5674 10q' conftest.err >conftest.er1
5675 cat conftest.er1 >&5
5676 fi
5677 rm -f conftest.er1 conftest.err
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }
5680 done
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
5683 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5684 if ${ac_cv_objc_compiler_gnu+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689
5690 int
5691 main ()
5692 {
5693 #ifndef __GNUC__
5694 choke me
5695 #endif
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_objc_try_compile "$LINENO"; then :
5702 ac_compiler_gnu=yes
5703 else
5704 ac_compiler_gnu=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
5711 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5712 if test $ac_compiler_gnu = yes; then
5713 GOBJC=yes
5714 else
5715 GOBJC=
5716 fi
5717 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5718 ac_save_OBJCFLAGS=$OBJCFLAGS
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
5720 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5721 if ${ac_cv_prog_objc_g+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 ac_save_objc_werror_flag=$ac_objc_werror_flag
5725 ac_objc_werror_flag=yes
5726 ac_cv_prog_objc_g=no
5727 OBJCFLAGS="-g"
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730
5731 int
5732 main ()
5733 {
5734
5735 ;
5736 return 0;
5737 }
5738 _ACEOF
5739 if ac_fn_objc_try_compile "$LINENO"; then :
5740 ac_cv_prog_objc_g=yes
5741 else
5742 OBJCFLAGS=""
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745
5746 int
5747 main ()
5748 {
5749
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_objc_try_compile "$LINENO"; then :
5755
5756 else
5757 ac_objc_werror_flag=$ac_save_objc_werror_flag
5758 OBJCFLAGS="-g"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_objc_try_compile "$LINENO"; then :
5771 ac_cv_prog_objc_g=yes
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 ac_objc_werror_flag=$ac_save_objc_werror_flag
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
5781 $as_echo "$ac_cv_prog_objc_g" >&6; }
5782 if test "$ac_test_OBJCFLAGS" = set; then
5783 OBJCFLAGS=$ac_save_OBJCFLAGS
5784 elif test $ac_cv_prog_objc_g = yes; then
5785 if test "$GOBJC" = yes; then
5786 OBJCFLAGS="-g -O2"
5787 else
5788 OBJCFLAGS="-g"
5789 fi
5790 else
5791 if test "$GOBJC" = yes; then
5792 OBJCFLAGS="-O2"
5793 else
5794 OBJCFLAGS=
5795 fi
5796 fi
5797 ac_ext=c
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803 depcc="$OBJC" am_compiler_list='gcc3 gcc'
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5806 $as_echo_n "checking dependency style of $depcc... " >&6; }
5807 if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5811 # We make a subdir and do the tests there. Otherwise we can end up
5812 # making bogus files that we don't know about and never remove. For
5813 # instance it was reported that on HP-UX the gcc test will end up
5814 # making a dummy file named `D' -- because `-MD' means `put the output
5815 # in D'.
5816 mkdir conftest.dir
5817 # Copy depcomp to subdir because otherwise we won't find it if we're
5818 # using a relative directory.
5819 cp "$am_depcomp" conftest.dir
5820 cd conftest.dir
5821 # We will build objects and dependencies in a subdirectory because
5822 # it helps to detect inapplicable dependency modes. For instance
5823 # both Tru64's cc and ICC support -MD to output dependencies as a
5824 # side effect of compilation, but ICC will put the dependencies in
5825 # the current directory while Tru64 will put them in the object
5826 # directory.
5827 mkdir sub
5828
5829 am_cv_OBJC_dependencies_compiler_type=none
5830 if test "$am_compiler_list" = ""; then
5831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5832 fi
5833 am__universal=false
5834
5835
5836 for depmode in $am_compiler_list; do
5837 # Setup a source with many dependencies, because some compilers
5838 # like to wrap large dependency lists on column 80 (with \), and
5839 # we should not choose a depcomp mode which is confused by this.
5840 #
5841 # We need to recreate these files for each test, as the compiler may
5842 # overwrite some of them when testing with obscure command lines.
5843 # This happens at least with the AIX C compiler.
5844 : > sub/conftest.c
5845 for i in 1 2 3 4 5 6; do
5846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5848 # Solaris 8's {/usr,}/bin/sh.
5849 touch sub/conftst$i.h
5850 done
5851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5852
5853 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5854 # mode. It turns out that the SunPro C++ compiler does not properly
5855 # handle `-M -o', and we need to detect this. Also, some Intel
5856 # versions had trouble with output in subdirs
5857 am__obj=sub/conftest.${OBJEXT-o}
5858 am__minus_obj="-o $am__obj"
5859 case $depmode in
5860 gcc)
5861 # This depmode causes a compiler race in universal mode.
5862 test "$am__universal" = false || continue
5863 ;;
5864 nosideeffect)
5865 # after this tag, mechanisms are not by side-effect, so they'll
5866 # only be used when explicitly requested
5867 if test "x$enable_dependency_tracking" = xyes; then
5868 continue
5869 else
5870 break
5871 fi
5872 ;;
5873 msvisualcpp | msvcmsys)
5874 # This compiler won't grok `-c -o', but also, the minuso test has
5875 # not run yet. These depmodes are late enough in the game, and
5876 # so weak that their functioning should not be impacted.
5877 am__obj=conftest.${OBJEXT-o}
5878 am__minus_obj=
5879 ;;
5880 none) break ;;
5881 esac
5882 if depmode=$depmode \
5883 source=sub/conftest.c object=$am__obj \
5884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5886 >/dev/null 2>conftest.err &&
5887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5891 # icc doesn't choke on unknown options, it will just issue warnings
5892 # or remarks (even with -Werror). So we grep stderr for any message
5893 # that says an option was ignored or not supported.
5894 # When given -MP, icc 7.0 and 7.1 complain thusly:
5895 # icc: Command line warning: ignoring option '-M'; no argument required
5896 # The diagnosis changed in icc 8.0:
5897 # icc: Command line remark: option '-MP' not supported
5898 if (grep 'ignoring option' conftest.err ||
5899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5900 am_cv_OBJC_dependencies_compiler_type=$depmode
5901 break
5902 fi
5903 fi
5904 done
5905
5906 cd ..
5907 rm -rf conftest.dir
5908 else
5909 am_cv_OBJC_dependencies_compiler_type=none
5910 fi
5911
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
5914 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
5915 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
5916
5917 if
5918 test "x$enable_dependency_tracking" != xno \
5919 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
5920 am__fastdepOBJC_TRUE=
5921 am__fastdepOBJC_FALSE='#'
5922 else
5923 am__fastdepOBJC_TRUE='#'
5924 am__fastdepOBJC_FALSE=
5925 fi
5926
5927
5928 ac_ext=c
5929 ac_cpp='$CPP $CPPFLAGS'
5930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933 if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_CC+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$CC"; then
5942 ac_cv_prog_CC="$CC" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 CC=$ac_cv_prog_CC
5962 if test -n "$CC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5964 $as_echo "$CC" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971 fi
5972 if test -z "$ac_cv_prog_CC"; then
5973 ac_ct_CC=$CC
5974 # Extract the first word of "gcc", so it can be a program name with args.
5975 set dummy gcc; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$ac_ct_CC"; then
5982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_ac_ct_CC="gcc"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6002 if test -n "$ac_ct_CC"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6004 $as_echo "$ac_ct_CC" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010 if test "x$ac_ct_CC" = x; then
6011 CC=""
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014 yes:)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017 ac_tool_warned=yes ;;
6018 esac
6019 CC=$ac_ct_CC
6020 fi
6021 else
6022 CC="$ac_cv_prog_CC"
6023 fi
6024
6025 if test -z "$CC"; then
6026 if test -n "$ac_tool_prefix"; then
6027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6028 set dummy ${ac_tool_prefix}cc; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_CC+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC="$CC" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_CC="${ac_tool_prefix}cc"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 CC=$ac_cv_prog_CC
6055 if test -n "$CC"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6057 $as_echo "$CC" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064 fi
6065 fi
6066 if test -z "$CC"; then
6067 # Extract the first word of "cc", so it can be a program name with args.
6068 set dummy cc; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_CC+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$CC"; then
6075 ac_cv_prog_CC="$CC" # Let the user override the test.
6076 else
6077 ac_prog_rejected=no
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6086 ac_prog_rejected=yes
6087 continue
6088 fi
6089 ac_cv_prog_CC="cc"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 if test $ac_prog_rejected = yes; then
6098 # We found a bogon in the path, so make sure we never use it.
6099 set dummy $ac_cv_prog_CC
6100 shift
6101 if test $@%:@ != 0; then
6102 # We chose a different compiler from the bogus one.
6103 # However, it has the same basename, so the bogon will be chosen
6104 # first if we set CC to just the basename; use the full file name.
6105 shift
6106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6107 fi
6108 fi
6109 fi
6110 fi
6111 CC=$ac_cv_prog_CC
6112 if test -n "$CC"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6114 $as_echo "$CC" >&6; }
6115 else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120
6121 fi
6122 if test -z "$CC"; then
6123 if test -n "$ac_tool_prefix"; then
6124 for ac_prog in cl.exe
6125 do
6126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if ${ac_cv_prog_CC+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if test -n "$CC"; then
6134 ac_cv_prog_CC="$CC" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 CC=$ac_cv_prog_CC
6154 if test -n "$CC"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6156 $as_echo "$CC" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162
6163 test -n "$CC" && break
6164 done
6165 fi
6166 if test -z "$CC"; then
6167 ac_ct_CC=$CC
6168 for ac_prog in cl.exe
6169 do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if test -n "$ac_ct_CC"; then
6178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_CC="$ac_prog"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6198 if test -n "$ac_ct_CC"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6200 $as_echo "$ac_ct_CC" >&6; }
6201 else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206
6207 test -n "$ac_ct_CC" && break
6208 done
6209
6210 if test "x$ac_ct_CC" = x; then
6211 CC=""
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217 ac_tool_warned=yes ;;
6218 esac
6219 CC=$ac_ct_CC
6220 fi
6221 fi
6222
6223 fi
6224
6225
6226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6228 as_fn_error $? "no acceptable C compiler found in \$PATH
6229 See \`config.log' for more details" "$LINENO" 5; }
6230
6231 # Provide some information about the compiler.
6232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6233 set X $ac_compile
6234 ac_compiler=$2
6235 for ac_option in --version -v -V -qversion; do
6236 { { ac_try="$ac_compiler $ac_option >&5"
6237 case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240 esac
6241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6242 $as_echo "$ac_try_echo"; } >&5
6243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6244 ac_status=$?
6245 if test -s conftest.err; then
6246 sed '10a\
6247 ... rest of stderr output deleted ...
6248 10q' conftest.err >conftest.er1
6249 cat conftest.er1 >&5
6250 fi
6251 rm -f conftest.er1 conftest.err
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }
6254 done
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6257 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6258 if ${ac_cv_c_compiler_gnu+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263
6264 int
6265 main ()
6266 {
6267 #ifndef __GNUC__
6268 choke me
6269 #endif
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_c_try_compile "$LINENO"; then :
6276 ac_compiler_gnu=yes
6277 else
6278 ac_compiler_gnu=no
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6285 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6286 if test $ac_compiler_gnu = yes; then
6287 GCC=yes
6288 else
6289 GCC=
6290 fi
6291 ac_test_CFLAGS=${CFLAGS+set}
6292 ac_save_CFLAGS=$CFLAGS
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6294 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6295 if ${ac_cv_prog_cc_g+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 ac_save_c_werror_flag=$ac_c_werror_flag
6299 ac_c_werror_flag=yes
6300 ac_cv_prog_cc_g=no
6301 CFLAGS="-g"
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304
6305 int
6306 main ()
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 ac_cv_prog_cc_g=yes
6315 else
6316 CFLAGS=""
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319
6320 int
6321 main ()
6322 {
6323
6324 ;
6325 return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329
6330 else
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6332 CFLAGS="-g"
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335
6336 int
6337 main ()
6338 {
6339
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 ac_cv_prog_cc_g=yes
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 ac_c_werror_flag=$ac_save_c_werror_flag
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6355 $as_echo "$ac_cv_prog_cc_g" >&6; }
6356 if test "$ac_test_CFLAGS" = set; then
6357 CFLAGS=$ac_save_CFLAGS
6358 elif test $ac_cv_prog_cc_g = yes; then
6359 if test "$GCC" = yes; then
6360 CFLAGS="-g -O2"
6361 else
6362 CFLAGS="-g"
6363 fi
6364 else
6365 if test "$GCC" = yes; then
6366 CFLAGS="-O2"
6367 else
6368 CFLAGS=
6369 fi
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6372 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6373 if ${ac_cv_prog_cc_c89+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 ac_cv_prog_cc_c89=no
6377 ac_save_CC=$CC
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <stdarg.h>
6381 #include <stdio.h>
6382 struct stat;
6383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6384 struct buf { int x; };
6385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6386 static char *e (p, i)
6387 char **p;
6388 int i;
6389 {
6390 return p[i];
6391 }
6392 static char *f (char * (*g) (char **, int), char **p, ...)
6393 {
6394 char *s;
6395 va_list v;
6396 va_start (v,p);
6397 s = g (p, va_arg (v,int));
6398 va_end (v);
6399 return s;
6400 }
6401
6402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6403 function prototypes and stuff, but not '\xHH' hex character constants.
6404 These don't provoke an error unfortunately, instead are silently treated
6405 as 'x'. The following induces an error, until -std is added to get
6406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6407 array size at least. It's necessary to write '\x00'==0 to get something
6408 that's true only with -std. */
6409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6410
6411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6412 inside strings and character constants. */
6413 #define FOO(x) 'x'
6414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6415
6416 int test (int i, double x);
6417 struct s1 {int (*f) (int a);};
6418 struct s2 {int (*f) (double a);};
6419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6420 int argc;
6421 char **argv;
6422 int
6423 main ()
6424 {
6425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6432 do
6433 CC="$ac_save_CC $ac_arg"
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 ac_cv_prog_cc_c89=$ac_arg
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext
6438 test "x$ac_cv_prog_cc_c89" != "xno" && break
6439 done
6440 rm -f conftest.$ac_ext
6441 CC=$ac_save_CC
6442
6443 fi
6444 # AC_CACHE_VAL
6445 case "x$ac_cv_prog_cc_c89" in
6446 x)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6448 $as_echo "none needed" >&6; } ;;
6449 xno)
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6451 $as_echo "unsupported" >&6; } ;;
6452 *)
6453 CC="$CC $ac_cv_prog_cc_c89"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6455 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6456 esac
6457 if test "x$ac_cv_prog_cc_c89" != xno; then :
6458
6459 fi
6460
6461 ac_ext=c
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
6467 depcc="$CC" am_compiler_list=
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6470 $as_echo_n "checking dependency style of $depcc... " >&6; }
6471 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6475 # We make a subdir and do the tests there. Otherwise we can end up
6476 # making bogus files that we don't know about and never remove. For
6477 # instance it was reported that on HP-UX the gcc test will end up
6478 # making a dummy file named `D' -- because `-MD' means `put the output
6479 # in D'.
6480 mkdir conftest.dir
6481 # Copy depcomp to subdir because otherwise we won't find it if we're
6482 # using a relative directory.
6483 cp "$am_depcomp" conftest.dir
6484 cd conftest.dir
6485 # We will build objects and dependencies in a subdirectory because
6486 # it helps to detect inapplicable dependency modes. For instance
6487 # both Tru64's cc and ICC support -MD to output dependencies as a
6488 # side effect of compilation, but ICC will put the dependencies in
6489 # the current directory while Tru64 will put them in the object
6490 # directory.
6491 mkdir sub
6492
6493 am_cv_CC_dependencies_compiler_type=none
6494 if test "$am_compiler_list" = ""; then
6495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6496 fi
6497 am__universal=false
6498 case " $depcc " in #(
6499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6500 esac
6501
6502 for depmode in $am_compiler_list; do
6503 # Setup a source with many dependencies, because some compilers
6504 # like to wrap large dependency lists on column 80 (with \), and
6505 # we should not choose a depcomp mode which is confused by this.
6506 #
6507 # We need to recreate these files for each test, as the compiler may
6508 # overwrite some of them when testing with obscure command lines.
6509 # This happens at least with the AIX C compiler.
6510 : > sub/conftest.c
6511 for i in 1 2 3 4 5 6; do
6512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6514 # Solaris 8's {/usr,}/bin/sh.
6515 touch sub/conftst$i.h
6516 done
6517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6518
6519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6520 # mode. It turns out that the SunPro C++ compiler does not properly
6521 # handle `-M -o', and we need to detect this. Also, some Intel
6522 # versions had trouble with output in subdirs
6523 am__obj=sub/conftest.${OBJEXT-o}
6524 am__minus_obj="-o $am__obj"
6525 case $depmode in
6526 gcc)
6527 # This depmode causes a compiler race in universal mode.
6528 test "$am__universal" = false || continue
6529 ;;
6530 nosideeffect)
6531 # after this tag, mechanisms are not by side-effect, so they'll
6532 # only be used when explicitly requested
6533 if test "x$enable_dependency_tracking" = xyes; then
6534 continue
6535 else
6536 break
6537 fi
6538 ;;
6539 msvisualcpp | msvcmsys)
6540 # This compiler won't grok `-c -o', but also, the minuso test has
6541 # not run yet. These depmodes are late enough in the game, and
6542 # so weak that their functioning should not be impacted.
6543 am__obj=conftest.${OBJEXT-o}
6544 am__minus_obj=
6545 ;;
6546 none) break ;;
6547 esac
6548 if depmode=$depmode \
6549 source=sub/conftest.c object=$am__obj \
6550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6552 >/dev/null 2>conftest.err &&
6553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6557 # icc doesn't choke on unknown options, it will just issue warnings
6558 # or remarks (even with -Werror). So we grep stderr for any message
6559 # that says an option was ignored or not supported.
6560 # When given -MP, icc 7.0 and 7.1 complain thusly:
6561 # icc: Command line warning: ignoring option '-M'; no argument required
6562 # The diagnosis changed in icc 8.0:
6563 # icc: Command line remark: option '-MP' not supported
6564 if (grep 'ignoring option' conftest.err ||
6565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6566 am_cv_CC_dependencies_compiler_type=$depmode
6567 break
6568 fi
6569 fi
6570 done
6571
6572 cd ..
6573 rm -rf conftest.dir
6574 else
6575 am_cv_CC_dependencies_compiler_type=none
6576 fi
6577
6578 fi
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6582
6583 if
6584 test "x$enable_dependency_tracking" != xno \
6585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6586 am__fastdepCC_TRUE=
6587 am__fastdepCC_FALSE='#'
6588 else
6589 am__fastdepCC_TRUE='#'
6590 am__fastdepCC_FALSE=
6591 fi
6592
6593
6594 ac_ext=m
6595 ac_cpp='$OBJCPP $CPPFLAGS'
6596 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6599 if test -n "$ac_tool_prefix"; then
6600 for ac_prog in gcc objcc objc cc CC
6601 do
6602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_OBJC+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if test -n "$OBJC"; then
6610 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 OBJC=$ac_cv_prog_OBJC
6630 if test -n "$OBJC"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
6632 $as_echo "$OBJC" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638
6639 test -n "$OBJC" && break
6640 done
6641 fi
6642 if test -z "$OBJC"; then
6643 ac_ct_OBJC=$OBJC
6644 for ac_prog in gcc objcc objc cc CC
6645 do
6646 # Extract the first word of "$ac_prog", so it can be a program name with args.
6647 set dummy $ac_prog; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test -n "$ac_ct_OBJC"; then
6654 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6674 if test -n "$ac_ct_OBJC"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
6676 $as_echo "$ac_ct_OBJC" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681
6682
6683 test -n "$ac_ct_OBJC" && break
6684 done
6685
6686 if test "x$ac_ct_OBJC" = x; then
6687 OBJC="gcc"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695 OBJC=$ac_ct_OBJC
6696 fi
6697 fi
6698
6699 # Provide some information about the compiler.
6700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
6701 set X $ac_compile
6702 ac_compiler=$2
6703 for ac_option in --version -v -V -qversion; do
6704 { { ac_try="$ac_compiler $ac_option >&5"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6710 $as_echo "$ac_try_echo"; } >&5
6711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6712 ac_status=$?
6713 if test -s conftest.err; then
6714 sed '10a\
6715 ... rest of stderr output deleted ...
6716 10q' conftest.err >conftest.er1
6717 cat conftest.er1 >&5
6718 fi
6719 rm -f conftest.er1 conftest.err
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }
6722 done
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
6725 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
6726 if ${ac_cv_objc_compiler_gnu+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731
6732 int
6733 main ()
6734 {
6735 #ifndef __GNUC__
6736 choke me
6737 #endif
6738
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 if ac_fn_objc_try_compile "$LINENO"; then :
6744 ac_compiler_gnu=yes
6745 else
6746 ac_compiler_gnu=no
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
6753 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
6754 if test $ac_compiler_gnu = yes; then
6755 GOBJC=yes
6756 else
6757 GOBJC=
6758 fi
6759 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
6760 ac_save_OBJCFLAGS=$OBJCFLAGS
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
6762 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
6763 if ${ac_cv_prog_objc_g+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 ac_save_objc_werror_flag=$ac_objc_werror_flag
6767 ac_objc_werror_flag=yes
6768 ac_cv_prog_objc_g=no
6769 OBJCFLAGS="-g"
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772
6773 int
6774 main ()
6775 {
6776
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_objc_try_compile "$LINENO"; then :
6782 ac_cv_prog_objc_g=yes
6783 else
6784 OBJCFLAGS=""
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787
6788 int
6789 main ()
6790 {
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_objc_try_compile "$LINENO"; then :
6797
6798 else
6799 ac_objc_werror_flag=$ac_save_objc_werror_flag
6800 OBJCFLAGS="-g"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_objc_try_compile "$LINENO"; then :
6813 ac_cv_prog_objc_g=yes
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_objc_werror_flag=$ac_save_objc_werror_flag
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
6823 $as_echo "$ac_cv_prog_objc_g" >&6; }
6824 if test "$ac_test_OBJCFLAGS" = set; then
6825 OBJCFLAGS=$ac_save_OBJCFLAGS
6826 elif test $ac_cv_prog_objc_g = yes; then
6827 if test "$GOBJC" = yes; then
6828 OBJCFLAGS="-g -O2"
6829 else
6830 OBJCFLAGS="-g"
6831 fi
6832 else
6833 if test "$GOBJC" = yes; then
6834 OBJCFLAGS="-O2"
6835 else
6836 OBJCFLAGS=
6837 fi
6838 fi
6839 ac_ext=c
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6848 $as_echo_n "checking dependency style of $depcc... " >&6; }
6849 if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6853 # We make a subdir and do the tests there. Otherwise we can end up
6854 # making bogus files that we don't know about and never remove. For
6855 # instance it was reported that on HP-UX the gcc test will end up
6856 # making a dummy file named `D' -- because `-MD' means `put the output
6857 # in D'.
6858 mkdir conftest.dir
6859 # Copy depcomp to subdir because otherwise we won't find it if we're
6860 # using a relative directory.
6861 cp "$am_depcomp" conftest.dir
6862 cd conftest.dir
6863 # We will build objects and dependencies in a subdirectory because
6864 # it helps to detect inapplicable dependency modes. For instance
6865 # both Tru64's cc and ICC support -MD to output dependencies as a
6866 # side effect of compilation, but ICC will put the dependencies in
6867 # the current directory while Tru64 will put them in the object
6868 # directory.
6869 mkdir sub
6870
6871 am_cv_OBJC_dependencies_compiler_type=none
6872 if test "$am_compiler_list" = ""; then
6873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6874 fi
6875 am__universal=false
6876
6877
6878 for depmode in $am_compiler_list; do
6879 # Setup a source with many dependencies, because some compilers
6880 # like to wrap large dependency lists on column 80 (with \), and
6881 # we should not choose a depcomp mode which is confused by this.
6882 #
6883 # We need to recreate these files for each test, as the compiler may
6884 # overwrite some of them when testing with obscure command lines.
6885 # This happens at least with the AIX C compiler.
6886 : > sub/conftest.c
6887 for i in 1 2 3 4 5 6; do
6888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6889 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6890 # Solaris 8's {/usr,}/bin/sh.
6891 touch sub/conftst$i.h
6892 done
6893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6894
6895 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6896 # mode. It turns out that the SunPro C++ compiler does not properly
6897 # handle `-M -o', and we need to detect this. Also, some Intel
6898 # versions had trouble with output in subdirs
6899 am__obj=sub/conftest.${OBJEXT-o}
6900 am__minus_obj="-o $am__obj"
6901 case $depmode in
6902 gcc)
6903 # This depmode causes a compiler race in universal mode.
6904 test "$am__universal" = false || continue
6905 ;;
6906 nosideeffect)
6907 # after this tag, mechanisms are not by side-effect, so they'll
6908 # only be used when explicitly requested
6909 if test "x$enable_dependency_tracking" = xyes; then
6910 continue
6911 else
6912 break
6913 fi
6914 ;;
6915 msvisualcpp | msvcmsys)
6916 # This compiler won't grok `-c -o', but also, the minuso test has
6917 # not run yet. These depmodes are late enough in the game, and
6918 # so weak that their functioning should not be impacted.
6919 am__obj=conftest.${OBJEXT-o}
6920 am__minus_obj=
6921 ;;
6922 none) break ;;
6923 esac
6924 if depmode=$depmode \
6925 source=sub/conftest.c object=$am__obj \
6926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6928 >/dev/null 2>conftest.err &&
6929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6933 # icc doesn't choke on unknown options, it will just issue warnings
6934 # or remarks (even with -Werror). So we grep stderr for any message
6935 # that says an option was ignored or not supported.
6936 # When given -MP, icc 7.0 and 7.1 complain thusly:
6937 # icc: Command line warning: ignoring option '-M'; no argument required
6938 # The diagnosis changed in icc 8.0:
6939 # icc: Command line remark: option '-MP' not supported
6940 if (grep 'ignoring option' conftest.err ||
6941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6942 am_cv_OBJC_dependencies_compiler_type=$depmode
6943 break
6944 fi
6945 fi
6946 done
6947
6948 cd ..
6949 rm -rf conftest.dir
6950 else
6951 am_cv_OBJC_dependencies_compiler_type=none
6952 fi
6953
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
6956 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
6957 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
6958
6959 if
6960 test "x$enable_dependency_tracking" != xno \
6961 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
6962 am__fastdepOBJC_TRUE=
6963 am__fastdepOBJC_FALSE='#'
6964 else
6965 am__fastdepOBJC_TRUE='#'
6966 am__fastdepOBJC_FALSE=
6967 fi
6968
6969
6970
6971
6972 if eval "test x`uname` = xDarwin"; then
6973 CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
6974 fi
6975 if eval "test x$GCC = xyes"; then
6976 CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
6977 fi
6978 if test "x$CC" != xcc; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6980 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6983 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6984 fi
6985 set dummy $CC; ac_cc=`$as_echo "$2" |
6986 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6987 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992
6993 int
6994 main ()
6995 {
6996
6997 ;
6998 return 0;
6999 }
7000 _ACEOF
7001 # Make sure it works both with $CC and with simple cc.
7002 # We do the test twice because some compilers refuse to overwrite an
7003 # existing .o file with -o, though they will create one.
7004 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7005 rm -f conftest2.*
7006 if { { case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009 esac
7010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7011 $as_echo "$ac_try_echo"; } >&5
7012 (eval "$ac_try") 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; } &&
7016 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7021 $as_echo "$ac_try_echo"; } >&5
7022 (eval "$ac_try") 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; };
7026 then
7027 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7028 if test "x$CC" != xcc; then
7029 # Test first that cc exists at all.
7030 if { ac_try='cc -c conftest.$ac_ext >&5'
7031 { { case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034 esac
7035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7036 $as_echo "$ac_try_echo"; } >&5
7037 (eval "$ac_try") 2>&5
7038 ac_status=$?
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }; }; then
7041 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7042 rm -f conftest2.*
7043 if { { case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7048 $as_echo "$ac_try_echo"; } >&5
7049 (eval "$ac_try") 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; } &&
7053 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7058 $as_echo "$ac_try_echo"; } >&5
7059 (eval "$ac_try") 2>&5
7060 ac_status=$?
7061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062 test $ac_status = 0; };
7063 then
7064 # cc works too.
7065 :
7066 else
7067 # cc exists but doesn't like -o.
7068 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7069 fi
7070 fi
7071 fi
7072 else
7073 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7074 fi
7075 rm -f core conftest*
7076
7077 fi
7078 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080 $as_echo "yes" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084
7085 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7086
7087 fi
7088
7089 # FIXME: we rely on the cache variable name because
7090 # there is no other way.
7091 set dummy $CC
7092 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7093 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7094 if test "$am_t" != yes; then
7095 # Losing compiler, so override with the script.
7096 # FIXME: It is wrong to rewrite CC.
7097 # But if we don't then we get into trouble of one sort or another.
7098 # A longer-term fix would be to have automake use am__CC in this case,
7099 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7100 CC="$am_aux_dir/compile $CC"
7101 fi
7102
7103
7104
7105 ac_ext=cpp
7106 ac_cpp='$CXXCPP $CPPFLAGS'
7107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7110 if test -z "$CXX"; then
7111 if test -n "$CCC"; then
7112 CXX=$CCC
7113 else
7114 if test -n "$ac_tool_prefix"; then
7115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7116 do
7117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_CXX+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$CXX"; then
7125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 CXX=$ac_cv_prog_CXX
7145 if test -n "$CXX"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7147 $as_echo "$CXX" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 test -n "$CXX" && break
7155 done
7156 fi
7157 if test -z "$CXX"; then
7158 ac_ct_CXX=$CXX
7159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7160 do
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$ac_ct_CXX"; then
7169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_CXX="$ac_prog"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7189 if test -n "$ac_ct_CXX"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7191 $as_echo "$ac_ct_CXX" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 test -n "$ac_ct_CXX" && break
7199 done
7200
7201 if test "x$ac_ct_CXX" = x; then
7202 CXX="g++"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210 CXX=$ac_ct_CXX
7211 fi
7212 fi
7213
7214 fi
7215 fi
7216 # Provide some information about the compiler.
7217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7218 set X $ac_compile
7219 ac_compiler=$2
7220 for ac_option in --version -v -V -qversion; do
7221 { { ac_try="$ac_compiler $ac_option >&5"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7227 $as_echo "$ac_try_echo"; } >&5
7228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7229 ac_status=$?
7230 if test -s conftest.err; then
7231 sed '10a\
7232 ... rest of stderr output deleted ...
7233 10q' conftest.err >conftest.er1
7234 cat conftest.er1 >&5
7235 fi
7236 rm -f conftest.er1 conftest.err
7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; }
7239 done
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7243 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248
7249 int
7250 main ()
7251 {
7252 #ifndef __GNUC__
7253 choke me
7254 #endif
7255
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_cxx_try_compile "$LINENO"; then :
7261 ac_compiler_gnu=yes
7262 else
7263 ac_compiler_gnu=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7267
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7271 if test $ac_compiler_gnu = yes; then
7272 GXX=yes
7273 else
7274 GXX=
7275 fi
7276 ac_test_CXXFLAGS=${CXXFLAGS+set}
7277 ac_save_CXXFLAGS=$CXXFLAGS
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7280 if ${ac_cv_prog_cxx_g+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7284 ac_cxx_werror_flag=yes
7285 ac_cv_prog_cxx_g=no
7286 CXXFLAGS="-g"
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289
7290 int
7291 main ()
7292 {
7293
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 if ac_fn_cxx_try_compile "$LINENO"; then :
7299 ac_cv_prog_cxx_g=yes
7300 else
7301 CXXFLAGS=""
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304
7305 int
7306 main ()
7307 {
7308
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_cxx_try_compile "$LINENO"; then :
7314
7315 else
7316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7317 CXXFLAGS="-g"
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320
7321 int
7322 main ()
7323 {
7324
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 if ac_fn_cxx_try_compile "$LINENO"; then :
7330 ac_cv_prog_cxx_g=yes
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7341 if test "$ac_test_CXXFLAGS" = set; then
7342 CXXFLAGS=$ac_save_CXXFLAGS
7343 elif test $ac_cv_prog_cxx_g = yes; then
7344 if test "$GXX" = yes; then
7345 CXXFLAGS="-g -O2"
7346 else
7347 CXXFLAGS="-g"
7348 fi
7349 else
7350 if test "$GXX" = yes; then
7351 CXXFLAGS="-O2"
7352 else
7353 CXXFLAGS=
7354 fi
7355 fi
7356 ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 depcc="$CXX" am_compiler_list=
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7365 $as_echo_n "checking dependency style of $depcc... " >&6; }
7366 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7370 # We make a subdir and do the tests there. Otherwise we can end up
7371 # making bogus files that we don't know about and never remove. For
7372 # instance it was reported that on HP-UX the gcc test will end up
7373 # making a dummy file named `D' -- because `-MD' means `put the output
7374 # in D'.
7375 mkdir conftest.dir
7376 # Copy depcomp to subdir because otherwise we won't find it if we're
7377 # using a relative directory.
7378 cp "$am_depcomp" conftest.dir
7379 cd conftest.dir
7380 # We will build objects and dependencies in a subdirectory because
7381 # it helps to detect inapplicable dependency modes. For instance
7382 # both Tru64's cc and ICC support -MD to output dependencies as a
7383 # side effect of compilation, but ICC will put the dependencies in
7384 # the current directory while Tru64 will put them in the object
7385 # directory.
7386 mkdir sub
7387
7388 am_cv_CXX_dependencies_compiler_type=none
7389 if test "$am_compiler_list" = ""; then
7390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7391 fi
7392 am__universal=false
7393 case " $depcc " in #(
7394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7395 esac
7396
7397 for depmode in $am_compiler_list; do
7398 # Setup a source with many dependencies, because some compilers
7399 # like to wrap large dependency lists on column 80 (with \), and
7400 # we should not choose a depcomp mode which is confused by this.
7401 #
7402 # We need to recreate these files for each test, as the compiler may
7403 # overwrite some of them when testing with obscure command lines.
7404 # This happens at least with the AIX C compiler.
7405 : > sub/conftest.c
7406 for i in 1 2 3 4 5 6; do
7407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7408 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7409 # Solaris 8's {/usr,}/bin/sh.
7410 touch sub/conftst$i.h
7411 done
7412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7413
7414 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7415 # mode. It turns out that the SunPro C++ compiler does not properly
7416 # handle `-M -o', and we need to detect this. Also, some Intel
7417 # versions had trouble with output in subdirs
7418 am__obj=sub/conftest.${OBJEXT-o}
7419 am__minus_obj="-o $am__obj"
7420 case $depmode in
7421 gcc)
7422 # This depmode causes a compiler race in universal mode.
7423 test "$am__universal" = false || continue
7424 ;;
7425 nosideeffect)
7426 # after this tag, mechanisms are not by side-effect, so they'll
7427 # only be used when explicitly requested
7428 if test "x$enable_dependency_tracking" = xyes; then
7429 continue
7430 else
7431 break
7432 fi
7433 ;;
7434 msvisualcpp | msvcmsys)
7435 # This compiler won't grok `-c -o', but also, the minuso test has
7436 # not run yet. These depmodes are late enough in the game, and
7437 # so weak that their functioning should not be impacted.
7438 am__obj=conftest.${OBJEXT-o}
7439 am__minus_obj=
7440 ;;
7441 none) break ;;
7442 esac
7443 if depmode=$depmode \
7444 source=sub/conftest.c object=$am__obj \
7445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7447 >/dev/null 2>conftest.err &&
7448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7452 # icc doesn't choke on unknown options, it will just issue warnings
7453 # or remarks (even with -Werror). So we grep stderr for any message
7454 # that says an option was ignored or not supported.
7455 # When given -MP, icc 7.0 and 7.1 complain thusly:
7456 # icc: Command line warning: ignoring option '-M'; no argument required
7457 # The diagnosis changed in icc 8.0:
7458 # icc: Command line remark: option '-MP' not supported
7459 if (grep 'ignoring option' conftest.err ||
7460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7461 am_cv_CXX_dependencies_compiler_type=$depmode
7462 break
7463 fi
7464 fi
7465 done
7466
7467 cd ..
7468 rm -rf conftest.dir
7469 else
7470 am_cv_CXX_dependencies_compiler_type=none
7471 fi
7472
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7475 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7476 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7477
7478 if
7479 test "x$enable_dependency_tracking" != xno \
7480 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7481 am__fastdepCXX_TRUE=
7482 am__fastdepCXX_FALSE='#'
7483 else
7484 am__fastdepCXX_TRUE='#'
7485 am__fastdepCXX_FALSE=
7486 fi
7487
7488
7489 if eval "test x$GXX = xyes"; then
7490 CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
7491 fi
7492
7493
7494
7495 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 case $PKG_CONFIG in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7507 ;;
7508 *)
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 ;;
7525 esac
7526 fi
7527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7528 if test -n "$PKG_CONFIG"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7530 $as_echo "$PKG_CONFIG" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536
7537 fi
7538 if test -z "$ac_cv_path_PKG_CONFIG"; then
7539 ac_pt_PKG_CONFIG=$PKG_CONFIG
7540 # Extract the first word of "pkg-config", so it can be a program name with args.
7541 set dummy pkg-config; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 case $ac_pt_PKG_CONFIG in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7550 ;;
7551 *)
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567 ;;
7568 esac
7569 fi
7570 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7571 if test -n "$ac_pt_PKG_CONFIG"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7573 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579 if test "x$ac_pt_PKG_CONFIG" = x; then
7580 PKG_CONFIG=""
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 PKG_CONFIG=$ac_pt_PKG_CONFIG
7589 fi
7590 else
7591 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7592 fi
7593
7594 fi
7595 if test -n "$PKG_CONFIG"; then
7596 _pkg_min_version=0.9.0
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7598 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7599 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 PKG_CONFIG=""
7606 fi
7607
7608 fi
7609 if test -n "$PKG_CONFIG" && \
7610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\""; } >&5
7611 ($PKG_CONFIG --exists --print-errors "") 2>&5
7612 ac_status=$?
7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614 test $ac_status = 0; }; then
7615 :
7616 fi
7617 if test "x${cross_compiling}" = "xyes"; then
7618 samplemap="no";samplemap_reason="not supported for cross compiling"
7619 binding_python="no";binding_python_reason="not supported for cross compiling"
7620 postgresql="no";postgresql_reason="not supported for cross compiling"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C compiler for build tools" >&5
7622 $as_echo_n "checking for a C compiler for build tools... " >&6; }
7623 for ac_prog in gcc cc
7624 do
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$CC_FOR_BUILD"; then
7633 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7653 if test -n "$CC_FOR_BUILD"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7655 $as_echo "$CC_FOR_BUILD" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661
7662 test -n "$CC_FOR_BUILD" && break
7663 done
7664
7665 else
7666 CC_FOR_BUILD=$CC
7667 fi
7668 CCLD_FOR_BUILD="$CC_FOR_BUILD"
7669
7670 if test "x${cross_compiling}" = "xyes"; then
7671 CROSS_COMPILING_TRUE=
7672 CROSS_COMPILING_FALSE='#'
7673 else
7674 CROSS_COMPILING_TRUE='#'
7675 CROSS_COMPILING_FALSE=
7676 fi
7677
7678
7679
7680
7681 # Endianness
7682 # defines WORDS_BIGENDIAN for big-endian systems
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7684 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7685 if ${ac_cv_c_bigendian+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 ac_cv_c_bigendian=unknown
7689 # See if we're dealing with a universal compiler.
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #ifndef __APPLE_CC__
7693 not a universal capable compiler
7694 #endif
7695 typedef int dummy;
7696
7697 _ACEOF
7698 if ac_fn_c_try_compile "$LINENO"; then :
7699
7700 # Check for potential -arch flags. It is not universal unless
7701 # there are at least two -arch flags with different values.
7702 ac_arch=
7703 ac_prev=
7704 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7705 if test -n "$ac_prev"; then
7706 case $ac_word in
7707 i?86 | x86_64 | ppc | ppc64)
7708 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7709 ac_arch=$ac_word
7710 else
7711 ac_cv_c_bigendian=universal
7712 break
7713 fi
7714 ;;
7715 esac
7716 ac_prev=
7717 elif test "x$ac_word" = "x-arch"; then
7718 ac_prev=arch
7719 fi
7720 done
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 if test $ac_cv_c_bigendian = unknown; then
7724 # See if sys/param.h defines the BYTE_ORDER macro.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #include <sys/types.h>
7728 #include <sys/param.h>
7729
7730 int
7731 main ()
7732 {
7733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7734 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7735 && LITTLE_ENDIAN)
7736 bogus endian macros
7737 #endif
7738
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 # It does; now see whether it defined to BIG_ENDIAN or not.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #include <sys/types.h>
7748 #include <sys/param.h>
7749
7750 int
7751 main ()
7752 {
7753 #if BYTE_ORDER != BIG_ENDIAN
7754 not big endian
7755 #endif
7756
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 ac_cv_c_bigendian=yes
7763 else
7764 ac_cv_c_bigendian=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 fi
7770 if test $ac_cv_c_bigendian = unknown; then
7771 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <limits.h>
7775
7776 int
7777 main ()
7778 {
7779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7780 bogus endian macros
7781 #endif
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 # It does; now see whether it defined to _BIG_ENDIAN or not.
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #include <limits.h>
7792
7793 int
7794 main ()
7795 {
7796 #ifndef _BIG_ENDIAN
7797 not big endian
7798 #endif
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805 ac_cv_c_bigendian=yes
7806 else
7807 ac_cv_c_bigendian=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 fi
7813 if test $ac_cv_c_bigendian = unknown; then
7814 # Compile a test program.
7815 if test "$cross_compiling" = yes; then :
7816 # Try to guess by grepping values from an object file.
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 short int ascii_mm[] =
7820 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7821 short int ascii_ii[] =
7822 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7823 int use_ascii (int i) {
7824 return ascii_mm[i] + ascii_ii[i];
7825 }
7826 short int ebcdic_ii[] =
7827 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7828 short int ebcdic_mm[] =
7829 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7830 int use_ebcdic (int i) {
7831 return ebcdic_mm[i] + ebcdic_ii[i];
7832 }
7833 extern int foo;
7834
7835 int
7836 main ()
7837 {
7838 return use_ascii (foo) == use_ebcdic (foo);
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7845 ac_cv_c_bigendian=yes
7846 fi
7847 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7848 if test "$ac_cv_c_bigendian" = unknown; then
7849 ac_cv_c_bigendian=no
7850 else
7851 # finding both strings is unlikely to happen, but who knows?
7852 ac_cv_c_bigendian=unknown
7853 fi
7854 fi
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 else
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 $ac_includes_default
7861 int
7862 main ()
7863 {
7864
7865 /* Are we little or big endian? From Harbison&Steele. */
7866 union
7867 {
7868 long int l;
7869 char c[sizeof (long int)];
7870 } u;
7871 u.l = 1;
7872 return u.c[sizeof (long int) - 1] == 1;
7873
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_run "$LINENO"; then :
7879 ac_cv_c_bigendian=no
7880 else
7881 ac_cv_c_bigendian=yes
7882 fi
7883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7884 conftest.$ac_objext conftest.beam conftest.$ac_ext
7885 fi
7886
7887 fi
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7890 $as_echo "$ac_cv_c_bigendian" >&6; }
7891 case $ac_cv_c_bigendian in #(
7892 yes)
7893 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
7894 ;; #(
7895 no)
7896 ;; #(
7897 universal)
7898
7899 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7900
7901 ;; #(
7902 *)
7903 as_fn_error $? "unknown endianness
7904 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7905 esac
7906
7907
7908 @%:@ Check whether --enable-variant was given.
7909 if test "${enable_variant+set}" = set; then :
7910 enableval=$enable_variant; NAVIT_VARIANT=$enableval
7911 fi
7912
7913
7914
7915 @%:@ Check whether --enable-cache-size was given.
7916 if test "${enable_cache_size+set}" = set; then :
7917 enableval=$enable_cache_size;
7918 cat >>confdefs.h <<_ACEOF
7919 @%:@define CACHE_SIZE ${enableval}
7920 _ACEOF
7921
7922 fi
7923
7924
7925 @%:@ Check whether --enable-avoid-unaligned was given.
7926 if test "${enable_avoid_unaligned+set}" = set; then :
7927 enableval=$enable_avoid_unaligned; AVOID_UNALIGNED=$enableval
7928 else
7929 AVOID_UNALIGNED=no
7930 fi
7931
7932 test x"${AVOID_UNALIGNED}" = xyes &&
7933 $as_echo "@%:@define AVOID_UNALIGNED /**/" >>confdefs.h
7934
7935
7936 @%:@ Check whether --enable-avoid-float was given.
7937 if test "${enable_avoid_float+set}" = set; then :
7938 enableval=$enable_avoid_float; AVOID_FLOAT=$enableval
7939 else
7940 AVOID_FLOAT=no
7941 fi
7942
7943 test x"${AVOID_FLOAT}" = xyes &&
7944 $as_echo "@%:@define AVOID_FLOAT /**/" >>confdefs.h
7945
7946
7947 @%:@ Check whether --enable-transformation-roll was given.
7948 if test "${enable_transformation_roll+set}" = set; then :
7949 enableval=$enable_transformation_roll; ENABLE_ROLL=$enableval
7950 else
7951 ENABLE_ROLL=no
7952 fi
7953
7954 test x"${ENABLE_ROLL}" = xyes &&
7955 $as_echo "@%:@define ENABLE_ROLL /**/" >>confdefs.h
7956
7957
7958 @%:@ Check whether --enable-hildon was given.
7959 if test "${enable_hildon+set}" = set; then :
7960 enableval=$enable_hildon; enable_hildon=$enableval
7961 else
7962 enable_hildon=yes
7963 fi
7964
7965 if test "x${enable_hildon}" = "xyes" ; then
7966
7967 pkg_failed=no
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HILDON" >&5
7969 $as_echo_n "checking for HILDON... " >&6; }
7970
7971 if test -n "$PKG_CONFIG"; then
7972 if test -n "$HILDON_CFLAGS"; then
7973 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
7974 else
7975 if test -n "$PKG_CONFIG" && \
7976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\""; } >&5
7977 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
7978 ac_status=$?
7979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }; then
7981 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9" 2>/dev/null`
7982 else
7983 pkg_failed=yes
7984 fi
7985 fi
7986 else
7987 pkg_failed=untried
7988 fi
7989 if test -n "$PKG_CONFIG"; then
7990 if test -n "$HILDON_LIBS"; then
7991 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
7992 else
7993 if test -n "$PKG_CONFIG" && \
7994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\""; } >&5
7995 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
7996 ac_status=$?
7997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; }; then
7999 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9" 2>/dev/null`
8000 else
8001 pkg_failed=yes
8002 fi
8003 fi
8004 else
8005 pkg_failed=untried
8006 fi
8007
8008
8009
8010 if test $pkg_failed = yes; then
8011
8012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8013 _pkg_short_errors_supported=yes
8014 else
8015 _pkg_short_errors_supported=no
8016 fi
8017 if test $_pkg_short_errors_supported = yes; then
8018 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9"`
8019 else
8020 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9"`
8021 fi
8022 # Put the nasty error message in config.log where it belongs
8023 echo "$HILDON_PKG_ERRORS" >&5
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 enable_hildon=no
8031
8032 elif test $pkg_failed = untried; then
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 enable_hildon=no
8037
8038 else
8039 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
8040 HILDON_LIBS=$pkg_cv_HILDON_LIBS
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8043 :
8044 fi
8045
8046 pkg_failed=no
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSBT" >&5
8048 $as_echo_n "checking for GPSBT... " >&6; }
8049
8050 if test -n "$PKG_CONFIG"; then
8051 if test -n "$GPSBT_CFLAGS"; then
8052 pkg_cv_GPSBT_CFLAGS="$GPSBT_CFLAGS"
8053 else
8054 if test -n "$PKG_CONFIG" && \
8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gpsbt\""; } >&5
8056 ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8057 ac_status=$?
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
8060 pkg_cv_GPSBT_CFLAGS=`$PKG_CONFIG --cflags "gpsbt" 2>/dev/null`
8061 else
8062 pkg_failed=yes
8063 fi
8064 fi
8065 else
8066 pkg_failed=untried
8067 fi
8068 if test -n "$PKG_CONFIG"; then
8069 if test -n "$GPSBT_LIBS"; then
8070 pkg_cv_GPSBT_LIBS="$GPSBT_LIBS"
8071 else
8072 if test -n "$PKG_CONFIG" && \
8073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gpsbt\""; } >&5
8074 ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8075 ac_status=$?
8076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }; then
8078 pkg_cv_GPSBT_LIBS=`$PKG_CONFIG --libs "gpsbt" 2>/dev/null`
8079 else
8080 pkg_failed=yes
8081 fi
8082 fi
8083 else
8084 pkg_failed=untried
8085 fi
8086
8087
8088
8089 if test $pkg_failed = yes; then
8090
8091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8092 _pkg_short_errors_supported=yes
8093 else
8094 _pkg_short_errors_supported=no
8095 fi
8096 if test $_pkg_short_errors_supported = yes; then
8097 GPSBT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gpsbt"`
8098 else
8099 GPSBT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gpsbt"`
8100 fi
8101 # Put the nasty error message in config.log where it belongs
8102 echo "$GPSBT_PKG_ERRORS" >&5
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109
8110 elif test $pkg_failed = untried; then
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114
8115 else
8116 GPSBT_CFLAGS=$pkg_cv_GPSBT_CFLAGS
8117 GPSBT_LIBS=$pkg_cv_GPSBT_LIBS
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8120
8121
8122 $as_echo "@%:@define HAVE_GPSBT 1" >>confdefs.h
8123
8124
8125
8126
8127 fi
8128 if test x"${enable_hildon}" = xyes ; then
8129
8130 $as_echo "@%:@define USE_HILDON 1" >>confdefs.h
8131
8132
8133
8134 fi
8135 fi
8136 if test "${enable_hildon}" = "xyes"; then
8137 USE_HILDON_TRUE=
8138 USE_HILDON_FALSE='#'
8139 else
8140 USE_HILDON_TRUE='#'
8141 USE_HILDON_FALSE=
8142 fi
8143
8144
8145 @%:@ Check whether --enable-osso was given.
8146 if test "${enable_osso+set}" = set; then :
8147 enableval=$enable_osso; enable_osso=$enableval
8148 else
8149 enable_osso=yes
8150 fi
8151
8152 if test "x${enable_osso}" = "xyes" ; then
8153
8154 pkg_failed=no
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSSO" >&5
8156 $as_echo_n "checking for LIBOSSO... " >&6; }
8157
8158 if test -n "$PKG_CONFIG"; then
8159 if test -n "$LIBOSSO_CFLAGS"; then
8160 pkg_cv_LIBOSSO_CFLAGS="$LIBOSSO_CFLAGS"
8161 else
8162 if test -n "$PKG_CONFIG" && \
8163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso\""; } >&5
8164 ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8165 ac_status=$?
8166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8167 test $ac_status = 0; }; then
8168 pkg_cv_LIBOSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso" 2>/dev/null`
8169 else
8170 pkg_failed=yes
8171 fi
8172 fi
8173 else
8174 pkg_failed=untried
8175 fi
8176 if test -n "$PKG_CONFIG"; then
8177 if test -n "$LIBOSSO_LIBS"; then
8178 pkg_cv_LIBOSSO_LIBS="$LIBOSSO_LIBS"
8179 else
8180 if test -n "$PKG_CONFIG" && \
8181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso\""; } >&5
8182 ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8183 ac_status=$?
8184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185 test $ac_status = 0; }; then
8186 pkg_cv_LIBOSSO_LIBS=`$PKG_CONFIG --libs "libosso" 2>/dev/null`
8187 else
8188 pkg_failed=yes
8189 fi
8190 fi
8191 else
8192 pkg_failed=untried
8193 fi
8194
8195
8196
8197 if test $pkg_failed = yes; then
8198
8199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8200 _pkg_short_errors_supported=yes
8201 else
8202 _pkg_short_errors_supported=no
8203 fi
8204 if test $_pkg_short_errors_supported = yes; then
8205 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso"`
8206 else
8207 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso"`
8208 fi
8209 # Put the nasty error message in config.log where it belongs
8210 echo "$LIBOSSO_PKG_ERRORS" >&5
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 enable_osso=no
8218
8219 elif test $pkg_failed = untried; then
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 enable_osso=no
8224
8225 else
8226 LIBOSSO_CFLAGS=$pkg_cv_LIBOSSO_CFLAGS
8227 LIBOSSO_LIBS=$pkg_cv_LIBOSSO_LIBS
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229 $as_echo "yes" >&6; }
8230 :
8231 fi
8232 if test x"${enable_osso}" = xyes ; then
8233
8234 $as_echo "@%:@define USE_OSSO 1" >>confdefs.h
8235
8236
8237
8238 fi
8239 fi
8240 echo ${enable_osso}
8241 if test "x${enable_osso}" = "xyes"; then
8242 USE_OSSO_TRUE=
8243 USE_OSSO_FALSE='#'
8244 else
8245 USE_OSSO_TRUE='#'
8246 USE_OSSO_FALSE=
8247 fi
8248
8249
8250 @%:@ Check whether --enable-garmin was given.
8251 if test "${enable_garmin+set}" = set; then :
8252 enableval=$enable_garmin; USE_GARMIN=$enableval
8253 else
8254 USE_GARMIN=yes
8255 fi
8256
8257
8258 # samplemap
8259 # Extract the first word of "bzcat", so it can be a program name with args.
8260 set dummy bzcat; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_path__PATH_BZCAT+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 case $_PATH_BZCAT in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path__PATH_BZCAT="$_PATH_BZCAT" # Let the user override the test with a path.
8269 ;;
8270 *)
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_path__PATH_BZCAT="$as_dir/$ac_word$ac_exec_ext"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 ;;
8287 esac
8288 fi
8289 _PATH_BZCAT=$ac_cv_path__PATH_BZCAT
8290 if test -n "$_PATH_BZCAT"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_PATH_BZCAT" >&5
8292 $as_echo "$_PATH_BZCAT" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 if test "x${_PATH_BZCAT}" = "x" ; then
8300 samplemap=no; samplemap_reason="bzcat missing"
8301 fi
8302 @%:@ Check whether --enable-maptool was given.
8303 if test "${enable_maptool+set}" = set; then :
8304 enableval=$enable_maptool; maptool=$enableval;maptool_reason="configure parameter"
8305 fi
8306
8307 if test "x$maptool" = "xyes"; then
8308 MAPTOOL_TRUE=
8309 MAPTOOL_FALSE='#'
8310 else
8311 MAPTOOL_TRUE='#'
8312 MAPTOOL_FALSE=
8313 fi
8314
8315 if test "x$maptool" != "xyes"; then
8316 samplemap=no; samplemap_reason="maptool disabled"
8317 fi
8318 @%:@ Check whether --enable-samplemap was given.
8319 if test "${enable_samplemap+set}" = set; then :
8320 enableval=$enable_samplemap; samplemap=$enableval;samplemap_reason="configure parameter"
8321 fi
8322
8323 if test "x$samplemap" = "xyes"; then
8324 BUILD_SAMPLEMAP_TRUE=
8325 BUILD_SAMPLEMAP_FALSE='#'
8326 else
8327 BUILD_SAMPLEMAP_TRUE='#'
8328 BUILD_SAMPLEMAP_FALSE=
8329 fi
8330
8331
8332 @%:@ Check whether --enable-fastmath was given.
8333 if test "${enable_fastmath+set}" = set; then :
8334 enableval=$enable_fastmath; fastmath=$enableval
8335 else
8336 fastmath=yes
8337 fi
8338
8339 if test "x$fastmath" = "xyes"; then
8340 FASTMATH_TRUE=
8341 FASTMATH_FALSE='#'
8342 else
8343 FASTMATH_TRUE='#'
8344 FASTMATH_FALSE=
8345 fi
8346
8347
8348 if test x"$fastmath" = xyes; then
8349 if eval "test x$GCC = xyes"; then
8350 CFLAGS="$CFLAGS -ffast-math"
8351 fi
8352 fi
8353
8354 X_CFLAGS="-I$x_includes"
8355 if test -n "$ac_x_libraries"; then :
8356 X_LIBS="-L$ac_x_libraries"
8357 fi
8358
8359 # glib
8360 @%:@ Check whether --enable-glib was given.
8361 if test "${enable_glib+set}" = set; then :
8362 enableval=$enable_glib; glib=$enableval
8363 else
8364 glib=yes
8365 fi
8366
8367 if test "x${glib}" = "xyes" -a "x${GLIB_CFLAGS}" = "x" -a "x${GLIB_LIBS}" = "x"; then
8368
8369 pkg_failed=no
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
8371 $as_echo_n "checking for GLIB... " >&6; }
8372
8373 if test -n "$PKG_CONFIG"; then
8374 if test -n "$GLIB_CFLAGS"; then
8375 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8376 else
8377 if test -n "$PKG_CONFIG" && \
8378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
8379 ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8380 ac_status=$?
8381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8382 test $ac_status = 0; }; then
8383 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gthread-2.0" 2>/dev/null`
8384 else
8385 pkg_failed=yes
8386 fi
8387 fi
8388 else
8389 pkg_failed=untried
8390 fi
8391 if test -n "$PKG_CONFIG"; then
8392 if test -n "$GLIB_LIBS"; then
8393 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8394 else
8395 if test -n "$PKG_CONFIG" && \
8396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
8397 ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8398 ac_status=$?
8399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8400 test $ac_status = 0; }; then
8401 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gthread-2.0" 2>/dev/null`
8402 else
8403 pkg_failed=yes
8404 fi
8405 fi
8406 else
8407 pkg_failed=untried
8408 fi
8409
8410
8411
8412 if test $pkg_failed = yes; then
8413
8414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8415 _pkg_short_errors_supported=yes
8416 else
8417 _pkg_short_errors_supported=no
8418 fi
8419 if test $_pkg_short_errors_supported = yes; then
8420 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gthread-2.0"`
8421 else
8422 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gthread-2.0"`
8423 fi
8424 # Put the nasty error message in config.log where it belongs
8425 echo "$GLIB_PKG_ERRORS" >&5
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 glib=no
8430 elif test $pkg_failed = untried; then
8431 glib=no
8432 else
8433 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8434 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8436 $as_echo "yes" >&6; }
8437 glib=yes
8438 fi
8439 fi
8440 if test "x${glib}" = "xyes"; then
8441
8442 $as_echo "@%:@define HAVE_GLIB 1" >>confdefs.h
8443
8444 else
8445 GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
8446 GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
8447 if test "x${win32}" != "xyes" -a "x${android}" != "xyes"; then
8448 GLIB_LIBS="$GLIB_LIBS -lpthread"
8449 fi
8450 fi
8451
8452 # gmodule
8453 @%:@ Check whether --enable-gmodule was given.
8454 if test "${enable_gmodule+set}" = set; then :
8455 enableval=$enable_gmodule; gmodule=$enableval
8456 else
8457 gmodule=yes
8458 fi
8459
8460 if test x"${gmodule}" = "xyes"; then
8461
8462 pkg_failed=no
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
8464 $as_echo_n "checking for GMODULE... " >&6; }
8465
8466 if test -n "$PKG_CONFIG"; then
8467 if test -n "$GMODULE_CFLAGS"; then
8468 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
8469 else
8470 if test -n "$PKG_CONFIG" && \
8471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
8472 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
8473 ac_status=$?
8474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8475 test $ac_status = 0; }; then
8476 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
8477 else
8478 pkg_failed=yes
8479 fi
8480 fi
8481 else
8482 pkg_failed=untried
8483 fi
8484 if test -n "$PKG_CONFIG"; then
8485 if test -n "$GMODULE_LIBS"; then
8486 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
8487 else
8488 if test -n "$PKG_CONFIG" && \
8489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
8490 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
8491 ac_status=$?
8492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8493 test $ac_status = 0; }; then
8494 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
8495 else
8496 pkg_failed=yes
8497 fi
8498 fi
8499 else
8500 pkg_failed=untried
8501 fi
8502
8503
8504
8505 if test $pkg_failed = yes; then
8506
8507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8508 _pkg_short_errors_supported=yes
8509 else
8510 _pkg_short_errors_supported=no
8511 fi
8512 if test $_pkg_short_errors_supported = yes; then
8513 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gmodule-2.0"`
8514 else
8515 GMODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-2.0"`
8516 fi
8517 # Put the nasty error message in config.log where it belongs
8518 echo "$GMODULE_PKG_ERRORS" >&5
8519
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 gmodule=no
8523 elif test $pkg_failed = untried; then
8524 gmodule=no
8525 else
8526 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
8527 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8529 $as_echo "yes" >&6; }
8530 gmodule=yes
8531 fi
8532 fi
8533 if test "x${gmodule}" = "xyes"; then
8534
8535 $as_echo "@%:@define HAVE_GMODULE 1" >>confdefs.h
8536
8537 else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8540 if ${ac_cv_lib_dl_dlopen+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 ac_check_lib_save_LIBS=$LIBS
8544 LIBS="-ldl $LIBS"
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547
8548 /* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8551 #ifdef __cplusplus
8552 extern "C"
8553 #endif
8554 char dlopen ();
8555 int
8556 main ()
8557 {
8558 return dlopen ();
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_cv_lib_dl_dlopen=yes
8565 else
8566 ac_cv_lib_dl_dlopen=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8573 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8574 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8575 plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";
8576 $as_echo "@%:@define HAVE_DLOPEN 1" >>confdefs.h
8577
8578 else
8579 plugins="no"; plugins_reason="package gmodule and dlopen missing"
8580
8581 fi
8582
8583 fi
8584
8585 # libcrypto
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
8587 $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
8588 if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 ac_check_lib_save_LIBS=$LIBS
8592 LIBS="-lcrypto $LIBS"
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595
8596 /* Override any GCC internal prototype to avoid an error.
8597 Use char because int might match the return type of a GCC
8598 builtin and then its argument prototype would still apply. */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 char AES_encrypt ();
8603 int
8604 main ()
8605 {
8606 return AES_encrypt ();
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_link "$LINENO"; then :
8612 ac_cv_lib_crypto_AES_encrypt=yes
8613 else
8614 ac_cv_lib_crypto_AES_encrypt=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 LIBS=$ac_check_lib_save_LIBS
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
8621 $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
8622 if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
8623 CRYPTO_LIBS="-lcrypto";
8624 $as_echo "@%:@define HAVE_LIBCRYPTO 1" >>confdefs.h
8625
8626 fi
8627
8628
8629
8630 # plugins
8631 @%:@ Check whether --enable-plugins was given.
8632 if test "${enable_plugins+set}" = set; then :
8633 enableval=$enable_plugins; plugins=$enableval;plugin_reason="configure parameter"
8634 fi
8635
8636 @%:@ Check whether --enable-shared-libnavit was given.
8637 if test "${enable_shared_libnavit+set}" = set; then :
8638 enableval=$enable_shared_libnavit; shared_libnavit=$enableval
8639 fi
8640
8641 if test "x${plugins}" = "xyes"; then
8642 @%:@ Check whether --enable-shared was given.
8643 if test "${enable_shared+set}" = set; then :
8644 enableval=$enable_shared; p=${PACKAGE-default}
8645 case $enableval in
8646 yes) enable_shared=yes ;;
8647 no) enable_shared=no ;;
8648 *)
8649 enable_shared=no
8650 # Look at the argument we got. We use all the common list separators.
8651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8652 for pkg in $enableval; do
8653 IFS="$lt_save_ifs"
8654 if test "X$pkg" = "X$p"; then
8655 enable_shared=yes
8656 fi
8657 done
8658 IFS="$lt_save_ifs"
8659 ;;
8660 esac
8661 else
8662 enable_shared=yes
8663 fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673 @%:@ Check whether --enable-static was given.
8674 if test "${enable_static+set}" = set; then :
8675 enableval=$enable_static; p=${PACKAGE-default}
8676 case $enableval in
8677 yes) enable_static=yes ;;
8678 no) enable_static=no ;;
8679 *)
8680 enable_static=no
8681 # Look at the argument we got. We use all the common list separators.
8682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8683 for pkg in $enableval; do
8684 IFS="$lt_save_ifs"
8685 if test "X$pkg" = "X$p"; then
8686 enable_static=yes
8687 fi
8688 done
8689 IFS="$lt_save_ifs"
8690 ;;
8691 esac
8692 else
8693 enable_static=no
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 $as_echo "@%:@define USE_PLUGINS /**/" >>confdefs.h
8706
8707 if test "x${win32}" = "xyes"; then
8708 shared_libnavit=yes
8709 NAVIT_MODULE_LDFLAGS="-no-undefined -L\$(top_builddir)/navit -l$LIBNAVIT -L\$(top_builddir)/intl -lintl"
8710 fi
8711 else
8712 if test "x${shared_libnavit}" = "xyes"; then
8713 @%:@ Check whether --enable-shared was given.
8714 if test "${enable_shared+set}" = set; then :
8715 enableval=$enable_shared; p=${PACKAGE-default}
8716 case $enableval in
8717 yes) enable_shared=yes ;;
8718 no) enable_shared=no ;;
8719 *)
8720 enable_shared=no
8721 # Look at the argument we got. We use all the common list separators.
8722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8723 for pkg in $enableval; do
8724 IFS="$lt_save_ifs"
8725 if test "X$pkg" = "X$p"; then
8726 enable_shared=yes
8727 fi
8728 done
8729 IFS="$lt_save_ifs"
8730 ;;
8731 esac
8732 else
8733 enable_shared=yes
8734 fi
8735
8736
8737
8738
8739
8740
8741 @%:@ Check whether --enable-static was given.
8742 if test "${enable_static+set}" = set; then :
8743 enableval=$enable_static; p=${PACKAGE-default}
8744 case $enableval in
8745 yes) enable_static=yes ;;
8746 no) enable_static=no ;;
8747 *)
8748 enable_static=no
8749 # Look at the argument we got. We use all the common list separators.
8750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8751 for pkg in $enableval; do
8752 IFS="$lt_save_ifs"
8753 if test "X$pkg" = "X$p"; then
8754 enable_static=yes
8755 fi
8756 done
8757 IFS="$lt_save_ifs"
8758 ;;
8759 esac
8760 else
8761 enable_static=no
8762 fi
8763
8764
8765
8766
8767
8768
8769 else
8770 @%:@ Check whether --enable-shared was given.
8771 if test "${enable_shared+set}" = set; then :
8772 enableval=$enable_shared; p=${PACKAGE-default}
8773 case $enableval in
8774 yes) enable_shared=yes ;;
8775 no) enable_shared=no ;;
8776 *)
8777 enable_shared=no
8778 # Look at the argument we got. We use all the common list separators.
8779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8780 for pkg in $enableval; do
8781 IFS="$lt_save_ifs"
8782 if test "X$pkg" = "X$p"; then
8783 enable_shared=yes
8784 fi
8785 done
8786 IFS="$lt_save_ifs"
8787 ;;
8788 esac
8789 else
8790 enable_shared=no
8791 fi
8792
8793
8794
8795
8796
8797
8798 @%:@ Check whether --enable-static was given.
8799 if test "${enable_static+set}" = set; then :
8800 enableval=$enable_static; p=${PACKAGE-default}
8801 case $enableval in
8802 yes) enable_static=yes ;;
8803 no) enable_static=no ;;
8804 *)
8805 enable_static=no
8806 # Look at the argument we got. We use all the common list separators.
8807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8808 for pkg in $enableval; do
8809 IFS="$lt_save_ifs"
8810 if test "X$pkg" = "X$p"; then
8811 enable_static=yes
8812 fi
8813 done
8814 IFS="$lt_save_ifs"
8815 ;;
8816 esac
8817 else
8818 enable_static=yes
8819 fi
8820
8821
8822
8823
8824
8825
8826 fi
8827 fi
8828 if test "x$plugins" = "xyes"; then
8829 PLUGINS_TRUE=
8830 PLUGINS_FALSE='#'
8831 else
8832 PLUGINS_TRUE='#'
8833 PLUGINS_FALSE=
8834 fi
8835
8836 if test "x$shared_libnavit" = "xyes"; then
8837 SHARED_LIBNAVIT_TRUE=
8838 SHARED_LIBNAVIT_FALSE='#'
8839 else
8840 SHARED_LIBNAVIT_TRUE='#'
8841 SHARED_LIBNAVIT_FALSE=
8842 fi
8843
8844 if test "x$bin_navit" = "xyes"; then
8845 BIN_NAVIT_TRUE=
8846 BIN_NAVIT_FALSE='#'
8847 else
8848 BIN_NAVIT_TRUE='#'
8849 BIN_NAVIT_FALSE=
8850 fi
8851
8852 case `pwd` in
8853 *\ * | *\ *)
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8856 esac
8857
8858
8859
8860 macro_version='2.2.6b'
8861 macro_revision='1.3017'
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875 ltmain="$ac_aux_dir/ltmain.sh"
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8878 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8879 if ${ac_cv_path_SED+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8883 for ac_i in 1 2 3 4 5 6 7; do
8884 ac_script="$ac_script$as_nl$ac_script"
8885 done
8886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8887 { ac_script=; unset ac_script;}
8888 if test -z "$SED"; then
8889 ac_path_SED_found=false
8890 # Loop through the user's path and test for each of PROGNAME-LIST
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_prog in sed gsed; do
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8899 as_fn_executable_p "$ac_path_SED" || continue
8900 # Check for GNU ac_path_SED and select it if it is found.
8901 # Check for GNU $ac_path_SED
8902 case `"$ac_path_SED" --version 2>&1` in
8903 *GNU*)
8904 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8905 *)
8906 ac_count=0
8907 $as_echo_n 0123456789 >"conftest.in"
8908 while :
8909 do
8910 cat "conftest.in" "conftest.in" >"conftest.tmp"
8911 mv "conftest.tmp" "conftest.in"
8912 cp "conftest.in" "conftest.nl"
8913 $as_echo '' >> "conftest.nl"
8914 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8916 as_fn_arith $ac_count + 1 && ac_count=$as_val
8917 if test $ac_count -gt ${ac_path_SED_max-0}; then
8918 # Best one so far, save it but keep looking for a better one
8919 ac_cv_path_SED="$ac_path_SED"
8920 ac_path_SED_max=$ac_count
8921 fi
8922 # 10*(2^10) chars as input seems more than enough
8923 test $ac_count -gt 10 && break
8924 done
8925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8926 esac
8927
8928 $ac_path_SED_found && break 3
8929 done
8930 done
8931 done
8932 IFS=$as_save_IFS
8933 if test -z "$ac_cv_path_SED"; then
8934 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8935 fi
8936 else
8937 ac_cv_path_SED=$SED
8938 fi
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8942 $as_echo "$ac_cv_path_SED" >&6; }
8943 SED="$ac_cv_path_SED"
8944 rm -f conftest.sed
8945
8946 test -z "$SED" && SED=sed
8947 Xsed="$SED -e 1s/^X//"
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8960 $as_echo_n "checking for fgrep... " >&6; }
8961 if ${ac_cv_path_FGREP+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8965 then ac_cv_path_FGREP="$GREP -F"
8966 else
8967 if test -z "$FGREP"; then
8968 ac_path_FGREP_found=false
8969 # Loop through the user's path and test for each of PROGNAME-LIST
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8972 do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_prog in fgrep; do
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8978 as_fn_executable_p "$ac_path_FGREP" || continue
8979 # Check for GNU ac_path_FGREP and select it if it is found.
8980 # Check for GNU $ac_path_FGREP
8981 case `"$ac_path_FGREP" --version 2>&1` in
8982 *GNU*)
8983 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8984 *)
8985 ac_count=0
8986 $as_echo_n 0123456789 >"conftest.in"
8987 while :
8988 do
8989 cat "conftest.in" "conftest.in" >"conftest.tmp"
8990 mv "conftest.tmp" "conftest.in"
8991 cp "conftest.in" "conftest.nl"
8992 $as_echo 'FGREP' >> "conftest.nl"
8993 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8995 as_fn_arith $ac_count + 1 && ac_count=$as_val
8996 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8997 # Best one so far, save it but keep looking for a better one
8998 ac_cv_path_FGREP="$ac_path_FGREP"
8999 ac_path_FGREP_max=$ac_count
9000 fi
9001 # 10*(2^10) chars as input seems more than enough
9002 test $ac_count -gt 10 && break
9003 done
9004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9005 esac
9006
9007 $ac_path_FGREP_found && break 3
9008 done
9009 done
9010 done
9011 IFS=$as_save_IFS
9012 if test -z "$ac_cv_path_FGREP"; then
9013 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9014 fi
9015 else
9016 ac_cv_path_FGREP=$FGREP
9017 fi
9018
9019 fi
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9022 $as_echo "$ac_cv_path_FGREP" >&6; }
9023 FGREP="$ac_cv_path_FGREP"
9024
9025
9026 test -z "$GREP" && GREP=grep
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046 @%:@ Check whether --with-gnu-ld was given.
9047 if test "${with_gnu_ld+set}" = set; then :
9048 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9049 else
9050 with_gnu_ld=no
9051 fi
9052
9053 ac_prog=ld
9054 if test "$GCC" = yes; then
9055 # Check if gcc -print-prog-name=ld gives a path.
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9057 $as_echo_n "checking for ld used by $CC... " >&6; }
9058 case $host in
9059 *-*-mingw*)
9060 # gcc leaves a trailing carriage return which upsets mingw
9061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9062 *)
9063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9064 esac
9065 case $ac_prog in
9066 # Accept absolute paths.
9067 [\\/]* | ?:[\\/]*)
9068 re_direlt='/[^/][^/]*/\.\./'
9069 # Canonicalize the pathname of ld
9070 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9071 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9072 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9073 done
9074 test -z "$LD" && LD="$ac_prog"
9075 ;;
9076 "")
9077 # If it fails, then pretend we aren't using GCC.
9078 ac_prog=ld
9079 ;;
9080 *)
9081 # If it is relative, then search for the first ld in PATH.
9082 with_gnu_ld=unknown
9083 ;;
9084 esac
9085 elif test "$with_gnu_ld" = yes; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9087 $as_echo_n "checking for GNU ld... " >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9090 $as_echo_n "checking for non-GNU ld... " >&6; }
9091 fi
9092 if ${lt_cv_path_LD+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 if test -z "$LD"; then
9096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9097 for ac_dir in $PATH; do
9098 IFS="$lt_save_ifs"
9099 test -z "$ac_dir" && ac_dir=.
9100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9101 lt_cv_path_LD="$ac_dir/$ac_prog"
9102 # Check to see if the program is GNU ld. I'd rather use --version,
9103 # but apparently some variants of GNU ld only accept -v.
9104 # Break only if it was the GNU/non-GNU ld that we prefer.
9105 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9106 *GNU* | *'with BFD'*)
9107 test "$with_gnu_ld" != no && break
9108 ;;
9109 *)
9110 test "$with_gnu_ld" != yes && break
9111 ;;
9112 esac
9113 fi
9114 done
9115 IFS="$lt_save_ifs"
9116 else
9117 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9118 fi
9119 fi
9120
9121 LD="$lt_cv_path_LD"
9122 if test -n "$LD"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9124 $as_echo "$LD" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9131 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9132 if ${lt_cv_prog_gnu_ld+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9136 case `$LD -v 2>&1 </dev/null` in
9137 *GNU* | *'with BFD'*)
9138 lt_cv_prog_gnu_ld=yes
9139 ;;
9140 *)
9141 lt_cv_prog_gnu_ld=no
9142 ;;
9143 esac
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9146 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9147 with_gnu_ld=$lt_cv_prog_gnu_ld
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9158 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9159 if ${lt_cv_path_NM+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$NM"; then
9163 # Let the user override the test.
9164 lt_cv_path_NM="$NM"
9165 else
9166 lt_nm_to_check="${ac_tool_prefix}nm"
9167 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9168 lt_nm_to_check="$lt_nm_to_check nm"
9169 fi
9170 for lt_tmp_nm in $lt_nm_to_check; do
9171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9172 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9173 IFS="$lt_save_ifs"
9174 test -z "$ac_dir" && ac_dir=.
9175 tmp_nm="$ac_dir/$lt_tmp_nm"
9176 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9177 # Check to see if the nm accepts a BSD-compat flag.
9178 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9179 # nm: unknown option "B" ignored
9180 # Tru64's nm complains that /dev/null is an invalid object file
9181 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9182 */dev/null* | *'Invalid file or object type'*)
9183 lt_cv_path_NM="$tmp_nm -B"
9184 break
9185 ;;
9186 *)
9187 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9188 */dev/null*)
9189 lt_cv_path_NM="$tmp_nm -p"
9190 break
9191 ;;
9192 *)
9193 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9194 continue # so that we can try to find one that supports BSD flags
9195 ;;
9196 esac
9197 ;;
9198 esac
9199 fi
9200 done
9201 IFS="$lt_save_ifs"
9202 done
9203 : ${lt_cv_path_NM=no}
9204 fi
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9207 $as_echo "$lt_cv_path_NM" >&6; }
9208 if test "$lt_cv_path_NM" != "no"; then
9209 NM="$lt_cv_path_NM"
9210 else
9211 # Didn't find any BSD compatible name lister, look for dumpbin.
9212 if test -n "$ac_tool_prefix"; then
9213 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9214 do
9215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if ${ac_cv_prog_DUMPBIN+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 if test -n "$DUMPBIN"; then
9223 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9227 do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236 done
9237 done
9238 IFS=$as_save_IFS
9239
9240 fi
9241 fi
9242 DUMPBIN=$ac_cv_prog_DUMPBIN
9243 if test -n "$DUMPBIN"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9245 $as_echo "$DUMPBIN" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9249 fi
9250
9251
9252 test -n "$DUMPBIN" && break
9253 done
9254 fi
9255 if test -z "$DUMPBIN"; then
9256 ac_ct_DUMPBIN=$DUMPBIN
9257 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9258 do
9259 # Extract the first word of "$ac_prog", so it can be a program name with args.
9260 set dummy $ac_prog; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 if test -n "$ac_ct_DUMPBIN"; then
9267 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9276 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9279 fi
9280 done
9281 done
9282 IFS=$as_save_IFS
9283
9284 fi
9285 fi
9286 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9287 if test -n "$ac_ct_DUMPBIN"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9289 $as_echo "$ac_ct_DUMPBIN" >&6; }
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9293 fi
9294
9295
9296 test -n "$ac_ct_DUMPBIN" && break
9297 done
9298
9299 if test "x$ac_ct_DUMPBIN" = x; then
9300 DUMPBIN=":"
9301 else
9302 case $cross_compiling:$ac_tool_warned in
9303 yes:)
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9306 ac_tool_warned=yes ;;
9307 esac
9308 DUMPBIN=$ac_ct_DUMPBIN
9309 fi
9310 fi
9311
9312
9313 if test "$DUMPBIN" != ":"; then
9314 NM="$DUMPBIN"
9315 fi
9316 fi
9317 test -z "$NM" && NM=nm
9318
9319
9320
9321
9322
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9326 if ${lt_cv_nm_interface+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 lt_cv_nm_interface="BSD nm"
9330 echo "int some_variable = 0;" > conftest.$ac_ext
9331 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
9332 (eval "$ac_compile" 2>conftest.err)
9333 cat conftest.err >&5
9334 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9336 cat conftest.err >&5
9337 (eval echo "\"\$as_me:__oline__: output\"" >&5)
9338 cat conftest.out >&5
9339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9340 lt_cv_nm_interface="MS dumpbin"
9341 fi
9342 rm -f conftest*
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9345 $as_echo "$lt_cv_nm_interface" >&6; }
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9348 $as_echo_n "checking whether ln -s works... " >&6; }
9349 LN_S=$as_ln_s
9350 if test "$LN_S" = "ln -s"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9352 $as_echo "yes" >&6; }
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9355 $as_echo "no, using $LN_S" >&6; }
9356 fi
9357
9358 # find the maximum length of command line arguments
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9361 if ${lt_cv_sys_max_cmd_len+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 i=0
9365 teststring="ABCD"
9366
9367 case $build_os in
9368 msdosdjgpp*)
9369 # On DJGPP, this test can blow up pretty badly due to problems in libc
9370 # (any single argument exceeding 2000 bytes causes a buffer overrun
9371 # during glob expansion). Even if it were fixed, the result of this
9372 # check would be larger than it should be.
9373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9374 ;;
9375
9376 gnu*)
9377 # Under GNU Hurd, this test is not required because there is
9378 # no limit to the length of command line arguments.
9379 # Libtool will interpret -1 as no limit whatsoever
9380 lt_cv_sys_max_cmd_len=-1;
9381 ;;
9382
9383 cygwin* | mingw* | cegcc*)
9384 # On Win9x/ME, this test blows up -- it succeeds, but takes
9385 # about 5 minutes as the teststring grows exponentially.
9386 # Worse, since 9x/ME are not pre-emptively multitasking,
9387 # you end up with a "frozen" computer, even though with patience
9388 # the test eventually succeeds (with a max line length of 256k).
9389 # Instead, let's just punt: use the minimum linelength reported by
9390 # all of the supported platforms: 8192 (on NT/2K/XP).
9391 lt_cv_sys_max_cmd_len=8192;
9392 ;;
9393
9394 amigaos*)
9395 # On AmigaOS with pdksh, this test takes hours, literally.
9396 # So we just punt and use a minimum line length of 8192.
9397 lt_cv_sys_max_cmd_len=8192;
9398 ;;
9399
9400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9401 # This has been around since 386BSD, at least. Likely further.
9402 if test -x /sbin/sysctl; then
9403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9404 elif test -x /usr/sbin/sysctl; then
9405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9406 else
9407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9408 fi
9409 # And add a safety zone
9410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9412 ;;
9413
9414 interix*)
9415 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9416 lt_cv_sys_max_cmd_len=196608
9417 ;;
9418
9419 osf*)
9420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9422 # nice to cause kernel panics so lets avoid the loop below.
9423 # First set a reasonable default.
9424 lt_cv_sys_max_cmd_len=16384
9425 #
9426 if test -x /sbin/sysconfig; then
9427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9428 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9429 esac
9430 fi
9431 ;;
9432 sco3.2v5*)
9433 lt_cv_sys_max_cmd_len=102400
9434 ;;
9435 sysv5* | sco5v6* | sysv4.2uw2*)
9436 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9437 if test -n "$kargmax"; then
9438 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9439 else
9440 lt_cv_sys_max_cmd_len=32768
9441 fi
9442 ;;
9443 *)
9444 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9445 if test -n "$lt_cv_sys_max_cmd_len"; then
9446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9448 else
9449 # Make teststring a little bigger before we do anything with it.
9450 # a 1K string should be a reasonable start.
9451 for i in 1 2 3 4 5 6 7 8 ; do
9452 teststring=$teststring$teststring
9453 done
9454 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9455 # If test is not a shell built-in, we'll probably end up computing a
9456 # maximum length that is only half of the actual maximum length, but
9457 # we can't tell.
9458 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9459 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9460 test $i != 17 # 1/2 MB should be enough
9461 do
9462 i=`expr $i + 1`
9463 teststring=$teststring$teststring
9464 done
9465 # Only check the string length outside the loop.
9466 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9467 teststring=
9468 # Add a significant safety factor because C++ compilers can tack on
9469 # massive amounts of additional arguments before passing them to the
9470 # linker. It appears as though 1/2 is a usable value.
9471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9472 fi
9473 ;;
9474 esac
9475
9476 fi
9477
9478 if test -n $lt_cv_sys_max_cmd_len ; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9480 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9483 $as_echo "none" >&6; }
9484 fi
9485 max_cmd_len=$lt_cv_sys_max_cmd_len
9486
9487
9488
9489
9490
9491
9492 : ${CP="cp -f"}
9493 : ${MV="mv -f"}
9494 : ${RM="rm -f"}
9495
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9497 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9498 # Try some XSI features
9499 xsi_shell=no
9500 ( _lt_dummy="a/b/c"
9501 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9502 = c,a/b,, \
9503 && eval 'test $(( 1 + 1 )) -eq 2 \
9504 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9505 && xsi_shell=yes
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9507 $as_echo "$xsi_shell" >&6; }
9508
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9511 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9512 lt_shell_append=no
9513 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9514 >/dev/null 2>&1 \
9515 && lt_shell_append=yes
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9517 $as_echo "$lt_shell_append" >&6; }
9518
9519
9520 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9521 lt_unset=unset
9522 else
9523 lt_unset=false
9524 fi
9525
9526
9527
9528
9529
9530 # test EBCDIC or ASCII
9531 case `echo X|tr X '\101'` in
9532 A) # ASCII based system
9533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9534 lt_SP2NL='tr \040 \012'
9535 lt_NL2SP='tr \015\012 \040\040'
9536 ;;
9537 *) # EBCDIC based system
9538 lt_SP2NL='tr \100 \n'
9539 lt_NL2SP='tr \r\n \100\100'
9540 ;;
9541 esac
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9552 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9553 if ${lt_cv_ld_reload_flag+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 lt_cv_ld_reload_flag='-r'
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9559 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9560 reload_flag=$lt_cv_ld_reload_flag
9561 case $reload_flag in
9562 "" | " "*) ;;
9563 *) reload_flag=" $reload_flag" ;;
9564 esac
9565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9566 case $host_os in
9567 darwin*)
9568 if test "$GCC" = yes; then
9569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9570 else
9571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9572 fi
9573 ;;
9574 esac
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 if test -n "$ac_tool_prefix"; then
9585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if ${ac_cv_prog_OBJDUMP+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 if test -n "$OBJDUMP"; then
9593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9594 else
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606 done
9607 done
9608 IFS=$as_save_IFS
9609
9610 fi
9611 fi
9612 OBJDUMP=$ac_cv_prog_OBJDUMP
9613 if test -n "$OBJDUMP"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9615 $as_echo "$OBJDUMP" >&6; }
9616 else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9619 fi
9620
9621
9622 fi
9623 if test -z "$ac_cv_prog_OBJDUMP"; then
9624 ac_ct_OBJDUMP=$OBJDUMP
9625 # Extract the first word of "objdump", so it can be a program name with args.
9626 set dummy objdump; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test -n "$ac_ct_OBJDUMP"; then
9633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9637 do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646 done
9647 done
9648 IFS=$as_save_IFS
9649
9650 fi
9651 fi
9652 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9653 if test -n "$ac_ct_OBJDUMP"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9655 $as_echo "$ac_ct_OBJDUMP" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9659 fi
9660
9661 if test "x$ac_ct_OBJDUMP" = x; then
9662 OBJDUMP="false"
9663 else
9664 case $cross_compiling:$ac_tool_warned in
9665 yes:)
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9668 ac_tool_warned=yes ;;
9669 esac
9670 OBJDUMP=$ac_ct_OBJDUMP
9671 fi
9672 else
9673 OBJDUMP="$ac_cv_prog_OBJDUMP"
9674 fi
9675
9676 test -z "$OBJDUMP" && OBJDUMP=objdump
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9687 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9688 if ${lt_cv_deplibs_check_method+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 lt_cv_file_magic_cmd='$MAGIC_CMD'
9692 lt_cv_file_magic_test_file=
9693 lt_cv_deplibs_check_method='unknown'
9694 # Need to set the preceding variable on all platforms that support
9695 # interlibrary dependencies.
9696 # 'none' -- dependencies not supported.
9697 # `unknown' -- same as none, but documents that we really don't know.
9698 # 'pass_all' -- all dependencies passed with no checks.
9699 # 'test_compile' -- check by making test program.
9700 # 'file_magic [[regex]]' -- check by looking for files in library path
9701 # which responds to the $file_magic_cmd with a given extended regex.
9702 # If you have `file' or equivalent on your system and you're not sure
9703 # whether `pass_all' will *always* work, you probably want this one.
9704
9705 case $host_os in
9706 aix[4-9]*)
9707 lt_cv_deplibs_check_method=pass_all
9708 ;;
9709
9710 beos*)
9711 lt_cv_deplibs_check_method=pass_all
9712 ;;
9713
9714 bsdi[45]*)
9715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9716 lt_cv_file_magic_cmd='/usr/bin/file -L'
9717 lt_cv_file_magic_test_file=/shlib/libc.so
9718 ;;
9719
9720 cygwin*)
9721 # func_win32_libid is a shell function defined in ltmain.sh
9722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9723 lt_cv_file_magic_cmd='func_win32_libid'
9724 ;;
9725
9726 mingw* | pw32*)
9727 # Base MSYS/MinGW do not provide the 'file' command needed by
9728 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9729 # unless we find 'file', for example because we are cross-compiling.
9730 if ( file / ) >/dev/null 2>&1; then
9731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9732 lt_cv_file_magic_cmd='func_win32_libid'
9733 else
9734 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9735 lt_cv_file_magic_cmd='$OBJDUMP -f'
9736 fi
9737 ;;
9738
9739 cegcc)
9740 # use the weaker test based on 'objdump'. See mingw*.
9741 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9742 lt_cv_file_magic_cmd='$OBJDUMP -f'
9743 ;;
9744
9745 darwin* | rhapsody*)
9746 lt_cv_deplibs_check_method=pass_all
9747 ;;
9748
9749 freebsd* | dragonfly*)
9750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9751 case $host_cpu in
9752 i*86 )
9753 # Not sure whether the presence of OpenBSD here was a mistake.
9754 # Let's accept both of them until this is cleared up.
9755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9756 lt_cv_file_magic_cmd=/usr/bin/file
9757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9758 ;;
9759 esac
9760 else
9761 lt_cv_deplibs_check_method=pass_all
9762 fi
9763 ;;
9764
9765 gnu*)
9766 lt_cv_deplibs_check_method=pass_all
9767 ;;
9768
9769 hpux10.20* | hpux11*)
9770 lt_cv_file_magic_cmd=/usr/bin/file
9771 case $host_cpu in
9772 ia64*)
9773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9775 ;;
9776 hppa*64*)
9777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9779 ;;
9780 *)
9781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9782 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9783 ;;
9784 esac
9785 ;;
9786
9787 interix[3-9]*)
9788 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9790 ;;
9791
9792 irix5* | irix6* | nonstopux*)
9793 case $LD in
9794 *-32|*"-32 ") libmagic=32-bit;;
9795 *-n32|*"-n32 ") libmagic=N32;;
9796 *-64|*"-64 ") libmagic=64-bit;;
9797 *) libmagic=never-match;;
9798 esac
9799 lt_cv_deplibs_check_method=pass_all
9800 ;;
9801
9802 # This must be Linux ELF.
9803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9804 lt_cv_deplibs_check_method=pass_all
9805 ;;
9806
9807 netbsd* | netbsdelf*-gnu)
9808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9810 else
9811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9812 fi
9813 ;;
9814
9815 newos6*)
9816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9817 lt_cv_file_magic_cmd=/usr/bin/file
9818 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9819 ;;
9820
9821 *nto* | *qnx*)
9822 lt_cv_deplibs_check_method=pass_all
9823 ;;
9824
9825 openbsd*)
9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9828 else
9829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9830 fi
9831 ;;
9832
9833 osf3* | osf4* | osf5*)
9834 lt_cv_deplibs_check_method=pass_all
9835 ;;
9836
9837 rdos*)
9838 lt_cv_deplibs_check_method=pass_all
9839 ;;
9840
9841 solaris*)
9842 lt_cv_deplibs_check_method=pass_all
9843 ;;
9844
9845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9846 lt_cv_deplibs_check_method=pass_all
9847 ;;
9848
9849 sysv4 | sysv4.3*)
9850 case $host_vendor in
9851 motorola)
9852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9854 ;;
9855 ncr)
9856 lt_cv_deplibs_check_method=pass_all
9857 ;;
9858 sequent)
9859 lt_cv_file_magic_cmd='/bin/file'
9860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9861 ;;
9862 sni)
9863 lt_cv_file_magic_cmd='/bin/file'
9864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9865 lt_cv_file_magic_test_file=/lib/libc.so
9866 ;;
9867 siemens)
9868 lt_cv_deplibs_check_method=pass_all
9869 ;;
9870 pc)
9871 lt_cv_deplibs_check_method=pass_all
9872 ;;
9873 esac
9874 ;;
9875
9876 tpf*)
9877 lt_cv_deplibs_check_method=pass_all
9878 ;;
9879 esac
9880
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9884 file_magic_cmd=$lt_cv_file_magic_cmd
9885 deplibs_check_method=$lt_cv_deplibs_check_method
9886 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 if test -n "$ac_tool_prefix"; then
9900 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9901 set dummy ${ac_tool_prefix}ar; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_prog_AR+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 if test -n "$AR"; then
9908 ac_cv_prog_AR="$AR" # Let the user override the test.
9909 else
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9912 do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9917 ac_cv_prog_AR="${ac_tool_prefix}ar"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 break 2
9920 fi
9921 done
9922 done
9923 IFS=$as_save_IFS
9924
9925 fi
9926 fi
9927 AR=$ac_cv_prog_AR
9928 if test -n "$AR"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9930 $as_echo "$AR" >&6; }
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935
9936
9937 fi
9938 if test -z "$ac_cv_prog_AR"; then
9939 ac_ct_AR=$AR
9940 # Extract the first word of "ar", so it can be a program name with args.
9941 set dummy ar; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 if test -n "$ac_ct_AR"; then
9948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957 ac_cv_prog_ac_ct_AR="ar"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9960 fi
9961 done
9962 done
9963 IFS=$as_save_IFS
9964
9965 fi
9966 fi
9967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9968 if test -n "$ac_ct_AR"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9970 $as_echo "$ac_ct_AR" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975
9976 if test "x$ac_ct_AR" = x; then
9977 AR="false"
9978 else
9979 case $cross_compiling:$ac_tool_warned in
9980 yes:)
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9983 ac_tool_warned=yes ;;
9984 esac
9985 AR=$ac_ct_AR
9986 fi
9987 else
9988 AR="$ac_cv_prog_AR"
9989 fi
9990
9991 test -z "$AR" && AR=ar
9992 test -z "$AR_FLAGS" && AR_FLAGS=cru
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004 if test -n "$ac_tool_prefix"; then
10005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10006 set dummy ${ac_tool_prefix}strip; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_prog_STRIP+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10012 if test -n "$STRIP"; then
10013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10014 else
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10017 do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 break 2
10025 fi
10026 done
10027 done
10028 IFS=$as_save_IFS
10029
10030 fi
10031 fi
10032 STRIP=$ac_cv_prog_STRIP
10033 if test -n "$STRIP"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10035 $as_echo "$STRIP" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 fi
10040
10041
10042 fi
10043 if test -z "$ac_cv_prog_STRIP"; then
10044 ac_ct_STRIP=$STRIP
10045 # Extract the first word of "strip", so it can be a program name with args.
10046 set dummy strip; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 if test -n "$ac_ct_STRIP"; then
10053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10054 else
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10057 do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_ac_ct_STRIP="strip"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066 done
10067 done
10068 IFS=$as_save_IFS
10069
10070 fi
10071 fi
10072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10073 if test -n "$ac_ct_STRIP"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10075 $as_echo "$ac_ct_STRIP" >&6; }
10076 else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10079 fi
10080
10081 if test "x$ac_ct_STRIP" = x; then
10082 STRIP=":"
10083 else
10084 case $cross_compiling:$ac_tool_warned in
10085 yes:)
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10088 ac_tool_warned=yes ;;
10089 esac
10090 STRIP=$ac_ct_STRIP
10091 fi
10092 else
10093 STRIP="$ac_cv_prog_STRIP"
10094 fi
10095
10096 test -z "$STRIP" && STRIP=:
10097
10098
10099
10100
10101
10102
10103 if test -n "$ac_tool_prefix"; then
10104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if ${ac_cv_prog_RANLIB+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 if test -n "$RANLIB"; then
10112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10113 else
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10116 do
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10124 fi
10125 done
10126 done
10127 IFS=$as_save_IFS
10128
10129 fi
10130 fi
10131 RANLIB=$ac_cv_prog_RANLIB
10132 if test -n "$RANLIB"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10134 $as_echo "$RANLIB" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139
10140
10141 fi
10142 if test -z "$ac_cv_prog_RANLIB"; then
10143 ac_ct_RANLIB=$RANLIB
10144 # Extract the first word of "ranlib", so it can be a program name with args.
10145 set dummy ranlib; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 if test -n "$ac_ct_RANLIB"; then
10152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_ac_ct_RANLIB="ranlib"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10164 fi
10165 done
10166 done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10172 if test -n "$ac_ct_RANLIB"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10174 $as_echo "$ac_ct_RANLIB" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179
10180 if test "x$ac_ct_RANLIB" = x; then
10181 RANLIB=":"
10182 else
10183 case $cross_compiling:$ac_tool_warned in
10184 yes:)
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10187 ac_tool_warned=yes ;;
10188 esac
10189 RANLIB=$ac_ct_RANLIB
10190 fi
10191 else
10192 RANLIB="$ac_cv_prog_RANLIB"
10193 fi
10194
10195 test -z "$RANLIB" && RANLIB=:
10196
10197
10198
10199
10200
10201
10202 # Determine commands to create old-style static archives.
10203 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10204 old_postinstall_cmds='chmod 644 $oldlib'
10205 old_postuninstall_cmds=
10206
10207 if test -n "$RANLIB"; then
10208 case $host_os in
10209 openbsd*)
10210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10211 ;;
10212 *)
10213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10214 ;;
10215 esac
10216 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252 # If no C compiler was specified, use CC.
10253 LTCC=${LTCC-"$CC"}
10254
10255 # If no C compiler flags were specified, use CFLAGS.
10256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10257
10258 # Allow CC to be a program name with arguments.
10259 compiler=$CC
10260
10261
10262 # Check for command to grab the raw symbol name followed by C symbol from nm.
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10264 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10265 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268
10269 # These are sane defaults that work on at least a few old systems.
10270 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10271
10272 # Character class describing NM global symbol codes.
10273 symcode='[BCDEGRST]'
10274
10275 # Regexp to match symbols that can be accessed directly from C.
10276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10277
10278 # Define system-specific variables.
10279 case $host_os in
10280 aix*)
10281 symcode='[BCDT]'
10282 ;;
10283 cygwin* | mingw* | pw32* | cegcc*)
10284 symcode='[ABCDGISTW]'
10285 ;;
10286 hpux*)
10287 if test "$host_cpu" = ia64; then
10288 symcode='[ABCDEGRST]'
10289 fi
10290 ;;
10291 irix* | nonstopux*)
10292 symcode='[BCDEGRST]'
10293 ;;
10294 osf*)
10295 symcode='[BCDEGQRST]'
10296 ;;
10297 solaris*)
10298 symcode='[BDRT]'
10299 ;;
10300 sco3.2v5*)
10301 symcode='[DT]'
10302 ;;
10303 sysv4.2uw2*)
10304 symcode='[DT]'
10305 ;;
10306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10307 symcode='[ABDT]'
10308 ;;
10309 sysv4)
10310 symcode='[DFNSTU]'
10311 ;;
10312 esac
10313
10314 # If we're using GNU nm, then use its standard symbol codes.
10315 case `$NM -V 2>&1` in
10316 *GNU* | *'with BFD'*)
10317 symcode='[ABCDGIRSTW]' ;;
10318 esac
10319
10320 # Transform an extracted symbol line into a proper C declaration.
10321 # Some systems (esp. on ia64) link data and code symbols differently,
10322 # so use this general approach.
10323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10324
10325 # Transform an extracted symbol line into symbol name and symbol address
10326 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10327 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
10328
10329 # Handle CRLF in mingw tool chain
10330 opt_cr=
10331 case $build_os in
10332 mingw*)
10333 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10334 ;;
10335 esac
10336
10337 # Try without a prefix underscore, then with it.
10338 for ac_symprfx in "" "_"; do
10339
10340 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10341 symxfrm="\\1 $ac_symprfx\\2 \\2"
10342
10343 # Write the raw and C identifiers.
10344 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10345 # Fake it for dumpbin and say T for any non-static function
10346 # and D for any global variable.
10347 # Also find C++ and __fastcall symbols from MSVC++,
10348 # which start with @ or ?.
10349 lt_cv_sys_global_symbol_pipe="$AWK '"\
10350 " {last_section=section; section=\$ 3};"\
10351 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10352 " \$ 0!~/External *\|/{next};"\
10353 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10354 " {if(hide[section]) next};"\
10355 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10356 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10357 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10358 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10359 " ' prfx=^$ac_symprfx"
10360 else
10361 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10362 fi
10363
10364 # Check to see that the pipe works correctly.
10365 pipe_works=no
10366
10367 rm -f conftest*
10368 cat > conftest.$ac_ext <<_LT_EOF
10369 #ifdef __cplusplus
10370 extern "C" {
10371 #endif
10372 char nm_test_var;
10373 void nm_test_func(void);
10374 void nm_test_func(void){}
10375 #ifdef __cplusplus
10376 }
10377 #endif
10378 int main(){nm_test_var='a';nm_test_func();return(0);}
10379 _LT_EOF
10380
10381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10382 (eval $ac_compile) 2>&5
10383 ac_status=$?
10384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10385 test $ac_status = 0; }; then
10386 # Now try to grab the symbols.
10387 nlist=conftest.nm
10388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10389 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10390 ac_status=$?
10391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10392 test $ac_status = 0; } && test -s "$nlist"; then
10393 # Try sorting and uniquifying the output.
10394 if sort "$nlist" | uniq > "$nlist"T; then
10395 mv -f "$nlist"T "$nlist"
10396 else
10397 rm -f "$nlist"T
10398 fi
10399
10400 # Make sure that we snagged all the symbols we need.
10401 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10402 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10403 cat <<_LT_EOF > conftest.$ac_ext
10404 #ifdef __cplusplus
10405 extern "C" {
10406 #endif
10407
10408 _LT_EOF
10409 # Now generate the symbol file.
10410 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10411
10412 cat <<_LT_EOF >> conftest.$ac_ext
10413
10414 /* The mapping between symbol names and symbols. */
10415 const struct {
10416 const char *name;
10417 void *address;
10418 }
10419 lt__PROGRAM__LTX_preloaded_symbols[] =
10420 {
10421 { "@PROGRAM@", (void *) 0 },
10422 _LT_EOF
10423 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10424 cat <<\_LT_EOF >> conftest.$ac_ext
10425 {0, (void *) 0}
10426 };
10427
10428 /* This works around a problem in FreeBSD linker */
10429 #ifdef FREEBSD_WORKAROUND
10430 static const void *lt_preloaded_setup() {
10431 return lt__PROGRAM__LTX_preloaded_symbols;
10432 }
10433 #endif
10434
10435 #ifdef __cplusplus
10436 }
10437 #endif
10438 _LT_EOF
10439 # Now try linking the two files.
10440 mv conftest.$ac_objext conftstm.$ac_objext
10441 lt_save_LIBS="$LIBS"
10442 lt_save_CFLAGS="$CFLAGS"
10443 LIBS="conftstm.$ac_objext"
10444 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10446 (eval $ac_link) 2>&5
10447 ac_status=$?
10448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10450 pipe_works=yes
10451 fi
10452 LIBS="$lt_save_LIBS"
10453 CFLAGS="$lt_save_CFLAGS"
10454 else
10455 echo "cannot find nm_test_func in $nlist" >&5
10456 fi
10457 else
10458 echo "cannot find nm_test_var in $nlist" >&5
10459 fi
10460 else
10461 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10462 fi
10463 else
10464 echo "$progname: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 fi
10467 rm -rf conftest* conftst*
10468
10469 # Do not use the global_symbol_pipe unless it works.
10470 if test "$pipe_works" = yes; then
10471 break
10472 else
10473 lt_cv_sys_global_symbol_pipe=
10474 fi
10475 done
10476
10477 fi
10478
10479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10480 lt_cv_sys_global_symbol_to_cdecl=
10481 fi
10482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10484 $as_echo "failed" >&6; }
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10487 $as_echo "ok" >&6; }
10488 fi
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 @%:@ Check whether --enable-libtool-lock was given.
10512 if test "${enable_libtool_lock+set}" = set; then :
10513 enableval=$enable_libtool_lock;
10514 fi
10515
10516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10517
10518 # Some flags need to be propagated to the compiler or linker for good
10519 # libtool support.
10520 case $host in
10521 ia64-*-hpux*)
10522 # Find out which ABI we are using.
10523 echo 'int i;' > conftest.$ac_ext
10524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10528 test $ac_status = 0; }; then
10529 case `/usr/bin/file conftest.$ac_objext` in
10530 *ELF-32*)
10531 HPUX_IA64_MODE="32"
10532 ;;
10533 *ELF-64*)
10534 HPUX_IA64_MODE="64"
10535 ;;
10536 esac
10537 fi
10538 rm -rf conftest*
10539 ;;
10540 *-*-irix6*)
10541 # Find out which ABI we are using.
10542 echo '#line __oline__ "configure"' > conftest.$ac_ext
10543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547 test $ac_status = 0; }; then
10548 if test "$lt_cv_prog_gnu_ld" = yes; then
10549 case `/usr/bin/file conftest.$ac_objext` in
10550 *32-bit*)
10551 LD="${LD-ld} -melf32bsmip"
10552 ;;
10553 *N32*)
10554 LD="${LD-ld} -melf32bmipn32"
10555 ;;
10556 *64-bit*)
10557 LD="${LD-ld} -melf64bmip"
10558 ;;
10559 esac
10560 else
10561 case `/usr/bin/file conftest.$ac_objext` in
10562 *32-bit*)
10563 LD="${LD-ld} -32"
10564 ;;
10565 *N32*)
10566 LD="${LD-ld} -n32"
10567 ;;
10568 *64-bit*)
10569 LD="${LD-ld} -64"
10570 ;;
10571 esac
10572 fi
10573 fi
10574 rm -rf conftest*
10575 ;;
10576
10577 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10578 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10579 # Find out which ABI we are using.
10580 echo 'int i;' > conftest.$ac_ext
10581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10582 (eval $ac_compile) 2>&5
10583 ac_status=$?
10584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10585 test $ac_status = 0; }; then
10586 case `/usr/bin/file conftest.o` in
10587 *32-bit*)
10588 case $host in
10589 x86_64-*kfreebsd*-gnu)
10590 LD="${LD-ld} -m elf_i386_fbsd"
10591 ;;
10592 x86_64-*linux*)
10593 LD="${LD-ld} -m elf_i386"
10594 ;;
10595 ppc64-*linux*|powerpc64-*linux*)
10596 LD="${LD-ld} -m elf32ppclinux"
10597 ;;
10598 s390x-*linux*)
10599 LD="${LD-ld} -m elf_s390"
10600 ;;
10601 sparc64-*linux*)
10602 LD="${LD-ld} -m elf32_sparc"
10603 ;;
10604 esac
10605 ;;
10606 *64-bit*)
10607 case $host in
10608 x86_64-*kfreebsd*-gnu)
10609 LD="${LD-ld} -m elf_x86_64_fbsd"
10610 ;;
10611 x86_64-*linux*)
10612 LD="${LD-ld} -m elf_x86_64"
10613 ;;
10614 ppc*-*linux*|powerpc*-*linux*)
10615 LD="${LD-ld} -m elf64ppc"
10616 ;;
10617 s390*-*linux*|s390*-*tpf*)
10618 LD="${LD-ld} -m elf64_s390"
10619 ;;
10620 sparc*-*linux*)
10621 LD="${LD-ld} -m elf64_sparc"
10622 ;;
10623 esac
10624 ;;
10625 esac
10626 fi
10627 rm -rf conftest*
10628 ;;
10629
10630 *-*-sco3.2v5*)
10631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10632 SAVE_CFLAGS="$CFLAGS"
10633 CFLAGS="$CFLAGS -belf"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10635 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10636 if ${lt_cv_cc_needs_belf+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_ext=c
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647
10648 int
10649 main ()
10650 {
10651
10652 ;
10653 return 0;
10654 }
10655 _ACEOF
10656 if ac_fn_c_try_link "$LINENO"; then :
10657 lt_cv_cc_needs_belf=yes
10658 else
10659 lt_cv_cc_needs_belf=no
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 ac_ext=c
10664 ac_cpp='$CPP $CPPFLAGS'
10665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10668
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10671 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10672 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10674 CFLAGS="$SAVE_CFLAGS"
10675 fi
10676 ;;
10677 sparc*-*solaris*)
10678 # Find out which ABI we are using.
10679 echo 'int i;' > conftest.$ac_ext
10680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10681 (eval $ac_compile) 2>&5
10682 ac_status=$?
10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684 test $ac_status = 0; }; then
10685 case `/usr/bin/file conftest.o` in
10686 *64-bit*)
10687 case $lt_cv_prog_gnu_ld in
10688 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10689 *)
10690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10691 LD="${LD-ld} -64"
10692 fi
10693 ;;
10694 esac
10695 ;;
10696 esac
10697 fi
10698 rm -rf conftest*
10699 ;;
10700 esac
10701
10702 need_locks="$enable_libtool_lock"
10703
10704
10705 case $host_os in
10706 rhapsody* | darwin*)
10707 if test -n "$ac_tool_prefix"; then
10708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 if test -n "$DSYMUTIL"; then
10716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10717 else
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729 done
10730 done
10731 IFS=$as_save_IFS
10732
10733 fi
10734 fi
10735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10736 if test -n "$DSYMUTIL"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10738 $as_echo "$DSYMUTIL" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742 fi
10743
10744
10745 fi
10746 if test -z "$ac_cv_prog_DSYMUTIL"; then
10747 ac_ct_DSYMUTIL=$DSYMUTIL
10748 # Extract the first word of "dsymutil", so it can be a program name with args.
10749 set dummy dsymutil; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test -n "$ac_ct_DSYMUTIL"; then
10756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769 done
10770 done
10771 IFS=$as_save_IFS
10772
10773 fi
10774 fi
10775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10776 if test -n "$ac_ct_DSYMUTIL"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10782 fi
10783
10784 if test "x$ac_ct_DSYMUTIL" = x; then
10785 DSYMUTIL=":"
10786 else
10787 case $cross_compiling:$ac_tool_warned in
10788 yes:)
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10791 ac_tool_warned=yes ;;
10792 esac
10793 DSYMUTIL=$ac_ct_DSYMUTIL
10794 fi
10795 else
10796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10797 fi
10798
10799 if test -n "$ac_tool_prefix"; then
10800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if ${ac_cv_prog_NMEDIT+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test -n "$NMEDIT"; then
10808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10809 else
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10812 do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821 done
10822 done
10823 IFS=$as_save_IFS
10824
10825 fi
10826 fi
10827 NMEDIT=$ac_cv_prog_NMEDIT
10828 if test -n "$NMEDIT"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10830 $as_echo "$NMEDIT" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835
10836
10837 fi
10838 if test -z "$ac_cv_prog_NMEDIT"; then
10839 ac_ct_NMEDIT=$NMEDIT
10840 # Extract the first word of "nmedit", so it can be a program name with args.
10841 set dummy nmedit; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 if test -n "$ac_ct_NMEDIT"; then
10848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10849 else
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10852 do
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10860 fi
10861 done
10862 done
10863 IFS=$as_save_IFS
10864
10865 fi
10866 fi
10867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10868 if test -n "$ac_ct_NMEDIT"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10870 $as_echo "$ac_ct_NMEDIT" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 fi
10875
10876 if test "x$ac_ct_NMEDIT" = x; then
10877 NMEDIT=":"
10878 else
10879 case $cross_compiling:$ac_tool_warned in
10880 yes:)
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10883 ac_tool_warned=yes ;;
10884 esac
10885 NMEDIT=$ac_ct_NMEDIT
10886 fi
10887 else
10888 NMEDIT="$ac_cv_prog_NMEDIT"
10889 fi
10890
10891 if test -n "$ac_tool_prefix"; then
10892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if ${ac_cv_prog_LIPO+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test -n "$LIPO"; then
10900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10901 else
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10904 do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913 done
10914 done
10915 IFS=$as_save_IFS
10916
10917 fi
10918 fi
10919 LIPO=$ac_cv_prog_LIPO
10920 if test -n "$LIPO"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10922 $as_echo "$LIPO" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10926 fi
10927
10928
10929 fi
10930 if test -z "$ac_cv_prog_LIPO"; then
10931 ac_ct_LIPO=$LIPO
10932 # Extract the first word of "lipo", so it can be a program name with args.
10933 set dummy lipo; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$ac_ct_LIPO"; then
10940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_ac_ct_LIPO="lipo"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10960 if test -n "$ac_ct_LIPO"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10962 $as_echo "$ac_ct_LIPO" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967
10968 if test "x$ac_ct_LIPO" = x; then
10969 LIPO=":"
10970 else
10971 case $cross_compiling:$ac_tool_warned in
10972 yes:)
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10975 ac_tool_warned=yes ;;
10976 esac
10977 LIPO=$ac_ct_LIPO
10978 fi
10979 else
10980 LIPO="$ac_cv_prog_LIPO"
10981 fi
10982
10983 if test -n "$ac_tool_prefix"; then
10984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10985 set dummy ${ac_tool_prefix}otool; ac_word=$2
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 $as_echo_n "checking for $ac_word... " >&6; }
10988 if ${ac_cv_prog_OTOOL+:} false; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 if test -n "$OTOOL"; then
10992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10993 else
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005 done
11006 done
11007 IFS=$as_save_IFS
11008
11009 fi
11010 fi
11011 OTOOL=$ac_cv_prog_OTOOL
11012 if test -n "$OTOOL"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11014 $as_echo "$OTOOL" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11018 fi
11019
11020
11021 fi
11022 if test -z "$ac_cv_prog_OTOOL"; then
11023 ac_ct_OTOOL=$OTOOL
11024 # Extract the first word of "otool", so it can be a program name with args.
11025 set dummy otool; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 if test -n "$ac_ct_OTOOL"; then
11032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11033 else
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_ac_ct_OTOOL="otool"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045 done
11046 done
11047 IFS=$as_save_IFS
11048
11049 fi
11050 fi
11051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11052 if test -n "$ac_ct_OTOOL"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11054 $as_echo "$ac_ct_OTOOL" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11058 fi
11059
11060 if test "x$ac_ct_OTOOL" = x; then
11061 OTOOL=":"
11062 else
11063 case $cross_compiling:$ac_tool_warned in
11064 yes:)
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11067 ac_tool_warned=yes ;;
11068 esac
11069 OTOOL=$ac_ct_OTOOL
11070 fi
11071 else
11072 OTOOL="$ac_cv_prog_OTOOL"
11073 fi
11074
11075 if test -n "$ac_tool_prefix"; then
11076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_OTOOL64+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test -n "$OTOOL64"; then
11084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11085 else
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097 done
11098 done
11099 IFS=$as_save_IFS
11100
11101 fi
11102 fi
11103 OTOOL64=$ac_cv_prog_OTOOL64
11104 if test -n "$OTOOL64"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11106 $as_echo "$OTOOL64" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113 fi
11114 if test -z "$ac_cv_prog_OTOOL64"; then
11115 ac_ct_OTOOL64=$OTOOL64
11116 # Extract the first word of "otool64", so it can be a program name with args.
11117 set dummy otool64; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 if test -n "$ac_ct_OTOOL64"; then
11124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11125 else
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_ac_ct_OTOOL64="otool64"
11134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135 break 2
11136 fi
11137 done
11138 done
11139 IFS=$as_save_IFS
11140
11141 fi
11142 fi
11143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11144 if test -n "$ac_ct_OTOOL64"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11146 $as_echo "$ac_ct_OTOOL64" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151
11152 if test "x$ac_ct_OTOOL64" = x; then
11153 OTOOL64=":"
11154 else
11155 case $cross_compiling:$ac_tool_warned in
11156 yes:)
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11159 ac_tool_warned=yes ;;
11160 esac
11161 OTOOL64=$ac_ct_OTOOL64
11162 fi
11163 else
11164 OTOOL64="$ac_cv_prog_OTOOL64"
11165 fi
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11194 $as_echo_n "checking for -single_module linker flag... " >&6; }
11195 if ${lt_cv_apple_cc_single_mod+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 lt_cv_apple_cc_single_mod=no
11199 if test -z "${LT_MULTI_MODULE}"; then
11200 # By default we will add the -single_module flag. You can override
11201 # by either setting the environment variable LT_MULTI_MODULE
11202 # non-empty at configure time, or by adding -multi_module to the
11203 # link flags.
11204 rm -rf libconftest.dylib*
11205 echo "int foo(void){return 1;}" > conftest.c
11206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11207 -dynamiclib -Wl,-single_module conftest.c" >&5
11208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11210 _lt_result=$?
11211 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11212 lt_cv_apple_cc_single_mod=yes
11213 else
11214 cat conftest.err >&5
11215 fi
11216 rm -rf libconftest.dylib*
11217 rm -f conftest.*
11218 fi
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 lt_cv_ld_exported_symbols_list=no
11228 save_LDFLAGS=$LDFLAGS
11229 echo "_main" > conftest.sym
11230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233
11234 int
11235 main ()
11236 {
11237
11238 ;
11239 return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 lt_cv_ld_exported_symbols_list=yes
11244 else
11245 lt_cv_ld_exported_symbols_list=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LDFLAGS="$save_LDFLAGS"
11250
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11254 case $host_os in
11255 rhapsody* | darwin1.[012])
11256 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11257 darwin1.*)
11258 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11259 darwin*) # darwin 5.x on
11260 # if running on 10.5 or later, the deployment target defaults
11261 # to the OS version, if on x86, and 10.4, the deployment
11262 # target defaults to 10.4. Don't you love it?
11263 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11264 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11266 10.[012]*)
11267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11268 10.*)
11269 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11270 esac
11271 ;;
11272 esac
11273 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11274 _lt_dar_single_mod='$single_module'
11275 fi
11276 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11277 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11278 else
11279 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11280 fi
11281 if test "$DSYMUTIL" != ":"; then
11282 _lt_dsymutil='~$DSYMUTIL $lib || :'
11283 else
11284 _lt_dsymutil=
11285 fi
11286 ;;
11287 esac
11288
11289 for ac_header in dlfcn.h
11290 do :
11291 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11292 "
11293 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11294 cat >>confdefs.h <<_ACEOF
11295 @%:@define HAVE_DLFCN_H 1
11296 _ACEOF
11297
11298 fi
11299
11300 done
11301
11302
11303
11304 ac_ext=cpp
11305 ac_cpp='$CXXCPP $CPPFLAGS'
11306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11309 if test -z "$CXX"; then
11310 if test -n "$CCC"; then
11311 CXX=$CCC
11312 else
11313 if test -n "$ac_tool_prefix"; then
11314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11315 do
11316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_prog_CXX+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 if test -n "$CXX"; then
11324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11336 fi
11337 done
11338 done
11339 IFS=$as_save_IFS
11340
11341 fi
11342 fi
11343 CXX=$ac_cv_prog_CXX
11344 if test -n "$CXX"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11346 $as_echo "$CXX" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351
11352
11353 test -n "$CXX" && break
11354 done
11355 fi
11356 if test -z "$CXX"; then
11357 ac_ct_CXX=$CXX
11358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11359 do
11360 # Extract the first word of "$ac_prog", so it can be a program name with args.
11361 set dummy $ac_prog; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 if test -n "$ac_ct_CXX"; then
11368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_ac_ct_CXX="$ac_prog"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11388 if test -n "$ac_ct_CXX"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11390 $as_echo "$ac_ct_CXX" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397 test -n "$ac_ct_CXX" && break
11398 done
11399
11400 if test "x$ac_ct_CXX" = x; then
11401 CXX="g++"
11402 else
11403 case $cross_compiling:$ac_tool_warned in
11404 yes:)
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11407 ac_tool_warned=yes ;;
11408 esac
11409 CXX=$ac_ct_CXX
11410 fi
11411 fi
11412
11413 fi
11414 fi
11415 # Provide some information about the compiler.
11416 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11417 set X $ac_compile
11418 ac_compiler=$2
11419 for ac_option in --version -v -V -qversion; do
11420 { { ac_try="$ac_compiler $ac_option >&5"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11426 $as_echo "$ac_try_echo"; } >&5
11427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11428 ac_status=$?
11429 if test -s conftest.err; then
11430 sed '10a\
11431 ... rest of stderr output deleted ...
11432 10q' conftest.err >conftest.er1
11433 cat conftest.er1 >&5
11434 fi
11435 rm -f conftest.er1 conftest.err
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }
11438 done
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11441 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11442 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447
11448 int
11449 main ()
11450 {
11451 #ifndef __GNUC__
11452 choke me
11453 #endif
11454
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_cxx_try_compile "$LINENO"; then :
11460 ac_compiler_gnu=yes
11461 else
11462 ac_compiler_gnu=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11466
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11469 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11470 if test $ac_compiler_gnu = yes; then
11471 GXX=yes
11472 else
11473 GXX=
11474 fi
11475 ac_test_CXXFLAGS=${CXXFLAGS+set}
11476 ac_save_CXXFLAGS=$CXXFLAGS
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11478 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11479 if ${ac_cv_prog_cxx_g+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11483 ac_cxx_werror_flag=yes
11484 ac_cv_prog_cxx_g=no
11485 CXXFLAGS="-g"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488
11489 int
11490 main ()
11491 {
11492
11493 ;
11494 return 0;
11495 }
11496 _ACEOF
11497 if ac_fn_cxx_try_compile "$LINENO"; then :
11498 ac_cv_prog_cxx_g=yes
11499 else
11500 CXXFLAGS=""
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 int
11505 main ()
11506 {
11507
11508 ;
11509 return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_cxx_try_compile "$LINENO"; then :
11513
11514 else
11515 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11516 CXXFLAGS="-g"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519
11520 int
11521 main ()
11522 {
11523
11524 ;
11525 return 0;
11526 }
11527 _ACEOF
11528 if ac_fn_cxx_try_compile "$LINENO"; then :
11529 ac_cv_prog_cxx_g=yes
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11539 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11540 if test "$ac_test_CXXFLAGS" = set; then
11541 CXXFLAGS=$ac_save_CXXFLAGS
11542 elif test $ac_cv_prog_cxx_g = yes; then
11543 if test "$GXX" = yes; then
11544 CXXFLAGS="-g -O2"
11545 else
11546 CXXFLAGS="-g"
11547 fi
11548 else
11549 if test "$GXX" = yes; then
11550 CXXFLAGS="-O2"
11551 else
11552 CXXFLAGS=
11553 fi
11554 fi
11555 ac_ext=c
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560
11561 depcc="$CXX" am_compiler_list=
11562
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11564 $as_echo_n "checking dependency style of $depcc... " >&6; }
11565 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11569 # We make a subdir and do the tests there. Otherwise we can end up
11570 # making bogus files that we don't know about and never remove. For
11571 # instance it was reported that on HP-UX the gcc test will end up
11572 # making a dummy file named `D' -- because `-MD' means `put the output
11573 # in D'.
11574 mkdir conftest.dir
11575 # Copy depcomp to subdir because otherwise we won't find it if we're
11576 # using a relative directory.
11577 cp "$am_depcomp" conftest.dir
11578 cd conftest.dir
11579 # We will build objects and dependencies in a subdirectory because
11580 # it helps to detect inapplicable dependency modes. For instance
11581 # both Tru64's cc and ICC support -MD to output dependencies as a
11582 # side effect of compilation, but ICC will put the dependencies in
11583 # the current directory while Tru64 will put them in the object
11584 # directory.
11585 mkdir sub
11586
11587 am_cv_CXX_dependencies_compiler_type=none
11588 if test "$am_compiler_list" = ""; then
11589 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11590 fi
11591 am__universal=false
11592 case " $depcc " in #(
11593 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11594 esac
11595
11596 for depmode in $am_compiler_list; do
11597 # Setup a source with many dependencies, because some compilers
11598 # like to wrap large dependency lists on column 80 (with \), and
11599 # we should not choose a depcomp mode which is confused by this.
11600 #
11601 # We need to recreate these files for each test, as the compiler may
11602 # overwrite some of them when testing with obscure command lines.
11603 # This happens at least with the AIX C compiler.
11604 : > sub/conftest.c
11605 for i in 1 2 3 4 5 6; do
11606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11608 # Solaris 8's {/usr,}/bin/sh.
11609 touch sub/conftst$i.h
11610 done
11611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11612
11613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11614 # mode. It turns out that the SunPro C++ compiler does not properly
11615 # handle `-M -o', and we need to detect this. Also, some Intel
11616 # versions had trouble with output in subdirs
11617 am__obj=sub/conftest.${OBJEXT-o}
11618 am__minus_obj="-o $am__obj"
11619 case $depmode in
11620 gcc)
11621 # This depmode causes a compiler race in universal mode.
11622 test "$am__universal" = false || continue
11623 ;;
11624 nosideeffect)
11625 # after this tag, mechanisms are not by side-effect, so they'll
11626 # only be used when explicitly requested
11627 if test "x$enable_dependency_tracking" = xyes; then
11628 continue
11629 else
11630 break
11631 fi
11632 ;;
11633 msvisualcpp | msvcmsys)
11634 # This compiler won't grok `-c -o', but also, the minuso test has
11635 # not run yet. These depmodes are late enough in the game, and
11636 # so weak that their functioning should not be impacted.
11637 am__obj=conftest.${OBJEXT-o}
11638 am__minus_obj=
11639 ;;
11640 none) break ;;
11641 esac
11642 if depmode=$depmode \
11643 source=sub/conftest.c object=$am__obj \
11644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11645 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11646 >/dev/null 2>conftest.err &&
11647 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11648 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11649 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11650 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11651 # icc doesn't choke on unknown options, it will just issue warnings
11652 # or remarks (even with -Werror). So we grep stderr for any message
11653 # that says an option was ignored or not supported.
11654 # When given -MP, icc 7.0 and 7.1 complain thusly:
11655 # icc: Command line warning: ignoring option '-M'; no argument required
11656 # The diagnosis changed in icc 8.0:
11657 # icc: Command line remark: option '-MP' not supported
11658 if (grep 'ignoring option' conftest.err ||
11659 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11660 am_cv_CXX_dependencies_compiler_type=$depmode
11661 break
11662 fi
11663 fi
11664 done
11665
11666 cd ..
11667 rm -rf conftest.dir
11668 else
11669 am_cv_CXX_dependencies_compiler_type=none
11670 fi
11671
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11674 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11675 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11676
11677 if
11678 test "x$enable_dependency_tracking" != xno \
11679 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11680 am__fastdepCXX_TRUE=
11681 am__fastdepCXX_FALSE='#'
11682 else
11683 am__fastdepCXX_TRUE='#'
11684 am__fastdepCXX_FALSE=
11685 fi
11686
11687
11688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11689 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11690 (test "X$CXX" != "Xg++"))) ; then
11691 ac_ext=cpp
11692 ac_cpp='$CXXCPP $CPPFLAGS'
11693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11697 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11698 if test -z "$CXXCPP"; then
11699 if ${ac_cv_prog_CXXCPP+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 # Double quotes because CXXCPP needs to be expanded
11703 for CXXCPP in "$CXX -E" "/lib/cpp"
11704 do
11705 ac_preproc_ok=false
11706 for ac_cxx_preproc_warn_flag in '' yes
11707 do
11708 # Use a header file that comes with gcc, so configuring glibc
11709 # with a fresh cross-compiler works.
11710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 # <limits.h> exists even on freestanding compilers.
11712 # On the NeXT, cc -E runs the code through the compiler's parser,
11713 # not just through cpp. "Syntax error" is here to catch this case.
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 @%:@ifdef __STDC__
11717 @%:@ include <limits.h>
11718 @%:@else
11719 @%:@ include <assert.h>
11720 @%:@endif
11721 Syntax error
11722 _ACEOF
11723 if ac_fn_cxx_try_cpp "$LINENO"; then :
11724
11725 else
11726 # Broken: fails on valid input.
11727 continue
11728 fi
11729 rm -f conftest.err conftest.i conftest.$ac_ext
11730
11731 # OK, works on sane cases. Now check whether nonexistent headers
11732 # can be detected and how.
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11735 @%:@include <ac_nonexistent.h>
11736 _ACEOF
11737 if ac_fn_cxx_try_cpp "$LINENO"; then :
11738 # Broken: success on invalid input.
11739 continue
11740 else
11741 # Passes both tests.
11742 ac_preproc_ok=:
11743 break
11744 fi
11745 rm -f conftest.err conftest.i conftest.$ac_ext
11746
11747 done
11748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11749 rm -f conftest.i conftest.err conftest.$ac_ext
11750 if $ac_preproc_ok; then :
11751 break
11752 fi
11753
11754 done
11755 ac_cv_prog_CXXCPP=$CXXCPP
11756
11757 fi
11758 CXXCPP=$ac_cv_prog_CXXCPP
11759 else
11760 ac_cv_prog_CXXCPP=$CXXCPP
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11763 $as_echo "$CXXCPP" >&6; }
11764 ac_preproc_ok=false
11765 for ac_cxx_preproc_warn_flag in '' yes
11766 do
11767 # Use a header file that comes with gcc, so configuring glibc
11768 # with a fresh cross-compiler works.
11769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11770 # <limits.h> exists even on freestanding compilers.
11771 # On the NeXT, cc -E runs the code through the compiler's parser,
11772 # not just through cpp. "Syntax error" is here to catch this case.
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 @%:@ifdef __STDC__
11776 @%:@ include <limits.h>
11777 @%:@else
11778 @%:@ include <assert.h>
11779 @%:@endif
11780 Syntax error
11781 _ACEOF
11782 if ac_fn_cxx_try_cpp "$LINENO"; then :
11783
11784 else
11785 # Broken: fails on valid input.
11786 continue
11787 fi
11788 rm -f conftest.err conftest.i conftest.$ac_ext
11789
11790 # OK, works on sane cases. Now check whether nonexistent headers
11791 # can be detected and how.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 @%:@include <ac_nonexistent.h>
11795 _ACEOF
11796 if ac_fn_cxx_try_cpp "$LINENO"; then :
11797 # Broken: success on invalid input.
11798 continue
11799 else
11800 # Passes both tests.
11801 ac_preproc_ok=:
11802 break
11803 fi
11804 rm -f conftest.err conftest.i conftest.$ac_ext
11805
11806 done
11807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11808 rm -f conftest.i conftest.err conftest.$ac_ext
11809 if $ac_preproc_ok; then :
11810
11811 else
11812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11814 _lt_caught_CXX_error=yes; }
11815 fi
11816
11817 ac_ext=c
11818 ac_cpp='$CPP $CPPFLAGS'
11819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11822
11823 else
11824 _lt_caught_CXX_error=yes
11825 fi
11826
11827
11828
11829
11830
11831 # Set options
11832
11833
11834
11835 enable_dlopen=no
11836
11837
11838 enable_win32_dll=no
11839
11840
11841
11842
11843
11844 @%:@ Check whether --with-pic was given.
11845 if test "${with_pic+set}" = set; then :
11846 withval=$with_pic; pic_mode="$withval"
11847 else
11848 pic_mode=default
11849 fi
11850
11851
11852 test -z "$pic_mode" && pic_mode=default
11853
11854
11855
11856
11857
11858
11859
11860 @%:@ Check whether --enable-fast-install was given.
11861 if test "${enable_fast_install+set}" = set; then :
11862 enableval=$enable_fast_install; p=${PACKAGE-default}
11863 case $enableval in
11864 yes) enable_fast_install=yes ;;
11865 no) enable_fast_install=no ;;
11866 *)
11867 enable_fast_install=no
11868 # Look at the argument we got. We use all the common list separators.
11869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11870 for pkg in $enableval; do
11871 IFS="$lt_save_ifs"
11872 if test "X$pkg" = "X$p"; then
11873 enable_fast_install=yes
11874 fi
11875 done
11876 IFS="$lt_save_ifs"
11877 ;;
11878 esac
11879 else
11880 enable_fast_install=yes
11881 fi
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893 # This can be used to rebuild libtool when needed
11894 LIBTOOL_DEPS="$ltmain"
11895
11896 # Always use our own libtool.
11897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923 test -z "$LN_S" && LN_S="ln -s"
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938 if test -n "${ZSH_VERSION+set}" ; then
11939 setopt NO_GLOB_SUBST
11940 fi
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11943 $as_echo_n "checking for objdir... " >&6; }
11944 if ${lt_cv_objdir+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 rm -f .libs 2>/dev/null
11948 mkdir .libs 2>/dev/null
11949 if test -d .libs; then
11950 lt_cv_objdir=.libs
11951 else
11952 # MS-DOS does not allow filenames that begin with a dot.
11953 lt_cv_objdir=_libs
11954 fi
11955 rmdir .libs 2>/dev/null
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11958 $as_echo "$lt_cv_objdir" >&6; }
11959 objdir=$lt_cv_objdir
11960
11961
11962
11963
11964
11965 cat >>confdefs.h <<_ACEOF
11966 @%:@define LT_OBJDIR "$lt_cv_objdir/"
11967 _ACEOF
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 case $host_os in
11986 aix3*)
11987 # AIX sometimes has problems with the GCC collect2 program. For some
11988 # reason, if we set the COLLECT_NAMES environment variable, the problems
11989 # vanish in a puff of smoke.
11990 if test "X${COLLECT_NAMES+set}" != Xset; then
11991 COLLECT_NAMES=
11992 export COLLECT_NAMES
11993 fi
11994 ;;
11995 esac
11996
11997 # Sed substitution that helps us do robust quoting. It backslashifies
11998 # metacharacters that are still active within double-quoted strings.
11999 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12000
12001 # Same as above, but do not quote variable references.
12002 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12003
12004 # Sed substitution to delay expansion of an escaped shell variable in a
12005 # double_quote_subst'ed string.
12006 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12007
12008 # Sed substitution to delay expansion of an escaped single quote.
12009 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12010
12011 # Sed substitution to avoid accidental globbing in evaled expressions
12012 no_glob_subst='s/\*/\\\*/g'
12013
12014 # Global variables:
12015 ofile=libtool
12016 can_build_shared=yes
12017
12018 # All known linkers require a `.a' archive for static linking (except MSVC,
12019 # which needs '.lib').
12020 libext=a
12021
12022 with_gnu_ld="$lt_cv_prog_gnu_ld"
12023
12024 old_CC="$CC"
12025 old_CFLAGS="$CFLAGS"
12026
12027 # Set sane defaults for various variables
12028 test -z "$CC" && CC=cc
12029 test -z "$LTCC" && LTCC=$CC
12030 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12031 test -z "$LD" && LD=ld
12032 test -z "$ac_objext" && ac_objext=o
12033
12034 for cc_temp in $compiler""; do
12035 case $cc_temp in
12036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12038 \-*) ;;
12039 *) break;;
12040 esac
12041 done
12042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12043
12044
12045 # Only perform the check for file, if the check method requires it
12046 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12047 case $deplibs_check_method in
12048 file_magic*)
12049 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12051 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12052 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case $MAGIC_CMD in
12056 [\\/*] | ?:[\\/]*)
12057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12058 ;;
12059 *)
12060 lt_save_MAGIC_CMD="$MAGIC_CMD"
12061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12062 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12063 for ac_dir in $ac_dummy; do
12064 IFS="$lt_save_ifs"
12065 test -z "$ac_dir" && ac_dir=.
12066 if test -f $ac_dir/${ac_tool_prefix}file; then
12067 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12068 if test -n "$file_magic_test_file"; then
12069 case $deplibs_check_method in
12070 "file_magic "*)
12071 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12074 $EGREP "$file_magic_regex" > /dev/null; then
12075 :
12076 else
12077 cat <<_LT_EOF 1>&2
12078
12079 *** Warning: the command libtool uses to detect shared libraries,
12080 *** $file_magic_cmd, produces output that libtool cannot recognize.
12081 *** The result is that libtool may fail to recognize shared libraries
12082 *** as such. This will affect the creation of libtool libraries that
12083 *** depend on shared libraries, but programs linked with such libtool
12084 *** libraries will work regardless of this problem. Nevertheless, you
12085 *** may want to report the problem to your system manager and/or to
12086 *** bug-libtool@gnu.org
12087
12088 _LT_EOF
12089 fi ;;
12090 esac
12091 fi
12092 break
12093 fi
12094 done
12095 IFS="$lt_save_ifs"
12096 MAGIC_CMD="$lt_save_MAGIC_CMD"
12097 ;;
12098 esac
12099 fi
12100
12101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12102 if test -n "$MAGIC_CMD"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12104 $as_echo "$MAGIC_CMD" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110
12111
12112
12113
12114 if test -z "$lt_cv_path_MAGIC_CMD"; then
12115 if test -n "$ac_tool_prefix"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12117 $as_echo_n "checking for file... " >&6; }
12118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 case $MAGIC_CMD in
12122 [\\/*] | ?:[\\/]*)
12123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12124 ;;
12125 *)
12126 lt_save_MAGIC_CMD="$MAGIC_CMD"
12127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12129 for ac_dir in $ac_dummy; do
12130 IFS="$lt_save_ifs"
12131 test -z "$ac_dir" && ac_dir=.
12132 if test -f $ac_dir/file; then
12133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12134 if test -n "$file_magic_test_file"; then
12135 case $deplibs_check_method in
12136 "file_magic "*)
12137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12140 $EGREP "$file_magic_regex" > /dev/null; then
12141 :
12142 else
12143 cat <<_LT_EOF 1>&2
12144
12145 *** Warning: the command libtool uses to detect shared libraries,
12146 *** $file_magic_cmd, produces output that libtool cannot recognize.
12147 *** The result is that libtool may fail to recognize shared libraries
12148 *** as such. This will affect the creation of libtool libraries that
12149 *** depend on shared libraries, but programs linked with such libtool
12150 *** libraries will work regardless of this problem. Nevertheless, you
12151 *** may want to report the problem to your system manager and/or to
12152 *** bug-libtool@gnu.org
12153
12154 _LT_EOF
12155 fi ;;
12156 esac
12157 fi
12158 break
12159 fi
12160 done
12161 IFS="$lt_save_ifs"
12162 MAGIC_CMD="$lt_save_MAGIC_CMD"
12163 ;;
12164 esac
12165 fi
12166
12167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12168 if test -n "$MAGIC_CMD"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12170 $as_echo "$MAGIC_CMD" >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12174 fi
12175
12176
12177 else
12178 MAGIC_CMD=:
12179 fi
12180 fi
12181
12182 fi
12183 ;;
12184 esac
12185
12186 # Use C for the default configuration in the libtool script
12187
12188 lt_save_CC="$CC"
12189 ac_ext=c
12190 ac_cpp='$CPP $CPPFLAGS'
12191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12194
12195
12196 # Source file extension for C test sources.
12197 ac_ext=c
12198
12199 # Object file extension for compiled C test sources.
12200 objext=o
12201 objext=$objext
12202
12203 # Code to be used in simple compile tests
12204 lt_simple_compile_test_code="int some_variable = 0;"
12205
12206 # Code to be used in simple link tests
12207 lt_simple_link_test_code='int main(){return(0);}'
12208
12209
12210
12211
12212
12213
12214
12215 # If no C compiler was specified, use CC.
12216 LTCC=${LTCC-"$CC"}
12217
12218 # If no C compiler flags were specified, use CFLAGS.
12219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12220
12221 # Allow CC to be a program name with arguments.
12222 compiler=$CC
12223
12224 # Save the default compiler, since it gets overwritten when the other
12225 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12226 compiler_DEFAULT=$CC
12227
12228 # save warnings/boilerplate of simple test code
12229 ac_outfile=conftest.$ac_objext
12230 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12231 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12232 _lt_compiler_boilerplate=`cat conftest.err`
12233 $RM conftest*
12234
12235 ac_outfile=conftest.$ac_objext
12236 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12237 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12238 _lt_linker_boilerplate=`cat conftest.err`
12239 $RM -r conftest*
12240
12241
12242 ## CAVEAT EMPTOR:
12243 ## There is no encapsulation within the following macros, do not change
12244 ## the running order or otherwise move them around unless you know exactly
12245 ## what you are doing...
12246 if test -n "$compiler"; then
12247
12248 lt_prog_compiler_no_builtin_flag=
12249
12250 if test "$GCC" = yes; then
12251 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12252
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12254 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12255 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 lt_cv_prog_compiler_rtti_exceptions=no
12259 ac_outfile=conftest.$ac_objext
12260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12261 lt_compiler_flag="-fno-rtti -fno-exceptions"
12262 # Insert the option either (1) after the last *FLAGS variable, or
12263 # (2) before a word containing "conftest.", or (3) at the end.
12264 # Note that $ac_compile itself does not contain backslashes and begins
12265 # with a dollar sign (not a hyphen), so the echo should work correctly.
12266 # The option is referenced via a variable to avoid confusing sed.
12267 lt_compile=`echo "$ac_compile" | $SED \
12268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12270 -e 's:$: $lt_compiler_flag:'`
12271 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12272 (eval "$lt_compile" 2>conftest.err)
12273 ac_status=$?
12274 cat conftest.err >&5
12275 echo "$as_me:__oline__: \$? = $ac_status" >&5
12276 if (exit $ac_status) && test -s "$ac_outfile"; then
12277 # The compiler can only warn and ignore the option if not recognized
12278 # So say no if there are warnings other than the usual output.
12279 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12282 lt_cv_prog_compiler_rtti_exceptions=yes
12283 fi
12284 fi
12285 $RM conftest*
12286
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12289 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12290
12291 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12293 else
12294 :
12295 fi
12296
12297 fi
12298
12299
12300
12301
12302
12303
12304 lt_prog_compiler_wl=
12305 lt_prog_compiler_pic=
12306 lt_prog_compiler_static=
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12309 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12310
12311 if test "$GCC" = yes; then
12312 lt_prog_compiler_wl='-Wl,'
12313 lt_prog_compiler_static='-static'
12314
12315 case $host_os in
12316 aix*)
12317 # All AIX code is PIC.
12318 if test "$host_cpu" = ia64; then
12319 # AIX 5 now supports IA64 processor
12320 lt_prog_compiler_static='-Bstatic'
12321 fi
12322 ;;
12323
12324 amigaos*)
12325 case $host_cpu in
12326 powerpc)
12327 # see comment about AmigaOS4 .so support
12328 lt_prog_compiler_pic='-fPIC'
12329 ;;
12330 m68k)
12331 # FIXME: we need at least 68020 code to build shared libraries, but
12332 # adding the `-m68020' flag to GCC prevents building anything better,
12333 # like `-m68040'.
12334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12335 ;;
12336 esac
12337 ;;
12338
12339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12340 # PIC is the default for these OSes.
12341 ;;
12342
12343 mingw* | cygwin* | pw32* | os2* | cegcc*)
12344 # This hack is so that the source file can tell whether it is being
12345 # built for inclusion in a dll (and should export symbols for example).
12346 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12347 # (--disable-auto-import) libraries
12348 lt_prog_compiler_pic='-DDLL_EXPORT'
12349 ;;
12350
12351 darwin* | rhapsody*)
12352 # PIC is the default on this platform
12353 # Common symbols not allowed in MH_DYLIB files
12354 lt_prog_compiler_pic='-fno-common'
12355 ;;
12356
12357 hpux*)
12358 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12359 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12360 # sets the default TLS model and affects inlining.
12361 case $host_cpu in
12362 hppa*64*)
12363 # +Z the default
12364 ;;
12365 *)
12366 lt_prog_compiler_pic='-fPIC'
12367 ;;
12368 esac
12369 ;;
12370
12371 interix[3-9]*)
12372 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12373 # Instead, we relocate shared libraries at runtime.
12374 ;;
12375
12376 msdosdjgpp*)
12377 # Just because we use GCC doesn't mean we suddenly get shared libraries
12378 # on systems that don't support them.
12379 lt_prog_compiler_can_build_shared=no
12380 enable_shared=no
12381 ;;
12382
12383 *nto* | *qnx*)
12384 # QNX uses GNU C++, but need to define -shared option too, otherwise
12385 # it will coredump.
12386 lt_prog_compiler_pic='-fPIC -shared'
12387 ;;
12388
12389 sysv4*MP*)
12390 if test -d /usr/nec; then
12391 lt_prog_compiler_pic=-Kconform_pic
12392 fi
12393 ;;
12394
12395 *)
12396 lt_prog_compiler_pic='-fPIC'
12397 ;;
12398 esac
12399 else
12400 # PORTME Check for flag to pass linker flags through the system compiler.
12401 case $host_os in
12402 aix*)
12403 lt_prog_compiler_wl='-Wl,'
12404 if test "$host_cpu" = ia64; then
12405 # AIX 5 now supports IA64 processor
12406 lt_prog_compiler_static='-Bstatic'
12407 else
12408 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12409 fi
12410 ;;
12411
12412 mingw* | cygwin* | pw32* | os2* | cegcc*)
12413 # This hack is so that the source file can tell whether it is being
12414 # built for inclusion in a dll (and should export symbols for example).
12415 lt_prog_compiler_pic='-DDLL_EXPORT'
12416 ;;
12417
12418 hpux9* | hpux10* | hpux11*)
12419 lt_prog_compiler_wl='-Wl,'
12420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12421 # not for PA HP-UX.
12422 case $host_cpu in
12423 hppa*64*|ia64*)
12424 # +Z the default
12425 ;;
12426 *)
12427 lt_prog_compiler_pic='+Z'
12428 ;;
12429 esac
12430 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12431 lt_prog_compiler_static='${wl}-a ${wl}archive'
12432 ;;
12433
12434 irix5* | irix6* | nonstopux*)
12435 lt_prog_compiler_wl='-Wl,'
12436 # PIC (with -KPIC) is the default.
12437 lt_prog_compiler_static='-non_shared'
12438 ;;
12439
12440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12441 case $cc_basename in
12442 # old Intel for x86_64 which still supported -KPIC.
12443 ecc*)
12444 lt_prog_compiler_wl='-Wl,'
12445 lt_prog_compiler_pic='-KPIC'
12446 lt_prog_compiler_static='-static'
12447 ;;
12448 # icc used to be incompatible with GCC.
12449 # ICC 10 doesn't accept -KPIC any more.
12450 icc* | ifort*)
12451 lt_prog_compiler_wl='-Wl,'
12452 lt_prog_compiler_pic='-fPIC'
12453 lt_prog_compiler_static='-static'
12454 ;;
12455 # Lahey Fortran 8.1.
12456 lf95*)
12457 lt_prog_compiler_wl='-Wl,'
12458 lt_prog_compiler_pic='--shared'
12459 lt_prog_compiler_static='--static'
12460 ;;
12461 pgcc* | pgf77* | pgf90* | pgf95*)
12462 # Portland Group compilers (*not* the Pentium gcc compiler,
12463 # which looks to be a dead project)
12464 lt_prog_compiler_wl='-Wl,'
12465 lt_prog_compiler_pic='-fpic'
12466 lt_prog_compiler_static='-Bstatic'
12467 ;;
12468 ccc*)
12469 lt_prog_compiler_wl='-Wl,'
12470 # All Alpha code is PIC.
12471 lt_prog_compiler_static='-non_shared'
12472 ;;
12473 xl*)
12474 # IBM XL C 8.0/Fortran 10.1 on PPC
12475 lt_prog_compiler_wl='-Wl,'
12476 lt_prog_compiler_pic='-qpic'
12477 lt_prog_compiler_static='-qstaticlink'
12478 ;;
12479 *)
12480 case `$CC -V 2>&1 | sed 5q` in
12481 *Sun\ C*)
12482 # Sun C 5.9
12483 lt_prog_compiler_pic='-KPIC'
12484 lt_prog_compiler_static='-Bstatic'
12485 lt_prog_compiler_wl='-Wl,'
12486 ;;
12487 *Sun\ F*)
12488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12489 lt_prog_compiler_pic='-KPIC'
12490 lt_prog_compiler_static='-Bstatic'
12491 lt_prog_compiler_wl=''
12492 ;;
12493 esac
12494 ;;
12495 esac
12496 ;;
12497
12498 newsos6)
12499 lt_prog_compiler_pic='-KPIC'
12500 lt_prog_compiler_static='-Bstatic'
12501 ;;
12502
12503 *nto* | *qnx*)
12504 # QNX uses GNU C++, but need to define -shared option too, otherwise
12505 # it will coredump.
12506 lt_prog_compiler_pic='-fPIC -shared'
12507 ;;
12508
12509 osf3* | osf4* | osf5*)
12510 lt_prog_compiler_wl='-Wl,'
12511 # All OSF/1 code is PIC.
12512 lt_prog_compiler_static='-non_shared'
12513 ;;
12514
12515 rdos*)
12516 lt_prog_compiler_static='-non_shared'
12517 ;;
12518
12519 solaris*)
12520 lt_prog_compiler_pic='-KPIC'
12521 lt_prog_compiler_static='-Bstatic'
12522 case $cc_basename in
12523 f77* | f90* | f95*)
12524 lt_prog_compiler_wl='-Qoption ld ';;
12525 *)
12526 lt_prog_compiler_wl='-Wl,';;
12527 esac
12528 ;;
12529
12530 sunos4*)
12531 lt_prog_compiler_wl='-Qoption ld '
12532 lt_prog_compiler_pic='-PIC'
12533 lt_prog_compiler_static='-Bstatic'
12534 ;;
12535
12536 sysv4 | sysv4.2uw2* | sysv4.3*)
12537 lt_prog_compiler_wl='-Wl,'
12538 lt_prog_compiler_pic='-KPIC'
12539 lt_prog_compiler_static='-Bstatic'
12540 ;;
12541
12542 sysv4*MP*)
12543 if test -d /usr/nec ;then
12544 lt_prog_compiler_pic='-Kconform_pic'
12545 lt_prog_compiler_static='-Bstatic'
12546 fi
12547 ;;
12548
12549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12550 lt_prog_compiler_wl='-Wl,'
12551 lt_prog_compiler_pic='-KPIC'
12552 lt_prog_compiler_static='-Bstatic'
12553 ;;
12554
12555 unicos*)
12556 lt_prog_compiler_wl='-Wl,'
12557 lt_prog_compiler_can_build_shared=no
12558 ;;
12559
12560 uts4*)
12561 lt_prog_compiler_pic='-pic'
12562 lt_prog_compiler_static='-Bstatic'
12563 ;;
12564
12565 *)
12566 lt_prog_compiler_can_build_shared=no
12567 ;;
12568 esac
12569 fi
12570
12571 case $host_os in
12572 # For platforms which do not support PIC, -DPIC is meaningless:
12573 *djgpp*)
12574 lt_prog_compiler_pic=
12575 ;;
12576 *)
12577 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
12578 ;;
12579 esac
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12581 $as_echo "$lt_prog_compiler_pic" >&6; }
12582
12583
12584
12585
12586
12587
12588 #
12589 # Check to make sure the PIC flag actually works.
12590 #
12591 if test -n "$lt_prog_compiler_pic"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12593 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12594 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 lt_cv_prog_compiler_pic_works=no
12598 ac_outfile=conftest.$ac_objext
12599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12600 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
12601 # Insert the option either (1) after the last *FLAGS variable, or
12602 # (2) before a word containing "conftest.", or (3) at the end.
12603 # Note that $ac_compile itself does not contain backslashes and begins
12604 # with a dollar sign (not a hyphen), so the echo should work correctly.
12605 # The option is referenced via a variable to avoid confusing sed.
12606 lt_compile=`echo "$ac_compile" | $SED \
12607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12609 -e 's:$: $lt_compiler_flag:'`
12610 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12611 (eval "$lt_compile" 2>conftest.err)
12612 ac_status=$?
12613 cat conftest.err >&5
12614 echo "$as_me:__oline__: \$? = $ac_status" >&5
12615 if (exit $ac_status) && test -s "$ac_outfile"; then
12616 # The compiler can only warn and ignore the option if not recognized
12617 # So say no if there are warnings other than the usual output.
12618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12621 lt_cv_prog_compiler_pic_works=yes
12622 fi
12623 fi
12624 $RM conftest*
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12628 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12629
12630 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12631 case $lt_prog_compiler_pic in
12632 "" | " "*) ;;
12633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12634 esac
12635 else
12636 lt_prog_compiler_pic=
12637 lt_prog_compiler_can_build_shared=no
12638 fi
12639
12640 fi
12641
12642
12643
12644
12645
12646
12647 #
12648 # Check to make sure the static flag actually works.
12649 #
12650 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12652 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12653 if ${lt_cv_prog_compiler_static_works+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 lt_cv_prog_compiler_static_works=no
12657 save_LDFLAGS="$LDFLAGS"
12658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12661 # The linker can only warn and ignore the option if not recognized
12662 # So say no if there are warnings
12663 if test -s conftest.err; then
12664 # Append any errors to the config.log.
12665 cat conftest.err 1>&5
12666 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12668 if diff conftest.exp conftest.er2 >/dev/null; then
12669 lt_cv_prog_compiler_static_works=yes
12670 fi
12671 else
12672 lt_cv_prog_compiler_static_works=yes
12673 fi
12674 fi
12675 $RM -r conftest*
12676 LDFLAGS="$save_LDFLAGS"
12677
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12680 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12681
12682 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12683 :
12684 else
12685 lt_prog_compiler_static=
12686 fi
12687
12688
12689
12690
12691
12692
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12696 if ${lt_cv_prog_compiler_c_o+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 lt_cv_prog_compiler_c_o=no
12700 $RM -r conftest 2>/dev/null
12701 mkdir conftest
12702 cd conftest
12703 mkdir out
12704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12705
12706 lt_compiler_flag="-o out/conftest2.$ac_objext"
12707 # Insert the option either (1) after the last *FLAGS variable, or
12708 # (2) before a word containing "conftest.", or (3) at the end.
12709 # Note that $ac_compile itself does not contain backslashes and begins
12710 # with a dollar sign (not a hyphen), so the echo should work correctly.
12711 lt_compile=`echo "$ac_compile" | $SED \
12712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12714 -e 's:$: $lt_compiler_flag:'`
12715 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12716 (eval "$lt_compile" 2>out/conftest.err)
12717 ac_status=$?
12718 cat out/conftest.err >&5
12719 echo "$as_me:__oline__: \$? = $ac_status" >&5
12720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12721 then
12722 # The compiler can only warn and ignore the option if not recognized
12723 # So say no if there are warnings
12724 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12727 lt_cv_prog_compiler_c_o=yes
12728 fi
12729 fi
12730 chmod u+w . 2>&5
12731 $RM conftest*
12732 # SGI C++ compiler will create directory out/ii_files/ for
12733 # template instantiation
12734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12735 $RM out/* && rmdir out
12736 cd ..
12737 $RM -r conftest
12738 $RM conftest*
12739
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12742 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12743
12744
12745
12746
12747
12748
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12751 if ${lt_cv_prog_compiler_c_o+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 lt_cv_prog_compiler_c_o=no
12755 $RM -r conftest 2>/dev/null
12756 mkdir conftest
12757 cd conftest
12758 mkdir out
12759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12760
12761 lt_compiler_flag="-o out/conftest2.$ac_objext"
12762 # Insert the option either (1) after the last *FLAGS variable, or
12763 # (2) before a word containing "conftest.", or (3) at the end.
12764 # Note that $ac_compile itself does not contain backslashes and begins
12765 # with a dollar sign (not a hyphen), so the echo should work correctly.
12766 lt_compile=`echo "$ac_compile" | $SED \
12767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12769 -e 's:$: $lt_compiler_flag:'`
12770 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12771 (eval "$lt_compile" 2>out/conftest.err)
12772 ac_status=$?
12773 cat out/conftest.err >&5
12774 echo "$as_me:__oline__: \$? = $ac_status" >&5
12775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12776 then
12777 # The compiler can only warn and ignore the option if not recognized
12778 # So say no if there are warnings
12779 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12782 lt_cv_prog_compiler_c_o=yes
12783 fi
12784 fi
12785 chmod u+w . 2>&5
12786 $RM conftest*
12787 # SGI C++ compiler will create directory out/ii_files/ for
12788 # template instantiation
12789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12790 $RM out/* && rmdir out
12791 cd ..
12792 $RM -r conftest
12793 $RM conftest*
12794
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12797 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12798
12799
12800
12801
12802 hard_links="nottested"
12803 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12804 # do not overwrite the value of need_locks provided by the user
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12806 $as_echo_n "checking if we can lock with hard links... " >&6; }
12807 hard_links=yes
12808 $RM conftest*
12809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12810 touch conftest.a
12811 ln conftest.a conftest.b 2>&5 || hard_links=no
12812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12814 $as_echo "$hard_links" >&6; }
12815 if test "$hard_links" = no; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12817 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12818 need_locks=warn
12819 fi
12820 else
12821 need_locks=no
12822 fi
12823
12824
12825
12826
12827
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12830 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12831
12832 runpath_var=
12833 allow_undefined_flag=
12834 always_export_symbols=no
12835 archive_cmds=
12836 archive_expsym_cmds=
12837 compiler_needs_object=no
12838 enable_shared_with_static_runtimes=no
12839 export_dynamic_flag_spec=
12840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12841 hardcode_automatic=no
12842 hardcode_direct=no
12843 hardcode_direct_absolute=no
12844 hardcode_libdir_flag_spec=
12845 hardcode_libdir_flag_spec_ld=
12846 hardcode_libdir_separator=
12847 hardcode_minus_L=no
12848 hardcode_shlibpath_var=unsupported
12849 inherit_rpath=no
12850 link_all_deplibs=unknown
12851 module_cmds=
12852 module_expsym_cmds=
12853 old_archive_from_new_cmds=
12854 old_archive_from_expsyms_cmds=
12855 thread_safe_flag_spec=
12856 whole_archive_flag_spec=
12857 # include_expsyms should be a list of space-separated symbols to be *always*
12858 # included in the symbol list
12859 include_expsyms=
12860 # exclude_expsyms can be an extended regexp of symbols to exclude
12861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12863 # as well as any symbol that contains `d'.
12864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12866 # platforms (ab)use it in PIC code, but their linkers get confused if
12867 # the symbol is explicitly referenced. Since portable code cannot
12868 # rely on this symbol name, it's probably fine to never include it in
12869 # preloaded symbol tables.
12870 # Exclude shared library initialization/finalization symbols.
12871 extract_expsyms_cmds=
12872
12873 case $host_os in
12874 cygwin* | mingw* | pw32* | cegcc*)
12875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12876 # When not using gcc, we currently assume that we are using
12877 # Microsoft Visual C++.
12878 if test "$GCC" != yes; then
12879 with_gnu_ld=no
12880 fi
12881 ;;
12882 interix*)
12883 # we just hope/assume this is gcc and not c89 (= MSVC++)
12884 with_gnu_ld=yes
12885 ;;
12886 openbsd*)
12887 with_gnu_ld=no
12888 ;;
12889 linux* | k*bsd*-gnu)
12890 link_all_deplibs=no
12891 ;;
12892 esac
12893
12894 ld_shlibs=yes
12895 if test "$with_gnu_ld" = yes; then
12896 # If archive_cmds runs LD, not CC, wlarc should be empty
12897 wlarc='${wl}'
12898
12899 # Set some defaults for GNU ld with shared library support. These
12900 # are reset later if shared libraries are not supported. Putting them
12901 # here allows them to be overridden if necessary.
12902 runpath_var=LD_RUN_PATH
12903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12904 export_dynamic_flag_spec='${wl}--export-dynamic'
12905 # ancient GNU ld didn't support --whole-archive et. al.
12906 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12907 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12908 else
12909 whole_archive_flag_spec=
12910 fi
12911 supports_anon_versioning=no
12912 case `$LD -v 2>&1` in
12913 *GNU\ gold*) supports_anon_versioning=yes ;;
12914 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12915 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12916 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12917 *\ 2.11.*) ;; # other 2.11 versions
12918 *) supports_anon_versioning=yes ;;
12919 esac
12920
12921 # See if GNU ld supports shared libraries.
12922 case $host_os in
12923 aix[3-9]*)
12924 # On AIX/PPC, the GNU linker is very broken
12925 if test "$host_cpu" != ia64; then
12926 ld_shlibs=no
12927 cat <<_LT_EOF 1>&2
12928
12929 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12930 *** to be unable to reliably create shared libraries on AIX.
12931 *** Therefore, libtool is disabling shared libraries support. If you
12932 *** really care for shared libraries, you may want to modify your PATH
12933 *** so that a non-GNU linker is found, and then restart.
12934
12935 _LT_EOF
12936 fi
12937 ;;
12938
12939 amigaos*)
12940 case $host_cpu in
12941 powerpc)
12942 # see comment about AmigaOS4 .so support
12943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 archive_expsym_cmds=''
12945 ;;
12946 m68k)
12947 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12948 hardcode_libdir_flag_spec='-L$libdir'
12949 hardcode_minus_L=yes
12950 ;;
12951 esac
12952 ;;
12953
12954 beos*)
12955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12956 allow_undefined_flag=unsupported
12957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12958 # support --undefined. This deserves some investigation. FIXME
12959 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12960 else
12961 ld_shlibs=no
12962 fi
12963 ;;
12964
12965 cygwin* | mingw* | pw32* | cegcc*)
12966 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12967 # as there is no search path for DLLs.
12968 hardcode_libdir_flag_spec='-L$libdir'
12969 allow_undefined_flag=unsupported
12970 always_export_symbols=no
12971 enable_shared_with_static_runtimes=yes
12972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12973
12974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12976 # If the export-symbols file already is a .def file (1st line
12977 # is EXPORTS), use it as is; otherwise, prepend...
12978 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12979 cp $export_symbols $output_objdir/$soname.def;
12980 else
12981 echo EXPORTS > $output_objdir/$soname.def;
12982 cat $export_symbols >> $output_objdir/$soname.def;
12983 fi~
12984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12985 else
12986 ld_shlibs=no
12987 fi
12988 ;;
12989
12990 interix[3-9]*)
12991 hardcode_direct=no
12992 hardcode_shlibpath_var=no
12993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12994 export_dynamic_flag_spec='${wl}-E'
12995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12996 # Instead, shared libraries are loaded at an image base (0x10000000 by
12997 # default) and relocated if they conflict, which is a slow very memory
12998 # consuming and fragmenting process. To avoid this, we pick a random,
12999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13000 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13002 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13003 ;;
13004
13005 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13006 tmp_diet=no
13007 if test "$host_os" = linux-dietlibc; then
13008 case $cc_basename in
13009 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13010 esac
13011 fi
13012 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13013 && test "$tmp_diet" = no
13014 then
13015 tmp_addflag=
13016 tmp_sharedflag='-shared'
13017 case $cc_basename,$host_cpu in
13018 pgcc*) # Portland Group C compiler
13019 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13020 tmp_addflag=' $pic_flag'
13021 ;;
13022 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13023 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13024 tmp_addflag=' $pic_flag -Mnomain' ;;
13025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13026 tmp_addflag=' -i_dynamic' ;;
13027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13028 tmp_addflag=' -i_dynamic -nofor_main' ;;
13029 ifc* | ifort*) # Intel Fortran compiler
13030 tmp_addflag=' -nofor_main' ;;
13031 lf95*) # Lahey Fortran 8.1
13032 whole_archive_flag_spec=
13033 tmp_sharedflag='--shared' ;;
13034 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13035 tmp_sharedflag='-qmkshrobj'
13036 tmp_addflag= ;;
13037 esac
13038 case `$CC -V 2>&1 | sed 5q` in
13039 *Sun\ C*) # Sun C 5.9
13040 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13041 compiler_needs_object=yes
13042 tmp_sharedflag='-G' ;;
13043 *Sun\ F*) # Sun Fortran 8.3
13044 tmp_sharedflag='-G' ;;
13045 esac
13046 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047
13048 if test "x$supports_anon_versioning" = xyes; then
13049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13051 echo "local: *; };" >> $output_objdir/$libname.ver~
13052 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13053 fi
13054
13055 case $cc_basename in
13056 xlf*)
13057 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13058 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13059 hardcode_libdir_flag_spec=
13060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13061 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13062 if test "x$supports_anon_versioning" = xyes; then
13063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13065 echo "local: *; };" >> $output_objdir/$libname.ver~
13066 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13067 fi
13068 ;;
13069 esac
13070 else
13071 ld_shlibs=no
13072 fi
13073 ;;
13074
13075 netbsd* | netbsdelf*-gnu)
13076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13078 wlarc=
13079 else
13080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13082 fi
13083 ;;
13084
13085 solaris*)
13086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13087 ld_shlibs=no
13088 cat <<_LT_EOF 1>&2
13089
13090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13091 *** create shared libraries on Solaris systems. Therefore, libtool
13092 *** is disabling shared libraries support. We urge you to upgrade GNU
13093 *** binutils to release 2.9.1 or newer. Another option is to modify
13094 *** your PATH or compiler configuration so that the native linker is
13095 *** used, and then restart.
13096
13097 _LT_EOF
13098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13101 else
13102 ld_shlibs=no
13103 fi
13104 ;;
13105
13106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13107 case `$LD -v 2>&1` in
13108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13109 ld_shlibs=no
13110 cat <<_LT_EOF 1>&2
13111
13112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13113 *** reliably create shared libraries on SCO systems. Therefore, libtool
13114 *** is disabling shared libraries support. We urge you to upgrade GNU
13115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13116 *** your PATH or compiler configuration so that the native linker is
13117 *** used, and then restart.
13118
13119 _LT_EOF
13120 ;;
13121 *)
13122 # For security reasons, it is highly recommended that you always
13123 # use absolute paths for naming shared libraries, and exclude the
13124 # DT_RUNPATH tag from executables and libraries. But doing so
13125 # requires that you compile everything twice, which is a pain.
13126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13130 else
13131 ld_shlibs=no
13132 fi
13133 ;;
13134 esac
13135 ;;
13136
13137 sunos4*)
13138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13139 wlarc=
13140 hardcode_direct=yes
13141 hardcode_shlibpath_var=no
13142 ;;
13143
13144 *)
13145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 else
13149 ld_shlibs=no
13150 fi
13151 ;;
13152 esac
13153
13154 if test "$ld_shlibs" = no; then
13155 runpath_var=
13156 hardcode_libdir_flag_spec=
13157 export_dynamic_flag_spec=
13158 whole_archive_flag_spec=
13159 fi
13160 else
13161 # PORTME fill in a description of your system's linker (not GNU ld)
13162 case $host_os in
13163 aix3*)
13164 allow_undefined_flag=unsupported
13165 always_export_symbols=yes
13166 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13167 # Note: this linker hardcodes the directories in LIBPATH if there
13168 # are no directories specified by -L.
13169 hardcode_minus_L=yes
13170 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13171 # Neither direct hardcoding nor static linking is supported with a
13172 # broken collect2.
13173 hardcode_direct=unsupported
13174 fi
13175 ;;
13176
13177 aix[4-9]*)
13178 if test "$host_cpu" = ia64; then
13179 # On IA64, the linker does run time linking by default, so we don't
13180 # have to do anything special.
13181 aix_use_runtimelinking=no
13182 exp_sym_flag='-Bexport'
13183 no_entry_flag=""
13184 else
13185 # If we're using GNU nm, then we don't want the "-C" option.
13186 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13188 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13189 else
13190 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13191 fi
13192 aix_use_runtimelinking=no
13193
13194 # Test if we are trying to use run time linking or normal
13195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13196 # need to do runtime linking.
13197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13198 for ld_flag in $LDFLAGS; do
13199 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13200 aix_use_runtimelinking=yes
13201 break
13202 fi
13203 done
13204 ;;
13205 esac
13206
13207 exp_sym_flag='-bexport'
13208 no_entry_flag='-bnoentry'
13209 fi
13210
13211 # When large executables or shared objects are built, AIX ld can
13212 # have problems creating the table of contents. If linking a library
13213 # or program results in "error TOC overflow" add -mminimal-toc to
13214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13216
13217 archive_cmds=''
13218 hardcode_direct=yes
13219 hardcode_direct_absolute=yes
13220 hardcode_libdir_separator=':'
13221 link_all_deplibs=yes
13222 file_list_spec='${wl}-f,'
13223
13224 if test "$GCC" = yes; then
13225 case $host_os in aix4.[012]|aix4.[012].*)
13226 # We only want to do this on AIX 4.2 and lower, the check
13227 # below for broken collect2 doesn't work under 4.3+
13228 collect2name=`${CC} -print-prog-name=collect2`
13229 if test -f "$collect2name" &&
13230 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13231 then
13232 # We have reworked collect2
13233 :
13234 else
13235 # We have old collect2
13236 hardcode_direct=unsupported
13237 # It fails to find uninstalled libraries when the uninstalled
13238 # path is not listed in the libpath. Setting hardcode_minus_L
13239 # to unsupported forces relinking
13240 hardcode_minus_L=yes
13241 hardcode_libdir_flag_spec='-L$libdir'
13242 hardcode_libdir_separator=
13243 fi
13244 ;;
13245 esac
13246 shared_flag='-shared'
13247 if test "$aix_use_runtimelinking" = yes; then
13248 shared_flag="$shared_flag "'${wl}-G'
13249 fi
13250 link_all_deplibs=no
13251 else
13252 # not using gcc
13253 if test "$host_cpu" = ia64; then
13254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13255 # chokes on -Wl,-G. The following line is correct:
13256 shared_flag='-G'
13257 else
13258 if test "$aix_use_runtimelinking" = yes; then
13259 shared_flag='${wl}-G'
13260 else
13261 shared_flag='${wl}-bM:SRE'
13262 fi
13263 fi
13264 fi
13265
13266 export_dynamic_flag_spec='${wl}-bexpall'
13267 # It seems that -bexpall does not export symbols beginning with
13268 # underscore (_), so it is better to generate a list of symbols to export.
13269 always_export_symbols=yes
13270 if test "$aix_use_runtimelinking" = yes; then
13271 # Warning - without using the other runtime loading flags (-brtl),
13272 # -berok will link without error, but may produce a broken library.
13273 allow_undefined_flag='-berok'
13274 # Determine the default libpath from the value encoded in an
13275 # empty executable.
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 int
13280 main ()
13281 {
13282
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"; then :
13288
13289 lt_aix_libpath_sed='
13290 /Import File Strings/,/^$/ {
13291 /^0/ {
13292 s/^0 *\(.*\)$/\1/
13293 p
13294 }
13295 }'
13296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297 # Check for a 64-bit object if we didn't find anything.
13298 if test -z "$aix_libpath"; then
13299 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13300 fi
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13305
13306 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13307 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13308 else
13309 if test "$host_cpu" = ia64; then
13310 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13311 allow_undefined_flag="-z nodefs"
13312 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13313 else
13314 # Determine the default libpath from the value encoded in an
13315 # empty executable.
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318
13319 int
13320 main ()
13321 {
13322
13323 ;
13324 return 0;
13325 }
13326 _ACEOF
13327 if ac_fn_c_try_link "$LINENO"; then :
13328
13329 lt_aix_libpath_sed='
13330 /Import File Strings/,/^$/ {
13331 /^0/ {
13332 s/^0 *\(.*\)$/\1/
13333 p
13334 }
13335 }'
13336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13337 # Check for a 64-bit object if we didn't find anything.
13338 if test -z "$aix_libpath"; then
13339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13340 fi
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13345
13346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13347 # Warning - without using the other run time loading flags,
13348 # -berok will link without error, but may produce a broken library.
13349 no_undefined_flag=' ${wl}-bernotok'
13350 allow_undefined_flag=' ${wl}-berok'
13351 # Exported symbols can be pulled into shared objects from archives
13352 whole_archive_flag_spec='$convenience'
13353 archive_cmds_need_lc=yes
13354 # This is similar to how AIX traditionally builds its shared libraries.
13355 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13356 fi
13357 fi
13358 ;;
13359
13360 amigaos*)
13361 case $host_cpu in
13362 powerpc)
13363 # see comment about AmigaOS4 .so support
13364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds=''
13366 ;;
13367 m68k)
13368 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13369 hardcode_libdir_flag_spec='-L$libdir'
13370 hardcode_minus_L=yes
13371 ;;
13372 esac
13373 ;;
13374
13375 bsdi[45]*)
13376 export_dynamic_flag_spec=-rdynamic
13377 ;;
13378
13379 cygwin* | mingw* | pw32* | cegcc*)
13380 # When not using gcc, we currently assume that we are using
13381 # Microsoft Visual C++.
13382 # hardcode_libdir_flag_spec is actually meaningless, as there is
13383 # no search path for DLLs.
13384 hardcode_libdir_flag_spec=' '
13385 allow_undefined_flag=unsupported
13386 # Tell ltmain to make .lib files, not .a files.
13387 libext=lib
13388 # Tell ltmain to make .dll files, not .so files.
13389 shrext_cmds=".dll"
13390 # FIXME: Setting linknames here is a bad hack.
13391 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13392 # The linker will automatically build a .lib file if we build a DLL.
13393 old_archive_from_new_cmds='true'
13394 # FIXME: Should let the user specify the lib program.
13395 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13396 fix_srcfile_path='`cygpath -w "$srcfile"`'
13397 enable_shared_with_static_runtimes=yes
13398 ;;
13399
13400 darwin* | rhapsody*)
13401
13402
13403 archive_cmds_need_lc=no
13404 hardcode_direct=no
13405 hardcode_automatic=yes
13406 hardcode_shlibpath_var=unsupported
13407 whole_archive_flag_spec=''
13408 link_all_deplibs=yes
13409 allow_undefined_flag="$_lt_dar_allow_undefined"
13410 case $cc_basename in
13411 ifort*) _lt_dar_can_shared=yes ;;
13412 *) _lt_dar_can_shared=$GCC ;;
13413 esac
13414 if test "$_lt_dar_can_shared" = "yes"; then
13415 output_verbose_link_cmd=echo
13416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13418 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13419 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13420
13421 else
13422 ld_shlibs=no
13423 fi
13424
13425 ;;
13426
13427 dgux*)
13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_libdir_flag_spec='-L$libdir'
13430 hardcode_shlibpath_var=no
13431 ;;
13432
13433 freebsd1*)
13434 ld_shlibs=no
13435 ;;
13436
13437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13438 # support. Future versions do this automatically, but an explicit c++rt0.o
13439 # does not break anything, and helps significantly (at the cost of a little
13440 # extra space).
13441 freebsd2.2*)
13442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13443 hardcode_libdir_flag_spec='-R$libdir'
13444 hardcode_direct=yes
13445 hardcode_shlibpath_var=no
13446 ;;
13447
13448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13449 freebsd2*)
13450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_direct=yes
13452 hardcode_minus_L=yes
13453 hardcode_shlibpath_var=no
13454 ;;
13455
13456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13457 freebsd* | dragonfly*)
13458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13459 hardcode_libdir_flag_spec='-R$libdir'
13460 hardcode_direct=yes
13461 hardcode_shlibpath_var=no
13462 ;;
13463
13464 hpux9*)
13465 if test "$GCC" = yes; then
13466 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13467 else
13468 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13469 fi
13470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13471 hardcode_libdir_separator=:
13472 hardcode_direct=yes
13473
13474 # hardcode_minus_L: Not really in the search PATH,
13475 # but as the default location of the library.
13476 hardcode_minus_L=yes
13477 export_dynamic_flag_spec='${wl}-E'
13478 ;;
13479
13480 hpux10*)
13481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13482 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13483 else
13484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13485 fi
13486 if test "$with_gnu_ld" = no; then
13487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13488 hardcode_libdir_flag_spec_ld='+b $libdir'
13489 hardcode_libdir_separator=:
13490 hardcode_direct=yes
13491 hardcode_direct_absolute=yes
13492 export_dynamic_flag_spec='${wl}-E'
13493 # hardcode_minus_L: Not really in the search PATH,
13494 # but as the default location of the library.
13495 hardcode_minus_L=yes
13496 fi
13497 ;;
13498
13499 hpux11*)
13500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13501 case $host_cpu in
13502 hppa*64*)
13503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 ;;
13505 ia64*)
13506 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13507 ;;
13508 *)
13509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13510 ;;
13511 esac
13512 else
13513 case $host_cpu in
13514 hppa*64*)
13515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 ;;
13517 ia64*)
13518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13519 ;;
13520 *)
13521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13522 ;;
13523 esac
13524 fi
13525 if test "$with_gnu_ld" = no; then
13526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13527 hardcode_libdir_separator=:
13528
13529 case $host_cpu in
13530 hppa*64*|ia64*)
13531 hardcode_direct=no
13532 hardcode_shlibpath_var=no
13533 ;;
13534 *)
13535 hardcode_direct=yes
13536 hardcode_direct_absolute=yes
13537 export_dynamic_flag_spec='${wl}-E'
13538
13539 # hardcode_minus_L: Not really in the search PATH,
13540 # but as the default location of the library.
13541 hardcode_minus_L=yes
13542 ;;
13543 esac
13544 fi
13545 ;;
13546
13547 irix5* | irix6* | nonstopux*)
13548 if test "$GCC" = yes; then
13549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13550 # Try to use the -exported_symbol ld option, if it does not
13551 # work, assume that -exports_file does not work either and
13552 # implicitly export all symbols.
13553 save_LDFLAGS="$LDFLAGS"
13554 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 int foo(void) {}
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13561
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LDFLAGS="$save_LDFLAGS"
13566 else
13567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13569 fi
13570 archive_cmds_need_lc='no'
13571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13572 hardcode_libdir_separator=:
13573 inherit_rpath=yes
13574 link_all_deplibs=yes
13575 ;;
13576
13577 netbsd* | netbsdelf*-gnu)
13578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13580 else
13581 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13582 fi
13583 hardcode_libdir_flag_spec='-R$libdir'
13584 hardcode_direct=yes
13585 hardcode_shlibpath_var=no
13586 ;;
13587
13588 newsos6)
13589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_direct=yes
13591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13592 hardcode_libdir_separator=:
13593 hardcode_shlibpath_var=no
13594 ;;
13595
13596 *nto* | *qnx*)
13597 ;;
13598
13599 openbsd*)
13600 if test -f /usr/libexec/ld.so; then
13601 hardcode_direct=yes
13602 hardcode_shlibpath_var=no
13603 hardcode_direct_absolute=yes
13604 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13606 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13608 export_dynamic_flag_spec='${wl}-E'
13609 else
13610 case $host_os in
13611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13613 hardcode_libdir_flag_spec='-R$libdir'
13614 ;;
13615 *)
13616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13618 ;;
13619 esac
13620 fi
13621 else
13622 ld_shlibs=no
13623 fi
13624 ;;
13625
13626 os2*)
13627 hardcode_libdir_flag_spec='-L$libdir'
13628 hardcode_minus_L=yes
13629 allow_undefined_flag=unsupported
13630 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13631 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13632 ;;
13633
13634 osf3*)
13635 if test "$GCC" = yes; then
13636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13637 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13638 else
13639 allow_undefined_flag=' -expect_unresolved \*'
13640 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13641 fi
13642 archive_cmds_need_lc='no'
13643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13644 hardcode_libdir_separator=:
13645 ;;
13646
13647 osf4* | osf5*) # as osf3* with the addition of -msym flag
13648 if test "$GCC" = yes; then
13649 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13650 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13652 else
13653 allow_undefined_flag=' -expect_unresolved \*'
13654 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13655 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13656 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13657
13658 # Both c and cxx compiler support -rpath directly
13659 hardcode_libdir_flag_spec='-rpath $libdir'
13660 fi
13661 archive_cmds_need_lc='no'
13662 hardcode_libdir_separator=:
13663 ;;
13664
13665 solaris*)
13666 no_undefined_flag=' -z defs'
13667 if test "$GCC" = yes; then
13668 wlarc='${wl}'
13669 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13671 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13672 else
13673 case `$CC -V 2>&1` in
13674 *"Compilers 5.0"*)
13675 wlarc=''
13676 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13679 ;;
13680 *)
13681 wlarc='${wl}'
13682 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13684 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13685 ;;
13686 esac
13687 fi
13688 hardcode_libdir_flag_spec='-R$libdir'
13689 hardcode_shlibpath_var=no
13690 case $host_os in
13691 solaris2.[0-5] | solaris2.[0-5].*) ;;
13692 *)
13693 # The compiler driver will combine and reorder linker options,
13694 # but understands `-z linker_flag'. GCC discards it without `$wl',
13695 # but is careful enough not to reorder.
13696 # Supported since Solaris 2.6 (maybe 2.5.1?)
13697 if test "$GCC" = yes; then
13698 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13699 else
13700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13701 fi
13702 ;;
13703 esac
13704 link_all_deplibs=yes
13705 ;;
13706
13707 sunos4*)
13708 if test "x$host_vendor" = xsequent; then
13709 # Use $CC to link under sequent, because it throws in some extra .o
13710 # files that make .init and .fini sections work.
13711 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13712 else
13713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13714 fi
13715 hardcode_libdir_flag_spec='-L$libdir'
13716 hardcode_direct=yes
13717 hardcode_minus_L=yes
13718 hardcode_shlibpath_var=no
13719 ;;
13720
13721 sysv4)
13722 case $host_vendor in
13723 sni)
13724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_direct=yes # is this really true???
13726 ;;
13727 siemens)
13728 ## LD is ld it makes a PLAMLIB
13729 ## CC just makes a GrossModule.
13730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13731 reload_cmds='$CC -r -o $output$reload_objs'
13732 hardcode_direct=no
13733 ;;
13734 motorola)
13735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13737 ;;
13738 esac
13739 runpath_var='LD_RUN_PATH'
13740 hardcode_shlibpath_var=no
13741 ;;
13742
13743 sysv4.3*)
13744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_shlibpath_var=no
13746 export_dynamic_flag_spec='-Bexport'
13747 ;;
13748
13749 sysv4*MP*)
13750 if test -d /usr/nec; then
13751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13752 hardcode_shlibpath_var=no
13753 runpath_var=LD_RUN_PATH
13754 hardcode_runpath_var=yes
13755 ld_shlibs=yes
13756 fi
13757 ;;
13758
13759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13760 no_undefined_flag='${wl}-z,text'
13761 archive_cmds_need_lc=no
13762 hardcode_shlibpath_var=no
13763 runpath_var='LD_RUN_PATH'
13764
13765 if test "$GCC" = yes; then
13766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 else
13769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 fi
13772 ;;
13773
13774 sysv5* | sco3.2v5* | sco5v6*)
13775 # Note: We can NOT use -z defs as we might desire, because we do not
13776 # link with -lc, and that would cause any symbols used from libc to
13777 # always be unresolved, which means just about no library would
13778 # ever link correctly. If we're not using GNU ld we use -z text
13779 # though, which does catch some bad symbols but isn't as heavy-handed
13780 # as -z defs.
13781 no_undefined_flag='${wl}-z,text'
13782 allow_undefined_flag='${wl}-z,nodefs'
13783 archive_cmds_need_lc=no
13784 hardcode_shlibpath_var=no
13785 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13786 hardcode_libdir_separator=':'
13787 link_all_deplibs=yes
13788 export_dynamic_flag_spec='${wl}-Bexport'
13789 runpath_var='LD_RUN_PATH'
13790
13791 if test "$GCC" = yes; then
13792 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 else
13795 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 fi
13798 ;;
13799
13800 uts4*)
13801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802 hardcode_libdir_flag_spec='-L$libdir'
13803 hardcode_shlibpath_var=no
13804 ;;
13805
13806 *)
13807 ld_shlibs=no
13808 ;;
13809 esac
13810
13811 if test x$host_vendor = xsni; then
13812 case $host in
13813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13814 export_dynamic_flag_spec='${wl}-Blargedynsym'
13815 ;;
13816 esac
13817 fi
13818 fi
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13821 $as_echo "$ld_shlibs" >&6; }
13822 test "$ld_shlibs" = no && can_build_shared=no
13823
13824 with_gnu_ld=$with_gnu_ld
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840 #
13841 # Do we need to explicitly link libc?
13842 #
13843 case "x$archive_cmds_need_lc" in
13844 x|xyes)
13845 # Assume -lc should be added
13846 archive_cmds_need_lc=yes
13847
13848 if test "$enable_shared" = yes && test "$GCC" = yes; then
13849 case $archive_cmds in
13850 *'~'*)
13851 # FIXME: we may have to deal with multi-command sequences.
13852 ;;
13853 '$CC '*)
13854 # Test whether the compiler implicitly links with -lc since on some
13855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13856 # to ld, don't add -lc before -lgcc.
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13858 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13859 $RM conftest*
13860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13861
13862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13863 (eval $ac_compile) 2>&5
13864 ac_status=$?
13865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866 test $ac_status = 0; } 2>conftest.err; then
13867 soname=conftest
13868 lib=conftest
13869 libobjs=conftest.$ac_objext
13870 deplibs=
13871 wl=$lt_prog_compiler_wl
13872 pic_flag=$lt_prog_compiler_pic
13873 compiler_flags=-v
13874 linker_flags=-v
13875 verstring=
13876 output_objdir=.
13877 libname=conftest
13878 lt_save_allow_undefined_flag=$allow_undefined_flag
13879 allow_undefined_flag=
13880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13881 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13882 ac_status=$?
13883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884 test $ac_status = 0; }
13885 then
13886 archive_cmds_need_lc=no
13887 else
13888 archive_cmds_need_lc=yes
13889 fi
13890 allow_undefined_flag=$lt_save_allow_undefined_flag
13891 else
13892 cat conftest.err 1>&5
13893 fi
13894 $RM conftest*
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13896 $as_echo "$archive_cmds_need_lc" >&6; }
13897 ;;
13898 esac
13899 fi
13900 ;;
13901 esac
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14060 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14061
14062 if test "$GCC" = yes; then
14063 case $host_os in
14064 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14065 *) lt_awk_arg="/^libraries:/" ;;
14066 esac
14067 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14068 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14069 # if the path contains ";" then we assume it to be the separator
14070 # otherwise default to the standard path separator (i.e. ":") - it is
14071 # assumed that no part of a normal pathname contains ";" but that should
14072 # okay in the real world where ";" in dirpaths is itself problematic.
14073 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14074 else
14075 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14076 fi
14077 # Ok, now we have the path, separated by spaces, we can step through it
14078 # and add multilib dir if necessary.
14079 lt_tmp_lt_search_path_spec=
14080 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14081 for lt_sys_path in $lt_search_path_spec; do
14082 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14084 else
14085 test -d "$lt_sys_path" && \
14086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14087 fi
14088 done
14089 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14090 BEGIN {RS=" "; FS="/|\n";} {
14091 lt_foo="";
14092 lt_count=0;
14093 for (lt_i = NF; lt_i > 0; lt_i--) {
14094 if ($lt_i != "" && $lt_i != ".") {
14095 if ($lt_i == "..") {
14096 lt_count++;
14097 } else {
14098 if (lt_count == 0) {
14099 lt_foo="/" $lt_i lt_foo;
14100 } else {
14101 lt_count--;
14102 }
14103 }
14104 }
14105 }
14106 if (lt_foo != "") { lt_freq[lt_foo]++; }
14107 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14108 }'`
14109 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14110 else
14111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14112 fi
14113 library_names_spec=
14114 libname_spec='lib$name'
14115 soname_spec=
14116 shrext_cmds=".so"
14117 postinstall_cmds=
14118 postuninstall_cmds=
14119 finish_cmds=
14120 finish_eval=
14121 shlibpath_var=
14122 shlibpath_overrides_runpath=unknown
14123 version_type=none
14124 dynamic_linker="$host_os ld.so"
14125 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14126 need_lib_prefix=unknown
14127 hardcode_into_libs=no
14128
14129 # when you set need_version to no, make sure it does not cause -set_version
14130 # flags to be left without arguments
14131 need_version=unknown
14132
14133 case $host_os in
14134 aix3*)
14135 version_type=linux
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14137 shlibpath_var=LIBPATH
14138
14139 # AIX 3 has no versioning support, so we append a major version to the name.
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 ;;
14142
14143 aix[4-9]*)
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
14147 hardcode_into_libs=yes
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 supports IA64
14150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 else
14153 # With GCC up to 2.95.x, collect2 would create an import file
14154 # for dependence libraries. The import file would start with
14155 # the line `#! .'. This would cause the generated library to
14156 # depend on `.', always an invalid library. This was fixed in
14157 # development snapshots of GCC prior to 3.0.
14158 case $host_os in
14159 aix4 | aix4.[01] | aix4.[01].*)
14160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14161 echo ' yes '
14162 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14163 :
14164 else
14165 can_build_shared=no
14166 fi
14167 ;;
14168 esac
14169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14170 # soname into executable. Probably we can add versioning support to
14171 # collect2, so additional links can be useful in future.
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14174 # instead of lib<name>.a to let people know that these are not
14175 # typical AIX shared libraries.
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 else
14178 # We preserve .a as extension for shared libraries through AIX4.2
14179 # and later when we are not doing run time linking.
14180 library_names_spec='${libname}${release}.a $libname.a'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 fi
14183 shlibpath_var=LIBPATH
14184 fi
14185 ;;
14186
14187 amigaos*)
14188 case $host_cpu in
14189 powerpc)
14190 # Since July 2007 AmigaOS4 officially supports .so libraries.
14191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 ;;
14194 m68k)
14195 library_names_spec='$libname.ixlibrary $libname.a'
14196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14197 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14198 ;;
14199 esac
14200 ;;
14201
14202 beos*)
14203 library_names_spec='${libname}${shared_ext}'
14204 dynamic_linker="$host_os ld.so"
14205 shlibpath_var=LIBRARY_PATH
14206 ;;
14207
14208 bsdi[45]*)
14209 version_type=linux
14210 need_version=no
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14217 # the default ld.so.conf also contains /usr/contrib/lib and
14218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14219 # libtool to hard-code these into programs
14220 ;;
14221
14222 cygwin* | mingw* | pw32* | cegcc*)
14223 version_type=windows
14224 shrext_cmds=".dll"
14225 need_version=no
14226 need_lib_prefix=no
14227
14228 case $GCC,$host_os in
14229 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14230 library_names_spec='$libname.dll.a'
14231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14232 postinstall_cmds='base_file=`basename \${file}`~
14233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14234 dldir=$destdir/`dirname \$dlpath`~
14235 test -d \$dldir || mkdir -p \$dldir~
14236 $install_prog $dir/$dlname \$dldir/$dlname~
14237 chmod a+x \$dldir/$dlname~
14238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14240 fi'
14241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14242 dlpath=$dir/\$dldll~
14243 $RM \$dlpath'
14244 shlibpath_overrides_runpath=yes
14245
14246 case $host_os in
14247 cygwin*)
14248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14251 ;;
14252 mingw* | cegcc*)
14253 # MinGW DLLs use traditional 'lib' prefix
14254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14255 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14256 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14257 # It is most probably a Windows format PATH printed by
14258 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14259 # path with ; separators, and with drive letters. We can handle the
14260 # drive letters (cygwin fileutils understands them), so leave them,
14261 # especially as we might pass files found there to a mingw objdump,
14262 # which wouldn't understand a cygwinified path. Ahh.
14263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14264 else
14265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14266 fi
14267 ;;
14268 pw32*)
14269 # pw32 DLLs use 'pw' prefix rather than 'lib'
14270 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14271 ;;
14272 esac
14273 ;;
14274
14275 *)
14276 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14277 ;;
14278 esac
14279 dynamic_linker='Win32 ld.exe'
14280 # FIXME: first we should search . and the directory the executable is in
14281 shlibpath_var=PATH
14282 ;;
14283
14284 darwin* | rhapsody*)
14285 dynamic_linker="$host_os dyld"
14286 version_type=darwin
14287 need_lib_prefix=no
14288 need_version=no
14289 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14290 soname_spec='${libname}${release}${major}$shared_ext'
14291 shlibpath_overrides_runpath=yes
14292 shlibpath_var=DYLD_LIBRARY_PATH
14293 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14294
14295 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14297 ;;
14298
14299 dgux*)
14300 version_type=linux
14301 need_lib_prefix=no
14302 need_version=no
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14304 soname_spec='${libname}${release}${shared_ext}$major'
14305 shlibpath_var=LD_LIBRARY_PATH
14306 ;;
14307
14308 freebsd1*)
14309 dynamic_linker=no
14310 ;;
14311
14312 freebsd* | dragonfly*)
14313 # DragonFly does not have aout. When/if they implement a new
14314 # versioning mechanism, adjust this.
14315 if test -x /usr/bin/objformat; then
14316 objformat=`/usr/bin/objformat`
14317 else
14318 case $host_os in
14319 freebsd[123]*) objformat=aout ;;
14320 *) objformat=elf ;;
14321 esac
14322 fi
14323 version_type=freebsd-$objformat
14324 case $version_type in
14325 freebsd-elf*)
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14327 need_version=no
14328 need_lib_prefix=no
14329 ;;
14330 freebsd-*)
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14332 need_version=yes
14333 ;;
14334 esac
14335 shlibpath_var=LD_LIBRARY_PATH
14336 case $host_os in
14337 freebsd2*)
14338 shlibpath_overrides_runpath=yes
14339 ;;
14340 freebsd3.[01]* | freebsdelf3.[01]*)
14341 shlibpath_overrides_runpath=yes
14342 hardcode_into_libs=yes
14343 ;;
14344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14346 shlibpath_overrides_runpath=no
14347 hardcode_into_libs=yes
14348 ;;
14349 *) # from 4.6 on, and DragonFly
14350 shlibpath_overrides_runpath=yes
14351 hardcode_into_libs=yes
14352 ;;
14353 esac
14354 ;;
14355
14356 gnu*)
14357 version_type=linux
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 hardcode_into_libs=yes
14364 ;;
14365
14366 hpux9* | hpux10* | hpux11*)
14367 # Give a soname corresponding to the major version so that dld.sl refuses to
14368 # link against other versions.
14369 version_type=sunos
14370 need_lib_prefix=no
14371 need_version=no
14372 case $host_cpu in
14373 ia64*)
14374 shrext_cmds='.so'
14375 hardcode_into_libs=yes
14376 dynamic_linker="$host_os dld.so"
14377 shlibpath_var=LD_LIBRARY_PATH
14378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 if test "X$HPUX_IA64_MODE" = X32; then
14382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14383 else
14384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14385 fi
14386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14387 ;;
14388 hppa*64*)
14389 shrext_cmds='.sl'
14390 hardcode_into_libs=yes
14391 dynamic_linker="$host_os dld.sl"
14392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14398 ;;
14399 *)
14400 shrext_cmds='.sl'
14401 dynamic_linker="$host_os dld.sl"
14402 shlibpath_var=SHLIB_PATH
14403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 ;;
14407 esac
14408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14409 postinstall_cmds='chmod 555 $lib'
14410 ;;
14411
14412 interix[3-9]*)
14413 version_type=linux
14414 need_lib_prefix=no
14415 need_version=no
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14419 shlibpath_var=LD_LIBRARY_PATH
14420 shlibpath_overrides_runpath=no
14421 hardcode_into_libs=yes
14422 ;;
14423
14424 irix5* | irix6* | nonstopux*)
14425 case $host_os in
14426 nonstopux*) version_type=nonstopux ;;
14427 *)
14428 if test "$lt_cv_prog_gnu_ld" = yes; then
14429 version_type=linux
14430 else
14431 version_type=irix
14432 fi ;;
14433 esac
14434 need_lib_prefix=no
14435 need_version=no
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14438 case $host_os in
14439 irix5* | nonstopux*)
14440 libsuff= shlibsuff=
14441 ;;
14442 *)
14443 case $LD in # libtool.m4 will add one of these switches to LD
14444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14445 libsuff= shlibsuff= libmagic=32-bit;;
14446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14447 libsuff=32 shlibsuff=N32 libmagic=N32;;
14448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14450 *) libsuff= shlibsuff= libmagic=never-match;;
14451 esac
14452 ;;
14453 esac
14454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14455 shlibpath_overrides_runpath=no
14456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14458 hardcode_into_libs=yes
14459 ;;
14460
14461 # No shared lib support for Linux oldld, aout, or coff.
14462 linux*oldld* | linux*aout* | linux*coff*)
14463 dynamic_linker=no
14464 ;;
14465
14466 # This must be Linux ELF.
14467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=no
14476 # Some binutils ld are patched to set DT_RUNPATH
14477 save_LDFLAGS=$LDFLAGS
14478 save_libdir=$libdir
14479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483
14484 int
14485 main ()
14486 {
14487
14488 ;
14489 return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14494 shlibpath_overrides_runpath=yes
14495 fi
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LDFLAGS=$save_LDFLAGS
14500 libdir=$save_libdir
14501
14502 # This implies no fast_install, which is unacceptable.
14503 # Some rework will be needed to allow for fast_install
14504 # before this can be enabled.
14505 hardcode_into_libs=yes
14506
14507 # Append ld.so.conf contents to the search path
14508 if test -f /etc/ld.so.conf; then
14509 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14511 fi
14512
14513 # We used to test for /lib/ld.so.1 and disable shared libraries on
14514 # powerpc, because MkLinux only supported shared libraries with the
14515 # GNU dynamic linker. Since this was broken with cross compilers,
14516 # most powerpc-linux boxes support dynamic linking these days and
14517 # people can always --disable-shared, the test was removed, and we
14518 # assume the GNU/Linux dynamic linker is in use.
14519 dynamic_linker='GNU/Linux ld.so'
14520 ;;
14521
14522 netbsdelf*-gnu)
14523 version_type=linux
14524 need_lib_prefix=no
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=no
14530 hardcode_into_libs=yes
14531 dynamic_linker='NetBSD ld.elf_so'
14532 ;;
14533
14534 netbsd*)
14535 version_type=sunos
14536 need_lib_prefix=no
14537 need_version=no
14538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14541 dynamic_linker='NetBSD (a.out) ld.so'
14542 else
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 dynamic_linker='NetBSD ld.elf_so'
14546 fi
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14550 ;;
14551
14552 newsos6)
14553 version_type=linux
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=yes
14557 ;;
14558
14559 *nto* | *qnx*)
14560 version_type=qnx
14561 need_lib_prefix=no
14562 need_version=no
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=no
14567 hardcode_into_libs=yes
14568 dynamic_linker='ldqnx.so'
14569 ;;
14570
14571 openbsd*)
14572 version_type=sunos
14573 sys_lib_dlsearch_path_spec="/usr/lib"
14574 need_lib_prefix=no
14575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14576 case $host_os in
14577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14578 *) need_version=no ;;
14579 esac
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14584 case $host_os in
14585 openbsd2.[89] | openbsd2.[89].*)
14586 shlibpath_overrides_runpath=no
14587 ;;
14588 *)
14589 shlibpath_overrides_runpath=yes
14590 ;;
14591 esac
14592 else
14593 shlibpath_overrides_runpath=yes
14594 fi
14595 ;;
14596
14597 os2*)
14598 libname_spec='$name'
14599 shrext_cmds=".dll"
14600 need_lib_prefix=no
14601 library_names_spec='$libname${shared_ext} $libname.a'
14602 dynamic_linker='OS/2 ld.exe'
14603 shlibpath_var=LIBPATH
14604 ;;
14605
14606 osf3* | osf4* | osf5*)
14607 version_type=osf
14608 need_lib_prefix=no
14609 need_version=no
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14615 ;;
14616
14617 rdos*)
14618 dynamic_linker=no
14619 ;;
14620
14621 solaris*)
14622 version_type=linux
14623 need_lib_prefix=no
14624 need_version=no
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14630 # ldd complains unless libraries are executable
14631 postinstall_cmds='chmod +x $lib'
14632 ;;
14633
14634 sunos4*)
14635 version_type=sunos
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14640 if test "$with_gnu_ld" = yes; then
14641 need_lib_prefix=no
14642 fi
14643 need_version=yes
14644 ;;
14645
14646 sysv4 | sysv4.3*)
14647 version_type=linux
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 case $host_vendor in
14652 sni)
14653 shlibpath_overrides_runpath=no
14654 need_lib_prefix=no
14655 runpath_var=LD_RUN_PATH
14656 ;;
14657 siemens)
14658 need_lib_prefix=no
14659 ;;
14660 motorola)
14661 need_lib_prefix=no
14662 need_version=no
14663 shlibpath_overrides_runpath=no
14664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14665 ;;
14666 esac
14667 ;;
14668
14669 sysv4*MP*)
14670 if test -d /usr/nec ;then
14671 version_type=linux
14672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14673 soname_spec='$libname${shared_ext}.$major'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 fi
14676 ;;
14677
14678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14679 version_type=freebsd-elf
14680 need_lib_prefix=no
14681 need_version=no
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=yes
14686 hardcode_into_libs=yes
14687 if test "$with_gnu_ld" = yes; then
14688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14689 else
14690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14691 case $host_os in
14692 sco3.2v5*)
14693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14694 ;;
14695 esac
14696 fi
14697 sys_lib_dlsearch_path_spec='/usr/lib'
14698 ;;
14699
14700 tpf*)
14701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14702 version_type=linux
14703 need_lib_prefix=no
14704 need_version=no
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=no
14708 hardcode_into_libs=yes
14709 ;;
14710
14711 uts4*)
14712 version_type=linux
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 ;;
14717
14718 *)
14719 dynamic_linker=no
14720 ;;
14721 esac
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14723 $as_echo "$dynamic_linker" >&6; }
14724 test "$dynamic_linker" = no && can_build_shared=no
14725
14726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14727 if test "$GCC" = yes; then
14728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14729 fi
14730
14731 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14732 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14733 fi
14734 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14735 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14736 fi
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14826 hardcode_action=
14827 if test -n "$hardcode_libdir_flag_spec" ||
14828 test -n "$runpath_var" ||
14829 test "X$hardcode_automatic" = "Xyes" ; then
14830
14831 # We can hardcode non-existent directories.
14832 if test "$hardcode_direct" != no &&
14833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14834 # have to relink, otherwise we might link with an installed library
14835 # when we should be linking with a yet-to-be-installed one
14836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14837 test "$hardcode_minus_L" != no; then
14838 # Linking always hardcodes the temporary library directory.
14839 hardcode_action=relink
14840 else
14841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14842 hardcode_action=immediate
14843 fi
14844 else
14845 # We cannot hardcode anything, or else we can only hardcode existing
14846 # directories.
14847 hardcode_action=unsupported
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14850 $as_echo "$hardcode_action" >&6; }
14851
14852 if test "$hardcode_action" = relink ||
14853 test "$inherit_rpath" = yes; then
14854 # Fast installation is not supported
14855 enable_fast_install=no
14856 elif test "$shlibpath_overrides_runpath" = yes ||
14857 test "$enable_shared" = no; then
14858 # Fast installation is not necessary
14859 enable_fast_install=needless
14860 fi
14861
14862
14863
14864
14865
14866
14867 if test "x$enable_dlopen" != xyes; then
14868 enable_dlopen=unknown
14869 enable_dlopen_self=unknown
14870 enable_dlopen_self_static=unknown
14871 else
14872 lt_cv_dlopen=no
14873 lt_cv_dlopen_libs=
14874
14875 case $host_os in
14876 beos*)
14877 lt_cv_dlopen="load_add_on"
14878 lt_cv_dlopen_libs=
14879 lt_cv_dlopen_self=yes
14880 ;;
14881
14882 mingw* | pw32* | cegcc*)
14883 lt_cv_dlopen="LoadLibrary"
14884 lt_cv_dlopen_libs=
14885 ;;
14886
14887 cygwin*)
14888 lt_cv_dlopen="dlopen"
14889 lt_cv_dlopen_libs=
14890 ;;
14891
14892 darwin*)
14893 # if libdl is installed we need to link against it
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14896 if ${ac_cv_lib_dl_dlopen+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 ac_check_lib_save_LIBS=$LIBS
14900 LIBS="-ldl $LIBS"
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903
14904 /* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 char dlopen ();
14911 int
14912 main ()
14913 {
14914 return dlopen ();
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_link "$LINENO"; then :
14920 ac_cv_lib_dl_dlopen=yes
14921 else
14922 ac_cv_lib_dl_dlopen=no
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14927 fi
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14932 else
14933
14934 lt_cv_dlopen="dyld"
14935 lt_cv_dlopen_libs=
14936 lt_cv_dlopen_self=yes
14937
14938 fi
14939
14940 ;;
14941
14942 *)
14943 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14944 if test "x$ac_cv_func_shl_load" = xyes; then :
14945 lt_cv_dlopen="shl_load"
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14948 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14949 if ${ac_cv_lib_dld_shl_load+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-ldld $LIBS"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14960 #ifdef __cplusplus
14961 extern "C"
14962 #endif
14963 char shl_load ();
14964 int
14965 main ()
14966 {
14967 return shl_load ();
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_link "$LINENO"; then :
14973 ac_cv_lib_dld_shl_load=yes
14974 else
14975 ac_cv_lib_dld_shl_load=no
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14979 LIBS=$ac_check_lib_save_LIBS
14980 fi
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14982 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14983 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14984 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14985 else
14986 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14987 if test "x$ac_cv_func_dlopen" = xyes; then :
14988 lt_cv_dlopen="dlopen"
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14992 if ${ac_cv_lib_dl_dlopen+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 ac_check_lib_save_LIBS=$LIBS
14996 LIBS="-ldl $LIBS"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char dlopen ();
15007 int
15008 main ()
15009 {
15010 return dlopen ();
15011 ;
15012 return 0;
15013 }
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15016 ac_cv_lib_dl_dlopen=yes
15017 else
15018 ac_cv_lib_dl_dlopen=no
15019 fi
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15023 fi
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15026 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15028 else
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15031 if ${ac_cv_lib_svld_dlopen+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 ac_check_lib_save_LIBS=$LIBS
15035 LIBS="-lsvld $LIBS"
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char dlopen ();
15046 int
15047 main ()
15048 {
15049 return dlopen ();
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"; then :
15055 ac_cv_lib_svld_dlopen=yes
15056 else
15057 ac_cv_lib_svld_dlopen=no
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15062 fi
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15064 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15065 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15067 else
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15069 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15070 if ${ac_cv_lib_dld_dld_link+:} false; then :
15071 $as_echo_n "(cached) " >&6
15072 else
15073 ac_check_lib_save_LIBS=$LIBS
15074 LIBS="-ldld $LIBS"
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077
15078 /* Override any GCC internal prototype to avoid an error.
15079 Use char because int might match the return type of a GCC
15080 builtin and then its argument prototype would still apply. */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 char dld_link ();
15085 int
15086 main ()
15087 {
15088 return dld_link ();
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_c_try_link "$LINENO"; then :
15094 ac_cv_lib_dld_dld_link=yes
15095 else
15096 ac_cv_lib_dld_dld_link=no
15097 fi
15098 rm -f core conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15101 fi
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15103 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15104 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15105 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15106 fi
15107
15108
15109 fi
15110
15111
15112 fi
15113
15114
15115 fi
15116
15117
15118 fi
15119
15120
15121 fi
15122
15123 ;;
15124 esac
15125
15126 if test "x$lt_cv_dlopen" != xno; then
15127 enable_dlopen=yes
15128 else
15129 enable_dlopen=no
15130 fi
15131
15132 case $lt_cv_dlopen in
15133 dlopen)
15134 save_CPPFLAGS="$CPPFLAGS"
15135 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15136
15137 save_LDFLAGS="$LDFLAGS"
15138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15139
15140 save_LIBS="$LIBS"
15141 LIBS="$lt_cv_dlopen_libs $LIBS"
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15144 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15145 if ${lt_cv_dlopen_self+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 if test "$cross_compiling" = yes; then :
15149 lt_cv_dlopen_self=cross
15150 else
15151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15152 lt_status=$lt_dlunknown
15153 cat > conftest.$ac_ext <<_LT_EOF
15154 #line __oline__ "configure"
15155 #include "confdefs.h"
15156
15157 #if HAVE_DLFCN_H
15158 #include <dlfcn.h>
15159 #endif
15160
15161 #include <stdio.h>
15162
15163 #ifdef RTLD_GLOBAL
15164 # define LT_DLGLOBAL RTLD_GLOBAL
15165 #else
15166 # ifdef DL_GLOBAL
15167 # define LT_DLGLOBAL DL_GLOBAL
15168 # else
15169 # define LT_DLGLOBAL 0
15170 # endif
15171 #endif
15172
15173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15174 find out it does not work in some platform. */
15175 #ifndef LT_DLLAZY_OR_NOW
15176 # ifdef RTLD_LAZY
15177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15178 # else
15179 # ifdef DL_LAZY
15180 # define LT_DLLAZY_OR_NOW DL_LAZY
15181 # else
15182 # ifdef RTLD_NOW
15183 # define LT_DLLAZY_OR_NOW RTLD_NOW
15184 # else
15185 # ifdef DL_NOW
15186 # define LT_DLLAZY_OR_NOW DL_NOW
15187 # else
15188 # define LT_DLLAZY_OR_NOW 0
15189 # endif
15190 # endif
15191 # endif
15192 # endif
15193 #endif
15194
15195 void fnord() { int i=42;}
15196 int main ()
15197 {
15198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15199 int status = $lt_dlunknown;
15200
15201 if (self)
15202 {
15203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15204 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15205 /* dlclose (self); */
15206 }
15207 else
15208 puts (dlerror ());
15209
15210 return status;
15211 }
15212 _LT_EOF
15213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15214 (eval $ac_link) 2>&5
15215 ac_status=$?
15216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15217 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15218 (./conftest; exit; ) >&5 2>/dev/null
15219 lt_status=$?
15220 case x$lt_status in
15221 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15222 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15223 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15224 esac
15225 else :
15226 # compilation failed
15227 lt_cv_dlopen_self=no
15228 fi
15229 fi
15230 rm -fr conftest*
15231
15232
15233 fi
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15235 $as_echo "$lt_cv_dlopen_self" >&6; }
15236
15237 if test "x$lt_cv_dlopen_self" = xyes; then
15238 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15240 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15241 if ${lt_cv_dlopen_self_static+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 if test "$cross_compiling" = yes; then :
15245 lt_cv_dlopen_self_static=cross
15246 else
15247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15248 lt_status=$lt_dlunknown
15249 cat > conftest.$ac_ext <<_LT_EOF
15250 #line __oline__ "configure"
15251 #include "confdefs.h"
15252
15253 #if HAVE_DLFCN_H
15254 #include <dlfcn.h>
15255 #endif
15256
15257 #include <stdio.h>
15258
15259 #ifdef RTLD_GLOBAL
15260 # define LT_DLGLOBAL RTLD_GLOBAL
15261 #else
15262 # ifdef DL_GLOBAL
15263 # define LT_DLGLOBAL DL_GLOBAL
15264 # else
15265 # define LT_DLGLOBAL 0
15266 # endif
15267 #endif
15268
15269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15270 find out it does not work in some platform. */
15271 #ifndef LT_DLLAZY_OR_NOW
15272 # ifdef RTLD_LAZY
15273 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15274 # else
15275 # ifdef DL_LAZY
15276 # define LT_DLLAZY_OR_NOW DL_LAZY
15277 # else
15278 # ifdef RTLD_NOW
15279 # define LT_DLLAZY_OR_NOW RTLD_NOW
15280 # else
15281 # ifdef DL_NOW
15282 # define LT_DLLAZY_OR_NOW DL_NOW
15283 # else
15284 # define LT_DLLAZY_OR_NOW 0
15285 # endif
15286 # endif
15287 # endif
15288 # endif
15289 #endif
15290
15291 void fnord() { int i=42;}
15292 int main ()
15293 {
15294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15295 int status = $lt_dlunknown;
15296
15297 if (self)
15298 {
15299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15301 /* dlclose (self); */
15302 }
15303 else
15304 puts (dlerror ());
15305
15306 return status;
15307 }
15308 _LT_EOF
15309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15310 (eval $ac_link) 2>&5
15311 ac_status=$?
15312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15314 (./conftest; exit; ) >&5 2>/dev/null
15315 lt_status=$?
15316 case x$lt_status in
15317 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15318 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15319 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15320 esac
15321 else :
15322 # compilation failed
15323 lt_cv_dlopen_self_static=no
15324 fi
15325 fi
15326 rm -fr conftest*
15327
15328
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15331 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15332 fi
15333
15334 CPPFLAGS="$save_CPPFLAGS"
15335 LDFLAGS="$save_LDFLAGS"
15336 LIBS="$save_LIBS"
15337 ;;
15338 esac
15339
15340 case $lt_cv_dlopen_self in
15341 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15342 *) enable_dlopen_self=unknown ;;
15343 esac
15344
15345 case $lt_cv_dlopen_self_static in
15346 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15347 *) enable_dlopen_self_static=unknown ;;
15348 esac
15349 fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367 striplib=
15368 old_striplib=
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15370 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15371 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15375 $as_echo "yes" >&6; }
15376 else
15377 # FIXME - insert some real tests, host_os isn't really good enough
15378 case $host_os in
15379 darwin*)
15380 if test -n "$STRIP" ; then
15381 striplib="$STRIP -x"
15382 old_striplib="$STRIP -S"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15384 $as_echo "yes" >&6; }
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15388 fi
15389 ;;
15390 *)
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392 $as_echo "no" >&6; }
15393 ;;
15394 esac
15395 fi
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408 # Report which library types will actually be built
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15410 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15412 $as_echo "$can_build_shared" >&6; }
15413
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15415 $as_echo_n "checking whether to build shared libraries... " >&6; }
15416 test "$can_build_shared" = "no" && enable_shared=no
15417
15418 # On AIX, shared libraries and static libraries use the same namespace, and
15419 # are all built from PIC.
15420 case $host_os in
15421 aix3*)
15422 test "$enable_shared" = yes && enable_static=no
15423 if test -n "$RANLIB"; then
15424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15425 postinstall_cmds='$RANLIB $lib'
15426 fi
15427 ;;
15428
15429 aix[4-9]*)
15430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15431 test "$enable_shared" = yes && enable_static=no
15432 fi
15433 ;;
15434 esac
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15436 $as_echo "$enable_shared" >&6; }
15437
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15439 $as_echo_n "checking whether to build static libraries... " >&6; }
15440 # Make sure either enable_shared or enable_static is yes.
15441 test "$enable_shared" = yes || enable_static=yes
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15443 $as_echo "$enable_static" >&6; }
15444
15445
15446
15447
15448 fi
15449 ac_ext=c
15450 ac_cpp='$CPP $CPPFLAGS'
15451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454
15455 CC="$lt_save_CC"
15456
15457
15458 ac_ext=cpp
15459 ac_cpp='$CXXCPP $CPPFLAGS'
15460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15463
15464 archive_cmds_need_lc_CXX=no
15465 allow_undefined_flag_CXX=
15466 always_export_symbols_CXX=no
15467 archive_expsym_cmds_CXX=
15468 compiler_needs_object_CXX=no
15469 export_dynamic_flag_spec_CXX=
15470 hardcode_direct_CXX=no
15471 hardcode_direct_absolute_CXX=no
15472 hardcode_libdir_flag_spec_CXX=
15473 hardcode_libdir_flag_spec_ld_CXX=
15474 hardcode_libdir_separator_CXX=
15475 hardcode_minus_L_CXX=no
15476 hardcode_shlibpath_var_CXX=unsupported
15477 hardcode_automatic_CXX=no
15478 inherit_rpath_CXX=no
15479 module_cmds_CXX=
15480 module_expsym_cmds_CXX=
15481 link_all_deplibs_CXX=unknown
15482 old_archive_cmds_CXX=$old_archive_cmds
15483 no_undefined_flag_CXX=
15484 whole_archive_flag_spec_CXX=
15485 enable_shared_with_static_runtimes_CXX=no
15486
15487 # Source file extension for C++ test sources.
15488 ac_ext=cpp
15489
15490 # Object file extension for compiled C++ test sources.
15491 objext=o
15492 objext_CXX=$objext
15493
15494 # No sense in running all these tests if we already determined that
15495 # the CXX compiler isn't working. Some variables (like enable_shared)
15496 # are currently assumed to apply to all compilers on this platform,
15497 # and will be corrupted by setting them based on a non-working compiler.
15498 if test "$_lt_caught_CXX_error" != yes; then
15499 # Code to be used in simple compile tests
15500 lt_simple_compile_test_code="int some_variable = 0;"
15501
15502 # Code to be used in simple link tests
15503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15504
15505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15506
15507
15508
15509
15510
15511
15512 # If no C compiler was specified, use CC.
15513 LTCC=${LTCC-"$CC"}
15514
15515 # If no C compiler flags were specified, use CFLAGS.
15516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15517
15518 # Allow CC to be a program name with arguments.
15519 compiler=$CC
15520
15521
15522 # save warnings/boilerplate of simple test code
15523 ac_outfile=conftest.$ac_objext
15524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15526 _lt_compiler_boilerplate=`cat conftest.err`
15527 $RM conftest*
15528
15529 ac_outfile=conftest.$ac_objext
15530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15532 _lt_linker_boilerplate=`cat conftest.err`
15533 $RM -r conftest*
15534
15535
15536 # Allow CC to be a program name with arguments.
15537 lt_save_CC=$CC
15538 lt_save_LD=$LD
15539 lt_save_GCC=$GCC
15540 GCC=$GXX
15541 lt_save_with_gnu_ld=$with_gnu_ld
15542 lt_save_path_LD=$lt_cv_path_LD
15543 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15544 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15545 else
15546 $as_unset lt_cv_prog_gnu_ld
15547 fi
15548 if test -n "${lt_cv_path_LDCXX+set}"; then
15549 lt_cv_path_LD=$lt_cv_path_LDCXX
15550 else
15551 $as_unset lt_cv_path_LD
15552 fi
15553 test -z "${LDCXX+set}" || LD=$LDCXX
15554 CC=${CXX-"c++"}
15555 compiler=$CC
15556 compiler_CXX=$CC
15557 for cc_temp in $compiler""; do
15558 case $cc_temp in
15559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15561 \-*) ;;
15562 *) break;;
15563 esac
15564 done
15565 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15566
15567
15568 if test -n "$compiler"; then
15569 # We don't want -fno-exception when compiling C++ code, so set the
15570 # no_builtin_flag separately
15571 if test "$GXX" = yes; then
15572 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15573 else
15574 lt_prog_compiler_no_builtin_flag_CXX=
15575 fi
15576
15577 if test "$GXX" = yes; then
15578 # Set up default GNU C++ configuration
15579
15580
15581
15582 @%:@ Check whether --with-gnu-ld was given.
15583 if test "${with_gnu_ld+set}" = set; then :
15584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15585 else
15586 with_gnu_ld=no
15587 fi
15588
15589 ac_prog=ld
15590 if test "$GCC" = yes; then
15591 # Check if gcc -print-prog-name=ld gives a path.
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15593 $as_echo_n "checking for ld used by $CC... " >&6; }
15594 case $host in
15595 *-*-mingw*)
15596 # gcc leaves a trailing carriage return which upsets mingw
15597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15598 *)
15599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15600 esac
15601 case $ac_prog in
15602 # Accept absolute paths.
15603 [\\/]* | ?:[\\/]*)
15604 re_direlt='/[^/][^/]*/\.\./'
15605 # Canonicalize the pathname of ld
15606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15609 done
15610 test -z "$LD" && LD="$ac_prog"
15611 ;;
15612 "")
15613 # If it fails, then pretend we aren't using GCC.
15614 ac_prog=ld
15615 ;;
15616 *)
15617 # If it is relative, then search for the first ld in PATH.
15618 with_gnu_ld=unknown
15619 ;;
15620 esac
15621 elif test "$with_gnu_ld" = yes; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15623 $as_echo_n "checking for GNU ld... " >&6; }
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15626 $as_echo_n "checking for non-GNU ld... " >&6; }
15627 fi
15628 if ${lt_cv_path_LD+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 if test -z "$LD"; then
15632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15633 for ac_dir in $PATH; do
15634 IFS="$lt_save_ifs"
15635 test -z "$ac_dir" && ac_dir=.
15636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15637 lt_cv_path_LD="$ac_dir/$ac_prog"
15638 # Check to see if the program is GNU ld. I'd rather use --version,
15639 # but apparently some variants of GNU ld only accept -v.
15640 # Break only if it was the GNU/non-GNU ld that we prefer.
15641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15642 *GNU* | *'with BFD'*)
15643 test "$with_gnu_ld" != no && break
15644 ;;
15645 *)
15646 test "$with_gnu_ld" != yes && break
15647 ;;
15648 esac
15649 fi
15650 done
15651 IFS="$lt_save_ifs"
15652 else
15653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15654 fi
15655 fi
15656
15657 LD="$lt_cv_path_LD"
15658 if test -n "$LD"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15660 $as_echo "$LD" >&6; }
15661 else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663 $as_echo "no" >&6; }
15664 fi
15665 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15668 if ${lt_cv_prog_gnu_ld+:} false; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15672 case `$LD -v 2>&1 </dev/null` in
15673 *GNU* | *'with BFD'*)
15674 lt_cv_prog_gnu_ld=yes
15675 ;;
15676 *)
15677 lt_cv_prog_gnu_ld=no
15678 ;;
15679 esac
15680 fi
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15683 with_gnu_ld=$lt_cv_prog_gnu_ld
15684
15685
15686
15687
15688
15689
15690
15691 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15692 # archiving commands below assume that GNU ld is being used.
15693 if test "$with_gnu_ld" = yes; then
15694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15695 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15696
15697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15699
15700 # If archive_cmds runs LD, not CC, wlarc should be empty
15701 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15702 # investigate it a little bit more. (MM)
15703 wlarc='${wl}'
15704
15705 # ancient GNU ld didn't support --whole-archive et. al.
15706 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15707 $GREP 'no-whole-archive' > /dev/null; then
15708 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15709 else
15710 whole_archive_flag_spec_CXX=
15711 fi
15712 else
15713 with_gnu_ld=no
15714 wlarc=
15715
15716 # A generic and very simple default shared library creation
15717 # command for GNU C++ for the case where it uses the native
15718 # linker, instead of GNU ld. If possible, this setting should
15719 # overridden to take advantage of the native linker features on
15720 # the platform it is being used on.
15721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15722 fi
15723
15724 # Commands to make compiler produce verbose output that lists
15725 # what "hidden" libraries, object files and flags are used when
15726 # linking a shared library.
15727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15728
15729 else
15730 GXX=no
15731 with_gnu_ld=no
15732 wlarc=
15733 fi
15734
15735 # PORTME: fill in a description of your system's C++ link characteristics
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15738 ld_shlibs_CXX=yes
15739 case $host_os in
15740 aix3*)
15741 # FIXME: insert proper C++ library support
15742 ld_shlibs_CXX=no
15743 ;;
15744 aix[4-9]*)
15745 if test "$host_cpu" = ia64; then
15746 # On IA64, the linker does run time linking by default, so we don't
15747 # have to do anything special.
15748 aix_use_runtimelinking=no
15749 exp_sym_flag='-Bexport'
15750 no_entry_flag=""
15751 else
15752 aix_use_runtimelinking=no
15753
15754 # Test if we are trying to use run time linking or normal
15755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15756 # need to do runtime linking.
15757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15758 for ld_flag in $LDFLAGS; do
15759 case $ld_flag in
15760 *-brtl*)
15761 aix_use_runtimelinking=yes
15762 break
15763 ;;
15764 esac
15765 done
15766 ;;
15767 esac
15768
15769 exp_sym_flag='-bexport'
15770 no_entry_flag='-bnoentry'
15771 fi
15772
15773 # When large executables or shared objects are built, AIX ld can
15774 # have problems creating the table of contents. If linking a library
15775 # or program results in "error TOC overflow" add -mminimal-toc to
15776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15778
15779 archive_cmds_CXX=''
15780 hardcode_direct_CXX=yes
15781 hardcode_direct_absolute_CXX=yes
15782 hardcode_libdir_separator_CXX=':'
15783 link_all_deplibs_CXX=yes
15784 file_list_spec_CXX='${wl}-f,'
15785
15786 if test "$GXX" = yes; then
15787 case $host_os in aix4.[012]|aix4.[012].*)
15788 # We only want to do this on AIX 4.2 and lower, the check
15789 # below for broken collect2 doesn't work under 4.3+
15790 collect2name=`${CC} -print-prog-name=collect2`
15791 if test -f "$collect2name" &&
15792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15793 then
15794 # We have reworked collect2
15795 :
15796 else
15797 # We have old collect2
15798 hardcode_direct_CXX=unsupported
15799 # It fails to find uninstalled libraries when the uninstalled
15800 # path is not listed in the libpath. Setting hardcode_minus_L
15801 # to unsupported forces relinking
15802 hardcode_minus_L_CXX=yes
15803 hardcode_libdir_flag_spec_CXX='-L$libdir'
15804 hardcode_libdir_separator_CXX=
15805 fi
15806 esac
15807 shared_flag='-shared'
15808 if test "$aix_use_runtimelinking" = yes; then
15809 shared_flag="$shared_flag "'${wl}-G'
15810 fi
15811 else
15812 # not using gcc
15813 if test "$host_cpu" = ia64; then
15814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15815 # chokes on -Wl,-G. The following line is correct:
15816 shared_flag='-G'
15817 else
15818 if test "$aix_use_runtimelinking" = yes; then
15819 shared_flag='${wl}-G'
15820 else
15821 shared_flag='${wl}-bM:SRE'
15822 fi
15823 fi
15824 fi
15825
15826 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15827 # It seems that -bexpall does not export symbols beginning with
15828 # underscore (_), so it is better to generate a list of symbols to
15829 # export.
15830 always_export_symbols_CXX=yes
15831 if test "$aix_use_runtimelinking" = yes; then
15832 # Warning - without using the other runtime loading flags (-brtl),
15833 # -berok will link without error, but may produce a broken library.
15834 allow_undefined_flag_CXX='-berok'
15835 # Determine the default libpath from the value encoded in an empty
15836 # executable.
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839
15840 int
15841 main ()
15842 {
15843
15844 ;
15845 return 0;
15846 }
15847 _ACEOF
15848 if ac_fn_cxx_try_link "$LINENO"; then :
15849
15850 lt_aix_libpath_sed='
15851 /Import File Strings/,/^$/ {
15852 /^0/ {
15853 s/^0 *\(.*\)$/\1/
15854 p
15855 }
15856 }'
15857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15858 # Check for a 64-bit object if we didn't find anything.
15859 if test -z "$aix_libpath"; then
15860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15861 fi
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15866
15867 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15868
15869 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15870 else
15871 if test "$host_cpu" = ia64; then
15872 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15873 allow_undefined_flag_CXX="-z nodefs"
15874 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15875 else
15876 # Determine the default libpath from the value encoded in an
15877 # empty executable.
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880
15881 int
15882 main ()
15883 {
15884
15885 ;
15886 return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_cxx_try_link "$LINENO"; then :
15890
15891 lt_aix_libpath_sed='
15892 /Import File Strings/,/^$/ {
15893 /^0/ {
15894 s/^0 *\(.*\)$/\1/
15895 p
15896 }
15897 }'
15898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15899 # Check for a 64-bit object if we didn't find anything.
15900 if test -z "$aix_libpath"; then
15901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15902 fi
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15907
15908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15909 # Warning - without using the other run time loading flags,
15910 # -berok will link without error, but may produce a broken library.
15911 no_undefined_flag_CXX=' ${wl}-bernotok'
15912 allow_undefined_flag_CXX=' ${wl}-berok'
15913 # Exported symbols can be pulled into shared objects from archives
15914 whole_archive_flag_spec_CXX='$convenience'
15915 archive_cmds_need_lc_CXX=yes
15916 # This is similar to how AIX traditionally builds its shared
15917 # libraries.
15918 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15919 fi
15920 fi
15921 ;;
15922
15923 beos*)
15924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15925 allow_undefined_flag_CXX=unsupported
15926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15927 # support --undefined. This deserves some investigation. FIXME
15928 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 else
15930 ld_shlibs_CXX=no
15931 fi
15932 ;;
15933
15934 chorus*)
15935 case $cc_basename in
15936 *)
15937 # FIXME: insert proper C++ library support
15938 ld_shlibs_CXX=no
15939 ;;
15940 esac
15941 ;;
15942
15943 cygwin* | mingw* | pw32* | cegcc*)
15944 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15945 # as there is no search path for DLLs.
15946 hardcode_libdir_flag_spec_CXX='-L$libdir'
15947 allow_undefined_flag_CXX=unsupported
15948 always_export_symbols_CXX=no
15949 enable_shared_with_static_runtimes_CXX=yes
15950
15951 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15952 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15953 # If the export-symbols file already is a .def file (1st line
15954 # is EXPORTS), use it as is; otherwise, prepend...
15955 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15956 cp $export_symbols $output_objdir/$soname.def;
15957 else
15958 echo EXPORTS > $output_objdir/$soname.def;
15959 cat $export_symbols >> $output_objdir/$soname.def;
15960 fi~
15961 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15962 else
15963 ld_shlibs_CXX=no
15964 fi
15965 ;;
15966 darwin* | rhapsody*)
15967
15968
15969 archive_cmds_need_lc_CXX=no
15970 hardcode_direct_CXX=no
15971 hardcode_automatic_CXX=yes
15972 hardcode_shlibpath_var_CXX=unsupported
15973 whole_archive_flag_spec_CXX=''
15974 link_all_deplibs_CXX=yes
15975 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15976 case $cc_basename in
15977 ifort*) _lt_dar_can_shared=yes ;;
15978 *) _lt_dar_can_shared=$GCC ;;
15979 esac
15980 if test "$_lt_dar_can_shared" = "yes"; then
15981 output_verbose_link_cmd=echo
15982 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15983 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15984 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15985 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15986 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15987 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15988 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15989 fi
15990
15991 else
15992 ld_shlibs_CXX=no
15993 fi
15994
15995 ;;
15996
15997 dgux*)
15998 case $cc_basename in
15999 ec++*)
16000 # FIXME: insert proper C++ library support
16001 ld_shlibs_CXX=no
16002 ;;
16003 ghcx*)
16004 # Green Hills C++ Compiler
16005 # FIXME: insert proper C++ library support
16006 ld_shlibs_CXX=no
16007 ;;
16008 *)
16009 # FIXME: insert proper C++ library support
16010 ld_shlibs_CXX=no
16011 ;;
16012 esac
16013 ;;
16014
16015 freebsd[12]*)
16016 # C++ shared libraries reported to be fairly broken before
16017 # switch to ELF
16018 ld_shlibs_CXX=no
16019 ;;
16020
16021 freebsd-elf*)
16022 archive_cmds_need_lc_CXX=no
16023 ;;
16024
16025 freebsd* | dragonfly*)
16026 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16027 # conventions
16028 ld_shlibs_CXX=yes
16029 ;;
16030
16031 gnu*)
16032 ;;
16033
16034 hpux9*)
16035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16036 hardcode_libdir_separator_CXX=:
16037 export_dynamic_flag_spec_CXX='${wl}-E'
16038 hardcode_direct_CXX=yes
16039 hardcode_minus_L_CXX=yes # Not in the search PATH,
16040 # but as the default
16041 # location of the library.
16042
16043 case $cc_basename in
16044 CC*)
16045 # FIXME: insert proper C++ library support
16046 ld_shlibs_CXX=no
16047 ;;
16048 aCC*)
16049 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
16053 #
16054 # There doesn't appear to be a way to prevent this compiler from
16055 # explicitly linking system object files so we need to strip them
16056 # from the output so that they don't get included in the library
16057 # dependencies.
16058 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16059 ;;
16060 *)
16061 if test "$GXX" = yes; then
16062 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16063 else
16064 # FIXME: insert proper C++ library support
16065 ld_shlibs_CXX=no
16066 fi
16067 ;;
16068 esac
16069 ;;
16070
16071 hpux10*|hpux11*)
16072 if test $with_gnu_ld = no; then
16073 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16074 hardcode_libdir_separator_CXX=:
16075
16076 case $host_cpu in
16077 hppa*64*|ia64*)
16078 ;;
16079 *)
16080 export_dynamic_flag_spec_CXX='${wl}-E'
16081 ;;
16082 esac
16083 fi
16084 case $host_cpu in
16085 hppa*64*|ia64*)
16086 hardcode_direct_CXX=no
16087 hardcode_shlibpath_var_CXX=no
16088 ;;
16089 *)
16090 hardcode_direct_CXX=yes
16091 hardcode_direct_absolute_CXX=yes
16092 hardcode_minus_L_CXX=yes # Not in the search PATH,
16093 # but as the default
16094 # location of the library.
16095 ;;
16096 esac
16097
16098 case $cc_basename in
16099 CC*)
16100 # FIXME: insert proper C++ library support
16101 ld_shlibs_CXX=no
16102 ;;
16103 aCC*)
16104 case $host_cpu in
16105 hppa*64*)
16106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16107 ;;
16108 ia64*)
16109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16110 ;;
16111 *)
16112 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16113 ;;
16114 esac
16115 # Commands to make compiler produce verbose output that lists
16116 # what "hidden" libraries, object files and flags are used when
16117 # linking a shared library.
16118 #
16119 # There doesn't appear to be a way to prevent this compiler from
16120 # explicitly linking system object files so we need to strip them
16121 # from the output so that they don't get included in the library
16122 # dependencies.
16123 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16124 ;;
16125 *)
16126 if test "$GXX" = yes; then
16127 if test $with_gnu_ld = no; then
16128 case $host_cpu in
16129 hppa*64*)
16130 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16131 ;;
16132 ia64*)
16133 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16134 ;;
16135 *)
16136 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16137 ;;
16138 esac
16139 fi
16140 else
16141 # FIXME: insert proper C++ library support
16142 ld_shlibs_CXX=no
16143 fi
16144 ;;
16145 esac
16146 ;;
16147
16148 interix[3-9]*)
16149 hardcode_direct_CXX=no
16150 hardcode_shlibpath_var_CXX=no
16151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16152 export_dynamic_flag_spec_CXX='${wl}-E'
16153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16154 # Instead, shared libraries are loaded at an image base (0x10000000 by
16155 # default) and relocated if they conflict, which is a slow very memory
16156 # consuming and fragmenting process. To avoid this, we pick a random,
16157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16159 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16160 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16161 ;;
16162 irix5* | irix6*)
16163 case $cc_basename in
16164 CC*)
16165 # SGI C++
16166 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16167
16168 # Archives containing C++ object files must be created using
16169 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16170 # necessary to make sure instantiated templates are included
16171 # in the archive.
16172 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16173 ;;
16174 *)
16175 if test "$GXX" = yes; then
16176 if test "$with_gnu_ld" = no; then
16177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16178 else
16179 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16180 fi
16181 fi
16182 link_all_deplibs_CXX=yes
16183 ;;
16184 esac
16185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16186 hardcode_libdir_separator_CXX=:
16187 inherit_rpath_CXX=yes
16188 ;;
16189
16190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16191 case $cc_basename in
16192 KCC*)
16193 # Kuck and Associates, Inc. (KAI) C++ Compiler
16194
16195 # KCC will only create a shared library if the output file
16196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16197 # to its proper name (with version) after linking.
16198 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16199 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16200 # Commands to make compiler produce verbose output that lists
16201 # what "hidden" libraries, object files and flags are used when
16202 # linking a shared library.
16203 #
16204 # There doesn't appear to be a way to prevent this compiler from
16205 # explicitly linking system object files so we need to strip them
16206 # from the output so that they don't get included in the library
16207 # dependencies.
16208 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16209
16210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16212
16213 # Archives containing C++ object files must be created using
16214 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16215 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16216 ;;
16217 icpc* | ecpc* )
16218 # Intel C++
16219 with_gnu_ld=yes
16220 # version 8.0 and above of icpc choke on multiply defined symbols
16221 # if we add $predep_objects and $postdep_objects, however 7.1 and
16222 # earlier do not add the objects themselves.
16223 case `$CC -V 2>&1` in
16224 *"Version 7."*)
16225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16227 ;;
16228 *) # Version 8.0 or newer
16229 tmp_idyn=
16230 case $host_cpu in
16231 ia64*) tmp_idyn=' -i_dynamic';;
16232 esac
16233 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16235 ;;
16236 esac
16237 archive_cmds_need_lc_CXX=no
16238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16240 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16241 ;;
16242 pgCC* | pgcpp*)
16243 # Portland Group C++ compiler
16244 case `$CC -V` in
16245 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16246 prelink_cmds_CXX='tpldir=Template.dir~
16247 rm -rf $tpldir~
16248 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16249 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16250 old_archive_cmds_CXX='tpldir=Template.dir~
16251 rm -rf $tpldir~
16252 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16253 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16254 $RANLIB $oldlib'
16255 archive_cmds_CXX='tpldir=Template.dir~
16256 rm -rf $tpldir~
16257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16258 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16259 archive_expsym_cmds_CXX='tpldir=Template.dir~
16260 rm -rf $tpldir~
16261 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16262 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16263 ;;
16264 *) # Version 6 will use weak symbols
16265 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16266 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16267 ;;
16268 esac
16269
16270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16272 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16273 ;;
16274 cxx*)
16275 # Compaq C++
16276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16278
16279 runpath_var=LD_RUN_PATH
16280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16281 hardcode_libdir_separator_CXX=:
16282
16283 # Commands to make compiler produce verbose output that lists
16284 # what "hidden" libraries, object files and flags are used when
16285 # linking a shared library.
16286 #
16287 # There doesn't appear to be a way to prevent this compiler from
16288 # explicitly linking system object files so we need to strip them
16289 # from the output so that they don't get included in the library
16290 # dependencies.
16291 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16292 ;;
16293 xl*)
16294 # IBM XL 8.0 on PPC, with GNU ld
16295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16297 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16298 if test "x$supports_anon_versioning" = xyes; then
16299 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16301 echo "local: *; };" >> $output_objdir/$libname.ver~
16302 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16303 fi
16304 ;;
16305 *)
16306 case `$CC -V 2>&1 | sed 5q` in
16307 *Sun\ C*)
16308 # Sun C++ 5.9
16309 no_undefined_flag_CXX=' -zdefs'
16310 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16311 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16312 hardcode_libdir_flag_spec_CXX='-R$libdir'
16313 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16314 compiler_needs_object_CXX=yes
16315
16316 # Not sure whether something based on
16317 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16318 # would be better.
16319 output_verbose_link_cmd='echo'
16320
16321 # Archives containing C++ object files must be created using
16322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16323 # necessary to make sure instantiated templates are included
16324 # in the archive.
16325 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16326 ;;
16327 esac
16328 ;;
16329 esac
16330 ;;
16331
16332 lynxos*)
16333 # FIXME: insert proper C++ library support
16334 ld_shlibs_CXX=no
16335 ;;
16336
16337 m88k*)
16338 # FIXME: insert proper C++ library support
16339 ld_shlibs_CXX=no
16340 ;;
16341
16342 mvs*)
16343 case $cc_basename in
16344 cxx*)
16345 # FIXME: insert proper C++ library support
16346 ld_shlibs_CXX=no
16347 ;;
16348 *)
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352 esac
16353 ;;
16354
16355 netbsd*)
16356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16357 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16358 wlarc=
16359 hardcode_libdir_flag_spec_CXX='-R$libdir'
16360 hardcode_direct_CXX=yes
16361 hardcode_shlibpath_var_CXX=no
16362 fi
16363 # Workaround some broken pre-1.5 toolchains
16364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16365 ;;
16366
16367 *nto* | *qnx*)
16368 ld_shlibs_CXX=yes
16369 ;;
16370
16371 openbsd2*)
16372 # C++ shared libraries are fairly broken
16373 ld_shlibs_CXX=no
16374 ;;
16375
16376 openbsd*)
16377 if test -f /usr/libexec/ld.so; then
16378 hardcode_direct_CXX=yes
16379 hardcode_shlibpath_var_CXX=no
16380 hardcode_direct_absolute_CXX=yes
16381 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16384 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16385 export_dynamic_flag_spec_CXX='${wl}-E'
16386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16387 fi
16388 output_verbose_link_cmd=echo
16389 else
16390 ld_shlibs_CXX=no
16391 fi
16392 ;;
16393
16394 osf3* | osf4* | osf5*)
16395 case $cc_basename in
16396 KCC*)
16397 # Kuck and Associates, Inc. (KAI) C++ Compiler
16398
16399 # KCC will only create a shared library if the output file
16400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16401 # to its proper name (with version) after linking.
16402 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16403
16404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16405 hardcode_libdir_separator_CXX=:
16406
16407 # Archives containing C++ object files must be created using
16408 # the KAI C++ compiler.
16409 case $host in
16410 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16411 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16412 esac
16413 ;;
16414 RCC*)
16415 # Rational C++ 2.4.1
16416 # FIXME: insert proper C++ library support
16417 ld_shlibs_CXX=no
16418 ;;
16419 cxx*)
16420 case $host in
16421 osf3*)
16422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16423 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16425 ;;
16426 *)
16427 allow_undefined_flag_CXX=' -expect_unresolved \*'
16428 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16429 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16430 echo "-hidden">> $lib.exp~
16431 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16432 $RM $lib.exp'
16433 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16434 ;;
16435 esac
16436
16437 hardcode_libdir_separator_CXX=:
16438
16439 # Commands to make compiler produce verbose output that lists
16440 # what "hidden" libraries, object files and flags are used when
16441 # linking a shared library.
16442 #
16443 # There doesn't appear to be a way to prevent this compiler from
16444 # explicitly linking system object files so we need to strip them
16445 # from the output so that they don't get included in the library
16446 # dependencies.
16447 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16448 ;;
16449 *)
16450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16452 case $host in
16453 osf3*)
16454 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16455 ;;
16456 *)
16457 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16458 ;;
16459 esac
16460
16461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16462 hardcode_libdir_separator_CXX=:
16463
16464 # Commands to make compiler produce verbose output that lists
16465 # what "hidden" libraries, object files and flags are used when
16466 # linking a shared library.
16467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16468
16469 else
16470 # FIXME: insert proper C++ library support
16471 ld_shlibs_CXX=no
16472 fi
16473 ;;
16474 esac
16475 ;;
16476
16477 psos*)
16478 # FIXME: insert proper C++ library support
16479 ld_shlibs_CXX=no
16480 ;;
16481
16482 sunos4*)
16483 case $cc_basename in
16484 CC*)
16485 # Sun C++ 4.x
16486 # FIXME: insert proper C++ library support
16487 ld_shlibs_CXX=no
16488 ;;
16489 lcc*)
16490 # Lucid
16491 # FIXME: insert proper C++ library support
16492 ld_shlibs_CXX=no
16493 ;;
16494 *)
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 ;;
16498 esac
16499 ;;
16500
16501 solaris*)
16502 case $cc_basename in
16503 CC*)
16504 # Sun C++ 4.2, 5.x and Centerline C++
16505 archive_cmds_need_lc_CXX=yes
16506 no_undefined_flag_CXX=' -zdefs'
16507 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16509 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16510
16511 hardcode_libdir_flag_spec_CXX='-R$libdir'
16512 hardcode_shlibpath_var_CXX=no
16513 case $host_os in
16514 solaris2.[0-5] | solaris2.[0-5].*) ;;
16515 *)
16516 # The compiler driver will combine and reorder linker options,
16517 # but understands `-z linker_flag'.
16518 # Supported since Solaris 2.6 (maybe 2.5.1?)
16519 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16520 ;;
16521 esac
16522 link_all_deplibs_CXX=yes
16523
16524 output_verbose_link_cmd='echo'
16525
16526 # Archives containing C++ object files must be created using
16527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16528 # necessary to make sure instantiated templates are included
16529 # in the archive.
16530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16531 ;;
16532 gcx*)
16533 # Green Hills C++ Compiler
16534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16535
16536 # The C++ compiler must be used to create the archive.
16537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16538 ;;
16539 *)
16540 # GNU C++ compiler with Solaris linker
16541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16543 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16544 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16545 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16547
16548 # Commands to make compiler produce verbose output that lists
16549 # what "hidden" libraries, object files and flags are used when
16550 # linking a shared library.
16551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16552 else
16553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16554 # platform.
16555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16558
16559 # Commands to make compiler produce verbose output that lists
16560 # what "hidden" libraries, object files and flags are used when
16561 # linking a shared library.
16562 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16563 fi
16564
16565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16566 case $host_os in
16567 solaris2.[0-5] | solaris2.[0-5].*) ;;
16568 *)
16569 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16570 ;;
16571 esac
16572 fi
16573 ;;
16574 esac
16575 ;;
16576
16577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16578 no_undefined_flag_CXX='${wl}-z,text'
16579 archive_cmds_need_lc_CXX=no
16580 hardcode_shlibpath_var_CXX=no
16581 runpath_var='LD_RUN_PATH'
16582
16583 case $cc_basename in
16584 CC*)
16585 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16587 ;;
16588 *)
16589 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 ;;
16592 esac
16593 ;;
16594
16595 sysv5* | sco3.2v5* | sco5v6*)
16596 # Note: We can NOT use -z defs as we might desire, because we do not
16597 # link with -lc, and that would cause any symbols used from libc to
16598 # always be unresolved, which means just about no library would
16599 # ever link correctly. If we're not using GNU ld we use -z text
16600 # though, which does catch some bad symbols but isn't as heavy-handed
16601 # as -z defs.
16602 no_undefined_flag_CXX='${wl}-z,text'
16603 allow_undefined_flag_CXX='${wl}-z,nodefs'
16604 archive_cmds_need_lc_CXX=no
16605 hardcode_shlibpath_var_CXX=no
16606 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16607 hardcode_libdir_separator_CXX=':'
16608 link_all_deplibs_CXX=yes
16609 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16610 runpath_var='LD_RUN_PATH'
16611
16612 case $cc_basename in
16613 CC*)
16614 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 ;;
16617 *)
16618 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16620 ;;
16621 esac
16622 ;;
16623
16624 tandem*)
16625 case $cc_basename in
16626 NCC*)
16627 # NonStop-UX NCC 3.20
16628 # FIXME: insert proper C++ library support
16629 ld_shlibs_CXX=no
16630 ;;
16631 *)
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 ;;
16635 esac
16636 ;;
16637
16638 vxworks*)
16639 # FIXME: insert proper C++ library support
16640 ld_shlibs_CXX=no
16641 ;;
16642
16643 *)
16644 # FIXME: insert proper C++ library support
16645 ld_shlibs_CXX=no
16646 ;;
16647 esac
16648
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16650 $as_echo "$ld_shlibs_CXX" >&6; }
16651 test "$ld_shlibs_CXX" = no && can_build_shared=no
16652
16653 GCC_CXX="$GXX"
16654 LD_CXX="$LD"
16655
16656 ## CAVEAT EMPTOR:
16657 ## There is no encapsulation within the following macros, do not change
16658 ## the running order or otherwise move them around unless you know exactly
16659 ## what you are doing...
16660 # Dependencies to place before and after the object being linked:
16661 predep_objects_CXX=
16662 postdep_objects_CXX=
16663 predeps_CXX=
16664 postdeps_CXX=
16665 compiler_lib_search_path_CXX=
16666
16667 cat > conftest.$ac_ext <<_LT_EOF
16668 class Foo
16669 {
16670 public:
16671 Foo (void) { a = 0; }
16672 private:
16673 int a;
16674 };
16675 _LT_EOF
16676
16677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16678 (eval $ac_compile) 2>&5
16679 ac_status=$?
16680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16681 test $ac_status = 0; }; then
16682 # Parse the compiler output and extract the necessary
16683 # objects, libraries and library flags.
16684
16685 # Sentinel used to keep track of whether or not we are before
16686 # the conftest object file.
16687 pre_test_object_deps_done=no
16688
16689 for p in `eval "$output_verbose_link_cmd"`; do
16690 case $p in
16691
16692 -L* | -R* | -l*)
16693 # Some compilers place space between "-{L,R}" and the path.
16694 # Remove the space.
16695 if test $p = "-L" ||
16696 test $p = "-R"; then
16697 prev=$p
16698 continue
16699 else
16700 prev=
16701 fi
16702
16703 if test "$pre_test_object_deps_done" = no; then
16704 case $p in
16705 -L* | -R*)
16706 # Internal compiler library paths should come after those
16707 # provided the user. The postdeps already come after the
16708 # user supplied libs so there is no need to process them.
16709 if test -z "$compiler_lib_search_path_CXX"; then
16710 compiler_lib_search_path_CXX="${prev}${p}"
16711 else
16712 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16713 fi
16714 ;;
16715 # The "-l" case would never come before the object being
16716 # linked, so don't bother handling this case.
16717 esac
16718 else
16719 if test -z "$postdeps_CXX"; then
16720 postdeps_CXX="${prev}${p}"
16721 else
16722 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16723 fi
16724 fi
16725 ;;
16726
16727 *.$objext)
16728 # This assumes that the test object file only shows up
16729 # once in the compiler output.
16730 if test "$p" = "conftest.$objext"; then
16731 pre_test_object_deps_done=yes
16732 continue
16733 fi
16734
16735 if test "$pre_test_object_deps_done" = no; then
16736 if test -z "$predep_objects_CXX"; then
16737 predep_objects_CXX="$p"
16738 else
16739 predep_objects_CXX="$predep_objects_CXX $p"
16740 fi
16741 else
16742 if test -z "$postdep_objects_CXX"; then
16743 postdep_objects_CXX="$p"
16744 else
16745 postdep_objects_CXX="$postdep_objects_CXX $p"
16746 fi
16747 fi
16748 ;;
16749
16750 *) ;; # Ignore the rest.
16751
16752 esac
16753 done
16754
16755 # Clean up.
16756 rm -f a.out a.exe
16757 else
16758 echo "libtool.m4: error: problem compiling CXX test program"
16759 fi
16760
16761 $RM -f confest.$objext
16762
16763 # PORTME: override above test on systems where it is broken
16764 case $host_os in
16765 interix[3-9]*)
16766 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16767 # hack all around it, let's just trust "g++" to DTRT.
16768 predep_objects_CXX=
16769 postdep_objects_CXX=
16770 postdeps_CXX=
16771 ;;
16772
16773 linux*)
16774 case `$CC -V 2>&1 | sed 5q` in
16775 *Sun\ C*)
16776 # Sun C++ 5.9
16777
16778 # The more standards-conforming stlport4 library is
16779 # incompatible with the Cstd library. Avoid specifying
16780 # it if it's in CXXFLAGS. Ignore libCrun as
16781 # -library=stlport4 depends on it.
16782 case " $CXX $CXXFLAGS " in
16783 *" -library=stlport4 "*)
16784 solaris_use_stlport4=yes
16785 ;;
16786 esac
16787
16788 if test "$solaris_use_stlport4" != yes; then
16789 postdeps_CXX='-library=Cstd -library=Crun'
16790 fi
16791 ;;
16792 esac
16793 ;;
16794
16795 solaris*)
16796 case $cc_basename in
16797 CC*)
16798 # The more standards-conforming stlport4 library is
16799 # incompatible with the Cstd library. Avoid specifying
16800 # it if it's in CXXFLAGS. Ignore libCrun as
16801 # -library=stlport4 depends on it.
16802 case " $CXX $CXXFLAGS " in
16803 *" -library=stlport4 "*)
16804 solaris_use_stlport4=yes
16805 ;;
16806 esac
16807
16808 # Adding this requires a known-good setup of shared libraries for
16809 # Sun compiler versions before 5.6, else PIC objects from an old
16810 # archive will be linked into the output, leading to subtle bugs.
16811 if test "$solaris_use_stlport4" != yes; then
16812 postdeps_CXX='-library=Cstd -library=Crun'
16813 fi
16814 ;;
16815 esac
16816 ;;
16817 esac
16818
16819
16820 case " $postdeps_CXX " in
16821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16822 esac
16823 compiler_lib_search_dirs_CXX=
16824 if test -n "${compiler_lib_search_path_CXX}"; then
16825 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16826 fi
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858 lt_prog_compiler_wl_CXX=
16859 lt_prog_compiler_pic_CXX=
16860 lt_prog_compiler_static_CXX=
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16864
16865 # C++ specific cases for pic, static, wl, etc.
16866 if test "$GXX" = yes; then
16867 lt_prog_compiler_wl_CXX='-Wl,'
16868 lt_prog_compiler_static_CXX='-static'
16869
16870 case $host_os in
16871 aix*)
16872 # All AIX code is PIC.
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 now supports IA64 processor
16875 lt_prog_compiler_static_CXX='-Bstatic'
16876 fi
16877 ;;
16878
16879 amigaos*)
16880 case $host_cpu in
16881 powerpc)
16882 # see comment about AmigaOS4 .so support
16883 lt_prog_compiler_pic_CXX='-fPIC'
16884 ;;
16885 m68k)
16886 # FIXME: we need at least 68020 code to build shared libraries, but
16887 # adding the `-m68020' flag to GCC prevents building anything better,
16888 # like `-m68040'.
16889 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16890 ;;
16891 esac
16892 ;;
16893
16894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16895 # PIC is the default for these OSes.
16896 ;;
16897 mingw* | cygwin* | os2* | pw32* | cegcc*)
16898 # This hack is so that the source file can tell whether it is being
16899 # built for inclusion in a dll (and should export symbols for example).
16900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16901 # (--disable-auto-import) libraries
16902 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16903 ;;
16904 darwin* | rhapsody*)
16905 # PIC is the default on this platform
16906 # Common symbols not allowed in MH_DYLIB files
16907 lt_prog_compiler_pic_CXX='-fno-common'
16908 ;;
16909 *djgpp*)
16910 # DJGPP does not support shared libraries at all
16911 lt_prog_compiler_pic_CXX=
16912 ;;
16913 interix[3-9]*)
16914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16915 # Instead, we relocate shared libraries at runtime.
16916 ;;
16917 sysv4*MP*)
16918 if test -d /usr/nec; then
16919 lt_prog_compiler_pic_CXX=-Kconform_pic
16920 fi
16921 ;;
16922 hpux*)
16923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16925 # sets the default TLS model and affects inlining.
16926 case $host_cpu in
16927 hppa*64*)
16928 ;;
16929 *)
16930 lt_prog_compiler_pic_CXX='-fPIC'
16931 ;;
16932 esac
16933 ;;
16934 *qnx* | *nto*)
16935 # QNX uses GNU C++, but need to define -shared option too, otherwise
16936 # it will coredump.
16937 lt_prog_compiler_pic_CXX='-fPIC -shared'
16938 ;;
16939 *)
16940 lt_prog_compiler_pic_CXX='-fPIC'
16941 ;;
16942 esac
16943 else
16944 case $host_os in
16945 aix[4-9]*)
16946 # All AIX code is PIC.
16947 if test "$host_cpu" = ia64; then
16948 # AIX 5 now supports IA64 processor
16949 lt_prog_compiler_static_CXX='-Bstatic'
16950 else
16951 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16952 fi
16953 ;;
16954 chorus*)
16955 case $cc_basename in
16956 cxch68*)
16957 # Green Hills C++ Compiler
16958 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16959 ;;
16960 esac
16961 ;;
16962 dgux*)
16963 case $cc_basename in
16964 ec++*)
16965 lt_prog_compiler_pic_CXX='-KPIC'
16966 ;;
16967 ghcx*)
16968 # Green Hills C++ Compiler
16969 lt_prog_compiler_pic_CXX='-pic'
16970 ;;
16971 *)
16972 ;;
16973 esac
16974 ;;
16975 freebsd* | dragonfly*)
16976 # FreeBSD uses GNU C++
16977 ;;
16978 hpux9* | hpux10* | hpux11*)
16979 case $cc_basename in
16980 CC*)
16981 lt_prog_compiler_wl_CXX='-Wl,'
16982 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16983 if test "$host_cpu" != ia64; then
16984 lt_prog_compiler_pic_CXX='+Z'
16985 fi
16986 ;;
16987 aCC*)
16988 lt_prog_compiler_wl_CXX='-Wl,'
16989 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16990 case $host_cpu in
16991 hppa*64*|ia64*)
16992 # +Z the default
16993 ;;
16994 *)
16995 lt_prog_compiler_pic_CXX='+Z'
16996 ;;
16997 esac
16998 ;;
16999 *)
17000 ;;
17001 esac
17002 ;;
17003 interix*)
17004 # This is c89, which is MS Visual C++ (no shared libs)
17005 # Anyone wants to do a port?
17006 ;;
17007 irix5* | irix6* | nonstopux*)
17008 case $cc_basename in
17009 CC*)
17010 lt_prog_compiler_wl_CXX='-Wl,'
17011 lt_prog_compiler_static_CXX='-non_shared'
17012 # CC pic flag -KPIC is the default.
17013 ;;
17014 *)
17015 ;;
17016 esac
17017 ;;
17018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17019 case $cc_basename in
17020 KCC*)
17021 # KAI C++ Compiler
17022 lt_prog_compiler_wl_CXX='--backend -Wl,'
17023 lt_prog_compiler_pic_CXX='-fPIC'
17024 ;;
17025 ecpc* )
17026 # old Intel C++ for x86_64 which still supported -KPIC.
17027 lt_prog_compiler_wl_CXX='-Wl,'
17028 lt_prog_compiler_pic_CXX='-KPIC'
17029 lt_prog_compiler_static_CXX='-static'
17030 ;;
17031 icpc* )
17032 # Intel C++, used to be incompatible with GCC.
17033 # ICC 10 doesn't accept -KPIC any more.
17034 lt_prog_compiler_wl_CXX='-Wl,'
17035 lt_prog_compiler_pic_CXX='-fPIC'
17036 lt_prog_compiler_static_CXX='-static'
17037 ;;
17038 pgCC* | pgcpp*)
17039 # Portland Group C++ compiler
17040 lt_prog_compiler_wl_CXX='-Wl,'
17041 lt_prog_compiler_pic_CXX='-fpic'
17042 lt_prog_compiler_static_CXX='-Bstatic'
17043 ;;
17044 cxx*)
17045 # Compaq C++
17046 # Make sure the PIC flag is empty. It appears that all Alpha
17047 # Linux and Compaq Tru64 Unix objects are PIC.
17048 lt_prog_compiler_pic_CXX=
17049 lt_prog_compiler_static_CXX='-non_shared'
17050 ;;
17051 xlc* | xlC*)
17052 # IBM XL 8.0 on PPC
17053 lt_prog_compiler_wl_CXX='-Wl,'
17054 lt_prog_compiler_pic_CXX='-qpic'
17055 lt_prog_compiler_static_CXX='-qstaticlink'
17056 ;;
17057 *)
17058 case `$CC -V 2>&1 | sed 5q` in
17059 *Sun\ C*)
17060 # Sun C++ 5.9
17061 lt_prog_compiler_pic_CXX='-KPIC'
17062 lt_prog_compiler_static_CXX='-Bstatic'
17063 lt_prog_compiler_wl_CXX='-Qoption ld '
17064 ;;
17065 esac
17066 ;;
17067 esac
17068 ;;
17069 lynxos*)
17070 ;;
17071 m88k*)
17072 ;;
17073 mvs*)
17074 case $cc_basename in
17075 cxx*)
17076 lt_prog_compiler_pic_CXX='-W c,exportall'
17077 ;;
17078 *)
17079 ;;
17080 esac
17081 ;;
17082 netbsd* | netbsdelf*-gnu)
17083 ;;
17084 *qnx* | *nto*)
17085 # QNX uses GNU C++, but need to define -shared option too, otherwise
17086 # it will coredump.
17087 lt_prog_compiler_pic_CXX='-fPIC -shared'
17088 ;;
17089 osf3* | osf4* | osf5*)
17090 case $cc_basename in
17091 KCC*)
17092 lt_prog_compiler_wl_CXX='--backend -Wl,'
17093 ;;
17094 RCC*)
17095 # Rational C++ 2.4.1
17096 lt_prog_compiler_pic_CXX='-pic'
17097 ;;
17098 cxx*)
17099 # Digital/Compaq C++
17100 lt_prog_compiler_wl_CXX='-Wl,'
17101 # Make sure the PIC flag is empty. It appears that all Alpha
17102 # Linux and Compaq Tru64 Unix objects are PIC.
17103 lt_prog_compiler_pic_CXX=
17104 lt_prog_compiler_static_CXX='-non_shared'
17105 ;;
17106 *)
17107 ;;
17108 esac
17109 ;;
17110 psos*)
17111 ;;
17112 solaris*)
17113 case $cc_basename in
17114 CC*)
17115 # Sun C++ 4.2, 5.x and Centerline C++
17116 lt_prog_compiler_pic_CXX='-KPIC'
17117 lt_prog_compiler_static_CXX='-Bstatic'
17118 lt_prog_compiler_wl_CXX='-Qoption ld '
17119 ;;
17120 gcx*)
17121 # Green Hills C++ Compiler
17122 lt_prog_compiler_pic_CXX='-PIC'
17123 ;;
17124 *)
17125 ;;
17126 esac
17127 ;;
17128 sunos4*)
17129 case $cc_basename in
17130 CC*)
17131 # Sun C++ 4.x
17132 lt_prog_compiler_pic_CXX='-pic'
17133 lt_prog_compiler_static_CXX='-Bstatic'
17134 ;;
17135 lcc*)
17136 # Lucid
17137 lt_prog_compiler_pic_CXX='-pic'
17138 ;;
17139 *)
17140 ;;
17141 esac
17142 ;;
17143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17144 case $cc_basename in
17145 CC*)
17146 lt_prog_compiler_wl_CXX='-Wl,'
17147 lt_prog_compiler_pic_CXX='-KPIC'
17148 lt_prog_compiler_static_CXX='-Bstatic'
17149 ;;
17150 esac
17151 ;;
17152 tandem*)
17153 case $cc_basename in
17154 NCC*)
17155 # NonStop-UX NCC 3.20
17156 lt_prog_compiler_pic_CXX='-KPIC'
17157 ;;
17158 *)
17159 ;;
17160 esac
17161 ;;
17162 vxworks*)
17163 ;;
17164 *)
17165 lt_prog_compiler_can_build_shared_CXX=no
17166 ;;
17167 esac
17168 fi
17169
17170 case $host_os in
17171 # For platforms which do not support PIC, -DPIC is meaningless:
17172 *djgpp*)
17173 lt_prog_compiler_pic_CXX=
17174 ;;
17175 *)
17176 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
17177 ;;
17178 esac
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17180 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17181
17182
17183
17184 #
17185 # Check to make sure the PIC flag actually works.
17186 #
17187 if test -n "$lt_prog_compiler_pic_CXX"; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17189 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17190 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17191 $as_echo_n "(cached) " >&6
17192 else
17193 lt_cv_prog_compiler_pic_works_CXX=no
17194 ac_outfile=conftest.$ac_objext
17195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17196 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
17197 # Insert the option either (1) after the last *FLAGS variable, or
17198 # (2) before a word containing "conftest.", or (3) at the end.
17199 # Note that $ac_compile itself does not contain backslashes and begins
17200 # with a dollar sign (not a hyphen), so the echo should work correctly.
17201 # The option is referenced via a variable to avoid confusing sed.
17202 lt_compile=`echo "$ac_compile" | $SED \
17203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17205 -e 's:$: $lt_compiler_flag:'`
17206 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17207 (eval "$lt_compile" 2>conftest.err)
17208 ac_status=$?
17209 cat conftest.err >&5
17210 echo "$as_me:__oline__: \$? = $ac_status" >&5
17211 if (exit $ac_status) && test -s "$ac_outfile"; then
17212 # The compiler can only warn and ignore the option if not recognized
17213 # So say no if there are warnings other than the usual output.
17214 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17217 lt_cv_prog_compiler_pic_works_CXX=yes
17218 fi
17219 fi
17220 $RM conftest*
17221
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17224 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17225
17226 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17227 case $lt_prog_compiler_pic_CXX in
17228 "" | " "*) ;;
17229 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17230 esac
17231 else
17232 lt_prog_compiler_pic_CXX=
17233 lt_prog_compiler_can_build_shared_CXX=no
17234 fi
17235
17236 fi
17237
17238
17239
17240 #
17241 # Check to make sure the static flag actually works.
17242 #
17243 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17245 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17246 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 lt_cv_prog_compiler_static_works_CXX=no
17250 save_LDFLAGS="$LDFLAGS"
17251 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17252 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17254 # The linker can only warn and ignore the option if not recognized
17255 # So say no if there are warnings
17256 if test -s conftest.err; then
17257 # Append any errors to the config.log.
17258 cat conftest.err 1>&5
17259 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17261 if diff conftest.exp conftest.er2 >/dev/null; then
17262 lt_cv_prog_compiler_static_works_CXX=yes
17263 fi
17264 else
17265 lt_cv_prog_compiler_static_works_CXX=yes
17266 fi
17267 fi
17268 $RM -r conftest*
17269 LDFLAGS="$save_LDFLAGS"
17270
17271 fi
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17273 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17274
17275 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17276 :
17277 else
17278 lt_prog_compiler_static_CXX=
17279 fi
17280
17281
17282
17283
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17286 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17287 $as_echo_n "(cached) " >&6
17288 else
17289 lt_cv_prog_compiler_c_o_CXX=no
17290 $RM -r conftest 2>/dev/null
17291 mkdir conftest
17292 cd conftest
17293 mkdir out
17294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17295
17296 lt_compiler_flag="-o out/conftest2.$ac_objext"
17297 # Insert the option either (1) after the last *FLAGS variable, or
17298 # (2) before a word containing "conftest.", or (3) at the end.
17299 # Note that $ac_compile itself does not contain backslashes and begins
17300 # with a dollar sign (not a hyphen), so the echo should work correctly.
17301 lt_compile=`echo "$ac_compile" | $SED \
17302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17304 -e 's:$: $lt_compiler_flag:'`
17305 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17306 (eval "$lt_compile" 2>out/conftest.err)
17307 ac_status=$?
17308 cat out/conftest.err >&5
17309 echo "$as_me:__oline__: \$? = $ac_status" >&5
17310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17311 then
17312 # The compiler can only warn and ignore the option if not recognized
17313 # So say no if there are warnings
17314 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17317 lt_cv_prog_compiler_c_o_CXX=yes
17318 fi
17319 fi
17320 chmod u+w . 2>&5
17321 $RM conftest*
17322 # SGI C++ compiler will create directory out/ii_files/ for
17323 # template instantiation
17324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17325 $RM out/* && rmdir out
17326 cd ..
17327 $RM -r conftest
17328 $RM conftest*
17329
17330 fi
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17332 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17333
17334
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17338 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17339 $as_echo_n "(cached) " >&6
17340 else
17341 lt_cv_prog_compiler_c_o_CXX=no
17342 $RM -r conftest 2>/dev/null
17343 mkdir conftest
17344 cd conftest
17345 mkdir out
17346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17347
17348 lt_compiler_flag="-o out/conftest2.$ac_objext"
17349 # Insert the option either (1) after the last *FLAGS variable, or
17350 # (2) before a word containing "conftest.", or (3) at the end.
17351 # Note that $ac_compile itself does not contain backslashes and begins
17352 # with a dollar sign (not a hyphen), so the echo should work correctly.
17353 lt_compile=`echo "$ac_compile" | $SED \
17354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17356 -e 's:$: $lt_compiler_flag:'`
17357 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17358 (eval "$lt_compile" 2>out/conftest.err)
17359 ac_status=$?
17360 cat out/conftest.err >&5
17361 echo "$as_me:__oline__: \$? = $ac_status" >&5
17362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17363 then
17364 # The compiler can only warn and ignore the option if not recognized
17365 # So say no if there are warnings
17366 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17369 lt_cv_prog_compiler_c_o_CXX=yes
17370 fi
17371 fi
17372 chmod u+w . 2>&5
17373 $RM conftest*
17374 # SGI C++ compiler will create directory out/ii_files/ for
17375 # template instantiation
17376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17377 $RM out/* && rmdir out
17378 cd ..
17379 $RM -r conftest
17380 $RM conftest*
17381
17382 fi
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17384 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17385
17386
17387
17388
17389 hard_links="nottested"
17390 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17391 # do not overwrite the value of need_locks provided by the user
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17393 $as_echo_n "checking if we can lock with hard links... " >&6; }
17394 hard_links=yes
17395 $RM conftest*
17396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17397 touch conftest.a
17398 ln conftest.a conftest.b 2>&5 || hard_links=no
17399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17401 $as_echo "$hard_links" >&6; }
17402 if test "$hard_links" = no; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17405 need_locks=warn
17406 fi
17407 else
17408 need_locks=no
17409 fi
17410
17411
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17414 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17415
17416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17417 case $host_os in
17418 aix[4-9]*)
17419 # If we're using GNU nm, then we don't want the "-C" option.
17420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17422 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17423 else
17424 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17425 fi
17426 ;;
17427 pw32*)
17428 export_symbols_cmds_CXX="$ltdll_cmds"
17429 ;;
17430 cygwin* | mingw* | cegcc*)
17431 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17432 ;;
17433 linux* | k*bsd*-gnu)
17434 link_all_deplibs_CXX=no
17435 ;;
17436 *)
17437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17438 ;;
17439 esac
17440 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17441
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17443 $as_echo "$ld_shlibs_CXX" >&6; }
17444 test "$ld_shlibs_CXX" = no && can_build_shared=no
17445
17446 with_gnu_ld_CXX=$with_gnu_ld
17447
17448
17449
17450
17451
17452
17453 #
17454 # Do we need to explicitly link libc?
17455 #
17456 case "x$archive_cmds_need_lc_CXX" in
17457 x|xyes)
17458 # Assume -lc should be added
17459 archive_cmds_need_lc_CXX=yes
17460
17461 if test "$enable_shared" = yes && test "$GCC" = yes; then
17462 case $archive_cmds_CXX in
17463 *'~'*)
17464 # FIXME: we may have to deal with multi-command sequences.
17465 ;;
17466 '$CC '*)
17467 # Test whether the compiler implicitly links with -lc since on some
17468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17469 # to ld, don't add -lc before -lgcc.
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17472 $RM conftest*
17473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17474
17475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17476 (eval $ac_compile) 2>&5
17477 ac_status=$?
17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479 test $ac_status = 0; } 2>conftest.err; then
17480 soname=conftest
17481 lib=conftest
17482 libobjs=conftest.$ac_objext
17483 deplibs=
17484 wl=$lt_prog_compiler_wl_CXX
17485 pic_flag=$lt_prog_compiler_pic_CXX
17486 compiler_flags=-v
17487 linker_flags=-v
17488 verstring=
17489 output_objdir=.
17490 libname=conftest
17491 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17492 allow_undefined_flag_CXX=
17493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17494 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17495 ac_status=$?
17496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17497 test $ac_status = 0; }
17498 then
17499 archive_cmds_need_lc_CXX=no
17500 else
17501 archive_cmds_need_lc_CXX=yes
17502 fi
17503 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17504 else
17505 cat conftest.err 1>&5
17506 fi
17507 $RM conftest*
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17509 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17510 ;;
17511 esac
17512 fi
17513 ;;
17514 esac
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17580 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17581
17582 library_names_spec=
17583 libname_spec='lib$name'
17584 soname_spec=
17585 shrext_cmds=".so"
17586 postinstall_cmds=
17587 postuninstall_cmds=
17588 finish_cmds=
17589 finish_eval=
17590 shlibpath_var=
17591 shlibpath_overrides_runpath=unknown
17592 version_type=none
17593 dynamic_linker="$host_os ld.so"
17594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17595 need_lib_prefix=unknown
17596 hardcode_into_libs=no
17597
17598 # when you set need_version to no, make sure it does not cause -set_version
17599 # flags to be left without arguments
17600 need_version=unknown
17601
17602 case $host_os in
17603 aix3*)
17604 version_type=linux
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17606 shlibpath_var=LIBPATH
17607
17608 # AIX 3 has no versioning support, so we append a major version to the name.
17609 soname_spec='${libname}${release}${shared_ext}$major'
17610 ;;
17611
17612 aix[4-9]*)
17613 version_type=linux
17614 need_lib_prefix=no
17615 need_version=no
17616 hardcode_into_libs=yes
17617 if test "$host_cpu" = ia64; then
17618 # AIX 5 supports IA64
17619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 else
17622 # With GCC up to 2.95.x, collect2 would create an import file
17623 # for dependence libraries. The import file would start with
17624 # the line `#! .'. This would cause the generated library to
17625 # depend on `.', always an invalid library. This was fixed in
17626 # development snapshots of GCC prior to 3.0.
17627 case $host_os in
17628 aix4 | aix4.[01] | aix4.[01].*)
17629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17630 echo ' yes '
17631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17632 :
17633 else
17634 can_build_shared=no
17635 fi
17636 ;;
17637 esac
17638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17639 # soname into executable. Probably we can add versioning support to
17640 # collect2, so additional links can be useful in future.
17641 if test "$aix_use_runtimelinking" = yes; then
17642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17643 # instead of lib<name>.a to let people know that these are not
17644 # typical AIX shared libraries.
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 else
17647 # We preserve .a as extension for shared libraries through AIX4.2
17648 # and later when we are not doing run time linking.
17649 library_names_spec='${libname}${release}.a $libname.a'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 fi
17652 shlibpath_var=LIBPATH
17653 fi
17654 ;;
17655
17656 amigaos*)
17657 case $host_cpu in
17658 powerpc)
17659 # Since July 2007 AmigaOS4 officially supports .so libraries.
17660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 ;;
17663 m68k)
17664 library_names_spec='$libname.ixlibrary $libname.a'
17665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17666 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17667 ;;
17668 esac
17669 ;;
17670
17671 beos*)
17672 library_names_spec='${libname}${shared_ext}'
17673 dynamic_linker="$host_os ld.so"
17674 shlibpath_var=LIBRARY_PATH
17675 ;;
17676
17677 bsdi[45]*)
17678 version_type=linux
17679 need_version=no
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17683 shlibpath_var=LD_LIBRARY_PATH
17684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17686 # the default ld.so.conf also contains /usr/contrib/lib and
17687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17688 # libtool to hard-code these into programs
17689 ;;
17690
17691 cygwin* | mingw* | pw32* | cegcc*)
17692 version_type=windows
17693 shrext_cmds=".dll"
17694 need_version=no
17695 need_lib_prefix=no
17696
17697 case $GCC,$host_os in
17698 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17699 library_names_spec='$libname.dll.a'
17700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17701 postinstall_cmds='base_file=`basename \${file}`~
17702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17703 dldir=$destdir/`dirname \$dlpath`~
17704 test -d \$dldir || mkdir -p \$dldir~
17705 $install_prog $dir/$dlname \$dldir/$dlname~
17706 chmod a+x \$dldir/$dlname~
17707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17709 fi'
17710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17711 dlpath=$dir/\$dldll~
17712 $RM \$dlpath'
17713 shlibpath_overrides_runpath=yes
17714
17715 case $host_os in
17716 cygwin*)
17717 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17718 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17719 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17720 ;;
17721 mingw* | cegcc*)
17722 # MinGW DLLs use traditional 'lib' prefix
17723 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17724 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17725 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17726 # It is most probably a Windows format PATH printed by
17727 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17728 # path with ; separators, and with drive letters. We can handle the
17729 # drive letters (cygwin fileutils understands them), so leave them,
17730 # especially as we might pass files found there to a mingw objdump,
17731 # which wouldn't understand a cygwinified path. Ahh.
17732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17733 else
17734 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17735 fi
17736 ;;
17737 pw32*)
17738 # pw32 DLLs use 'pw' prefix rather than 'lib'
17739 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17740 ;;
17741 esac
17742 ;;
17743
17744 *)
17745 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17746 ;;
17747 esac
17748 dynamic_linker='Win32 ld.exe'
17749 # FIXME: first we should search . and the directory the executable is in
17750 shlibpath_var=PATH
17751 ;;
17752
17753 darwin* | rhapsody*)
17754 dynamic_linker="$host_os dyld"
17755 version_type=darwin
17756 need_lib_prefix=no
17757 need_version=no
17758 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17759 soname_spec='${libname}${release}${major}$shared_ext'
17760 shlibpath_overrides_runpath=yes
17761 shlibpath_var=DYLD_LIBRARY_PATH
17762 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17763
17764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17765 ;;
17766
17767 dgux*)
17768 version_type=linux
17769 need_lib_prefix=no
17770 need_version=no
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 ;;
17775
17776 freebsd1*)
17777 dynamic_linker=no
17778 ;;
17779
17780 freebsd* | dragonfly*)
17781 # DragonFly does not have aout. When/if they implement a new
17782 # versioning mechanism, adjust this.
17783 if test -x /usr/bin/objformat; then
17784 objformat=`/usr/bin/objformat`
17785 else
17786 case $host_os in
17787 freebsd[123]*) objformat=aout ;;
17788 *) objformat=elf ;;
17789 esac
17790 fi
17791 version_type=freebsd-$objformat
17792 case $version_type in
17793 freebsd-elf*)
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17795 need_version=no
17796 need_lib_prefix=no
17797 ;;
17798 freebsd-*)
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17800 need_version=yes
17801 ;;
17802 esac
17803 shlibpath_var=LD_LIBRARY_PATH
17804 case $host_os in
17805 freebsd2*)
17806 shlibpath_overrides_runpath=yes
17807 ;;
17808 freebsd3.[01]* | freebsdelf3.[01]*)
17809 shlibpath_overrides_runpath=yes
17810 hardcode_into_libs=yes
17811 ;;
17812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17814 shlibpath_overrides_runpath=no
17815 hardcode_into_libs=yes
17816 ;;
17817 *) # from 4.6 on, and DragonFly
17818 shlibpath_overrides_runpath=yes
17819 hardcode_into_libs=yes
17820 ;;
17821 esac
17822 ;;
17823
17824 gnu*)
17825 version_type=linux
17826 need_lib_prefix=no
17827 need_version=no
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 hardcode_into_libs=yes
17832 ;;
17833
17834 hpux9* | hpux10* | hpux11*)
17835 # Give a soname corresponding to the major version so that dld.sl refuses to
17836 # link against other versions.
17837 version_type=sunos
17838 need_lib_prefix=no
17839 need_version=no
17840 case $host_cpu in
17841 ia64*)
17842 shrext_cmds='.so'
17843 hardcode_into_libs=yes
17844 dynamic_linker="$host_os dld.so"
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 if test "X$HPUX_IA64_MODE" = X32; then
17850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17851 else
17852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17853 fi
17854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17855 ;;
17856 hppa*64*)
17857 shrext_cmds='.sl'
17858 hardcode_into_libs=yes
17859 dynamic_linker="$host_os dld.sl"
17860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17866 ;;
17867 *)
17868 shrext_cmds='.sl'
17869 dynamic_linker="$host_os dld.sl"
17870 shlibpath_var=SHLIB_PATH
17871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 ;;
17875 esac
17876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17877 postinstall_cmds='chmod 555 $lib'
17878 ;;
17879
17880 interix[3-9]*)
17881 version_type=linux
17882 need_lib_prefix=no
17883 need_version=no
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 shlibpath_overrides_runpath=no
17889 hardcode_into_libs=yes
17890 ;;
17891
17892 irix5* | irix6* | nonstopux*)
17893 case $host_os in
17894 nonstopux*) version_type=nonstopux ;;
17895 *)
17896 if test "$lt_cv_prog_gnu_ld" = yes; then
17897 version_type=linux
17898 else
17899 version_type=irix
17900 fi ;;
17901 esac
17902 need_lib_prefix=no
17903 need_version=no
17904 soname_spec='${libname}${release}${shared_ext}$major'
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17906 case $host_os in
17907 irix5* | nonstopux*)
17908 libsuff= shlibsuff=
17909 ;;
17910 *)
17911 case $LD in # libtool.m4 will add one of these switches to LD
17912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17913 libsuff= shlibsuff= libmagic=32-bit;;
17914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17915 libsuff=32 shlibsuff=N32 libmagic=N32;;
17916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17918 *) libsuff= shlibsuff= libmagic=never-match;;
17919 esac
17920 ;;
17921 esac
17922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17923 shlibpath_overrides_runpath=no
17924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17926 hardcode_into_libs=yes
17927 ;;
17928
17929 # No shared lib support for Linux oldld, aout, or coff.
17930 linux*oldld* | linux*aout* | linux*coff*)
17931 dynamic_linker=no
17932 ;;
17933
17934 # This must be Linux ELF.
17935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17936 version_type=linux
17937 need_lib_prefix=no
17938 need_version=no
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17942 shlibpath_var=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath=no
17944 # Some binutils ld are patched to set DT_RUNPATH
17945 save_LDFLAGS=$LDFLAGS
17946 save_libdir=$libdir
17947 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17948 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951
17952 int
17953 main ()
17954 {
17955
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 if ac_fn_cxx_try_link "$LINENO"; then :
17961 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17962 shlibpath_overrides_runpath=yes
17963 fi
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LDFLAGS=$save_LDFLAGS
17968 libdir=$save_libdir
17969
17970 # This implies no fast_install, which is unacceptable.
17971 # Some rework will be needed to allow for fast_install
17972 # before this can be enabled.
17973 hardcode_into_libs=yes
17974
17975 # Append ld.so.conf contents to the search path
17976 if test -f /etc/ld.so.conf; then
17977 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17979 fi
17980
17981 # We used to test for /lib/ld.so.1 and disable shared libraries on
17982 # powerpc, because MkLinux only supported shared libraries with the
17983 # GNU dynamic linker. Since this was broken with cross compilers,
17984 # most powerpc-linux boxes support dynamic linking these days and
17985 # people can always --disable-shared, the test was removed, and we
17986 # assume the GNU/Linux dynamic linker is in use.
17987 dynamic_linker='GNU/Linux ld.so'
17988 ;;
17989
17990 netbsdelf*-gnu)
17991 version_type=linux
17992 need_lib_prefix=no
17993 need_version=no
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 shlibpath_overrides_runpath=no
17998 hardcode_into_libs=yes
17999 dynamic_linker='NetBSD ld.elf_so'
18000 ;;
18001
18002 netbsd*)
18003 version_type=sunos
18004 need_lib_prefix=no
18005 need_version=no
18006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18009 dynamic_linker='NetBSD (a.out) ld.so'
18010 else
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18012 soname_spec='${libname}${release}${shared_ext}$major'
18013 dynamic_linker='NetBSD ld.elf_so'
18014 fi
18015 shlibpath_var=LD_LIBRARY_PATH
18016 shlibpath_overrides_runpath=yes
18017 hardcode_into_libs=yes
18018 ;;
18019
18020 newsos6)
18021 version_type=linux
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath=yes
18025 ;;
18026
18027 *nto* | *qnx*)
18028 version_type=qnx
18029 need_lib_prefix=no
18030 need_version=no
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=no
18035 hardcode_into_libs=yes
18036 dynamic_linker='ldqnx.so'
18037 ;;
18038
18039 openbsd*)
18040 version_type=sunos
18041 sys_lib_dlsearch_path_spec="/usr/lib"
18042 need_lib_prefix=no
18043 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18044 case $host_os in
18045 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18046 *) need_version=no ;;
18047 esac
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18050 shlibpath_var=LD_LIBRARY_PATH
18051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052 case $host_os in
18053 openbsd2.[89] | openbsd2.[89].*)
18054 shlibpath_overrides_runpath=no
18055 ;;
18056 *)
18057 shlibpath_overrides_runpath=yes
18058 ;;
18059 esac
18060 else
18061 shlibpath_overrides_runpath=yes
18062 fi
18063 ;;
18064
18065 os2*)
18066 libname_spec='$name'
18067 shrext_cmds=".dll"
18068 need_lib_prefix=no
18069 library_names_spec='$libname${shared_ext} $libname.a'
18070 dynamic_linker='OS/2 ld.exe'
18071 shlibpath_var=LIBPATH
18072 ;;
18073
18074 osf3* | osf4* | osf5*)
18075 version_type=osf
18076 need_lib_prefix=no
18077 need_version=no
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18083 ;;
18084
18085 rdos*)
18086 dynamic_linker=no
18087 ;;
18088
18089 solaris*)
18090 version_type=linux
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 shlibpath_var=LD_LIBRARY_PATH
18096 shlibpath_overrides_runpath=yes
18097 hardcode_into_libs=yes
18098 # ldd complains unless libraries are executable
18099 postinstall_cmds='chmod +x $lib'
18100 ;;
18101
18102 sunos4*)
18103 version_type=sunos
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18108 if test "$with_gnu_ld" = yes; then
18109 need_lib_prefix=no
18110 fi
18111 need_version=yes
18112 ;;
18113
18114 sysv4 | sysv4.3*)
18115 version_type=linux
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117 soname_spec='${libname}${release}${shared_ext}$major'
18118 shlibpath_var=LD_LIBRARY_PATH
18119 case $host_vendor in
18120 sni)
18121 shlibpath_overrides_runpath=no
18122 need_lib_prefix=no
18123 runpath_var=LD_RUN_PATH
18124 ;;
18125 siemens)
18126 need_lib_prefix=no
18127 ;;
18128 motorola)
18129 need_lib_prefix=no
18130 need_version=no
18131 shlibpath_overrides_runpath=no
18132 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18133 ;;
18134 esac
18135 ;;
18136
18137 sysv4*MP*)
18138 if test -d /usr/nec ;then
18139 version_type=linux
18140 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18141 soname_spec='$libname${shared_ext}.$major'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 fi
18144 ;;
18145
18146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18147 version_type=freebsd-elf
18148 need_lib_prefix=no
18149 need_version=no
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18151 soname_spec='${libname}${release}${shared_ext}$major'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath=yes
18154 hardcode_into_libs=yes
18155 if test "$with_gnu_ld" = yes; then
18156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18157 else
18158 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18159 case $host_os in
18160 sco3.2v5*)
18161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18162 ;;
18163 esac
18164 fi
18165 sys_lib_dlsearch_path_spec='/usr/lib'
18166 ;;
18167
18168 tpf*)
18169 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18170 version_type=linux
18171 need_lib_prefix=no
18172 need_version=no
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=no
18176 hardcode_into_libs=yes
18177 ;;
18178
18179 uts4*)
18180 version_type=linux
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 ;;
18185
18186 *)
18187 dynamic_linker=no
18188 ;;
18189 esac
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18191 $as_echo "$dynamic_linker" >&6; }
18192 test "$dynamic_linker" = no && can_build_shared=no
18193
18194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18195 if test "$GCC" = yes; then
18196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18197 fi
18198
18199 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18200 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18201 fi
18202 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18203 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18204 fi
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18242 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18243 hardcode_action_CXX=
18244 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18245 test -n "$runpath_var_CXX" ||
18246 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18247
18248 # We can hardcode non-existent directories.
18249 if test "$hardcode_direct_CXX" != no &&
18250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18251 # have to relink, otherwise we might link with an installed library
18252 # when we should be linking with a yet-to-be-installed one
18253 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18254 test "$hardcode_minus_L_CXX" != no; then
18255 # Linking always hardcodes the temporary library directory.
18256 hardcode_action_CXX=relink
18257 else
18258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18259 hardcode_action_CXX=immediate
18260 fi
18261 else
18262 # We cannot hardcode anything, or else we can only hardcode existing
18263 # directories.
18264 hardcode_action_CXX=unsupported
18265 fi
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18267 $as_echo "$hardcode_action_CXX" >&6; }
18268
18269 if test "$hardcode_action_CXX" = relink ||
18270 test "$inherit_rpath_CXX" = yes; then
18271 # Fast installation is not supported
18272 enable_fast_install=no
18273 elif test "$shlibpath_overrides_runpath" = yes ||
18274 test "$enable_shared" = no; then
18275 # Fast installation is not necessary
18276 enable_fast_install=needless
18277 fi
18278
18279
18280
18281
18282
18283
18284
18285 fi # test -n "$compiler"
18286
18287 CC=$lt_save_CC
18288 LDCXX=$LD
18289 LD=$lt_save_LD
18290 GCC=$lt_save_GCC
18291 with_gnu_ld=$lt_save_with_gnu_ld
18292 lt_cv_path_LDCXX=$lt_cv_path_LD
18293 lt_cv_path_LD=$lt_save_path_LD
18294 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18295 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18296 fi # test "$_lt_caught_CXX_error" != yes
18297
18298 ac_ext=c
18299 ac_cpp='$CPP $CPPFLAGS'
18300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316 ac_config_commands="$ac_config_commands libtool"
18317
18318
18319
18320
18321 # Only expand once:
18322
18323
18324
18325
18326 if test "x$glib" = "xyes"; then
18327 EVENT_GLIB_TRUE=
18328 EVENT_GLIB_FALSE='#'
18329 else
18330 EVENT_GLIB_TRUE='#'
18331 EVENT_GLIB_FALSE=
18332 fi
18333
18334 if test "x$glib" = "xno"; then
18335 SUPPORT_GLIB_TRUE=
18336 SUPPORT_GLIB_FALSE='#'
18337 else
18338 SUPPORT_GLIB_TRUE='#'
18339 SUPPORT_GLIB_FALSE=
18340 fi
18341
18342 if test "x$glib" = "xno"; then
18343 SUPPORT_EZXML_TRUE=
18344 SUPPORT_EZXML_FALSE='#'
18345 else
18346 SUPPORT_EZXML_TRUE='#'
18347 SUPPORT_EZXML_FALSE=
18348 fi
18349
18350
18351 if test "x${ZLIB_CFLAGS}" = "x" -a "x${ZLIB_LIBS}" = "x"; then
18352 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18353 if test "x$ac_cv_header_zlib_h" = xyes; then :
18354
18355 $as_echo "@%:@define HAVE_ZLIB /**/" >>confdefs.h
18356
18357 ZLIB_LIBS="-lz"
18358 zlib=yes
18359 else
18360 ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
18361 ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
18362 zlib=no
18363
18364 fi
18365
18366
18367 else
18368 zlib=yes
18369 fi
18370 if test "x$zlib" = "xno"; then
18371 SUPPORT_ZLIB_TRUE=
18372 SUPPORT_ZLIB_FALSE='#'
18373 else
18374 SUPPORT_ZLIB_TRUE='#'
18375 SUPPORT_ZLIB_FALSE=
18376 fi
18377
18378
18379
18380
18381 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18382 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
18383
18384 $as_echo "@%:@define HAVE_SOCKET /**/" >>confdefs.h
18385
18386 fi
18387
18388
18389 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18390 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18391
18392 $as_echo "@%:@define HAVE_WINSOCK /**/" >>confdefs.h
18393
18394 fi
18395
18396
18397
18398 # gtk
18399
18400 pkg_failed=no
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
18402 $as_echo_n "checking for GTK2... " >&6; }
18403
18404 if test -n "$PKG_CONFIG"; then
18405 if test -n "$GTK2_CFLAGS"; then
18406 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
18407 else
18408 if test -n "$PKG_CONFIG" && \
18409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
18410 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
18411 ac_status=$?
18412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18413 test $ac_status = 0; }; then
18414 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
18415 else
18416 pkg_failed=yes
18417 fi
18418 fi
18419 else
18420 pkg_failed=untried
18421 fi
18422 if test -n "$PKG_CONFIG"; then
18423 if test -n "$GTK2_LIBS"; then
18424 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
18425 else
18426 if test -n "$PKG_CONFIG" && \
18427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
18428 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
18429 ac_status=$?
18430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18431 test $ac_status = 0; }; then
18432 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
18433 else
18434 pkg_failed=yes
18435 fi
18436 fi
18437 else
18438 pkg_failed=untried
18439 fi
18440
18441
18442
18443 if test $pkg_failed = yes; then
18444
18445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18446 _pkg_short_errors_supported=yes
18447 else
18448 _pkg_short_errors_supported=no
18449 fi
18450 if test $_pkg_short_errors_supported = yes; then
18451 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
18452 else
18453 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
18454 fi
18455 # Put the nasty error message in config.log where it belongs
18456 echo "$GTK2_PKG_ERRORS" >&5
18457
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18460 gtk2_pkgconfig=no
18461 elif test $pkg_failed = untried; then
18462 gtk2_pkgconfig=no
18463 else
18464 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
18465 GTK2_LIBS=$pkg_cv_GTK2_LIBS
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18468 gtk2_pkgconfig=yes
18469 fi
18470 if test "x$gtk2_pkgconfig" = "xyes"; then
18471
18472 $as_echo "@%:@define HAVE_GTK2 1" >>confdefs.h
18473
18474 graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
18475 gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
18476 fi
18477
18478 # fsync
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
18480 $as_echo_n "checking for fsync... " >&6; }
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483 #include <unistd.h>
18484 int
18485 main ()
18486 {
18487 fsync(0);
18488 ;
18489 return 0;
18490 }
18491 _ACEOF
18492 if ac_fn_c_try_link "$LINENO"; then :
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18494 $as_echo "yes" >&6; };
18495 $as_echo "@%:@define HAVE_FSYNC 1" >>confdefs.h
18496
18497 else
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503
18504 # system
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system" >&5
18506 $as_echo_n "checking for system... " >&6; }
18507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h. */
18509 #include <stdlib.h>
18510 int
18511 main ()
18512 {
18513 system("/bin/true");
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 if ac_fn_c_try_link "$LINENO"; then :
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18520 $as_echo "yes" >&6; };
18521 $as_echo "@%:@define HAVE_SYSTEM 1" >>confdefs.h
18522
18523 else
18524 speech_cmdline=no; speech_cmdline_reason="not supported without system()"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525 $as_echo "no" >&6; }
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18529
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateProcess" >&5
18531 $as_echo_n "checking for CreateProcess... " >&6; }
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18534 #include <windows.h>
18535 int
18536 main ()
18537 {
18538 CreateProcess(NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL);
18539 ;
18540 return 0;
18541 }
18542 _ACEOF
18543 if ac_fn_c_try_link "$LINENO"; then :
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18545 $as_echo "yes" >&6; };
18546 $as_echo "@%:@define HAVE_CREATEPROCESS 1" >>confdefs.h
18547 speech_cmdline=yes; speech_cmdline_reason="CreateProcess exists"
18548 else
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550 $as_echo "no" >&6; }
18551 fi
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554
18555 @%:@ Check whether --enable-graphics-sdl was given.
18556 if test "${enable_graphics_sdl+set}" = set; then :
18557 enableval=$enable_graphics_sdl; graphics_sdl=$enableval;graphics_sdl_reason="configure parameter"
18558 fi
18559
18560
18561 if test "x${graphics_sdl}" = "xyes" ; then
18562
18563 pkg_failed=no
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
18565 $as_echo_n "checking for SDL... " >&6; }
18566
18567 if test -n "$PKG_CONFIG"; then
18568 if test -n "$SDL_CFLAGS"; then
18569 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
18570 else
18571 if test -n "$PKG_CONFIG" && \
18572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
18573 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
18574 ac_status=$?
18575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18576 test $ac_status = 0; }; then
18577 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
18578 else
18579 pkg_failed=yes
18580 fi
18581 fi
18582 else
18583 pkg_failed=untried
18584 fi
18585 if test -n "$PKG_CONFIG"; then
18586 if test -n "$SDL_LIBS"; then
18587 pkg_cv_SDL_LIBS="$SDL_LIBS"
18588 else
18589 if test -n "$PKG_CONFIG" && \
18590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
18591 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
18592 ac_status=$?
18593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18594 test $ac_status = 0; }; then
18595 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
18596 else
18597 pkg_failed=yes
18598 fi
18599 fi
18600 else
18601 pkg_failed=untried
18602 fi
18603
18604
18605
18606 if test $pkg_failed = yes; then
18607
18608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18609 _pkg_short_errors_supported=yes
18610 else
18611 _pkg_short_errors_supported=no
18612 fi
18613 if test $_pkg_short_errors_supported = yes; then
18614 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl"`
18615 else
18616 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"`
18617 fi
18618 # Put the nasty error message in config.log where it belongs
18619 echo "$SDL_PKG_ERRORS" >&5
18620
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18623 graphics_sdl="no"
18624 graphics_sdl_reason="sdl not available"
18625
18626 elif test $pkg_failed = untried; then
18627 graphics_sdl="no"
18628 graphics_sdl_reason="sdl not available"
18629
18630 else
18631 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
18632 SDL_LIBS=$pkg_cv_SDL_LIBS
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18635 graphics_sdl="yes"
18636 graphics_sdl_reason="sdl present"
18637 fi
18638
18639
18640 fi
18641 if test "x${graphics_sdl}" = "xyes" ; then
18642 save_CPPFLAGS=$CPPFLAGS
18643 CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
18644 ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
18645 if test "x$ac_cv_header_SDL_image_h" = xyes; then :
18646 SDL_IMAGE_LIBS=-lSDL_image
18647 else
18648 graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing"
18649 fi
18650
18651
18652
18653 CPPFLAGS=$save_CPPFLAGS
18654 fi
18655 if test "x${graphics_sdl}" = "xyes" ; then
18656
18657 $as_echo "@%:@define GRAPHICS_SDL 1" >>confdefs.h
18658
18659 fi
18660 if test "x${graphics_sdl}" = "xyes"; then
18661 GRAPHICS_SDL_TRUE=
18662 GRAPHICS_SDL_FALSE='#'
18663 else
18664 GRAPHICS_SDL_TRUE='#'
18665 GRAPHICS_SDL_FALSE=
18666 fi
18667
18668
18669 @%:@ Check whether --enable-postgresql was given.
18670 if test "${enable_postgresql+set}" = set; then :
18671 enableval=$enable_postgresql; postgresql=$enableval;postgresql_reason="configure parameter"
18672 fi
18673
18674 if test "x${postgresql}" = "xyes" ; then
18675 if test -z "$PG_CONFIG"; then
18676 # Extract the first word of "pg_config", so it can be a program name with args.
18677 set dummy pg_config; ac_word=$2
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679 $as_echo_n "checking for $ac_word... " >&6; }
18680 if ${ac_cv_path_PG_CONFIG+:} false; then :
18681 $as_echo_n "(cached) " >&6
18682 else
18683 case $PG_CONFIG in
18684 [\\/]* | ?:[\\/]*)
18685 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18686 ;;
18687 *)
18688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18690 do
18691 IFS=$as_save_IFS
18692 test -z "$as_dir" && as_dir=.
18693 for ac_exec_ext in '' $ac_executable_extensions; do
18694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18695 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18697 break 2
18698 fi
18699 done
18700 done
18701 IFS=$as_save_IFS
18702
18703 ;;
18704 esac
18705 fi
18706 PG_CONFIG=$ac_cv_path_PG_CONFIG
18707 if test -n "$PG_CONFIG"; then
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
18709 $as_echo "$PG_CONFIG" >&6; }
18710 else
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18712 $as_echo "no" >&6; }
18713 fi
18714
18715
18716 fi
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries with $PG_CONFIG" >&5
18718 $as_echo_n "checking for PostgreSQL libraries with $PG_CONFIG... " >&6; }
18719 if test ! -x "$PG_CONFIG"; then
18720 if test "x${PG_CONFIG}" = "x" ; then
18721 postgresql_reason="$PG_CONFIG not executable"
18722 else
18723 postgresql_reason="pg_config missing"
18724 fi
18725 postgresql=no
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18727 $as_echo "no" >&6; }
18728 else
18729 POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18730 POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
18731
18732 $as_echo "@%:@define HAVE_POSTGRESQL 1" >>confdefs.h
18733
18734
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18738 fi
18739 fi
18740 if test "x${postgresql}" = "xyes"; then
18741 HAVE_POSTGRESQL_TRUE=
18742 HAVE_POSTGRESQL_FALSE='#'
18743 else
18744 HAVE_POSTGRESQL_TRUE='#'
18745 HAVE_POSTGRESQL_FALSE=
18746 fi
18747
18748 # font
18749 # freetype
18750 @%:@ Check whether --enable-font-freetype was given.
18751 if test "${enable_font_freetype+set}" = set; then :
18752 enableval=$enable_font_freetype; font_freetype=$enableval;font_freetype_reason="configure parameter"
18753 fi
18754
18755 if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
18756
18757 pkg_failed=no
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
18759 $as_echo_n "checking for FREETYPE2... " >&6; }
18760
18761 if test -n "$PKG_CONFIG"; then
18762 if test -n "$FREETYPE2_CFLAGS"; then
18763 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
18764 else
18765 if test -n "$PKG_CONFIG" && \
18766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18767 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18768 ac_status=$?
18769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18770 test $ac_status = 0; }; then
18771 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18772 else
18773 pkg_failed=yes
18774 fi
18775 fi
18776 else
18777 pkg_failed=untried
18778 fi
18779 if test -n "$PKG_CONFIG"; then
18780 if test -n "$FREETYPE2_LIBS"; then
18781 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
18782 else
18783 if test -n "$PKG_CONFIG" && \
18784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18785 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18786 ac_status=$?
18787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788 test $ac_status = 0; }; then
18789 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18790 else
18791 pkg_failed=yes
18792 fi
18793 fi
18794 else
18795 pkg_failed=untried
18796 fi
18797
18798
18799
18800 if test $pkg_failed = yes; then
18801
18802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18803 _pkg_short_errors_supported=yes
18804 else
18805 _pkg_short_errors_supported=no
18806 fi
18807 if test $_pkg_short_errors_supported = yes; then
18808 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
18809 else
18810 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
18811 fi
18812 # Put the nasty error message in config.log where it belongs
18813 echo "$FREETYPE2_PKG_ERRORS" >&5
18814
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817 font_freetype=no;font_freetype_reason="Package freetype2 missing"
18818 elif test $pkg_failed = untried; then
18819 font_freetype=no;font_freetype_reason="Package freetype2 missing"
18820 else
18821 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
18822 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18824 $as_echo "yes" >&6; }
18825 :
18826 fi
18827 else
18828 fribidi=no
18829 fi
18830
18831
18832 if test "x${font_freetype}" = "xyes"; then
18833 FONT_FREETYPE_TRUE=
18834 FONT_FREETYPE_FALSE='#'
18835 else
18836 FONT_FREETYPE_TRUE='#'
18837 FONT_FREETYPE_FALSE=
18838 fi
18839
18840
18841 @%:@ Check whether --with-freetype-fonts was given.
18842 if test "${with_freetype_fonts+set}" = set; then :
18843 withval=$with_freetype_fonts;
18844 cat >>confdefs.h <<_ACEOF
18845 @%:@define FREETYPE_FONTS ${withval}
18846 _ACEOF
18847
18848 fi
18849
18850
18851 @%:@ Check whether --enable-fontconfig was given.
18852 if test "${enable_fontconfig+set}" = set; then :
18853 enableval=$enable_fontconfig; fontconfig=$enableval;fontconfig_reason="configure parameter"
18854 fi
18855
18856 if test "x${fontconfig}" = "xyes"; then
18857
18858 pkg_failed=no
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18860 $as_echo_n "checking for FONTCONFIG... " >&6; }
18861
18862 if test -n "$PKG_CONFIG"; then
18863 if test -n "$FONTCONFIG_CFLAGS"; then
18864 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18865 else
18866 if test -n "$PKG_CONFIG" && \
18867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18868 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18869 ac_status=$?
18870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18871 test $ac_status = 0; }; then
18872 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18873 else
18874 pkg_failed=yes
18875 fi
18876 fi
18877 else
18878 pkg_failed=untried
18879 fi
18880 if test -n "$PKG_CONFIG"; then
18881 if test -n "$FONTCONFIG_LIBS"; then
18882 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18883 else
18884 if test -n "$PKG_CONFIG" && \
18885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18886 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18887 ac_status=$?
18888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18889 test $ac_status = 0; }; then
18890 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18891 else
18892 pkg_failed=yes
18893 fi
18894 fi
18895 else
18896 pkg_failed=untried
18897 fi
18898
18899
18900
18901 if test $pkg_failed = yes; then
18902
18903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18904 _pkg_short_errors_supported=yes
18905 else
18906 _pkg_short_errors_supported=no
18907 fi
18908 if test $_pkg_short_errors_supported = yes; then
18909 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
18910 else
18911 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
18912 fi
18913 # Put the nasty error message in config.log where it belongs
18914 echo "$FONTCONFIG_PKG_ERRORS" >&5
18915
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18917 $as_echo "no" >&6; }
18918 fontconfig=no
18919 elif test $pkg_failed = untried; then
18920 fontconfig=no
18921 else
18922 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18923 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18925 $as_echo "yes" >&6; }
18926 fontconfig=yes
18927 fi
18928 fi
18929 if test "x$fontconfig" = "xyes"; then
18930
18931 $as_echo "@%:@define HAVE_FONTCONFIG 1" >>confdefs.h
18932
18933 fi
18934
18935
18936
18937 if test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes"; then
18938 FONTS_TRUE=
18939 FONTS_FALSE='#'
18940 else
18941 FONTS_TRUE='#'
18942 FONTS_FALSE=
18943 fi
18944
18945
18946 # fribidi
18947 @%:@ Check whether --enable-fribidi was given.
18948 if test "${enable_fribidi+set}" = set; then :
18949 enableval=$enable_fribidi; fribidi=$enableval;fribidi_reason="configure parameter"
18950 else
18951 fribidi=yes
18952 fi
18953
18954 if test x"${fribidi}" = "xyes"; then
18955
18956 pkg_failed=no
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI2" >&5
18958 $as_echo_n "checking for FRIBIDI2... " >&6; }
18959
18960 if test -n "$PKG_CONFIG"; then
18961 if test -n "$FRIBIDI2_CFLAGS"; then
18962 pkg_cv_FRIBIDI2_CFLAGS="$FRIBIDI2_CFLAGS"
18963 else
18964 if test -n "$PKG_CONFIG" && \
18965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
18966 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
18967 ac_status=$?
18968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18969 test $ac_status = 0; }; then
18970 pkg_cv_FRIBIDI2_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.0" 2>/dev/null`
18971 else
18972 pkg_failed=yes
18973 fi
18974 fi
18975 else
18976 pkg_failed=untried
18977 fi
18978 if test -n "$PKG_CONFIG"; then
18979 if test -n "$FRIBIDI2_LIBS"; then
18980 pkg_cv_FRIBIDI2_LIBS="$FRIBIDI2_LIBS"
18981 else
18982 if test -n "$PKG_CONFIG" && \
18983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
18984 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
18985 ac_status=$?
18986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18987 test $ac_status = 0; }; then
18988 pkg_cv_FRIBIDI2_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.0" 2>/dev/null`
18989 else
18990 pkg_failed=yes
18991 fi
18992 fi
18993 else
18994 pkg_failed=untried
18995 fi
18996
18997
18998
18999 if test $pkg_failed = yes; then
19000
19001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19002 _pkg_short_errors_supported=yes
19003 else
19004 _pkg_short_errors_supported=no
19005 fi
19006 if test $_pkg_short_errors_supported = yes; then
19007 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi >= 0.19.0"`
19008 else
19009 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi >= 0.19.0"`
19010 fi
19011 # Put the nasty error message in config.log where it belongs
19012 echo "$FRIBIDI2_PKG_ERRORS" >&5
19013
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 $as_echo "no" >&6; }
19016
19017 pkg_failed=no
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
19019 $as_echo_n "checking for FRIBIDI... " >&6; }
19020
19021 if test -n "$PKG_CONFIG"; then
19022 if test -n "$FRIBIDI_CFLAGS"; then
19023 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
19024 else
19025 if test -n "$PKG_CONFIG" && \
19026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19027 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19028 ac_status=$?
19029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19030 test $ac_status = 0; }; then
19031 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
19032 else
19033 pkg_failed=yes
19034 fi
19035 fi
19036 else
19037 pkg_failed=untried
19038 fi
19039 if test -n "$PKG_CONFIG"; then
19040 if test -n "$FRIBIDI_LIBS"; then
19041 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
19042 else
19043 if test -n "$PKG_CONFIG" && \
19044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19045 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19046 ac_status=$?
19047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19048 test $ac_status = 0; }; then
19049 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
19050 else
19051 pkg_failed=yes
19052 fi
19053 fi
19054 else
19055 pkg_failed=untried
19056 fi
19057
19058
19059
19060 if test $pkg_failed = yes; then
19061
19062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19063 _pkg_short_errors_supported=yes
19064 else
19065 _pkg_short_errors_supported=no
19066 fi
19067 if test $_pkg_short_errors_supported = yes; then
19068 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi"`
19069 else
19070 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"`
19071 fi
19072 # Put the nasty error message in config.log where it belongs
19073 echo "$FRIBIDI_PKG_ERRORS" >&5
19074
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19076 $as_echo "no" >&6; }
19077 fribidi=no;fribidi_reason="FriBidi library not found"
19078 elif test $pkg_failed = untried; then
19079 fribidi=no;fribidi_reason="FriBidi library not found"
19080 else
19081 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
19082 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19084 $as_echo "yes" >&6; }
19085 fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
19086 fi
19087
19088 elif test $pkg_failed = untried; then
19089
19090 pkg_failed=no
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
19092 $as_echo_n "checking for FRIBIDI... " >&6; }
19093
19094 if test -n "$PKG_CONFIG"; then
19095 if test -n "$FRIBIDI_CFLAGS"; then
19096 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
19097 else
19098 if test -n "$PKG_CONFIG" && \
19099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19100 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19101 ac_status=$?
19102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19103 test $ac_status = 0; }; then
19104 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
19105 else
19106 pkg_failed=yes
19107 fi
19108 fi
19109 else
19110 pkg_failed=untried
19111 fi
19112 if test -n "$PKG_CONFIG"; then
19113 if test -n "$FRIBIDI_LIBS"; then
19114 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
19115 else
19116 if test -n "$PKG_CONFIG" && \
19117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19118 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19119 ac_status=$?
19120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19121 test $ac_status = 0; }; then
19122 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
19123 else
19124 pkg_failed=yes
19125 fi
19126 fi
19127 else
19128 pkg_failed=untried
19129 fi
19130
19131
19132
19133 if test $pkg_failed = yes; then
19134
19135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19136 _pkg_short_errors_supported=yes
19137 else
19138 _pkg_short_errors_supported=no
19139 fi
19140 if test $_pkg_short_errors_supported = yes; then
19141 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi"`
19142 else
19143 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"`
19144 fi
19145 # Put the nasty error message in config.log where it belongs
19146 echo "$FRIBIDI_PKG_ERRORS" >&5
19147
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19150 fribidi=no;fribidi_reason="FriBidi library not found"
19151 elif test $pkg_failed = untried; then
19152 fribidi=no;fribidi_reason="FriBidi library not found"
19153 else
19154 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
19155 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157 $as_echo "yes" >&6; }
19158 fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
19159 fi
19160
19161 else
19162 FRIBIDI2_CFLAGS=$pkg_cv_FRIBIDI2_CFLAGS
19163 FRIBIDI2_LIBS=$pkg_cv_FRIBIDI2_LIBS
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166 fribidi=yes;oldfribidi=no
19167 fi
19168 fi
19169 if test x"${fribidi}" = "xyes"; then
19170
19171 $as_echo "@%:@define USE_FRIBIDI 1" >>confdefs.h
19172
19173 fi
19174 if test x"${oldfribidi}" = "xyes"; then
19175
19176 $as_echo "@%:@define FRIBIDIOLD 1" >>confdefs.h
19177
19178 fi
19179
19180
19181
19182
19183
19184
19185
19186 pkg_failed=no
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB2" >&5
19188 $as_echo_n "checking for IMLIB2... " >&6; }
19189
19190 if test -n "$PKG_CONFIG"; then
19191 if test -n "$IMLIB2_CFLAGS"; then
19192 pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
19193 else
19194 if test -n "$PKG_CONFIG" && \
19195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
19196 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
19197 ac_status=$?
19198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19199 test $ac_status = 0; }; then
19200 pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
19201 else
19202 pkg_failed=yes
19203 fi
19204 fi
19205 else
19206 pkg_failed=untried
19207 fi
19208 if test -n "$PKG_CONFIG"; then
19209 if test -n "$IMLIB2_LIBS"; then
19210 pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
19211 else
19212 if test -n "$PKG_CONFIG" && \
19213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
19214 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
19215 ac_status=$?
19216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19217 test $ac_status = 0; }; then
19218 pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
19219 else
19220 pkg_failed=yes
19221 fi
19222 fi
19223 else
19224 pkg_failed=untried
19225 fi
19226
19227
19228
19229 if test $pkg_failed = yes; then
19230
19231 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19232 _pkg_short_errors_supported=yes
19233 else
19234 _pkg_short_errors_supported=no
19235 fi
19236 if test $_pkg_short_errors_supported = yes; then
19237 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
19238 else
19239 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
19240 fi
19241 # Put the nasty error message in config.log where it belongs
19242 echo "$IMLIB2_PKG_ERRORS" >&5
19243
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 imlib2_pkgconfig=no
19247 elif test $pkg_failed = untried; then
19248 imlib2_pkgconfig=no
19249 else
19250 IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
19251 IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19253 $as_echo "yes" >&6; }
19254 imlib2_pkgconfig=yes
19255 fi
19256 if test "x$imlib2_pkgconfig" = "xyes"; then
19257
19258 $as_echo "@%:@define HAVE_IMLIB2 1" >>confdefs.h
19259
19260 fi
19261
19262
19263
19264 @%:@ Check whether --enable-graphics-opengl was given.
19265 if test "${enable_graphics_opengl+set}" = set; then :
19266 enableval=$enable_graphics_opengl; graphics_opengl=$enableval;graphics_opengl_reason="configure parameter"
19267 fi
19268
19269 if test "x${graphics_opengl}" = "xyes" ; then
19270
19271 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
19272 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
19273
19274 $as_echo "@%:@define HAVE_OPENGL /**/" >>confdefs.h
19275
19276 OPENGL_LIBS="$X_LIBS -lGL -lglut -lfreeimage"
19277 opengl=yes
19278 else
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/gl.h -- opengl graphics support disabled;graphics_opengl=no;graphics_opengl_reason=\"GL/gl.h header missing\"" >&5
19280 $as_echo "$as_me: WARNING: *** no GL/gl.h -- opengl graphics support disabled;graphics_opengl=no;graphics_opengl_reason=\"GL/gl.h header missing\"" >&2;}
19281
19282 fi
19283
19284
19285
19286 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
19287 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
19288
19289 $as_echo "@%:@define HAVE_GLUT /**/" >>confdefs.h
19290
19291 glut=yes
19292 else
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/glut.h -- opengl graphics support disabled" >&5
19294 $as_echo "$as_me: WARNING: *** no GL/glut.h -- opengl graphics support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="GL/glut.h header missing"
19295
19296 fi
19297
19298
19299
19300 ac_fn_c_check_header_mongrel "$LINENO" "GL/freeglut.h" "ac_cv_header_GL_freeglut_h" "$ac_includes_default"
19301 if test "x$ac_cv_header_GL_freeglut_h" = xyes; then :
19302
19303 $as_echo "@%:@define HAVE_FREEGLUT /**/" >>confdefs.h
19304
19305 freeglut=yes
19306 else
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&5
19308 $as_echo "$as_me: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
19309
19310 fi
19311
19312
19313
19314
19315
19316
19317 ac_fn_c_check_header_mongrel "$LINENO" "GL/glc.h" "ac_cv_header_GL_glc_h" "$ac_includes_default"
19318 if test "x$ac_cv_header_GL_glc_h" = xyes; then :
19319
19320 $as_echo "@%:@define HAVE_GLC /**/" >>confdefs.h
19321
19322 GLC_LIBS="-lGLC"
19323 glc=yes
19324 else
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/glc.h -- opengl graphics support disabled" >&5
19326 $as_echo "$as_me: WARNING: *** no GL/glc.h -- opengl graphics support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="GL/glc.h header missing"
19327
19328 fi
19329
19330
19331 ac_fn_c_check_header_mongrel "$LINENO" "FreeImage.h" "ac_cv_header_FreeImage_h" "$ac_includes_default"
19332 if test "x$ac_cv_header_FreeImage_h" = xyes; then :
19333
19334 $as_echo "@%:@define HAVE_FREEIMAGE /**/" >>confdefs.h
19335
19336 FREEIMAGE_LIBS="-lfreeimage"
19337 freeimage=yes
19338 else
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no FreeImage.h -- opengl support disabled" >&5
19340 $as_echo "$as_me: WARNING: *** no FreeImage.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
19341
19342 fi
19343
19344
19345
19346
19347
19348 fi
19349
19350 if test "x$glut" = "xyes" -a "x$freeglut" = "xyes" -a "x$opengl" = "xyes" -a "x$freeimage" = "xyes" -a "x$glc" = "xyes" ; then
19351 GRAPHICS_OPENGL_TRUE=
19352 GRAPHICS_OPENGL_FALSE='#'
19353 else
19354 GRAPHICS_OPENGL_TRUE='#'
19355 GRAPHICS_OPENGL_FALSE=
19356 fi
19357
19358
19359 system_shapefile=no
19360 for ac_header in shapefil.h libshp/shapefil.h
19361 do :
19362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19365 cat >>confdefs.h <<_ACEOF
19366 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19367 _ACEOF
19368
19369 $as_echo "@%:@define HAVE_SYS_SHAPEFILELIB 1" >>confdefs.h
19370
19371 SHAPEFILE_LIBS="-lshp"
19372 system_shapefile=yes
19373
19374 fi
19375
19376 done
19377
19378
19379
19380 if test "x$system_shapefile" = "xyes" ; then
19381 HAVE_SYSTEM_SHAPEFILELIB_TRUE=
19382 HAVE_SYSTEM_SHAPEFILELIB_FALSE='#'
19383 else
19384 HAVE_SYSTEM_SHAPEFILELIB_TRUE='#'
19385 HAVE_SYSTEM_SHAPEFILELIB_FALSE=
19386 fi
19387
19388 if test x"${system_shapefile}" = xno
19389 then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no libshp/shapefil.h -- using included copy" >&5
19391 $as_echo "$as_me: WARNING: *** no libshp/shapefil.h -- using included copy" >&2;}
19392 fi
19393
19394
19395 if test x"${USE_GARMIN}" = xyes
19396 then
19397 # check for libgarmin
19398
19399 pkg_failed=no
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGARMIN" >&5
19401 $as_echo_n "checking for LIBGARMIN... " >&6; }
19402
19403 if test -n "$PKG_CONFIG"; then
19404 if test -n "$LIBGARMIN_CFLAGS"; then
19405 pkg_cv_LIBGARMIN_CFLAGS="$LIBGARMIN_CFLAGS"
19406 else
19407 if test -n "$PKG_CONFIG" && \
19408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgarmin\""; } >&5
19409 ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
19410 ac_status=$?
19411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19412 test $ac_status = 0; }; then
19413 pkg_cv_LIBGARMIN_CFLAGS=`$PKG_CONFIG --cflags "libgarmin" 2>/dev/null`
19414 else
19415 pkg_failed=yes
19416 fi
19417 fi
19418 else
19419 pkg_failed=untried
19420 fi
19421 if test -n "$PKG_CONFIG"; then
19422 if test -n "$LIBGARMIN_LIBS"; then
19423 pkg_cv_LIBGARMIN_LIBS="$LIBGARMIN_LIBS"
19424 else
19425 if test -n "$PKG_CONFIG" && \
19426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgarmin\""; } >&5
19427 ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
19428 ac_status=$?
19429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }; then
19431 pkg_cv_LIBGARMIN_LIBS=`$PKG_CONFIG --libs "libgarmin" 2>/dev/null`
19432 else
19433 pkg_failed=yes
19434 fi
19435 fi
19436 else
19437 pkg_failed=untried
19438 fi
19439
19440
19441
19442 if test $pkg_failed = yes; then
19443
19444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19445 _pkg_short_errors_supported=yes
19446 else
19447 _pkg_short_errors_supported=no
19448 fi
19449 if test $_pkg_short_errors_supported = yes; then
19450 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgarmin"`
19451 else
19452 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgarmin"`
19453 fi
19454 # Put the nasty error message in config.log where it belongs
19455 echo "$LIBGARMIN_PKG_ERRORS" >&5
19456
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19459 use_libgarmin=no
19460 elif test $pkg_failed = untried; then
19461 use_libgarmin=no
19462 else
19463 LIBGARMIN_CFLAGS=$pkg_cv_LIBGARMIN_CFLAGS
19464 LIBGARMIN_LIBS=$pkg_cv_LIBGARMIN_LIBS
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19466 $as_echo "yes" >&6; }
19467 use_libgarmin=yes
19468 fi
19469
19470
19471 fi
19472 if test "x$use_libgarmin" = "xyes"; then
19473 HAVELIBGARMIN_TRUE=
19474 HAVELIBGARMIN_FALSE='#'
19475 else
19476 HAVELIBGARMIN_TRUE='#'
19477 HAVELIBGARMIN_FALSE=
19478 fi
19479
19480
19481 ## binding
19482 # python
19483 @%:@ Check whether --enable-binding-python was given.
19484 if test "${enable_binding_python+set}" = set; then :
19485 enableval=$enable_binding_python; binding_python=$enableval;binding_python_reason="configure parameter"
19486 fi
19487
19488 if test "x${binding_python}" = "xyes"; then
19489 # Extract the first word of "python", so it can be a program name with args.
19490 set dummy python; ac_word=$2
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19492 $as_echo_n "checking for $ac_word... " >&6; }
19493 if ${ac_cv_path__PATH_PYTHON+:} false; then :
19494 $as_echo_n "(cached) " >&6
19495 else
19496 case $_PATH_PYTHON in
19497 [\\/]* | ?:[\\/]*)
19498 ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
19499 ;;
19500 *)
19501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19502 for as_dir in $PATH
19503 do
19504 IFS=$as_save_IFS
19505 test -z "$as_dir" && as_dir=.
19506 for ac_exec_ext in '' $ac_executable_extensions; do
19507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19508 ac_cv_path__PATH_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19510 break 2
19511 fi
19512 done
19513 done
19514 IFS=$as_save_IFS
19515
19516 ;;
19517 esac
19518 fi
19519 _PATH_PYTHON=$ac_cv_path__PATH_PYTHON
19520 if test -n "$_PATH_PYTHON"; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_PATH_PYTHON" >&5
19522 $as_echo "$_PATH_PYTHON" >&6; }
19523 else
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525 $as_echo "no" >&6; }
19526 fi
19527
19528
19529 if test "x${_PATH_PYTHON}" != "x" ; then
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python linkage" >&5
19531 $as_echo_n "checking for Python linkage... " >&6; }
19532 # Extract the first word of "python-config", so it can be a program name with args.
19533 set dummy python-config; ac_word=$2
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19535 $as_echo_n "checking for $ac_word... " >&6; }
19536 if ${ac_cv_path_PYTHONCONFIG+:} false; then :
19537 $as_echo_n "(cached) " >&6
19538 else
19539 case $PYTHONCONFIG in
19540 [\\/]* | ?:[\\/]*)
19541 ac_cv_path_PYTHONCONFIG="$PYTHONCONFIG" # Let the user override the test with a path.
19542 ;;
19543 *)
19544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19545 for as_dir in $PATH
19546 do
19547 IFS=$as_save_IFS
19548 test -z "$as_dir" && as_dir=.
19549 for ac_exec_ext in '' $ac_executable_extensions; do
19550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19551 ac_cv_path_PYTHONCONFIG="$as_dir/$ac_word$ac_exec_ext"
19552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19553 break 2
19554 fi
19555 done
19556 done
19557 IFS=$as_save_IFS
19558
19559 ;;
19560 esac
19561 fi
19562 PYTHONCONFIG=$ac_cv_path_PYTHONCONFIG
19563 if test -n "$PYTHONCONFIG"; then
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONCONFIG" >&5
19565 $as_echo "$PYTHONCONFIG" >&6; }
19566 else
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568 $as_echo "no" >&6; }
19569 fi
19570
19571
19572 if test "x${PYTHONCONFIG}" = "x" ; then
19573 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
19574 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
19575 py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
19576 py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
19577 PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
19578 if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
19579 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19580 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19581 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19582 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19583 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19584 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
19585 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/ \\t*/ /g'`
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $py_libdir" >&5
19587 $as_echo "$py_libdir" >&6; }
19588 else
19589 binding_python="no"
19590 binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
19591 fi
19592
19593 else
19594 PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
19595 PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
19596 fi
19597 else
19598 binding_python="no"
19599 binding_python_reason="python executable missing"
19600 fi
19601 fi
19602 if test "x${binding_python}" = xyes ; then
19603
19604 $as_echo "@%:@define USE_BINDING_PYTHON 1" >>confdefs.h
19605
19606 fi
19607
19608
19609 if test "x${binding_python}" = "xyes"; then
19610 BINDING_PYTHON_TRUE=
19611 BINDING_PYTHON_FALSE='#'
19612 else
19613 BINDING_PYTHON_TRUE='#'
19614 BINDING_PYTHON_FALSE=
19615 fi
19616
19617
19618 # dbus
19619 @%:@ Check whether --enable-binding-dbus was given.
19620 if test "${enable_binding_dbus+set}" = set; then :
19621 enableval=$enable_binding_dbus; binding_dbus=$enableval;binding_dbus_reason="configure parameter"
19622 fi
19623
19624 @%:@ Check whether --enable-binding-dbus-use-system-bus was given.
19625 if test "${enable_binding_dbus_use_system_bus+set}" = set; then :
19626 enableval=$enable_binding_dbus_use_system_bus; binding_dbus_use_system_bus=$enableval
19627 fi
19628
19629 if test "x${binding_dbus}" = "xyes" ; then
19630
19631 pkg_failed=no
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
19633 $as_echo_n "checking for DBUS... " >&6; }
19634
19635 if test -n "$PKG_CONFIG"; then
19636 if test -n "$DBUS_CFLAGS"; then
19637 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
19638 else
19639 if test -n "$PKG_CONFIG" && \
19640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
19641 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
19642 ac_status=$?
19643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19644 test $ac_status = 0; }; then
19645 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null`
19646 else
19647 pkg_failed=yes
19648 fi
19649 fi
19650 else
19651 pkg_failed=untried
19652 fi
19653 if test -n "$PKG_CONFIG"; then
19654 if test -n "$DBUS_LIBS"; then
19655 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
19656 else
19657 if test -n "$PKG_CONFIG" && \
19658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
19659 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
19660 ac_status=$?
19661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19662 test $ac_status = 0; }; then
19663 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null`
19664 else
19665 pkg_failed=yes
19666 fi
19667 fi
19668 else
19669 pkg_failed=untried
19670 fi
19671
19672
19673
19674 if test $pkg_failed = yes; then
19675
19676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19677 _pkg_short_errors_supported=yes
19678 else
19679 _pkg_short_errors_supported=no
19680 fi
19681 if test $_pkg_short_errors_supported = yes; then
19682 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1"`
19683 else
19684 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1"`
19685 fi
19686 # Put the nasty error message in config.log where it belongs
19687 echo "$DBUS_PKG_ERRORS" >&5
19688
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690 $as_echo "no" >&6; }
19691 binding_dbus=no
19692 elif test $pkg_failed = untried; then
19693 binding_dbus=no
19694 else
19695 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
19696 DBUS_LIBS=$pkg_cv_DBUS_LIBS
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698 $as_echo "yes" >&6; }
19699 :
19700 fi
19701 fi
19702 if test "x${binding_dbus}" = "xyes" ; then
19703
19704 $as_echo "@%:@define USE_BINDING_DBUS 1" >>confdefs.h
19705
19706 vehicle_gpsd_dbus="yes"
19707 vehicle_gpsd_dbus_reason="dbus binding present"
19708 speech_dbus="yes"
19709 speech_dbus_reason="dbus binding present"
19710 fi
19711 if test "x${binding_dbus_use_system_bus}" = "xyes" ; then
19712
19713 $as_echo "@%:@define DBUS_USE_SYSTEM_BUS 1" >>confdefs.h
19714
19715 fi
19716
19717
19718 if test "x${binding_dbus}" = "xyes"; then
19719 BINDING_DBUS_TRUE=
19720 BINDING_DBUS_FALSE='#'
19721 else
19722 BINDING_DBUS_TRUE='#'
19723 BINDING_DBUS_FALSE=
19724 fi
19725
19726 if test "x${vehicle_gpsd_dbus}" = "xyes"; then
19727 VEHICLE_GPSD_DBUS_TRUE=
19728 VEHICLE_GPSD_DBUS_FALSE='#'
19729 else
19730 VEHICLE_GPSD_DBUS_TRUE='#'
19731 VEHICLE_GPSD_DBUS_FALSE=
19732 fi
19733
19734 if test "x${speech_dbus}" = "xyes"; then
19735 SPEECH_DBUS_TRUE=
19736 SPEECH_DBUS_FALSE='#'
19737 else
19738 SPEECH_DBUS_TRUE='#'
19739 SPEECH_DBUS_FALSE=
19740 fi
19741
19742
19743 @%:@ Check whether --with-dbus-service-dir was given.
19744 if test "${with_dbus_service_dir+set}" = set; then :
19745 withval=$with_dbus_service_dir; DBUS_SERVICE_DIR=$withval
19746 else
19747 DBUS_SERVICE_DIR="$datarootdir/dbus-1/services"
19748 fi
19749
19750
19751
19752 # svg
19753 @%:@ Check whether --enable-svg was given.
19754 if test "${enable_svg+set}" = set; then :
19755 enableval=$enable_svg; enable_svg=$enableval
19756 else
19757 enable_svg=yes
19758 fi
19759
19760 @%:@ Check whether --enable-svg2png was given.
19761 if test "${enable_svg2png+set}" = set; then :
19762 enableval=$enable_svg2png; enable_svg2png=$enableval
19763 else
19764 enable_svg2png=yes
19765 fi
19766
19767 @%:@ Check whether --enable-svg2png-scaling was given.
19768 if test "${enable_svg2png_scaling+set}" = set; then :
19769 enableval=$enable_svg2png_scaling; SVG2PNG_SCALES=$enableval
19770 else
19771 SVG2PNG_SCALES="8 16 32 48 96 192 384"
19772 fi
19773
19774 @%:@ Check whether --enable-svg2png-scaling-flag was given.
19775 if test "${enable_svg2png_scaling_flag+set}" = set; then :
19776 enableval=$enable_svg2png_scaling_flag; SVG2PNG_SCALES_FLAG=$enableval
19777 else
19778 SVG2PNG_SCALES_FLAG="8 16 32 48 96 192 384"
19779 fi
19780
19781 @%:@ Check whether --enable-svg2png-scaling-nav was given.
19782 if test "${enable_svg2png_scaling_nav+set}" = set; then :
19783 enableval=$enable_svg2png_scaling_nav; SVG2PNG_SCALES_NAV=$enableval
19784 else
19785 SVG2PNG_SCALES_NAV="8 16 32 48 96 192 384"
19786 fi
19787
19788
19789 @%:@ Check whether --with-svg2png-use-convert was given.
19790 if test "${with_svg2png_use_convert+set}" = set; then :
19791 withval=$with_svg2png_use_convert; SVG2PNG_CONVERTER="convert"
19792 fi
19793
19794
19795 @%:@ Check whether --with-svg2png-use-rsvg-convert was given.
19796 if test "${with_svg2png_use_rsvg_convert+set}" = set; then :
19797 withval=$with_svg2png_use_rsvg_convert; SVG2PNG_CONVERTER="rsvg-convert"
19798 fi
19799
19800
19801 @%:@ Check whether --with-svg2png-use-inkscape was given.
19802 if test "${with_svg2png_use_inkscape+set}" = set; then :
19803 withval=$with_svg2png_use_inkscape; SVG2PNG_CONVERTER="inkscape"
19804 fi
19805
19806
19807 @%:@ Check whether --with-svg2png-use-ksvgtopng4 was given.
19808 if test "${with_svg2png_use_ksvgtopng4+set}" = set; then :
19809 withval=$with_svg2png_use_ksvgtopng4; SVG2PNG_CONVERTER="ksvgtopng4"
19810 fi
19811
19812
19813 @%:@ Check whether --with-svg2png-use-ksvgtopng was given.
19814 if test "${with_svg2png_use_ksvgtopng+set}" = set; then :
19815 withval=$with_svg2png_use_ksvgtopng; SVG2PNG_CONVERTER="ksvgtopng"
19816 fi
19817
19818 if test "x${enable_svg2png}" = "xyes" ; then
19819 if test "x${SVG2PNG_CONVERTER}" = "x"; then
19820 SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
19821 fi
19822 for ac_prog in ${SVG2PNG_CONVERTER}
19823 do
19824 # Extract the first word of "$ac_prog", so it can be a program name with args.
19825 set dummy $ac_prog; ac_word=$2
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19827 $as_echo_n "checking for $ac_word... " >&6; }
19828 if ${ac_cv_path_SVG2PNG+:} false; then :
19829 $as_echo_n "(cached) " >&6
19830 else
19831 case $SVG2PNG in
19832 [\\/]* | ?:[\\/]*)
19833 ac_cv_path_SVG2PNG="$SVG2PNG" # Let the user override the test with a path.
19834 ;;
19835 *)
19836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837 for as_dir in $PATH
19838 do
19839 IFS=$as_save_IFS
19840 test -z "$as_dir" && as_dir=.
19841 for ac_exec_ext in '' $ac_executable_extensions; do
19842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19843 ac_cv_path_SVG2PNG="$as_dir/$ac_word$ac_exec_ext"
19844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19845 break 2
19846 fi
19847 done
19848 done
19849 IFS=$as_save_IFS
19850
19851 ;;
19852 esac
19853 fi
19854 SVG2PNG=$ac_cv_path_SVG2PNG
19855 if test -n "$SVG2PNG"; then
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVG2PNG" >&5
19857 $as_echo "$SVG2PNG" >&6; }
19858 else
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860 $as_echo "no" >&6; }
19861 fi
19862
19863
19864 test -n "$SVG2PNG" && break
19865 done
19866 test -n "$SVG2PNG" || SVG2PNG="none"
19867
19868 if test "x${SVG2PNG}" = "xnone"; then
19869 enable_svg2png="no"
19870 fi
19871 fi
19872
19873
19874
19875
19876 if test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x"; then
19877 USE_SVG2PNG_SCALES_TRUE=
19878 USE_SVG2PNG_SCALES_FALSE='#'
19879 else
19880 USE_SVG2PNG_SCALES_TRUE='#'
19881 USE_SVG2PNG_SCALES_FALSE=
19882 fi
19883
19884 if test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x"; then
19885 USE_SVG2PNG_SCALES_FLAG_TRUE=
19886 USE_SVG2PNG_SCALES_FLAG_FALSE='#'
19887 else
19888 USE_SVG2PNG_SCALES_FLAG_TRUE='#'
19889 USE_SVG2PNG_SCALES_FLAG_FALSE=
19890 fi
19891
19892 if test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x"; then
19893 USE_SVG2PNG_SCALES_NAV_TRUE=
19894 USE_SVG2PNG_SCALES_NAV_FALSE='#'
19895 else
19896 USE_SVG2PNG_SCALES_NAV_TRUE='#'
19897 USE_SVG2PNG_SCALES_NAV_FALSE=
19898 fi
19899
19900 if test "x${enable_svg2png}" = "xyes"; then
19901 USE_SVG2PNG_TRUE=
19902 USE_SVG2PNG_FALSE='#'
19903 else
19904 USE_SVG2PNG_TRUE='#'
19905 USE_SVG2PNG_FALSE=
19906 fi
19907
19908 if test "x${enable_svg}" = "xyes"; then
19909 USE_SVG_TRUE=
19910 USE_SVG_FALSE='#'
19911 else
19912 USE_SVG_TRUE='#'
19913 USE_SVG_FALSE=
19914 fi
19915
19916
19917 # XSLTS
19918
19919 @%:@ Check whether --with-xslts was given.
19920 if test "${with_xslts+set}" = set; then :
19921 withval=$with_xslts; XSLTS=$withval
19922 else
19923 XSLTS=""
19924 fi
19925
19926
19927
19928 @%:@ Check whether --with-saxon was given.
19929 if test "${with_saxon+set}" = set; then :
19930 withval=$with_saxon; SAXON=$withval
19931 else
19932 SAXON="saxon"
19933 fi
19934
19935
19936
19937 # Android Permissions
19938
19939 @%:@ Check whether --with-android-permissions was given.
19940 if test "${with_android_permissions+set}" = set; then :
19941 withval=$with_android_permissions; ANDROID_PERMISSIONS=$withval
19942 else
19943 ANDROID_PERMISSIONS=""
19944 fi
19945
19946
19947 # Android Project
19948
19949 @%:@ Check whether --with-android-project was given.
19950 if test "${with_android_project+set}" = set; then :
19951 withval=$with_android_project; ANDROID_PROJECT=$withval
19952 else
19953 ANDROID_PROJECT="3"
19954 fi
19955
19956
19957
19958 # NLS
19959
19960 @%:@ Check whether --enable-nls was given.
19961 if test "${enable_nls+set}" = set; then :
19962 enableval=$enable_nls; enable_nls=$enableval
19963 else
19964 enable_nls=yes
19965 fi
19966
19967
19968
19969 INTLIBS=""
19970 MOFILES=""
19971 POFILES=""
19972 POIFILES=""
19973 LINGUAS=""
19974
19975 xgettext_glade=no
19976 if test "x$enable_nls" = "xyes"; then
19977
19978 ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
19979 if test "x$ac_cv_func_gettext" = xyes; then :
19980 HAVEGETTEXT="yes"
19981 else
19982 INTLIBS="-lintl" HAVEGETTEXT="yes"
19983 fi
19984
19985 # Extract the first word of "xgettext", so it can be a program name with args.
19986 set dummy xgettext; ac_word=$2
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19988 $as_echo_n "checking for $ac_word... " >&6; }
19989 if ${ac_cv_prog_XGETTEXT+:} false; then :
19990 $as_echo_n "(cached) " >&6
19991 else
19992 if test -n "$XGETTEXT"; then
19993 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
19994 else
19995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996 for as_dir in $PATH
19997 do
19998 IFS=$as_save_IFS
19999 test -z "$as_dir" && as_dir=.
20000 for ac_exec_ext in '' $ac_executable_extensions; do
20001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20002 ac_cv_prog_XGETTEXT="xgettext"
20003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20004 break 2
20005 fi
20006 done
20007 done
20008 IFS=$as_save_IFS
20009
20010 fi
20011 fi
20012 XGETTEXT=$ac_cv_prog_XGETTEXT
20013 if test -n "$XGETTEXT"; then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20015 $as_echo "$XGETTEXT" >&6; }
20016 else
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20018 $as_echo "no" >&6; }
20019 fi
20020
20021
20022 # Extract the first word of "msgmerge", so it can be a program name with args.
20023 set dummy msgmerge; ac_word=$2
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20025 $as_echo_n "checking for $ac_word... " >&6; }
20026 if ${ac_cv_prog_MSGMERGE+:} false; then :
20027 $as_echo_n "(cached) " >&6
20028 else
20029 if test -n "$MSGMERGE"; then
20030 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
20031 else
20032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20033 for as_dir in $PATH
20034 do
20035 IFS=$as_save_IFS
20036 test -z "$as_dir" && as_dir=.
20037 for ac_exec_ext in '' $ac_executable_extensions; do
20038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20039 ac_cv_prog_MSGMERGE="msgmerge"
20040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20041 break 2
20042 fi
20043 done
20044 done
20045 IFS=$as_save_IFS
20046
20047 fi
20048 fi
20049 MSGMERGE=$ac_cv_prog_MSGMERGE
20050 if test -n "$MSGMERGE"; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20052 $as_echo "$MSGMERGE" >&6; }
20053 else
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 $as_echo "no" >&6; }
20056 fi
20057
20058
20059 # Extract the first word of "msgfmt", so it can be a program name with args.
20060 set dummy msgfmt; ac_word=$2
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20062 $as_echo_n "checking for $ac_word... " >&6; }
20063 if ${ac_cv_prog_MSGFMT+:} false; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 if test -n "$MSGFMT"; then
20067 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
20068 else
20069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20070 for as_dir in $PATH
20071 do
20072 IFS=$as_save_IFS
20073 test -z "$as_dir" && as_dir=.
20074 for ac_exec_ext in '' $ac_executable_extensions; do
20075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20076 ac_cv_prog_MSGFMT="msgfmt"
20077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20078 break 2
20079 fi
20080 done
20081 done
20082 IFS=$as_save_IFS
20083
20084 fi
20085 fi
20086 MSGFMT=$ac_cv_prog_MSGFMT
20087 if test -n "$MSGFMT"; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20089 $as_echo "$MSGFMT" >&6; }
20090 else
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20092 $as_echo "no" >&6; }
20093 fi
20094
20095
20096
20097 if test "$XGETTEXT" != ""; then
20098 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
20099 echo "xgettext isn't GNU version"
20100 XGETTEXT=""
20101 else
20102 if echo '<test/>' | $XGETTEXT -L Glade - ; then
20103 xgettext_glade=yes
20104 fi
20105 fi
20106 fi
20107
20108 if test "$XGETTEXT" != "" ; then
20109 PO=""
20110 if test "$LINGUAS" = ""; then
20111 ling=` (cd $srcdir/po; /bin/ls *.po) `
20112 for l in $ling; do
20113 lcode=`basename $l .po`
20114 LINGUAS="$LINGUAS$lcode "
20115 done
20116 fi
20117
20118 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
20119
20120 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
20121 else
20122 LINGUAS=""
20123 PO=""
20124 echo "xgettext doesn't exist; will not build i18n support"
20125 enable_nls=no
20126 fi
20127 for lang in $LINGUAS; do
20128 MOFILES="$MOFILES $lang.mo"
20129 done
20130 for lang in $LINGUAS; do
20131 POFILES="$POFILES $lang.po"
20132 done
20133 for lang in $LINGUAS; do
20134 POIFILES="$POIFILES $lang.po"
20135 done
20136
20137
20138
20139
20140
20141
20142
20143 MKINSTALLDIRS=
20144 if test -n "$ac_aux_dir"; then
20145 case "$ac_aux_dir" in
20146 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20147 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20148 esac
20149 fi
20150 if test -z "$MKINSTALLDIRS"; then
20151 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20152 fi
20153
20154
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20157 $as_echo_n "checking whether NLS is requested... " >&6; }
20158 @%:@ Check whether --enable-nls was given.
20159 if test "${enable_nls+set}" = set; then :
20160 enableval=$enable_nls; USE_NLS=$enableval
20161 else
20162 USE_NLS=yes
20163 fi
20164
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20166 $as_echo "$USE_NLS" >&6; }
20167
20168
20169
20170
20171
20172
20173 # Prepare PATH_SEPARATOR.
20174 # The user is always right.
20175 if test "${PATH_SEPARATOR+set}" != set; then
20176 echo "#! /bin/sh" >conf$$.sh
20177 echo "exit 0" >>conf$$.sh
20178 chmod +x conf$$.sh
20179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20180 PATH_SEPARATOR=';'
20181 else
20182 PATH_SEPARATOR=:
20183 fi
20184 rm -f conf$$.sh
20185 fi
20186
20187 # Find out how to test for executable files. Don't use a zero-byte file,
20188 # as systems may use methods other than mode bits to determine executability.
20189 cat >conf$$.file <<_ASEOF
20190 #! /bin/sh
20191 exit 0
20192 _ASEOF
20193 chmod +x conf$$.file
20194 if test -x conf$$.file >/dev/null 2>&1; then
20195 ac_executable_p="test -x"
20196 else
20197 ac_executable_p="test -f"
20198 fi
20199 rm -f conf$$.file
20200
20201 # Extract the first word of "msgfmt", so it can be a program name with args.
20202 set dummy msgfmt; ac_word=$2
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20204 $as_echo_n "checking for $ac_word... " >&6; }
20205 if ${ac_cv_path_MSGFMT+:} false; then :
20206 $as_echo_n "(cached) " >&6
20207 else
20208 case "$MSGFMT" in
20209 [\\/]* | ?:[\\/]*)
20210 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20211 ;;
20212 *)
20213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20214 for ac_dir in $PATH; do
20215 IFS="$ac_save_IFS"
20216 test -z "$ac_dir" && ac_dir=.
20217 for ac_exec_ext in '' $ac_executable_extensions; do
20218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20219 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
20220 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20221 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20222 break 2
20223 fi
20224 fi
20225 done
20226 done
20227 IFS="$ac_save_IFS"
20228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20229 ;;
20230 esac
20231 fi
20232 MSGFMT="$ac_cv_path_MSGFMT"
20233 if test "$MSGFMT" != ":"; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20235 $as_echo "$MSGFMT" >&6; }
20236 else
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20239 fi
20240
20241 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20242 set dummy gmsgfmt; ac_word=$2
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20244 $as_echo_n "checking for $ac_word... " >&6; }
20245 if ${ac_cv_path_GMSGFMT+:} false; then :
20246 $as_echo_n "(cached) " >&6
20247 else
20248 case $GMSGFMT in
20249 [\\/]* | ?:[\\/]*)
20250 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20251 ;;
20252 *)
20253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20254 for as_dir in $PATH
20255 do
20256 IFS=$as_save_IFS
20257 test -z "$as_dir" && as_dir=.
20258 for ac_exec_ext in '' $ac_executable_extensions; do
20259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20260 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20262 break 2
20263 fi
20264 done
20265 done
20266 IFS=$as_save_IFS
20267
20268 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20269 ;;
20270 esac
20271 fi
20272 GMSGFMT=$ac_cv_path_GMSGFMT
20273 if test -n "$GMSGFMT"; then
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20275 $as_echo "$GMSGFMT" >&6; }
20276 else
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20278 $as_echo "no" >&6; }
20279 fi
20280
20281
20282
20283
20284 # Prepare PATH_SEPARATOR.
20285 # The user is always right.
20286 if test "${PATH_SEPARATOR+set}" != set; then
20287 echo "#! /bin/sh" >conf$$.sh
20288 echo "exit 0" >>conf$$.sh
20289 chmod +x conf$$.sh
20290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20291 PATH_SEPARATOR=';'
20292 else
20293 PATH_SEPARATOR=:
20294 fi
20295 rm -f conf$$.sh
20296 fi
20297
20298 # Find out how to test for executable files. Don't use a zero-byte file,
20299 # as systems may use methods other than mode bits to determine executability.
20300 cat >conf$$.file <<_ASEOF
20301 #! /bin/sh
20302 exit 0
20303 _ASEOF
20304 chmod +x conf$$.file
20305 if test -x conf$$.file >/dev/null 2>&1; then
20306 ac_executable_p="test -x"
20307 else
20308 ac_executable_p="test -f"
20309 fi
20310 rm -f conf$$.file
20311
20312 # Extract the first word of "xgettext", so it can be a program name with args.
20313 set dummy xgettext; ac_word=$2
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20315 $as_echo_n "checking for $ac_word... " >&6; }
20316 if ${ac_cv_path_XGETTEXT+:} false; then :
20317 $as_echo_n "(cached) " >&6
20318 else
20319 case "$XGETTEXT" in
20320 [\\/]* | ?:[\\/]*)
20321 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20322 ;;
20323 *)
20324 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20325 for ac_dir in $PATH; do
20326 IFS="$ac_save_IFS"
20327 test -z "$ac_dir" && ac_dir=.
20328 for ac_exec_ext in '' $ac_executable_extensions; do
20329 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20330 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20331 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20332 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20333 break 2
20334 fi
20335 fi
20336 done
20337 done
20338 IFS="$ac_save_IFS"
20339 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20340 ;;
20341 esac
20342 fi
20343 XGETTEXT="$ac_cv_path_XGETTEXT"
20344 if test "$XGETTEXT" != ":"; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20346 $as_echo "$XGETTEXT" >&6; }
20347 else
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349 $as_echo "no" >&6; }
20350 fi
20351
20352 rm -f messages.po
20353
20354
20355 # Prepare PATH_SEPARATOR.
20356 # The user is always right.
20357 if test "${PATH_SEPARATOR+set}" != set; then
20358 echo "#! /bin/sh" >conf$$.sh
20359 echo "exit 0" >>conf$$.sh
20360 chmod +x conf$$.sh
20361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20362 PATH_SEPARATOR=';'
20363 else
20364 PATH_SEPARATOR=:
20365 fi
20366 rm -f conf$$.sh
20367 fi
20368
20369 # Find out how to test for executable files. Don't use a zero-byte file,
20370 # as systems may use methods other than mode bits to determine executability.
20371 cat >conf$$.file <<_ASEOF
20372 #! /bin/sh
20373 exit 0
20374 _ASEOF
20375 chmod +x conf$$.file
20376 if test -x conf$$.file >/dev/null 2>&1; then
20377 ac_executable_p="test -x"
20378 else
20379 ac_executable_p="test -f"
20380 fi
20381 rm -f conf$$.file
20382
20383 # Extract the first word of "msgmerge", so it can be a program name with args.
20384 set dummy msgmerge; ac_word=$2
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20386 $as_echo_n "checking for $ac_word... " >&6; }
20387 if ${ac_cv_path_MSGMERGE+:} false; then :
20388 $as_echo_n "(cached) " >&6
20389 else
20390 case "$MSGMERGE" in
20391 [\\/]* | ?:[\\/]*)
20392 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20393 ;;
20394 *)
20395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20396 for ac_dir in $PATH; do
20397 IFS="$ac_save_IFS"
20398 test -z "$ac_dir" && ac_dir=.
20399 for ac_exec_ext in '' $ac_executable_extensions; do
20400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20401 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
20402 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20403 break 2
20404 fi
20405 fi
20406 done
20407 done
20408 IFS="$ac_save_IFS"
20409 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20410 ;;
20411 esac
20412 fi
20413 MSGMERGE="$ac_cv_path_MSGMERGE"
20414 if test "$MSGMERGE" != ":"; then
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20416 $as_echo "$MSGMERGE" >&6; }
20417 else
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
20420 fi
20421
20422
20423 if test "$GMSGFMT" != ":"; then
20424 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20425 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20426 : ;
20427 else
20428 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20430 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
20431 GMSGFMT=":"
20432 fi
20433 fi
20434
20435 if test "$XGETTEXT" != ":"; then
20436 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20437 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20438 : ;
20439 else
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
20441 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
20442 XGETTEXT=":"
20443 fi
20444 rm -f messages.po
20445 fi
20446
20447 ac_config_commands="$ac_config_commands default-1"
20448
20449
20450 if test -n "$ac_tool_prefix"; then
20451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20452 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20454 $as_echo_n "checking for $ac_word... " >&6; }
20455 if ${ac_cv_prog_RANLIB+:} false; then :
20456 $as_echo_n "(cached) " >&6
20457 else
20458 if test -n "$RANLIB"; then
20459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20460 else
20461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20462 for as_dir in $PATH
20463 do
20464 IFS=$as_save_IFS
20465 test -z "$as_dir" && as_dir=.
20466 for ac_exec_ext in '' $ac_executable_extensions; do
20467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20468 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20470 break 2
20471 fi
20472 done
20473 done
20474 IFS=$as_save_IFS
20475
20476 fi
20477 fi
20478 RANLIB=$ac_cv_prog_RANLIB
20479 if test -n "$RANLIB"; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20481 $as_echo "$RANLIB" >&6; }
20482 else
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484 $as_echo "no" >&6; }
20485 fi
20486
20487
20488 fi
20489 if test -z "$ac_cv_prog_RANLIB"; then
20490 ac_ct_RANLIB=$RANLIB
20491 # Extract the first word of "ranlib", so it can be a program name with args.
20492 set dummy ranlib; ac_word=$2
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20494 $as_echo_n "checking for $ac_word... " >&6; }
20495 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20496 $as_echo_n "(cached) " >&6
20497 else
20498 if test -n "$ac_ct_RANLIB"; then
20499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20500 else
20501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20502 for as_dir in $PATH
20503 do
20504 IFS=$as_save_IFS
20505 test -z "$as_dir" && as_dir=.
20506 for ac_exec_ext in '' $ac_executable_extensions; do
20507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20508 ac_cv_prog_ac_ct_RANLIB="ranlib"
20509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20510 break 2
20511 fi
20512 done
20513 done
20514 IFS=$as_save_IFS
20515
20516 fi
20517 fi
20518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20519 if test -n "$ac_ct_RANLIB"; then
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20521 $as_echo "$ac_ct_RANLIB" >&6; }
20522 else
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20524 $as_echo "no" >&6; }
20525 fi
20526
20527 if test "x$ac_ct_RANLIB" = x; then
20528 RANLIB=":"
20529 else
20530 case $cross_compiling:$ac_tool_warned in
20531 yes:)
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20534 ac_tool_warned=yes ;;
20535 esac
20536 RANLIB=$ac_ct_RANLIB
20537 fi
20538 else
20539 RANLIB="$ac_cv_prog_RANLIB"
20540 fi
20541
20542
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
20544 $as_echo_n "checking for strerror in -lcposix... " >&6; }
20545 if ${ac_cv_lib_cposix_strerror+:} false; then :
20546 $as_echo_n "(cached) " >&6
20547 else
20548 ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-lcposix $LIBS"
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20552
20553 /* Override any GCC internal prototype to avoid an error.
20554 Use char because int might match the return type of a GCC
20555 builtin and then its argument prototype would still apply. */
20556 #ifdef __cplusplus
20557 extern "C"
20558 #endif
20559 char strerror ();
20560 int
20561 main ()
20562 {
20563 return strerror ();
20564 ;
20565 return 0;
20566 }
20567 _ACEOF
20568 if ac_fn_c_try_link "$LINENO"; then :
20569 ac_cv_lib_cposix_strerror=yes
20570 else
20571 ac_cv_lib_cposix_strerror=no
20572 fi
20573 rm -f core conftest.err conftest.$ac_objext \
20574 conftest$ac_exeext conftest.$ac_ext
20575 LIBS=$ac_check_lib_save_LIBS
20576 fi
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
20578 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
20579 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
20580 LIBS="$LIBS -lcposix"
20581 fi
20582
20583
20584
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20586 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20587 if ${ac_cv_c_const+:} false; then :
20588 $as_echo_n "(cached) " >&6
20589 else
20590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h. */
20592
20593 int
20594 main ()
20595 {
20596
20597 #ifndef __cplusplus
20598 /* Ultrix mips cc rejects this sort of thing. */
20599 typedef int charset[2];
20600 const charset cs = { 0, 0 };
20601 /* SunOS 4.1.1 cc rejects this. */
20602 char const *const *pcpcc;
20603 char **ppc;
20604 /* NEC SVR4.0.2 mips cc rejects this. */
20605 struct point {int x, y;};
20606 static struct point const zero = {0,0};
20607 /* AIX XL C 1.02.0.0 rejects this.
20608 It does not let you subtract one const X* pointer from another in
20609 an arm of an if-expression whose if-part is not a constant
20610 expression */
20611 const char *g = "string";
20612 pcpcc = &g + (g ? g-g : 0);
20613 /* HPUX 7.0 cc rejects these. */
20614 ++pcpcc;
20615 ppc = (char**) pcpcc;
20616 pcpcc = (char const *const *) ppc;
20617 { /* SCO 3.2v4 cc rejects this sort of thing. */
20618 char tx;
20619 char *t = &tx;
20620 char const *s = 0 ? (char *) 0 : (char const *) 0;
20621
20622 *t++ = 0;
20623 if (s) return 0;
20624 }
20625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20626 int x[] = {25, 17};
20627 const int *foo = &x[0];
20628 ++foo;
20629 }
20630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20631 typedef const int *iptr;
20632 iptr p = 0;
20633 ++p;
20634 }
20635 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20637 struct s { int j; const int *ap[3]; } bx;
20638 struct s *b = &bx; b->j = 5;
20639 }
20640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20641 const int foo = 10;
20642 if (!foo) return 0;
20643 }
20644 return !cs[0] && !zero.x;
20645 #endif
20646
20647 ;
20648 return 0;
20649 }
20650 _ACEOF
20651 if ac_fn_c_try_compile "$LINENO"; then :
20652 ac_cv_c_const=yes
20653 else
20654 ac_cv_c_const=no
20655 fi
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 fi
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20659 $as_echo "$ac_cv_c_const" >&6; }
20660 if test $ac_cv_c_const = no; then
20661
20662 $as_echo "@%:@define const /**/" >>confdefs.h
20663
20664 fi
20665
20666
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
20668 $as_echo_n "checking for signed... " >&6; }
20669 if ${bh_cv_c_signed+:} false; then :
20670 $as_echo_n "(cached) " >&6
20671 else
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20674
20675 int
20676 main ()
20677 {
20678 signed char x;
20679 ;
20680 return 0;
20681 }
20682 _ACEOF
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684 bh_cv_c_signed=yes
20685 else
20686 bh_cv_c_signed=no
20687 fi
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 fi
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
20691 $as_echo "$bh_cv_c_signed" >&6; }
20692 if test $bh_cv_c_signed = no; then
20693
20694 $as_echo "@%:@define signed /**/" >>confdefs.h
20695
20696 fi
20697
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20699 $as_echo_n "checking for inline... " >&6; }
20700 if ${ac_cv_c_inline+:} false; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 ac_cv_c_inline=no
20704 for ac_kw in inline __inline__ __inline; do
20705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h. */
20707 #ifndef __cplusplus
20708 typedef int foo_t;
20709 static $ac_kw foo_t static_foo () {return 0; }
20710 $ac_kw foo_t foo () {return 0; }
20711 #endif
20712
20713 _ACEOF
20714 if ac_fn_c_try_compile "$LINENO"; then :
20715 ac_cv_c_inline=$ac_kw
20716 fi
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 test "$ac_cv_c_inline" != no && break
20719 done
20720
20721 fi
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20723 $as_echo "$ac_cv_c_inline" >&6; }
20724
20725 case $ac_cv_c_inline in
20726 inline | yes) ;;
20727 *)
20728 case $ac_cv_c_inline in
20729 no) ac_val=;;
20730 *) ac_val=$ac_cv_c_inline;;
20731 esac
20732 cat >>confdefs.h <<_ACEOF
20733 #ifndef __cplusplus
20734 #define inline $ac_val
20735 #endif
20736 _ACEOF
20737 ;;
20738 esac
20739
20740 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20741 if test "x$ac_cv_type_off_t" = xyes; then :
20742
20743 else
20744
20745 cat >>confdefs.h <<_ACEOF
20746 @%:@define off_t long int
20747 _ACEOF
20748
20749 fi
20750
20751 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20752 if test "x$ac_cv_type_size_t" = xyes; then :
20753
20754 else
20755
20756 cat >>confdefs.h <<_ACEOF
20757 @%:@define size_t unsigned int
20758 _ACEOF
20759
20760 fi
20761
20762
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
20764 $as_echo_n "checking for long long... " >&6; }
20765 if ${ac_cv_type_long_long+:} false; then :
20766 $as_echo_n "(cached) " >&6
20767 else
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20770 long long ll = 1LL; int i = 63;
20771 int
20772 main ()
20773 {
20774 long long llmax = (long long) -1;
20775 return ll << i | ll >> i | llmax / ll | llmax % ll;
20776 ;
20777 return 0;
20778 }
20779 _ACEOF
20780 if ac_fn_c_try_link "$LINENO"; then :
20781 ac_cv_type_long_long=yes
20782 else
20783 ac_cv_type_long_long=no
20784 fi
20785 rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext conftest.$ac_ext
20787 fi
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
20789 $as_echo "$ac_cv_type_long_long" >&6; }
20790 if test $ac_cv_type_long_long = yes; then
20791
20792 $as_echo "@%:@define HAVE_LONG_LONG 1" >>confdefs.h
20793
20794 fi
20795
20796
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20798 $as_echo_n "checking for long double... " >&6; }
20799 if ${gt_cv_c_long_double+:} false; then :
20800 $as_echo_n "(cached) " >&6
20801 else
20802 if test "$GCC" = yes; then
20803 gt_cv_c_long_double=yes
20804 else
20805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h. */
20807
20808 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
20809 long double foo = 0.0;
20810 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
20811 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
20812
20813 int
20814 main ()
20815 {
20816
20817 ;
20818 return 0;
20819 }
20820 _ACEOF
20821 if ac_fn_c_try_compile "$LINENO"; then :
20822 gt_cv_c_long_double=yes
20823 else
20824 gt_cv_c_long_double=no
20825 fi
20826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827 fi
20828 fi
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
20830 $as_echo "$gt_cv_c_long_double" >&6; }
20831 if test $gt_cv_c_long_double = yes; then
20832
20833 $as_echo "@%:@define HAVE_LONG_DOUBLE 1" >>confdefs.h
20834
20835 fi
20836
20837
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20839 $as_echo_n "checking for wchar_t... " >&6; }
20840 if ${gt_cv_c_wchar_t+:} false; then :
20841 $as_echo_n "(cached) " >&6
20842 else
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20845 #include <stddef.h>
20846 wchar_t foo = (wchar_t)'\0';
20847 int
20848 main ()
20849 {
20850
20851 ;
20852 return 0;
20853 }
20854 _ACEOF
20855 if ac_fn_c_try_compile "$LINENO"; then :
20856 gt_cv_c_wchar_t=yes
20857 else
20858 gt_cv_c_wchar_t=no
20859 fi
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 fi
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20863 $as_echo "$gt_cv_c_wchar_t" >&6; }
20864 if test $gt_cv_c_wchar_t = yes; then
20865
20866 $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
20867
20868 fi
20869
20870
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20872 $as_echo_n "checking for wint_t... " >&6; }
20873 if ${gt_cv_c_wint_t+:} false; then :
20874 $as_echo_n "(cached) " >&6
20875 else
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20878 #include <wchar.h>
20879 wint_t foo = (wchar_t)'\0';
20880 int
20881 main ()
20882 {
20883
20884 ;
20885 return 0;
20886 }
20887 _ACEOF
20888 if ac_fn_c_try_compile "$LINENO"; then :
20889 gt_cv_c_wint_t=yes
20890 else
20891 gt_cv_c_wint_t=no
20892 fi
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20896 $as_echo "$gt_cv_c_wint_t" >&6; }
20897 if test $gt_cv_c_wint_t = yes; then
20898
20899 $as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
20900
20901 fi
20902
20903
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20905 $as_echo_n "checking for inttypes.h... " >&6; }
20906 if ${jm_ac_cv_header_inttypes_h+:} false; then :
20907 $as_echo_n "(cached) " >&6
20908 else
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20911 #include <sys/types.h>
20912 #include <inttypes.h>
20913 int
20914 main ()
20915 {
20916 uintmax_t i = (uintmax_t) -1;
20917 ;
20918 return 0;
20919 }
20920 _ACEOF
20921 if ac_fn_c_try_compile "$LINENO"; then :
20922 jm_ac_cv_header_inttypes_h=yes
20923 else
20924 jm_ac_cv_header_inttypes_h=no
20925 fi
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927 fi
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
20929 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
20930 if test $jm_ac_cv_header_inttypes_h = yes; then
20931
20932 cat >>confdefs.h <<_ACEOF
20933 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
20934 _ACEOF
20935
20936 fi
20937
20938
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20940 $as_echo_n "checking for stdint.h... " >&6; }
20941 if ${jm_ac_cv_header_stdint_h+:} false; then :
20942 $as_echo_n "(cached) " >&6
20943 else
20944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20946 #include <sys/types.h>
20947 #include <stdint.h>
20948 int
20949 main ()
20950 {
20951 uintmax_t i = (uintmax_t) -1;
20952 ;
20953 return 0;
20954 }
20955 _ACEOF
20956 if ac_fn_c_try_compile "$LINENO"; then :
20957 jm_ac_cv_header_stdint_h=yes
20958 else
20959 jm_ac_cv_header_stdint_h=no
20960 fi
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 fi
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
20964 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
20965 if test $jm_ac_cv_header_stdint_h = yes; then
20966
20967 cat >>confdefs.h <<_ACEOF
20968 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
20969 _ACEOF
20970
20971 fi
20972
20973
20974
20975
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20977 $as_echo_n "checking for intmax_t... " >&6; }
20978 if ${gt_cv_c_intmax_t+:} false; then :
20979 $as_echo_n "(cached) " >&6
20980 else
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983
20984 #include <stddef.h>
20985 #include <stdlib.h>
20986 #if HAVE_STDINT_H_WITH_UINTMAX
20987 #include <stdint.h>
20988 #endif
20989 #if HAVE_INTTYPES_H_WITH_UINTMAX
20990 #include <inttypes.h>
20991 #endif
20992
20993 int
20994 main ()
20995 {
20996 intmax_t x = -1;
20997 ;
20998 return 0;
20999 }
21000 _ACEOF
21001 if ac_fn_c_try_compile "$LINENO"; then :
21002 gt_cv_c_intmax_t=yes
21003 else
21004 gt_cv_c_intmax_t=no
21005 fi
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21009 $as_echo "$gt_cv_c_intmax_t" >&6; }
21010 if test $gt_cv_c_intmax_t = yes; then
21011
21012 $as_echo "@%:@define HAVE_INTMAX_T 1" >>confdefs.h
21013
21014 fi
21015
21016
21017
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
21019 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
21020 if ${gt_cv_func_printf_posix+:} false; then :
21021 $as_echo_n "(cached) " >&6
21022 else
21023
21024 if test "$cross_compiling" = yes; then :
21025
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028
21029 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21030 notposix
21031 #endif
21032
21033 _ACEOF
21034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21035 $EGREP "notposix" >/dev/null 2>&1; then :
21036 gt_cv_func_printf_posix="guessing no"
21037 else
21038 gt_cv_func_printf_posix="guessing yes"
21039 fi
21040 rm -f conftest*
21041
21042
21043 else
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046
21047 #include <stdio.h>
21048 #include <string.h>
21049 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21050 dollar expansion (possibly an autoconf bug). */
21051 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21052 static char buf[100];
21053 int main ()
21054 {
21055 sprintf (buf, format, 33, 55);
21056 return (strcmp (buf, "55 33") != 0);
21057 }
21058 _ACEOF
21059 if ac_fn_c_try_run "$LINENO"; then :
21060 gt_cv_func_printf_posix=yes
21061 else
21062 gt_cv_func_printf_posix=no
21063 fi
21064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21065 conftest.$ac_objext conftest.beam conftest.$ac_ext
21066 fi
21067
21068
21069 fi
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
21071 $as_echo "$gt_cv_func_printf_posix" >&6; }
21072 case $gt_cv_func_printf_posix in
21073 *yes)
21074
21075 $as_echo "@%:@define HAVE_POSIX_PRINTF 1" >>confdefs.h
21076
21077 ;;
21078 esac
21079
21080 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21081 # for constant arguments. Useless!
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21083 $as_echo_n "checking for working alloca.h... " >&6; }
21084 if ${ac_cv_working_alloca_h+:} false; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21089 @%:@include <alloca.h>
21090 int
21091 main ()
21092 {
21093 char *p = (char *) alloca (2 * sizeof (int));
21094 if (p) return 0;
21095 ;
21096 return 0;
21097 }
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 ac_cv_working_alloca_h=yes
21101 else
21102 ac_cv_working_alloca_h=no
21103 fi
21104 rm -f core conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21106 fi
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21108 $as_echo "$ac_cv_working_alloca_h" >&6; }
21109 if test $ac_cv_working_alloca_h = yes; then
21110
21111 $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
21112
21113 fi
21114
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21116 $as_echo_n "checking for alloca... " >&6; }
21117 if ${ac_cv_func_alloca_works+:} false; then :
21118 $as_echo_n "(cached) " >&6
21119 else
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #ifdef __GNUC__
21123 # define alloca __builtin_alloca
21124 #else
21125 # ifdef _MSC_VER
21126 # include <malloc.h>
21127 # define alloca _alloca
21128 # else
21129 # ifdef HAVE_ALLOCA_H
21130 # include <alloca.h>
21131 # else
21132 # ifdef _AIX
21133 #pragma alloca
21134 # else
21135 # ifndef alloca /* predefined by HP cc +Olibcalls */
21136 void *alloca (size_t);
21137 # endif
21138 # endif
21139 # endif
21140 # endif
21141 #endif
21142
21143 int
21144 main ()
21145 {
21146 char *p = (char *) alloca (1);
21147 if (p) return 0;
21148 ;
21149 return 0;
21150 }
21151 _ACEOF
21152 if ac_fn_c_try_link "$LINENO"; then :
21153 ac_cv_func_alloca_works=yes
21154 else
21155 ac_cv_func_alloca_works=no
21156 fi
21157 rm -f core conftest.err conftest.$ac_objext \
21158 conftest$ac_exeext conftest.$ac_ext
21159 fi
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21161 $as_echo "$ac_cv_func_alloca_works" >&6; }
21162
21163 if test $ac_cv_func_alloca_works = yes; then
21164
21165 $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
21166
21167 else
21168 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21169 # that cause trouble. Some versions do not even contain alloca or
21170 # contain a buggy version. If you still want to use their alloca,
21171 # use ar to extract alloca.o from them instead of compiling alloca.c.
21172
21173 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21174
21175 $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
21176
21177
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21179 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21180 if ${ac_cv_os_cray+:} false; then :
21181 $as_echo_n "(cached) " >&6
21182 else
21183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184 /* end confdefs.h. */
21185 #if defined CRAY && ! defined CRAY2
21186 webecray
21187 #else
21188 wenotbecray
21189 #endif
21190
21191 _ACEOF
21192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21193 $EGREP "webecray" >/dev/null 2>&1; then :
21194 ac_cv_os_cray=yes
21195 else
21196 ac_cv_os_cray=no
21197 fi
21198 rm -f conftest*
21199
21200 fi
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21202 $as_echo "$ac_cv_os_cray" >&6; }
21203 if test $ac_cv_os_cray = yes; then
21204 for ac_func in _getb67 GETB67 getb67; do
21205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21208
21209 cat >>confdefs.h <<_ACEOF
21210 @%:@define CRAY_STACKSEG_END $ac_func
21211 _ACEOF
21212
21213 break
21214 fi
21215
21216 done
21217 fi
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21220 $as_echo_n "checking stack direction for C alloca... " >&6; }
21221 if ${ac_cv_c_stack_direction+:} false; then :
21222 $as_echo_n "(cached) " >&6
21223 else
21224 if test "$cross_compiling" = yes; then :
21225 ac_cv_c_stack_direction=0
21226 else
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21229 $ac_includes_default
21230 int
21231 find_stack_direction (int *addr, int depth)
21232 {
21233 int dir, dummy = 0;
21234 if (! addr)
21235 addr = &dummy;
21236 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21237 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21238 return dir + dummy;
21239 }
21240
21241 int
21242 main (int argc, char **argv)
21243 {
21244 return find_stack_direction (0, argc + !argv + 20) < 0;
21245 }
21246 _ACEOF
21247 if ac_fn_c_try_run "$LINENO"; then :
21248 ac_cv_c_stack_direction=1
21249 else
21250 ac_cv_c_stack_direction=-1
21251 fi
21252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21253 conftest.$ac_objext conftest.beam conftest.$ac_ext
21254 fi
21255
21256 fi
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21258 $as_echo "$ac_cv_c_stack_direction" >&6; }
21259 cat >>confdefs.h <<_ACEOF
21260 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
21261 _ACEOF
21262
21263
21264 fi
21265
21266
21267
21268
21269 for ac_header in $ac_header_list
21270 do :
21271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21273 "
21274 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21275 cat >>confdefs.h <<_ACEOF
21276 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21277 _ACEOF
21278
21279 fi
21280
21281 done
21282
21283
21284
21285
21286
21287
21288
21289
21290 for ac_func in getpagesize
21291 do :
21292 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21293 if test "x$ac_cv_func_getpagesize" = xyes; then :
21294 cat >>confdefs.h <<_ACEOF
21295 @%:@define HAVE_GETPAGESIZE 1
21296 _ACEOF
21297
21298 fi
21299 done
21300
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21302 $as_echo_n "checking for working mmap... " >&6; }
21303 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
21304 $as_echo_n "(cached) " >&6
21305 else
21306 if test "$cross_compiling" = yes; then :
21307 ac_cv_func_mmap_fixed_mapped=no
21308 else
21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310 /* end confdefs.h. */
21311 $ac_includes_default
21312 /* malloc might have been renamed as rpl_malloc. */
21313 #undef malloc
21314
21315 /* Thanks to Mike Haertel and Jim Avera for this test.
21316 Here is a matrix of mmap possibilities:
21317 mmap private not fixed
21318 mmap private fixed at somewhere currently unmapped
21319 mmap private fixed at somewhere already mapped
21320 mmap shared not fixed
21321 mmap shared fixed at somewhere currently unmapped
21322 mmap shared fixed at somewhere already mapped
21323 For private mappings, we should verify that changes cannot be read()
21324 back from the file, nor mmap's back from the file at a different
21325 address. (There have been systems where private was not correctly
21326 implemented like the infamous i386 svr4.0, and systems where the
21327 VM page cache was not coherent with the file system buffer cache
21328 like early versions of FreeBSD and possibly contemporary NetBSD.)
21329 For shared mappings, we should conversely verify that changes get
21330 propagated back to all the places they're supposed to be.
21331
21332 Grep wants private fixed already mapped.
21333 The main things grep needs to know about mmap are:
21334 * does it exist and is it safe to write into the mmap'd area
21335 * how to use it (BSD variants) */
21336
21337 #include <fcntl.h>
21338 #include <sys/mman.h>
21339
21340 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21341 char *malloc ();
21342 #endif
21343
21344 /* This mess was copied from the GNU getpagesize.h. */
21345 #ifndef HAVE_GETPAGESIZE
21346 # ifdef _SC_PAGESIZE
21347 # define getpagesize() sysconf(_SC_PAGESIZE)
21348 # else /* no _SC_PAGESIZE */
21349 # ifdef HAVE_SYS_PARAM_H
21350 # include <sys/param.h>
21351 # ifdef EXEC_PAGESIZE
21352 # define getpagesize() EXEC_PAGESIZE
21353 # else /* no EXEC_PAGESIZE */
21354 # ifdef NBPG
21355 # define getpagesize() NBPG * CLSIZE
21356 # ifndef CLSIZE
21357 # define CLSIZE 1
21358 # endif /* no CLSIZE */
21359 # else /* no NBPG */
21360 # ifdef NBPC
21361 # define getpagesize() NBPC
21362 # else /* no NBPC */
21363 # ifdef PAGESIZE
21364 # define getpagesize() PAGESIZE
21365 # endif /* PAGESIZE */
21366 # endif /* no NBPC */
21367 # endif /* no NBPG */
21368 # endif /* no EXEC_PAGESIZE */
21369 # else /* no HAVE_SYS_PARAM_H */
21370 # define getpagesize() 8192 /* punt totally */
21371 # endif /* no HAVE_SYS_PARAM_H */
21372 # endif /* no _SC_PAGESIZE */
21373
21374 #endif /* no HAVE_GETPAGESIZE */
21375
21376 int
21377 main ()
21378 {
21379 char *data, *data2, *data3;
21380 const char *cdata2;
21381 int i, pagesize;
21382 int fd, fd2;
21383
21384 pagesize = getpagesize ();
21385
21386 /* First, make a file with some known garbage in it. */
21387 data = (char *) malloc (pagesize);
21388 if (!data)
21389 return 1;
21390 for (i = 0; i < pagesize; ++i)
21391 *(data + i) = rand ();
21392 umask (0);
21393 fd = creat ("conftest.mmap", 0600);
21394 if (fd < 0)
21395 return 2;
21396 if (write (fd, data, pagesize) != pagesize)
21397 return 3;
21398 close (fd);
21399
21400 /* Next, check that the tail of a page is zero-filled. File must have
21401 non-zero length, otherwise we risk SIGBUS for entire page. */
21402 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21403 if (fd2 < 0)
21404 return 4;
21405 cdata2 = "";
21406 if (write (fd2, cdata2, 1) != 1)
21407 return 5;
21408 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21409 if (data2 == MAP_FAILED)
21410 return 6;
21411 for (i = 0; i < pagesize; ++i)
21412 if (*(data2 + i))
21413 return 7;
21414 close (fd2);
21415 if (munmap (data2, pagesize))
21416 return 8;
21417
21418 /* Next, try to mmap the file at a fixed address which already has
21419 something else allocated at it. If we can, also make sure that
21420 we see the same garbage. */
21421 fd = open ("conftest.mmap", O_RDWR);
21422 if (fd < 0)
21423 return 9;
21424 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21425 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21426 return 10;
21427 for (i = 0; i < pagesize; ++i)
21428 if (*(data + i) != *(data2 + i))
21429 return 11;
21430
21431 /* Finally, make sure that changes to the mapped area do not
21432 percolate back to the file as seen by read(). (This is a bug on
21433 some variants of i386 svr4.0.) */
21434 for (i = 0; i < pagesize; ++i)
21435 *(data2 + i) = *(data2 + i) + 1;
21436 data3 = (char *) malloc (pagesize);
21437 if (!data3)
21438 return 12;
21439 if (read (fd, data3, pagesize) != pagesize)
21440 return 13;
21441 for (i = 0; i < pagesize; ++i)
21442 if (*(data + i) != *(data3 + i))
21443 return 14;
21444 close (fd);
21445 return 0;
21446 }
21447 _ACEOF
21448 if ac_fn_c_try_run "$LINENO"; then :
21449 ac_cv_func_mmap_fixed_mapped=yes
21450 else
21451 ac_cv_func_mmap_fixed_mapped=no
21452 fi
21453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21454 conftest.$ac_objext conftest.beam conftest.$ac_ext
21455 fi
21456
21457 fi
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21459 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21460 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21461
21462 $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
21463
21464 fi
21465 rm -f conftest.mmap conftest.txt
21466
21467
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
21469 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
21470 if ${ac_cv_gnu_library_2_1+:} false; then :
21471 $as_echo_n "(cached) " >&6
21472 else
21473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21475
21476 #include <features.h>
21477 #ifdef __GNU_LIBRARY__
21478 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21479 Lucky GNU user
21480 #endif
21481 #endif
21482
21483 _ACEOF
21484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21485 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21486 ac_cv_gnu_library_2_1=yes
21487 else
21488 ac_cv_gnu_library_2_1=no
21489 fi
21490 rm -f conftest*
21491
21492
21493
21494 fi
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21496 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21497
21498 GLIBC21="$ac_cv_gnu_library_2_1"
21499
21500
21501
21502
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
21504 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
21505 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508
21509 if test "$cross_compiling" = yes; then :
21510
21511 # Guess based on the CPU.
21512 case "$host_cpu" in
21513 alpha* | i3456786 | m68k | s390*)
21514 gt_cv_int_divbyzero_sigfpe="guessing yes";;
21515 *)
21516 gt_cv_int_divbyzero_sigfpe="guessing no";;
21517 esac
21518
21519 else
21520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21521 /* end confdefs.h. */
21522
21523 #include <stdlib.h>
21524 #include <signal.h>
21525
21526 static void
21527 #ifdef __cplusplus
21528 sigfpe_handler (int sig)
21529 #else
21530 sigfpe_handler (sig) int sig;
21531 #endif
21532 {
21533 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
21534 exit (sig != SIGFPE);
21535 }
21536
21537 int x = 1;
21538 int y = 0;
21539 int z;
21540 int nan;
21541
21542 int main ()
21543 {
21544 signal (SIGFPE, sigfpe_handler);
21545 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
21546 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
21547 signal (SIGTRAP, sigfpe_handler);
21548 #endif
21549 /* Linux/SPARC yields signal SIGILL. */
21550 #if defined (__sparc__) && defined (__linux__)
21551 signal (SIGILL, sigfpe_handler);
21552 #endif
21553
21554 z = x / y;
21555 nan = y / y;
21556 exit (1);
21557 }
21558
21559 _ACEOF
21560 if ac_fn_c_try_run "$LINENO"; then :
21561 gt_cv_int_divbyzero_sigfpe=yes
21562 else
21563 gt_cv_int_divbyzero_sigfpe=no
21564 fi
21565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21566 conftest.$ac_objext conftest.beam conftest.$ac_ext
21567 fi
21568
21569
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
21572 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
21573 case "$gt_cv_int_divbyzero_sigfpe" in
21574 *yes) value=1;;
21575 *) value=0;;
21576 esac
21577
21578 cat >>confdefs.h <<_ACEOF
21579 @%:@define INTDIV0_RAISES_SIGFPE $value
21580 _ACEOF
21581
21582
21583
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
21585 $as_echo_n "checking for unsigned long long... " >&6; }
21586 if ${ac_cv_type_unsigned_long_long+:} false; then :
21587 $as_echo_n "(cached) " >&6
21588 else
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21591 unsigned long long ull = 1ULL; int i = 63;
21592 int
21593 main ()
21594 {
21595 unsigned long long ullmax = (unsigned long long) -1;
21596 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21597 ;
21598 return 0;
21599 }
21600 _ACEOF
21601 if ac_fn_c_try_link "$LINENO"; then :
21602 ac_cv_type_unsigned_long_long=yes
21603 else
21604 ac_cv_type_unsigned_long_long=no
21605 fi
21606 rm -f core conftest.err conftest.$ac_objext \
21607 conftest$ac_exeext conftest.$ac_ext
21608 fi
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
21610 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
21611 if test $ac_cv_type_unsigned_long_long = yes; then
21612
21613 $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
21614
21615 fi
21616
21617
21618
21619
21620 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
21621
21622 test $ac_cv_type_unsigned_long_long = yes \
21623 && ac_type='unsigned long long' \
21624 || ac_type='unsigned long'
21625
21626 cat >>confdefs.h <<_ACEOF
21627 @%:@define uintmax_t $ac_type
21628 _ACEOF
21629
21630 else
21631
21632 $as_echo "@%:@define HAVE_UINTMAX_T 1" >>confdefs.h
21633
21634 fi
21635
21636
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21638 $as_echo_n "checking for inttypes.h... " >&6; }
21639 if ${gt_cv_header_inttypes_h+:} false; then :
21640 $as_echo_n "(cached) " >&6
21641 else
21642
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21645 #include <sys/types.h>
21646 #include <inttypes.h>
21647 int
21648 main ()
21649 {
21650
21651 ;
21652 return 0;
21653 }
21654 _ACEOF
21655 if ac_fn_c_try_compile "$LINENO"; then :
21656 gt_cv_header_inttypes_h=yes
21657 else
21658 gt_cv_header_inttypes_h=no
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661
21662 fi
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
21664 $as_echo "$gt_cv_header_inttypes_h" >&6; }
21665 if test $gt_cv_header_inttypes_h = yes; then
21666
21667 cat >>confdefs.h <<_ACEOF
21668 @%:@define HAVE_INTTYPES_H 1
21669 _ACEOF
21670
21671 fi
21672
21673
21674
21675 if test $gt_cv_header_inttypes_h = yes; then
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
21677 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21678 if ${gt_cv_inttypes_pri_broken+:} false; then :
21679 $as_echo_n "(cached) " >&6
21680 else
21681
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21684 #include <inttypes.h>
21685 #ifdef PRId32
21686 char *p = PRId32;
21687 #endif
21688
21689 int
21690 main ()
21691 {
21692
21693 ;
21694 return 0;
21695 }
21696 _ACEOF
21697 if ac_fn_c_try_compile "$LINENO"; then :
21698 gt_cv_inttypes_pri_broken=no
21699 else
21700 gt_cv_inttypes_pri_broken=yes
21701 fi
21702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
21706 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21707 fi
21708 if test "$gt_cv_inttypes_pri_broken" = yes; then
21709
21710 cat >>confdefs.h <<_ACEOF
21711 @%:@define PRI_MACROS_BROKEN 1
21712 _ACEOF
21713
21714 fi
21715
21716
21717 for ac_header in stdint.h
21718 do :
21719 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21720 if test "x$ac_cv_header_stdint_h" = xyes; then :
21721 cat >>confdefs.h <<_ACEOF
21722 @%:@define HAVE_STDINT_H 1
21723 _ACEOF
21724
21725 fi
21726
21727 done
21728
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21730 $as_echo_n "checking for SIZE_MAX... " >&6; }
21731 result=
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21734
21735 #include <limits.h>
21736 #if HAVE_STDINT_H
21737 #include <stdint.h>
21738 #endif
21739 #ifdef SIZE_MAX
21740 Found it
21741 #endif
21742
21743 _ACEOF
21744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21745 $EGREP "Found it" >/dev/null 2>&1; then :
21746 result=yes
21747 fi
21748 rm -f conftest*
21749
21750 if test -z "$result"; then
21751 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
21752
21753 else
21754 result=?
21755 fi
21756
21757
21758 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
21759
21760 else
21761 result=?
21762 fi
21763
21764
21765 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
21766
21767 else
21768 result=?
21769 fi
21770
21771
21772 if test "$fits_in_uint" = 1; then
21773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21774 /* end confdefs.h. */
21775 #include <stddef.h>
21776 extern size_t foo;
21777 extern unsigned long foo;
21778
21779 int
21780 main ()
21781 {
21782
21783 ;
21784 return 0;
21785 }
21786 _ACEOF
21787 if ac_fn_c_try_compile "$LINENO"; then :
21788 fits_in_uint=0
21789 fi
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791 fi
21792 if test -z "$result"; then
21793 if test "$fits_in_uint" = 1; then
21794 result="$res_hi$res_lo"U
21795 else
21796 result="$res_hi$res_lo"UL
21797 fi
21798 else
21799 result='~(size_t)0'
21800 fi
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
21803 $as_echo "$result" >&6; }
21804 if test "$result" != yes; then
21805
21806 cat >>confdefs.h <<_ACEOF
21807 @%:@define SIZE_MAX $result
21808 _ACEOF
21809
21810 fi
21811
21812
21813
21814 for ac_header in stdint.h
21815 do :
21816 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21817 if test "x$ac_cv_header_stdint_h" = xyes; then :
21818 cat >>confdefs.h <<_ACEOF
21819 @%:@define HAVE_STDINT_H 1
21820 _ACEOF
21821
21822 fi
21823
21824 done
21825
21826
21827
21828 if test "X$prefix" = "XNONE"; then
21829 acl_final_prefix="$ac_default_prefix"
21830 else
21831 acl_final_prefix="$prefix"
21832 fi
21833 if test "X$exec_prefix" = "XNONE"; then
21834 acl_final_exec_prefix='${prefix}'
21835 else
21836 acl_final_exec_prefix="$exec_prefix"
21837 fi
21838 acl_save_prefix="$prefix"
21839 prefix="$acl_final_prefix"
21840 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21841 prefix="$acl_save_prefix"
21842
21843
21844 @%:@ Check whether --with-gnu-ld was given.
21845 if test "${with_gnu_ld+set}" = set; then :
21846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21847 else
21848 with_gnu_ld=no
21849 fi
21850
21851 # Prepare PATH_SEPARATOR.
21852 # The user is always right.
21853 if test "${PATH_SEPARATOR+set}" != set; then
21854 echo "#! /bin/sh" >conf$$.sh
21855 echo "exit 0" >>conf$$.sh
21856 chmod +x conf$$.sh
21857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21858 PATH_SEPARATOR=';'
21859 else
21860 PATH_SEPARATOR=:
21861 fi
21862 rm -f conf$$.sh
21863 fi
21864 ac_prog=ld
21865 if test "$GCC" = yes; then
21866 # Check if gcc -print-prog-name=ld gives a path.
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21868 $as_echo_n "checking for ld used by GCC... " >&6; }
21869 case $host in
21870 *-*-mingw*)
21871 # gcc leaves a trailing carriage return which upsets mingw
21872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21873 *)
21874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21875 esac
21876 case $ac_prog in
21877 # Accept absolute paths.
21878 [\\/]* | [A-Za-z]:[\\/]*)
21879 re_direlt='/[^/][^/]*/\.\./'
21880 # Canonicalize the path of ld
21881 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21882 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21883 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21884 done
21885 test -z "$LD" && LD="$ac_prog"
21886 ;;
21887 "")
21888 # If it fails, then pretend we aren't using GCC.
21889 ac_prog=ld
21890 ;;
21891 *)
21892 # If it is relative, then search for the first ld in PATH.
21893 with_gnu_ld=unknown
21894 ;;
21895 esac
21896 elif test "$with_gnu_ld" = yes; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21898 $as_echo_n "checking for GNU ld... " >&6; }
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21901 $as_echo_n "checking for non-GNU ld... " >&6; }
21902 fi
21903 if ${acl_cv_path_LD+:} false; then :
21904 $as_echo_n "(cached) " >&6
21905 else
21906 if test -z "$LD"; then
21907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21908 for ac_dir in $PATH; do
21909 test -z "$ac_dir" && ac_dir=.
21910 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21911 acl_cv_path_LD="$ac_dir/$ac_prog"
21912 # Check to see if the program is GNU ld. I'd rather use --version,
21913 # but apparently some GNU ld's only accept -v.
21914 # Break only if it was the GNU/non-GNU ld that we prefer.
21915 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21916 *GNU* | *'with BFD'*)
21917 test "$with_gnu_ld" != no && break ;;
21918 *)
21919 test "$with_gnu_ld" != yes && break ;;
21920 esac
21921 fi
21922 done
21923 IFS="$ac_save_ifs"
21924 else
21925 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21926 fi
21927 fi
21928
21929 LD="$acl_cv_path_LD"
21930 if test -n "$LD"; then
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21932 $as_echo "$LD" >&6; }
21933 else
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21936 fi
21937 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21939 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21940 if ${acl_cv_prog_gnu_ld+:} false; then :
21941 $as_echo_n "(cached) " >&6
21942 else
21943 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21944 case `$LD -v 2>&1 </dev/null` in
21945 *GNU* | *'with BFD'*)
21946 acl_cv_prog_gnu_ld=yes ;;
21947 *)
21948 acl_cv_prog_gnu_ld=no ;;
21949 esac
21950 fi
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21952 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21953 with_gnu_ld=$acl_cv_prog_gnu_ld
21954
21955
21956
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21958 $as_echo_n "checking for shared library run path origin... " >&6; }
21959 if ${acl_cv_rpath+:} false; then :
21960 $as_echo_n "(cached) " >&6
21961 else
21962
21963 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21964 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21965 . ./conftest.sh
21966 rm -f ./conftest.sh
21967 acl_cv_rpath=done
21968
21969 fi
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21971 $as_echo "$acl_cv_rpath" >&6; }
21972 wl="$acl_cv_wl"
21973 libext="$acl_cv_libext"
21974 shlibext="$acl_cv_shlibext"
21975 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21976 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21977 hardcode_direct="$acl_cv_hardcode_direct"
21978 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21979 @%:@ Check whether --enable-rpath was given.
21980 if test "${enable_rpath+set}" = set; then :
21981 enableval=$enable_rpath; :
21982 else
21983 enable_rpath=yes
21984 fi
21985
21986
21987
21988
21989
21990
21991
21992
21993 use_additional=yes
21994
21995 acl_save_prefix="$prefix"
21996 prefix="$acl_final_prefix"
21997 acl_save_exec_prefix="$exec_prefix"
21998 exec_prefix="$acl_final_exec_prefix"
21999
22000 eval additional_includedir=\"$includedir\"
22001 eval additional_libdir=\"$libdir\"
22002
22003 exec_prefix="$acl_save_exec_prefix"
22004 prefix="$acl_save_prefix"
22005
22006
22007 @%:@ Check whether --with-libiconv-prefix was given.
22008 if test "${with_libiconv_prefix+set}" = set; then :
22009 withval=$with_libiconv_prefix;
22010 if test "X$withval" = "Xno"; then
22011 use_additional=no
22012 else
22013 if test "X$withval" = "X"; then
22014
22015 acl_save_prefix="$prefix"
22016 prefix="$acl_final_prefix"
22017 acl_save_exec_prefix="$exec_prefix"
22018 exec_prefix="$acl_final_exec_prefix"
22019
22020 eval additional_includedir=\"$includedir\"
22021 eval additional_libdir=\"$libdir\"
22022
22023 exec_prefix="$acl_save_exec_prefix"
22024 prefix="$acl_save_prefix"
22025
22026 else
22027 additional_includedir="$withval/include"
22028 additional_libdir="$withval/lib"
22029 fi
22030 fi
22031
22032 fi
22033
22034 LIBICONV=
22035 LTLIBICONV=
22036 INCICONV=
22037 rpathdirs=
22038 ltrpathdirs=
22039 names_already_handled=
22040 names_next_round='iconv '
22041 while test -n "$names_next_round"; do
22042 names_this_round="$names_next_round"
22043 names_next_round=
22044 for name in $names_this_round; do
22045 already_handled=
22046 for n in $names_already_handled; do
22047 if test "$n" = "$name"; then
22048 already_handled=yes
22049 break
22050 fi
22051 done
22052 if test -z "$already_handled"; then
22053 names_already_handled="$names_already_handled $name"
22054 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22055 eval value=\"\$HAVE_LIB$uppername\"
22056 if test -n "$value"; then
22057 if test "$value" = yes; then
22058 eval value=\"\$LIB$uppername\"
22059 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22060 eval value=\"\$LTLIB$uppername\"
22061 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22062 else
22063 :
22064 fi
22065 else
22066 found_dir=
22067 found_la=
22068 found_so=
22069 found_a=
22070 if test $use_additional = yes; then
22071 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22072 found_dir="$additional_libdir"
22073 found_so="$additional_libdir/lib$name.$shlibext"
22074 if test -f "$additional_libdir/lib$name.la"; then
22075 found_la="$additional_libdir/lib$name.la"
22076 fi
22077 else
22078 if test -f "$additional_libdir/lib$name.$libext"; then
22079 found_dir="$additional_libdir"
22080 found_a="$additional_libdir/lib$name.$libext"
22081 if test -f "$additional_libdir/lib$name.la"; then
22082 found_la="$additional_libdir/lib$name.la"
22083 fi
22084 fi
22085 fi
22086 fi
22087 if test "X$found_dir" = "X"; then
22088 for x in $LDFLAGS $LTLIBICONV; do
22089
22090 acl_save_prefix="$prefix"
22091 prefix="$acl_final_prefix"
22092 acl_save_exec_prefix="$exec_prefix"
22093 exec_prefix="$acl_final_exec_prefix"
22094 eval x=\"$x\"
22095 exec_prefix="$acl_save_exec_prefix"
22096 prefix="$acl_save_prefix"
22097
22098 case "$x" in
22099 -L*)
22100 dir=`echo "X$x" | sed -e 's/^X-L//'`
22101 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22102 found_dir="$dir"
22103 found_so="$dir/lib$name.$shlibext"
22104 if test -f "$dir/lib$name.la"; then
22105 found_la="$dir/lib$name.la"
22106 fi
22107 else
22108 if test -f "$dir/lib$name.$libext"; then
22109 found_dir="$dir"
22110 found_a="$dir/lib$name.$libext"
22111 if test -f "$dir/lib$name.la"; then
22112 found_la="$dir/lib$name.la"
22113 fi
22114 fi
22115 fi
22116 ;;
22117 esac
22118 if test "X$found_dir" != "X"; then
22119 break
22120 fi
22121 done
22122 fi
22123 if test "X$found_dir" != "X"; then
22124 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22125 if test "X$found_so" != "X"; then
22126 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22127 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22128 else
22129 haveit=
22130 for x in $ltrpathdirs; do
22131 if test "X$x" = "X$found_dir"; then
22132 haveit=yes
22133 break
22134 fi
22135 done
22136 if test -z "$haveit"; then
22137 ltrpathdirs="$ltrpathdirs $found_dir"
22138 fi
22139 if test "$hardcode_direct" = yes; then
22140 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22141 else
22142 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22143 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22144 haveit=
22145 for x in $rpathdirs; do
22146 if test "X$x" = "X$found_dir"; then
22147 haveit=yes
22148 break
22149 fi
22150 done
22151 if test -z "$haveit"; then
22152 rpathdirs="$rpathdirs $found_dir"
22153 fi
22154 else
22155 haveit=
22156 for x in $LDFLAGS $LIBICONV; do
22157
22158 acl_save_prefix="$prefix"
22159 prefix="$acl_final_prefix"
22160 acl_save_exec_prefix="$exec_prefix"
22161 exec_prefix="$acl_final_exec_prefix"
22162 eval x=\"$x\"
22163 exec_prefix="$acl_save_exec_prefix"
22164 prefix="$acl_save_prefix"
22165
22166 if test "X$x" = "X-L$found_dir"; then
22167 haveit=yes
22168 break
22169 fi
22170 done
22171 if test -z "$haveit"; then
22172 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22173 fi
22174 if test "$hardcode_minus_L" != no; then
22175 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22176 else
22177 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22178 fi
22179 fi
22180 fi
22181 fi
22182 else
22183 if test "X$found_a" != "X"; then
22184 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22185 else
22186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22187 fi
22188 fi
22189 additional_includedir=
22190 case "$found_dir" in
22191 */lib | */lib/)
22192 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22193 additional_includedir="$basedir/include"
22194 ;;
22195 esac
22196 if test "X$additional_includedir" != "X"; then
22197 if test "X$additional_includedir" != "X/usr/include"; then
22198 haveit=
22199 if test "X$additional_includedir" = "X/usr/local/include"; then
22200 if test -n "$GCC"; then
22201 case $host_os in
22202 linux*) haveit=yes;;
22203 esac
22204 fi
22205 fi
22206 if test -z "$haveit"; then
22207 for x in $CPPFLAGS $INCICONV; do
22208
22209 acl_save_prefix="$prefix"
22210 prefix="$acl_final_prefix"
22211 acl_save_exec_prefix="$exec_prefix"
22212 exec_prefix="$acl_final_exec_prefix"
22213 eval x=\"$x\"
22214 exec_prefix="$acl_save_exec_prefix"
22215 prefix="$acl_save_prefix"
22216
22217 if test "X$x" = "X-I$additional_includedir"; then
22218 haveit=yes
22219 break
22220 fi
22221 done
22222 if test -z "$haveit"; then
22223 if test -d "$additional_includedir"; then
22224 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22225 fi
22226 fi
22227 fi
22228 fi
22229 fi
22230 if test -n "$found_la"; then
22231 save_libdir="$libdir"
22232 case "$found_la" in
22233 */* | *\\*) . "$found_la" ;;
22234 *) . "./$found_la" ;;
22235 esac
22236 libdir="$save_libdir"
22237 for dep in $dependency_libs; do
22238 case "$dep" in
22239 -L*)
22240 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22241 if test "X$additional_libdir" != "X/usr/lib"; then
22242 haveit=
22243 if test "X$additional_libdir" = "X/usr/local/lib"; then
22244 if test -n "$GCC"; then
22245 case $host_os in
22246 linux*) haveit=yes;;
22247 esac
22248 fi
22249 fi
22250 if test -z "$haveit"; then
22251 haveit=
22252 for x in $LDFLAGS $LIBICONV; do
22253
22254 acl_save_prefix="$prefix"
22255 prefix="$acl_final_prefix"
22256 acl_save_exec_prefix="$exec_prefix"
22257 exec_prefix="$acl_final_exec_prefix"
22258 eval x=\"$x\"
22259 exec_prefix="$acl_save_exec_prefix"
22260 prefix="$acl_save_prefix"
22261
22262 if test "X$x" = "X-L$additional_libdir"; then
22263 haveit=yes
22264 break
22265 fi
22266 done
22267 if test -z "$haveit"; then
22268 if test -d "$additional_libdir"; then
22269 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22270 fi
22271 fi
22272 haveit=
22273 for x in $LDFLAGS $LTLIBICONV; do
22274
22275 acl_save_prefix="$prefix"
22276 prefix="$acl_final_prefix"
22277 acl_save_exec_prefix="$exec_prefix"
22278 exec_prefix="$acl_final_exec_prefix"
22279 eval x=\"$x\"
22280 exec_prefix="$acl_save_exec_prefix"
22281 prefix="$acl_save_prefix"
22282
22283 if test "X$x" = "X-L$additional_libdir"; then
22284 haveit=yes
22285 break
22286 fi
22287 done
22288 if test -z "$haveit"; then
22289 if test -d "$additional_libdir"; then
22290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22291 fi
22292 fi
22293 fi
22294 fi
22295 ;;
22296 -R*)
22297 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22298 if test "$enable_rpath" != no; then
22299 haveit=
22300 for x in $rpathdirs; do
22301 if test "X$x" = "X$dir"; then
22302 haveit=yes
22303 break
22304 fi
22305 done
22306 if test -z "$haveit"; then
22307 rpathdirs="$rpathdirs $dir"
22308 fi
22309 haveit=
22310 for x in $ltrpathdirs; do
22311 if test "X$x" = "X$dir"; then
22312 haveit=yes
22313 break
22314 fi
22315 done
22316 if test -z "$haveit"; then
22317 ltrpathdirs="$ltrpathdirs $dir"
22318 fi
22319 fi
22320 ;;
22321 -l*)
22322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22323 ;;
22324 *.la)
22325 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22326 ;;
22327 *)
22328 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22329 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22330 ;;
22331 esac
22332 done
22333 fi
22334 else
22335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22337 fi
22338 fi
22339 fi
22340 done
22341 done
22342 if test "X$rpathdirs" != "X"; then
22343 if test -n "$hardcode_libdir_separator"; then
22344 alldirs=
22345 for found_dir in $rpathdirs; do
22346 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22347 done
22348 acl_save_libdir="$libdir"
22349 libdir="$alldirs"
22350 eval flag=\"$hardcode_libdir_flag_spec\"
22351 libdir="$acl_save_libdir"
22352 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22353 else
22354 for found_dir in $rpathdirs; do
22355 acl_save_libdir="$libdir"
22356 libdir="$found_dir"
22357 eval flag=\"$hardcode_libdir_flag_spec\"
22358 libdir="$acl_save_libdir"
22359 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22360 done
22361 fi
22362 fi
22363 if test "X$ltrpathdirs" != "X"; then
22364 for found_dir in $ltrpathdirs; do
22365 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22366 done
22367 fi
22368
22369
22370
22371
22372
22373
22374
22375
22376 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22377 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22378
22379 else
22380
22381 $as_echo "@%:@define ptrdiff_t long" >>confdefs.h
22382
22383
22384 fi
22385
22386 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22387 stdlib.h string.h unistd.h sys/param.h
22388 do :
22389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22392 cat >>confdefs.h <<_ACEOF
22393 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22394 _ACEOF
22395
22396 fi
22397
22398 done
22399
22400 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22401 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22402 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22403 __fsetlocking
22404 do :
22405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22408 cat >>confdefs.h <<_ACEOF
22409 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22410 _ACEOF
22411
22412 fi
22413 done
22414
22415
22416
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
22418 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22419 if ${ac_cv_have_decl__snprintf+:} false; then :
22420 $as_echo_n "(cached) " >&6
22421 else
22422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22423 /* end confdefs.h. */
22424 #include <stdio.h>
22425 int
22426 main ()
22427 {
22428
22429 #ifndef _snprintf
22430 char *p = (char *) _snprintf;
22431 #endif
22432
22433 ;
22434 return 0;
22435 }
22436 _ACEOF
22437 if ac_fn_c_try_compile "$LINENO"; then :
22438 ac_cv_have_decl__snprintf=yes
22439 else
22440 ac_cv_have_decl__snprintf=no
22441 fi
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
22445 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22446 if test $ac_cv_have_decl__snprintf = yes; then
22447 gt_value=1
22448 else
22449 gt_value=0
22450 fi
22451
22452 cat >>confdefs.h <<_ACEOF
22453 @%:@define HAVE_DECL__SNPRINTF $gt_value
22454 _ACEOF
22455
22456
22457
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
22459 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22460 if ${ac_cv_have_decl__snwprintf+:} false; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22465 #include <stdio.h>
22466 int
22467 main ()
22468 {
22469
22470 #ifndef _snwprintf
22471 char *p = (char *) _snwprintf;
22472 #endif
22473
22474 ;
22475 return 0;
22476 }
22477 _ACEOF
22478 if ac_fn_c_try_compile "$LINENO"; then :
22479 ac_cv_have_decl__snwprintf=yes
22480 else
22481 ac_cv_have_decl__snwprintf=no
22482 fi
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 fi
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
22486 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22487 if test $ac_cv_have_decl__snwprintf = yes; then
22488 gt_value=1
22489 else
22490 gt_value=0
22491 fi
22492
22493 cat >>confdefs.h <<_ACEOF
22494 @%:@define HAVE_DECL__SNWPRINTF $gt_value
22495 _ACEOF
22496
22497
22498
22499
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
22501 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22502 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22507 #include <stdio.h>
22508 int
22509 main ()
22510 {
22511
22512 #ifndef feof_unlocked
22513 char *p = (char *) feof_unlocked;
22514 #endif
22515
22516 ;
22517 return 0;
22518 }
22519 _ACEOF
22520 if ac_fn_c_try_compile "$LINENO"; then :
22521 ac_cv_have_decl_feof_unlocked=yes
22522 else
22523 ac_cv_have_decl_feof_unlocked=no
22524 fi
22525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526 fi
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
22528 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22529 if test $ac_cv_have_decl_feof_unlocked = yes; then
22530 gt_value=1
22531 else
22532 gt_value=0
22533 fi
22534
22535 cat >>confdefs.h <<_ACEOF
22536 @%:@define HAVE_DECL_FEOF_UNLOCKED $gt_value
22537 _ACEOF
22538
22539
22540
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
22542 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
22543 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
22544 $as_echo_n "(cached) " >&6
22545 else
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22548 #include <stdio.h>
22549 int
22550 main ()
22551 {
22552
22553 #ifndef fgets_unlocked
22554 char *p = (char *) fgets_unlocked;
22555 #endif
22556
22557 ;
22558 return 0;
22559 }
22560 _ACEOF
22561 if ac_fn_c_try_compile "$LINENO"; then :
22562 ac_cv_have_decl_fgets_unlocked=yes
22563 else
22564 ac_cv_have_decl_fgets_unlocked=no
22565 fi
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 fi
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
22569 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
22570 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22571 gt_value=1
22572 else
22573 gt_value=0
22574 fi
22575
22576 cat >>confdefs.h <<_ACEOF
22577 @%:@define HAVE_DECL_FGETS_UNLOCKED $gt_value
22578 _ACEOF
22579
22580
22581
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
22583 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
22584 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 #include <stdio.h>
22590 int
22591 main ()
22592 {
22593
22594 #ifndef getc_unlocked
22595 char *p = (char *) getc_unlocked;
22596 #endif
22597
22598 ;
22599 return 0;
22600 }
22601 _ACEOF
22602 if ac_fn_c_try_compile "$LINENO"; then :
22603 ac_cv_have_decl_getc_unlocked=yes
22604 else
22605 ac_cv_have_decl_getc_unlocked=no
22606 fi
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 fi
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
22610 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
22611 if test $ac_cv_have_decl_getc_unlocked = yes; then
22612 gt_value=1
22613 else
22614 gt_value=0
22615 fi
22616
22617 cat >>confdefs.h <<_ACEOF
22618 @%:@define HAVE_DECL_GETC_UNLOCKED $gt_value
22619 _ACEOF
22620
22621
22622
22623 case $gt_cv_func_printf_posix in
22624 *yes) HAVE_POSIX_PRINTF=1 ;;
22625 *) HAVE_POSIX_PRINTF=0 ;;
22626 esac
22627
22628 if test "$ac_cv_func_asprintf" = yes; then
22629 HAVE_ASPRINTF=1
22630 else
22631 HAVE_ASPRINTF=0
22632 fi
22633
22634 if test "$ac_cv_func_snprintf" = yes; then
22635 HAVE_SNPRINTF=1
22636 else
22637 HAVE_SNPRINTF=0
22638 fi
22639
22640 if test "$ac_cv_func_wprintf" = yes; then
22641 HAVE_WPRINTF=1
22642 else
22643 HAVE_WPRINTF=0
22644 fi
22645
22646
22647
22648
22649
22650
22651
22652 am_save_CPPFLAGS="$CPPFLAGS"
22653
22654 for element in $INCICONV; do
22655 haveit=
22656 for x in $CPPFLAGS; do
22657
22658 acl_save_prefix="$prefix"
22659 prefix="$acl_final_prefix"
22660 acl_save_exec_prefix="$exec_prefix"
22661 exec_prefix="$acl_final_exec_prefix"
22662 eval x=\"$x\"
22663 exec_prefix="$acl_save_exec_prefix"
22664 prefix="$acl_save_prefix"
22665
22666 if test "X$x" = "X$element"; then
22667 haveit=yes
22668 break
22669 fi
22670 done
22671 if test -z "$haveit"; then
22672 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22673 fi
22674 done
22675
22676
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22678 $as_echo_n "checking for iconv... " >&6; }
22679 if ${am_cv_func_iconv+:} false; then :
22680 $as_echo_n "(cached) " >&6
22681 else
22682
22683 am_cv_func_iconv="no, consider installing GNU libiconv"
22684 am_cv_lib_iconv=no
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22687 #include <stdlib.h>
22688 #include <iconv.h>
22689 int
22690 main ()
22691 {
22692 iconv_t cd = iconv_open("","");
22693 iconv(cd,NULL,NULL,NULL,NULL);
22694 iconv_close(cd);
22695 ;
22696 return 0;
22697 }
22698 _ACEOF
22699 if ac_fn_c_try_link "$LINENO"; then :
22700 am_cv_func_iconv=yes
22701 fi
22702 rm -f core conftest.err conftest.$ac_objext \
22703 conftest$ac_exeext conftest.$ac_ext
22704 if test "$am_cv_func_iconv" != yes; then
22705 am_save_LIBS="$LIBS"
22706 LIBS="$LIBS $LIBICONV"
22707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22708 /* end confdefs.h. */
22709 #include <stdlib.h>
22710 #include <iconv.h>
22711 int
22712 main ()
22713 {
22714 iconv_t cd = iconv_open("","");
22715 iconv(cd,NULL,NULL,NULL,NULL);
22716 iconv_close(cd);
22717 ;
22718 return 0;
22719 }
22720 _ACEOF
22721 if ac_fn_c_try_link "$LINENO"; then :
22722 am_cv_lib_iconv=yes
22723 am_cv_func_iconv=yes
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22727 LIBS="$am_save_LIBS"
22728 fi
22729
22730 fi
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22732 $as_echo "$am_cv_func_iconv" >&6; }
22733 if test "$am_cv_func_iconv" = yes; then
22734
22735 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
22736
22737 fi
22738 if test "$am_cv_lib_iconv" = yes; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22740 $as_echo_n "checking how to link with libiconv... " >&6; }
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22742 $as_echo "$LIBICONV" >&6; }
22743 else
22744 CPPFLAGS="$am_save_CPPFLAGS"
22745 LIBICONV=
22746 LTLIBICONV=
22747 fi
22748
22749
22750
22751 if test "$am_cv_func_iconv" = yes; then
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22753 $as_echo_n "checking for iconv declaration... " >&6; }
22754 if ${am_cv_proto_iconv+:} false; then :
22755 $as_echo_n "(cached) " >&6
22756 else
22757
22758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22760
22761 #include <stdlib.h>
22762 #include <iconv.h>
22763 extern
22764 #ifdef __cplusplus
22765 "C"
22766 #endif
22767 #if defined(__STDC__) || defined(__cplusplus)
22768 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22769 #else
22770 size_t iconv();
22771 #endif
22772
22773 int
22774 main ()
22775 {
22776
22777 ;
22778 return 0;
22779 }
22780 _ACEOF
22781 if ac_fn_c_try_compile "$LINENO"; then :
22782 am_cv_proto_iconv_arg1=""
22783 else
22784 am_cv_proto_iconv_arg1="const"
22785 fi
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22788 fi
22789
22790 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
22792 }$am_cv_proto_iconv" >&5
22793 $as_echo "${ac_t:-
22794 }$am_cv_proto_iconv" >&6; }
22795
22796 cat >>confdefs.h <<_ACEOF
22797 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
22798 _ACEOF
22799
22800 fi
22801
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22804 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22805 if ${am_cv_langinfo_codeset+:} false; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h. */
22810 #include <langinfo.h>
22811 int
22812 main ()
22813 {
22814 char* cs = nl_langinfo(CODESET);
22815 ;
22816 return 0;
22817 }
22818 _ACEOF
22819 if ac_fn_c_try_link "$LINENO"; then :
22820 am_cv_langinfo_codeset=yes
22821 else
22822 am_cv_langinfo_codeset=no
22823 fi
22824 rm -f core conftest.err conftest.$ac_objext \
22825 conftest$ac_exeext conftest.$ac_ext
22826
22827 fi
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22829 $as_echo "$am_cv_langinfo_codeset" >&6; }
22830 if test $am_cv_langinfo_codeset = yes; then
22831
22832 $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22833
22834 fi
22835
22836 if test $ac_cv_header_locale_h = yes; then
22837
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
22839 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22840 if ${am_cv_val_LC_MESSAGES+:} false; then :
22841 $as_echo_n "(cached) " >&6
22842 else
22843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22845 #include <locale.h>
22846 int
22847 main ()
22848 {
22849 return LC_MESSAGES
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 am_cv_val_LC_MESSAGES=yes
22856 else
22857 am_cv_val_LC_MESSAGES=no
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22861 fi
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
22863 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
22864 if test $am_cv_val_LC_MESSAGES = yes; then
22865
22866 $as_echo "@%:@define HAVE_LC_MESSAGES 1" >>confdefs.h
22867
22868 fi
22869
22870 fi
22871
22872 for ac_prog in bison
22873 do
22874 # Extract the first word of "$ac_prog", so it can be a program name with args.
22875 set dummy $ac_prog; ac_word=$2
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22877 $as_echo_n "checking for $ac_word... " >&6; }
22878 if ${ac_cv_prog_INTLBISON+:} false; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 if test -n "$INTLBISON"; then
22882 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22883 else
22884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22885 for as_dir in $PATH
22886 do
22887 IFS=$as_save_IFS
22888 test -z "$as_dir" && as_dir=.
22889 for ac_exec_ext in '' $ac_executable_extensions; do
22890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22891 ac_cv_prog_INTLBISON="$ac_prog"
22892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22893 break 2
22894 fi
22895 done
22896 done
22897 IFS=$as_save_IFS
22898
22899 fi
22900 fi
22901 INTLBISON=$ac_cv_prog_INTLBISON
22902 if test -n "$INTLBISON"; then
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
22904 $as_echo "$INTLBISON" >&6; }
22905 else
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907 $as_echo "no" >&6; }
22908 fi
22909
22910
22911 test -n "$INTLBISON" && break
22912 done
22913
22914 if test -z "$INTLBISON"; then
22915 ac_verc_fail=yes
22916 else
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
22918 $as_echo_n "checking version of bison... " >&6; }
22919 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22920 case $ac_prog_version in
22921 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22922 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22923 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22924 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22925 esac
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
22927 $as_echo "$ac_prog_version" >&6; }
22928 fi
22929 if test $ac_verc_fail = yes; then
22930 INTLBISON=:
22931 fi
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22949 $as_echo_n "checking whether NLS is requested... " >&6; }
22950 @%:@ Check whether --enable-nls was given.
22951 if test "${enable_nls+set}" = set; then :
22952 enableval=$enable_nls; USE_NLS=$enableval
22953 else
22954 USE_NLS=yes
22955 fi
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22958 $as_echo "$USE_NLS" >&6; }
22959
22960
22961
22962
22963 BUILD_INCLUDED_LIBINTL=no
22964 USE_INCLUDED_LIBINTL=no
22965
22966 LIBINTL=
22967 LTLIBINTL=
22968 POSUB=
22969
22970 if test "$USE_NLS" = "yes"; then
22971 gt_use_preinstalled_gnugettext=no
22972
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
22974 $as_echo_n "checking whether included gettext is requested... " >&6; }
22975
22976 @%:@ Check whether --with-included-gettext was given.
22977 if test "${with_included_gettext+set}" = set; then :
22978 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
22979 else
22980 nls_cv_force_use_gnu_gettext=no
22981 fi
22982
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
22984 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
22985
22986 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22987 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22988
22989
22990
22991
22992
22993
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
22995 $as_echo_n "checking for GNU gettext in libc... " >&6; }
22996 if ${gt_cv_func_gnugettext2_libc+:} false; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23001 #include <libintl.h>
23002 extern int _nl_msg_cat_cntr;
23003 extern int *_nl_domain_bindings;
23004 int
23005 main ()
23006 {
23007 bindtextdomain ("", "");
23008 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
23009 ;
23010 return 0;
23011 }
23012 _ACEOF
23013 if ac_fn_c_try_link "$LINENO"; then :
23014 gt_cv_func_gnugettext2_libc=yes
23015 else
23016 gt_cv_func_gnugettext2_libc=no
23017 fi
23018 rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020 fi
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
23022 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
23023
23024 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
23025
23026
23027
23028 use_additional=yes
23029
23030 acl_save_prefix="$prefix"
23031 prefix="$acl_final_prefix"
23032 acl_save_exec_prefix="$exec_prefix"
23033 exec_prefix="$acl_final_exec_prefix"
23034
23035 eval additional_includedir=\"$includedir\"
23036 eval additional_libdir=\"$libdir\"
23037
23038 exec_prefix="$acl_save_exec_prefix"
23039 prefix="$acl_save_prefix"
23040
23041
23042 @%:@ Check whether --with-libintl-prefix was given.
23043 if test "${with_libintl_prefix+set}" = set; then :
23044 withval=$with_libintl_prefix;
23045 if test "X$withval" = "Xno"; then
23046 use_additional=no
23047 else
23048 if test "X$withval" = "X"; then
23049
23050 acl_save_prefix="$prefix"
23051 prefix="$acl_final_prefix"
23052 acl_save_exec_prefix="$exec_prefix"
23053 exec_prefix="$acl_final_exec_prefix"
23054
23055 eval additional_includedir=\"$includedir\"
23056 eval additional_libdir=\"$libdir\"
23057
23058 exec_prefix="$acl_save_exec_prefix"
23059 prefix="$acl_save_prefix"
23060
23061 else
23062 additional_includedir="$withval/include"
23063 additional_libdir="$withval/lib"
23064 fi
23065 fi
23066
23067 fi
23068
23069 LIBINTL=
23070 LTLIBINTL=
23071 INCINTL=
23072 rpathdirs=
23073 ltrpathdirs=
23074 names_already_handled=
23075 names_next_round='intl '
23076 while test -n "$names_next_round"; do
23077 names_this_round="$names_next_round"
23078 names_next_round=
23079 for name in $names_this_round; do
23080 already_handled=
23081 for n in $names_already_handled; do
23082 if test "$n" = "$name"; then
23083 already_handled=yes
23084 break
23085 fi
23086 done
23087 if test -z "$already_handled"; then
23088 names_already_handled="$names_already_handled $name"
23089 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23090 eval value=\"\$HAVE_LIB$uppername\"
23091 if test -n "$value"; then
23092 if test "$value" = yes; then
23093 eval value=\"\$LIB$uppername\"
23094 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23095 eval value=\"\$LTLIB$uppername\"
23096 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23097 else
23098 :
23099 fi
23100 else
23101 found_dir=
23102 found_la=
23103 found_so=
23104 found_a=
23105 if test $use_additional = yes; then
23106 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23107 found_dir="$additional_libdir"
23108 found_so="$additional_libdir/lib$name.$shlibext"
23109 if test -f "$additional_libdir/lib$name.la"; then
23110 found_la="$additional_libdir/lib$name.la"
23111 fi
23112 else
23113 if test -f "$additional_libdir/lib$name.$libext"; then
23114 found_dir="$additional_libdir"
23115 found_a="$additional_libdir/lib$name.$libext"
23116 if test -f "$additional_libdir/lib$name.la"; then
23117 found_la="$additional_libdir/lib$name.la"
23118 fi
23119 fi
23120 fi
23121 fi
23122 if test "X$found_dir" = "X"; then
23123 for x in $LDFLAGS $LTLIBINTL; do
23124
23125 acl_save_prefix="$prefix"
23126 prefix="$acl_final_prefix"
23127 acl_save_exec_prefix="$exec_prefix"
23128 exec_prefix="$acl_final_exec_prefix"
23129 eval x=\"$x\"
23130 exec_prefix="$acl_save_exec_prefix"
23131 prefix="$acl_save_prefix"
23132
23133 case "$x" in
23134 -L*)
23135 dir=`echo "X$x" | sed -e 's/^X-L//'`
23136 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23137 found_dir="$dir"
23138 found_so="$dir/lib$name.$shlibext"
23139 if test -f "$dir/lib$name.la"; then
23140 found_la="$dir/lib$name.la"
23141 fi
23142 else
23143 if test -f "$dir/lib$name.$libext"; then
23144 found_dir="$dir"
23145 found_a="$dir/lib$name.$libext"
23146 if test -f "$dir/lib$name.la"; then
23147 found_la="$dir/lib$name.la"
23148 fi
23149 fi
23150 fi
23151 ;;
23152 esac
23153 if test "X$found_dir" != "X"; then
23154 break
23155 fi
23156 done
23157 fi
23158 if test "X$found_dir" != "X"; then
23159 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23160 if test "X$found_so" != "X"; then
23161 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23162 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23163 else
23164 haveit=
23165 for x in $ltrpathdirs; do
23166 if test "X$x" = "X$found_dir"; then
23167 haveit=yes
23168 break
23169 fi
23170 done
23171 if test -z "$haveit"; then
23172 ltrpathdirs="$ltrpathdirs $found_dir"
23173 fi
23174 if test "$hardcode_direct" = yes; then
23175 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23176 else
23177 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23179 haveit=
23180 for x in $rpathdirs; do
23181 if test "X$x" = "X$found_dir"; then
23182 haveit=yes
23183 break
23184 fi
23185 done
23186 if test -z "$haveit"; then
23187 rpathdirs="$rpathdirs $found_dir"
23188 fi
23189 else
23190 haveit=
23191 for x in $LDFLAGS $LIBINTL; do
23192
23193 acl_save_prefix="$prefix"
23194 prefix="$acl_final_prefix"
23195 acl_save_exec_prefix="$exec_prefix"
23196 exec_prefix="$acl_final_exec_prefix"
23197 eval x=\"$x\"
23198 exec_prefix="$acl_save_exec_prefix"
23199 prefix="$acl_save_prefix"
23200
23201 if test "X$x" = "X-L$found_dir"; then
23202 haveit=yes
23203 break
23204 fi
23205 done
23206 if test -z "$haveit"; then
23207 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23208 fi
23209 if test "$hardcode_minus_L" != no; then
23210 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23211 else
23212 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23213 fi
23214 fi
23215 fi
23216 fi
23217 else
23218 if test "X$found_a" != "X"; then
23219 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23220 else
23221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23222 fi
23223 fi
23224 additional_includedir=
23225 case "$found_dir" in
23226 */lib | */lib/)
23227 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23228 additional_includedir="$basedir/include"
23229 ;;
23230 esac
23231 if test "X$additional_includedir" != "X"; then
23232 if test "X$additional_includedir" != "X/usr/include"; then
23233 haveit=
23234 if test "X$additional_includedir" = "X/usr/local/include"; then
23235 if test -n "$GCC"; then
23236 case $host_os in
23237 linux*) haveit=yes;;
23238 esac
23239 fi
23240 fi
23241 if test -z "$haveit"; then
23242 for x in $CPPFLAGS $INCINTL; do
23243
23244 acl_save_prefix="$prefix"
23245 prefix="$acl_final_prefix"
23246 acl_save_exec_prefix="$exec_prefix"
23247 exec_prefix="$acl_final_exec_prefix"
23248 eval x=\"$x\"
23249 exec_prefix="$acl_save_exec_prefix"
23250 prefix="$acl_save_prefix"
23251
23252 if test "X$x" = "X-I$additional_includedir"; then
23253 haveit=yes
23254 break
23255 fi
23256 done
23257 if test -z "$haveit"; then
23258 if test -d "$additional_includedir"; then
23259 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23260 fi
23261 fi
23262 fi
23263 fi
23264 fi
23265 if test -n "$found_la"; then
23266 save_libdir="$libdir"
23267 case "$found_la" in
23268 */* | *\\*) . "$found_la" ;;
23269 *) . "./$found_la" ;;
23270 esac
23271 libdir="$save_libdir"
23272 for dep in $dependency_libs; do
23273 case "$dep" in
23274 -L*)
23275 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23276 if test "X$additional_libdir" != "X/usr/lib"; then
23277 haveit=
23278 if test "X$additional_libdir" = "X/usr/local/lib"; then
23279 if test -n "$GCC"; then
23280 case $host_os in
23281 linux*) haveit=yes;;
23282 esac
23283 fi
23284 fi
23285 if test -z "$haveit"; then
23286 haveit=
23287 for x in $LDFLAGS $LIBINTL; do
23288
23289 acl_save_prefix="$prefix"
23290 prefix="$acl_final_prefix"
23291 acl_save_exec_prefix="$exec_prefix"
23292 exec_prefix="$acl_final_exec_prefix"
23293 eval x=\"$x\"
23294 exec_prefix="$acl_save_exec_prefix"
23295 prefix="$acl_save_prefix"
23296
23297 if test "X$x" = "X-L$additional_libdir"; then
23298 haveit=yes
23299 break
23300 fi
23301 done
23302 if test -z "$haveit"; then
23303 if test -d "$additional_libdir"; then
23304 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23305 fi
23306 fi
23307 haveit=
23308 for x in $LDFLAGS $LTLIBINTL; do
23309
23310 acl_save_prefix="$prefix"
23311 prefix="$acl_final_prefix"
23312 acl_save_exec_prefix="$exec_prefix"
23313 exec_prefix="$acl_final_exec_prefix"
23314 eval x=\"$x\"
23315 exec_prefix="$acl_save_exec_prefix"
23316 prefix="$acl_save_prefix"
23317
23318 if test "X$x" = "X-L$additional_libdir"; then
23319 haveit=yes
23320 break
23321 fi
23322 done
23323 if test -z "$haveit"; then
23324 if test -d "$additional_libdir"; then
23325 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23326 fi
23327 fi
23328 fi
23329 fi
23330 ;;
23331 -R*)
23332 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23333 if test "$enable_rpath" != no; then
23334 haveit=
23335 for x in $rpathdirs; do
23336 if test "X$x" = "X$dir"; then
23337 haveit=yes
23338 break
23339 fi
23340 done
23341 if test -z "$haveit"; then
23342 rpathdirs="$rpathdirs $dir"
23343 fi
23344 haveit=
23345 for x in $ltrpathdirs; do
23346 if test "X$x" = "X$dir"; then
23347 haveit=yes
23348 break
23349 fi
23350 done
23351 if test -z "$haveit"; then
23352 ltrpathdirs="$ltrpathdirs $dir"
23353 fi
23354 fi
23355 ;;
23356 -l*)
23357 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23358 ;;
23359 *.la)
23360 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23361 ;;
23362 *)
23363 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23365 ;;
23366 esac
23367 done
23368 fi
23369 else
23370 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23371 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23372 fi
23373 fi
23374 fi
23375 done
23376 done
23377 if test "X$rpathdirs" != "X"; then
23378 if test -n "$hardcode_libdir_separator"; then
23379 alldirs=
23380 for found_dir in $rpathdirs; do
23381 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23382 done
23383 acl_save_libdir="$libdir"
23384 libdir="$alldirs"
23385 eval flag=\"$hardcode_libdir_flag_spec\"
23386 libdir="$acl_save_libdir"
23387 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23388 else
23389 for found_dir in $rpathdirs; do
23390 acl_save_libdir="$libdir"
23391 libdir="$found_dir"
23392 eval flag=\"$hardcode_libdir_flag_spec\"
23393 libdir="$acl_save_libdir"
23394 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23395 done
23396 fi
23397 fi
23398 if test "X$ltrpathdirs" != "X"; then
23399 for found_dir in $ltrpathdirs; do
23400 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23401 done
23402 fi
23403
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
23405 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
23406 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23409 gt_save_CPPFLAGS="$CPPFLAGS"
23410 CPPFLAGS="$CPPFLAGS $INCINTL"
23411 gt_save_LIBS="$LIBS"
23412 LIBS="$LIBS $LIBINTL"
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414 /* end confdefs.h. */
23415 #include <libintl.h>
23416 extern int _nl_msg_cat_cntr;
23417 extern
23418 #ifdef __cplusplus
23419 "C"
23420 #endif
23421 const char *_nl_expand_alias ();
23422 int
23423 main ()
23424 {
23425 bindtextdomain ("", "");
23426 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23427 ;
23428 return 0;
23429 }
23430 _ACEOF
23431 if ac_fn_c_try_link "$LINENO"; then :
23432 gt_cv_func_gnugettext2_libintl=yes
23433 else
23434 gt_cv_func_gnugettext2_libintl=no
23435 fi
23436 rm -f core conftest.err conftest.$ac_objext \
23437 conftest$ac_exeext conftest.$ac_ext
23438 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23439 LIBS="$LIBS $LIBICONV"
23440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441 /* end confdefs.h. */
23442 #include <libintl.h>
23443 extern int _nl_msg_cat_cntr;
23444 extern
23445 #ifdef __cplusplus
23446 "C"
23447 #endif
23448 const char *_nl_expand_alias ();
23449 int
23450 main ()
23451 {
23452 bindtextdomain ("", "");
23453 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23454 ;
23455 return 0;
23456 }
23457 _ACEOF
23458 if ac_fn_c_try_link "$LINENO"; then :
23459 LIBINTL="$LIBINTL $LIBICONV"
23460 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23461 gt_cv_func_gnugettext2_libintl=yes
23462
23463 fi
23464 rm -f core conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
23466 fi
23467 CPPFLAGS="$gt_save_CPPFLAGS"
23468 LIBS="$gt_save_LIBS"
23469 fi
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
23471 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
23472 fi
23473
23474 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23475 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23476 && test "$PACKAGE" != gettext-runtime \
23477 && test "$PACKAGE" != gettext-tools; }; then
23478 gt_use_preinstalled_gnugettext=yes
23479 else
23480 LIBINTL=
23481 LTLIBINTL=
23482 INCINTL=
23483 fi
23484
23485
23486 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23487 nls_cv_use_gnu_gettext=yes
23488 fi
23489 fi
23490
23491 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23492 BUILD_INCLUDED_LIBINTL=yes
23493 USE_INCLUDED_LIBINTL=yes
23494 LIBINTL="\$(top_builddir)/intl//libintl.a $LIBICONV"
23495 LTLIBINTL="\$(top_builddir)/intl//libintl.a $LTLIBICONV"
23496 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23497 fi
23498
23499 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23500 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23501 CATOBJEXT=.gmo
23502 fi
23503
23504
23505 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23506 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23507
23508 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
23509
23510 else
23511 USE_NLS=no
23512 fi
23513 fi
23514
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
23516 $as_echo_n "checking whether to use NLS... " >&6; }
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23518 $as_echo "$USE_NLS" >&6; }
23519 if test "$USE_NLS" = "yes"; then
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
23521 $as_echo_n "checking where the gettext function comes from... " >&6; }
23522 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23523 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23524 gt_source="external libintl"
23525 else
23526 gt_source="libc"
23527 fi
23528 else
23529 gt_source="included intl directory"
23530 fi
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
23532 $as_echo "$gt_source" >&6; }
23533 fi
23534
23535 if test "$USE_NLS" = "yes"; then
23536
23537 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23538 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
23540 $as_echo_n "checking how to link with libintl... " >&6; }
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
23542 $as_echo "$LIBINTL" >&6; }
23543
23544 for element in $INCINTL; do
23545 haveit=
23546 for x in $CPPFLAGS; do
23547
23548 acl_save_prefix="$prefix"
23549 prefix="$acl_final_prefix"
23550 acl_save_exec_prefix="$exec_prefix"
23551 exec_prefix="$acl_final_exec_prefix"
23552 eval x=\"$x\"
23553 exec_prefix="$acl_save_exec_prefix"
23554 prefix="$acl_save_prefix"
23555
23556 if test "X$x" = "X$element"; then
23557 haveit=yes
23558 break
23559 fi
23560 done
23561 if test -z "$haveit"; then
23562 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23563 fi
23564 done
23565
23566 fi
23567
23568
23569 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
23570
23571
23572 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
23573
23574 fi
23575
23576 POSUB=po
23577 fi
23578
23579
23580 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23581 BUILD_INCLUDED_LIBINTL=yes
23582 fi
23583
23584
23585
23586
23587
23588 nls_cv_header_intl=
23589 nls_cv_header_libgt=
23590
23591 DATADIRNAME=share
23592
23593
23594 INSTOBJEXT=.mo
23595
23596
23597 GENCAT=gencat
23598
23599
23600 if test "$USE_INCLUDED_LIBINTL" = yes; then
23601 INTLOBJS="\$(GETTOBJS)"
23602 fi
23603
23604
23605 INTL_LIBTOOL_SUFFIX_PREFIX=
23606
23607
23608
23609 INTLLIBS="$LIBINTL"
23610
23611
23612
23613
23614
23615
23616 if test "x${shared_libnavit}" = "xyes" -a "x${win32ce}" = "xyes"; then
23617 INTLLIBS="\$(top_builddir)/intl/libintl.la"
23618 LIBINTL=$INTLLIBS
23619 LTLIBINTL=$INTLLIBS
23620 fi
23621
23622
23623 if test x"$LIBINTL" != "x" ;then
23624 CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
23625 fi
23626
23627 fi
23628 if test "x$enable_nls" = "xyes"; then
23629 ENABLE_NLS_TRUE=
23630 ENABLE_NLS_FALSE='#'
23631 else
23632 ENABLE_NLS_TRUE='#'
23633 ENABLE_NLS_FALSE=
23634 fi
23635
23636 if test "x$xgettext_glade" = "xyes"; then
23637 XGETTEXT_GLADE_TRUE=
23638 XGETTEXT_GLADE_FALSE='#'
23639 else
23640 XGETTEXT_GLADE_TRUE='#'
23641 XGETTEXT_GLADE_FALSE=
23642 fi
23643
23644 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
23645 if test "x$ac_cv_header_byteswap_h" = xyes; then :
23646
23647 $as_echo "@%:@define HAVE_BYTESWAP_H 1" >>confdefs.h
23648
23649
23650 fi
23651
23652
23653
23654 PACKAGE=navit
23655 cat >>confdefs.h <<_ACEOF
23656 @%:@define PACKAGE "$PACKAGE"
23657 _ACEOF
23658
23659 cat >>confdefs.h <<_ACEOF
23660 @%:@define VERSION "$VERSION"
23661 _ACEOF
23662
23663
23664
23665
23666 ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
23667 if test "x$ac_cv_header_wordexp_h" = xyes; then :
23668 wordexp_h=yes
23669 else
23670 wordexp_h=no;NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/wordexp";WORDEXP_LIBS="-L\$(top_builddir)/navit/support/wordexp -lsupport_wordexp"
23671 fi
23672
23673
23674 if test "x$wordexp_h" = "xno"; then
23675 SUPPORT_WORDEXP_TRUE=
23676 SUPPORT_WORDEXP_FALSE='#'
23677 else
23678 SUPPORT_WORDEXP_TRUE='#'
23679 SUPPORT_WORDEXP_FALSE=
23680 fi
23681
23682
23683 support_libc=no
23684 @%:@ Check whether --enable-support_libc was given.
23685 if test "${enable_support_libc+set}" = set; then :
23686 enableval=$enable_support_libc; support_libc=$enableval
23687 fi
23688
23689 if test "x$support_libc" = "xyes"; then
23690 SUPPORT_LIBC_TRUE=
23691 SUPPORT_LIBC_FALSE='#'
23692 else
23693 SUPPORT_LIBC_TRUE='#'
23694 SUPPORT_LIBC_FALSE=
23695 fi
23696
23697 if test "x$support_libc" = "xyes"; then
23698 CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
23699 LIBC_LIBS="-L\$(top_builddir)/navit/support/libc -lsupport_libc"
23700 fi
23701
23702 ## graphics
23703 @%:@ Check whether --enable-graphics was given.
23704 if test "${enable_graphics+set}" = set; then :
23705 enableval=$enable_graphics; graphics=$enableval;graphics_reason="configure parameter"
23706 fi
23707
23708 if test "x${graphics}" = "xyes"; then
23709 GRAPHICS_TRUE=
23710 GRAPHICS_FALSE='#'
23711 else
23712 GRAPHICS_TRUE='#'
23713 GRAPHICS_FALSE=
23714 fi
23715
23716 if test "x$graphics" = "xyes"; then
23717
23718 $as_echo "@%:@define USE_GRAPHICS 1" >>confdefs.h
23719
23720 fi
23721
23722 # gd
23723
23724 # android
23725 @%:@ Check whether --enable-graphics-android was given.
23726 if test "${enable_graphics_android+set}" = set; then :
23727 enableval=$enable_graphics_android; graphics_android=$enableval;graphics_android_reason="configure parameter"
23728 fi
23729
23730 if test "x${graphics_android}" = "xyes"; then
23731 GRAPHICS_ANDROID_TRUE=
23732 GRAPHICS_ANDROID_FALSE='#'
23733 else
23734 GRAPHICS_ANDROID_TRUE='#'
23735 GRAPHICS_ANDROID_FALSE=
23736 fi
23737
23738 # gd
23739 @%:@ Check whether --enable-graphics-gd was given.
23740 if test "${enable_graphics_gd+set}" = set; then :
23741 enableval=$enable_graphics_gd; graphics_gd=$enableval;graphics_gd_reason="configure parameter"
23742 fi
23743
23744 if test "x${graphics_gd}" = "xyes" ; then
23745 if test -z "$GDLIB_CONFIG"; then
23746 # Extract the first word of "gdlib-config", so it can be a program name with args.
23747 set dummy gdlib-config; ac_word=$2
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23749 $as_echo_n "checking for $ac_word... " >&6; }
23750 if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
23751 $as_echo_n "(cached) " >&6
23752 else
23753 case $GDLIB_CONFIG in
23754 [\\/]* | ?:[\\/]*)
23755 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
23756 ;;
23757 *)
23758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23759 for as_dir in $PATH
23760 do
23761 IFS=$as_save_IFS
23762 test -z "$as_dir" && as_dir=.
23763 for ac_exec_ext in '' $ac_executable_extensions; do
23764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23765 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23767 break 2
23768 fi
23769 done
23770 done
23771 IFS=$as_save_IFS
23772
23773 ;;
23774 esac
23775 fi
23776 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
23777 if test -n "$GDLIB_CONFIG"; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
23779 $as_echo "$GDLIB_CONFIG" >&6; }
23780 else
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23782 $as_echo "no" >&6; }
23783 fi
23784
23785
23786 fi
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib with $GDLIB_CONFIG" >&5
23788 $as_echo_n "checking for gdlib with $GDLIB_CONFIG... " >&6; }
23789 if test ! -x "$GDLIB_CONFIG"; then
23790 if test "x${GDLIB_CONFIG}" = "x" ; then
23791 graphics_gd_reason="$GDLIB_CONFIG not executable"
23792 else
23793 graphics_gd_reason="gdlib-config missing"
23794 fi
23795 graphics_gd=no
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23797 $as_echo "no" >&6; }
23798 else
23799 if test "x${GD_CFLAGS}" = "x" ; then
23800 GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
23801 fi
23802 if test "x${GD_LIBS}" = "x" ; then
23803 GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
23804 fi
23805
23806
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23808 $as_echo "yes" >&6; }
23809 fi
23810 fi
23811 if test "x${graphics_gd}" = "xyes"; then
23812 GRAPHICS_GD_TRUE=
23813 GRAPHICS_GD_FALSE='#'
23814 else
23815 GRAPHICS_GD_TRUE='#'
23816 GRAPHICS_GD_FALSE=
23817 fi
23818
23819 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
23820 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
23821
23822 $as_echo "@%:@define HAVE_SHMEM /**/" >>confdefs.h
23823
23824
23825 fi
23826
23827
23828 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
23829 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
23830
23831 $as_echo "@%:@define HAVE_XPM /**/" >>confdefs.h
23832
23833
23834 fi
23835
23836
23837 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
23838 if test "x$ac_cv_header_getopt_h" = xyes; then :
23839
23840 $as_echo "@%:@define HAVE_GETOPT_H /**/" >>confdefs.h
23841
23842
23843 fi
23844
23845
23846 if test "x${graphics_gd}" = "xyes" ; then
23847 save_CPPFLAGS=$CPPFLAGS
23848 save_LIBS=$LIBS
23849 LIBS="$GD_LIBS $LIBS"
23850 CPPFLAGS="$GD_CFLAGS $CPPFLAGS"
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h. */
23853 #include <gd.h>
23854 int
23855 main ()
23856 {
23857 gdImageCreateFromPng(0);
23858 ;
23859 return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_link "$LINENO"; then :
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23864 $as_echo "yes" >&6; };
23865 $as_echo "@%:@define HAVE_GRAPHICS_GD_PNG 1" >>confdefs.h
23866
23867 else
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869 $as_echo "no" >&6; }
23870 fi
23871 rm -f core conftest.err conftest.$ac_objext \
23872 conftest$ac_exeext conftest.$ac_ext
23873 CPPFLAGS=$save_CPPFLAGS
23874 LIBS=$save_LIBS
23875 fi
23876
23877 # gtk_drawing_area
23878 @%:@ Check whether --enable-graphics-gtk-drawing-area was given.
23879 if test "${enable_graphics_gtk_drawing_area+set}" = set; then :
23880 enableval=$enable_graphics_gtk_drawing_area; graphics_gtk_drawing_area=$enableval;graphics_gtk_drawing_area_reason="configure parameter"
23881 fi
23882
23883 if test "x${graphics_gtk_drawing_area}" = "xyes"; then
23884 GRAPHICS_GTK_DRAWING_AREA_TRUE=
23885 GRAPHICS_GTK_DRAWING_AREA_FALSE='#'
23886 else
23887 GRAPHICS_GTK_DRAWING_AREA_TRUE='#'
23888 GRAPHICS_GTK_DRAWING_AREA_FALSE=
23889 fi
23890
23891 # null
23892 @%:@ Check whether --enable-graphics-null was given.
23893 if test "${enable_graphics_null+set}" = set; then :
23894 enableval=$enable_graphics_null; graphics_null=$enableval;graphics_null_reason="configure parameter"
23895 fi
23896
23897 if test "x${graphics_null}" = "xyes"; then
23898 GRAPHICS_NULL_TRUE=
23899 GRAPHICS_NULL_FALSE='#'
23900 else
23901 GRAPHICS_NULL_TRUE='#'
23902 GRAPHICS_NULL_FALSE=
23903 fi
23904
23905 # win32
23906 @%:@ Check whether --enable-graphics-win32 was given.
23907 if test "${enable_graphics_win32+set}" = set; then :
23908 enableval=$enable_graphics_win32; graphics_win32=$enableval;graphics_win32_reason="configure parameter"
23909 fi
23910
23911 if test "x${graphics_win32}" = "xyes"; then
23912 GRAPHICS_WIN32_TRUE=
23913 GRAPHICS_WIN32_FALSE='#'
23914 else
23915 GRAPHICS_WIN32_TRUE='#'
23916 GRAPHICS_WIN32_FALSE=
23917 fi
23918
23919 # qt_qpainter
23920 @%:@ Check whether --enable-graphics-qt-qpainter was given.
23921 if test "${enable_graphics_qt_qpainter+set}" = set; then :
23922 enableval=$enable_graphics_qt_qpainter; graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter"
23923 fi
23924
23925 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
23926
23927 pkg_failed=no
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
23929 $as_echo_n "checking for QT_GUI... " >&6; }
23930
23931 if test -n "$PKG_CONFIG"; then
23932 if test -n "$QT_GUI_CFLAGS"; then
23933 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
23934 else
23935 if test -n "$PKG_CONFIG" && \
23936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
23937 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
23938 ac_status=$?
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }; then
23941 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
23942 else
23943 pkg_failed=yes
23944 fi
23945 fi
23946 else
23947 pkg_failed=untried
23948 fi
23949 if test -n "$PKG_CONFIG"; then
23950 if test -n "$QT_GUI_LIBS"; then
23951 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
23952 else
23953 if test -n "$PKG_CONFIG" && \
23954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
23955 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
23956 ac_status=$?
23957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23958 test $ac_status = 0; }; then
23959 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
23960 else
23961 pkg_failed=yes
23962 fi
23963 fi
23964 else
23965 pkg_failed=untried
23966 fi
23967
23968
23969
23970 if test $pkg_failed = yes; then
23971
23972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23973 _pkg_short_errors_supported=yes
23974 else
23975 _pkg_short_errors_supported=no
23976 fi
23977 if test $_pkg_short_errors_supported = yes; then
23978 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui QtCore"`
23979 else
23980 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui QtCore"`
23981 fi
23982 # Put the nasty error message in config.log where it belongs
23983 echo "$QT_GUI_PKG_ERRORS" >&5
23984
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23986 $as_echo "no" >&6; }
23987 graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
23988 elif test $pkg_failed = untried; then
23989 graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
23990 else
23991 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
23992 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23994 $as_echo "yes" >&6; }
23995 graphics_qt_qpainter=yes
23996 fi
23997 if test "x${graphics_qt_qpainter}" = "xno"; then
23998
23999 pkg_failed=no
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
24001 $as_echo_n "checking for QT_GUI... " >&6; }
24002
24003 if test -n "$PKG_CONFIG"; then
24004 if test -n "$QT_GUI_CFLAGS"; then
24005 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
24006 else
24007 if test -n "$PKG_CONFIG" && \
24008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
24009 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
24010 ac_status=$?
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; then
24013 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null`
24014 else
24015 pkg_failed=yes
24016 fi
24017 fi
24018 else
24019 pkg_failed=untried
24020 fi
24021 if test -n "$PKG_CONFIG"; then
24022 if test -n "$QT_GUI_LIBS"; then
24023 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
24024 else
24025 if test -n "$PKG_CONFIG" && \
24026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
24027 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
24028 ac_status=$?
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; then
24031 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null`
24032 else
24033 pkg_failed=yes
24034 fi
24035 fi
24036 else
24037 pkg_failed=untried
24038 fi
24039
24040
24041
24042 if test $pkg_failed = yes; then
24043
24044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24045 _pkg_short_errors_supported=yes
24046 else
24047 _pkg_short_errors_supported=no
24048 fi
24049 if test $_pkg_short_errors_supported = yes; then
24050 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "qt-mt"`
24051 else
24052 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "qt-mt"`
24053 fi
24054 # Put the nasty error message in config.log where it belongs
24055 echo "$QT_GUI_PKG_ERRORS" >&5
24056
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058 $as_echo "no" >&6; }
24059 graphics_qt_qpainter=no
24060 elif test $pkg_failed = untried; then
24061 graphics_qt_qpainter=no
24062 else
24063 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
24064 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24066 $as_echo "yes" >&6; }
24067 graphics_qt_qpainter=yes;graphics_qt_qpainter_reason="Package qt-mt present"
24068 fi
24069 fi
24070 fi
24071 if test "x${graphics_qt_qpainter}" = "xyes" ; then
24072
24073 pkg_failed=no
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_SVG" >&5
24075 $as_echo_n "checking for QT_SVG... " >&6; }
24076
24077 if test -n "$PKG_CONFIG"; then
24078 if test -n "$QT_SVG_CFLAGS"; then
24079 pkg_cv_QT_SVG_CFLAGS="$QT_SVG_CFLAGS"
24080 else
24081 if test -n "$PKG_CONFIG" && \
24082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtSvg\""; } >&5
24083 ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
24084 ac_status=$?
24085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24086 test $ac_status = 0; }; then
24087 pkg_cv_QT_SVG_CFLAGS=`$PKG_CONFIG --cflags "QtSvg" 2>/dev/null`
24088 else
24089 pkg_failed=yes
24090 fi
24091 fi
24092 else
24093 pkg_failed=untried
24094 fi
24095 if test -n "$PKG_CONFIG"; then
24096 if test -n "$QT_SVG_LIBS"; then
24097 pkg_cv_QT_SVG_LIBS="$QT_SVG_LIBS"
24098 else
24099 if test -n "$PKG_CONFIG" && \
24100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtSvg\""; } >&5
24101 ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
24102 ac_status=$?
24103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24104 test $ac_status = 0; }; then
24105 pkg_cv_QT_SVG_LIBS=`$PKG_CONFIG --libs "QtSvg" 2>/dev/null`
24106 else
24107 pkg_failed=yes
24108 fi
24109 fi
24110 else
24111 pkg_failed=untried
24112 fi
24113
24114
24115
24116 if test $pkg_failed = yes; then
24117
24118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24119 _pkg_short_errors_supported=yes
24120 else
24121 _pkg_short_errors_supported=no
24122 fi
24123 if test $_pkg_short_errors_supported = yes; then
24124 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtSvg"`
24125 else
24126 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtSvg"`
24127 fi
24128 # Put the nasty error message in config.log where it belongs
24129 echo "$QT_SVG_PKG_ERRORS" >&5
24130
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24132 $as_echo "no" >&6; }
24133 have_qt_svg=no
24134 elif test $pkg_failed = untried; then
24135 have_qt_svg=no
24136 else
24137 QT_SVG_CFLAGS=$pkg_cv_QT_SVG_CFLAGS
24138 QT_SVG_LIBS=$pkg_cv_QT_SVG_LIBS
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24140 $as_echo "yes" >&6; }
24141 have_qt_svg=yes
24142 fi
24143 if test "x${have_qt_svg}" = "xyes"; then
24144
24145 $as_echo "@%:@define HAVE_QT_SVG /**/" >>confdefs.h
24146
24147 fi
24148 fi
24149 if test "x${graphics_qt_qpainter}" = "xyes" ; then
24150
24151 $as_echo "@%:@define USE_GRAPICS_QT_QPAINTER 1" >>confdefs.h
24152
24153 fi
24154
24155
24156
24157
24158 if test "x${graphics_qt_qpainter}" = "xyes"; then
24159 GRAPHICS_QT_QPAINTER_TRUE=
24160 GRAPHICS_QT_QPAINTER_FALSE='#'
24161 else
24162 GRAPHICS_QT_QPAINTER_TRUE='#'
24163 GRAPHICS_QT_QPAINTER_FALSE=
24164 fi
24165
24166 MOC=`$PKG_CONFIG QtGui --variable=moc_location`
24167 if test "x${MOC}" = "x"; then
24168 # Extract the first word of "moc", so it can be a program name with args.
24169 set dummy moc; ac_word=$2
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24171 $as_echo_n "checking for $ac_word... " >&6; }
24172 if ${ac_cv_prog_MOC+:} false; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 if test -n "$MOC"; then
24176 ac_cv_prog_MOC="$MOC" # Let the user override the test.
24177 else
24178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24179 for as_dir in $PATH
24180 do
24181 IFS=$as_save_IFS
24182 test -z "$as_dir" && as_dir=.
24183 for ac_exec_ext in '' $ac_executable_extensions; do
24184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24185 ac_cv_prog_MOC="moc"
24186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24187 break 2
24188 fi
24189 done
24190 done
24191 IFS=$as_save_IFS
24192
24193 fi
24194 fi
24195 MOC=$ac_cv_prog_MOC
24196 if test -n "$MOC"; then
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24198 $as_echo "$MOC" >&6; }
24199 else
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24201 $as_echo "no" >&6; }
24202 fi
24203
24204
24205 fi
24206
24207
24208
24209 ## map
24210 # binfile
24211 @%:@ Check whether --enable-map-binfile was given.
24212 if test "${enable_map_binfile+set}" = set; then :
24213 enableval=$enable_map_binfile; map_binfile=$enableval;map_binfile_reason="configure parameter"
24214 fi
24215
24216 if test "x${map_binfile}" = "xyes"; then
24217 MAP_BINFILE_TRUE=
24218 MAP_BINFILE_FALSE='#'
24219 else
24220 MAP_BINFILE_TRUE='#'
24221 MAP_BINFILE_FALSE=
24222 fi
24223
24224 # filter
24225 @%:@ Check whether --enable-map-filter was given.
24226 if test "${enable_map_filter+set}" = set; then :
24227 enableval=$enable_map_filter; map_filter=$enableval;map_filter_reason="configure parameter"
24228 fi
24229
24230 if test "x${map_filter}" = "xyes"; then
24231 MAP_FILTER_TRUE=
24232 MAP_FILTER_FALSE='#'
24233 else
24234 MAP_FILTER_TRUE='#'
24235 MAP_FILTER_FALSE=
24236 fi
24237
24238 # mg
24239 @%:@ Check whether --enable-map-mg was given.
24240 if test "${enable_map_mg+set}" = set; then :
24241 enableval=$enable_map_mg; map_mg=$enableval;map_mg_reason="configure parameter"
24242 fi
24243
24244 if test "x${map_mg}" = "xyes"; then
24245 MAP_MG_TRUE=
24246 MAP_MG_FALSE='#'
24247 else
24248 MAP_MG_TRUE='#'
24249 MAP_MG_FALSE=
24250 fi
24251
24252 # shapefile
24253 @%:@ Check whether --enable-map-shapefile was given.
24254 if test "${enable_map_shapefile+set}" = set; then :
24255 enableval=$enable_map_shapefile; map_shapefile=$enableval;map_shapefile_reason="configure parameter"
24256 fi
24257
24258 if test "x${map_shapefile}" = "xyes"; then
24259 MAP_SHAPEFILE_TRUE=
24260 MAP_SHAPEFILE_FALSE='#'
24261 else
24262 MAP_SHAPEFILE_TRUE='#'
24263 MAP_SHAPEFILE_FALSE=
24264 fi
24265
24266 # textfile
24267 @%:@ Check whether --enable-map-textfile was given.
24268 if test "${enable_map_textfile+set}" = set; then :
24269 enableval=$enable_map_textfile; map_textfile=$enableval;map_textfile_reason="configure parameter"
24270 fi
24271
24272 if test "x${map_textfile}" = "xyes"; then
24273 MAP_TEXTFILE_TRUE=
24274 MAP_TEXTFILE_FALSE='#'
24275 else
24276 MAP_TEXTFILE_TRUE='#'
24277 MAP_TEXTFILE_FALSE=
24278 fi
24279
24280 # csv
24281 @%:@ Check whether --enable-map-csv was given.
24282 if test "${enable_map_csv+set}" = set; then :
24283 enableval=$enable_map_csv; map_csv=$enableval;map_csv_reason="configure parameter"
24284 fi
24285
24286 if test "x${map_csv}" = "xyes"; then
24287 MAP_CSV_TRUE=
24288 MAP_CSV_FALSE='#'
24289 else
24290 MAP_CSV_TRUE='#'
24291 MAP_CSV_FALSE=
24292 fi
24293
24294
24295 ## osd
24296 # core
24297 @%:@ Check whether --enable-osd-core was given.
24298 if test "${enable_osd_core+set}" = set; then :
24299 enableval=$enable_osd_core; osd_core=$enableval;osd_core_reason="configure parameter"
24300 fi
24301
24302 if test "x${osd_core}" = "xyes"; then
24303 OSD_CORE_TRUE=
24304 OSD_CORE_FALSE='#'
24305 else
24306 OSD_CORE_TRUE='#'
24307 OSD_CORE_FALSE=
24308 fi
24309
24310
24311 ## gui
24312 # gtk
24313 @%:@ Check whether --enable-gui-gtk was given.
24314 if test "${enable_gui_gtk+set}" = set; then :
24315 enableval=$enable_gui_gtk; gui_gtk=$enableval
24316 fi
24317
24318 if test "x${gui_gtk}" = "xyes"; then
24319 GUI_GTK_TRUE=
24320 GUI_GTK_FALSE='#'
24321 else
24322 GUI_GTK_TRUE='#'
24323 GUI_GTK_FALSE=
24324 fi
24325
24326 # internal
24327 @%:@ Check whether --enable-gui-internal was given.
24328 if test "${enable_gui_internal+set}" = set; then :
24329 enableval=$enable_gui_internal; gui_internal=$enableval;gui_internal_reason="configure parameter"
24330 fi
24331
24332 if test "x${gui_internal}" = "xyes"; then
24333 GUI_INTERNAL_TRUE=
24334 GUI_INTERNAL_FALSE='#'
24335 else
24336 GUI_INTERNAL_TRUE='#'
24337 GUI_INTERNAL_FALSE=
24338 fi
24339
24340 # win32
24341 @%:@ Check whether --enable-gui-win32 was given.
24342 if test "${enable_gui_win32+set}" = set; then :
24343 enableval=$enable_gui_win32; gui_win32=$enableval;gui_win32_reason="configure parameter"
24344 fi
24345
24346 if test "x${gui_win32}" = "xyes"; then
24347 GUI_WIN32_TRUE=
24348 GUI_WIN32_FALSE='#'
24349 else
24350 GUI_WIN32_TRUE='#'
24351 GUI_WIN32_FALSE=
24352 fi
24353
24354 # qml
24355 @%:@ Check whether --enable-gui-qml was given.
24356 if test "${enable_gui_qml+set}" = set; then :
24357 enableval=$enable_gui_qml; gui_qml=$enableval;gui_qml_reason="configure parameter"
24358 fi
24359
24360 if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
24361
24362 pkg_failed=no
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
24364 $as_echo_n "checking for QT_GUI... " >&6; }
24365
24366 if test -n "$PKG_CONFIG"; then
24367 if test -n "$QT_GUI_CFLAGS"; then
24368 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
24369 else
24370 if test -n "$PKG_CONFIG" && \
24371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
24372 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
24373 ac_status=$?
24374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375 test $ac_status = 0; }; then
24376 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
24377 else
24378 pkg_failed=yes
24379 fi
24380 fi
24381 else
24382 pkg_failed=untried
24383 fi
24384 if test -n "$PKG_CONFIG"; then
24385 if test -n "$QT_GUI_LIBS"; then
24386 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
24387 else
24388 if test -n "$PKG_CONFIG" && \
24389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
24390 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
24391 ac_status=$?
24392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24393 test $ac_status = 0; }; then
24394 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
24395 else
24396 pkg_failed=yes
24397 fi
24398 fi
24399 else
24400 pkg_failed=untried
24401 fi
24402
24403
24404
24405 if test $pkg_failed = yes; then
24406
24407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24408 _pkg_short_errors_supported=yes
24409 else
24410 _pkg_short_errors_supported=no
24411 fi
24412 if test $_pkg_short_errors_supported = yes; then
24413 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui QtCore"`
24414 else
24415 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui QtCore"`
24416 fi
24417 # Put the nasty error message in config.log where it belongs
24418 echo "$QT_GUI_PKG_ERRORS" >&5
24419
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24422 gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
24423 elif test $pkg_failed = untried; then
24424 gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
24425 else
24426 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
24427 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24429 $as_echo "yes" >&6; }
24430 :
24431 fi
24432 fi
24433 if test "x${gui_qml}" = "xyes" -a "x${QT_XML_CFLAGS}" = "x" -a "x${QT_XML_LIBS}" = "x"; then
24434
24435 pkg_failed=no
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_XML" >&5
24437 $as_echo_n "checking for QT_XML... " >&6; }
24438
24439 if test -n "$PKG_CONFIG"; then
24440 if test -n "$QT_XML_CFLAGS"; then
24441 pkg_cv_QT_XML_CFLAGS="$QT_XML_CFLAGS"
24442 else
24443 if test -n "$PKG_CONFIG" && \
24444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtXml\""; } >&5
24445 ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; then
24449 pkg_cv_QT_XML_CFLAGS=`$PKG_CONFIG --cflags "QtXml" 2>/dev/null`
24450 else
24451 pkg_failed=yes
24452 fi
24453 fi
24454 else
24455 pkg_failed=untried
24456 fi
24457 if test -n "$PKG_CONFIG"; then
24458 if test -n "$QT_XML_LIBS"; then
24459 pkg_cv_QT_XML_LIBS="$QT_XML_LIBS"
24460 else
24461 if test -n "$PKG_CONFIG" && \
24462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtXml\""; } >&5
24463 ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
24464 ac_status=$?
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; then
24467 pkg_cv_QT_XML_LIBS=`$PKG_CONFIG --libs "QtXml" 2>/dev/null`
24468 else
24469 pkg_failed=yes
24470 fi
24471 fi
24472 else
24473 pkg_failed=untried
24474 fi
24475
24476
24477
24478 if test $pkg_failed = yes; then
24479
24480 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24481 _pkg_short_errors_supported=yes
24482 else
24483 _pkg_short_errors_supported=no
24484 fi
24485 if test $_pkg_short_errors_supported = yes; then
24486 QT_XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtXml"`
24487 else
24488 QT_XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtXml"`
24489 fi
24490 # Put the nasty error message in config.log where it belongs
24491 echo "$QT_XML_PKG_ERRORS" >&5
24492
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 $as_echo "no" >&6; }
24495 gui_qml=no;gui_qml_reason="Package QtXml is missing"
24496 elif test $pkg_failed = untried; then
24497 gui_qml=no;gui_qml_reason="Package QtXml is missing"
24498 else
24499 QT_XML_CFLAGS=$pkg_cv_QT_XML_CFLAGS
24500 QT_XML_LIBS=$pkg_cv_QT_XML_LIBS
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24502 $as_echo "yes" >&6; }
24503 :
24504 fi
24505 fi
24506 if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
24507
24508 pkg_failed=no
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_DECLARATIVE" >&5
24510 $as_echo_n "checking for QT_DECLARATIVE... " >&6; }
24511
24512 if test -n "$PKG_CONFIG"; then
24513 if test -n "$QT_DECLARATIVE_CFLAGS"; then
24514 pkg_cv_QT_DECLARATIVE_CFLAGS="$QT_DECLARATIVE_CFLAGS"
24515 else
24516 if test -n "$PKG_CONFIG" && \
24517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \""; } >&5
24518 ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
24519 ac_status=$?
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; then
24522 pkg_cv_QT_DECLARATIVE_CFLAGS=`$PKG_CONFIG --cflags "QtDeclarative >= 4.6.0 " 2>/dev/null`
24523 else
24524 pkg_failed=yes
24525 fi
24526 fi
24527 else
24528 pkg_failed=untried
24529 fi
24530 if test -n "$PKG_CONFIG"; then
24531 if test -n "$QT_DECLARATIVE_LIBS"; then
24532 pkg_cv_QT_DECLARATIVE_LIBS="$QT_DECLARATIVE_LIBS"
24533 else
24534 if test -n "$PKG_CONFIG" && \
24535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \""; } >&5
24536 ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; then
24540 pkg_cv_QT_DECLARATIVE_LIBS=`$PKG_CONFIG --libs "QtDeclarative >= 4.6.0 " 2>/dev/null`
24541 else
24542 pkg_failed=yes
24543 fi
24544 fi
24545 else
24546 pkg_failed=untried
24547 fi
24548
24549
24550
24551 if test $pkg_failed = yes; then
24552
24553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24554 _pkg_short_errors_supported=yes
24555 else
24556 _pkg_short_errors_supported=no
24557 fi
24558 if test $_pkg_short_errors_supported = yes; then
24559 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtDeclarative >= 4.6.0 "`
24560 else
24561 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtDeclarative >= 4.6.0 "`
24562 fi
24563 # Put the nasty error message in config.log where it belongs
24564 echo "$QT_DECLARATIVE_PKG_ERRORS" >&5
24565
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24568 gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
24569 elif test $pkg_failed = untried; then
24570 gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
24571 else
24572 QT_DECLARATIVE_CFLAGS=$pkg_cv_QT_DECLARATIVE_CFLAGS
24573 QT_DECLARATIVE_LIBS=$pkg_cv_QT_DECLARATIVE_LIBS
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24575 $as_echo "yes" >&6; }
24576 :
24577 fi
24578 fi
24579 if test "x${gui_qml}" = "xyes" ; then
24580
24581 $as_echo "@%:@define USE_GUI_QML 1" >>confdefs.h
24582
24583 fi
24584
24585
24586
24587
24588
24589
24590 if test "x${gui_qml}" = "xyes"; then
24591 GUI_QML_TRUE=
24592 GUI_QML_FALSE='#'
24593 else
24594 GUI_QML_TRUE='#'
24595 GUI_QML_FALSE=
24596 fi
24597
24598
24599 ## plugins
24600 # pedestrian
24601 @%:@ Check whether --enable-plugin-pedestrian was given.
24602 if test "${enable_plugin_pedestrian+set}" = set; then :
24603 enableval=$enable_plugin_pedestrian; plugin_pedestrian=$enableval;plugin_pedestrian_reason="configure parameter"
24604 fi
24605
24606 if test "x${plugin_pedestrian}" = "xyes"; then
24607 PLUGIN_PEDESTRIAN_TRUE=
24608 PLUGIN_PEDESTRIAN_FALSE='#'
24609 else
24610 PLUGIN_PEDESTRIAN_TRUE='#'
24611 PLUGIN_PEDESTRIAN_FALSE=
24612 fi
24613
24614
24615 ## routing
24616 @%:@ Check whether --enable-routing was given.
24617 if test "${enable_routing+set}" = set; then :
24618 enableval=$enable_routing; routing=$enableval;routing_reason="configure parameter"
24619 fi
24620
24621 if test "x${routing}" = "xyes"; then
24622 ROUTING_TRUE=
24623 ROUTING_FALSE='#'
24624 else
24625 ROUTING_TRUE='#'
24626 ROUTING_FALSE=
24627 fi
24628
24629 if test "x$routing" = "xyes"; then
24630
24631 $as_echo "@%:@define USE_ROUTING 1" >>confdefs.h
24632
24633 fi
24634
24635 ## speech
24636 # android
24637 @%:@ Check whether --enable-speech-android was given.
24638 if test "${enable_speech_android+set}" = set; then :
24639 enableval=$enable_speech_android; speech_android=$enableval;speech_android_reason="configure parameter"
24640 fi
24641
24642 if test "x${speech_android}" = "xyes"; then
24643 SPEECH_ANDROID_TRUE=
24644 SPEECH_ANDROID_FALSE='#'
24645 else
24646 SPEECH_ANDROID_TRUE='#'
24647 SPEECH_ANDROID_FALSE=
24648 fi
24649
24650 # cmdline
24651 @%:@ Check whether --enable-speech-cmdline was given.
24652 if test "${enable_speech_cmdline+set}" = set; then :
24653 enableval=$enable_speech_cmdline; speech_cmdline=$enableval;speech_cmdline_reason="configure parameter"
24654 fi
24655
24656 if test "x${speech_cmdline}" = "xyes"; then
24657 SPEECH_CMDLINE_TRUE=
24658 SPEECH_CMDLINE_FALSE='#'
24659 else
24660 SPEECH_CMDLINE_TRUE='#'
24661 SPEECH_CMDLINE_FALSE=
24662 fi
24663
24664 # espeak
24665 @%:@ Check whether --enable-speech-espeak was given.
24666 if test "${enable_speech_espeak+set}" = set; then :
24667 enableval=$enable_speech_espeak; speech_espeak=$enableval;speech_espeak_reason="configure parameter"
24668 fi
24669
24670 if test "x${speech_espeak}" = "xyes"; then
24671 SPEECH_ESPEAK_TRUE=
24672 SPEECH_ESPEAK_FALSE='#'
24673 else
24674 SPEECH_ESPEAK_TRUE='#'
24675 SPEECH_ESPEAK_FALSE=
24676 fi
24677
24678 # speech-dispatcher
24679 @%:@ Check whether --enable-speech-speech-dispatcher was given.
24680 if test "${enable_speech_speech_dispatcher+set}" = set; then :
24681 enableval=$enable_speech_speech_dispatcher; speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter"
24682 fi
24683
24684 if test "x$speech_speech_dispatcher" = "xyes"; then
24685 ac_fn_c_check_header_mongrel "$LINENO" "libspeechd.h" "ac_cv_header_libspeechd_h" "$ac_includes_default"
24686 if test "x$ac_cv_header_libspeechd_h" = xyes; then :
24687
24688 $as_echo "@%:@define HAVE_LIBSPEECHD /**/" >>confdefs.h
24689 SPEECHD_LIBS="-lspeechd"
24690 else
24691 speech_speech_dispatcher=no; speech_speech_dispatcher_reason="libspeechd.h missing"
24692 fi
24693
24694
24695 fi
24696
24697
24698 if test "x${speech_speech_dispatcher}" = "xyes"; then
24699 SPEECH_SPEECH_DISPATCHER_TRUE=
24700 SPEECH_SPEECH_DISPATCHER_FALSE='#'
24701 else
24702 SPEECH_SPEECH_DISPATCHER_TRUE='#'
24703 SPEECH_SPEECH_DISPATCHER_FALSE=
24704 fi
24705
24706 if test "x${support_espeak}" = "xyes"; then
24707 SUPPORT_ESPEAK_TRUE=
24708 SUPPORT_ESPEAK_FALSE='#'
24709 else
24710 SUPPORT_ESPEAK_TRUE='#'
24711 SUPPORT_ESPEAK_FALSE=
24712 fi
24713
24714
24715 ## vehicle
24716 # android
24717 @%:@ Check whether --enable-vehicle-android was given.
24718 if test "${enable_vehicle_android+set}" = set; then :
24719 enableval=$enable_vehicle_android; vehicle_android=$enableval;vehicle_android_reason="configure parameter"
24720 fi
24721
24722 if test "x${vehicle_android}" = "xyes"; then
24723 VEHICLE_ANDROID_TRUE=
24724 VEHICLE_ANDROID_FALSE='#'
24725 else
24726 VEHICLE_ANDROID_TRUE='#'
24727 VEHICLE_ANDROID_FALSE=
24728 fi
24729
24730 # demo
24731 @%:@ Check whether --enable-vehicle-demo was given.
24732 if test "${enable_vehicle_demo+set}" = set; then :
24733 enableval=$enable_vehicle_demo; vehicle_demo=$enableval;vehicle_demo_reason="configure parameter"
24734 fi
24735
24736 if test "x${vehicle_demo}" = "xyes"; then
24737 VEHICLE_DEMO_TRUE=
24738 VEHICLE_DEMO_FALSE='#'
24739 else
24740 VEHICLE_DEMO_TRUE='#'
24741 VEHICLE_DEMO_FALSE=
24742 fi
24743
24744 # file
24745 @%:@ Check whether --enable-vehicle-file was given.
24746 if test "${enable_vehicle_file+set}" = set; then :
24747 enableval=$enable_vehicle_file; vehicle_file=$enableval;vehicle_file_reason="configure parameter"
24748 fi
24749
24750 if test "x${vehicle_file}" = "xyes"; then
24751 VEHICLE_FILE_TRUE=
24752 VEHICLE_FILE_FALSE='#'
24753 else
24754 VEHICLE_FILE_TRUE='#'
24755 VEHICLE_FILE_FALSE=
24756 fi
24757
24758 # gpsd
24759 @%:@ Check whether --enable-vehicle-gpsd was given.
24760 if test "${enable_vehicle_gpsd+set}" = set; then :
24761 enableval=$enable_vehicle_gpsd; vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter"
24762 fi
24763
24764 if test "x${vehicle_gpsd}" = xyes
24765 then
24766
24767 pkg_failed=no
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD" >&5
24769 $as_echo_n "checking for GPSD... " >&6; }
24770
24771 if test -n "$PKG_CONFIG"; then
24772 if test -n "$GPSD_CFLAGS"; then
24773 pkg_cv_GPSD_CFLAGS="$GPSD_CFLAGS"
24774 else
24775 if test -n "$PKG_CONFIG" && \
24776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps\""; } >&5
24777 ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
24778 ac_status=$?
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; then
24781 pkg_cv_GPSD_CFLAGS=`$PKG_CONFIG --cflags "libgps" 2>/dev/null`
24782 else
24783 pkg_failed=yes
24784 fi
24785 fi
24786 else
24787 pkg_failed=untried
24788 fi
24789 if test -n "$PKG_CONFIG"; then
24790 if test -n "$GPSD_LIBS"; then
24791 pkg_cv_GPSD_LIBS="$GPSD_LIBS"
24792 else
24793 if test -n "$PKG_CONFIG" && \
24794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps\""; } >&5
24795 ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
24796 ac_status=$?
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; then
24799 pkg_cv_GPSD_LIBS=`$PKG_CONFIG --libs "libgps" 2>/dev/null`
24800 else
24801 pkg_failed=yes
24802 fi
24803 fi
24804 else
24805 pkg_failed=untried
24806 fi
24807
24808
24809
24810 if test $pkg_failed = yes; then
24811
24812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24813 _pkg_short_errors_supported=yes
24814 else
24815 _pkg_short_errors_supported=no
24816 fi
24817 if test $_pkg_short_errors_supported = yes; then
24818 GPSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgps"`
24819 else
24820 GPSD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgps"`
24821 fi
24822 # Put the nasty error message in config.log where it belongs
24823 echo "$GPSD_PKG_ERRORS" >&5
24824
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24826 $as_echo "no" >&6; }
24827 have_libgps="no"
24828 elif test $pkg_failed = untried; then
24829 have_libgps="no"
24830 else
24831 GPSD_CFLAGS=$pkg_cv_GPSD_CFLAGS
24832 GPSD_LIBS=$pkg_cv_GPSD_LIBS
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24834 $as_echo "yes" >&6; }
24835 have_libgps="yes"
24836 fi
24837 if test "x$have_libgps" = "xyes"; then
24838
24839 $as_echo "@%:@define HAVE_LIBGPS /**/" >>confdefs.h
24840
24841
24842 pkg_failed=no
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGPS19" >&5
24844 $as_echo_n "checking for LIBGPS19... " >&6; }
24845
24846 if test -n "$PKG_CONFIG"; then
24847 if test -n "$LIBGPS19_CFLAGS"; then
24848 pkg_cv_LIBGPS19_CFLAGS="$LIBGPS19_CFLAGS"
24849 else
24850 if test -n "$PKG_CONFIG" && \
24851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\""; } >&5
24852 ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
24853 ac_status=$?
24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855 test $ac_status = 0; }; then
24856 pkg_cv_LIBGPS19_CFLAGS=`$PKG_CONFIG --cflags "libgps >= 2.90" 2>/dev/null`
24857 else
24858 pkg_failed=yes
24859 fi
24860 fi
24861 else
24862 pkg_failed=untried
24863 fi
24864 if test -n "$PKG_CONFIG"; then
24865 if test -n "$LIBGPS19_LIBS"; then
24866 pkg_cv_LIBGPS19_LIBS="$LIBGPS19_LIBS"
24867 else
24868 if test -n "$PKG_CONFIG" && \
24869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\""; } >&5
24870 ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; then
24874 pkg_cv_LIBGPS19_LIBS=`$PKG_CONFIG --libs "libgps >= 2.90" 2>/dev/null`
24875 else
24876 pkg_failed=yes
24877 fi
24878 fi
24879 else
24880 pkg_failed=untried
24881 fi
24882
24883
24884
24885 if test $pkg_failed = yes; then
24886
24887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24888 _pkg_short_errors_supported=yes
24889 else
24890 _pkg_short_errors_supported=no
24891 fi
24892 if test $_pkg_short_errors_supported = yes; then
24893 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgps >= 2.90"`
24894 else
24895 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgps >= 2.90"`
24896 fi
24897 # Put the nasty error message in config.log where it belongs
24898 echo "$LIBGPS19_PKG_ERRORS" >&5
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24901 $as_echo "no" >&6; }
24902 have_libgps19="no"
24903 elif test $pkg_failed = untried; then
24904 have_libgps19="no"
24905 else
24906 LIBGPS19_CFLAGS=$pkg_cv_LIBGPS19_CFLAGS
24907 LIBGPS19_LIBS=$pkg_cv_LIBGPS19_LIBS
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24909 $as_echo "yes" >&6; }
24910 have_libgps19="yes"
24911 fi
24912 if test "x$have_libgps19" = "xyes"; then
24913
24914 $as_echo "@%:@define HAVE_LIBGPS19 /**/" >>confdefs.h
24915
24916 fi
24917 else
24918 ac_fn_c_check_header_mongrel "$LINENO" "gps.h" "ac_cv_header_gps_h" "$ac_includes_default"
24919 if test "x$ac_cv_header_gps_h" = xyes; then :
24920
24921 $as_echo "@%:@define HAVE_LIBGPS /**/" >>confdefs.h
24922 GPSD_LIBS="-lgps"
24923 else
24924 vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h and no gpsd pkgconfig"
24925 fi
24926
24927
24928 fi
24929 fi
24930
24931
24932 if test "x${vehicle_gpsd}" = "xyes"; then
24933 VEHICLE_GPSD_TRUE=
24934 VEHICLE_GPSD_FALSE='#'
24935 else
24936 VEHICLE_GPSD_TRUE='#'
24937 VEHICLE_GPSD_FALSE=
24938 fi
24939
24940 # gypsy
24941 @%:@ Check whether --enable-vehicle-gypsy was given.
24942 if test "${enable_vehicle_gypsy+set}" = set; then :
24943 enableval=$enable_vehicle_gypsy; vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter"
24944 fi
24945
24946 if test "x${vehicle_gypsy}" = "xyes"
24947 then
24948
24949 pkg_failed=no
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GYPSY" >&5
24951 $as_echo_n "checking for GYPSY... " >&6; }
24952
24953 if test -n "$PKG_CONFIG"; then
24954 if test -n "$GYPSY_CFLAGS"; then
24955 pkg_cv_GYPSY_CFLAGS="$GYPSY_CFLAGS"
24956 else
24957 if test -n "$PKG_CONFIG" && \
24958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gypsy\""; } >&5
24959 ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
24960 ac_status=$?
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; then
24963 pkg_cv_GYPSY_CFLAGS=`$PKG_CONFIG --cflags "gypsy" 2>/dev/null`
24964 else
24965 pkg_failed=yes
24966 fi
24967 fi
24968 else
24969 pkg_failed=untried
24970 fi
24971 if test -n "$PKG_CONFIG"; then
24972 if test -n "$GYPSY_LIBS"; then
24973 pkg_cv_GYPSY_LIBS="$GYPSY_LIBS"
24974 else
24975 if test -n "$PKG_CONFIG" && \
24976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gypsy\""; } >&5
24977 ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
24978 ac_status=$?
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; then
24981 pkg_cv_GYPSY_LIBS=`$PKG_CONFIG --libs "gypsy" 2>/dev/null`
24982 else
24983 pkg_failed=yes
24984 fi
24985 fi
24986 else
24987 pkg_failed=untried
24988 fi
24989
24990
24991
24992 if test $pkg_failed = yes; then
24993
24994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24995 _pkg_short_errors_supported=yes
24996 else
24997 _pkg_short_errors_supported=no
24998 fi
24999 if test $_pkg_short_errors_supported = yes; then
25000 GYPSY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gypsy"`
25001 else
25002 GYPSY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gypsy"`
25003 fi
25004 # Put the nasty error message in config.log where it belongs
25005 echo "$GYPSY_PKG_ERRORS" >&5
25006
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25008 $as_echo "no" >&6; }
25009 vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
25010 elif test $pkg_failed = untried; then
25011 vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
25012 else
25013 GYPSY_CFLAGS=$pkg_cv_GYPSY_CFLAGS
25014 GYPSY_LIBS=$pkg_cv_GYPSY_LIBS
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25016 $as_echo "yes" >&6; }
25017 :
25018 fi
25019 fi
25020
25021
25022 if test "x${vehicle_gypsy}" = "xyes"; then
25023 VEHICLE_GYPSY_TRUE=
25024 VEHICLE_GYPSY_FALSE='#'
25025 else
25026 VEHICLE_GYPSY_TRUE='#'
25027 VEHICLE_GYPSY_FALSE=
25028 fi
25029
25030 # maemo
25031 @%:@ Check whether --enable-vehicle-maemo was given.
25032 if test "${enable_vehicle_maemo+set}" = set; then :
25033 enableval=$enable_vehicle_maemo; vehicle_maemo=$enableval;vehicle_maemo_reason="configure parameter"
25034 fi
25035
25036 if test "x${vehicle_maemo}" = "xyes" ; then
25037
25038 pkg_failed=no
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOCATION" >&5
25040 $as_echo_n "checking for LIBLOCATION... " >&6; }
25041
25042 if test -n "$PKG_CONFIG"; then
25043 if test -n "$LIBLOCATION_CFLAGS"; then
25044 pkg_cv_LIBLOCATION_CFLAGS="$LIBLOCATION_CFLAGS"
25045 else
25046 if test -n "$PKG_CONFIG" && \
25047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblocation\""; } >&5
25048 ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
25049 ac_status=$?
25050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25051 test $ac_status = 0; }; then
25052 pkg_cv_LIBLOCATION_CFLAGS=`$PKG_CONFIG --cflags "liblocation" 2>/dev/null`
25053 else
25054 pkg_failed=yes
25055 fi
25056 fi
25057 else
25058 pkg_failed=untried
25059 fi
25060 if test -n "$PKG_CONFIG"; then
25061 if test -n "$LIBLOCATION_LIBS"; then
25062 pkg_cv_LIBLOCATION_LIBS="$LIBLOCATION_LIBS"
25063 else
25064 if test -n "$PKG_CONFIG" && \
25065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblocation\""; } >&5
25066 ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
25067 ac_status=$?
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; then
25070 pkg_cv_LIBLOCATION_LIBS=`$PKG_CONFIG --libs "liblocation" 2>/dev/null`
25071 else
25072 pkg_failed=yes
25073 fi
25074 fi
25075 else
25076 pkg_failed=untried
25077 fi
25078
25079
25080
25081 if test $pkg_failed = yes; then
25082
25083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25084 _pkg_short_errors_supported=yes
25085 else
25086 _pkg_short_errors_supported=no
25087 fi
25088 if test $_pkg_short_errors_supported = yes; then
25089 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liblocation"`
25090 else
25091 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liblocation"`
25092 fi
25093 # Put the nasty error message in config.log where it belongs
25094 echo "$LIBLOCATION_PKG_ERRORS" >&5
25095
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25097 $as_echo "no" >&6; }
25098
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100 $as_echo "no" >&6; }
25101 vehicle_maemo=no
25102 vehicle_maemo_reason="no maemo location library found"
25103
25104 elif test $pkg_failed = untried; then
25105
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25107 $as_echo "no" >&6; }
25108 vehicle_maemo=no
25109 vehicle_maemo_reason="no maemo location library found"
25110
25111 else
25112 LIBLOCATION_CFLAGS=$pkg_cv_LIBLOCATION_CFLAGS
25113 LIBLOCATION_LIBS=$pkg_cv_LIBLOCATION_LIBS
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25115 $as_echo "yes" >&6; }
25116
25117
25118
25119
25120 fi
25121 fi
25122 if test "x${vehicle_maemo}" = "xyes"; then
25123 VEHICLE_MAEMO_TRUE=
25124 VEHICLE_MAEMO_FALSE='#'
25125 else
25126 VEHICLE_MAEMO_TRUE='#'
25127 VEHICLE_MAEMO_FALSE=
25128 fi
25129
25130 # null
25131 @%:@ Check whether --enable-vehicle-null was given.
25132 if test "${enable_vehicle_null+set}" = set; then :
25133 enableval=$enable_vehicle_null; vehicle_null=$enableval;vehicle_null_reason="configure parameter"
25134 fi
25135
25136 if test "x${vehicle_null}" = "xyes"; then
25137 VEHICLE_NULL_TRUE=
25138 VEHICLE_NULL_FALSE='#'
25139 else
25140 VEHICLE_NULL_TRUE='#'
25141 VEHICLE_NULL_FALSE=
25142 fi
25143
25144 # wince
25145 @%:@ Check whether --enable-vehicle-wince was given.
25146 if test "${enable_vehicle_wince+set}" = set; then :
25147 enableval=$enable_vehicle_wince; vehicle_wince=$enableval;vehicle_wince_reason="configure parameter"
25148 fi
25149
25150 if test "x${vehicle_wince}" = "xyes"; then
25151 VEHICLE_WINCE_TRUE=
25152 VEHICLE_WINCE_FALSE='#'
25153 else
25154 VEHICLE_WINCE_TRUE='#'
25155 VEHICLE_WINCE_FALSE=
25156 fi
25157
25158 # iphone
25159 @%:@ Check whether --enable-vehicle-iphone was given.
25160 if test "${enable_vehicle_iphone+set}" = set; then :
25161 enableval=$enable_vehicle_iphone; vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter"
25162 fi
25163
25164 if test "x${vehicle_iphone}" = "xyes"; then
25165 VEHICLE_IPHONE_TRUE=
25166 VEHICLE_IPHONE_FALSE='#'
25167 else
25168 VEHICLE_IPHONE_TRUE='#'
25169 VEHICLE_IPHONE_FALSE=
25170 fi
25171
25172 if test "x${vehicle_iphone}" = "xyes"
25173 then
25174 IPHONE_LIBS=-Wl,-framework,CoreLocation
25175 fi
25176
25177
25178 # webos
25179 @%:@ Check whether --enable-vehicle-webos was given.
25180 if test "${enable_vehicle_webos+set}" = set; then :
25181 enableval=$enable_vehicle_webos; vehicle_webos=$enableval;vehicle_webos_reason="configure parameter"
25182 fi
25183
25184 if test "x${vehicle_webos}" = "xyes"; then
25185 VEHICLE_WEBOS_TRUE=
25186 VEHICLE_WEBOS_FALSE='#'
25187 else
25188 VEHICLE_WEBOS_TRUE='#'
25189 VEHICLE_WEBOS_FALSE=
25190 fi
25191
25192 if test "x${vehicle_webos}" = "xyes"
25193 then
25194
25195 $as_echo "@%:@define USE_WEBOS /**/" >>confdefs.h
25196
25197 LIBPDL_CFLAGS="$SDL_CFLAGS -I/usr/local/include"
25198 LIBPDL_LIBS="-L/usr/local/lib -lpdl"
25199
25200
25201 fi
25202 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
25203 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
25204
25205
25206
25207
25208
25209
25210 ac_config_files="$ac_config_files Makefile navit/Makefile navit/autoload/Makefile navit/autoload/osso/Makefile navit/binding/Makefile navit/binding/python/Makefile navit/binding/dbus/Makefile navit/map/Makefile navit/map/mg/Makefile navit/map/textfile/Makefile navit/map/csv/Makefile navit/map/shapefile/Makefile navit/map/filter/Makefile navit/map/binfile/Makefile navit/map/garmin/Makefile navit/maptool/Makefile navit/maptool/p2t/Makefile navit/maptool/p2t/sweep/Makefile navit/maptool/p2t/common/Makefile navit/maptool/libcfu-0.03-zanavi/Makefile navit/maptool/libcfu-0.03-zanavi/src/Makefile navit/maptool/refine/Makefile navit/fib-1.1/Makefile navit/font/Makefile navit/font/freetype/Makefile navit/fonts/Makefile navit/graphics/Makefile navit/graphics/android/Makefile navit/graphics/gd/Makefile navit/graphics/gtk_drawing_area/Makefile navit/graphics/opengl/Makefile navit/graphics/null/Makefile navit/graphics/sdl/Makefile navit/graphics/qt_qpainter/Makefile navit/graphics/win32/Makefile navit/gui/Makefile navit/gui/gtk/Makefile navit/gui/internal/Makefile navit/gui/win32/Makefile navit/gui/qml/Makefile navit/gui/qml/skins/Makefile navit/gui/qml/skins/navit/Makefile navit/osd/Makefile navit/osd/core/Makefile navit/plugin/Makefile navit/plugin/pedestrian/Makefile navit/speech/Makefile navit/speech/android/Makefile navit/speech/cmdline/Makefile navit/speech/dbus/Makefile navit/speech/espeak/Makefile navit/speech/speech_dispatcher/Makefile navit/support/Makefile navit/support/espeak/Makefile navit/support/ezxml/Makefile navit/support/glib/Makefile navit/support/libc/Makefile navit/support/libpng/Makefile navit/support/win32/Makefile navit/support/wordexp/Makefile navit/support/zlib/Makefile navit/vehicle/Makefile navit/vehicle/android/Makefile navit/vehicle/file/Makefile navit/vehicle/gpsd/Makefile navit/vehicle/gpsd_dbus/Makefile navit/vehicle/gypsy/Makefile navit/vehicle/maemo/Makefile navit/vehicle/null/Makefile navit/vehicle/demo/Makefile navit/vehicle/wince/Makefile navit/vehicle/iphone/Makefile navit/vehicle/webos/Makefile navit/xpm/Makefile navit/maps/Makefile intl/Makefile po/Makefile man/Makefile"
25211
25212 #src/data/garmin_img/Makefile
25213
25214 cat >confcache <<\_ACEOF
25215 # This file is a shell script that caches the results of configure
25216 # tests run on this system so they can be shared between configure
25217 # scripts and configure runs, see configure's option --config-cache.
25218 # It is not useful on other systems. If it contains results you don't
25219 # want to keep, you may remove or edit it.
25220 #
25221 # config.status only pays attention to the cache file if you give it
25222 # the --recheck option to rerun configure.
25223 #
25224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25226 # following values.
25227
25228 _ACEOF
25229
25230 # The following way of writing the cache mishandles newlines in values,
25231 # but we know of no workaround that is simple, portable, and efficient.
25232 # So, we kill variables containing newlines.
25233 # Ultrix sh set writes to stderr and can't be redirected directly,
25234 # and sets the high bit in the cache file unless we assign to the vars.
25235 (
25236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25237 eval ac_val=\$$ac_var
25238 case $ac_val in #(
25239 *${as_nl}*)
25240 case $ac_var in #(
25241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25243 esac
25244 case $ac_var in #(
25245 _ | IFS | as_nl) ;; #(
25246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25247 *) { eval $ac_var=; unset $ac_var;} ;;
25248 esac ;;
25249 esac
25250 done
25251
25252 (set) 2>&1 |
25253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25254 *${as_nl}ac_space=\ *)
25255 # `set' does not quote correctly, so add quotes: double-quote
25256 # substitution turns \\\\ into \\, and sed turns \\ into \.
25257 sed -n \
25258 "s/'/'\\\\''/g;
25259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25260 ;; #(
25261 *)
25262 # `set' quotes correctly as required by POSIX, so do not add quotes.
25263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25264 ;;
25265 esac |
25266 sort
25267 ) |
25268 sed '
25269 /^ac_cv_env_/b end
25270 t clear
25271 :clear
25272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25273 t end
25274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25275 :end' >>confcache
25276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25277 if test -w "$cache_file"; then
25278 if test "x$cache_file" != "x/dev/null"; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25280 $as_echo "$as_me: updating cache $cache_file" >&6;}
25281 if test ! -f "$cache_file" || test -h "$cache_file"; then
25282 cat confcache >"$cache_file"
25283 else
25284 case $cache_file in #(
25285 */* | ?:*)
25286 mv -f confcache "$cache_file"$$ &&
25287 mv -f "$cache_file"$$ "$cache_file" ;; #(
25288 *)
25289 mv -f confcache "$cache_file" ;;
25290 esac
25291 fi
25292 fi
25293 else
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25296 fi
25297 fi
25298 rm -f confcache
25299
25300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25301 # Let make expand exec_prefix.
25302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25303
25304 DEFS=-DHAVE_CONFIG_H
25305
25306 ac_libobjs=
25307 ac_ltlibobjs=
25308 U=
25309 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
25310 # 1. Remove the extension, and $U if already installed.
25311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25314 # will be set to the directory where LIBOBJS objects are built.
25315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25317 done
25318 LIB@&t@OBJS=$ac_libobjs
25319
25320 LTLIBOBJS=$ac_ltlibobjs
25321
25322
25323 if test -n "$EXEEXT"; then
25324 am__EXEEXT_TRUE=
25325 am__EXEEXT_FALSE='#'
25326 else
25327 am__EXEEXT_TRUE='#'
25328 am__EXEEXT_FALSE=
25329 fi
25330
25331 if test -z "${SOURCE_MODE_SVN_TRUE}" && test -z "${SOURCE_MODE_SVN_FALSE}"; then
25332 as_fn_error $? "conditional \"SOURCE_MODE_SVN\" was never defined.
25333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25334 fi
25335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25338 fi
25339 if test -z "${SUPPORT_WIN32_TRUE}" && test -z "${SUPPORT_WIN32_FALSE}"; then
25340 as_fn_error $? "conditional \"SUPPORT_WIN32\" was never defined.
25341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25342 fi
25343 if test -z "${SUPPORT_WIN32CE_TRUE}" && test -z "${SUPPORT_WIN32CE_FALSE}"; then
25344 as_fn_error $? "conditional \"SUPPORT_WIN32CE\" was never defined.
25345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25346 fi
25347 if test -z "${SUPPORT_ANDROID_TRUE}" && test -z "${SUPPORT_ANDROID_FALSE}"; then
25348 as_fn_error $? "conditional \"SUPPORT_ANDROID\" was never defined.
25349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25350 fi
25351 if test -z "${SUPPORT_LIBPNG_TRUE}" && test -z "${SUPPORT_LIBPNG_FALSE}"; then
25352 as_fn_error $? "conditional \"SUPPORT_LIBPNG\" was never defined.
25353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25354 fi
25355 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25356 as_fn_error $? "conditional \"AMDEP\" was never defined.
25357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25358 fi
25359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25360 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25362 fi
25363 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25364 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25366 fi
25367 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25368 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25370 fi
25371 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25372 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25374 fi
25375 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25376 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25378 fi
25379 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
25380 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
25381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25382 fi
25383
25384 if test -z "${USE_HILDON_TRUE}" && test -z "${USE_HILDON_FALSE}"; then
25385 as_fn_error $? "conditional \"USE_HILDON\" was never defined.
25386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25387 fi
25388 if test -z "${USE_OSSO_TRUE}" && test -z "${USE_OSSO_FALSE}"; then
25389 as_fn_error $? "conditional \"USE_OSSO\" was never defined.
25390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25391 fi
25392 if test -z "${MAPTOOL_TRUE}" && test -z "${MAPTOOL_FALSE}"; then
25393 as_fn_error $? "conditional \"MAPTOOL\" was never defined.
25394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25395 fi
25396 if test -z "${BUILD_SAMPLEMAP_TRUE}" && test -z "${BUILD_SAMPLEMAP_FALSE}"; then
25397 as_fn_error $? "conditional \"BUILD_SAMPLEMAP\" was never defined.
25398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25399 fi
25400 if test -z "${FASTMATH_TRUE}" && test -z "${FASTMATH_FALSE}"; then
25401 as_fn_error $? "conditional \"FASTMATH\" was never defined.
25402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25403 fi
25404 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
25405 as_fn_error $? "conditional \"PLUGINS\" was never defined.
25406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25407 fi
25408 if test -z "${SHARED_LIBNAVIT_TRUE}" && test -z "${SHARED_LIBNAVIT_FALSE}"; then
25409 as_fn_error $? "conditional \"SHARED_LIBNAVIT\" was never defined.
25410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25411 fi
25412 if test -z "${BIN_NAVIT_TRUE}" && test -z "${BIN_NAVIT_FALSE}"; then
25413 as_fn_error $? "conditional \"BIN_NAVIT\" was never defined.
25414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25415 fi
25416 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25417 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25419 fi
25420 if test -z "${EVENT_GLIB_TRUE}" && test -z "${EVENT_GLIB_FALSE}"; then
25421 as_fn_error $? "conditional \"EVENT_GLIB\" was never defined.
25422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25423 fi
25424 if test -z "${SUPPORT_GLIB_TRUE}" && test -z "${SUPPORT_GLIB_FALSE}"; then
25425 as_fn_error $? "conditional \"SUPPORT_GLIB\" was never defined.
25426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25427 fi
25428 if test -z "${SUPPORT_EZXML_TRUE}" && test -z "${SUPPORT_EZXML_FALSE}"; then
25429 as_fn_error $? "conditional \"SUPPORT_EZXML\" was never defined.
25430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25431 fi
25432 if test -z "${SUPPORT_ZLIB_TRUE}" && test -z "${SUPPORT_ZLIB_FALSE}"; then
25433 as_fn_error $? "conditional \"SUPPORT_ZLIB\" was never defined.
25434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25435 fi
25436 if test -z "${GRAPHICS_SDL_TRUE}" && test -z "${GRAPHICS_SDL_FALSE}"; then
25437 as_fn_error $? "conditional \"GRAPHICS_SDL\" was never defined.
25438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25439 fi
25440 if test -z "${HAVE_POSTGRESQL_TRUE}" && test -z "${HAVE_POSTGRESQL_FALSE}"; then
25441 as_fn_error $? "conditional \"HAVE_POSTGRESQL\" was never defined.
25442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25443 fi
25444 if test -z "${FONT_FREETYPE_TRUE}" && test -z "${FONT_FREETYPE_FALSE}"; then
25445 as_fn_error $? "conditional \"FONT_FREETYPE\" was never defined.
25446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25447 fi
25448 if test -z "${FONTS_TRUE}" && test -z "${FONTS_FALSE}"; then
25449 as_fn_error $? "conditional \"FONTS\" was never defined.
25450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25451 fi
25452 if test -z "${GRAPHICS_OPENGL_TRUE}" && test -z "${GRAPHICS_OPENGL_FALSE}"; then
25453 as_fn_error $? "conditional \"GRAPHICS_OPENGL\" was never defined.
25454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25455 fi
25456 if test -z "${HAVE_SYSTEM_SHAPEFILELIB_TRUE}" && test -z "${HAVE_SYSTEM_SHAPEFILELIB_FALSE}"; then
25457 as_fn_error $? "conditional \"HAVE_SYSTEM_SHAPEFILELIB\" was never defined.
25458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25459 fi
25460 if test -z "${HAVELIBGARMIN_TRUE}" && test -z "${HAVELIBGARMIN_FALSE}"; then
25461 as_fn_error $? "conditional \"HAVELIBGARMIN\" was never defined.
25462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25463 fi
25464 if test -z "${BINDING_PYTHON_TRUE}" && test -z "${BINDING_PYTHON_FALSE}"; then
25465 as_fn_error $? "conditional \"BINDING_PYTHON\" was never defined.
25466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25467 fi
25468 if test -z "${BINDING_DBUS_TRUE}" && test -z "${BINDING_DBUS_FALSE}"; then
25469 as_fn_error $? "conditional \"BINDING_DBUS\" was never defined.
25470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25471 fi
25472 if test -z "${VEHICLE_GPSD_DBUS_TRUE}" && test -z "${VEHICLE_GPSD_DBUS_FALSE}"; then
25473 as_fn_error $? "conditional \"VEHICLE_GPSD_DBUS\" was never defined.
25474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25475 fi
25476 if test -z "${SPEECH_DBUS_TRUE}" && test -z "${SPEECH_DBUS_FALSE}"; then
25477 as_fn_error $? "conditional \"SPEECH_DBUS\" was never defined.
25478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25479 fi
25480 if test -z "${USE_SVG2PNG_SCALES_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FALSE}"; then
25481 as_fn_error $? "conditional \"USE_SVG2PNG_SCALES\" was never defined.
25482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25483 fi
25484 if test -z "${USE_SVG2PNG_SCALES_FLAG_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FLAG_FALSE}"; then
25485 as_fn_error $? "conditional \"USE_SVG2PNG_SCALES_FLAG\" was never defined.
25486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25487 fi
25488 if test -z "${USE_SVG2PNG_SCALES_NAV_TRUE}" && test -z "${USE_SVG2PNG_SCALES_NAV_FALSE}"; then
25489 as_fn_error $? "conditional \"USE_SVG2PNG_SCALES_NAV\" was never defined.
25490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25491 fi
25492 if test -z "${USE_SVG2PNG_TRUE}" && test -z "${USE_SVG2PNG_FALSE}"; then
25493 as_fn_error $? "conditional \"USE_SVG2PNG\" was never defined.
25494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25495 fi
25496 if test -z "${USE_SVG_TRUE}" && test -z "${USE_SVG_FALSE}"; then
25497 as_fn_error $? "conditional \"USE_SVG\" was never defined.
25498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25499 fi
25500 if test -z "${ENABLE_NLS_TRUE}" && test -z "${ENABLE_NLS_FALSE}"; then
25501 as_fn_error $? "conditional \"ENABLE_NLS\" was never defined.
25502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25503 fi
25504 if test -z "${XGETTEXT_GLADE_TRUE}" && test -z "${XGETTEXT_GLADE_FALSE}"; then
25505 as_fn_error $? "conditional \"XGETTEXT_GLADE\" was never defined.
25506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25507 fi
25508 if test -z "${SUPPORT_WORDEXP_TRUE}" && test -z "${SUPPORT_WORDEXP_FALSE}"; then
25509 as_fn_error $? "conditional \"SUPPORT_WORDEXP\" was never defined.
25510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25511 fi
25512 if test -z "${SUPPORT_LIBC_TRUE}" && test -z "${SUPPORT_LIBC_FALSE}"; then
25513 as_fn_error $? "conditional \"SUPPORT_LIBC\" was never defined.
25514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25515 fi
25516 if test -z "${GRAPHICS_TRUE}" && test -z "${GRAPHICS_FALSE}"; then
25517 as_fn_error $? "conditional \"GRAPHICS\" was never defined.
25518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25519 fi
25520 if test -z "${GRAPHICS_ANDROID_TRUE}" && test -z "${GRAPHICS_ANDROID_FALSE}"; then
25521 as_fn_error $? "conditional \"GRAPHICS_ANDROID\" was never defined.
25522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25523 fi
25524 if test -z "${GRAPHICS_GD_TRUE}" && test -z "${GRAPHICS_GD_FALSE}"; then
25525 as_fn_error $? "conditional \"GRAPHICS_GD\" was never defined.
25526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25527 fi
25528 if test -z "${GRAPHICS_GTK_DRAWING_AREA_TRUE}" && test -z "${GRAPHICS_GTK_DRAWING_AREA_FALSE}"; then
25529 as_fn_error $? "conditional \"GRAPHICS_GTK_DRAWING_AREA\" was never defined.
25530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25531 fi
25532 if test -z "${GRAPHICS_NULL_TRUE}" && test -z "${GRAPHICS_NULL_FALSE}"; then
25533 as_fn_error $? "conditional \"GRAPHICS_NULL\" was never defined.
25534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25535 fi
25536 if test -z "${GRAPHICS_WIN32_TRUE}" && test -z "${GRAPHICS_WIN32_FALSE}"; then
25537 as_fn_error $? "conditional \"GRAPHICS_WIN32\" was never defined.
25538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25539 fi
25540 if test -z "${GRAPHICS_QT_QPAINTER_TRUE}" && test -z "${GRAPHICS_QT_QPAINTER_FALSE}"; then
25541 as_fn_error $? "conditional \"GRAPHICS_QT_QPAINTER\" was never defined.
25542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25543 fi
25544 if test -z "${MAP_BINFILE_TRUE}" && test -z "${MAP_BINFILE_FALSE}"; then
25545 as_fn_error $? "conditional \"MAP_BINFILE\" was never defined.
25546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25547 fi
25548 if test -z "${MAP_FILTER_TRUE}" && test -z "${MAP_FILTER_FALSE}"; then
25549 as_fn_error $? "conditional \"MAP_FILTER\" was never defined.
25550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25551 fi
25552 if test -z "${MAP_MG_TRUE}" && test -z "${MAP_MG_FALSE}"; then
25553 as_fn_error $? "conditional \"MAP_MG\" was never defined.
25554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25555 fi
25556 if test -z "${MAP_SHAPEFILE_TRUE}" && test -z "${MAP_SHAPEFILE_FALSE}"; then
25557 as_fn_error $? "conditional \"MAP_SHAPEFILE\" was never defined.
25558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25559 fi
25560 if test -z "${MAP_TEXTFILE_TRUE}" && test -z "${MAP_TEXTFILE_FALSE}"; then
25561 as_fn_error $? "conditional \"MAP_TEXTFILE\" was never defined.
25562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25563 fi
25564 if test -z "${MAP_CSV_TRUE}" && test -z "${MAP_CSV_FALSE}"; then
25565 as_fn_error $? "conditional \"MAP_CSV\" was never defined.
25566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25567 fi
25568 if test -z "${OSD_CORE_TRUE}" && test -z "${OSD_CORE_FALSE}"; then
25569 as_fn_error $? "conditional \"OSD_CORE\" was never defined.
25570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25571 fi
25572 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
25573 as_fn_error $? "conditional \"GUI_GTK\" was never defined.
25574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25575 fi
25576 if test -z "${GUI_INTERNAL_TRUE}" && test -z "${GUI_INTERNAL_FALSE}"; then
25577 as_fn_error $? "conditional \"GUI_INTERNAL\" was never defined.
25578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25579 fi
25580 if test -z "${GUI_WIN32_TRUE}" && test -z "${GUI_WIN32_FALSE}"; then
25581 as_fn_error $? "conditional \"GUI_WIN32\" was never defined.
25582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25583 fi
25584 if test -z "${GUI_QML_TRUE}" && test -z "${GUI_QML_FALSE}"; then
25585 as_fn_error $? "conditional \"GUI_QML\" was never defined.
25586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25587 fi
25588 if test -z "${PLUGIN_PEDESTRIAN_TRUE}" && test -z "${PLUGIN_PEDESTRIAN_FALSE}"; then
25589 as_fn_error $? "conditional \"PLUGIN_PEDESTRIAN\" was never defined.
25590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25591 fi
25592 if test -z "${ROUTING_TRUE}" && test -z "${ROUTING_FALSE}"; then
25593 as_fn_error $? "conditional \"ROUTING\" was never defined.
25594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25595 fi
25596 if test -z "${SPEECH_ANDROID_TRUE}" && test -z "${SPEECH_ANDROID_FALSE}"; then
25597 as_fn_error $? "conditional \"SPEECH_ANDROID\" was never defined.
25598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25599 fi
25600 if test -z "${SPEECH_CMDLINE_TRUE}" && test -z "${SPEECH_CMDLINE_FALSE}"; then
25601 as_fn_error $? "conditional \"SPEECH_CMDLINE\" was never defined.
25602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25603 fi
25604 if test -z "${SPEECH_ESPEAK_TRUE}" && test -z "${SPEECH_ESPEAK_FALSE}"; then
25605 as_fn_error $? "conditional \"SPEECH_ESPEAK\" was never defined.
25606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25607 fi
25608 if test -z "${SPEECH_SPEECH_DISPATCHER_TRUE}" && test -z "${SPEECH_SPEECH_DISPATCHER_FALSE}"; then
25609 as_fn_error $? "conditional \"SPEECH_SPEECH_DISPATCHER\" was never defined.
25610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25611 fi
25612 if test -z "${SUPPORT_ESPEAK_TRUE}" && test -z "${SUPPORT_ESPEAK_FALSE}"; then
25613 as_fn_error $? "conditional \"SUPPORT_ESPEAK\" was never defined.
25614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25615 fi
25616 if test -z "${VEHICLE_ANDROID_TRUE}" && test -z "${VEHICLE_ANDROID_FALSE}"; then
25617 as_fn_error $? "conditional \"VEHICLE_ANDROID\" was never defined.
25618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25619 fi
25620 if test -z "${VEHICLE_DEMO_TRUE}" && test -z "${VEHICLE_DEMO_FALSE}"; then
25621 as_fn_error $? "conditional \"VEHICLE_DEMO\" was never defined.
25622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25623 fi
25624 if test -z "${VEHICLE_FILE_TRUE}" && test -z "${VEHICLE_FILE_FALSE}"; then
25625 as_fn_error $? "conditional \"VEHICLE_FILE\" was never defined.
25626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25627 fi
25628 if test -z "${VEHICLE_GPSD_TRUE}" && test -z "${VEHICLE_GPSD_FALSE}"; then
25629 as_fn_error $? "conditional \"VEHICLE_GPSD\" was never defined.
25630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25631 fi
25632 if test -z "${VEHICLE_GYPSY_TRUE}" && test -z "${VEHICLE_GYPSY_FALSE}"; then
25633 as_fn_error $? "conditional \"VEHICLE_GYPSY\" was never defined.
25634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25635 fi
25636 if test -z "${VEHICLE_MAEMO_TRUE}" && test -z "${VEHICLE_MAEMO_FALSE}"; then
25637 as_fn_error $? "conditional \"VEHICLE_MAEMO\" was never defined.
25638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25639 fi
25640 if test -z "${VEHICLE_NULL_TRUE}" && test -z "${VEHICLE_NULL_FALSE}"; then
25641 as_fn_error $? "conditional \"VEHICLE_NULL\" was never defined.
25642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25643 fi
25644 if test -z "${VEHICLE_WINCE_TRUE}" && test -z "${VEHICLE_WINCE_FALSE}"; then
25645 as_fn_error $? "conditional \"VEHICLE_WINCE\" was never defined.
25646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25647 fi
25648 if test -z "${VEHICLE_IPHONE_TRUE}" && test -z "${VEHICLE_IPHONE_FALSE}"; then
25649 as_fn_error $? "conditional \"VEHICLE_IPHONE\" was never defined.
25650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25651 fi
25652 if test -z "${VEHICLE_WEBOS_TRUE}" && test -z "${VEHICLE_WEBOS_FALSE}"; then
25653 as_fn_error $? "conditional \"VEHICLE_WEBOS\" was never defined.
25654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25655 fi
25656
25657 : "${CONFIG_STATUS=./config.status}"
25658 ac_write_fail=0
25659 ac_clean_files_save=$ac_clean_files
25660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25663 as_write_fail=0
25664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25665 #! $SHELL
25666 # Generated by $as_me.
25667 # Run this file to recreate the current configuration.
25668 # Compiler output produced by configure, useful for debugging
25669 # configure, is in config.log if it exists.
25670
25671 debug=false
25672 ac_cs_recheck=false
25673 ac_cs_silent=false
25674
25675 SHELL=\${CONFIG_SHELL-$SHELL}
25676 export SHELL
25677 _ASEOF
25678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25679 ## -------------------- ##
25680 ## M4sh Initialization. ##
25681 ## -------------------- ##
25682
25683 # Be more Bourne compatible
25684 DUALCASE=1; export DUALCASE # for MKS sh
25685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25686 emulate sh
25687 NULLCMD=:
25688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25689 # is contrary to our usage. Disable this feature.
25690 alias -g '${1+"$@"}'='"$@"'
25691 setopt NO_GLOB_SUBST
25692 else
25693 case `(set -o) 2>/dev/null` in @%:@(
25694 *posix*) :
25695 set -o posix ;; @%:@(
25696 *) :
25697 ;;
25698 esac
25699 fi
25700
25701
25702 as_nl='
25703 '
25704 export as_nl
25705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25709 # Prefer a ksh shell builtin over an external printf program on Solaris,
25710 # but without wasting forks for bash or zsh.
25711 if test -z "$BASH_VERSION$ZSH_VERSION" \
25712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25713 as_echo='print -r --'
25714 as_echo_n='print -rn --'
25715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25716 as_echo='printf %s\n'
25717 as_echo_n='printf %s'
25718 else
25719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25721 as_echo_n='/usr/ucb/echo -n'
25722 else
25723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25724 as_echo_n_body='eval
25725 arg=$1;
25726 case $arg in @%:@(
25727 *"$as_nl"*)
25728 expr "X$arg" : "X\\(.*\\)$as_nl";
25729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25730 esac;
25731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25732 '
25733 export as_echo_n_body
25734 as_echo_n='sh -c $as_echo_n_body as_echo'
25735 fi
25736 export as_echo_body
25737 as_echo='sh -c $as_echo_body as_echo'
25738 fi
25739
25740 # The user is always right.
25741 if test "${PATH_SEPARATOR+set}" != set; then
25742 PATH_SEPARATOR=:
25743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25745 PATH_SEPARATOR=';'
25746 }
25747 fi
25748
25749
25750 # IFS
25751 # We need space, tab and new line, in precisely that order. Quoting is
25752 # there to prevent editors from complaining about space-tab.
25753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25754 # splitting by setting IFS to empty value.)
25755 IFS=" "" $as_nl"
25756
25757 # Find who we are. Look in the path if we contain no directory separator.
25758 as_myself=
25759 case $0 in @%:@((
25760 *[\\/]* ) as_myself=$0 ;;
25761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25762 for as_dir in $PATH
25763 do
25764 IFS=$as_save_IFS
25765 test -z "$as_dir" && as_dir=.
25766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25767 done
25768 IFS=$as_save_IFS
25769
25770 ;;
25771 esac
25772 # We did not find ourselves, most probably we were run as `sh COMMAND'
25773 # in which case we are not to be found in the path.
25774 if test "x$as_myself" = x; then
25775 as_myself=$0
25776 fi
25777 if test ! -f "$as_myself"; then
25778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25779 exit 1
25780 fi
25781
25782 # Unset variables that we do not need and which cause bugs (e.g. in
25783 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25784 # suppresses any "Segmentation fault" message there. '((' could
25785 # trigger a bug in pdksh 5.2.14.
25786 for as_var in BASH_ENV ENV MAIL MAILPATH
25787 do eval test x\${$as_var+set} = xset \
25788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25789 done
25790 PS1='$ '
25791 PS2='> '
25792 PS4='+ '
25793
25794 # NLS nuisances.
25795 LC_ALL=C
25796 export LC_ALL
25797 LANGUAGE=C
25798 export LANGUAGE
25799
25800 # CDPATH.
25801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25802
25803
25804 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
25805 @%:@ ----------------------------------------
25806 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25807 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25808 @%:@ script with STATUS, using 1 if that was 0.
25809 as_fn_error ()
25810 {
25811 as_status=$1; test $as_status -eq 0 && as_status=1
25812 if test "$4"; then
25813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25815 fi
25816 $as_echo "$as_me: error: $2" >&2
25817 as_fn_exit $as_status
25818 } @%:@ as_fn_error
25819
25820
25821 @%:@ as_fn_set_status STATUS
25822 @%:@ -----------------------
25823 @%:@ Set @S|@? to STATUS, without forking.
25824 as_fn_set_status ()
25825 {
25826 return $1
25827 } @%:@ as_fn_set_status
25828
25829 @%:@ as_fn_exit STATUS
25830 @%:@ -----------------
25831 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25832 as_fn_exit ()
25833 {
25834 set +e
25835 as_fn_set_status $1
25836 exit $1
25837 } @%:@ as_fn_exit
25838
25839 @%:@ as_fn_unset VAR
25840 @%:@ ---------------
25841 @%:@ Portably unset VAR.
25842 as_fn_unset ()
25843 {
25844 { eval $1=; unset $1;}
25845 }
25846 as_unset=as_fn_unset
25847 @%:@ as_fn_append VAR VALUE
25848 @%:@ ----------------------
25849 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
25850 @%:@ advantage of any shell optimizations that allow amortized linear growth over
25851 @%:@ repeated appends, instead of the typical quadratic growth present in naive
25852 @%:@ implementations.
25853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25854 eval 'as_fn_append ()
25855 {
25856 eval $1+=\$2
25857 }'
25858 else
25859 as_fn_append ()
25860 {
25861 eval $1=\$$1\$2
25862 }
25863 fi # as_fn_append
25864
25865 @%:@ as_fn_arith ARG...
25866 @%:@ ------------------
25867 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
25868 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
25869 @%:@ must be portable across @S|@(()) and expr.
25870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25871 eval 'as_fn_arith ()
25872 {
25873 as_val=$(( $* ))
25874 }'
25875 else
25876 as_fn_arith ()
25877 {
25878 as_val=`expr "$@" || test $? -eq 1`
25879 }
25880 fi # as_fn_arith
25881
25882
25883 if expr a : '\(a\)' >/dev/null 2>&1 &&
25884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25885 as_expr=expr
25886 else
25887 as_expr=false
25888 fi
25889
25890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25891 as_basename=basename
25892 else
25893 as_basename=false
25894 fi
25895
25896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25897 as_dirname=dirname
25898 else
25899 as_dirname=false
25900 fi
25901
25902 as_me=`$as_basename -- "$0" ||
25903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25904 X"$0" : 'X\(//\)$' \| \
25905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25906 $as_echo X/"$0" |
25907 sed '/^.*\/\([^/][^/]*\)\/*$/{
25908 s//\1/
25909 q
25910 }
25911 /^X\/\(\/\/\)$/{
25912 s//\1/
25913 q
25914 }
25915 /^X\/\(\/\).*/{
25916 s//\1/
25917 q
25918 }
25919 s/.*/./; q'`
25920
25921 # Avoid depending upon Character Ranges.
25922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25925 as_cr_digits='0123456789'
25926 as_cr_alnum=$as_cr_Letters$as_cr_digits
25927
25928 ECHO_C= ECHO_N= ECHO_T=
25929 case `echo -n x` in @%:@(((((
25930 -n*)
25931 case `echo 'xy\c'` in
25932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25933 xy) ECHO_C='\c';;
25934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25935 ECHO_T=' ';;
25936 esac;;
25937 *)
25938 ECHO_N='-n';;
25939 esac
25940
25941 rm -f conf$$ conf$$.exe conf$$.file
25942 if test -d conf$$.dir; then
25943 rm -f conf$$.dir/conf$$.file
25944 else
25945 rm -f conf$$.dir
25946 mkdir conf$$.dir 2>/dev/null
25947 fi
25948 if (echo >conf$$.file) 2>/dev/null; then
25949 if ln -s conf$$.file conf$$ 2>/dev/null; then
25950 as_ln_s='ln -s'
25951 # ... but there are two gotchas:
25952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25954 # In both cases, we have to default to `cp -pR'.
25955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25956 as_ln_s='cp -pR'
25957 elif ln conf$$.file conf$$ 2>/dev/null; then
25958 as_ln_s=ln
25959 else
25960 as_ln_s='cp -pR'
25961 fi
25962 else
25963 as_ln_s='cp -pR'
25964 fi
25965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25966 rmdir conf$$.dir 2>/dev/null
25967
25968
25969 @%:@ as_fn_mkdir_p
25970 @%:@ -------------
25971 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
25972 as_fn_mkdir_p ()
25973 {
25974
25975 case $as_dir in #(
25976 -*) as_dir=./$as_dir;;
25977 esac
25978 test -d "$as_dir" || eval $as_mkdir_p || {
25979 as_dirs=
25980 while :; do
25981 case $as_dir in #(
25982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25983 *) as_qdir=$as_dir;;
25984 esac
25985 as_dirs="'$as_qdir' $as_dirs"
25986 as_dir=`$as_dirname -- "$as_dir" ||
25987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25988 X"$as_dir" : 'X\(//\)[^/]' \| \
25989 X"$as_dir" : 'X\(//\)$' \| \
25990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25991 $as_echo X"$as_dir" |
25992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25993 s//\1/
25994 q
25995 }
25996 /^X\(\/\/\)[^/].*/{
25997 s//\1/
25998 q
25999 }
26000 /^X\(\/\/\)$/{
26001 s//\1/
26002 q
26003 }
26004 /^X\(\/\).*/{
26005 s//\1/
26006 q
26007 }
26008 s/.*/./; q'`
26009 test -d "$as_dir" && break
26010 done
26011 test -z "$as_dirs" || eval "mkdir $as_dirs"
26012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26013
26014
26015 } @%:@ as_fn_mkdir_p
26016 if mkdir -p . 2>/dev/null; then
26017 as_mkdir_p='mkdir -p "$as_dir"'
26018 else
26019 test -d ./-p && rmdir ./-p
26020 as_mkdir_p=false
26021 fi
26022
26023
26024 @%:@ as_fn_executable_p FILE
26025 @%:@ -----------------------
26026 @%:@ Test if FILE is an executable regular file.
26027 as_fn_executable_p ()
26028 {
26029 test -f "$1" && test -x "$1"
26030 } @%:@ as_fn_executable_p
26031 as_test_x='test -x'
26032 as_executable_p=as_fn_executable_p
26033
26034 # Sed expression to map a string onto a valid CPP name.
26035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26036
26037 # Sed expression to map a string onto a valid variable name.
26038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26039
26040
26041 exec 6>&1
26042 ## ----------------------------------- ##
26043 ## Main body of $CONFIG_STATUS script. ##
26044 ## ----------------------------------- ##
26045 _ASEOF
26046 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26047
26048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26049 # Save the log message, to keep $0 and so on meaningful, and to
26050 # report actual input values of CONFIG_FILES etc. instead of their
26051 # values after options handling.
26052 ac_log="
26053 This file was extended by zanavi $as_me 1.0.0, which was
26054 generated by GNU Autoconf 2.69. Invocation command line was
26055
26056 CONFIG_FILES = $CONFIG_FILES
26057 CONFIG_HEADERS = $CONFIG_HEADERS
26058 CONFIG_LINKS = $CONFIG_LINKS
26059 CONFIG_COMMANDS = $CONFIG_COMMANDS
26060 $ $0 $@
26061
26062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26063 "
26064
26065 _ACEOF
26066
26067 case $ac_config_files in *"
26068 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26069 esac
26070
26071 case $ac_config_headers in *"
26072 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26073 esac
26074
26075
26076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26077 # Files that config.status was made for.
26078 config_files="$ac_config_files"
26079 config_headers="$ac_config_headers"
26080 config_commands="$ac_config_commands"
26081
26082 _ACEOF
26083
26084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26085 ac_cs_usage="\
26086 \`$as_me' instantiates files and other configuration actions
26087 from templates according to the current configuration. Unless the files
26088 and actions are specified as TAGs, all are instantiated by default.
26089
26090 Usage: $0 [OPTION]... [TAG]...
26091
26092 -h, --help print this help, then exit
26093 -V, --version print version number and configuration settings, then exit
26094 --config print configuration, then exit
26095 -q, --quiet, --silent
26096 do not print progress messages
26097 -d, --debug don't remove temporary files
26098 --recheck update $as_me by reconfiguring in the same conditions
26099 --file=FILE[:TEMPLATE]
26100 instantiate the configuration file FILE
26101 --header=FILE[:TEMPLATE]
26102 instantiate the configuration header FILE
26103
26104 Configuration files:
26105 $config_files
26106
26107 Configuration headers:
26108 $config_headers
26109
26110 Configuration commands:
26111 $config_commands
26112
26113 Report bugs to the package provider."
26114
26115 _ACEOF
26116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26117 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26118 ac_cs_version="\\
26119 zanavi config.status 1.0.0
26120 configured by $0, generated by GNU Autoconf 2.69,
26121 with options \\"\$ac_cs_config\\"
26122
26123 Copyright (C) 2012 Free Software Foundation, Inc.
26124 This config.status script is free software; the Free Software Foundation
26125 gives unlimited permission to copy, distribute and modify it."
26126
26127 ac_pwd='$ac_pwd'
26128 srcdir='$srcdir'
26129 INSTALL='$INSTALL'
26130 MKDIR_P='$MKDIR_P'
26131 AWK='$AWK'
26132 test -n "\$AWK" || AWK=awk
26133 _ACEOF
26134
26135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26136 # The default lists apply if the user does not specify any file.
26137 ac_need_defaults=:
26138 while test $# != 0
26139 do
26140 case $1 in
26141 --*=?*)
26142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26144 ac_shift=:
26145 ;;
26146 --*=)
26147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26148 ac_optarg=
26149 ac_shift=:
26150 ;;
26151 *)
26152 ac_option=$1
26153 ac_optarg=$2
26154 ac_shift=shift
26155 ;;
26156 esac
26157
26158 case $ac_option in
26159 # Handling of the options.
26160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26161 ac_cs_recheck=: ;;
26162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26163 $as_echo "$ac_cs_version"; exit ;;
26164 --config | --confi | --conf | --con | --co | --c )
26165 $as_echo "$ac_cs_config"; exit ;;
26166 --debug | --debu | --deb | --de | --d | -d )
26167 debug=: ;;
26168 --file | --fil | --fi | --f )
26169 $ac_shift
26170 case $ac_optarg in
26171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26172 '') as_fn_error $? "missing file argument" ;;
26173 esac
26174 as_fn_append CONFIG_FILES " '$ac_optarg'"
26175 ac_need_defaults=false;;
26176 --header | --heade | --head | --hea )
26177 $ac_shift
26178 case $ac_optarg in
26179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26180 esac
26181 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26182 ac_need_defaults=false;;
26183 --he | --h)
26184 # Conflict between --help and --header
26185 as_fn_error $? "ambiguous option: \`$1'
26186 Try \`$0 --help' for more information.";;
26187 --help | --hel | -h )
26188 $as_echo "$ac_cs_usage"; exit ;;
26189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26191 ac_cs_silent=: ;;
26192
26193 # This is an error.
26194 -*) as_fn_error $? "unrecognized option: \`$1'
26195 Try \`$0 --help' for more information." ;;
26196
26197 *) as_fn_append ac_config_targets " $1"
26198 ac_need_defaults=false ;;
26199
26200 esac
26201 shift
26202 done
26203
26204 ac_configure_extra_args=
26205
26206 if $ac_cs_silent; then
26207 exec 6>/dev/null
26208 ac_configure_extra_args="$ac_configure_extra_args --silent"
26209 fi
26210
26211 _ACEOF
26212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26213 if \$ac_cs_recheck; then
26214 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26215 shift
26216 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26217 CONFIG_SHELL='$SHELL'
26218 export CONFIG_SHELL
26219 exec "\$@"
26220 fi
26221
26222 _ACEOF
26223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26224 exec 5>>config.log
26225 {
26226 echo
26227 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
26228 @%:@@%:@ Running $as_me. @%:@@%:@
26229 _ASBOX
26230 $as_echo "$ac_log"
26231 } >&5
26232
26233 _ACEOF
26234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26235 #
26236 # INIT-COMMANDS
26237 #
26238 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26239
26240
26241 # The HP-UX ksh and POSIX shell print the target directory to stdout
26242 # if CDPATH is set.
26243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26244
26245 sed_quote_subst='$sed_quote_subst'
26246 double_quote_subst='$double_quote_subst'
26247 delay_variable_subst='$delay_variable_subst'
26248 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26249 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26250 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26251 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26252 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26253 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26254 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26255 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26256 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26257 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26258 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26259 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26260 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26261 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26262 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26263 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26264 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26265 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26266 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26267 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26268 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26269 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26270 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26271 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26272 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26273 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26274 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26275 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26276 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26277 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26278 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26279 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26280 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26281 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26282 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26283 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26284 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26285 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26286 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26287 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26288 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26289 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26290 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26291 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26292 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26293 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26294 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26295 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26296 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26297 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26298 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26299 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26300 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26301 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26302 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26303 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26304 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26305 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26306 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26307 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26308 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26309 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26310 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26311 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26312 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26313 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26314 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26315 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26316 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26317 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26318 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26319 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26320 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26321 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26322 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26323 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26324 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26325 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26326 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26327 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26328 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26329 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26330 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26331 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26332 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26333 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26334 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26335 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26336 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26337 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26338 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26339 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26340 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26341 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26342 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26343 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26344 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26345 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26346 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26347 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26348 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26349 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26350 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26351 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26352 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26353 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26354 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26355 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26356 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26357 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26358 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26359 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26360 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26361 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26362 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26363 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26364 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26365 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26366 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
26367 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26368 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26369 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
26370 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
26371 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
26372 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26373 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26374 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26375 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26376 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26377 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26378 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26379 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26380 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26381 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26382 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26383 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26384 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26385 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26386 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26387 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26388 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26389 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26390 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26391 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26392 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26393 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26394 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26395 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26396 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26397 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26398 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26399 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26400 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26401 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26402 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26403 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26404 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26405 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26406 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26407 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26408 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26409 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26410 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26411 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26412 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26413 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26414 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26415 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26416 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26417 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26418 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26419
26420 LTCC='$LTCC'
26421 LTCFLAGS='$LTCFLAGS'
26422 compiler='$compiler_DEFAULT'
26423
26424 # Quote evaled strings.
26425 for var in SED \
26426 GREP \
26427 EGREP \
26428 FGREP \
26429 LD \
26430 NM \
26431 LN_S \
26432 lt_SP2NL \
26433 lt_NL2SP \
26434 reload_flag \
26435 OBJDUMP \
26436 deplibs_check_method \
26437 file_magic_cmd \
26438 AR \
26439 AR_FLAGS \
26440 STRIP \
26441 RANLIB \
26442 CC \
26443 CFLAGS \
26444 compiler \
26445 lt_cv_sys_global_symbol_pipe \
26446 lt_cv_sys_global_symbol_to_cdecl \
26447 lt_cv_sys_global_symbol_to_c_name_address \
26448 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26449 SHELL \
26450 ECHO \
26451 lt_prog_compiler_no_builtin_flag \
26452 lt_prog_compiler_wl \
26453 lt_prog_compiler_pic \
26454 lt_prog_compiler_static \
26455 lt_cv_prog_compiler_c_o \
26456 need_locks \
26457 DSYMUTIL \
26458 NMEDIT \
26459 LIPO \
26460 OTOOL \
26461 OTOOL64 \
26462 shrext_cmds \
26463 export_dynamic_flag_spec \
26464 whole_archive_flag_spec \
26465 compiler_needs_object \
26466 with_gnu_ld \
26467 allow_undefined_flag \
26468 no_undefined_flag \
26469 hardcode_libdir_flag_spec \
26470 hardcode_libdir_flag_spec_ld \
26471 hardcode_libdir_separator \
26472 fix_srcfile_path \
26473 exclude_expsyms \
26474 include_expsyms \
26475 file_list_spec \
26476 variables_saved_for_relink \
26477 libname_spec \
26478 library_names_spec \
26479 soname_spec \
26480 finish_eval \
26481 old_striplib \
26482 striplib \
26483 compiler_lib_search_dirs \
26484 predep_objects \
26485 postdep_objects \
26486 predeps \
26487 postdeps \
26488 compiler_lib_search_path \
26489 LD_CXX \
26490 compiler_CXX \
26491 lt_prog_compiler_no_builtin_flag_CXX \
26492 lt_prog_compiler_wl_CXX \
26493 lt_prog_compiler_pic_CXX \
26494 lt_prog_compiler_static_CXX \
26495 lt_cv_prog_compiler_c_o_CXX \
26496 export_dynamic_flag_spec_CXX \
26497 whole_archive_flag_spec_CXX \
26498 compiler_needs_object_CXX \
26499 with_gnu_ld_CXX \
26500 allow_undefined_flag_CXX \
26501 no_undefined_flag_CXX \
26502 hardcode_libdir_flag_spec_CXX \
26503 hardcode_libdir_flag_spec_ld_CXX \
26504 hardcode_libdir_separator_CXX \
26505 fix_srcfile_path_CXX \
26506 exclude_expsyms_CXX \
26507 include_expsyms_CXX \
26508 file_list_spec_CXX \
26509 compiler_lib_search_dirs_CXX \
26510 predep_objects_CXX \
26511 postdep_objects_CXX \
26512 predeps_CXX \
26513 postdeps_CXX \
26514 compiler_lib_search_path_CXX; do
26515 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26516 *[\\\\\\\`\\"\\\$]*)
26517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26518 ;;
26519 *)
26520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26521 ;;
26522 esac
26523 done
26524
26525 # Double-quote double-evaled strings.
26526 for var in reload_cmds \
26527 old_postinstall_cmds \
26528 old_postuninstall_cmds \
26529 old_archive_cmds \
26530 extract_expsyms_cmds \
26531 old_archive_from_new_cmds \
26532 old_archive_from_expsyms_cmds \
26533 archive_cmds \
26534 archive_expsym_cmds \
26535 module_cmds \
26536 module_expsym_cmds \
26537 export_symbols_cmds \
26538 prelink_cmds \
26539 postinstall_cmds \
26540 postuninstall_cmds \
26541 finish_cmds \
26542 sys_lib_search_path_spec \
26543 sys_lib_dlsearch_path_spec \
26544 old_archive_cmds_CXX \
26545 old_archive_from_new_cmds_CXX \
26546 old_archive_from_expsyms_cmds_CXX \
26547 archive_cmds_CXX \
26548 archive_expsym_cmds_CXX \
26549 module_cmds_CXX \
26550 module_expsym_cmds_CXX \
26551 export_symbols_cmds_CXX \
26552 prelink_cmds_CXX; do
26553 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26554 *[\\\\\\\`\\"\\\$]*)
26555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26556 ;;
26557 *)
26558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26559 ;;
26560 esac
26561 done
26562
26563 # Fix-up fallback echo if it was mangled by the above quoting rules.
26564 case \$lt_ECHO in
26565 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26566 ;;
26567 esac
26568
26569 ac_aux_dir='$ac_aux_dir'
26570 xsi_shell='$xsi_shell'
26571 lt_shell_append='$lt_shell_append'
26572
26573 # See if we are running on zsh, and set the options which allow our
26574 # commands through without removal of \ escapes INIT.
26575 if test -n "\${ZSH_VERSION+set}" ; then
26576 setopt NO_GLOB_SUBST
26577 fi
26578
26579
26580 PACKAGE='$PACKAGE'
26581 VERSION='$VERSION'
26582 TIMESTAMP='$TIMESTAMP'
26583 RM='$RM'
26584 ofile='$ofile'
26585
26586
26587
26588
26589
26590 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26591 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26592 # from automake.
26593 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26594 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26595 LINGUAS="${LINGUAS-%UNSET%}"
26596
26597
26598 _ACEOF
26599
26600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26601
26602 # Handling of arguments.
26603 for ac_config_target in $ac_config_targets
26604 do
26605 case $ac_config_target in
26606 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26607 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26608 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26609 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26611 "navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/Makefile" ;;
26612 "navit/autoload/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/Makefile" ;;
26613 "navit/autoload/osso/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/osso/Makefile" ;;
26614 "navit/binding/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/Makefile" ;;
26615 "navit/binding/python/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/python/Makefile" ;;
26616 "navit/binding/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/dbus/Makefile" ;;
26617 "navit/map/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/Makefile" ;;
26618 "navit/map/mg/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/mg/Makefile" ;;
26619 "navit/map/textfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/textfile/Makefile" ;;
26620 "navit/map/csv/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/csv/Makefile" ;;
26621 "navit/map/shapefile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/shapefile/Makefile" ;;
26622 "navit/map/filter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/filter/Makefile" ;;
26623 "navit/map/binfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/binfile/Makefile" ;;
26624 "navit/map/garmin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/garmin/Makefile" ;;
26625 "navit/maptool/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/Makefile" ;;
26626 "navit/maptool/p2t/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/Makefile" ;;
26627 "navit/maptool/p2t/sweep/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/sweep/Makefile" ;;
26628 "navit/maptool/p2t/common/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/common/Makefile" ;;
26629 "navit/maptool/libcfu-0.03-zanavi/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/libcfu-0.03-zanavi/Makefile" ;;
26630 "navit/maptool/libcfu-0.03-zanavi/src/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/libcfu-0.03-zanavi/src/Makefile" ;;
26631 "navit/maptool/refine/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/refine/Makefile" ;;
26632 "navit/fib-1.1/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fib-1.1/Makefile" ;;
26633 "navit/font/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/Makefile" ;;
26634 "navit/font/freetype/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/freetype/Makefile" ;;
26635 "navit/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fonts/Makefile" ;;
26636 "navit/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/Makefile" ;;
26637 "navit/graphics/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/android/Makefile" ;;
26638 "navit/graphics/gd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gd/Makefile" ;;
26639 "navit/graphics/gtk_drawing_area/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gtk_drawing_area/Makefile" ;;
26640 "navit/graphics/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/opengl/Makefile" ;;
26641 "navit/graphics/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/null/Makefile" ;;
26642 "navit/graphics/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/sdl/Makefile" ;;
26643 "navit/graphics/qt_qpainter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/qt_qpainter/Makefile" ;;
26644 "navit/graphics/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/win32/Makefile" ;;
26645 "navit/gui/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/Makefile" ;;
26646 "navit/gui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/gtk/Makefile" ;;
26647 "navit/gui/internal/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/internal/Makefile" ;;
26648 "navit/gui/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/win32/Makefile" ;;
26649 "navit/gui/qml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/Makefile" ;;
26650 "navit/gui/qml/skins/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/Makefile" ;;
26651 "navit/gui/qml/skins/navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/navit/Makefile" ;;
26652 "navit/osd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/Makefile" ;;
26653 "navit/osd/core/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/core/Makefile" ;;
26654 "navit/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/Makefile" ;;
26655 "navit/plugin/pedestrian/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/pedestrian/Makefile" ;;
26656 "navit/speech/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/Makefile" ;;
26657 "navit/speech/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/android/Makefile" ;;
26658 "navit/speech/cmdline/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/cmdline/Makefile" ;;
26659 "navit/speech/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/dbus/Makefile" ;;
26660 "navit/speech/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/espeak/Makefile" ;;
26661 "navit/speech/speech_dispatcher/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/speech_dispatcher/Makefile" ;;
26662 "navit/support/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/Makefile" ;;
26663 "navit/support/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/espeak/Makefile" ;;
26664 "navit/support/ezxml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/ezxml/Makefile" ;;
26665 "navit/support/glib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/glib/Makefile" ;;
26666 "navit/support/libc/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libc/Makefile" ;;
26667 "navit/support/libpng/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libpng/Makefile" ;;
26668 "navit/support/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/win32/Makefile" ;;
26669 "navit/support/wordexp/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/wordexp/Makefile" ;;
26670 "navit/support/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/zlib/Makefile" ;;
26671 "navit/vehicle/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/Makefile" ;;
26672 "navit/vehicle/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/android/Makefile" ;;
26673 "navit/vehicle/file/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/file/Makefile" ;;
26674 "navit/vehicle/gpsd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd/Makefile" ;;
26675 "navit/vehicle/gpsd_dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd_dbus/Makefile" ;;
26676 "navit/vehicle/gypsy/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gypsy/Makefile" ;;
26677 "navit/vehicle/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/maemo/Makefile" ;;
26678 "navit/vehicle/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/null/Makefile" ;;
26679 "navit/vehicle/demo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/demo/Makefile" ;;
26680 "navit/vehicle/wince/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/wince/Makefile" ;;
26681 "navit/vehicle/iphone/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/iphone/Makefile" ;;
26682 "navit/vehicle/webos/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/webos/Makefile" ;;
26683 "navit/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES navit/xpm/Makefile" ;;
26684 "navit/maps/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maps/Makefile" ;;
26685 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
26686 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
26687 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26688
26689 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26690 esac
26691 done
26692
26693
26694 # If the user did not use the arguments to specify the items to instantiate,
26695 # then the envvar interface is used. Set only those that are not.
26696 # We use the long form for the default assignment because of an extremely
26697 # bizarre bug on SunOS 4.1.3.
26698 if $ac_need_defaults; then
26699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26702 fi
26703
26704 # Have a temporary directory for convenience. Make it in the build tree
26705 # simply because there is no reason against having it here, and in addition,
26706 # creating and moving files from /tmp can sometimes cause problems.
26707 # Hook for its removal unless debugging.
26708 # Note that there is a small window in which the directory will not be cleaned:
26709 # after its creation but before its name has been assigned to `$tmp'.
26710 $debug ||
26711 {
26712 tmp= ac_tmp=
26713 trap 'exit_status=$?
26714 : "${ac_tmp:=$tmp}"
26715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26716 ' 0
26717 trap 'as_fn_exit 1' 1 2 13 15
26718 }
26719 # Create a (secure) tmp directory for tmp files.
26720
26721 {
26722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26723 test -d "$tmp"
26724 } ||
26725 {
26726 tmp=./conf$$-$RANDOM
26727 (umask 077 && mkdir "$tmp")
26728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26729 ac_tmp=$tmp
26730
26731 # Set up the scripts for CONFIG_FILES section.
26732 # No need to generate them if there are no CONFIG_FILES.
26733 # This happens for instance with `./config.status config.h'.
26734 if test -n "$CONFIG_FILES"; then
26735
26736
26737 ac_cr=`echo X | tr X '\015'`
26738 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26739 # But we know of no other shell where ac_cr would be empty at this
26740 # point, so we can use a bashism as a fallback.
26741 if test "x$ac_cr" = x; then
26742 eval ac_cr=\$\'\\r\'
26743 fi
26744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26746 ac_cs_awk_cr='\\r'
26747 else
26748 ac_cs_awk_cr=$ac_cr
26749 fi
26750
26751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26752 _ACEOF
26753
26754
26755 {
26756 echo "cat >conf$$subs.awk <<_ACEOF" &&
26757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26758 echo "_ACEOF"
26759 } >conf$$subs.sh ||
26760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26762 ac_delim='%!_!# '
26763 for ac_last_try in false false false false false :; do
26764 . ./conf$$subs.sh ||
26765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26766
26767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26768 if test $ac_delim_n = $ac_delim_num; then
26769 break
26770 elif $ac_last_try; then
26771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26772 else
26773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26774 fi
26775 done
26776 rm -f conf$$subs.sh
26777
26778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26780 _ACEOF
26781 sed -n '
26782 h
26783 s/^/S["/; s/!.*/"]=/
26784 p
26785 g
26786 s/^[^!]*!//
26787 :repl
26788 t repl
26789 s/'"$ac_delim"'$//
26790 t delim
26791 :nl
26792 h
26793 s/\(.\{148\}\)..*/\1/
26794 t more1
26795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26796 p
26797 n
26798 b repl
26799 :more1
26800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26801 p
26802 g
26803 s/.\{148\}//
26804 t nl
26805 :delim
26806 h
26807 s/\(.\{148\}\)..*/\1/
26808 t more2
26809 s/["\\]/\\&/g; s/^/"/; s/$/"/
26810 p
26811 b
26812 :more2
26813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26814 p
26815 g
26816 s/.\{148\}//
26817 t delim
26818 ' <conf$$subs.awk | sed '
26819 /^[^""]/{
26820 N
26821 s/\n//
26822 }
26823 ' >>$CONFIG_STATUS || ac_write_fail=1
26824 rm -f conf$$subs.awk
26825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26826 _ACAWK
26827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26828 for (key in S) S_is_set[key] = 1
26829 FS = ""
26830
26831 }
26832 {
26833 line = $ 0
26834 nfields = split(line, field, "@")
26835 substed = 0
26836 len = length(field[1])
26837 for (i = 2; i < nfields; i++) {
26838 key = field[i]
26839 keylen = length(key)
26840 if (S_is_set[key]) {
26841 value = S[key]
26842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26843 len += length(value) + length(field[++i])
26844 substed = 1
26845 } else
26846 len += 1 + keylen
26847 }
26848
26849 print line
26850 }
26851
26852 _ACAWK
26853 _ACEOF
26854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26857 else
26858 cat
26859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26861 _ACEOF
26862
26863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26865 # trailing colons and then remove the whole line if VPATH becomes empty
26866 # (actually we leave an empty line to preserve line numbers).
26867 if test "x$srcdir" = x.; then
26868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26869 h
26870 s///
26871 s/^/:/
26872 s/[ ]*$/:/
26873 s/:\$(srcdir):/:/g
26874 s/:\${srcdir}:/:/g
26875 s/:@srcdir@:/:/g
26876 s/^:*//
26877 s/:*$//
26878 x
26879 s/\(=[ ]*\).*/\1/
26880 G
26881 s/\n//
26882 s/^[^=]*=[ ]*$//
26883 }'
26884 fi
26885
26886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26887 fi # test -n "$CONFIG_FILES"
26888
26889 # Set up the scripts for CONFIG_HEADERS section.
26890 # No need to generate them if there are no CONFIG_HEADERS.
26891 # This happens for instance with `./config.status Makefile'.
26892 if test -n "$CONFIG_HEADERS"; then
26893 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26894 BEGIN {
26895 _ACEOF
26896
26897 # Transform confdefs.h into an awk script `defines.awk', embedded as
26898 # here-document in config.status, that substitutes the proper values into
26899 # config.h.in to produce config.h.
26900
26901 # Create a delimiter string that does not exist in confdefs.h, to ease
26902 # handling of long lines.
26903 ac_delim='%!_!# '
26904 for ac_last_try in false false :; do
26905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26906 if test -z "$ac_tt"; then
26907 break
26908 elif $ac_last_try; then
26909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26910 else
26911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26912 fi
26913 done
26914
26915 # For the awk script, D is an array of macro values keyed by name,
26916 # likewise P contains macro parameters if any. Preserve backslash
26917 # newline sequences.
26918
26919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26920 sed -n '
26921 s/.\{148\}/&'"$ac_delim"'/g
26922 t rset
26923 :rset
26924 s/^[ ]*#[ ]*define[ ][ ]*/ /
26925 t def
26926 d
26927 :def
26928 s/\\$//
26929 t bsnl
26930 s/["\\]/\\&/g
26931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26932 D["\1"]=" \3"/p
26933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26934 d
26935 :bsnl
26936 s/["\\]/\\&/g
26937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26938 D["\1"]=" \3\\\\\\n"\\/p
26939 t cont
26940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26941 t cont
26942 d
26943 :cont
26944 n
26945 s/.\{148\}/&'"$ac_delim"'/g
26946 t clear
26947 :clear
26948 s/\\$//
26949 t bsnlc
26950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26951 d
26952 :bsnlc
26953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26954 b cont
26955 ' <confdefs.h | sed '
26956 s/'"$ac_delim"'/"\\\
26957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26958
26959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26960 for (key in D) D_is_set[key] = 1
26961 FS = ""
26962 }
26963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26964 line = \$ 0
26965 split(line, arg, " ")
26966 if (arg[1] == "#") {
26967 defundef = arg[2]
26968 mac1 = arg[3]
26969 } else {
26970 defundef = substr(arg[1], 2)
26971 mac1 = arg[2]
26972 }
26973 split(mac1, mac2, "(") #)
26974 macro = mac2[1]
26975 prefix = substr(line, 1, index(line, defundef) - 1)
26976 if (D_is_set[macro]) {
26977 # Preserve the white space surrounding the "#".
26978 print prefix "define", macro P[macro] D[macro]
26979 next
26980 } else {
26981 # Replace #undef with comments. This is necessary, for example,
26982 # in the case of _POSIX_SOURCE, which is predefined and required
26983 # on some systems where configure will not decide to define it.
26984 if (defundef == "undef") {
26985 print "/*", prefix defundef, macro, "*/"
26986 next
26987 }
26988 }
26989 }
26990 { print }
26991 _ACAWK
26992 _ACEOF
26993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26995 fi # test -n "$CONFIG_HEADERS"
26996
26997
26998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26999 shift
27000 for ac_tag
27001 do
27002 case $ac_tag in
27003 :[FHLC]) ac_mode=$ac_tag; continue;;
27004 esac
27005 case $ac_mode$ac_tag in
27006 :[FHL]*:*);;
27007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27008 :[FH]-) ac_tag=-:-;;
27009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27010 esac
27011 ac_save_IFS=$IFS
27012 IFS=:
27013 set x $ac_tag
27014 IFS=$ac_save_IFS
27015 shift
27016 ac_file=$1
27017 shift
27018
27019 case $ac_mode in
27020 :L) ac_source=$1;;
27021 :[FH])
27022 ac_file_inputs=
27023 for ac_f
27024 do
27025 case $ac_f in
27026 -) ac_f="$ac_tmp/stdin";;
27027 *) # Look for the file first in the build tree, then in the source tree
27028 # (if the path is not absolute). The absolute path cannot be DOS-style,
27029 # because $ac_f cannot contain `:'.
27030 test -f "$ac_f" ||
27031 case $ac_f in
27032 [\\/$]*) false;;
27033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27034 esac ||
27035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27036 esac
27037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27038 as_fn_append ac_file_inputs " '$ac_f'"
27039 done
27040
27041 # Let's still pretend it is `configure' which instantiates (i.e., don't
27042 # use $as_me), people would be surprised to read:
27043 # /* config.h. Generated by config.status. */
27044 configure_input='Generated from '`
27045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27046 `' by configure.'
27047 if test x"$ac_file" != x-; then
27048 configure_input="$ac_file. $configure_input"
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27050 $as_echo "$as_me: creating $ac_file" >&6;}
27051 fi
27052 # Neutralize special characters interpreted by sed in replacement strings.
27053 case $configure_input in #(
27054 *\&* | *\|* | *\\* )
27055 ac_sed_conf_input=`$as_echo "$configure_input" |
27056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27057 *) ac_sed_conf_input=$configure_input;;
27058 esac
27059
27060 case $ac_tag in
27061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27063 esac
27064 ;;
27065 esac
27066
27067 ac_dir=`$as_dirname -- "$ac_file" ||
27068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27069 X"$ac_file" : 'X\(//\)[^/]' \| \
27070 X"$ac_file" : 'X\(//\)$' \| \
27071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27072 $as_echo X"$ac_file" |
27073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27074 s//\1/
27075 q
27076 }
27077 /^X\(\/\/\)[^/].*/{
27078 s//\1/
27079 q
27080 }
27081 /^X\(\/\/\)$/{
27082 s//\1/
27083 q
27084 }
27085 /^X\(\/\).*/{
27086 s//\1/
27087 q
27088 }
27089 s/.*/./; q'`
27090 as_dir="$ac_dir"; as_fn_mkdir_p
27091 ac_builddir=.
27092
27093 case "$ac_dir" in
27094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27095 *)
27096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27097 # A ".." for each directory in $ac_dir_suffix.
27098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27099 case $ac_top_builddir_sub in
27100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27102 esac ;;
27103 esac
27104 ac_abs_top_builddir=$ac_pwd
27105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27106 # for backward compatibility:
27107 ac_top_builddir=$ac_top_build_prefix
27108
27109 case $srcdir in
27110 .) # We are building in place.
27111 ac_srcdir=.
27112 ac_top_srcdir=$ac_top_builddir_sub
27113 ac_abs_top_srcdir=$ac_pwd ;;
27114 [\\/]* | ?:[\\/]* ) # Absolute name.
27115 ac_srcdir=$srcdir$ac_dir_suffix;
27116 ac_top_srcdir=$srcdir
27117 ac_abs_top_srcdir=$srcdir ;;
27118 *) # Relative name.
27119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27120 ac_top_srcdir=$ac_top_build_prefix$srcdir
27121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27122 esac
27123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27124
27125
27126 case $ac_mode in
27127 :F)
27128 #
27129 # CONFIG_FILE
27130 #
27131
27132 case $INSTALL in
27133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27135 esac
27136 ac_MKDIR_P=$MKDIR_P
27137 case $MKDIR_P in
27138 [\\/$]* | ?:[\\/]* ) ;;
27139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27140 esac
27141 _ACEOF
27142
27143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27144 # If the template does not know about datarootdir, expand it.
27145 # FIXME: This hack should be removed a few years after 2.60.
27146 ac_datarootdir_hack=; ac_datarootdir_seen=
27147 ac_sed_dataroot='
27148 /datarootdir/ {
27149 p
27150 q
27151 }
27152 /@datadir@/p
27153 /@docdir@/p
27154 /@infodir@/p
27155 /@localedir@/p
27156 /@mandir@/p'
27157 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27158 *datarootdir*) ac_datarootdir_seen=yes;;
27159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27161 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27162 _ACEOF
27163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27164 ac_datarootdir_hack='
27165 s&@datadir@&$datadir&g
27166 s&@docdir@&$docdir&g
27167 s&@infodir@&$infodir&g
27168 s&@localedir@&$localedir&g
27169 s&@mandir@&$mandir&g
27170 s&\\\${datarootdir}&$datarootdir&g' ;;
27171 esac
27172 _ACEOF
27173
27174 # Neutralize VPATH when `$srcdir' = `.'.
27175 # Shell code in configure.ac might set extrasub.
27176 # FIXME: do we really want to maintain this feature?
27177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27178 ac_sed_extra="$ac_vpsub
27179 $extrasub
27180 _ACEOF
27181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27182 :t
27183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27184 s|@configure_input@|$ac_sed_conf_input|;t t
27185 s&@top_builddir@&$ac_top_builddir_sub&;t t
27186 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27187 s&@srcdir@&$ac_srcdir&;t t
27188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27189 s&@top_srcdir@&$ac_top_srcdir&;t t
27190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27191 s&@builddir@&$ac_builddir&;t t
27192 s&@abs_builddir@&$ac_abs_builddir&;t t
27193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27194 s&@INSTALL@&$ac_INSTALL&;t t
27195 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27196 $ac_datarootdir_hack
27197 "
27198 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27199 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27200
27201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27202 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27204 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27206 which seems to be undefined. Please make sure it is defined" >&5
27207 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27208 which seems to be undefined. Please make sure it is defined" >&2;}
27209
27210 rm -f "$ac_tmp/stdin"
27211 case $ac_file in
27212 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27213 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27214 esac \
27215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27216 ;;
27217 :H)
27218 #
27219 # CONFIG_HEADER
27220 #
27221 if test x"$ac_file" != x-; then
27222 {
27223 $as_echo "/* $configure_input */" \
27224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27225 } >"$ac_tmp/config.h" \
27226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27227 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27229 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27230 else
27231 rm -f "$ac_file"
27232 mv "$ac_tmp/config.h" "$ac_file" \
27233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27234 fi
27235 else
27236 $as_echo "/* $configure_input */" \
27237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27238 || as_fn_error $? "could not create -" "$LINENO" 5
27239 fi
27240 # Compute "$ac_file"'s index in $config_headers.
27241 _am_arg="$ac_file"
27242 _am_stamp_count=1
27243 for _am_header in $config_headers :; do
27244 case $_am_header in
27245 $_am_arg | $_am_arg:* )
27246 break ;;
27247 * )
27248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27249 esac
27250 done
27251 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27252 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27253 X"$_am_arg" : 'X\(//\)[^/]' \| \
27254 X"$_am_arg" : 'X\(//\)$' \| \
27255 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27256 $as_echo X"$_am_arg" |
27257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27258 s//\1/
27259 q
27260 }
27261 /^X\(\/\/\)[^/].*/{
27262 s//\1/
27263 q
27264 }
27265 /^X\(\/\/\)$/{
27266 s//\1/
27267 q
27268 }
27269 /^X\(\/\).*/{
27270 s//\1/
27271 q
27272 }
27273 s/.*/./; q'`/stamp-h$_am_stamp_count
27274 ;;
27275
27276 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27277 $as_echo "$as_me: executing $ac_file commands" >&6;}
27278 ;;
27279 esac
27280
27281
27282 case $ac_file$ac_mode in
27283 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27284 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27285 # are listed without --file. Let's play safe and only enable the eval
27286 # if we detect the quoting.
27287 case $CONFIG_FILES in
27288 *\'*) eval set x "$CONFIG_FILES" ;;
27289 *) set x $CONFIG_FILES ;;
27290 esac
27291 shift
27292 for mf
27293 do
27294 # Strip MF so we end up with the name of the file.
27295 mf=`echo "$mf" | sed -e 's/:.*$//'`
27296 # Check whether this is an Automake generated Makefile or not.
27297 # We used to match only the files named `Makefile.in', but
27298 # some people rename them; so instead we look at the file content.
27299 # Grep'ing the first line is not enough: some people post-process
27300 # each Makefile.in and add a new line on top of each file to say so.
27301 # Grep'ing the whole file is not good either: AIX grep has a line
27302 # limit of 2048, but all sed's we know have understand at least 4000.
27303 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27304 dirpart=`$as_dirname -- "$mf" ||
27305 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27306 X"$mf" : 'X\(//\)[^/]' \| \
27307 X"$mf" : 'X\(//\)$' \| \
27308 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27309 $as_echo X"$mf" |
27310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27311 s//\1/
27312 q
27313 }
27314 /^X\(\/\/\)[^/].*/{
27315 s//\1/
27316 q
27317 }
27318 /^X\(\/\/\)$/{
27319 s//\1/
27320 q
27321 }
27322 /^X\(\/\).*/{
27323 s//\1/
27324 q
27325 }
27326 s/.*/./; q'`
27327 else
27328 continue
27329 fi
27330 # Extract the definition of DEPDIR, am__include, and am__quote
27331 # from the Makefile without running `make'.
27332 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27333 test -z "$DEPDIR" && continue
27334 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27335 test -z "am__include" && continue
27336 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27337 # When using ansi2knr, U may be empty or an underscore; expand it
27338 U=`sed -n 's/^U = //p' < "$mf"`
27339 # Find all dependency output files, they are included files with
27340 # $(DEPDIR) in their names. We invoke sed twice because it is the
27341 # simplest approach to changing $(DEPDIR) to its actual value in the
27342 # expansion.
27343 for file in `sed -n "
27344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27346 # Make sure the directory exists.
27347 test -f "$dirpart/$file" && continue
27348 fdir=`$as_dirname -- "$file" ||
27349 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27350 X"$file" : 'X\(//\)[^/]' \| \
27351 X"$file" : 'X\(//\)$' \| \
27352 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27353 $as_echo X"$file" |
27354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27355 s//\1/
27356 q
27357 }
27358 /^X\(\/\/\)[^/].*/{
27359 s//\1/
27360 q
27361 }
27362 /^X\(\/\/\)$/{
27363 s//\1/
27364 q
27365 }
27366 /^X\(\/\).*/{
27367 s//\1/
27368 q
27369 }
27370 s/.*/./; q'`
27371 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27372 # echo "creating $dirpart/$file"
27373 echo '# dummy' > "$dirpart/$file"
27374 done
27375 done
27376 }
27377 ;;
27378 "libtool":C)
27379
27380 # See if we are running on zsh, and set the options which allow our
27381 # commands through without removal of \ escapes.
27382 if test -n "${ZSH_VERSION+set}" ; then
27383 setopt NO_GLOB_SUBST
27384 fi
27385
27386 cfgfile="${ofile}T"
27387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27388 $RM "$cfgfile"
27389
27390 cat <<_LT_EOF >> "$cfgfile"
27391 #! $SHELL
27392
27393 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27394 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27396 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27397 #
27398 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27399 # 2006, 2007, 2008 Free Software Foundation, Inc.
27400 # Written by Gordon Matzigkeit, 1996
27401 #
27402 # This file is part of GNU Libtool.
27403 #
27404 # GNU Libtool is free software; you can redistribute it and/or
27405 # modify it under the terms of the GNU General Public License as
27406 # published by the Free Software Foundation; either version 2 of
27407 # the License, or (at your option) any later version.
27408 #
27409 # As a special exception to the GNU General Public License,
27410 # if you distribute this file as part of a program or library that
27411 # is built using GNU Libtool, you may include this file under the
27412 # same distribution terms that you use for the rest of that program.
27413 #
27414 # GNU Libtool is distributed in the hope that it will be useful,
27415 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27416 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27417 # GNU General Public License for more details.
27418 #
27419 # You should have received a copy of the GNU General Public License
27420 # along with GNU Libtool; see the file COPYING. If not, a copy
27421 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27422 # obtained by writing to the Free Software Foundation, Inc.,
27423 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27424
27425
27426 # The names of the tagged configurations supported by this script.
27427 available_tags="CXX "
27428
27429 # ### BEGIN LIBTOOL CONFIG
27430
27431 # Whether or not to build shared libraries.
27432 build_libtool_libs=$enable_shared
27433
27434 # Whether or not to build static libraries.
27435 build_old_libs=$enable_static
27436
27437 # Which release of libtool.m4 was used?
27438 macro_version=$macro_version
27439 macro_revision=$macro_revision
27440
27441 # What type of objects to build.
27442 pic_mode=$pic_mode
27443
27444 # Whether or not to optimize for fast installation.
27445 fast_install=$enable_fast_install
27446
27447 # The host system.
27448 host_alias=$host_alias
27449 host=$host
27450 host_os=$host_os
27451
27452 # The build system.
27453 build_alias=$build_alias
27454 build=$build
27455 build_os=$build_os
27456
27457 # A sed program that does not truncate output.
27458 SED=$lt_SED
27459
27460 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27461 Xsed="\$SED -e 1s/^X//"
27462
27463 # A grep program that handles long lines.
27464 GREP=$lt_GREP
27465
27466 # An ERE matcher.
27467 EGREP=$lt_EGREP
27468
27469 # A literal string matcher.
27470 FGREP=$lt_FGREP
27471
27472 # A BSD- or MS-compatible name lister.
27473 NM=$lt_NM
27474
27475 # Whether we need soft or hard links.
27476 LN_S=$lt_LN_S
27477
27478 # What is the maximum length of a command?
27479 max_cmd_len=$max_cmd_len
27480
27481 # Object file suffix (normally "o").
27482 objext=$ac_objext
27483
27484 # Executable file suffix (normally "").
27485 exeext=$exeext
27486
27487 # whether the shell understands "unset".
27488 lt_unset=$lt_unset
27489
27490 # turn spaces into newlines.
27491 SP2NL=$lt_lt_SP2NL
27492
27493 # turn newlines into spaces.
27494 NL2SP=$lt_lt_NL2SP
27495
27496 # How to create reloadable object files.
27497 reload_flag=$lt_reload_flag
27498 reload_cmds=$lt_reload_cmds
27499
27500 # An object symbol dumper.
27501 OBJDUMP=$lt_OBJDUMP
27502
27503 # Method to check whether dependent libraries are shared objects.
27504 deplibs_check_method=$lt_deplibs_check_method
27505
27506 # Command to use when deplibs_check_method == "file_magic".
27507 file_magic_cmd=$lt_file_magic_cmd
27508
27509 # The archiver.
27510 AR=$lt_AR
27511 AR_FLAGS=$lt_AR_FLAGS
27512
27513 # A symbol stripping program.
27514 STRIP=$lt_STRIP
27515
27516 # Commands used to install an old-style archive.
27517 RANLIB=$lt_RANLIB
27518 old_postinstall_cmds=$lt_old_postinstall_cmds
27519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27520
27521 # A C compiler.
27522 LTCC=$lt_CC
27523
27524 # LTCC compiler flags.
27525 LTCFLAGS=$lt_CFLAGS
27526
27527 # Take the output of nm and produce a listing of raw symbols and C names.
27528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27529
27530 # Transform the output of nm in a proper C declaration.
27531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27532
27533 # Transform the output of nm in a C name address pair.
27534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27535
27536 # Transform the output of nm in a C name address pair when lib prefix is needed.
27537 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27538
27539 # The name of the directory that contains temporary libtool files.
27540 objdir=$objdir
27541
27542 # Shell to use when invoking shell scripts.
27543 SHELL=$lt_SHELL
27544
27545 # An echo program that does not interpret backslashes.
27546 ECHO=$lt_ECHO
27547
27548 # Used to examine libraries when file_magic_cmd begins with "file".
27549 MAGIC_CMD=$MAGIC_CMD
27550
27551 # Must we lock files when doing compilation?
27552 need_locks=$lt_need_locks
27553
27554 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27555 DSYMUTIL=$lt_DSYMUTIL
27556
27557 # Tool to change global to local symbols on Mac OS X.
27558 NMEDIT=$lt_NMEDIT
27559
27560 # Tool to manipulate fat objects and archives on Mac OS X.
27561 LIPO=$lt_LIPO
27562
27563 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27564 OTOOL=$lt_OTOOL
27565
27566 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27567 OTOOL64=$lt_OTOOL64
27568
27569 # Old archive suffix (normally "a").
27570 libext=$libext
27571
27572 # Shared library suffix (normally ".so").
27573 shrext_cmds=$lt_shrext_cmds
27574
27575 # The commands to extract the exported symbol list from a shared archive.
27576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27577
27578 # Variables whose values should be saved in libtool wrapper scripts and
27579 # restored at link time.
27580 variables_saved_for_relink=$lt_variables_saved_for_relink
27581
27582 # Do we need the "lib" prefix for modules?
27583 need_lib_prefix=$need_lib_prefix
27584
27585 # Do we need a version for libraries?
27586 need_version=$need_version
27587
27588 # Library versioning type.
27589 version_type=$version_type
27590
27591 # Shared library runtime path variable.
27592 runpath_var=$runpath_var
27593
27594 # Shared library path variable.
27595 shlibpath_var=$shlibpath_var
27596
27597 # Is shlibpath searched before the hard-coded library search path?
27598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27599
27600 # Format of library name prefix.
27601 libname_spec=$lt_libname_spec
27602
27603 # List of archive names. First name is the real one, the rest are links.
27604 # The last name is the one that the linker finds with -lNAME
27605 library_names_spec=$lt_library_names_spec
27606
27607 # The coded name of the library, if different from the real name.
27608 soname_spec=$lt_soname_spec
27609
27610 # Command to use after installation of a shared archive.
27611 postinstall_cmds=$lt_postinstall_cmds
27612
27613 # Command to use after uninstallation of a shared archive.
27614 postuninstall_cmds=$lt_postuninstall_cmds
27615
27616 # Commands used to finish a libtool library installation in a directory.
27617 finish_cmds=$lt_finish_cmds
27618
27619 # As "finish_cmds", except a single script fragment to be evaled but
27620 # not shown.
27621 finish_eval=$lt_finish_eval
27622
27623 # Whether we should hardcode library paths into libraries.
27624 hardcode_into_libs=$hardcode_into_libs
27625
27626 # Compile-time system search path for libraries.
27627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27628
27629 # Run-time system search path for libraries.
27630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27631
27632 # Whether dlopen is supported.
27633 dlopen_support=$enable_dlopen
27634
27635 # Whether dlopen of programs is supported.
27636 dlopen_self=$enable_dlopen_self
27637
27638 # Whether dlopen of statically linked programs is supported.
27639 dlopen_self_static=$enable_dlopen_self_static
27640
27641 # Commands to strip libraries.
27642 old_striplib=$lt_old_striplib
27643 striplib=$lt_striplib
27644
27645
27646 # The linker used to build libraries.
27647 LD=$lt_LD
27648
27649 # Commands used to build an old-style archive.
27650 old_archive_cmds=$lt_old_archive_cmds
27651
27652 # A language specific compiler.
27653 CC=$lt_compiler
27654
27655 # Is the compiler the GNU compiler?
27656 with_gcc=$GCC
27657
27658 # Compiler flag to turn off builtin functions.
27659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27660
27661 # How to pass a linker flag through the compiler.
27662 wl=$lt_lt_prog_compiler_wl
27663
27664 # Additional compiler flags for building library objects.
27665 pic_flag=$lt_lt_prog_compiler_pic
27666
27667 # Compiler flag to prevent dynamic linking.
27668 link_static_flag=$lt_lt_prog_compiler_static
27669
27670 # Does compiler simultaneously support -c and -o options?
27671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27672
27673 # Whether or not to add -lc for building shared libraries.
27674 build_libtool_need_lc=$archive_cmds_need_lc
27675
27676 # Whether or not to disallow shared libs when runtime libs are static.
27677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27678
27679 # Compiler flag to allow reflexive dlopens.
27680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27681
27682 # Compiler flag to generate shared objects directly from archives.
27683 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27684
27685 # Whether the compiler copes with passing no objects directly.
27686 compiler_needs_object=$lt_compiler_needs_object
27687
27688 # Create an old-style archive from a shared archive.
27689 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27690
27691 # Create a temporary old-style archive to link instead of a shared archive.
27692 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27693
27694 # Commands used to build a shared archive.
27695 archive_cmds=$lt_archive_cmds
27696 archive_expsym_cmds=$lt_archive_expsym_cmds
27697
27698 # Commands used to build a loadable module if different from building
27699 # a shared archive.
27700 module_cmds=$lt_module_cmds
27701 module_expsym_cmds=$lt_module_expsym_cmds
27702
27703 # Whether we are building with GNU ld or not.
27704 with_gnu_ld=$lt_with_gnu_ld
27705
27706 # Flag that allows shared libraries with undefined symbols to be built.
27707 allow_undefined_flag=$lt_allow_undefined_flag
27708
27709 # Flag that enforces no undefined symbols.
27710 no_undefined_flag=$lt_no_undefined_flag
27711
27712 # Flag to hardcode \$libdir into a binary during linking.
27713 # This must work even if \$libdir does not exist
27714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27715
27716 # If ld is used when linking, flag to hardcode \$libdir into a binary
27717 # during linking. This must work even if \$libdir does not exist.
27718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27719
27720 # Whether we need a single "-rpath" flag with a separated argument.
27721 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27722
27723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27724 # DIR into the resulting binary.
27725 hardcode_direct=$hardcode_direct
27726
27727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27728 # DIR into the resulting binary and the resulting library dependency is
27729 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27730 # library is relocated.
27731 hardcode_direct_absolute=$hardcode_direct_absolute
27732
27733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27734 # into the resulting binary.
27735 hardcode_minus_L=$hardcode_minus_L
27736
27737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27738 # into the resulting binary.
27739 hardcode_shlibpath_var=$hardcode_shlibpath_var
27740
27741 # Set to "yes" if building a shared library automatically hardcodes DIR
27742 # into the library and all subsequent libraries and executables linked
27743 # against it.
27744 hardcode_automatic=$hardcode_automatic
27745
27746 # Set to yes if linker adds runtime paths of dependent libraries
27747 # to runtime path list.
27748 inherit_rpath=$inherit_rpath
27749
27750 # Whether libtool must link a program against all its dependency libraries.
27751 link_all_deplibs=$link_all_deplibs
27752
27753 # Fix the shell variable \$srcfile for the compiler.
27754 fix_srcfile_path=$lt_fix_srcfile_path
27755
27756 # Set to "yes" if exported symbols are required.
27757 always_export_symbols=$always_export_symbols
27758
27759 # The commands to list exported symbols.
27760 export_symbols_cmds=$lt_export_symbols_cmds
27761
27762 # Symbols that should not be listed in the preloaded symbols.
27763 exclude_expsyms=$lt_exclude_expsyms
27764
27765 # Symbols that must always be exported.
27766 include_expsyms=$lt_include_expsyms
27767
27768 # Commands necessary for linking programs (against libraries) with templates.
27769 prelink_cmds=$lt_prelink_cmds
27770
27771 # Specify filename containing input files.
27772 file_list_spec=$lt_file_list_spec
27773
27774 # How to hardcode a shared library path into an executable.
27775 hardcode_action=$hardcode_action
27776
27777 # The directories searched by this compiler when creating a shared library.
27778 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27779
27780 # Dependencies to place before and after the objects being linked to
27781 # create a shared library.
27782 predep_objects=$lt_predep_objects
27783 postdep_objects=$lt_postdep_objects
27784 predeps=$lt_predeps
27785 postdeps=$lt_postdeps
27786
27787 # The library search path used internally by the compiler when linking
27788 # a shared library.
27789 compiler_lib_search_path=$lt_compiler_lib_search_path
27790
27791 # ### END LIBTOOL CONFIG
27792
27793 _LT_EOF
27794
27795 case $host_os in
27796 aix3*)
27797 cat <<\_LT_EOF >> "$cfgfile"
27798 # AIX sometimes has problems with the GCC collect2 program. For some
27799 # reason, if we set the COLLECT_NAMES environment variable, the problems
27800 # vanish in a puff of smoke.
27801 if test "X${COLLECT_NAMES+set}" != Xset; then
27802 COLLECT_NAMES=
27803 export COLLECT_NAMES
27804 fi
27805 _LT_EOF
27806 ;;
27807 esac
27808
27809
27810 ltmain="$ac_aux_dir/ltmain.sh"
27811
27812
27813 # We use sed instead of cat because bash on DJGPP gets confused if
27814 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27815 # text mode, it properly converts lines to CR/LF. This bash problem
27816 # is reportedly fixed, but why not run on old versions too?
27817 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27818 || (rm -f "$cfgfile"; exit 1)
27819
27820 case $xsi_shell in
27821 yes)
27822 cat << \_LT_EOF >> "$cfgfile"
27823
27824 # func_dirname file append nondir_replacement
27825 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27826 # otherwise set result to NONDIR_REPLACEMENT.
27827 func_dirname ()
27828 {
27829 case ${1} in
27830 */*) func_dirname_result="${1%/*}${2}" ;;
27831 * ) func_dirname_result="${3}" ;;
27832 esac
27833 }
27834
27835 # func_basename file
27836 func_basename ()
27837 {
27838 func_basename_result="${1##*/}"
27839 }
27840
27841 # func_dirname_and_basename file append nondir_replacement
27842 # perform func_basename and func_dirname in a single function
27843 # call:
27844 # dirname: Compute the dirname of FILE. If nonempty,
27845 # add APPEND to the result, otherwise set result
27846 # to NONDIR_REPLACEMENT.
27847 # value returned in "$func_dirname_result"
27848 # basename: Compute filename of FILE.
27849 # value retuned in "$func_basename_result"
27850 # Implementation must be kept synchronized with func_dirname
27851 # and func_basename. For efficiency, we do not delegate to
27852 # those functions but instead duplicate the functionality here.
27853 func_dirname_and_basename ()
27854 {
27855 case ${1} in
27856 */*) func_dirname_result="${1%/*}${2}" ;;
27857 * ) func_dirname_result="${3}" ;;
27858 esac
27859 func_basename_result="${1##*/}"
27860 }
27861
27862 # func_stripname prefix suffix name
27863 # strip PREFIX and SUFFIX off of NAME.
27864 # PREFIX and SUFFIX must not contain globbing or regex special
27865 # characters, hashes, percent signs, but SUFFIX may contain a leading
27866 # dot (in which case that matches only a dot).
27867 func_stripname ()
27868 {
27869 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27870 # positional parameters, so assign one to ordinary parameter first.
27871 func_stripname_result=${3}
27872 func_stripname_result=${func_stripname_result#"${1}"}
27873 func_stripname_result=${func_stripname_result%"${2}"}
27874 }
27875
27876 # func_opt_split
27877 func_opt_split ()
27878 {
27879 func_opt_split_opt=${1%%=*}
27880 func_opt_split_arg=${1#*=}
27881 }
27882
27883 # func_lo2o object
27884 func_lo2o ()
27885 {
27886 case ${1} in
27887 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27888 *) func_lo2o_result=${1} ;;
27889 esac
27890 }
27891
27892 # func_xform libobj-or-source
27893 func_xform ()
27894 {
27895 func_xform_result=${1%.*}.lo
27896 }
27897
27898 # func_arith arithmetic-term...
27899 func_arith ()
27900 {
27901 func_arith_result=$(( $* ))
27902 }
27903
27904 # func_len string
27905 # STRING may not start with a hyphen.
27906 func_len ()
27907 {
27908 func_len_result=${#1}
27909 }
27910
27911 _LT_EOF
27912 ;;
27913 *) # Bourne compatible functions.
27914 cat << \_LT_EOF >> "$cfgfile"
27915
27916 # func_dirname file append nondir_replacement
27917 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27918 # otherwise set result to NONDIR_REPLACEMENT.
27919 func_dirname ()
27920 {
27921 # Extract subdirectory from the argument.
27922 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27923 if test "X$func_dirname_result" = "X${1}"; then
27924 func_dirname_result="${3}"
27925 else
27926 func_dirname_result="$func_dirname_result${2}"
27927 fi
27928 }
27929
27930 # func_basename file
27931 func_basename ()
27932 {
27933 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27934 }
27935
27936
27937 # func_stripname prefix suffix name
27938 # strip PREFIX and SUFFIX off of NAME.
27939 # PREFIX and SUFFIX must not contain globbing or regex special
27940 # characters, hashes, percent signs, but SUFFIX may contain a leading
27941 # dot (in which case that matches only a dot).
27942 # func_strip_suffix prefix name
27943 func_stripname ()
27944 {
27945 case ${2} in
27946 .*) func_stripname_result=`$ECHO "X${3}" \
27947 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27948 *) func_stripname_result=`$ECHO "X${3}" \
27949 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27950 esac
27951 }
27952
27953 # sed scripts:
27954 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27955 my_sed_long_arg='1s/^-[^=]*=//'
27956
27957 # func_opt_split
27958 func_opt_split ()
27959 {
27960 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27961 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27962 }
27963
27964 # func_lo2o object
27965 func_lo2o ()
27966 {
27967 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27968 }
27969
27970 # func_xform libobj-or-source
27971 func_xform ()
27972 {
27973 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27974 }
27975
27976 # func_arith arithmetic-term...
27977 func_arith ()
27978 {
27979 func_arith_result=`expr "$@"`
27980 }
27981
27982 # func_len string
27983 # STRING may not start with a hyphen.
27984 func_len ()
27985 {
27986 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27987 }
27988
27989 _LT_EOF
27990 esac
27991
27992 case $lt_shell_append in
27993 yes)
27994 cat << \_LT_EOF >> "$cfgfile"
27995
27996 # func_append var value
27997 # Append VALUE to the end of shell variable VAR.
27998 func_append ()
27999 {
28000 eval "$1+=\$2"
28001 }
28002 _LT_EOF
28003 ;;
28004 *)
28005 cat << \_LT_EOF >> "$cfgfile"
28006
28007 # func_append var value
28008 # Append VALUE to the end of shell variable VAR.
28009 func_append ()
28010 {
28011 eval "$1=\$$1\$2"
28012 }
28013
28014 _LT_EOF
28015 ;;
28016 esac
28017
28018
28019 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28020 || (rm -f "$cfgfile"; exit 1)
28021
28022 mv -f "$cfgfile" "$ofile" ||
28023 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28024 chmod +x "$ofile"
28025
28026
28027 cat <<_LT_EOF >> "$ofile"
28028
28029 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28030
28031 # The linker used to build libraries.
28032 LD=$lt_LD_CXX
28033
28034 # Commands used to build an old-style archive.
28035 old_archive_cmds=$lt_old_archive_cmds_CXX
28036
28037 # A language specific compiler.
28038 CC=$lt_compiler_CXX
28039
28040 # Is the compiler the GNU compiler?
28041 with_gcc=$GCC_CXX
28042
28043 # Compiler flag to turn off builtin functions.
28044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28045
28046 # How to pass a linker flag through the compiler.
28047 wl=$lt_lt_prog_compiler_wl_CXX
28048
28049 # Additional compiler flags for building library objects.
28050 pic_flag=$lt_lt_prog_compiler_pic_CXX
28051
28052 # Compiler flag to prevent dynamic linking.
28053 link_static_flag=$lt_lt_prog_compiler_static_CXX
28054
28055 # Does compiler simultaneously support -c and -o options?
28056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28057
28058 # Whether or not to add -lc for building shared libraries.
28059 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28060
28061 # Whether or not to disallow shared libs when runtime libs are static.
28062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28063
28064 # Compiler flag to allow reflexive dlopens.
28065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28066
28067 # Compiler flag to generate shared objects directly from archives.
28068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28069
28070 # Whether the compiler copes with passing no objects directly.
28071 compiler_needs_object=$lt_compiler_needs_object_CXX
28072
28073 # Create an old-style archive from a shared archive.
28074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28075
28076 # Create a temporary old-style archive to link instead of a shared archive.
28077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28078
28079 # Commands used to build a shared archive.
28080 archive_cmds=$lt_archive_cmds_CXX
28081 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28082
28083 # Commands used to build a loadable module if different from building
28084 # a shared archive.
28085 module_cmds=$lt_module_cmds_CXX
28086 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28087
28088 # Whether we are building with GNU ld or not.
28089 with_gnu_ld=$lt_with_gnu_ld_CXX
28090
28091 # Flag that allows shared libraries with undefined symbols to be built.
28092 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28093
28094 # Flag that enforces no undefined symbols.
28095 no_undefined_flag=$lt_no_undefined_flag_CXX
28096
28097 # Flag to hardcode \$libdir into a binary during linking.
28098 # This must work even if \$libdir does not exist
28099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28100
28101 # If ld is used when linking, flag to hardcode \$libdir into a binary
28102 # during linking. This must work even if \$libdir does not exist.
28103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28104
28105 # Whether we need a single "-rpath" flag with a separated argument.
28106 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28107
28108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28109 # DIR into the resulting binary.
28110 hardcode_direct=$hardcode_direct_CXX
28111
28112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28113 # DIR into the resulting binary and the resulting library dependency is
28114 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28115 # library is relocated.
28116 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28117
28118 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28119 # into the resulting binary.
28120 hardcode_minus_L=$hardcode_minus_L_CXX
28121
28122 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28123 # into the resulting binary.
28124 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28125
28126 # Set to "yes" if building a shared library automatically hardcodes DIR
28127 # into the library and all subsequent libraries and executables linked
28128 # against it.
28129 hardcode_automatic=$hardcode_automatic_CXX
28130
28131 # Set to yes if linker adds runtime paths of dependent libraries
28132 # to runtime path list.
28133 inherit_rpath=$inherit_rpath_CXX
28134
28135 # Whether libtool must link a program against all its dependency libraries.
28136 link_all_deplibs=$link_all_deplibs_CXX
28137
28138 # Fix the shell variable \$srcfile for the compiler.
28139 fix_srcfile_path=$lt_fix_srcfile_path_CXX
28140
28141 # Set to "yes" if exported symbols are required.
28142 always_export_symbols=$always_export_symbols_CXX
28143
28144 # The commands to list exported symbols.
28145 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28146
28147 # Symbols that should not be listed in the preloaded symbols.
28148 exclude_expsyms=$lt_exclude_expsyms_CXX
28149
28150 # Symbols that must always be exported.
28151 include_expsyms=$lt_include_expsyms_CXX
28152
28153 # Commands necessary for linking programs (against libraries) with templates.
28154 prelink_cmds=$lt_prelink_cmds_CXX
28155
28156 # Specify filename containing input files.
28157 file_list_spec=$lt_file_list_spec_CXX
28158
28159 # How to hardcode a shared library path into an executable.
28160 hardcode_action=$hardcode_action_CXX
28161
28162 # The directories searched by this compiler when creating a shared library.
28163 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28164
28165 # Dependencies to place before and after the objects being linked to
28166 # create a shared library.
28167 predep_objects=$lt_predep_objects_CXX
28168 postdep_objects=$lt_postdep_objects_CXX
28169 predeps=$lt_predeps_CXX
28170 postdeps=$lt_postdeps_CXX
28171
28172 # The library search path used internally by the compiler when linking
28173 # a shared library.
28174 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28175
28176 # ### END LIBTOOL TAG CONFIG: CXX
28177 _LT_EOF
28178
28179 ;;
28180 "default-1":C)
28181 for ac_file in $CONFIG_FILES; do
28182 # Support "outfile[:infile[:infile...]]"
28183 case "$ac_file" in
28184 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28185 esac
28186 # PO directories have a Makefile.in generated from Makefile.in.in.
28187 case "$ac_file" in */Makefile.in)
28188 # Adjust a relative srcdir.
28189 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28190 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28191 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28192 # In autoconf-2.13 it is called $ac_given_srcdir.
28193 # In autoconf-2.50 it is called $srcdir.
28194 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28195 case "$ac_given_srcdir" in
28196 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28197 /*) top_srcdir="$ac_given_srcdir" ;;
28198 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28199 esac
28200 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28201 rm -f "$ac_dir/POTFILES"
28202 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28203 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28204 POMAKEFILEDEPS="POTFILES.in"
28205 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28206 # on $ac_dir but don't depend on user-specified configuration
28207 # parameters.
28208 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28209 # The LINGUAS file contains the set of available languages.
28210 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28211 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28212 fi
28213 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28214 # Hide the ALL_LINGUAS assigment from automake.
28215 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28216 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28217 else
28218 # The set of available languages was given in configure.in.
28219 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28220 fi
28221 # Compute POFILES
28222 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28223 # Compute UPDATEPOFILES
28224 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28225 # Compute DUMMYPOFILES
28226 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28227 # Compute GMOFILES
28228 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28229 case "$ac_given_srcdir" in
28230 .) srcdirpre= ;;
28231 *) srcdirpre='$(srcdir)/' ;;
28232 esac
28233 POFILES=
28234 UPDATEPOFILES=
28235 DUMMYPOFILES=
28236 GMOFILES=
28237 for lang in $ALL_LINGUAS; do
28238 POFILES="$POFILES $srcdirpre$lang.po"
28239 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28240 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28241 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28242 done
28243 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28244 # environment variable.
28245 INST_LINGUAS=
28246 if test -n "$ALL_LINGUAS"; then
28247 for presentlang in $ALL_LINGUAS; do
28248 useit=no
28249 if test "%UNSET%" != "$LINGUAS"; then
28250 desiredlanguages="$LINGUAS"
28251 else
28252 desiredlanguages="$ALL_LINGUAS"
28253 fi
28254 for desiredlang in $desiredlanguages; do
28255 # Use the presentlang catalog if desiredlang is
28256 # a. equal to presentlang, or
28257 # b. a variant of presentlang (because in this case,
28258 # presentlang can be used as a fallback for messages
28259 # which are not translated in the desiredlang catalog).
28260 case "$desiredlang" in
28261 "$presentlang"*) useit=yes;;
28262 esac
28263 done
28264 if test $useit = yes; then
28265 INST_LINGUAS="$INST_LINGUAS $presentlang"
28266 fi
28267 done
28268 fi
28269 CATALOGS=
28270 if test -n "$INST_LINGUAS"; then
28271 for lang in $INST_LINGUAS; do
28272 CATALOGS="$CATALOGS $lang.gmo"
28273 done
28274 fi
28275 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28276 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28277 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28278 if test -f "$f"; then
28279 case "$f" in
28280 *.orig | *.bak | *~) ;;
28281 *) cat "$f" >> "$ac_dir/Makefile" ;;
28282 esac
28283 fi
28284 done
28285 fi
28286 ;;
28287 esac
28288 done ;;
28289
28290 esac
28291 done # for ac_tag
28292
28293
28294 as_fn_exit 0
28295 _ACEOF
28296 ac_clean_files=$ac_clean_files_save
28297
28298 test $ac_write_fail = 0 ||
28299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28300
28301
28302 # configure is writing to config.log, and then calls config.status.
28303 # config.status does its own redirection, appending to config.log.
28304 # Unfortunately, on DOS this fails, as config.log is still kept open
28305 # by configure, so config.status won't be able to write to it; its
28306 # output is simply discarded. So we exec the FD to /dev/null,
28307 # effectively closing config.log, so it can be properly (re)opened and
28308 # appended to by config.status. When coming back to configure, we
28309 # need to make the FD available again.
28310 if test "$no_create" != yes; then
28311 ac_cs_success=:
28312 ac_config_status_args=
28313 test "$silent" = yes &&
28314 ac_config_status_args="$ac_config_status_args --quiet"
28315 exec 5>/dev/null
28316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28317 exec 5>>config.log
28318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28319 # would make configure fail if this is the last instruction.
28320 $ac_cs_success || as_fn_exit 1
28321 fi
28322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28324 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28325 fi
28326
28327
28328
28329 echo ""
28330 echo ""
28331 echo "Summary of your installation :"
28332 # FIXME : maybe elaborate missing dependencies
28333 if test x"$graphics_sdl" != xyes
28334 then
28335 sdl_failures="(libsdl maybe?) "
28336 fi
28337 if test x"$glut" != xyes
28338 then
28339 sdl_failures=$sdl_failures"glut "
28340 fi
28341 if test x"$glc" != xyes
28342 then
28343 sdl_failures=$sdl_failures"quesoglc "
28344 fi
28345 if test -z "$sdl_failures"
28346 then
28347 echo "OpenGL gui : ENABLED, with $CEGUI_LIBS"
28348 else
28349 echo "OpenGL gui : DISABLED : you are missing $sdl_failures"
28350 fi
28351 if test x"$enable_hildon" = xyes
28352 then
28353 echo "Maemo/Hildon: ENABLED"
28354 else
28355 echo "Maemo/Hildon: DISABLED"
28356 fi
28357 if test x"$enable_osso" = xyes
28358 then
28359 echo "Maemo/OSSO: ENABLED"
28360 else
28361 echo "Maemo/OSSO: DISABLED"
28362 fi
28363 if test x"${USE_GARMIN}" = xyes
28364 then
28365 if test "x$use_libgarmin" = "xyes"
28366 then
28367 echo "Garmin IMG : ENABLED"
28368 else
28369 echo "Garmin IMG : DISABLED (you don't have libgarmin)"
28370 fi
28371 else
28372 echo "Garmin IMG : DISABLED (you requested it)"
28373 fi
28374
28375 if test x"$LIBINTL" = "x" ;then
28376 nls_libs="system gettext support"
28377 else
28378 nls_libs="$LIBINTL"
28379 fi
28380 echo "Plugins: $plugins ($plugins_reason)"
28381 echo "Postgresql: $postgresql ($postgresql_reason)"
28382 echo "Samplemap: $samplemap ($samplemap_reason)"
28383 echo "NLS Support: $enable_nls ($nls_libs)"
28384 echo "Routing: $routing ($routing_reason)"
28385 echo "Font renderers:"
28386 echo " freetype: $font_freetype ($font_freetype_reason)"
28387 echo " FriBidi enabled: $fribidi ($fribidi_reason)"
28388
28389 echo "Graphics types: $graphics ($graphics_reason)"
28390 echo " android: $graphics_android ($graphics_android_reason)"
28391 echo " gtk_drawing_area: $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
28392 echo " null: $graphics_null ($graphics_null_reason)"
28393 echo " qt_qpainter: $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
28394 echo " win32: $graphics_win32 ($graphics_win32_reason)"
28395 echo " OpenGL: $graphics_opengl ($graphics_opengl_reason)"
28396 echo " gd: $graphics_gd ($graphics_gd_reason)"
28397 echo " sdl: $graphics_sdl ($graphics_sdl_reason)"
28398
28399 echo "GUI types:"
28400 echo " gtk: $gui_gtk ($gui_gtk_reason)"
28401 echo " internal: $gui_internal ($gui_internal_reason)"
28402 echo " win32: $gui_win32 ($gui_win32_reason)"
28403 echo " qml: $gui_qml ($gui_qml_reason)"
28404
28405 echo "Map types:"
28406 echo " binfile: $map_binfile ($map_binfile_reason)"
28407 echo " filter: $map_filter ($map_filter_reason)"
28408 echo " mg: $map_mg ($map_mg_reason)"
28409 echo " shapefile: $map_shapefile ($map_shapefile_reason)"
28410 echo " textfile: $map_textfile ($map_textfile_reason)"
28411 echo " csv: $map_csv ($map_csv_reason)"
28412
28413
28414 echo "Bindings:"
28415 echo " dbus: $binding_dbus ($binding_dbus_reason)"
28416 echo " python: $binding_python ($binding_python_reason)"
28417
28418 echo "OSD types:"
28419 echo " core: $osd_core ($osd_core_reason)"
28420
28421 echo "Plugins:"
28422 echo " pedestrian: $plugin_pedestrian ($plugin_pedestrian_reason)"
28423
28424 echo "Speech types:"
28425 echo " android: $speech_android ($speech_android_reason)"
28426 echo " cmdline: $speech_cmdline ($speech_cmdline_reason)"
28427 echo " dbus: $speech_dbus ($speech_dbus_reason)"
28428 echo " espeak: $speech_espeak ($speech_espeak_reason)"
28429 echo " speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
28430
28431 echo "Vehicle types:"
28432 echo " android: $vehicle_android ($vehicle_android_reason)"
28433 echo " demo: $vehicle_demo ($vehicle_demo_reason)"
28434 echo " file: $vehicle_file ($vehicle_file_reason)"
28435 echo " gpsd: $vehicle_gpsd ($vehicle_gpsd_reason)"
28436 echo " gpsd_dbus: $vehicle_gpsd_dbus ($vehicle_gpsd_dbus_reason)"
28437 echo " gypsy: $vehicle_gypsy ($vehicle_gypsy_reason)"
28438 echo " maemo: $vehicle_maemo ($vehicle_maemo_reason)"
28439 echo " null: $vehicle_null ($vehicle_null_reason)"
28440 echo " wince: $vehicle_wince ($vehicle_wince_reason)"
28441 echo " iphone: $vehicle_iphone ($vehicle_iphone_reason)"
28442 echo " webos: $vehicle_webos ($vehicle_webos_reason)"
28443
28444 if test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes" -a "x${gui_qml}" != "xyes"
28445 then
28446 echo ""
28447 echo ""
28448 echo "*** WARNING! you have no gui that can be built! ***"
28449 echo "Please install the dependency for at least gtk or sdl gui"
28450 echo "For more details, see the wiki at http://wiki.navit-project.org/"
28451 echo ""
28452 fi
28453

   
Visit the ZANavi Wiki