Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdc1394 2.2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libdc1394'
592 PACKAGE_TARNAME='libdc1394'
593 PACKAGE_VERSION='2.2.6'
594 PACKAGE_STRING='libdc1394 2.2.6'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="dc1394/control.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 pkgincludedir
641 lt_age
642 lt_revision
643 lt_current
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 HAVE_XV_FALSE
650 HAVE_XV_TRUE
651 XV_LIBS
652 XV_CFLAGS
653 MAKE_EXAMPLES_FALSE
654 MAKE_EXAMPLES_TRUE
655 HAVE_VIDEODEV_FALSE
656 HAVE_VIDEODEV_TRUE
657 HAVE_OPENGL_FALSE
658 HAVE_OPENGL_TRUE
659 HAVE_LIBSDL_FALSE
660 HAVE_LIBSDL_TRUE
661 HAVE_LIBUSB_FALSE
662 HAVE_LIBUSB_TRUE
663 HAVE_LIBRAW1394_FALSE
664 HAVE_LIBRAW1394_TRUE
665 HAVE_WINDOWS_FALSE
666 HAVE_WINDOWS_TRUE
667 HAVE_MACOSX_FALSE
668 HAVE_MACOSX_TRUE
669 HAVE_LINUX_FALSE
670 HAVE_LINUX_TRUE
671 platform_LDFLAGS
672 FRAMEWORK_IOKIT
673 SDL_LIBS
674 SDL_CFLAGS
675 SDL_CONFIG
676 LIBUSB_LIBS
677 LIBUSB_CFLAGS
678 PKG_CONFIG
679 CPP
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 EGREP
694 GREP
695 SED
696 LIBTOOL
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__quote
709 am__include
710 DEPDIR
711 am__untar
712 am__tar
713 AMTAR
714 am__leading_dot
715 SET_MAKE
716 AWK
717 mkdir_p
718 MKDIR_P
719 INSTALL_STRIP_PROGRAM
720 STRIP
721 install_sh
722 MAKEINFO
723 AUTOHEADER
724 AUTOMAKE
725 AUTOCONF
726 ACLOCAL
727 VERSION
728 PACKAGE
729 CYGPATH_W
730 am__isrc
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 ac_ct_AR
742 AR
743 DOXYGEN_PAPER_SIZE
744 DX_COND_latex_FALSE
745 DX_COND_latex_TRUE
746 DX_COND_pdf_FALSE
747 DX_COND_pdf_TRUE
748 DX_PDFLATEX
749 DX_FLAG_pdf
750 DX_COND_ps_FALSE
751 DX_COND_ps_TRUE
752 DX_EGREP
753 DX_DVIPS
754 DX_MAKEINDEX
755 DX_LATEX
756 DX_FLAG_ps
757 DX_COND_html_FALSE
758 DX_COND_html_TRUE
759 DX_FLAG_html
760 DX_COND_chi_FALSE
761 DX_COND_chi_TRUE
762 DX_FLAG_chi
763 DX_COND_chm_FALSE
764 DX_COND_chm_TRUE
765 DX_HHC
766 DX_FLAG_chm
767 DX_COND_xml_FALSE
768 DX_COND_xml_TRUE
769 DX_FLAG_xml
770 DX_COND_rtf_FALSE
771 DX_COND_rtf_TRUE
772 DX_FLAG_rtf
773 DX_COND_man_FALSE
774 DX_COND_man_TRUE
775 DX_FLAG_man
776 DX_COND_dot_FALSE
777 DX_COND_dot_TRUE
778 DX_DOT
779 DX_FLAG_dot
780 DX_COND_doc_FALSE
781 DX_COND_doc_TRUE
782 DX_PERL
783 DX_DOXYGEN
784 DX_FLAG_doc
785 DX_ENV
786 DX_DOCDIR
787 DX_CONFIG
788 DX_PROJECT
789 OBJDUMP
790 DLLTOOL
791 AS
792 target_os
793 target_vendor
794 target_cpu
795 target
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_doxygen_doc
846 enable_doxygen_dot
847 enable_doxygen_man
848 enable_doxygen_rtf
849 enable_doxygen_xml
850 enable_doxygen_chm
851 enable_doxygen_chi
852 enable_doxygen_html
853 enable_doxygen_ps
854 enable_doxygen_pdf
855 enable_dependency_tracking
856 enable_silent_rules
857 enable_shared
858 enable_static
859 with_pic
860 enable_fast_install
861 with_gnu_ld
862 with_sysroot
863 enable_libtool_lock
864 with_sdl_prefix
865 with_sdl_exec_prefix
866 enable_sdltest
867 enable_examples
868 with_x
869 '
870 ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 DOXYGEN_PAPER_SIZE
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 CPP
880 PKG_CONFIG
881 LIBUSB_CFLAGS
882 LIBUSB_LIBS
883 XMKMF'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures libdc1394 2.2.6 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libdc1394]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 X features:
1487 --x-includes=DIR X include files are in DIR
1488 --x-libraries=DIR X library files are in DIR
1489
1490 System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 --target=TARGET configure for building compilers for TARGET [HOST]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of libdc1394 2.2.6:";;
1500 esac
1501 cat <<\_ACEOF
1502
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --disable-doxygen-doc don't generate any doxygen documentation (requires
1508 doxygen package)
1509 --enable-doxygen-dot generate graphics for doxygen documentation
1510 (requires doxygen package)
1511 --enable-doxygen-man generate doxygen manual pages (requires doxygen
1512 package)
1513 --enable-doxygen-rtf generate doxygen RTF documentation (requires doxygen
1514 package)
1515 --enable-doxygen-xml generate doxygen XML documentation (requires doxygen
1516 package)
1517 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1518 (requires doxygen package)
1519 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1520 file (requires doxygen package)
1521 --enable-doxygen-html generate doxygen plain HTML documentation (requires
1522 doxygen package)
1523 --enable-doxygen-ps generate doxygen PostScript documentation (requires
1524 doxygen and latex packages)
1525 --enable-doxygen-pdf generate doxygen PDF documentation (requires doxygen
1526 and pdflatex packages)
1527 --enable-dependency-tracking
1528 do not reject slow dependency extractors
1529 --disable-dependency-tracking
1530 speeds up one-time build
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1538 --disable-sdltest Do not try to compile and run a test SDL program
1539 --disable-examples don't build example programs
1540
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1545 both]
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-sysroot=DIR Search for dependent libraries within DIR
1548 (or the compiler's sysroot if not specified).
1549 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1550 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1551 --with-x use the X Window System
1552
1553 Some influential environment variables:
1554 DOXYGEN_PAPER_SIZE
1555 a4wide (default), a4, letter, legal or executive
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564 PKG_CONFIG path to pkg-config utility
1565 LIBUSB_CFLAGS
1566 C compiler flags for LIBUSB, overriding pkg-config
1567 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1568 XMKMF Path to xmkmf, Makefile generator for X Window System
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <[email protected]>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 libdc1394 configure 2.2.6
1637 generated by GNU Autoconf 2.69
1638
1639 Copyright (C) 2012 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643 exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest$ac_exeext
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists and can be compiled using the include files in
1737 # INCLUDES, setting the cache variable VAR accordingly.
1738 ac_fn_c_check_header_compile ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 eval "$3=yes"
1753 else
1754 eval "$3=no"
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_header_compile
1764
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_cpp ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } > conftest.i && {
1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 }; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796 fi
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_cpp
1801
1802 # ac_fn_c_try_run LINENO
1803 # ----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805 # that executables *can* be run.
1806 ac_fn_c_try_run ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820 { { case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_try") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; }; }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: program exited with status $ac_status" >&5
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=$ac_status
1837 fi
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_run
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1915 # accordingly.
1916 ac_fn_c_check_header_mongrel ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if eval \${$3+:} false; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 else
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1939 else
1940 ac_header_compiler=no
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1945
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1955 else
1956 ac_header_preproc=no
1957 fi
1958 rm -f conftest.err conftest.i conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1961
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964 yes:no: )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 ;;
1970 no:yes:* )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 ( $as_echo "## ------------------------------------------- ##
1982 ## Report this to [email protected] ##
1983 ## ------------------------------------------- ##"
1984 ) | sed "s/^/$as_me: WARNING: /" >&2
1985 ;;
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_header_mongrel
2001
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041
2042 else
2043 eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_type
2055 cat >config.log <<_ACEOF
2056 This file contains any messages produced by compilers while
2057 running configure, to aid debugging if configure makes a mistake.
2058
2059 It was created by libdc1394 $as_me 2.2.6, which was
2060 generated by GNU Autoconf 2.69. Invocation command line was
2061
2062 $ $0 $@
2063
2064 _ACEOF
2065 exec 5>>config.log
2066 {
2067 cat <<_ASUNAME
2068 ## --------- ##
2069 ## Platform. ##
2070 ## --------- ##
2071
2072 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2080
2081 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2082 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2083 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2085 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2086 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2087 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2088
2089 _ASUNAME
2090
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 $as_echo "PATH: $as_dir"
2097 done
2098 IFS=$as_save_IFS
2099
2100 } >&5
2101
2102 cat >&5 <<_ACEOF
2103
2104
2105 ## ----------- ##
2106 ## Core tests. ##
2107 ## ----------- ##
2108
2109 _ACEOF
2110
2111
2112 # Keep a trace of the command line.
2113 # Strip out --no-create and --no-recursion so they do not pile up.
2114 # Strip out --silent because we don't want to record it for future runs.
2115 # Also quote any args containing shell meta-characters.
2116 # Make two passes to allow for proper duplicate-argument suppression.
2117 ac_configure_args=
2118 ac_configure_args0=
2119 ac_configure_args1=
2120 ac_must_keep_next=false
2121 for ac_pass in 1 2
2122 do
2123 for ac_arg
2124 do
2125 case $ac_arg in
2126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128 | -silent | --silent | --silen | --sile | --sil)
2129 continue ;;
2130 *\'*)
2131 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 esac
2133 case $ac_pass in
2134 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135 2)
2136 as_fn_append ac_configure_args1 " '$ac_arg'"
2137 if test $ac_must_keep_next = true; then
2138 ac_must_keep_next=false # Got value, back to normal.
2139 else
2140 case $ac_arg in
2141 *=* | --config-cache | -C | -disable-* | --disable-* \
2142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144 | -with-* | --with-* | -without-* | --without-* | --x)
2145 case "$ac_configure_args0 " in
2146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147 esac
2148 ;;
2149 -* ) ac_must_keep_next=true ;;
2150 esac
2151 fi
2152 as_fn_append ac_configure_args " '$ac_arg'"
2153 ;;
2154 esac
2155 done
2156 done
2157 { ac_configure_args0=; unset ac_configure_args0;}
2158 { ac_configure_args1=; unset ac_configure_args1;}
2159
2160 # When interrupted or exit'd, cleanup temporary files, and complete
2161 # config.log. We remove comments because anyway the quotes in there
2162 # would cause problems or look ugly.
2163 # WARNING: Use '\'' to represent an apostrophe within the trap.
2164 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165 trap 'exit_status=$?
2166 # Save into config.log some information that might help in debugging.
2167 {
2168 echo
2169
2170 $as_echo "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173 echo
2174 # The following way of writing the cache mishandles newlines in values,
2175 (
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in #(
2179 *${as_nl}*)
2180 case $ac_var in #(
2181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183 esac
2184 case $ac_var in #(
2185 _ | IFS | as_nl) ;; #(
2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187 *) { eval $ac_var=; unset $ac_var;} ;;
2188 esac ;;
2189 esac
2190 done
2191 (set) 2>&1 |
2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
2194 sed -n \
2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 ;; #(
2198 *)
2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200 ;;
2201 esac |
2202 sort
2203 )
2204 echo
2205
2206 $as_echo "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
2221 $as_echo "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224 echo
2225 for ac_var in $ac_subst_files
2226 do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 $as_echo "$ac_var='\''$ac_val'\''"
2232 done | sort
2233 echo
2234 fi
2235
2236 if test -s confdefs.h; then
2237 $as_echo "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240 echo
2241 cat confdefs.h
2242 echo
2243 fi
2244 test "$ac_signal" != 0 &&
2245 $as_echo "$as_me: caught signal $ac_signal"
2246 $as_echo "$as_me: exit $exit_status"
2247 } >&5
2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250 exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 $as_echo "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_NAME "$PACKAGE_NAME"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_STRING "$PACKAGE_STRING"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_URL "$PACKAGE_URL"
2286 _ACEOF
2287
2288
2289 # Let the site file select an alternate cache file if it wants to.
2290 # Prefer an explicitly selected file to automatically selected ones.
2291 ac_site_file1=NONE
2292 ac_site_file2=NONE
2293 if test -n "$CONFIG_SITE"; then
2294 # We do not want a PATH search for config.site.
2295 case $CONFIG_SITE in #((
2296 -*) ac_site_file1=./$CONFIG_SITE;;
2297 */*) ac_site_file1=$CONFIG_SITE;;
2298 *) ac_site_file1=./$CONFIG_SITE;;
2299 esac
2300 elif test "x$prefix" != xNONE; then
2301 ac_site_file1=$prefix/share/config.site
2302 ac_site_file2=$prefix/etc/config.site
2303 else
2304 ac_site_file1=$ac_default_prefix/share/config.site
2305 ac_site_file2=$ac_default_prefix/etc/config.site
2306 fi
2307 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 do
2309 test "x$ac_site_file" = xNONE && continue
2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313 sed 's/^/| /' "$ac_site_file" >&5
2314 . "$ac_site_file" \
2315 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2319 fi
2320 done
2321
2322 if test -r "$cache_file"; then
2323 # Some versions of bash will fail to source /dev/null (special files
2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 $as_echo "$as_me: loading cache $cache_file" >&6;}
2328 case $cache_file in
2329 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330 *) . "./$cache_file";;
2331 esac
2332 fi
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 $as_echo "$as_me: creating cache $cache_file" >&6;}
2336 >$cache_file
2337 fi
2338
2339 as_fn_append ac_header_list " stdlib.h"
2340 as_fn_append ac_header_list " unistd.h"
2341 as_fn_append ac_header_list " sys/param.h"
2342 # Check that the precious variables saved in the cache have kept the same
2343 # value.
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347 eval ac_new_set=\$ac_env_${ac_var}_set
2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349 eval ac_new_val=\$ac_env_${ac_var}_value
2350 case $ac_old_set,$ac_new_set in
2351 set,)
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2355 ,set)
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2359 ,);;
2360 *)
2361 if test "x$ac_old_val" != "x$ac_new_val"; then
2362 # differences in whitespace do not lead to failure.
2363 ac_old_val_w=`echo x $ac_old_val`
2364 ac_new_val_w=`echo x $ac_new_val`
2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368 ac_cache_corrupted=:
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372 eval $ac_var=\$ac_old_val
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2375 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2377 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2378 fi;;
2379 esac
2380 # Pass precious variables to config.status.
2381 if test "$ac_new_set" = set; then
2382 case $ac_new_val in
2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 *) ac_arg=$ac_var=$ac_new_val ;;
2385 esac
2386 case " $ac_configure_args " in
2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389 esac
2390 fi
2391 done
2392 if $ac_cache_corrupted; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398 fi
2399 ## -------------------- ##
2400 ## Main body of script. ##
2401 ## -------------------- ##
2402
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410
2411
2412
2413 # Macro to test for OS X Frameworks.
2414 # Taken from: http://lists.apple.com/archives/unix-porting/2009/Jan/msg00029.html
2415 # Retrieved on 24-10-2013.
2416 # Original Author: Peter O'Gorman.
2417 #
2418 # Example Usage:
2419 # AX_CHECK_FRAMEWORK([IOKit])
2420 # Defines:
2421 # HAVE_FRAMEWORK_IOKIT in config.h
2422 # And substitutes in your Makefiles.
2423 # FRAMEWORK_IOKIT="-framework IOKit"
2424
2425
2426
2427
2428 ac_aux_dir=
2429 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2430 if test -f "$ac_dir/install-sh"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/install-sh -c"
2433 break
2434 elif test -f "$ac_dir/install.sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install.sh -c"
2437 break
2438 elif test -f "$ac_dir/shtool"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 break
2442 fi
2443 done
2444 if test -z "$ac_aux_dir"; then
2445 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2446 fi
2447
2448 # These three variables are undocumented and unsupported,
2449 # and are intended to be withdrawn in a future Autoconf release.
2450 # They can cause serious problems if a builder's source tree is in a directory
2451 # whose full name contains unusual characters.
2452 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2453 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2454 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2455
2456
2457 # Make sure we can run config.sub.
2458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2462 $as_echo_n "checking build system type... " >&6; }
2463 if ${ac_cv_build+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2473
2474 fi
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2476 $as_echo "$ac_cv_build" >&6; }
2477 case $ac_cv_build in
2478 *-*-*) ;;
2479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2480 esac
2481 build=$ac_cv_build
2482 ac_save_IFS=$IFS; IFS='-'
2483 set x $ac_cv_build
2484 shift
2485 build_cpu=$1
2486 build_vendor=$2
2487 shift; shift
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2490 build_os=$*
2491 IFS=$ac_save_IFS
2492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2493
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2496 $as_echo_n "checking host system type... " >&6; }
2497 if ${ac_cv_host+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test "x$host_alias" = x; then
2501 ac_cv_host=$ac_cv_build
2502 else
2503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2505 fi
2506
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2509 $as_echo "$ac_cv_host" >&6; }
2510 case $ac_cv_host in
2511 *-*-*) ;;
2512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2513 esac
2514 host=$ac_cv_host
2515 ac_save_IFS=$IFS; IFS='-'
2516 set x $ac_cv_host
2517 shift
2518 host_cpu=$1
2519 host_vendor=$2
2520 shift; shift
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2523 host_os=$*
2524 IFS=$ac_save_IFS
2525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2526
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2529 $as_echo_n "checking target system type... " >&6; }
2530 if ${ac_cv_target+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test "x$target_alias" = x; then
2534 ac_cv_target=$ac_cv_host
2535 else
2536 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2538 fi
2539
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2542 $as_echo "$ac_cv_target" >&6; }
2543 case $ac_cv_target in
2544 *-*-*) ;;
2545 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2546 esac
2547 target=$ac_cv_target
2548 ac_save_IFS=$IFS; IFS='-'
2549 set x $ac_cv_target
2550 shift
2551 target_cpu=$1
2552 target_vendor=$2
2553 shift; shift
2554 # Remember, the first character of IFS is used to create $*,
2555 # except with old shells:
2556 target_os=$*
2557 IFS=$ac_save_IFS
2558 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2559
2560
2561 # The aliases save the names the user supplied, while $host etc.
2562 # will get canonicalized.
2563 test -n "$target_alias" &&
2564 test "$program_prefix$program_suffix$program_transform_name" = \
2565 NONENONEs,x,x, &&
2566 program_prefix=${target_alias}-
2567
2568
2569 case "$host" in
2570 *-*-cygwin* | *-*-mingw*)
2571 enable_win32_dll=yes
2572
2573 case $host in
2574 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}as; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_AS+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$AS"; then
2584 ac_cv_prog_AS="$AS" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_AS="${ac_tool_prefix}as"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 AS=$ac_cv_prog_AS
2604 if test -n "$AS"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2606 $as_echo "$AS" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612
2613 fi
2614 if test -z "$ac_cv_prog_AS"; then
2615 ac_ct_AS=$AS
2616 # Extract the first word of "as", so it can be a program name with args.
2617 set dummy as; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$ac_ct_AS"; then
2624 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_AS="as"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2644 if test -n "$ac_ct_AS"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2646 $as_echo "$ac_ct_AS" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652 if test "x$ac_ct_AS" = x; then
2653 AS="false"
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 AS=$ac_ct_AS
2662 fi
2663 else
2664 AS="$ac_cv_prog_AS"
2665 fi
2666
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_DLLTOOL+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$DLLTOOL"; then
2676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 DLLTOOL=$ac_cv_prog_DLLTOOL
2696 if test -n "$DLLTOOL"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2698 $as_echo "$DLLTOOL" >&6; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705 fi
2706 if test -z "$ac_cv_prog_DLLTOOL"; then
2707 ac_ct_DLLTOOL=$DLLTOOL
2708 # Extract the first word of "dlltool", so it can be a program name with args.
2709 set dummy dlltool; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$ac_ct_DLLTOOL"; then
2716 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2736 if test -n "$ac_ct_DLLTOOL"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2738 $as_echo "$ac_ct_DLLTOOL" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744 if test "x$ac_ct_DLLTOOL" = x; then
2745 DLLTOOL="false"
2746 else
2747 case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751 ac_tool_warned=yes ;;
2752 esac
2753 DLLTOOL=$ac_ct_DLLTOOL
2754 fi
2755 else
2756 DLLTOOL="$ac_cv_prog_DLLTOOL"
2757 fi
2758
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_OBJDUMP+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$OBJDUMP"; then
2768 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 OBJDUMP=$ac_cv_prog_OBJDUMP
2788 if test -n "$OBJDUMP"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2790 $as_echo "$OBJDUMP" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 fi
2798 if test -z "$ac_cv_prog_OBJDUMP"; then
2799 ac_ct_OBJDUMP=$OBJDUMP
2800 # Extract the first word of "objdump", so it can be a program name with args.
2801 set dummy objdump; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$ac_ct_OBJDUMP"; then
2808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2828 if test -n "$ac_ct_OBJDUMP"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2830 $as_echo "$ac_ct_OBJDUMP" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836 if test "x$ac_ct_OBJDUMP" = x; then
2837 OBJDUMP="false"
2838 else
2839 case $cross_compiling:$ac_tool_warned in
2840 yes:)
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843 ac_tool_warned=yes ;;
2844 esac
2845 OBJDUMP=$ac_ct_OBJDUMP
2846 fi
2847 else
2848 OBJDUMP="$ac_cv_prog_OBJDUMP"
2849 fi
2850
2851 ;;
2852 esac
2853
2854 test -z "$AS" && AS=as
2855
2856
2857
2858
2859
2860 test -z "$DLLTOOL" && DLLTOOL=dlltool
2861
2862
2863
2864
2865
2866 test -z "$OBJDUMP" && OBJDUMP=objdump
2867
2868
2869
2870
2871
2872
2873
2874 ;;
2875 esac
2876
2877 #
2878
2879
2880
2881
2882
2883
2884
2885
2886 #
2887
2888
2889 # Files:
2890 DX_PROJECT=libdc1394
2891
2892 DX_CONFIG=Doxyfile.in
2893
2894 DX_DOCDIR=doc
2895
2896
2897 # Environment variables used inside Doxyfile.in:
2898 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2899
2900 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2901
2902 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2903
2904 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2905
2906
2907 # Doxygen itself:
2908
2909
2910
2911 # Check whether --enable-doxygen-doc was given.
2912 if test "${enable_doxygen_doc+set}" = set; then :
2913 enableval=$enable_doxygen_doc;
2914 case "$enableval" in
2915 #(
2916 y|Y|yes|Yes|YES)
2917 DX_FLAG_doc=1
2918
2919
2920 ;; #(
2921 n|N|no|No|NO)
2922 DX_FLAG_doc=0
2923
2924 ;; #(
2925 *)
2926 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
2927 ;;
2928 esac
2929
2930 else
2931
2932 DX_FLAG_doc=1
2933
2934
2935
2936 fi
2937
2938 if test "$DX_FLAG_doc" = 1; then
2939
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 case $DX_DOXYGEN in
2949 [\\/]* | ?:[\\/]*)
2950 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2951 ;;
2952 *)
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 ;;
2969 esac
2970 fi
2971 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2972 if test -n "$DX_DOXYGEN"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
2974 $as_echo "$DX_DOXYGEN" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 fi
2982 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2983 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2984 # Extract the first word of "doxygen", so it can be a program name with args.
2985 set dummy doxygen; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 case $ac_pt_DX_DOXYGEN in
2992 [\\/]* | ?:[\\/]*)
2993 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2994 ;;
2995 *)
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 ;;
3012 esac
3013 fi
3014 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
3015 if test -n "$ac_pt_DX_DOXYGEN"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
3017 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023 if test "x$ac_pt_DX_DOXYGEN" = x; then
3024 DX_DOXYGEN=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
3033 fi
3034 else
3035 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
3036 fi
3037
3038 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation (requires doxygen package)" >&5
3040 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation (requires doxygen package)" >&2;}
3041 DX_FLAG_doc=0
3042
3043 fi
3044
3045
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}perl; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_path_DX_PERL+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 case $DX_PERL in
3055 [\\/]* | ?:[\\/]*)
3056 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
3057 ;;
3058 *)
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 ;;
3075 esac
3076 fi
3077 DX_PERL=$ac_cv_path_DX_PERL
3078 if test -n "$DX_PERL"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
3080 $as_echo "$DX_PERL" >&6; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087 fi
3088 if test -z "$ac_cv_path_DX_PERL"; then
3089 ac_pt_DX_PERL=$DX_PERL
3090 # Extract the first word of "perl", so it can be a program name with args.
3091 set dummy perl; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 case $ac_pt_DX_PERL in
3098 [\\/]* | ?:[\\/]*)
3099 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
3100 ;;
3101 *)
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 ;;
3118 esac
3119 fi
3120 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
3121 if test -n "$ac_pt_DX_PERL"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
3123 $as_echo "$ac_pt_DX_PERL" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129 if test "x$ac_pt_DX_PERL" = x; then
3130 DX_PERL=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 DX_PERL=$ac_pt_DX_PERL
3139 fi
3140 else
3141 DX_PERL="$ac_cv_path_DX_PERL"
3142 fi
3143
3144 if test "$DX_FLAG_doc$DX_PERL" = 1; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation (requires doxygen package)" >&5
3146 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation (requires doxygen package)" >&2;}
3147 DX_FLAG_doc=0
3148
3149 fi
3150
3151 :
3152 fi
3153 if test "$DX_FLAG_doc" = 1; then
3154 if :; then
3155 DX_COND_doc_TRUE=
3156 DX_COND_doc_FALSE='#'
3157 else
3158 DX_COND_doc_TRUE='#'
3159 DX_COND_doc_FALSE=
3160 fi
3161
3162 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
3163
3164 :
3165 else
3166 if false; then
3167 DX_COND_doc_TRUE=
3168 DX_COND_doc_FALSE='#'
3169 else
3170 DX_COND_doc_TRUE='#'
3171 DX_COND_doc_FALSE=
3172 fi
3173
3174
3175 :
3176 fi
3177
3178
3179 # Dot for graphics:
3180
3181
3182
3183 # Check whether --enable-doxygen-dot was given.
3184 if test "${enable_doxygen_dot+set}" = set; then :
3185 enableval=$enable_doxygen_dot;
3186 case "$enableval" in
3187 #(
3188 y|Y|yes|Yes|YES)
3189 DX_FLAG_dot=1
3190
3191
3192 test "$DX_FLAG_doc" = "1" \
3193 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
3194
3195 ;; #(
3196 n|N|no|No|NO)
3197 DX_FLAG_dot=0
3198
3199 ;; #(
3200 *)
3201 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
3202 ;;
3203 esac
3204
3205 else
3206
3207 DX_FLAG_dot=0
3208
3209
3210 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
3211
3212
3213
3214 fi
3215
3216 if test "$DX_FLAG_dot" = 1; then
3217
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}dot; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_path_DX_DOT+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 case $DX_DOT in
3227 [\\/]* | ?:[\\/]*)
3228 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
3229 ;;
3230 *)
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 ;;
3247 esac
3248 fi
3249 DX_DOT=$ac_cv_path_DX_DOT
3250 if test -n "$DX_DOT"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
3252 $as_echo "$DX_DOT" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259 fi
3260 if test -z "$ac_cv_path_DX_DOT"; then
3261 ac_pt_DX_DOT=$DX_DOT
3262 # Extract the first word of "dot", so it can be a program name with args.
3263 set dummy dot; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 case $ac_pt_DX_DOT in
3270 [\\/]* | ?:[\\/]*)
3271 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
3272 ;;
3273 *)
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 ;;
3290 esac
3291 fi
3292 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
3293 if test -n "$ac_pt_DX_DOT"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
3295 $as_echo "$ac_pt_DX_DOT" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301 if test "x$ac_pt_DX_DOT" = x; then
3302 DX_DOT=""
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305 yes:)
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3309 esac
3310 DX_DOT=$ac_pt_DX_DOT
3311 fi
3312 else
3313 DX_DOT="$ac_cv_path_DX_DOT"
3314 fi
3315
3316 if test "$DX_FLAG_dot$DX_DOT" = 1; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation (requires doxygen package)" >&5
3318 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation (requires doxygen package)" >&2;}
3319 DX_FLAG_dot=0
3320
3321 fi
3322
3323 :
3324 fi
3325 if test "$DX_FLAG_dot" = 1; then
3326 if :; then
3327 DX_COND_dot_TRUE=
3328 DX_COND_dot_FALSE='#'
3329 else
3330 DX_COND_dot_TRUE='#'
3331 DX_COND_dot_FALSE=
3332 fi
3333
3334 DX_ENV="$DX_ENV HAVE_DOT='YES'"
3335
3336 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
3337
3338 :
3339 else
3340 if false; then
3341 DX_COND_dot_TRUE=
3342 DX_COND_dot_FALSE='#'
3343 else
3344 DX_COND_dot_TRUE='#'
3345 DX_COND_dot_FALSE=
3346 fi
3347
3348 DX_ENV="$DX_ENV HAVE_DOT='NO'"
3349
3350 :
3351 fi
3352
3353
3354 # Man pages generation:
3355
3356
3357
3358 # Check whether --enable-doxygen-man was given.
3359 if test "${enable_doxygen_man+set}" = set; then :
3360 enableval=$enable_doxygen_man;
3361 case "$enableval" in
3362 #(
3363 y|Y|yes|Yes|YES)
3364 DX_FLAG_man=1
3365
3366
3367 test "$DX_FLAG_doc" = "1" \
3368 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
3369
3370 ;; #(
3371 n|N|no|No|NO)
3372 DX_FLAG_man=0
3373
3374 ;; #(
3375 *)
3376 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
3377 ;;
3378 esac
3379
3380 else
3381
3382 DX_FLAG_man=0
3383
3384
3385 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
3386
3387
3388
3389 fi
3390
3391 if test "$DX_FLAG_man" = 1; then
3392
3393 :
3394 fi
3395 if test "$DX_FLAG_man" = 1; then
3396 if :; then
3397 DX_COND_man_TRUE=
3398 DX_COND_man_FALSE='#'
3399 else
3400 DX_COND_man_TRUE='#'
3401 DX_COND_man_FALSE=
3402 fi
3403
3404 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
3405
3406 :
3407 else
3408 if false; then
3409 DX_COND_man_TRUE=
3410 DX_COND_man_FALSE='#'
3411 else
3412 DX_COND_man_TRUE='#'
3413 DX_COND_man_FALSE=
3414 fi
3415
3416 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
3417
3418 :
3419 fi
3420
3421
3422 # RTF file generation:
3423
3424
3425
3426 # Check whether --enable-doxygen-rtf was given.
3427 if test "${enable_doxygen_rtf+set}" = set; then :
3428 enableval=$enable_doxygen_rtf;
3429 case "$enableval" in
3430 #(
3431 y|Y|yes|Yes|YES)
3432 DX_FLAG_rtf=1
3433
3434
3435 test "$DX_FLAG_doc" = "1" \
3436 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
3437
3438 ;; #(
3439 n|N|no|No|NO)
3440 DX_FLAG_rtf=0
3441
3442 ;; #(
3443 *)
3444 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
3445 ;;
3446 esac
3447
3448 else
3449
3450 DX_FLAG_rtf=0
3451
3452
3453 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
3454
3455
3456
3457 fi
3458
3459 if test "$DX_FLAG_rtf" = 1; then
3460
3461 :
3462 fi
3463 if test "$DX_FLAG_rtf" = 1; then
3464 if :; then
3465 DX_COND_rtf_TRUE=
3466 DX_COND_rtf_FALSE='#'
3467 else
3468 DX_COND_rtf_TRUE='#'
3469 DX_COND_rtf_FALSE=
3470 fi
3471
3472 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
3473
3474 :
3475 else
3476 if false; then
3477 DX_COND_rtf_TRUE=
3478 DX_COND_rtf_FALSE='#'
3479 else
3480 DX_COND_rtf_TRUE='#'
3481 DX_COND_rtf_FALSE=
3482 fi
3483
3484 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
3485
3486 :
3487 fi
3488
3489
3490 # XML file generation:
3491
3492
3493
3494 # Check whether --enable-doxygen-xml was given.
3495 if test "${enable_doxygen_xml+set}" = set; then :
3496 enableval=$enable_doxygen_xml;
3497 case "$enableval" in
3498 #(
3499 y|Y|yes|Yes|YES)
3500 DX_FLAG_xml=1
3501
3502
3503 test "$DX_FLAG_doc" = "1" \
3504 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
3505
3506 ;; #(
3507 n|N|no|No|NO)
3508 DX_FLAG_xml=0
3509
3510 ;; #(
3511 *)
3512 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
3513 ;;
3514 esac
3515
3516 else
3517
3518 DX_FLAG_xml=0
3519
3520
3521 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
3522
3523
3524
3525 fi
3526
3527 if test "$DX_FLAG_xml" = 1; then
3528
3529 :
3530 fi
3531 if test "$DX_FLAG_xml" = 1; then
3532 if :; then
3533 DX_COND_xml_TRUE=
3534 DX_COND_xml_FALSE='#'
3535 else
3536 DX_COND_xml_TRUE='#'
3537 DX_COND_xml_FALSE=
3538 fi
3539
3540 DX_ENV="$DX_ENV GENERATE_XML='YES'"
3541
3542 :
3543 else
3544 if false; then
3545 DX_COND_xml_TRUE=
3546 DX_COND_xml_FALSE='#'
3547 else
3548 DX_COND_xml_TRUE='#'
3549 DX_COND_xml_FALSE=
3550 fi
3551
3552 DX_ENV="$DX_ENV GENERATE_XML='NO'"
3553
3554 :
3555 fi
3556
3557
3558 # (Compressed) HTML help generation:
3559
3560
3561
3562 # Check whether --enable-doxygen-chm was given.
3563 if test "${enable_doxygen_chm+set}" = set; then :
3564 enableval=$enable_doxygen_chm;
3565 case "$enableval" in
3566 #(
3567 y|Y|yes|Yes|YES)
3568 DX_FLAG_chm=1
3569
3570
3571 test "$DX_FLAG_doc" = "1" \
3572 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
3573
3574 ;; #(
3575 n|N|no|No|NO)
3576 DX_FLAG_chm=0
3577
3578 ;; #(
3579 *)
3580 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
3581 ;;
3582 esac
3583
3584 else
3585
3586 DX_FLAG_chm=0
3587
3588
3589 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
3590
3591
3592
3593 fi
3594
3595 if test "$DX_FLAG_chm" = 1; then
3596
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}hhc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_path_DX_HHC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 case $DX_HHC in
3606 [\\/]* | ?:[\\/]*)
3607 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
3608 ;;
3609 *)
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621 done
3622 done
3623 IFS=$as_save_IFS
3624
3625 ;;
3626 esac
3627 fi
3628 DX_HHC=$ac_cv_path_DX_HHC
3629 if test -n "$DX_HHC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
3631 $as_echo "$DX_HHC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 fi
3639 if test -z "$ac_cv_path_DX_HHC"; then
3640 ac_pt_DX_HHC=$DX_HHC
3641 # Extract the first word of "hhc", so it can be a program name with args.
3642 set dummy hhc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 case $ac_pt_DX_HHC in
3649 [\\/]* | ?:[\\/]*)
3650 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
3651 ;;
3652 *)
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664 done
3665 done
3666 IFS=$as_save_IFS
3667
3668 ;;
3669 esac
3670 fi
3671 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3672 if test -n "$ac_pt_DX_HHC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
3674 $as_echo "$ac_pt_DX_HHC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680 if test "x$ac_pt_DX_HHC" = x; then
3681 DX_HHC=""
3682 else
3683 case $cross_compiling:$ac_tool_warned in
3684 yes:)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687 ac_tool_warned=yes ;;
3688 esac
3689 DX_HHC=$ac_pt_DX_HHC
3690 fi
3691 else
3692 DX_HHC="$ac_cv_path_DX_HHC"
3693 fi
3694
3695 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation (requires doxygen package)" >&5
3697 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation (requires doxygen package)" >&2;}
3698 DX_FLAG_chm=0
3699
3700 fi
3701
3702 :
3703 fi
3704 if test "$DX_FLAG_chm" = 1; then
3705 if :; then
3706 DX_COND_chm_TRUE=
3707 DX_COND_chm_FALSE='#'
3708 else
3709 DX_COND_chm_TRUE='#'
3710 DX_COND_chm_FALSE=
3711 fi
3712
3713 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3714
3715 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3716
3717 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3718
3719 :
3720 else
3721 if false; then
3722 DX_COND_chm_TRUE=
3723 DX_COND_chm_FALSE='#'
3724 else
3725 DX_COND_chm_TRUE='#'
3726 DX_COND_chm_FALSE=
3727 fi
3728
3729 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3730
3731 :
3732 fi
3733
3734
3735 # Seperate CHI file generation.
3736
3737
3738
3739 # Check whether --enable-doxygen-chi was given.
3740 if test "${enable_doxygen_chi+set}" = set; then :
3741 enableval=$enable_doxygen_chi;
3742 case "$enableval" in
3743 #(
3744 y|Y|yes|Yes|YES)
3745 DX_FLAG_chi=1
3746
3747
3748 test "$DX_FLAG_chm" = "1" \
3749 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
3750
3751 ;; #(
3752 n|N|no|No|NO)
3753 DX_FLAG_chi=0
3754
3755 ;; #(
3756 *)
3757 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
3758 ;;
3759 esac
3760
3761 else
3762
3763 DX_FLAG_chi=0
3764
3765
3766 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3767
3768
3769
3770 fi
3771
3772 if test "$DX_FLAG_chi" = 1; then
3773
3774 :
3775 fi
3776 if test "$DX_FLAG_chi" = 1; then
3777 if :; then
3778 DX_COND_chi_TRUE=
3779 DX_COND_chi_FALSE='#'
3780 else
3781 DX_COND_chi_TRUE='#'
3782 DX_COND_chi_FALSE=
3783 fi
3784
3785 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3786
3787 :
3788 else
3789 if false; then
3790 DX_COND_chi_TRUE=
3791 DX_COND_chi_FALSE='#'
3792 else
3793 DX_COND_chi_TRUE='#'
3794 DX_COND_chi_FALSE=
3795 fi
3796
3797 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3798
3799 :
3800 fi
3801
3802
3803 # Plain HTML pages generation:
3804
3805
3806
3807 # Check whether --enable-doxygen-html was given.
3808 if test "${enable_doxygen_html+set}" = set; then :
3809 enableval=$enable_doxygen_html;
3810 case "$enableval" in
3811 #(
3812 y|Y|yes|Yes|YES)
3813 DX_FLAG_html=1
3814
3815
3816 test "$DX_FLAG_doc" = "1" \
3817 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
3818
3819 test "$DX_FLAG_chm" = "0" \
3820 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
3821
3822 ;; #(
3823 n|N|no|No|NO)
3824 DX_FLAG_html=0
3825
3826 ;; #(
3827 *)
3828 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
3829 ;;
3830 esac
3831
3832 else
3833
3834 DX_FLAG_html=0
3835
3836
3837 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3838
3839
3840 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3841
3842
3843
3844 fi
3845
3846 if test "$DX_FLAG_html" = 1; then
3847
3848 :
3849 fi
3850 if test "$DX_FLAG_html" = 1; then
3851 if :; then
3852 DX_COND_html_TRUE=
3853 DX_COND_html_FALSE='#'
3854 else
3855 DX_COND_html_TRUE='#'
3856 DX_COND_html_FALSE=
3857 fi
3858
3859 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3860
3861 :
3862 else
3863 if false; then
3864 DX_COND_html_TRUE=
3865 DX_COND_html_FALSE='#'
3866 else
3867 DX_COND_html_TRUE='#'
3868 DX_COND_html_FALSE=
3869 fi
3870
3871 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3872
3873 :
3874 fi
3875
3876
3877 # PostScript file generation:
3878
3879
3880
3881 # Check whether --enable-doxygen-ps was given.
3882 if test "${enable_doxygen_ps+set}" = set; then :
3883 enableval=$enable_doxygen_ps;
3884 case "$enableval" in
3885 #(
3886 y|Y|yes|Yes|YES)
3887 DX_FLAG_ps=1
3888
3889
3890 test "$DX_FLAG_doc" = "1" \
3891 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
3892
3893 ;; #(
3894 n|N|no|No|NO)
3895 DX_FLAG_ps=0
3896
3897 ;; #(
3898 *)
3899 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
3900 ;;
3901 esac
3902
3903 else
3904
3905 DX_FLAG_ps=0
3906
3907
3908 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3909
3910
3911
3912 fi
3913
3914 if test "$DX_FLAG_ps" = 1; then
3915
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}latex; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_path_DX_LATEX+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 case $DX_LATEX in
3925 [\\/]* | ?:[\\/]*)
3926 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3927 ;;
3928 *)
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 ;;
3945 esac
3946 fi
3947 DX_LATEX=$ac_cv_path_DX_LATEX
3948 if test -n "$DX_LATEX"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
3950 $as_echo "$DX_LATEX" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 if test -z "$ac_cv_path_DX_LATEX"; then
3959 ac_pt_DX_LATEX=$DX_LATEX
3960 # Extract the first word of "latex", so it can be a program name with args.
3961 set dummy latex; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 case $ac_pt_DX_LATEX in
3968 [\\/]* | ?:[\\/]*)
3969 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3970 ;;
3971 *)
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 ;;
3988 esac
3989 fi
3990 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3991 if test -n "$ac_pt_DX_LATEX"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
3993 $as_echo "$ac_pt_DX_LATEX" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999 if test "x$ac_pt_DX_LATEX" = x; then
4000 DX_LATEX=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 DX_LATEX=$ac_pt_DX_LATEX
4009 fi
4010 else
4011 DX_LATEX="$ac_cv_path_DX_LATEX"
4012 fi
4013
4014 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&5
4016 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&2;}
4017 DX_FLAG_ps=0
4018
4019 fi
4020
4021
4022 if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
4024 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 case $DX_MAKEINDEX in
4031 [\\/]* | ?:[\\/]*)
4032 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
4033 ;;
4034 *)
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 ;;
4051 esac
4052 fi
4053 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
4054 if test -n "$DX_MAKEINDEX"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
4056 $as_echo "$DX_MAKEINDEX" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
4065 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
4066 # Extract the first word of "makeindex", so it can be a program name with args.
4067 set dummy makeindex; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 case $ac_pt_DX_MAKEINDEX in
4074 [\\/]* | ?:[\\/]*)
4075 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
4076 ;;
4077 *)
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089 done
4090 done
4091 IFS=$as_save_IFS
4092
4093 ;;
4094 esac
4095 fi
4096 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
4097 if test -n "$ac_pt_DX_MAKEINDEX"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
4099 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105 if test "x$ac_pt_DX_MAKEINDEX" = x; then
4106 DX_MAKEINDEX=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
4115 fi
4116 else
4117 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
4118 fi
4119
4120 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&5
4122 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&2;}
4123 DX_FLAG_ps=0
4124
4125 fi
4126
4127
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}dvips; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_path_DX_DVIPS+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 case $DX_DVIPS in
4137 [\\/]* | ?:[\\/]*)
4138 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
4139 ;;
4140 *)
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152 done
4153 done
4154 IFS=$as_save_IFS
4155
4156 ;;
4157 esac
4158 fi
4159 DX_DVIPS=$ac_cv_path_DX_DVIPS
4160 if test -n "$DX_DVIPS"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
4162 $as_echo "$DX_DVIPS" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$ac_cv_path_DX_DVIPS"; then
4171 ac_pt_DX_DVIPS=$DX_DVIPS
4172 # Extract the first word of "dvips", so it can be a program name with args.
4173 set dummy dvips; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 case $ac_pt_DX_DVIPS in
4180 [\\/]* | ?:[\\/]*)
4181 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
4182 ;;
4183 *)
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 ;;
4200 esac
4201 fi
4202 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
4203 if test -n "$ac_pt_DX_DVIPS"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
4205 $as_echo "$ac_pt_DX_DVIPS" >&6; }
4206 else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211 if test "x$ac_pt_DX_DVIPS" = x; then
4212 DX_DVIPS=""
4213 else
4214 case $cross_compiling:$ac_tool_warned in
4215 yes:)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4219 esac
4220 DX_DVIPS=$ac_pt_DX_DVIPS
4221 fi
4222 else
4223 DX_DVIPS="$ac_cv_path_DX_DVIPS"
4224 fi
4225
4226 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&5
4228 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&2;}
4229 DX_FLAG_ps=0
4230
4231 fi
4232
4233
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}egrep; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_path_DX_EGREP+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 case $DX_EGREP in
4243 [\\/]* | ?:[\\/]*)
4244 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
4245 ;;
4246 *)
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 break 2
4257 fi
4258 done
4259 done
4260 IFS=$as_save_IFS
4261
4262 ;;
4263 esac
4264 fi
4265 DX_EGREP=$ac_cv_path_DX_EGREP
4266 if test -n "$DX_EGREP"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
4268 $as_echo "$DX_EGREP" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 fi
4276 if test -z "$ac_cv_path_DX_EGREP"; then
4277 ac_pt_DX_EGREP=$DX_EGREP
4278 # Extract the first word of "egrep", so it can be a program name with args.
4279 set dummy egrep; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 case $ac_pt_DX_EGREP in
4286 [\\/]* | ?:[\\/]*)
4287 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
4288 ;;
4289 *)
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 ;;
4306 esac
4307 fi
4308 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
4309 if test -n "$ac_pt_DX_EGREP"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
4311 $as_echo "$ac_pt_DX_EGREP" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317 if test "x$ac_pt_DX_EGREP" = x; then
4318 DX_EGREP=""
4319 else
4320 case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326 DX_EGREP=$ac_pt_DX_EGREP
4327 fi
4328 else
4329 DX_EGREP="$ac_cv_path_DX_EGREP"
4330 fi
4331
4332 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&5
4334 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation (requires doxygen and latex packages)" >&2;}
4335 DX_FLAG_ps=0
4336
4337 fi
4338
4339 :
4340 fi
4341 if test "$DX_FLAG_ps" = 1; then
4342 if :; then
4343 DX_COND_ps_TRUE=
4344 DX_COND_ps_FALSE='#'
4345 else
4346 DX_COND_ps_TRUE='#'
4347 DX_COND_ps_FALSE=
4348 fi
4349
4350
4351 :
4352 else
4353 if false; then
4354 DX_COND_ps_TRUE=
4355 DX_COND_ps_FALSE='#'
4356 else
4357 DX_COND_ps_TRUE='#'
4358 DX_COND_ps_FALSE=
4359 fi
4360
4361
4362 :
4363 fi
4364
4365
4366 # PDF file generation:
4367
4368
4369
4370 # Check whether --enable-doxygen-pdf was given.
4371 if test "${enable_doxygen_pdf+set}" = set; then :
4372 enableval=$enable_doxygen_pdf;
4373 case "$enableval" in
4374 #(
4375 y|Y|yes|Yes|YES)
4376 DX_FLAG_pdf=1
4377
4378
4379 test "$DX_FLAG_doc" = "1" \
4380 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
4381
4382 ;; #(
4383 n|N|no|No|NO)
4384 DX_FLAG_pdf=0
4385
4386 ;; #(
4387 *)
4388 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
4389 ;;
4390 esac
4391
4392 else
4393
4394 DX_FLAG_pdf=0
4395
4396
4397 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
4398
4399
4400
4401 fi
4402
4403 if test "$DX_FLAG_pdf" = 1; then
4404
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 case $DX_PDFLATEX in
4414 [\\/]* | ?:[\\/]*)
4415 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
4416 ;;
4417 *)
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 ;;
4434 esac
4435 fi
4436 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
4437 if test -n "$DX_PDFLATEX"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
4439 $as_echo "$DX_PDFLATEX" >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4443 fi
4444
4445
4446 fi
4447 if test -z "$ac_cv_path_DX_PDFLATEX"; then
4448 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
4449 # Extract the first word of "pdflatex", so it can be a program name with args.
4450 set dummy pdflatex; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 case $ac_pt_DX_PDFLATEX in
4457 [\\/]* | ?:[\\/]*)
4458 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
4459 ;;
4460 *)
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 ;;
4477 esac
4478 fi
4479 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
4480 if test -n "$ac_pt_DX_PDFLATEX"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
4482 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488 if test "x$ac_pt_DX_PDFLATEX" = x; then
4489 DX_PDFLATEX=""
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
4498 fi
4499 else
4500 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
4501 fi
4502
4503 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&5
4505 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&2;}
4506 DX_FLAG_pdf=0
4507
4508 fi
4509
4510
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
4513 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 case $DX_MAKEINDEX in
4520 [\\/]* | ?:[\\/]*)
4521 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
4522 ;;
4523 *)
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537 IFS=$as_save_IFS
4538
4539 ;;
4540 esac
4541 fi
4542 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
4543 if test -n "$DX_MAKEINDEX"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
4545 $as_echo "$DX_MAKEINDEX" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 fi
4550
4551
4552 fi
4553 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
4554 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
4555 # Extract the first word of "makeindex", so it can be a program name with args.
4556 set dummy makeindex; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 case $ac_pt_DX_MAKEINDEX in
4563 [\\/]* | ?:[\\/]*)
4564 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
4565 ;;
4566 *)
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 ;;
4583 esac
4584 fi
4585 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
4586 if test -n "$ac_pt_DX_MAKEINDEX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
4588 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594 if test "x$ac_pt_DX_MAKEINDEX" = x; then
4595 DX_MAKEINDEX=""
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
4604 fi
4605 else
4606 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
4607 fi
4608
4609 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&5
4611 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&2;}
4612 DX_FLAG_pdf=0
4613
4614 fi
4615
4616
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}egrep; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_DX_EGREP+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 case $DX_EGREP in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 ;;
4646 esac
4647 fi
4648 DX_EGREP=$ac_cv_path_DX_EGREP
4649 if test -n "$DX_EGREP"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
4651 $as_echo "$DX_EGREP" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658 fi
4659 if test -z "$ac_cv_path_DX_EGREP"; then
4660 ac_pt_DX_EGREP=$DX_EGREP
4661 # Extract the first word of "egrep", so it can be a program name with args.
4662 set dummy egrep; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 case $ac_pt_DX_EGREP in
4669 [\\/]* | ?:[\\/]*)
4670 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
4671 ;;
4672 *)
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 ;;
4689 esac
4690 fi
4691 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
4692 if test -n "$ac_pt_DX_EGREP"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
4694 $as_echo "$ac_pt_DX_EGREP" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700 if test "x$ac_pt_DX_EGREP" = x; then
4701 DX_EGREP=""
4702 else
4703 case $cross_compiling:$ac_tool_warned in
4704 yes:)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 DX_EGREP=$ac_pt_DX_EGREP
4710 fi
4711 else
4712 DX_EGREP="$ac_cv_path_DX_EGREP"
4713 fi
4714
4715 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&5
4717 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation (requires doxygen and pdflatex packages)" >&2;}
4718 DX_FLAG_pdf=0
4719
4720 fi
4721
4722 :
4723 fi
4724 if test "$DX_FLAG_pdf" = 1; then
4725 if :; then
4726 DX_COND_pdf_TRUE=
4727 DX_COND_pdf_FALSE='#'
4728 else
4729 DX_COND_pdf_TRUE='#'
4730 DX_COND_pdf_FALSE=
4731 fi
4732
4733
4734 :
4735 else
4736 if false; then
4737 DX_COND_pdf_TRUE=
4738 DX_COND_pdf_FALSE='#'
4739 else
4740 DX_COND_pdf_TRUE='#'
4741 DX_COND_pdf_FALSE=
4742 fi
4743
4744
4745 :
4746 fi
4747
4748
4749 # LaTeX generation for PS and/or PDF:
4750 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4751 if :; then
4752 DX_COND_latex_TRUE=
4753 DX_COND_latex_FALSE='#'
4754 else
4755 DX_COND_latex_TRUE='#'
4756 DX_COND_latex_FALSE=
4757 fi
4758
4759 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4760
4761 else
4762 if false; then
4763 DX_COND_latex_TRUE=
4764 DX_COND_latex_FALSE='#'
4765 else
4766 DX_COND_latex_TRUE='#'
4767 DX_COND_latex_FALSE=
4768 fi
4769
4770 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4771
4772 fi
4773
4774 # Paper size for PS and/or PDF:
4775
4776 case "$DOXYGEN_PAPER_SIZE" in
4777 #(
4778 "")
4779 DOXYGEN_PAPER_SIZE=""
4780
4781 ;; #(
4782 a4wide|a4|letter|legal|executive)
4783 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4784
4785 ;; #(
4786 *)
4787 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
4788 ;;
4789 esac
4790
4791 #For debugging:
4792 #echo DX_FLAG_doc=$DX_FLAG_doc
4793 #echo DX_FLAG_dot=$DX_FLAG_dot
4794 #echo DX_FLAG_man=$DX_FLAG_man
4795 #echo DX_FLAG_html=$DX_FLAG_html
4796 #echo DX_FLAG_chm=$DX_FLAG_chm
4797 #echo DX_FLAG_chi=$DX_FLAG_chi
4798 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4799 #echo DX_FLAG_xml=$DX_FLAG_xml
4800 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4801 #echo DX_FLAG_ps=$DX_FLAG_ps
4802 #echo DX_ENV=$DX_ENV
4803
4804 #
4805 # expand $ac_aux_dir to an absolute path
4806 am_aux_dir=`cd $ac_aux_dir && pwd`
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_CC+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 CC=$ac_cv_prog_CC
4842 if test -n "$CC"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844 $as_echo "$CC" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_prog_CC"; then
4853 ac_ct_CC=$CC
4854 # Extract the first word of "gcc", so it can be a program name with args.
4855 set dummy gcc; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_ac_ct_CC="gcc"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890 if test "x$ac_ct_CC" = x; then
4891 CC=""
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899 CC=$ac_ct_CC
4900 fi
4901 else
4902 CC="$ac_cv_prog_CC"
4903 fi
4904
4905 if test -z "$CC"; then
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}cc; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_CC+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$CC"; then
4915 ac_cv_prog_CC="$CC" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_CC="${ac_tool_prefix}cc"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 CC=$ac_cv_prog_CC
4935 if test -n "$CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4937 $as_echo "$CC" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 fi
4945 fi
4946 if test -z "$CC"; then
4947 # Extract the first word of "cc", so it can be a program name with args.
4948 set dummy cc; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_CC+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$CC"; then
4955 ac_cv_prog_CC="$CC" # Let the user override the test.
4956 else
4957 ac_prog_rejected=no
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4966 ac_prog_rejected=yes
4967 continue
4968 fi
4969 ac_cv_prog_CC="cc"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 if test $ac_prog_rejected = yes; then
4978 # We found a bogon in the path, so make sure we never use it.
4979 set dummy $ac_cv_prog_CC
4980 shift
4981 if test $# != 0; then
4982 # We chose a different compiler from the bogus one.
4983 # However, it has the same basename, so the bogon will be chosen
4984 # first if we set CC to just the basename; use the full file name.
4985 shift
4986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4987 fi
4988 fi
4989 fi
4990 fi
4991 CC=$ac_cv_prog_CC
4992 if test -n "$CC"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4994 $as_echo "$CC" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 fi
5002 if test -z "$CC"; then
5003 if test -n "$ac_tool_prefix"; then
5004 for ac_prog in cl.exe
5005 do
5006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_CC+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$CC"; then
5014 ac_cv_prog_CC="$CC" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 CC=$ac_cv_prog_CC
5034 if test -n "$CC"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5036 $as_echo "$CC" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 test -n "$CC" && break
5044 done
5045 fi
5046 if test -z "$CC"; then
5047 ac_ct_CC=$CC
5048 for ac_prog in cl.exe
5049 do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$ac_ct_CC"; then
5058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_CC="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5078 if test -n "$ac_ct_CC"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5080 $as_echo "$ac_ct_CC" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 test -n "$ac_ct_CC" && break
5088 done
5089
5090 if test "x$ac_ct_CC" = x; then
5091 CC=""
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094 yes:)
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097 ac_tool_warned=yes ;;
5098 esac
5099 CC=$ac_ct_CC
5100 fi
5101 fi
5102
5103 fi
5104
5105
5106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5108 as_fn_error $? "no acceptable C compiler found in \$PATH
5109 See \`config.log' for more details" "$LINENO" 5; }
5110
5111 # Provide some information about the compiler.
5112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5113 set X $ac_compile
5114 ac_compiler=$2
5115 for ac_option in --version -v -V -qversion; do
5116 { { ac_try="$ac_compiler $ac_option >&5"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5124 ac_status=$?
5125 if test -s conftest.err; then
5126 sed '10a\
5127 ... rest of stderr output deleted ...
5128 10q' conftest.err >conftest.er1
5129 cat conftest.er1 >&5
5130 fi
5131 rm -f conftest.er1 conftest.err
5132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133 test $ac_status = 0; }
5134 done
5135
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main ()
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 ac_clean_files_save=$ac_clean_files
5148 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5149 # Try to create an executable without -o first, disregard a.out.
5150 # It will help us diagnose broken compilers, and finding out an intuition
5151 # of exeext.
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5153 $as_echo_n "checking whether the C compiler works... " >&6; }
5154 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5155
5156 # The possible output files:
5157 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5158
5159 ac_rmfiles=
5160 for ac_file in $ac_files
5161 do
5162 case $ac_file in
5163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5164 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5165 esac
5166 done
5167 rm -f $ac_rmfiles
5168
5169 if { { ac_try="$ac_link_default"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175 $as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_link_default") 2>&5
5177 ac_status=$?
5178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179 test $ac_status = 0; }; then :
5180 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5181 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5182 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5183 # so that the user can short-circuit this test for compilers unknown to
5184 # Autoconf.
5185 for ac_file in $ac_files ''
5186 do
5187 test -f "$ac_file" || continue
5188 case $ac_file in
5189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5190 ;;
5191 [ab].out )
5192 # We found the default executable, but exeext='' is most
5193 # certainly right.
5194 break;;
5195 *.* )
5196 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5197 then :; else
5198 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5199 fi
5200 # We set ac_cv_exeext here because the later test for it is not
5201 # safe: cross compilers may not add the suffix if given an `-o'
5202 # argument, so we may need to know it at that point already.
5203 # Even if this section looks crufty: it has the advantage of
5204 # actually working.
5205 break;;
5206 * )
5207 break;;
5208 esac
5209 done
5210 test "$ac_cv_exeext" = no && ac_cv_exeext=
5211
5212 else
5213 ac_file=''
5214 fi
5215 if test -z "$ac_file"; then :
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 $as_echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 as_fn_error 77 "C compiler cannot create executables
5224 See \`config.log' for more details" "$LINENO" 5; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5230 $as_echo_n "checking for C compiler default output file name... " >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5232 $as_echo "$ac_file" >&6; }
5233 ac_exeext=$ac_cv_exeext
5234
5235 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5236 ac_clean_files=$ac_clean_files_save
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5238 $as_echo_n "checking for suffix of executables... " >&6; }
5239 if { { ac_try="$ac_link"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5245 $as_echo "$ac_try_echo"; } >&5
5246 (eval "$ac_link") 2>&5
5247 ac_status=$?
5248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249 test $ac_status = 0; }; then :
5250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5252 # work properly (i.e., refer to `conftest.exe'), while it won't with
5253 # `rm'.
5254 for ac_file in conftest.exe conftest conftest.*; do
5255 test -f "$ac_file" || continue
5256 case $ac_file in
5257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5259 break;;
5260 * ) break;;
5261 esac
5262 done
5263 else
5264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5266 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5267 See \`config.log' for more details" "$LINENO" 5; }
5268 fi
5269 rm -f conftest conftest$ac_cv_exeext
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5271 $as_echo "$ac_cv_exeext" >&6; }
5272
5273 rm -f conftest.$ac_ext
5274 EXEEXT=$ac_cv_exeext
5275 ac_exeext=$EXEEXT
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <stdio.h>
5279 int
5280 main ()
5281 {
5282 FILE *f = fopen ("conftest.out", "w");
5283 return ferror (f) || fclose (f) != 0;
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 ac_clean_files="$ac_clean_files conftest.out"
5290 # Check that the compiler produces executables we can run. If not, either
5291 # the compiler is broken, or we cross compile.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5293 $as_echo_n "checking whether we are cross compiling... " >&6; }
5294 if test "$cross_compiling" != yes; then
5295 { { ac_try="$ac_link"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5301 $as_echo "$ac_try_echo"; } >&5
5302 (eval "$ac_link") 2>&5
5303 ac_status=$?
5304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5305 test $ac_status = 0; }
5306 if { ac_try='./conftest$ac_cv_exeext'
5307 { { case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5312 $as_echo "$ac_try_echo"; } >&5
5313 (eval "$ac_try") 2>&5
5314 ac_status=$?
5315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }; }; then
5317 cross_compiling=no
5318 else
5319 if test "$cross_compiling" = maybe; then
5320 cross_compiling=yes
5321 else
5322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5324 as_fn_error $? "cannot run C compiled programs.
5325 If you meant to cross compile, use \`--host'.
5326 See \`config.log' for more details" "$LINENO" 5; }
5327 fi
5328 fi
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5331 $as_echo "$cross_compiling" >&6; }
5332
5333 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5334 ac_clean_files=$ac_clean_files_save
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5336 $as_echo_n "checking for suffix of object files... " >&6; }
5337 if ${ac_cv_objext+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342
5343 int
5344 main ()
5345 {
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.o conftest.obj
5352 if { { ac_try="$ac_compile"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5358 $as_echo "$ac_try_echo"; } >&5
5359 (eval "$ac_compile") 2>&5
5360 ac_status=$?
5361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5362 test $ac_status = 0; }; then :
5363 for ac_file in conftest.o conftest.obj conftest.*; do
5364 test -f "$ac_file" || continue;
5365 case $ac_file in
5366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5368 break;;
5369 esac
5370 done
5371 else
5372 $as_echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5377 as_fn_error $? "cannot compute suffix of object files: cannot compile
5378 See \`config.log' for more details" "$LINENO" 5; }
5379 fi
5380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5383 $as_echo "$ac_cv_objext" >&6; }
5384 OBJEXT=$ac_cv_objext
5385 ac_objext=$OBJEXT
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5388 if ${ac_cv_c_compiler_gnu+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393
5394 int
5395 main ()
5396 {
5397 #ifndef __GNUC__
5398 choke me
5399 #endif
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_compiler_gnu=yes
5407 else
5408 ac_compiler_gnu=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5416 if test $ac_compiler_gnu = yes; then
5417 GCC=yes
5418 else
5419 GCC=
5420 fi
5421 ac_test_CFLAGS=${CFLAGS+set}
5422 ac_save_CFLAGS=$CFLAGS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5425 if ${ac_cv_prog_cc_g+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 ac_save_c_werror_flag=$ac_c_werror_flag
5429 ac_c_werror_flag=yes
5430 ac_cv_prog_cc_g=no
5431 CFLAGS="-g"
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434
5435 int
5436 main ()
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_prog_cc_g=yes
5445 else
5446 CFLAGS=""
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449
5450 int
5451 main ()
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459
5460 else
5461 ac_c_werror_flag=$ac_save_c_werror_flag
5462 CFLAGS="-g"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465
5466 int
5467 main ()
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_prog_cc_g=yes
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_c_werror_flag=$ac_save_c_werror_flag
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5485 $as_echo "$ac_cv_prog_cc_g" >&6; }
5486 if test "$ac_test_CFLAGS" = set; then
5487 CFLAGS=$ac_save_CFLAGS
5488 elif test $ac_cv_prog_cc_g = yes; then
5489 if test "$GCC" = yes; then
5490 CFLAGS="-g -O2"
5491 else
5492 CFLAGS="-g"
5493 fi
5494 else
5495 if test "$GCC" = yes; then
5496 CFLAGS="-O2"
5497 else
5498 CFLAGS=
5499 fi
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5503 if ${ac_cv_prog_cc_c89+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 ac_cv_prog_cc_c89=no
5507 ac_save_CC=$CC
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <stdarg.h>
5511 #include <stdio.h>
5512 struct stat;
5513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5514 struct buf { int x; };
5515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5516 static char *e (p, i)
5517 char **p;
5518 int i;
5519 {
5520 return p[i];
5521 }
5522 static char *f (char * (*g) (char **, int), char **p, ...)
5523 {
5524 char *s;
5525 va_list v;
5526 va_start (v,p);
5527 s = g (p, va_arg (v,int));
5528 va_end (v);
5529 return s;
5530 }
5531
5532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5533 function prototypes and stuff, but not '\xHH' hex character constants.
5534 These don't provoke an error unfortunately, instead are silently treated
5535 as 'x'. The following induces an error, until -std is added to get
5536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5537 array size at least. It's necessary to write '\x00'==0 to get something
5538 that's true only with -std. */
5539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5540
5541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5542 inside strings and character constants. */
5543 #define FOO(x) 'x'
5544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5545
5546 int test (int i, double x);
5547 struct s1 {int (*f) (int a);};
5548 struct s2 {int (*f) (double a);};
5549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5550 int argc;
5551 char **argv;
5552 int
5553 main ()
5554 {
5555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5562 do
5563 CC="$ac_save_CC $ac_arg"
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_prog_cc_c89=$ac_arg
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5569 done
5570 rm -f conftest.$ac_ext
5571 CC=$ac_save_CC
5572
5573 fi
5574 # AC_CACHE_VAL
5575 case "x$ac_cv_prog_cc_c89" in
5576 x)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5578 $as_echo "none needed" >&6; } ;;
5579 xno)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581 $as_echo "unsupported" >&6; } ;;
5582 *)
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5586 esac
5587 if test "x$ac_cv_prog_cc_c89" != xno; then :
5588
5589 fi
5590
5591 ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5603 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5604 if ${am_cv_prog_cc_c_o+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 # Make sure it works both with $CC and with simple cc.
5619 # Following AC_PROG_CC_C_O, we do the test twice because some
5620 # compilers refuse to overwrite an existing .o file with -o,
5621 # though they will create one.
5622 am_cv_prog_cc_c_o=yes
5623 for am_i in 1 2; do
5624 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5625 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } \
5629 && test -f conftest2.$ac_objext; then
5630 : OK
5631 else
5632 am_cv_prog_cc_c_o=no
5633 break
5634 fi
5635 done
5636 rm -f core conftest*
5637 unset am_i
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5640 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5641 if test "$am_cv_prog_cc_c_o" != yes; then
5642 # Losing compiler, so override with the script.
5643 # FIXME: It is wrong to rewrite CC.
5644 # But if we don't then we get into trouble of one sort or another.
5645 # A longer-term fix would be to have automake use am__CC in this case,
5646 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5647 CC="$am_aux_dir/compile $CC"
5648 fi
5649 ac_ext=c
5650 ac_cpp='$CPP $CPPFLAGS'
5651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656
5657 if test -n "$ac_tool_prefix"; then
5658 for ac_prog in ar lib "link -lib"
5659 do
5660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_AR+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$AR"; then
5668 ac_cv_prog_AR="$AR" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 AR=$ac_cv_prog_AR
5688 if test -n "$AR"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5690 $as_echo "$AR" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697 test -n "$AR" && break
5698 done
5699 fi
5700 if test -z "$AR"; then
5701 ac_ct_AR=$AR
5702 for ac_prog in ar lib "link -lib"
5703 do
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$ac_ct_AR"; then
5712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_AR="$ac_prog"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5732 if test -n "$ac_ct_AR"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5734 $as_echo "$ac_ct_AR" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741 test -n "$ac_ct_AR" && break
5742 done
5743
5744 if test "x$ac_ct_AR" = x; then
5745 AR="false"
5746 else
5747 case $cross_compiling:$ac_tool_warned in
5748 yes:)
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751 ac_tool_warned=yes ;;
5752 esac
5753 AR=$ac_ct_AR
5754 fi
5755 fi
5756
5757 : ${AR=ar}
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5760 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5761 if ${am_cv_ar_interface+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 ac_ext=c
5765 ac_cpp='$CPP $CPPFLAGS'
5766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5769
5770 am_cv_ar_interface=ar
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 int some_variable = 0;
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5778 (eval $am_ar_try) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 if test "$ac_status" -eq 0; then
5783 am_cv_ar_interface=ar
5784 else
5785 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5787 (eval $am_ar_try) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; }
5791 if test "$ac_status" -eq 0; then
5792 am_cv_ar_interface=lib
5793 else
5794 am_cv_ar_interface=unknown
5795 fi
5796 fi
5797 rm -f conftest.lib libconftest.a
5798
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ac_ext=c
5802 ac_cpp='$CPP $CPPFLAGS'
5803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5809 $as_echo "$am_cv_ar_interface" >&6; }
5810
5811 case $am_cv_ar_interface in
5812 ar)
5813 ;;
5814 lib)
5815 # Microsoft lib, so override with the ar-lib wrapper script.
5816 # FIXME: It is wrong to rewrite AR.
5817 # But if we don't then we get into trouble of one sort or another.
5818 # A longer-term fix would be to have automake use am__AR in this case,
5819 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5820 # similar.
5821 AR="$am_aux_dir/ar-lib $AR"
5822 ;;
5823 unknown)
5824 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5825 ;;
5826 esac
5827
5828 am__api_version='1.14'
5829
5830 # Find a good install program. We prefer a C program (faster),
5831 # so one script is as good as another. But avoid the broken or
5832 # incompatible versions:
5833 # SysV /etc/install, /usr/sbin/install
5834 # SunOS /usr/etc/install
5835 # IRIX /sbin/install
5836 # AIX /bin/install
5837 # AmigaOS /C/install, which installs bootblocks on floppy discs
5838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5841 # OS/2's system install, which has a completely different semantic
5842 # ./install, which can be erroneously created by make from ./install.sh.
5843 # Reject install programs that cannot install multiple files.
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5846 if test -z "$INSTALL"; then
5847 if ${ac_cv_path_install+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 # Account for people who put trailing slashes in PATH elements.
5856 case $as_dir/ in #((
5857 ./ | .// | /[cC]/* | \
5858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5860 /usr/ucb/* ) ;;
5861 *)
5862 # OSF1 and SCO ODT 3.0 have their own names for install.
5863 # Don't use installbsd from OSF since it installs stuff as root
5864 # by default.
5865 for ac_prog in ginstall scoinst install; do
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5868 if test $ac_prog = install &&
5869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5870 # AIX install. It has an incompatible calling convention.
5871 :
5872 elif test $ac_prog = install &&
5873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5874 # program-specific install script used by HP pwplus--don't use.
5875 :
5876 else
5877 rm -rf conftest.one conftest.two conftest.dir
5878 echo one > conftest.one
5879 echo two > conftest.two
5880 mkdir conftest.dir
5881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5882 test -s conftest.one && test -s conftest.two &&
5883 test -s conftest.dir/conftest.one &&
5884 test -s conftest.dir/conftest.two
5885 then
5886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5887 break 3
5888 fi
5889 fi
5890 fi
5891 done
5892 done
5893 ;;
5894 esac
5895
5896 done
5897 IFS=$as_save_IFS
5898
5899 rm -rf conftest.one conftest.two conftest.dir
5900
5901 fi
5902 if test "${ac_cv_path_install+set}" = set; then
5903 INSTALL=$ac_cv_path_install
5904 else
5905 # As a last resort, use the slow shell script. Don't cache a
5906 # value for INSTALL within a source directory, because that will
5907 # break other packages using the cache if that directory is
5908 # removed, or if the value is a relative name.
5909 INSTALL=$ac_install_sh
5910 fi
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5913 $as_echo "$INSTALL" >&6; }
5914
5915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5916 # It thinks the first close brace ends the variable substitution.
5917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5918
5919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5920
5921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5924 $as_echo_n "checking whether build environment is sane... " >&6; }
5925 # Reject unsafe characters in $srcdir or the absolute working directory
5926 # name. Accept space and tab only in the latter.
5927 am_lf='
5928 '
5929 case `pwd` in
5930 *[\\\"\#\$\&\'\`$am_lf]*)
5931 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5932 esac
5933 case $srcdir in
5934 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5935 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5936 esac
5937
5938 # Do 'set' in a subshell so we don't clobber the current shell's
5939 # arguments. Must try -L first in case configure is actually a
5940 # symlink; some systems play weird games with the mod time of symlinks
5941 # (eg FreeBSD returns the mod time of the symlink's containing
5942 # directory).
5943 if (
5944 am_has_slept=no
5945 for am_try in 1 2; do
5946 echo "timestamp, slept: $am_has_slept" > conftest.file
5947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5948 if test "$*" = "X"; then
5949 # -L didn't work.
5950 set X `ls -t "$srcdir/configure" conftest.file`
5951 fi
5952 if test "$*" != "X $srcdir/configure conftest.file" \
5953 && test "$*" != "X conftest.file $srcdir/configure"; then
5954
5955 # If neither matched, then we have a broken ls. This can happen
5956 # if, for instance, CONFIG_SHELL is bash and it inherits a
5957 # broken ls alias from the environment. This has actually
5958 # happened. Such a system could not be considered "sane".
5959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5960 alias in your environment" "$LINENO" 5
5961 fi
5962 if test "$2" = conftest.file || test $am_try -eq 2; then
5963 break
5964 fi
5965 # Just in case.
5966 sleep 1
5967 am_has_slept=yes
5968 done
5969 test "$2" = conftest.file
5970 )
5971 then
5972 # Ok.
5973 :
5974 else
5975 as_fn_error $? "newly created file is older than distributed files!
5976 Check your system clock" "$LINENO" 5
5977 fi
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979 $as_echo "yes" >&6; }
5980 # If we didn't sleep, we still need to ensure time stamps of config.status and
5981 # generated files are strictly newer.
5982 am_sleep_pid=
5983 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5984 ( sleep 1 ) &
5985 am_sleep_pid=$!
5986 fi
5987
5988 rm -f conftest.file
5989
5990 test "$program_prefix" != NONE &&
5991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5992 # Use a double $ so make ignores it.
5993 test "$program_suffix" != NONE &&
5994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5995 # Double any \ or $.
5996 # By default was `s,x,x', remove it if useless.
5997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5998 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5999
6000 if test x"${MISSING+set}" != xset; then
6001 case $am_aux_dir in
6002 *\ * | *\ *)
6003 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6004 *)
6005 MISSING="\${SHELL} $am_aux_dir/missing" ;;
6006 esac
6007 fi
6008 # Use eval to expand $SHELL
6009 if eval "$MISSING --is-lightweight"; then
6010 am_missing_run="$MISSING "
6011 else
6012 am_missing_run=
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6014 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6015 fi
6016
6017 if test x"${install_sh}" != xset; then
6018 case $am_aux_dir in
6019 *\ * | *\ *)
6020 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6021 *)
6022 install_sh="\${SHELL} $am_aux_dir/install-sh"
6023 esac
6024 fi
6025
6026 # Installed binaries are usually stripped using 'strip' when the user
6027 # run "make install-strip". However 'strip' might not be the right
6028 # tool to use in cross-compilation environments, therefore Automake
6029 # will honor the 'STRIP' environment variable to overrule this program.
6030 if test "$cross_compiling" != no; then
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}strip; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_STRIP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$STRIP"; then
6040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 STRIP=$ac_cv_prog_STRIP
6060 if test -n "$STRIP"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6062 $as_echo "$STRIP" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069 fi
6070 if test -z "$ac_cv_prog_STRIP"; then
6071 ac_ct_STRIP=$STRIP
6072 # Extract the first word of "strip", so it can be a program name with args.
6073 set dummy strip; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_STRIP"; then
6080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_STRIP="strip"
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 fi
6098 fi
6099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6100 if test -n "$ac_ct_STRIP"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6102 $as_echo "$ac_ct_STRIP" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108 if test "x$ac_ct_STRIP" = x; then
6109 STRIP=":"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 STRIP=$ac_ct_STRIP
6118 fi
6119 else
6120 STRIP="$ac_cv_prog_STRIP"
6121 fi
6122
6123 fi
6124 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6127 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6128 if test -z "$MKDIR_P"; then
6129 if ${ac_cv_path_mkdir+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6134 do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_prog in mkdir gmkdir; do
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6141 'mkdir (GNU coreutils) '* | \
6142 'mkdir (coreutils) '* | \
6143 'mkdir (fileutils) '4.1*)
6144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6145 break 3;;
6146 esac
6147 done
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153
6154 test -d ./--version && rmdir ./--version
6155 if test "${ac_cv_path_mkdir+set}" = set; then
6156 MKDIR_P="$ac_cv_path_mkdir -p"
6157 else
6158 # As a last resort, use the slow shell script. Don't cache a
6159 # value for MKDIR_P within a source directory, because that will
6160 # break other packages using the cache if that directory is
6161 # removed, or if the value is a relative name.
6162 MKDIR_P="$ac_install_sh -d"
6163 fi
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6166 $as_echo "$MKDIR_P" >&6; }
6167
6168 for ac_prog in gawk mawk nawk awk
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_AWK+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if test -n "$AWK"; then
6178 ac_cv_prog_AWK="$AWK" # 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_AWK="$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 AWK=$ac_cv_prog_AWK
6198 if test -n "$AWK"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6200 $as_echo "$AWK" >&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 "$AWK" && break
6208 done
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6211 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6212 set x ${MAKE-make}
6213 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6214 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 cat >conftest.make <<\_ACEOF
6218 SHELL = /bin/sh
6219 all:
6220 @echo '@@@%%%=$(MAKE)=@@@%%%'
6221 _ACEOF
6222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6224 *@@@%%%=?*=@@@%%%*)
6225 eval ac_cv_prog_make_${ac_make}_set=yes;;
6226 *)
6227 eval ac_cv_prog_make_${ac_make}_set=no;;
6228 esac
6229 rm -f conftest.make
6230 fi
6231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6233 $as_echo "yes" >&6; }
6234 SET_MAKE=
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 SET_MAKE="MAKE=${MAKE-make}"
6239 fi
6240
6241 rm -rf .tst 2>/dev/null
6242 mkdir .tst 2>/dev/null
6243 if test -d .tst; then
6244 am__leading_dot=.
6245 else
6246 am__leading_dot=_
6247 fi
6248 rmdir .tst 2>/dev/null
6249
6250 DEPDIR="${am__leading_dot}deps"
6251
6252 ac_config_commands="$ac_config_commands depfiles"
6253
6254
6255 am_make=${MAKE-make}
6256 cat > confinc << 'END'
6257 am__doit:
6258 @echo this is the am__doit target
6259 .PHONY: am__doit
6260 END
6261 # If we don't find an include directive, just comment out the code.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6263 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6264 am__include="#"
6265 am__quote=
6266 _am_result=none
6267 # First try GNU make style include.
6268 echo "include confinc" > confmf
6269 # Ignore all kinds of additional output from 'make'.
6270 case `$am_make -s -f confmf 2> /dev/null` in #(
6271 *the\ am__doit\ target*)
6272 am__include=include
6273 am__quote=
6274 _am_result=GNU
6275 ;;
6276 esac
6277 # Now try BSD make style include.
6278 if test "$am__include" = "#"; then
6279 echo '.include "confinc"' > confmf
6280 case `$am_make -s -f confmf 2> /dev/null` in #(
6281 *the\ am__doit\ target*)
6282 am__include=.include
6283 am__quote="\""
6284 _am_result=BSD
6285 ;;
6286 esac
6287 fi
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6291 $as_echo "$_am_result" >&6; }
6292 rm -f confinc confmf
6293
6294 # Check whether --enable-dependency-tracking was given.
6295 if test "${enable_dependency_tracking+set}" = set; then :
6296 enableval=$enable_dependency_tracking;
6297 fi
6298
6299 if test "x$enable_dependency_tracking" != xno; then
6300 am_depcomp="$ac_aux_dir/depcomp"
6301 AMDEPBACKSLASH='\'
6302 am__nodep='_no'
6303 fi
6304 if test "x$enable_dependency_tracking" != xno; then
6305 AMDEP_TRUE=
6306 AMDEP_FALSE='#'
6307 else
6308 AMDEP_TRUE='#'
6309 AMDEP_FALSE=
6310 fi
6311
6312
6313 # Check whether --enable-silent-rules was given.
6314 if test "${enable_silent_rules+set}" = set; then :
6315 enableval=$enable_silent_rules;
6316 fi
6317
6318 case $enable_silent_rules in # (((
6319 yes) AM_DEFAULT_VERBOSITY=0;;
6320 no) AM_DEFAULT_VERBOSITY=1;;
6321 *) AM_DEFAULT_VERBOSITY=1;;
6322 esac
6323 am_make=${MAKE-make}
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6325 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6326 if ${am_cv_make_support_nested_variables+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if $as_echo 'TRUE=$(BAR$(V))
6330 BAR0=false
6331 BAR1=true
6332 V=1
6333 am__doit:
6334 @$(TRUE)
6335 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6336 am_cv_make_support_nested_variables=yes
6337 else
6338 am_cv_make_support_nested_variables=no
6339 fi
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6342 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6343 if test $am_cv_make_support_nested_variables = yes; then
6344 AM_V='$(V)'
6345 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6346 else
6347 AM_V=$AM_DEFAULT_VERBOSITY
6348 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6349 fi
6350 AM_BACKSLASH='\'
6351
6352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6354 # is not polluted with repeated "-I."
6355 am__isrc=' -I$(srcdir)'
6356 # test to see if srcdir already configured
6357 if test -f $srcdir/config.status; then
6358 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6359 fi
6360 fi
6361
6362 # test whether we have cygpath
6363 if test -z "$CYGPATH_W"; then
6364 if (cygpath --version) >/dev/null 2>/dev/null; then
6365 CYGPATH_W='cygpath -w'
6366 else
6367 CYGPATH_W=echo
6368 fi
6369 fi
6370
6371
6372 # Define the identity of the package.
6373 PACKAGE='libdc1394'
6374 VERSION='2.2.6'
6375
6376
6377 cat >>confdefs.h <<_ACEOF
6378 #define PACKAGE "$PACKAGE"
6379 _ACEOF
6380
6381
6382 cat >>confdefs.h <<_ACEOF
6383 #define VERSION "$VERSION"
6384 _ACEOF
6385
6386 # Some tools Automake needs.
6387
6388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6389
6390
6391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6392
6393
6394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6395
6396
6397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6398
6399
6400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6401
6402 # For better backward compatibility. To be removed once Automake 1.9.x
6403 # dies out for good. For more background, see:
6404 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6405 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6406 mkdir_p='$(MKDIR_P)'
6407
6408 # We need awk for the "check" target. The system "awk" is bad on
6409 # some platforms.
6410 # Always define AMTAR for backward compatibility. Yes, it's still used
6411 # in the wild :-( We should find a proper way to deprecate it ...
6412 AMTAR='$${TAR-tar}'
6413
6414
6415 # We'll loop over all known methods to create a tar archive until one works.
6416 _am_tools='gnutar pax cpio none'
6417
6418 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6419
6420
6421
6422
6423
6424 depcc="$CC" am_compiler_list=
6425
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6427 $as_echo_n "checking dependency style of $depcc... " >&6; }
6428 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6432 # We make a subdir and do the tests there. Otherwise we can end up
6433 # making bogus files that we don't know about and never remove. For
6434 # instance it was reported that on HP-UX the gcc test will end up
6435 # making a dummy file named 'D' -- because '-MD' means "put the output
6436 # in D".
6437 rm -rf conftest.dir
6438 mkdir conftest.dir
6439 # Copy depcomp to subdir because otherwise we won't find it if we're
6440 # using a relative directory.
6441 cp "$am_depcomp" conftest.dir
6442 cd conftest.dir
6443 # We will build objects and dependencies in a subdirectory because
6444 # it helps to detect inapplicable dependency modes. For instance
6445 # both Tru64's cc and ICC support -MD to output dependencies as a
6446 # side effect of compilation, but ICC will put the dependencies in
6447 # the current directory while Tru64 will put them in the object
6448 # directory.
6449 mkdir sub
6450
6451 am_cv_CC_dependencies_compiler_type=none
6452 if test "$am_compiler_list" = ""; then
6453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6454 fi
6455 am__universal=false
6456 case " $depcc " in #(
6457 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6458 esac
6459
6460 for depmode in $am_compiler_list; do
6461 # Setup a source with many dependencies, because some compilers
6462 # like to wrap large dependency lists on column 80 (with \), and
6463 # we should not choose a depcomp mode which is confused by this.
6464 #
6465 # We need to recreate these files for each test, as the compiler may
6466 # overwrite some of them when testing with obscure command lines.
6467 # This happens at least with the AIX C compiler.
6468 : > sub/conftest.c
6469 for i in 1 2 3 4 5 6; do
6470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6471 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6472 # Solaris 10 /bin/sh.
6473 echo '/* dummy */' > sub/conftst$i.h
6474 done
6475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6476
6477 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6478 # mode. It turns out that the SunPro C++ compiler does not properly
6479 # handle '-M -o', and we need to detect this. Also, some Intel
6480 # versions had trouble with output in subdirs.
6481 am__obj=sub/conftest.${OBJEXT-o}
6482 am__minus_obj="-o $am__obj"
6483 case $depmode in
6484 gcc)
6485 # This depmode causes a compiler race in universal mode.
6486 test "$am__universal" = false || continue
6487 ;;
6488 nosideeffect)
6489 # After this tag, mechanisms are not by side-effect, so they'll
6490 # only be used when explicitly requested.
6491 if test "x$enable_dependency_tracking" = xyes; then
6492 continue
6493 else
6494 break
6495 fi
6496 ;;
6497 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6498 # This compiler won't grok '-c -o', but also, the minuso test has
6499 # not run yet. These depmodes are late enough in the game, and
6500 # so weak that their functioning should not be impacted.
6501 am__obj=conftest.${OBJEXT-o}
6502 am__minus_obj=
6503 ;;
6504 none) break ;;
6505 esac
6506 if depmode=$depmode \
6507 source=sub/conftest.c object=$am__obj \
6508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6510 >/dev/null 2>conftest.err &&
6511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6515 # icc doesn't choke on unknown options, it will just issue warnings
6516 # or remarks (even with -Werror). So we grep stderr for any message
6517 # that says an option was ignored or not supported.
6518 # When given -MP, icc 7.0 and 7.1 complain thusly:
6519 # icc: Command line warning: ignoring option '-M'; no argument required
6520 # The diagnosis changed in icc 8.0:
6521 # icc: Command line remark: option '-MP' not supported
6522 if (grep 'ignoring option' conftest.err ||
6523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6524 am_cv_CC_dependencies_compiler_type=$depmode
6525 break
6526 fi
6527 fi
6528 done
6529
6530 cd ..
6531 rm -rf conftest.dir
6532 else
6533 am_cv_CC_dependencies_compiler_type=none
6534 fi
6535
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6538 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6540
6541 if
6542 test "x$enable_dependency_tracking" != xno \
6543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6544 am__fastdepCC_TRUE=
6545 am__fastdepCC_FALSE='#'
6546 else
6547 am__fastdepCC_TRUE='#'
6548 am__fastdepCC_FALSE=
6549 fi
6550
6551
6552
6553 # POSIX will say in a future version that running "rm -f" with no argument
6554 # is OK; and we want to be able to make that assumption in our Makefile
6555 # recipes. So use an aggressive probe to check that the usage we want is
6556 # actually supported "in the wild" to an acceptable degree.
6557 # See automake bug#10828.
6558 # To make any issue more visible, cause the running configure to be aborted
6559 # by default if the 'rm' program in use doesn't match our expectations; the
6560 # user can still override this though.
6561 if rm -f && rm -fr && rm -rf; then : OK; else
6562 cat >&2 <<'END'
6563 Oops!
6564
6565 Your 'rm' program seems unable to run without file operands specified
6566 on the command line, even when the '-f' option is present. This is contrary
6567 to the behaviour of most rm programs out there, and not conforming with
6568 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6569
6570 Please tell [email protected] about your system, including the value
6571 of your $PATH and any error possibly output before this message. This
6572 can help us improve future automake versions.
6573
6574 END
6575 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6576 echo 'Configuration will proceed anyway, since you have set the' >&2
6577 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6578 echo >&2
6579 else
6580 cat >&2 <<'END'
6581 Aborting the configuration process, to ensure you take notice of the issue.
6582
6583 You can download and install GNU coreutils to get an 'rm' implementation
6584 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6585
6586 If you want to complete the configuration process using your problematic
6587 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6588 to "yes", and re-run configure.
6589
6590 END
6591 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6592 fi
6593 fi
6594 ac_config_headers="$ac_config_headers config.h"
6595
6596
6597 ac_ext=c
6598 ac_cpp='$CPP $CPPFLAGS'
6599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_CC+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$CC"; then
6611 ac_cv_prog_CC="$CC" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 CC=$ac_cv_prog_CC
6631 if test -n "$CC"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6633 $as_echo "$CC" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_CC"; then
6642 ac_ct_CC=$CC
6643 # Extract the first word of "gcc", so it can be a program name with args.
6644 set dummy gcc; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$ac_ct_CC"; then
6651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_CC="gcc"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6671 if test -n "$ac_ct_CC"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6673 $as_echo "$ac_ct_CC" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679 if test "x$ac_ct_CC" = x; then
6680 CC=""
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 CC=$ac_ct_CC
6689 fi
6690 else
6691 CC="$ac_cv_prog_CC"
6692 fi
6693
6694 if test -z "$CC"; then
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}cc; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_CC+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$CC"; then
6704 ac_cv_prog_CC="$CC" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_CC="${ac_tool_prefix}cc"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 CC=$ac_cv_prog_CC
6724 if test -n "$CC"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6726 $as_echo "$CC" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733 fi
6734 fi
6735 if test -z "$CC"; then
6736 # Extract the first word of "cc", so it can be a program name with args.
6737 set dummy cc; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_prog_CC+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$CC"; then
6744 ac_cv_prog_CC="$CC" # Let the user override the test.
6745 else
6746 ac_prog_rejected=no
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6755 ac_prog_rejected=yes
6756 continue
6757 fi
6758 ac_cv_prog_CC="cc"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 if test $ac_prog_rejected = yes; then
6767 # We found a bogon in the path, so make sure we never use it.
6768 set dummy $ac_cv_prog_CC
6769 shift
6770 if test $# != 0; then
6771 # We chose a different compiler from the bogus one.
6772 # However, it has the same basename, so the bogon will be chosen
6773 # first if we set CC to just the basename; use the full file name.
6774 shift
6775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6776 fi
6777 fi
6778 fi
6779 fi
6780 CC=$ac_cv_prog_CC
6781 if test -n "$CC"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6783 $as_echo "$CC" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789
6790 fi
6791 if test -z "$CC"; then
6792 if test -n "$ac_tool_prefix"; then
6793 for ac_prog in cl.exe
6794 do
6795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_CC+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$CC"; then
6803 ac_cv_prog_CC="$CC" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 CC=$ac_cv_prog_CC
6823 if test -n "$CC"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6825 $as_echo "$CC" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 test -n "$CC" && break
6833 done
6834 fi
6835 if test -z "$CC"; then
6836 ac_ct_CC=$CC
6837 for ac_prog in cl.exe
6838 do
6839 # Extract the first word of "$ac_prog", so it can be a program name with args.
6840 set dummy $ac_prog; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$ac_ct_CC"; then
6847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_ac_ct_CC="$ac_prog"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6867 if test -n "$ac_ct_CC"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6869 $as_echo "$ac_ct_CC" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 test -n "$ac_ct_CC" && break
6877 done
6878
6879 if test "x$ac_ct_CC" = x; then
6880 CC=""
6881 else
6882 case $cross_compiling:$ac_tool_warned in
6883 yes:)
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886 ac_tool_warned=yes ;;
6887 esac
6888 CC=$ac_ct_CC
6889 fi
6890 fi
6891
6892 fi
6893
6894
6895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6897 as_fn_error $? "no acceptable C compiler found in \$PATH
6898 See \`config.log' for more details" "$LINENO" 5; }
6899
6900 # Provide some information about the compiler.
6901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6902 set X $ac_compile
6903 ac_compiler=$2
6904 for ac_option in --version -v -V -qversion; do
6905 { { ac_try="$ac_compiler $ac_option >&5"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6911 $as_echo "$ac_try_echo"; } >&5
6912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6913 ac_status=$?
6914 if test -s conftest.err; then
6915 sed '10a\
6916 ... rest of stderr output deleted ...
6917 10q' conftest.err >conftest.er1
6918 cat conftest.er1 >&5
6919 fi
6920 rm -f conftest.er1 conftest.err
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }
6923 done
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6927 if ${ac_cv_c_compiler_gnu+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932
6933 int
6934 main ()
6935 {
6936 #ifndef __GNUC__
6937 choke me
6938 #endif
6939
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 ac_compiler_gnu=yes
6946 else
6947 ac_compiler_gnu=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6951
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6955 if test $ac_compiler_gnu = yes; then
6956 GCC=yes
6957 else
6958 GCC=
6959 fi
6960 ac_test_CFLAGS=${CFLAGS+set}
6961 ac_save_CFLAGS=$CFLAGS
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6964 if ${ac_cv_prog_cc_g+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 ac_save_c_werror_flag=$ac_c_werror_flag
6968 ac_c_werror_flag=yes
6969 ac_cv_prog_cc_g=no
6970 CFLAGS="-g"
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973
6974 int
6975 main ()
6976 {
6977
6978 ;
6979 return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 ac_cv_prog_cc_g=yes
6984 else
6985 CFLAGS=""
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988
6989 int
6990 main ()
6991 {
6992
6993 ;
6994 return 0;
6995 }
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"; then :
6998
6999 else
7000 ac_c_werror_flag=$ac_save_c_werror_flag
7001 CFLAGS="-g"
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"; then :
7014 ac_cv_prog_cc_g=yes
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 ac_c_werror_flag=$ac_save_c_werror_flag
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7024 $as_echo "$ac_cv_prog_cc_g" >&6; }
7025 if test "$ac_test_CFLAGS" = set; then
7026 CFLAGS=$ac_save_CFLAGS
7027 elif test $ac_cv_prog_cc_g = yes; then
7028 if test "$GCC" = yes; then
7029 CFLAGS="-g -O2"
7030 else
7031 CFLAGS="-g"
7032 fi
7033 else
7034 if test "$GCC" = yes; then
7035 CFLAGS="-O2"
7036 else
7037 CFLAGS=
7038 fi
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7042 if ${ac_cv_prog_cc_c89+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 ac_cv_prog_cc_c89=no
7046 ac_save_CC=$CC
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <stdarg.h>
7050 #include <stdio.h>
7051 struct stat;
7052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7053 struct buf { int x; };
7054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7055 static char *e (p, i)
7056 char **p;
7057 int i;
7058 {
7059 return p[i];
7060 }
7061 static char *f (char * (*g) (char **, int), char **p, ...)
7062 {
7063 char *s;
7064 va_list v;
7065 va_start (v,p);
7066 s = g (p, va_arg (v,int));
7067 va_end (v);
7068 return s;
7069 }
7070
7071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7072 function prototypes and stuff, but not '\xHH' hex character constants.
7073 These don't provoke an error unfortunately, instead are silently treated
7074 as 'x'. The following induces an error, until -std is added to get
7075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7076 array size at least. It's necessary to write '\x00'==0 to get something
7077 that's true only with -std. */
7078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7079
7080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7081 inside strings and character constants. */
7082 #define FOO(x) 'x'
7083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7084
7085 int test (int i, double x);
7086 struct s1 {int (*f) (int a);};
7087 struct s2 {int (*f) (double a);};
7088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7089 int argc;
7090 char **argv;
7091 int
7092 main ()
7093 {
7094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7095 ;
7096 return 0;
7097 }
7098 _ACEOF
7099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7101 do
7102 CC="$ac_save_CC $ac_arg"
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 ac_cv_prog_cc_c89=$ac_arg
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext
7107 test "x$ac_cv_prog_cc_c89" != "xno" && break
7108 done
7109 rm -f conftest.$ac_ext
7110 CC=$ac_save_CC
7111
7112 fi
7113 # AC_CACHE_VAL
7114 case "x$ac_cv_prog_cc_c89" in
7115 x)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7117 $as_echo "none needed" >&6; } ;;
7118 xno)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120 $as_echo "unsupported" >&6; } ;;
7121 *)
7122 CC="$CC $ac_cv_prog_cc_c89"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7125 esac
7126 if test "x$ac_cv_prog_cc_c89" != xno; then :
7127
7128 fi
7129
7130 ac_ext=c
7131 ac_cpp='$CPP $CPPFLAGS'
7132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135
7136 ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7142 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7143 if ${am_cv_prog_cc_c_o+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148
7149 int
7150 main ()
7151 {
7152
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 # Make sure it works both with $CC and with simple cc.
7158 # Following AC_PROG_CC_C_O, we do the test twice because some
7159 # compilers refuse to overwrite an existing .o file with -o,
7160 # though they will create one.
7161 am_cv_prog_cc_c_o=yes
7162 for am_i in 1 2; do
7163 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7164 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } \
7168 && test -f conftest2.$ac_objext; then
7169 : OK
7170 else
7171 am_cv_prog_cc_c_o=no
7172 break
7173 fi
7174 done
7175 rm -f core conftest*
7176 unset am_i
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7179 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7180 if test "$am_cv_prog_cc_c_o" != yes; then
7181 # Losing compiler, so override with the script.
7182 # FIXME: It is wrong to rewrite CC.
7183 # But if we don't then we get into trouble of one sort or another.
7184 # A longer-term fix would be to have automake use am__CC in this case,
7185 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7186 CC="$am_aux_dir/compile $CC"
7187 fi
7188 ac_ext=c
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194
7195 case `pwd` in
7196 *\ * | *\ *)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7198 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7199 esac
7200
7201
7202
7203 macro_version='2.4.2'
7204 macro_revision='1.3337'
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 ltmain="$ac_aux_dir/ltmain.sh"
7219
7220 # Backslashify metacharacters that are still active within
7221 # double-quoted strings.
7222 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7223
7224 # Same as above, but do not quote variable references.
7225 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7226
7227 # Sed substitution to delay expansion of an escaped shell variable in a
7228 # double_quote_subst'ed string.
7229 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7230
7231 # Sed substitution to delay expansion of an escaped single quote.
7232 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7233
7234 # Sed substitution to avoid accidental globbing in evaled expressions
7235 no_glob_subst='s/\*/\\\*/g'
7236
7237 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7238 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7239 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7242 $as_echo_n "checking how to print strings... " >&6; }
7243 # Test print first, because it will be a builtin if present.
7244 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7245 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7246 ECHO='print -r --'
7247 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7248 ECHO='printf %s\n'
7249 else
7250 # Use this function as a fallback that always works.
7251 func_fallback_echo ()
7252 {
7253 eval 'cat <<_LTECHO_EOF
7254 $1
7255 _LTECHO_EOF'
7256 }
7257 ECHO='func_fallback_echo'
7258 fi
7259
7260 # func_echo_all arg...
7261 # Invoke $ECHO with all args, space-separated.
7262 func_echo_all ()
7263 {
7264 $ECHO ""
7265 }
7266
7267 case "$ECHO" in
7268 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7269 $as_echo "printf" >&6; } ;;
7270 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7271 $as_echo "print -r" >&6; } ;;
7272 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7273 $as_echo "cat" >&6; } ;;
7274 esac
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7290 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7291 if ${ac_cv_path_SED+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7295 for ac_i in 1 2 3 4 5 6 7; do
7296 ac_script="$ac_script$as_nl$ac_script"
7297 done
7298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7299 { ac_script=; unset ac_script;}
7300 if test -z "$SED"; then
7301 ac_path_SED_found=false
7302 # Loop through the user's path and test for each of PROGNAME-LIST
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_prog in sed gsed; do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7311 as_fn_executable_p "$ac_path_SED" || continue
7312 # Check for GNU ac_path_SED and select it if it is found.
7313 # Check for GNU $ac_path_SED
7314 case `"$ac_path_SED" --version 2>&1` in
7315 *GNU*)
7316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7317 *)
7318 ac_count=0
7319 $as_echo_n 0123456789 >"conftest.in"
7320 while :
7321 do
7322 cat "conftest.in" "conftest.in" >"conftest.tmp"
7323 mv "conftest.tmp" "conftest.in"
7324 cp "conftest.in" "conftest.nl"
7325 $as_echo '' >> "conftest.nl"
7326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7328 as_fn_arith $ac_count + 1 && ac_count=$as_val
7329 if test $ac_count -gt ${ac_path_SED_max-0}; then
7330 # Best one so far, save it but keep looking for a better one
7331 ac_cv_path_SED="$ac_path_SED"
7332 ac_path_SED_max=$ac_count
7333 fi
7334 # 10*(2^10) chars as input seems more than enough
7335 test $ac_count -gt 10 && break
7336 done
7337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7338 esac
7339
7340 $ac_path_SED_found && break 3
7341 done
7342 done
7343 done
7344 IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_SED"; then
7346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7347 fi
7348 else
7349 ac_cv_path_SED=$SED
7350 fi
7351
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7354 $as_echo "$ac_cv_path_SED" >&6; }
7355 SED="$ac_cv_path_SED"
7356 rm -f conftest.sed
7357
7358 test -z "$SED" && SED=sed
7359 Xsed="$SED -e 1s/^X//"
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7372 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7373 if ${ac_cv_path_GREP+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -z "$GREP"; then
7377 ac_path_GREP_found=false
7378 # Loop through the user's path and test for each of PROGNAME-LIST
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_prog in grep ggrep; do
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7387 as_fn_executable_p "$ac_path_GREP" || continue
7388 # Check for GNU ac_path_GREP and select it if it is found.
7389 # Check for GNU $ac_path_GREP
7390 case `"$ac_path_GREP" --version 2>&1` in
7391 *GNU*)
7392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7393 *)
7394 ac_count=0
7395 $as_echo_n 0123456789 >"conftest.in"
7396 while :
7397 do
7398 cat "conftest.in" "conftest.in" >"conftest.tmp"
7399 mv "conftest.tmp" "conftest.in"
7400 cp "conftest.in" "conftest.nl"
7401 $as_echo 'GREP' >> "conftest.nl"
7402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7404 as_fn_arith $ac_count + 1 && ac_count=$as_val
7405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7406 # Best one so far, save it but keep looking for a better one
7407 ac_cv_path_GREP="$ac_path_GREP"
7408 ac_path_GREP_max=$ac_count
7409 fi
7410 # 10*(2^10) chars as input seems more than enough
7411 test $ac_count -gt 10 && break
7412 done
7413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7414 esac
7415
7416 $ac_path_GREP_found && break 3
7417 done
7418 done
7419 done
7420 IFS=$as_save_IFS
7421 if test -z "$ac_cv_path_GREP"; then
7422 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7423 fi
7424 else
7425 ac_cv_path_GREP=$GREP
7426 fi
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7430 $as_echo "$ac_cv_path_GREP" >&6; }
7431 GREP="$ac_cv_path_GREP"
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7435 $as_echo_n "checking for egrep... " >&6; }
7436 if ${ac_cv_path_EGREP+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7440 then ac_cv_path_EGREP="$GREP -E"
7441 else
7442 if test -z "$EGREP"; then
7443 ac_path_EGREP_found=false
7444 # Loop through the user's path and test for each of PROGNAME-LIST
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_prog in egrep; do
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7453 as_fn_executable_p "$ac_path_EGREP" || continue
7454 # Check for GNU ac_path_EGREP and select it if it is found.
7455 # Check for GNU $ac_path_EGREP
7456 case `"$ac_path_EGREP" --version 2>&1` in
7457 *GNU*)
7458 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7459 *)
7460 ac_count=0
7461 $as_echo_n 0123456789 >"conftest.in"
7462 while :
7463 do
7464 cat "conftest.in" "conftest.in" >"conftest.tmp"
7465 mv "conftest.tmp" "conftest.in"
7466 cp "conftest.in" "conftest.nl"
7467 $as_echo 'EGREP' >> "conftest.nl"
7468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7470 as_fn_arith $ac_count + 1 && ac_count=$as_val
7471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7472 # Best one so far, save it but keep looking for a better one
7473 ac_cv_path_EGREP="$ac_path_EGREP"
7474 ac_path_EGREP_max=$ac_count
7475 fi
7476 # 10*(2^10) chars as input seems more than enough
7477 test $ac_count -gt 10 && break
7478 done
7479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7480 esac
7481
7482 $ac_path_EGREP_found && break 3
7483 done
7484 done
7485 done
7486 IFS=$as_save_IFS
7487 if test -z "$ac_cv_path_EGREP"; then
7488 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7489 fi
7490 else
7491 ac_cv_path_EGREP=$EGREP
7492 fi
7493
7494 fi
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7497 $as_echo "$ac_cv_path_EGREP" >&6; }
7498 EGREP="$ac_cv_path_EGREP"
7499
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7502 $as_echo_n "checking for fgrep... " >&6; }
7503 if ${ac_cv_path_FGREP+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7507 then ac_cv_path_FGREP="$GREP -F"
7508 else
7509 if test -z "$FGREP"; then
7510 ac_path_FGREP_found=false
7511 # Loop through the user's path and test for each of PROGNAME-LIST
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7514 do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_prog in fgrep; do
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7520 as_fn_executable_p "$ac_path_FGREP" || continue
7521 # Check for GNU ac_path_FGREP and select it if it is found.
7522 # Check for GNU $ac_path_FGREP
7523 case `"$ac_path_FGREP" --version 2>&1` in
7524 *GNU*)
7525 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7526 *)
7527 ac_count=0
7528 $as_echo_n 0123456789 >"conftest.in"
7529 while :
7530 do
7531 cat "conftest.in" "conftest.in" >"conftest.tmp"
7532 mv "conftest.tmp" "conftest.in"
7533 cp "conftest.in" "conftest.nl"
7534 $as_echo 'FGREP' >> "conftest.nl"
7535 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7537 as_fn_arith $ac_count + 1 && ac_count=$as_val
7538 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7539 # Best one so far, save it but keep looking for a better one
7540 ac_cv_path_FGREP="$ac_path_FGREP"
7541 ac_path_FGREP_max=$ac_count
7542 fi
7543 # 10*(2^10) chars as input seems more than enough
7544 test $ac_count -gt 10 && break
7545 done
7546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7547 esac
7548
7549 $ac_path_FGREP_found && break 3
7550 done
7551 done
7552 done
7553 IFS=$as_save_IFS
7554 if test -z "$ac_cv_path_FGREP"; then
7555 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7556 fi
7557 else
7558 ac_cv_path_FGREP=$FGREP
7559 fi
7560
7561 fi
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7564 $as_echo "$ac_cv_path_FGREP" >&6; }
7565 FGREP="$ac_cv_path_FGREP"
7566
7567
7568 test -z "$GREP" && GREP=grep
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 # Check whether --with-gnu-ld was given.
7589 if test "${with_gnu_ld+set}" = set; then :
7590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7591 else
7592 with_gnu_ld=no
7593 fi
7594
7595 ac_prog=ld
7596 if test "$GCC" = yes; then
7597 # Check if gcc -print-prog-name=ld gives a path.
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7599 $as_echo_n "checking for ld used by $CC... " >&6; }
7600 case $host in
7601 *-*-mingw*)
7602 # gcc leaves a trailing carriage return which upsets mingw
7603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7604 *)
7605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7606 esac
7607 case $ac_prog in
7608 # Accept absolute paths.
7609 [\\/]* | ?:[\\/]*)
7610 re_direlt='/[^/][^/]*/\.\./'
7611 # Canonicalize the pathname of ld
7612 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7613 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7614 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7615 done
7616 test -z "$LD" && LD="$ac_prog"
7617 ;;
7618 "")
7619 # If it fails, then pretend we aren't using GCC.
7620 ac_prog=ld
7621 ;;
7622 *)
7623 # If it is relative, then search for the first ld in PATH.
7624 with_gnu_ld=unknown
7625 ;;
7626 esac
7627 elif test "$with_gnu_ld" = yes; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7629 $as_echo_n "checking for GNU ld... " >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7632 $as_echo_n "checking for non-GNU ld... " >&6; }
7633 fi
7634 if ${lt_cv_path_LD+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 if test -z "$LD"; then
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 for ac_dir in $PATH; do
7640 IFS="$lt_save_ifs"
7641 test -z "$ac_dir" && ac_dir=.
7642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7643 lt_cv_path_LD="$ac_dir/$ac_prog"
7644 # Check to see if the program is GNU ld. I'd rather use --version,
7645 # but apparently some variants of GNU ld only accept -v.
7646 # Break only if it was the GNU/non-GNU ld that we prefer.
7647 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7648 *GNU* | *'with BFD'*)
7649 test "$with_gnu_ld" != no && break
7650 ;;
7651 *)
7652 test "$with_gnu_ld" != yes && break
7653 ;;
7654 esac
7655 fi
7656 done
7657 IFS="$lt_save_ifs"
7658 else
7659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7660 fi
7661 fi
7662
7663 LD="$lt_cv_path_LD"
7664 if test -n "$LD"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7666 $as_echo "$LD" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7673 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7674 if ${lt_cv_prog_gnu_ld+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7678 case `$LD -v 2>&1 </dev/null` in
7679 *GNU* | *'with BFD'*)
7680 lt_cv_prog_gnu_ld=yes
7681 ;;
7682 *)
7683 lt_cv_prog_gnu_ld=no
7684 ;;
7685 esac
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7688 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7689 with_gnu_ld=$lt_cv_prog_gnu_ld
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7700 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7701 if ${lt_cv_path_NM+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$NM"; then
7705 # Let the user override the test.
7706 lt_cv_path_NM="$NM"
7707 else
7708 lt_nm_to_check="${ac_tool_prefix}nm"
7709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7710 lt_nm_to_check="$lt_nm_to_check nm"
7711 fi
7712 for lt_tmp_nm in $lt_nm_to_check; do
7713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7715 IFS="$lt_save_ifs"
7716 test -z "$ac_dir" && ac_dir=.
7717 tmp_nm="$ac_dir/$lt_tmp_nm"
7718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7719 # Check to see if the nm accepts a BSD-compat flag.
7720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7721 # nm: unknown option "B" ignored
7722 # Tru64's nm complains that /dev/null is an invalid object file
7723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7724 */dev/null* | *'Invalid file or object type'*)
7725 lt_cv_path_NM="$tmp_nm -B"
7726 break
7727 ;;
7728 *)
7729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7730 */dev/null*)
7731 lt_cv_path_NM="$tmp_nm -p"
7732 break
7733 ;;
7734 *)
7735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7736 continue # so that we can try to find one that supports BSD flags
7737 ;;
7738 esac
7739 ;;
7740 esac
7741 fi
7742 done
7743 IFS="$lt_save_ifs"
7744 done
7745 : ${lt_cv_path_NM=no}
7746 fi
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7749 $as_echo "$lt_cv_path_NM" >&6; }
7750 if test "$lt_cv_path_NM" != "no"; then
7751 NM="$lt_cv_path_NM"
7752 else
7753 # Didn't find any BSD compatible name lister, look for dumpbin.
7754 if test -n "$DUMPBIN"; then :
7755 # Let the user override the test.
7756 else
7757 if test -n "$ac_tool_prefix"; then
7758 for ac_prog in dumpbin "link -dump"
7759 do
7760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_DUMPBIN+:} false; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 if test -n "$DUMPBIN"; then
7768 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 DUMPBIN=$ac_cv_prog_DUMPBIN
7788 if test -n "$DUMPBIN"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7790 $as_echo "$DUMPBIN" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797 test -n "$DUMPBIN" && break
7798 done
7799 fi
7800 if test -z "$DUMPBIN"; then
7801 ac_ct_DUMPBIN=$DUMPBIN
7802 for ac_prog in dumpbin "link -dump"
7803 do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$ac_ct_DUMPBIN"; then
7812 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7832 if test -n "$ac_ct_DUMPBIN"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7834 $as_echo "$ac_ct_DUMPBIN" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 test -n "$ac_ct_DUMPBIN" && break
7842 done
7843
7844 if test "x$ac_ct_DUMPBIN" = x; then
7845 DUMPBIN=":"
7846 else
7847 case $cross_compiling:$ac_tool_warned in
7848 yes:)
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851 ac_tool_warned=yes ;;
7852 esac
7853 DUMPBIN=$ac_ct_DUMPBIN
7854 fi
7855 fi
7856
7857 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7858 *COFF*)
7859 DUMPBIN="$DUMPBIN -symbols"
7860 ;;
7861 *)
7862 DUMPBIN=:
7863 ;;
7864 esac
7865 fi
7866
7867 if test "$DUMPBIN" != ":"; then
7868 NM="$DUMPBIN"
7869 fi
7870 fi
7871 test -z "$NM" && NM=nm
7872
7873
7874
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7879 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7880 if ${lt_cv_nm_interface+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 lt_cv_nm_interface="BSD nm"
7884 echo "int some_variable = 0;" > conftest.$ac_ext
7885 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7886 (eval "$ac_compile" 2>conftest.err)
7887 cat conftest.err >&5
7888 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7889 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7890 cat conftest.err >&5
7891 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7892 cat conftest.out >&5
7893 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7894 lt_cv_nm_interface="MS dumpbin"
7895 fi
7896 rm -f conftest*
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7899 $as_echo "$lt_cv_nm_interface" >&6; }
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7902 $as_echo_n "checking whether ln -s works... " >&6; }
7903 LN_S=$as_ln_s
7904 if test "$LN_S" = "ln -s"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7906 $as_echo "yes" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7909 $as_echo "no, using $LN_S" >&6; }
7910 fi
7911
7912 # find the maximum length of command line arguments
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7914 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7915 if ${lt_cv_sys_max_cmd_len+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 i=0
7919 teststring="ABCD"
7920
7921 case $build_os in
7922 msdosdjgpp*)
7923 # On DJGPP, this test can blow up pretty badly due to problems in libc
7924 # (any single argument exceeding 2000 bytes causes a buffer overrun
7925 # during glob expansion). Even if it were fixed, the result of this
7926 # check would be larger than it should be.
7927 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7928 ;;
7929
7930 gnu*)
7931 # Under GNU Hurd, this test is not required because there is
7932 # no limit to the length of command line arguments.
7933 # Libtool will interpret -1 as no limit whatsoever
7934 lt_cv_sys_max_cmd_len=-1;
7935 ;;
7936
7937 cygwin* | mingw* | cegcc*)
7938 # On Win9x/ME, this test blows up -- it succeeds, but takes
7939 # about 5 minutes as the teststring grows exponentially.
7940 # Worse, since 9x/ME are not pre-emptively multitasking,
7941 # you end up with a "frozen" computer, even though with patience
7942 # the test eventually succeeds (with a max line length of 256k).
7943 # Instead, let's just punt: use the minimum linelength reported by
7944 # all of the supported platforms: 8192 (on NT/2K/XP).
7945 lt_cv_sys_max_cmd_len=8192;
7946 ;;
7947
7948 mint*)
7949 # On MiNT this can take a long time and run out of memory.
7950 lt_cv_sys_max_cmd_len=8192;
7951 ;;
7952
7953 amigaos*)
7954 # On AmigaOS with pdksh, this test takes hours, literally.
7955 # So we just punt and use a minimum line length of 8192.
7956 lt_cv_sys_max_cmd_len=8192;
7957 ;;
7958
7959 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7960 # This has been around since 386BSD, at least. Likely further.
7961 if test -x /sbin/sysctl; then
7962 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7963 elif test -x /usr/sbin/sysctl; then
7964 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7965 else
7966 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7967 fi
7968 # And add a safety zone
7969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7971 ;;
7972
7973 interix*)
7974 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7975 lt_cv_sys_max_cmd_len=196608
7976 ;;
7977
7978 os2*)
7979 # The test takes a long time on OS/2.
7980 lt_cv_sys_max_cmd_len=8192
7981 ;;
7982
7983 osf*)
7984 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7985 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7986 # nice to cause kernel panics so lets avoid the loop below.
7987 # First set a reasonable default.
7988 lt_cv_sys_max_cmd_len=16384
7989 #
7990 if test -x /sbin/sysconfig; then
7991 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7992 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7993 esac
7994 fi
7995 ;;
7996 sco3.2v5*)
7997 lt_cv_sys_max_cmd_len=102400
7998 ;;
7999 sysv5* | sco5v6* | sysv4.2uw2*)
8000 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8001 if test -n "$kargmax"; then
8002 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8003 else
8004 lt_cv_sys_max_cmd_len=32768
8005 fi
8006 ;;
8007 *)
8008 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8009 if test -n "$lt_cv_sys_max_cmd_len" && \
8010 test undefined != "$lt_cv_sys_max_cmd_len"; then
8011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8013 else
8014 # Make teststring a little bigger before we do anything with it.
8015 # a 1K string should be a reasonable start.
8016 for i in 1 2 3 4 5 6 7 8 ; do
8017 teststring=$teststring$teststring
8018 done
8019 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8020 # If test is not a shell built-in, we'll probably end up computing a
8021 # maximum length that is only half of the actual maximum length, but
8022 # we can't tell.
8023 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8024 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8025 test $i != 17 # 1/2 MB should be enough
8026 do
8027 i=`expr $i + 1`
8028 teststring=$teststring$teststring
8029 done
8030 # Only check the string length outside the loop.
8031 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8032 teststring=
8033 # Add a significant safety factor because C++ compilers can tack on
8034 # massive amounts of additional arguments before passing them to the
8035 # linker. It appears as though 1/2 is a usable value.
8036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8037 fi
8038 ;;
8039 esac
8040
8041 fi
8042
8043 if test -n $lt_cv_sys_max_cmd_len ; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8045 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8048 $as_echo "none" >&6; }
8049 fi
8050 max_cmd_len=$lt_cv_sys_max_cmd_len
8051
8052
8053
8054
8055
8056
8057 : ${CP="cp -f"}
8058 : ${MV="mv -f"}
8059 : ${RM="rm -f"}
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8062 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8063 # Try some XSI features
8064 xsi_shell=no
8065 ( _lt_dummy="a/b/c"
8066 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8067 = c,a/b,b/c, \
8068 && eval 'test $(( 1 + 1 )) -eq 2 \
8069 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8070 && xsi_shell=yes
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8072 $as_echo "$xsi_shell" >&6; }
8073
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8076 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8077 lt_shell_append=no
8078 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8079 >/dev/null 2>&1 \
8080 && lt_shell_append=yes
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8082 $as_echo "$lt_shell_append" >&6; }
8083
8084
8085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8086 lt_unset=unset
8087 else
8088 lt_unset=false
8089 fi
8090
8091
8092
8093
8094
8095 # test EBCDIC or ASCII
8096 case `echo X|tr X '\101'` in
8097 A) # ASCII based system
8098 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8099 lt_SP2NL='tr \040 \012'
8100 lt_NL2SP='tr \015\012 \040\040'
8101 ;;
8102 *) # EBCDIC based system
8103 lt_SP2NL='tr \100 \n'
8104 lt_NL2SP='tr \r\n \100\100'
8105 ;;
8106 esac
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8117 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8118 if ${lt_cv_to_host_file_cmd+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 case $host in
8122 *-*-mingw* )
8123 case $build in
8124 *-*-mingw* ) # actually msys
8125 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8126 ;;
8127 *-*-cygwin* )
8128 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8129 ;;
8130 * ) # otherwise, assume *nix
8131 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8132 ;;
8133 esac
8134 ;;
8135 *-*-cygwin* )
8136 case $build in
8137 *-*-mingw* ) # actually msys
8138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8139 ;;
8140 *-*-cygwin* )
8141 lt_cv_to_host_file_cmd=func_convert_file_noop
8142 ;;
8143 * ) # otherwise, assume *nix
8144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8145 ;;
8146 esac
8147 ;;
8148 * ) # unhandled hosts (and "normal" native builds)
8149 lt_cv_to_host_file_cmd=func_convert_file_noop
8150 ;;
8151 esac
8152
8153 fi
8154
8155 to_host_file_cmd=$lt_cv_to_host_file_cmd
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8157 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8158
8159
8160
8161
8162
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8164 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8165 if ${lt_cv_to_tool_file_cmd+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 #assume ordinary cross tools, or native build.
8169 lt_cv_to_tool_file_cmd=func_convert_file_noop
8170 case $host in
8171 *-*-mingw* )
8172 case $build in
8173 *-*-mingw* ) # actually msys
8174 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8175 ;;
8176 esac
8177 ;;
8178 esac
8179
8180 fi
8181
8182 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8184 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8185
8186
8187
8188
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8191 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8192 if ${lt_cv_ld_reload_flag+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 lt_cv_ld_reload_flag='-r'
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8198 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8199 reload_flag=$lt_cv_ld_reload_flag
8200 case $reload_flag in
8201 "" | " "*) ;;
8202 *) reload_flag=" $reload_flag" ;;
8203 esac
8204 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8205 case $host_os in
8206 cygwin* | mingw* | pw32* | cegcc*)
8207 if test "$GCC" != yes; then
8208 reload_cmds=false
8209 fi
8210 ;;
8211 darwin*)
8212 if test "$GCC" = yes; then
8213 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8214 else
8215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8216 fi
8217 ;;
8218 esac
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 if test -n "$ac_tool_prefix"; then
8229 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8230 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if ${ac_cv_prog_OBJDUMP+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$OBJDUMP"; then
8237 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi
8255 fi
8256 OBJDUMP=$ac_cv_prog_OBJDUMP
8257 if test -n "$OBJDUMP"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8259 $as_echo "$OBJDUMP" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264
8265
8266 fi
8267 if test -z "$ac_cv_prog_OBJDUMP"; then
8268 ac_ct_OBJDUMP=$OBJDUMP
8269 # Extract the first word of "objdump", so it can be a program name with args.
8270 set dummy objdump; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$ac_ct_OBJDUMP"; then
8277 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8297 if test -n "$ac_ct_OBJDUMP"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8299 $as_echo "$ac_ct_OBJDUMP" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305 if test "x$ac_ct_OBJDUMP" = x; then
8306 OBJDUMP="false"
8307 else
8308 case $cross_compiling:$ac_tool_warned in
8309 yes:)
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8312 ac_tool_warned=yes ;;
8313 esac
8314 OBJDUMP=$ac_ct_OBJDUMP
8315 fi
8316 else
8317 OBJDUMP="$ac_cv_prog_OBJDUMP"
8318 fi
8319
8320 test -z "$OBJDUMP" && OBJDUMP=objdump
8321
8322
8323
8324
8325
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8328 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8329 if ${lt_cv_deplibs_check_method+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 lt_cv_file_magic_cmd='$MAGIC_CMD'
8333 lt_cv_file_magic_test_file=
8334 lt_cv_deplibs_check_method='unknown'
8335 # Need to set the preceding variable on all platforms that support
8336 # interlibrary dependencies.
8337 # 'none' -- dependencies not supported.
8338 # `unknown' -- same as none, but documents that we really don't know.
8339 # 'pass_all' -- all dependencies passed with no checks.
8340 # 'test_compile' -- check by making test program.
8341 # 'file_magic [[regex]]' -- check by looking for files in library path
8342 # which responds to the $file_magic_cmd with a given extended regex.
8343 # If you have `file' or equivalent on your system and you're not sure
8344 # whether `pass_all' will *always* work, you probably want this one.
8345
8346 case $host_os in
8347 aix[4-9]*)
8348 lt_cv_deplibs_check_method=pass_all
8349 ;;
8350
8351 beos*)
8352 lt_cv_deplibs_check_method=pass_all
8353 ;;
8354
8355 bsdi[45]*)
8356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8357 lt_cv_file_magic_cmd='/usr/bin/file -L'
8358 lt_cv_file_magic_test_file=/shlib/libc.so
8359 ;;
8360
8361 cygwin*)
8362 # func_win32_libid is a shell function defined in ltmain.sh
8363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8364 lt_cv_file_magic_cmd='func_win32_libid'
8365 ;;
8366
8367 mingw* | pw32*)
8368 # Base MSYS/MinGW do not provide the 'file' command needed by
8369 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8370 # unless we find 'file', for example because we are cross-compiling.
8371 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8372 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8373 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8374 lt_cv_file_magic_cmd='func_win32_libid'
8375 else
8376 # Keep this pattern in sync with the one in func_win32_libid.
8377 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8378 lt_cv_file_magic_cmd='$OBJDUMP -f'
8379 fi
8380 ;;
8381
8382 cegcc*)
8383 # use the weaker test based on 'objdump'. See mingw*.
8384 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8385 lt_cv_file_magic_cmd='$OBJDUMP -f'
8386 ;;
8387
8388 darwin* | rhapsody*)
8389 lt_cv_deplibs_check_method=pass_all
8390 ;;
8391
8392 freebsd* | dragonfly*)
8393 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8394 case $host_cpu in
8395 i*86 )
8396 # Not sure whether the presence of OpenBSD here was a mistake.
8397 # Let's accept both of them until this is cleared up.
8398 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8399 lt_cv_file_magic_cmd=/usr/bin/file
8400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8401 ;;
8402 esac
8403 else
8404 lt_cv_deplibs_check_method=pass_all
8405 fi
8406 ;;
8407
8408 haiku*)
8409 lt_cv_deplibs_check_method=pass_all
8410 ;;
8411
8412 hpux10.20* | hpux11*)
8413 lt_cv_file_magic_cmd=/usr/bin/file
8414 case $host_cpu in
8415 ia64*)
8416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8417 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8418 ;;
8419 hppa*64*)
8420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8421 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8422 ;;
8423 *)
8424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8425 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8426 ;;
8427 esac
8428 ;;
8429
8430 interix[3-9]*)
8431 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8433 ;;
8434
8435 irix5* | irix6* | nonstopux*)
8436 case $LD in
8437 *-32|*"-32 ") libmagic=32-bit;;
8438 *-n32|*"-n32 ") libmagic=N32;;
8439 *-64|*"-64 ") libmagic=64-bit;;
8440 *) libmagic=never-match;;
8441 esac
8442 lt_cv_deplibs_check_method=pass_all
8443 ;;
8444
8445 # This must be glibc/ELF.
8446 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8447 lt_cv_deplibs_check_method=pass_all
8448 ;;
8449
8450 netbsd* | netbsdelf*-gnu)
8451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8453 else
8454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8455 fi
8456 ;;
8457
8458 newos6*)
8459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8460 lt_cv_file_magic_cmd=/usr/bin/file
8461 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8462 ;;
8463
8464 *nto* | *qnx*)
8465 lt_cv_deplibs_check_method=pass_all
8466 ;;
8467
8468 openbsd*)
8469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8471 else
8472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8473 fi
8474 ;;
8475
8476 osf3* | osf4* | osf5*)
8477 lt_cv_deplibs_check_method=pass_all
8478 ;;
8479
8480 rdos*)
8481 lt_cv_deplibs_check_method=pass_all
8482 ;;
8483
8484 solaris*)
8485 lt_cv_deplibs_check_method=pass_all
8486 ;;
8487
8488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8489 lt_cv_deplibs_check_method=pass_all
8490 ;;
8491
8492 sysv4 | sysv4.3*)
8493 case $host_vendor in
8494 motorola)
8495 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]'
8496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8497 ;;
8498 ncr)
8499 lt_cv_deplibs_check_method=pass_all
8500 ;;
8501 sequent)
8502 lt_cv_file_magic_cmd='/bin/file'
8503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8504 ;;
8505 sni)
8506 lt_cv_file_magic_cmd='/bin/file'
8507 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8508 lt_cv_file_magic_test_file=/lib/libc.so
8509 ;;
8510 siemens)
8511 lt_cv_deplibs_check_method=pass_all
8512 ;;
8513 pc)
8514 lt_cv_deplibs_check_method=pass_all
8515 ;;
8516 esac
8517 ;;
8518
8519 tpf*)
8520 lt_cv_deplibs_check_method=pass_all
8521 ;;
8522 esac
8523
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8526 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8527
8528 file_magic_glob=
8529 want_nocaseglob=no
8530 if test "$build" = "$host"; then
8531 case $host_os in
8532 mingw* | pw32*)
8533 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8534 want_nocaseglob=yes
8535 else
8536 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8537 fi
8538 ;;
8539 esac
8540 fi
8541
8542 file_magic_cmd=$lt_cv_file_magic_cmd
8543 deplibs_check_method=$lt_cv_deplibs_check_method
8544 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 if test -n "$ac_tool_prefix"; then
8568 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8569 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if ${ac_cv_prog_DLLTOOL+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$DLLTOOL"; then
8576 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589 done
8590 done
8591 IFS=$as_save_IFS
8592
8593 fi
8594 fi
8595 DLLTOOL=$ac_cv_prog_DLLTOOL
8596 if test -n "$DLLTOOL"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8598 $as_echo "$DLLTOOL" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604
8605 fi
8606 if test -z "$ac_cv_prog_DLLTOOL"; then
8607 ac_ct_DLLTOOL=$DLLTOOL
8608 # Extract the first word of "dlltool", so it can be a program name with args.
8609 set dummy dlltool; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 if test -n "$ac_ct_DLLTOOL"; then
8616 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8617 else
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629 done
8630 done
8631 IFS=$as_save_IFS
8632
8633 fi
8634 fi
8635 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8636 if test -n "$ac_ct_DLLTOOL"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8638 $as_echo "$ac_ct_DLLTOOL" >&6; }
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643
8644 if test "x$ac_ct_DLLTOOL" = x; then
8645 DLLTOOL="false"
8646 else
8647 case $cross_compiling:$ac_tool_warned in
8648 yes:)
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8651 ac_tool_warned=yes ;;
8652 esac
8653 DLLTOOL=$ac_ct_DLLTOOL
8654 fi
8655 else
8656 DLLTOOL="$ac_cv_prog_DLLTOOL"
8657 fi
8658
8659 test -z "$DLLTOOL" && DLLTOOL=dlltool
8660
8661
8662
8663
8664
8665
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8668 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8669 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 lt_cv_sharedlib_from_linklib_cmd='unknown'
8673
8674 case $host_os in
8675 cygwin* | mingw* | pw32* | cegcc*)
8676 # two different shell functions defined in ltmain.sh
8677 # decide which to use based on capabilities of $DLLTOOL
8678 case `$DLLTOOL --help 2>&1` in
8679 *--identify-strict*)
8680 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8681 ;;
8682 *)
8683 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8684 ;;
8685 esac
8686 ;;
8687 *)
8688 # fallback: assume linklib IS sharedlib
8689 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8690 ;;
8691 esac
8692
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8695 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8696 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8697 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8698
8699
8700
8701
8702
8703
8704
8705 if test -n "$ac_tool_prefix"; then
8706 for ac_prog in ar
8707 do
8708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_prog_AR+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 if test -n "$AR"; then
8716 ac_cv_prog_AR="$AR" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8728 fi
8729 done
8730 done
8731 IFS=$as_save_IFS
8732
8733 fi
8734 fi
8735 AR=$ac_cv_prog_AR
8736 if test -n "$AR"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8738 $as_echo "$AR" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 fi
8743
8744
8745 test -n "$AR" && break
8746 done
8747 fi
8748 if test -z "$AR"; then
8749 ac_ct_AR=$AR
8750 for ac_prog in ar
8751 do
8752 # Extract the first word of "$ac_prog", so it can be a program name with args.
8753 set dummy $ac_prog; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 if test -n "$ac_ct_AR"; then
8760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8761 else
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8764 do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_ac_ct_AR="$ac_prog"
8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 break 2
8772 fi
8773 done
8774 done
8775 IFS=$as_save_IFS
8776
8777 fi
8778 fi
8779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8780 if test -n "$ac_ct_AR"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8782 $as_echo "$ac_ct_AR" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787
8788
8789 test -n "$ac_ct_AR" && break
8790 done
8791
8792 if test "x$ac_ct_AR" = x; then
8793 AR="false"
8794 else
8795 case $cross_compiling:$ac_tool_warned in
8796 yes:)
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8800 esac
8801 AR=$ac_ct_AR
8802 fi
8803 fi
8804
8805 : ${AR=ar}
8806 : ${AR_FLAGS=cru}
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8819 $as_echo_n "checking for archiver @FILE support... " >&6; }
8820 if ${lt_cv_ar_at_file+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 lt_cv_ar_at_file=no
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826
8827 int
8828 main ()
8829 {
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 echo conftest.$ac_objext > conftest.lst
8837 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8839 (eval $lt_ar_try) 2>&5
8840 ac_status=$?
8841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8842 test $ac_status = 0; }
8843 if test "$ac_status" -eq 0; then
8844 # Ensure the archiver fails upon bogus file names.
8845 rm -f conftest.$ac_objext libconftest.a
8846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8847 (eval $lt_ar_try) 2>&5
8848 ac_status=$?
8849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850 test $ac_status = 0; }
8851 if test "$ac_status" -ne 0; then
8852 lt_cv_ar_at_file=@
8853 fi
8854 fi
8855 rm -f conftest.* libconftest.a
8856
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8862 $as_echo "$lt_cv_ar_at_file" >&6; }
8863
8864 if test "x$lt_cv_ar_at_file" = xno; then
8865 archiver_list_spec=
8866 else
8867 archiver_list_spec=$lt_cv_ar_at_file
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}strip; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_prog_STRIP+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$STRIP"; then
8885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898 done
8899 done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 STRIP=$ac_cv_prog_STRIP
8905 if test -n "$STRIP"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8907 $as_echo "$STRIP" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914 fi
8915 if test -z "$ac_cv_prog_STRIP"; then
8916 ac_ct_STRIP=$STRIP
8917 # Extract the first word of "strip", so it can be a program name with args.
8918 set dummy strip; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$ac_ct_STRIP"; then
8925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934 ac_cv_prog_ac_ct_STRIP="strip"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8945 if test -n "$ac_ct_STRIP"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8947 $as_echo "$ac_ct_STRIP" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953 if test "x$ac_ct_STRIP" = x; then
8954 STRIP=":"
8955 else
8956 case $cross_compiling:$ac_tool_warned in
8957 yes:)
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned=yes ;;
8961 esac
8962 STRIP=$ac_ct_STRIP
8963 fi
8964 else
8965 STRIP="$ac_cv_prog_STRIP"
8966 fi
8967
8968 test -z "$STRIP" && STRIP=:
8969
8970
8971
8972
8973
8974
8975 if test -n "$ac_tool_prefix"; then
8976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_prog_RANLIB+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997 done
8998 done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 RANLIB=$ac_cv_prog_RANLIB
9004 if test -n "$RANLIB"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006 $as_echo "$RANLIB" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 fi
9014 if test -z "$ac_cv_prog_RANLIB"; then
9015 ac_ct_RANLIB=$RANLIB
9016 # Extract the first word of "ranlib", so it can be a program name with args.
9017 set dummy ranlib; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 if test -n "$ac_ct_RANLIB"; then
9024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033 ac_cv_prog_ac_ct_RANLIB="ranlib"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 break 2
9036 fi
9037 done
9038 done
9039 IFS=$as_save_IFS
9040
9041 fi
9042 fi
9043 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9044 if test -n "$ac_ct_RANLIB"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9046 $as_echo "$ac_ct_RANLIB" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051
9052 if test "x$ac_ct_RANLIB" = x; then
9053 RANLIB=":"
9054 else
9055 case $cross_compiling:$ac_tool_warned in
9056 yes:)
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9060 esac
9061 RANLIB=$ac_ct_RANLIB
9062 fi
9063 else
9064 RANLIB="$ac_cv_prog_RANLIB"
9065 fi
9066
9067 test -z "$RANLIB" && RANLIB=:
9068
9069
9070
9071
9072
9073
9074 # Determine commands to create old-style static archives.
9075 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9076 old_postinstall_cmds='chmod 644 $oldlib'
9077 old_postuninstall_cmds=
9078
9079 if test -n "$RANLIB"; then
9080 case $host_os in
9081 openbsd*)
9082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9083 ;;
9084 *)
9085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9086 ;;
9087 esac
9088 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9089 fi
9090
9091 case $host_os in
9092 darwin*)
9093 lock_old_archive_extraction=yes ;;
9094 *)
9095 lock_old_archive_extraction=no ;;
9096 esac
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136 # If no C compiler was specified, use CC.
9137 LTCC=${LTCC-"$CC"}
9138
9139 # If no C compiler flags were specified, use CFLAGS.
9140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141
9142 # Allow CC to be a program name with arguments.
9143 compiler=$CC
9144
9145
9146 # Check for command to grab the raw symbol name followed by C symbol from nm.
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9148 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9149 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152
9153 # These are sane defaults that work on at least a few old systems.
9154 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9155
9156 # Character class describing NM global symbol codes.
9157 symcode='[BCDEGRST]'
9158
9159 # Regexp to match symbols that can be accessed directly from C.
9160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9161
9162 # Define system-specific variables.
9163 case $host_os in
9164 aix*)
9165 symcode='[BCDT]'
9166 ;;
9167 cygwin* | mingw* | pw32* | cegcc*)
9168 symcode='[ABCDGISTW]'
9169 ;;
9170 hpux*)
9171 if test "$host_cpu" = ia64; then
9172 symcode='[ABCDEGRST]'
9173 fi
9174 ;;
9175 irix* | nonstopux*)
9176 symcode='[BCDEGRST]'
9177 ;;
9178 osf*)
9179 symcode='[BCDEGQRST]'
9180 ;;
9181 solaris*)
9182 symcode='[BDRT]'
9183 ;;
9184 sco3.2v5*)
9185 symcode='[DT]'
9186 ;;
9187 sysv4.2uw2*)
9188 symcode='[DT]'
9189 ;;
9190 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9191 symcode='[ABDT]'
9192 ;;
9193 sysv4)
9194 symcode='[DFNSTU]'
9195 ;;
9196 esac
9197
9198 # If we're using GNU nm, then use its standard symbol codes.
9199 case `$NM -V 2>&1` in
9200 *GNU* | *'with BFD'*)
9201 symcode='[ABCDGIRSTW]' ;;
9202 esac
9203
9204 # Transform an extracted symbol line into a proper C declaration.
9205 # Some systems (esp. on ia64) link data and code symbols differently,
9206 # so use this general approach.
9207 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9208
9209 # Transform an extracted symbol line into symbol name and symbol address
9210 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9211 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'"
9212
9213 # Handle CRLF in mingw tool chain
9214 opt_cr=
9215 case $build_os in
9216 mingw*)
9217 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9218 ;;
9219 esac
9220
9221 # Try without a prefix underscore, then with it.
9222 for ac_symprfx in "" "_"; do
9223
9224 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9225 symxfrm="\\1 $ac_symprfx\\2 \\2"
9226
9227 # Write the raw and C identifiers.
9228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9229 # Fake it for dumpbin and say T for any non-static function
9230 # and D for any global variable.
9231 # Also find C++ and __fastcall symbols from MSVC++,
9232 # which start with @ or ?.
9233 lt_cv_sys_global_symbol_pipe="$AWK '"\
9234 " {last_section=section; section=\$ 3};"\
9235 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9236 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9237 " \$ 0!~/External *\|/{next};"\
9238 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9239 " {if(hide[section]) next};"\
9240 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9241 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9242 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9243 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9244 " ' prfx=^$ac_symprfx"
9245 else
9246 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9247 fi
9248 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9249
9250 # Check to see that the pipe works correctly.
9251 pipe_works=no
9252
9253 rm -f conftest*
9254 cat > conftest.$ac_ext <<_LT_EOF
9255 #ifdef __cplusplus
9256 extern "C" {
9257 #endif
9258 char nm_test_var;
9259 void nm_test_func(void);
9260 void nm_test_func(void){}
9261 #ifdef __cplusplus
9262 }
9263 #endif
9264 int main(){nm_test_var='a';nm_test_func();return(0);}
9265 _LT_EOF
9266
9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9268 (eval $ac_compile) 2>&5
9269 ac_status=$?
9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271 test $ac_status = 0; }; then
9272 # Now try to grab the symbols.
9273 nlist=conftest.nm
9274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9275 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9276 ac_status=$?
9277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9278 test $ac_status = 0; } && test -s "$nlist"; then
9279 # Try sorting and uniquifying the output.
9280 if sort "$nlist" | uniq > "$nlist"T; then
9281 mv -f "$nlist"T "$nlist"
9282 else
9283 rm -f "$nlist"T
9284 fi
9285
9286 # Make sure that we snagged all the symbols we need.
9287 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9288 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9289 cat <<_LT_EOF > conftest.$ac_ext
9290 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9291 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9292 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9293 relocations are performed -- see ld's documentation on pseudo-relocs. */
9294 # define LT_DLSYM_CONST
9295 #elif defined(__osf__)
9296 /* This system does not cope well with relocations in const data. */
9297 # define LT_DLSYM_CONST
9298 #else
9299 # define LT_DLSYM_CONST const
9300 #endif
9301
9302 #ifdef __cplusplus
9303 extern "C" {
9304 #endif
9305
9306 _LT_EOF
9307 # Now generate the symbol file.
9308 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9309
9310 cat <<_LT_EOF >> conftest.$ac_ext
9311
9312 /* The mapping between symbol names and symbols. */
9313 LT_DLSYM_CONST struct {
9314 const char *name;
9315 void *address;
9316 }
9317 lt__PROGRAM__LTX_preloaded_symbols[] =
9318 {
9319 { "@PROGRAM@", (void *) 0 },
9320 _LT_EOF
9321 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9322 cat <<\_LT_EOF >> conftest.$ac_ext
9323 {0, (void *) 0}
9324 };
9325
9326 /* This works around a problem in FreeBSD linker */
9327 #ifdef FREEBSD_WORKAROUND
9328 static const void *lt_preloaded_setup() {
9329 return lt__PROGRAM__LTX_preloaded_symbols;
9330 }
9331 #endif
9332
9333 #ifdef __cplusplus
9334 }
9335 #endif
9336 _LT_EOF
9337 # Now try linking the two files.
9338 mv conftest.$ac_objext conftstm.$ac_objext
9339 lt_globsym_save_LIBS=$LIBS
9340 lt_globsym_save_CFLAGS=$CFLAGS
9341 LIBS="conftstm.$ac_objext"
9342 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9344 (eval $ac_link) 2>&5
9345 ac_status=$?
9346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9347 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9348 pipe_works=yes
9349 fi
9350 LIBS=$lt_globsym_save_LIBS
9351 CFLAGS=$lt_globsym_save_CFLAGS
9352 else
9353 echo "cannot find nm_test_func in $nlist" >&5
9354 fi
9355 else
9356 echo "cannot find nm_test_var in $nlist" >&5
9357 fi
9358 else
9359 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9360 fi
9361 else
9362 echo "$progname: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 fi
9365 rm -rf conftest* conftst*
9366
9367 # Do not use the global_symbol_pipe unless it works.
9368 if test "$pipe_works" = yes; then
9369 break
9370 else
9371 lt_cv_sys_global_symbol_pipe=
9372 fi
9373 done
9374
9375 fi
9376
9377 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9378 lt_cv_sys_global_symbol_to_cdecl=
9379 fi
9380 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9382 $as_echo "failed" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9385 $as_echo "ok" >&6; }
9386 fi
9387
9388 # Response file support.
9389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9390 nm_file_list_spec='@'
9391 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9392 nm_file_list_spec='@'
9393 fi
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9422 $as_echo_n "checking for sysroot... " >&6; }
9423
9424 # Check whether --with-sysroot was given.
9425 if test "${with_sysroot+set}" = set; then :
9426 withval=$with_sysroot;
9427 else
9428 with_sysroot=no
9429 fi
9430
9431
9432 lt_sysroot=
9433 case ${with_sysroot} in #(
9434 yes)
9435 if test "$GCC" = yes; then
9436 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9437 fi
9438 ;; #(
9439 /*)
9440 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9441 ;; #(
9442 no|'')
9443 ;; #(
9444 *)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9446 $as_echo "${with_sysroot}" >&6; }
9447 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9448 ;;
9449 esac
9450
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9452 $as_echo "${lt_sysroot:-no}" >&6; }
9453
9454
9455
9456
9457
9458 # Check whether --enable-libtool-lock was given.
9459 if test "${enable_libtool_lock+set}" = set; then :
9460 enableval=$enable_libtool_lock;
9461 fi
9462
9463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9464
9465 # Some flags need to be propagated to the compiler or linker for good
9466 # libtool support.
9467 case $host in
9468 ia64-*-hpux*)
9469 # Find out which ABI we are using.
9470 echo 'int i;' > conftest.$ac_ext
9471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9472 (eval $ac_compile) 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9475 test $ac_status = 0; }; then
9476 case `/usr/bin/file conftest.$ac_objext` in
9477 *ELF-32*)
9478 HPUX_IA64_MODE="32"
9479 ;;
9480 *ELF-64*)
9481 HPUX_IA64_MODE="64"
9482 ;;
9483 esac
9484 fi
9485 rm -rf conftest*
9486 ;;
9487 *-*-irix6*)
9488 # Find out which ABI we are using.
9489 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9491 (eval $ac_compile) 2>&5
9492 ac_status=$?
9493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9494 test $ac_status = 0; }; then
9495 if test "$lt_cv_prog_gnu_ld" = yes; then
9496 case `/usr/bin/file conftest.$ac_objext` in
9497 *32-bit*)
9498 LD="${LD-ld} -melf32bsmip"
9499 ;;
9500 *N32*)
9501 LD="${LD-ld} -melf32bmipn32"
9502 ;;
9503 *64-bit*)
9504 LD="${LD-ld} -melf64bmip"
9505 ;;
9506 esac
9507 else
9508 case `/usr/bin/file conftest.$ac_objext` in
9509 *32-bit*)
9510 LD="${LD-ld} -32"
9511 ;;
9512 *N32*)
9513 LD="${LD-ld} -n32"
9514 ;;
9515 *64-bit*)
9516 LD="${LD-ld} -64"
9517 ;;
9518 esac
9519 fi
9520 fi
9521 rm -rf conftest*
9522 ;;
9523
9524 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9525 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9526 # Find out which ABI we are using.
9527 echo 'int i;' > conftest.$ac_ext
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9529 (eval $ac_compile) 2>&5
9530 ac_status=$?
9531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; }; then
9533 case `/usr/bin/file conftest.o` in
9534 *32-bit*)
9535 case $host in
9536 x86_64-*kfreebsd*-gnu)
9537 LD="${LD-ld} -m elf_i386_fbsd"
9538 ;;
9539 x86_64-*linux*)
9540 case `/usr/bin/file conftest.o` in
9541 *x86-64*)
9542 LD="${LD-ld} -m elf32_x86_64"
9543 ;;
9544 *)
9545 LD="${LD-ld} -m elf_i386"
9546 ;;
9547 esac
9548 ;;
9549 powerpc64le-*)
9550 LD="${LD-ld} -m elf32lppclinux"
9551 ;;
9552 powerpc64-*)
9553 LD="${LD-ld} -m elf32ppclinux"
9554 ;;
9555 s390x-*linux*)
9556 LD="${LD-ld} -m elf_s390"
9557 ;;
9558 sparc64-*linux*)
9559 LD="${LD-ld} -m elf32_sparc"
9560 ;;
9561 esac
9562 ;;
9563 *64-bit*)
9564 case $host in
9565 x86_64-*kfreebsd*-gnu)
9566 LD="${LD-ld} -m elf_x86_64_fbsd"
9567 ;;
9568 x86_64-*linux*)
9569 LD="${LD-ld} -m elf_x86_64"
9570 ;;
9571 powerpcle-*)
9572 LD="${LD-ld} -m elf64lppc"
9573 ;;
9574 powerpc-*)
9575 LD="${LD-ld} -m elf64ppc"
9576 ;;
9577 s390*-*linux*|s390*-*tpf*)
9578 LD="${LD-ld} -m elf64_s390"
9579 ;;
9580 sparc*-*linux*)
9581 LD="${LD-ld} -m elf64_sparc"
9582 ;;
9583 esac
9584 ;;
9585 esac
9586 fi
9587 rm -rf conftest*
9588 ;;
9589
9590 *-*-sco3.2v5*)
9591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9592 SAVE_CFLAGS="$CFLAGS"
9593 CFLAGS="$CFLAGS -belf"
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9595 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9596 if ${lt_cv_cc_needs_belf+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 ac_ext=c
9600 ac_cpp='$CPP $CPPFLAGS'
9601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9604
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607
9608 int
9609 main ()
9610 {
9611
9612 ;
9613 return 0;
9614 }
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617 lt_cv_cc_needs_belf=yes
9618 else
9619 lt_cv_cc_needs_belf=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 ac_ext=c
9624 ac_cpp='$CPP $CPPFLAGS'
9625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9631 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9632 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9634 CFLAGS="$SAVE_CFLAGS"
9635 fi
9636 ;;
9637 *-*solaris*)
9638 # Find out which ABI we are using.
9639 echo 'int i;' > conftest.$ac_ext
9640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9641 (eval $ac_compile) 2>&5
9642 ac_status=$?
9643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644 test $ac_status = 0; }; then
9645 case `/usr/bin/file conftest.o` in
9646 *64-bit*)
9647 case $lt_cv_prog_gnu_ld in
9648 yes*)
9649 case $host in
9650 i?86-*-solaris*)
9651 LD="${LD-ld} -m elf_x86_64"
9652 ;;
9653 sparc*-*-solaris*)
9654 LD="${LD-ld} -m elf64_sparc"
9655 ;;
9656 esac
9657 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9658 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9659 LD="${LD-ld}_sol2"
9660 fi
9661 ;;
9662 *)
9663 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9664 LD="${LD-ld} -64"
9665 fi
9666 ;;
9667 esac
9668 ;;
9669 esac
9670 fi
9671 rm -rf conftest*
9672 ;;
9673 esac
9674
9675 need_locks="$enable_libtool_lock"
9676
9677 if test -n "$ac_tool_prefix"; then
9678 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9679 set dummy ${ac_tool_prefix}mt; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 if test -n "$MANIFEST_TOOL"; then
9686 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699 done
9700 done
9701 IFS=$as_save_IFS
9702
9703 fi
9704 fi
9705 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9706 if test -n "$MANIFEST_TOOL"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9708 $as_echo "$MANIFEST_TOOL" >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9712 fi
9713
9714
9715 fi
9716 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9717 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9718 # Extract the first word of "mt", so it can be a program name with args.
9719 set dummy mt; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 if test -n "$ac_ct_MANIFEST_TOOL"; then
9726 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9738 fi
9739 done
9740 done
9741 IFS=$as_save_IFS
9742
9743 fi
9744 fi
9745 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9746 if test -n "$ac_ct_MANIFEST_TOOL"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9748 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9752 fi
9753
9754 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9755 MANIFEST_TOOL=":"
9756 else
9757 case $cross_compiling:$ac_tool_warned in
9758 yes:)
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9761 ac_tool_warned=yes ;;
9762 esac
9763 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9764 fi
9765 else
9766 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9767 fi
9768
9769 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9771 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9772 if ${lt_cv_path_mainfest_tool+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 lt_cv_path_mainfest_tool=no
9776 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9777 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9778 cat conftest.err >&5
9779 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9780 lt_cv_path_mainfest_tool=yes
9781 fi
9782 rm -f conftest*
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9785 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9786 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9787 MANIFEST_TOOL=:
9788 fi
9789
9790
9791
9792
9793
9794
9795 case $host_os in
9796 rhapsody* | darwin*)
9797 if test -n "$ac_tool_prefix"; then
9798 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9799 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 if test -n "$DSYMUTIL"; then
9806 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9807 else
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9810 do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 fi
9824 fi
9825 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9826 if test -n "$DSYMUTIL"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9828 $as_echo "$DSYMUTIL" >&6; }
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9833
9834
9835 fi
9836 if test -z "$ac_cv_prog_DSYMUTIL"; then
9837 ac_ct_DSYMUTIL=$DSYMUTIL
9838 # Extract the first word of "dsymutil", so it can be a program name with args.
9839 set dummy dsymutil; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 if test -n "$ac_ct_DSYMUTIL"; then
9846 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9847 else
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9855 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857 break 2
9858 fi
9859 done
9860 done
9861 IFS=$as_save_IFS
9862
9863 fi
9864 fi
9865 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9866 if test -n "$ac_ct_DSYMUTIL"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9868 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9872 fi
9873
9874 if test "x$ac_ct_DSYMUTIL" = x; then
9875 DSYMUTIL=":"
9876 else
9877 case $cross_compiling:$ac_tool_warned in
9878 yes:)
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9881 ac_tool_warned=yes ;;
9882 esac
9883 DSYMUTIL=$ac_ct_DSYMUTIL
9884 fi
9885 else
9886 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9887 fi
9888
9889 if test -n "$ac_tool_prefix"; then
9890 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9891 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_prog_NMEDIT+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test -n "$NMEDIT"; then
9898 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9902 do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9907 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9910 fi
9911 done
9912 done
9913 IFS=$as_save_IFS
9914
9915 fi
9916 fi
9917 NMEDIT=$ac_cv_prog_NMEDIT
9918 if test -n "$NMEDIT"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9920 $as_echo "$NMEDIT" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924 fi
9925
9926
9927 fi
9928 if test -z "$ac_cv_prog_NMEDIT"; then
9929 ac_ct_NMEDIT=$NMEDIT
9930 # Extract the first word of "nmedit", so it can be a program name with args.
9931 set dummy nmedit; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -n "$ac_ct_NMEDIT"; then
9938 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9939 else
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9947 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951 done
9952 done
9953 IFS=$as_save_IFS
9954
9955 fi
9956 fi
9957 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9958 if test -n "$ac_ct_NMEDIT"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9960 $as_echo "$ac_ct_NMEDIT" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 fi
9965
9966 if test "x$ac_ct_NMEDIT" = x; then
9967 NMEDIT=":"
9968 else
9969 case $cross_compiling:$ac_tool_warned in
9970 yes:)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9973 ac_tool_warned=yes ;;
9974 esac
9975 NMEDIT=$ac_ct_NMEDIT
9976 fi
9977 else
9978 NMEDIT="$ac_cv_prog_NMEDIT"
9979 fi
9980
9981 if test -n "$ac_tool_prefix"; then
9982 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9983 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_prog_LIPO+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 if test -n "$LIPO"; then
9990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9991 else
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9994 do
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9999 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10002 fi
10003 done
10004 done
10005 IFS=$as_save_IFS
10006
10007 fi
10008 fi
10009 LIPO=$ac_cv_prog_LIPO
10010 if test -n "$LIPO"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10012 $as_echo "$LIPO" >&6; }
10013 else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10016 fi
10017
10018
10019 fi
10020 if test -z "$ac_cv_prog_LIPO"; then
10021 ac_ct_LIPO=$LIPO
10022 # Extract the first word of "lipo", so it can be a program name with args.
10023 set dummy lipo; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 if test -n "$ac_ct_LIPO"; then
10030 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_ac_ct_LIPO="lipo"
10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043 done
10044 done
10045 IFS=$as_save_IFS
10046
10047 fi
10048 fi
10049 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10050 if test -n "$ac_ct_LIPO"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10052 $as_echo "$ac_ct_LIPO" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058 if test "x$ac_ct_LIPO" = x; then
10059 LIPO=":"
10060 else
10061 case $cross_compiling:$ac_tool_warned in
10062 yes:)
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10065 ac_tool_warned=yes ;;
10066 esac
10067 LIPO=$ac_ct_LIPO
10068 fi
10069 else
10070 LIPO="$ac_cv_prog_LIPO"
10071 fi
10072
10073 if test -n "$ac_tool_prefix"; then
10074 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10075 set dummy ${ac_tool_prefix}otool; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_prog_OTOOL+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 if test -n "$OTOOL"; then
10082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095 done
10096 done
10097 IFS=$as_save_IFS
10098
10099 fi
10100 fi
10101 OTOOL=$ac_cv_prog_OTOOL
10102 if test -n "$OTOOL"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10104 $as_echo "$OTOOL" >&6; }
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10108 fi
10109
10110
10111 fi
10112 if test -z "$ac_cv_prog_OTOOL"; then
10113 ac_ct_OTOOL=$OTOOL
10114 # Extract the first word of "otool", so it can be a program name with args.
10115 set dummy otool; ac_word=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 if test -n "$ac_ct_OTOOL"; then
10122 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10123 else
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10126 do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10131 ac_cv_prog_ac_ct_OTOOL="otool"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10134 fi
10135 done
10136 done
10137 IFS=$as_save_IFS
10138
10139 fi
10140 fi
10141 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10142 if test -n "$ac_ct_OTOOL"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10144 $as_echo "$ac_ct_OTOOL" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10148 fi
10149
10150 if test "x$ac_ct_OTOOL" = x; then
10151 OTOOL=":"
10152 else
10153 case $cross_compiling:$ac_tool_warned in
10154 yes:)
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10157 ac_tool_warned=yes ;;
10158 esac
10159 OTOOL=$ac_ct_OTOOL
10160 fi
10161 else
10162 OTOOL="$ac_cv_prog_OTOOL"
10163 fi
10164
10165 if test -n "$ac_tool_prefix"; then
10166 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10167 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_prog_OTOOL64+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 if test -n "$OTOOL64"; then
10174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10175 else
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10178 do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187 done
10188 done
10189 IFS=$as_save_IFS
10190
10191 fi
10192 fi
10193 OTOOL64=$ac_cv_prog_OTOOL64
10194 if test -n "$OTOOL64"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10196 $as_echo "$OTOOL64" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10200 fi
10201
10202
10203 fi
10204 if test -z "$ac_cv_prog_OTOOL64"; then
10205 ac_ct_OTOOL64=$OTOOL64
10206 # Extract the first word of "otool64", so it can be a program name with args.
10207 set dummy otool64; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 if test -n "$ac_ct_OTOOL64"; then
10214 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_ac_ct_OTOOL64="otool64"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 fi
10232 fi
10233 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10234 if test -n "$ac_ct_OTOOL64"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10236 $as_echo "$ac_ct_OTOOL64" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242 if test "x$ac_ct_OTOOL64" = x; then
10243 OTOOL64=":"
10244 else
10245 case $cross_compiling:$ac_tool_warned in
10246 yes:)
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned=yes ;;
10250 esac
10251 OTOOL64=$ac_ct_OTOOL64
10252 fi
10253 else
10254 OTOOL64="$ac_cv_prog_OTOOL64"
10255 fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10284 $as_echo_n "checking for -single_module linker flag... " >&6; }
10285 if ${lt_cv_apple_cc_single_mod+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 lt_cv_apple_cc_single_mod=no
10289 if test -z "${LT_MULTI_MODULE}"; then
10290 # By default we will add the -single_module flag. You can override
10291 # by either setting the environment variable LT_MULTI_MODULE
10292 # non-empty at configure time, or by adding -multi_module to the
10293 # link flags.
10294 rm -rf libconftest.dylib*
10295 echo "int foo(void){return 1;}" > conftest.c
10296 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10297 -dynamiclib -Wl,-single_module conftest.c" >&5
10298 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10299 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10300 _lt_result=$?
10301 # If there is a non-empty error log, and "single_module"
10302 # appears in it, assume the flag caused a linker warning
10303 if test -s conftest.err && $GREP single_module conftest.err; then
10304 cat conftest.err >&5
10305 # Otherwise, if the output was created with a 0 exit code from
10306 # the compiler, it worked.
10307 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10308 lt_cv_apple_cc_single_mod=yes
10309 else
10310 cat conftest.err >&5
10311 fi
10312 rm -rf libconftest.dylib*
10313 rm -f conftest.*
10314 fi
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10317 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10318
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10320 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10321 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 lt_cv_ld_exported_symbols_list=no
10325 save_LDFLAGS=$LDFLAGS
10326 echo "_main" > conftest.sym
10327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330
10331 int
10332 main ()
10333 {
10334
10335 ;
10336 return 0;
10337 }
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 lt_cv_ld_exported_symbols_list=yes
10341 else
10342 lt_cv_ld_exported_symbols_list=no
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LDFLAGS="$save_LDFLAGS"
10347
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10350 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10353 $as_echo_n "checking for -force_load linker flag... " >&6; }
10354 if ${lt_cv_ld_force_load+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 lt_cv_ld_force_load=no
10358 cat > conftest.c << _LT_EOF
10359 int forced_loaded() { return 2;}
10360 _LT_EOF
10361 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10362 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10363 echo "$AR cru libconftest.a conftest.o" >&5
10364 $AR cru libconftest.a conftest.o 2>&5
10365 echo "$RANLIB libconftest.a" >&5
10366 $RANLIB libconftest.a 2>&5
10367 cat > conftest.c << _LT_EOF
10368 int main() { return 0;}
10369 _LT_EOF
10370 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10371 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10372 _lt_result=$?
10373 if test -s conftest.err && $GREP force_load conftest.err; then
10374 cat conftest.err >&5
10375 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10376 lt_cv_ld_force_load=yes
10377 else
10378 cat conftest.err >&5
10379 fi
10380 rm -f conftest.err libconftest.a conftest conftest.c
10381 rm -rf conftest.dSYM
10382
10383 fi
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10385 $as_echo "$lt_cv_ld_force_load" >&6; }
10386 case $host_os in
10387 rhapsody* | darwin1.[012])
10388 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10389 darwin1.*)
10390 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10391 darwin*) # darwin 5.x on
10392 # if running on 10.5 or later, the deployment target defaults
10393 # to the OS version, if on x86, and 10.4, the deployment
10394 # target defaults to 10.4. Don't you love it?
10395 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10396 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10397 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10398 10.[012]*)
10399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10400 10.*)
10401 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10402 esac
10403 ;;
10404 esac
10405 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10406 _lt_dar_single_mod='$single_module'
10407 fi
10408 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10409 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10410 else
10411 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10412 fi
10413 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10414 _lt_dsymutil='~$DSYMUTIL $lib || :'
10415 else
10416 _lt_dsymutil=
10417 fi
10418 ;;
10419 esac
10420
10421 ac_ext=c
10422 ac_cpp='$CPP $CPPFLAGS'
10423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10428 # On Suns, sometimes $CPP names a directory.
10429 if test -n "$CPP" && test -d "$CPP"; then
10430 CPP=
10431 fi
10432 if test -z "$CPP"; then
10433 if ${ac_cv_prog_CPP+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 # Double quotes because CPP needs to be expanded
10437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10438 do
10439 ac_preproc_ok=false
10440 for ac_c_preproc_warn_flag in '' yes
10441 do
10442 # Use a header file that comes with gcc, so configuring glibc
10443 # with a fresh cross-compiler works.
10444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10445 # <limits.h> exists even on freestanding compilers.
10446 # On the NeXT, cc -E runs the code through the compiler's parser,
10447 # not just through cpp. "Syntax error" is here to catch this case.
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #ifdef __STDC__
10451 # include <limits.h>
10452 #else
10453 # include <assert.h>
10454 #endif
10455 Syntax error
10456 _ACEOF
10457 if ac_fn_c_try_cpp "$LINENO"; then :
10458
10459 else
10460 # Broken: fails on valid input.
10461 continue
10462 fi
10463 rm -f conftest.err conftest.i conftest.$ac_ext
10464
10465 # OK, works on sane cases. Now check whether nonexistent headers
10466 # can be detected and how.
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 #include <ac_nonexistent.h>
10470 _ACEOF
10471 if ac_fn_c_try_cpp "$LINENO"; then :
10472 # Broken: success on invalid input.
10473 continue
10474 else
10475 # Passes both tests.
10476 ac_preproc_ok=:
10477 break
10478 fi
10479 rm -f conftest.err conftest.i conftest.$ac_ext
10480
10481 done
10482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10483 rm -f conftest.i conftest.err conftest.$ac_ext
10484 if $ac_preproc_ok; then :
10485 break
10486 fi
10487
10488 done
10489 ac_cv_prog_CPP=$CPP
10490
10491 fi
10492 CPP=$ac_cv_prog_CPP
10493 else
10494 ac_cv_prog_CPP=$CPP
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10497 $as_echo "$CPP" >&6; }
10498 ac_preproc_ok=false
10499 for ac_c_preproc_warn_flag in '' yes
10500 do
10501 # Use a header file that comes with gcc, so configuring glibc
10502 # with a fresh cross-compiler works.
10503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10504 # <limits.h> exists even on freestanding compilers.
10505 # On the NeXT, cc -E runs the code through the compiler's parser,
10506 # not just through cpp. "Syntax error" is here to catch this case.
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #ifdef __STDC__
10510 # include <limits.h>
10511 #else
10512 # include <assert.h>
10513 #endif
10514 Syntax error
10515 _ACEOF
10516 if ac_fn_c_try_cpp "$LINENO"; then :
10517
10518 else
10519 # Broken: fails on valid input.
10520 continue
10521 fi
10522 rm -f conftest.err conftest.i conftest.$ac_ext
10523
10524 # OK, works on sane cases. Now check whether nonexistent headers
10525 # can be detected and how.
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 #include <ac_nonexistent.h>
10529 _ACEOF
10530 if ac_fn_c_try_cpp "$LINENO"; then :
10531 # Broken: success on invalid input.
10532 continue
10533 else
10534 # Passes both tests.
10535 ac_preproc_ok=:
10536 break
10537 fi
10538 rm -f conftest.err conftest.i conftest.$ac_ext
10539
10540 done
10541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10542 rm -f conftest.i conftest.err conftest.$ac_ext
10543 if $ac_preproc_ok; then :
10544
10545 else
10546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10548 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10549 See \`config.log' for more details" "$LINENO" 5; }
10550 fi
10551
10552 ac_ext=c
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10560 $as_echo_n "checking for ANSI C header files... " >&6; }
10561 if ${ac_cv_header_stdc+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include <stdlib.h>
10567 #include <stdarg.h>
10568 #include <string.h>
10569 #include <float.h>
10570
10571 int
10572 main ()
10573 {
10574
10575 ;
10576 return 0;
10577 }
10578 _ACEOF
10579 if ac_fn_c_try_compile "$LINENO"; then :
10580 ac_cv_header_stdc=yes
10581 else
10582 ac_cv_header_stdc=no
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585
10586 if test $ac_cv_header_stdc = yes; then
10587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <string.h>
10591
10592 _ACEOF
10593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10594 $EGREP "memchr" >/dev/null 2>&1; then :
10595
10596 else
10597 ac_cv_header_stdc=no
10598 fi
10599 rm -f conftest*
10600
10601 fi
10602
10603 if test $ac_cv_header_stdc = yes; then
10604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 #include <stdlib.h>
10608
10609 _ACEOF
10610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10611 $EGREP "free" >/dev/null 2>&1; then :
10612
10613 else
10614 ac_cv_header_stdc=no
10615 fi
10616 rm -f conftest*
10617
10618 fi
10619
10620 if test $ac_cv_header_stdc = yes; then
10621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10622 if test "$cross_compiling" = yes; then :
10623 :
10624 else
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <ctype.h>
10628 #include <stdlib.h>
10629 #if ((' ' & 0x0FF) == 0x020)
10630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10632 #else
10633 # define ISLOWER(c) \
10634 (('a' <= (c) && (c) <= 'i') \
10635 || ('j' <= (c) && (c) <= 'r') \
10636 || ('s' <= (c) && (c) <= 'z'))
10637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10638 #endif
10639
10640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10641 int
10642 main ()
10643 {
10644 int i;
10645 for (i = 0; i < 256; i++)
10646 if (XOR (islower (i), ISLOWER (i))
10647 || toupper (i) != TOUPPER (i))
10648 return 2;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_run "$LINENO"; then :
10653
10654 else
10655 ac_cv_header_stdc=no
10656 fi
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10658 conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 fi
10660
10661 fi
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10664 $as_echo "$ac_cv_header_stdc" >&6; }
10665 if test $ac_cv_header_stdc = yes; then
10666
10667 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10668
10669 fi
10670
10671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10673 inttypes.h stdint.h unistd.h
10674 do :
10675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10677 "
10678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10679 cat >>confdefs.h <<_ACEOF
10680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10681 _ACEOF
10682
10683 fi
10684
10685 done
10686
10687
10688 for ac_header in dlfcn.h
10689 do :
10690 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10691 "
10692 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10693 cat >>confdefs.h <<_ACEOF
10694 #define HAVE_DLFCN_H 1
10695 _ACEOF
10696
10697 fi
10698
10699 done
10700
10701
10702
10703
10704
10705 # Set options
10706
10707
10708
10709 enable_dlopen=no
10710
10711
10712
10713 # Check whether --enable-shared was given.
10714 if test "${enable_shared+set}" = set; then :
10715 enableval=$enable_shared; p=${PACKAGE-default}
10716 case $enableval in
10717 yes) enable_shared=yes ;;
10718 no) enable_shared=no ;;
10719 *)
10720 enable_shared=no
10721 # Look at the argument we got. We use all the common list separators.
10722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10723 for pkg in $enableval; do
10724 IFS="$lt_save_ifs"
10725 if test "X$pkg" = "X$p"; then
10726 enable_shared=yes
10727 fi
10728 done
10729 IFS="$lt_save_ifs"
10730 ;;
10731 esac
10732 else
10733 enable_shared=yes
10734 fi
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 # Check whether --enable-static was given.
10745 if test "${enable_static+set}" = set; then :
10746 enableval=$enable_static; p=${PACKAGE-default}
10747 case $enableval in
10748 yes) enable_static=yes ;;
10749 no) enable_static=no ;;
10750 *)
10751 enable_static=no
10752 # Look at the argument we got. We use all the common list separators.
10753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10754 for pkg in $enableval; do
10755 IFS="$lt_save_ifs"
10756 if test "X$pkg" = "X$p"; then
10757 enable_static=yes
10758 fi
10759 done
10760 IFS="$lt_save_ifs"
10761 ;;
10762 esac
10763 else
10764 enable_static=yes
10765 fi
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 # Check whether --with-pic was given.
10777 if test "${with_pic+set}" = set; then :
10778 withval=$with_pic; lt_p=${PACKAGE-default}
10779 case $withval in
10780 yes|no) pic_mode=$withval ;;
10781 *)
10782 pic_mode=default
10783 # Look at the argument we got. We use all the common list separators.
10784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10785 for lt_pkg in $withval; do
10786 IFS="$lt_save_ifs"
10787 if test "X$lt_pkg" = "X$lt_p"; then
10788 pic_mode=yes
10789 fi
10790 done
10791 IFS="$lt_save_ifs"
10792 ;;
10793 esac
10794 else
10795 pic_mode=default
10796 fi
10797
10798
10799 test -z "$pic_mode" && pic_mode=default
10800
10801
10802
10803
10804
10805
10806
10807 # Check whether --enable-fast-install was given.
10808 if test "${enable_fast_install+set}" = set; then :
10809 enableval=$enable_fast_install; p=${PACKAGE-default}
10810 case $enableval in
10811 yes) enable_fast_install=yes ;;
10812 no) enable_fast_install=no ;;
10813 *)
10814 enable_fast_install=no
10815 # Look at the argument we got. We use all the common list separators.
10816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10817 for pkg in $enableval; do
10818 IFS="$lt_save_ifs"
10819 if test "X$pkg" = "X$p"; then
10820 enable_fast_install=yes
10821 fi
10822 done
10823 IFS="$lt_save_ifs"
10824 ;;
10825 esac
10826 else
10827 enable_fast_install=yes
10828 fi
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840 # This can be used to rebuild libtool when needed
10841 LIBTOOL_DEPS="$ltmain"
10842
10843 # Always use our own libtool.
10844 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875 test -z "$LN_S" && LN_S="ln -s"
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890 if test -n "${ZSH_VERSION+set}" ; then
10891 setopt NO_GLOB_SUBST
10892 fi
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10895 $as_echo_n "checking for objdir... " >&6; }
10896 if ${lt_cv_objdir+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 rm -f .libs 2>/dev/null
10900 mkdir .libs 2>/dev/null
10901 if test -d .libs; then
10902 lt_cv_objdir=.libs
10903 else
10904 # MS-DOS does not allow filenames that begin with a dot.
10905 lt_cv_objdir=_libs
10906 fi
10907 rmdir .libs 2>/dev/null
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10910 $as_echo "$lt_cv_objdir" >&6; }
10911 objdir=$lt_cv_objdir
10912
10913
10914
10915
10916
10917 cat >>confdefs.h <<_ACEOF
10918 #define LT_OBJDIR "$lt_cv_objdir/"
10919 _ACEOF
10920
10921
10922
10923
10924 case $host_os in
10925 aix3*)
10926 # AIX sometimes has problems with the GCC collect2 program. For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10930 COLLECT_NAMES=
10931 export COLLECT_NAMES
10932 fi
10933 ;;
10934 esac
10935
10936 # Global variables:
10937 ofile=libtool
10938 can_build_shared=yes
10939
10940 # All known linkers require a `.a' archive for static linking (except MSVC,
10941 # which needs '.lib').
10942 libext=a
10943
10944 with_gnu_ld="$lt_cv_prog_gnu_ld"
10945
10946 old_CC="$CC"
10947 old_CFLAGS="$CFLAGS"
10948
10949 # Set sane defaults for various variables
10950 test -z "$CC" && CC=cc
10951 test -z "$LTCC" && LTCC=$CC
10952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10953 test -z "$LD" && LD=ld
10954 test -z "$ac_objext" && ac_objext=o
10955
10956 for cc_temp in $compiler""; do
10957 case $cc_temp in
10958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10960 \-*) ;;
10961 *) break;;
10962 esac
10963 done
10964 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10965
10966
10967 # Only perform the check for file, if the check method requires it
10968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10969 case $deplibs_check_method in
10970 file_magic*)
10971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 case $MAGIC_CMD in
10978 [\\/*] | ?:[\\/]*)
10979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 lt_save_MAGIC_CMD="$MAGIC_CMD"
10983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10985 for ac_dir in $ac_dummy; do
10986 IFS="$lt_save_ifs"
10987 test -z "$ac_dir" && ac_dir=.
10988 if test -f $ac_dir/${ac_tool_prefix}file; then
10989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10990 if test -n "$file_magic_test_file"; then
10991 case $deplibs_check_method in
10992 "file_magic "*)
10993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10996 $EGREP "$file_magic_regex" > /dev/null; then
10997 :
10998 else
10999 cat <<_LT_EOF 1>&2
11000
11001 *** Warning: the command libtool uses to detect shared libraries,
11002 *** $file_magic_cmd, produces output that libtool cannot recognize.
11003 *** The result is that libtool may fail to recognize shared libraries
11004 *** as such. This will affect the creation of libtool libraries that
11005 *** depend on shared libraries, but programs linked with such libtool
11006 *** libraries will work regardless of this problem. Nevertheless, you
11007 *** may want to report the problem to your system manager and/or to
11008 *** [email protected]
11009
11010 _LT_EOF
11011 fi ;;
11012 esac
11013 fi
11014 break
11015 fi
11016 done
11017 IFS="$lt_save_ifs"
11018 MAGIC_CMD="$lt_save_MAGIC_CMD"
11019 ;;
11020 esac
11021 fi
11022
11023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11024 if test -n "$MAGIC_CMD"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11026 $as_echo "$MAGIC_CMD" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030 fi
11031
11032
11033
11034
11035
11036 if test -z "$lt_cv_path_MAGIC_CMD"; then
11037 if test -n "$ac_tool_prefix"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11039 $as_echo_n "checking for file... " >&6; }
11040 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $MAGIC_CMD in
11044 [\\/*] | ?:[\\/]*)
11045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11046 ;;
11047 *)
11048 lt_save_MAGIC_CMD="$MAGIC_CMD"
11049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11051 for ac_dir in $ac_dummy; do
11052 IFS="$lt_save_ifs"
11053 test -z "$ac_dir" && ac_dir=.
11054 if test -f $ac_dir/file; then
11055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11056 if test -n "$file_magic_test_file"; then
11057 case $deplibs_check_method in
11058 "file_magic "*)
11059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11062 $EGREP "$file_magic_regex" > /dev/null; then
11063 :
11064 else
11065 cat <<_LT_EOF 1>&2
11066
11067 *** Warning: the command libtool uses to detect shared libraries,
11068 *** $file_magic_cmd, produces output that libtool cannot recognize.
11069 *** The result is that libtool may fail to recognize shared libraries
11070 *** as such. This will affect the creation of libtool libraries that
11071 *** depend on shared libraries, but programs linked with such libtool
11072 *** libraries will work regardless of this problem. Nevertheless, you
11073 *** may want to report the problem to your system manager and/or to
11074 *** [email protected]
11075
11076 _LT_EOF
11077 fi ;;
11078 esac
11079 fi
11080 break
11081 fi
11082 done
11083 IFS="$lt_save_ifs"
11084 MAGIC_CMD="$lt_save_MAGIC_CMD"
11085 ;;
11086 esac
11087 fi
11088
11089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11090 if test -n "$MAGIC_CMD"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11092 $as_echo "$MAGIC_CMD" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 fi
11097
11098
11099 else
11100 MAGIC_CMD=:
11101 fi
11102 fi
11103
11104 fi
11105 ;;
11106 esac
11107
11108 # Use C for the default configuration in the libtool script
11109
11110 lt_save_CC="$CC"
11111 ac_ext=c
11112 ac_cpp='$CPP $CPPFLAGS'
11113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11116
11117
11118 # Source file extension for C test sources.
11119 ac_ext=c
11120
11121 # Object file extension for compiled C test sources.
11122 objext=o
11123 objext=$objext
11124
11125 # Code to be used in simple compile tests
11126 lt_simple_compile_test_code="int some_variable = 0;"
11127
11128 # Code to be used in simple link tests
11129 lt_simple_link_test_code='int main(){return(0);}'
11130
11131
11132
11133
11134
11135
11136
11137 # If no C compiler was specified, use CC.
11138 LTCC=${LTCC-"$CC"}
11139
11140 # If no C compiler flags were specified, use CFLAGS.
11141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11142
11143 # Allow CC to be a program name with arguments.
11144 compiler=$CC
11145
11146 # Save the default compiler, since it gets overwritten when the other
11147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11148 compiler_DEFAULT=$CC
11149
11150 # save warnings/boilerplate of simple test code
11151 ac_outfile=conftest.$ac_objext
11152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11154 _lt_compiler_boilerplate=`cat conftest.err`
11155 $RM conftest*
11156
11157 ac_outfile=conftest.$ac_objext
11158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11160 _lt_linker_boilerplate=`cat conftest.err`
11161 $RM -r conftest*
11162
11163
11164 ## CAVEAT EMPTOR:
11165 ## There is no encapsulation within the following macros, do not change
11166 ## the running order or otherwise move them around unless you know exactly
11167 ## what you are doing...
11168 if test -n "$compiler"; then
11169
11170 lt_prog_compiler_no_builtin_flag=
11171
11172 if test "$GCC" = yes; then
11173 case $cc_basename in
11174 nvcc*)
11175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11176 *)
11177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11178 esac
11179
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11181 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11182 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 lt_cv_prog_compiler_rtti_exceptions=no
11186 ac_outfile=conftest.$ac_objext
11187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11188 lt_compiler_flag="-fno-rtti -fno-exceptions"
11189 # Insert the option either (1) after the last *FLAGS variable, or
11190 # (2) before a word containing "conftest.", or (3) at the end.
11191 # Note that $ac_compile itself does not contain backslashes and begins
11192 # with a dollar sign (not a hyphen), so the echo should work correctly.
11193 # The option is referenced via a variable to avoid confusing sed.
11194 lt_compile=`echo "$ac_compile" | $SED \
11195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11197 -e 's:$: $lt_compiler_flag:'`
11198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11199 (eval "$lt_compile" 2>conftest.err)
11200 ac_status=$?
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 if (exit $ac_status) && test -s "$ac_outfile"; then
11204 # The compiler can only warn and ignore the option if not recognized
11205 # So say no if there are warnings other than the usual output.
11206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11209 lt_cv_prog_compiler_rtti_exceptions=yes
11210 fi
11211 fi
11212 $RM conftest*
11213
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11216 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11217
11218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11220 else
11221 :
11222 fi
11223
11224 fi
11225
11226
11227
11228
11229
11230
11231 lt_prog_compiler_wl=
11232 lt_prog_compiler_pic=
11233 lt_prog_compiler_static=
11234
11235
11236 if test "$GCC" = yes; then
11237 lt_prog_compiler_wl='-Wl,'
11238 lt_prog_compiler_static='-static'
11239
11240 case $host_os in
11241 aix*)
11242 # All AIX code is PIC.
11243 if test "$host_cpu" = ia64; then
11244 # AIX 5 now supports IA64 processor
11245 lt_prog_compiler_static='-Bstatic'
11246 fi
11247 ;;
11248
11249 amigaos*)
11250 case $host_cpu in
11251 powerpc)
11252 # see comment about AmigaOS4 .so support
11253 lt_prog_compiler_pic='-fPIC'
11254 ;;
11255 m68k)
11256 # FIXME: we need at least 68020 code to build shared libraries, but
11257 # adding the `-m68020' flag to GCC prevents building anything better,
11258 # like `-m68040'.
11259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11260 ;;
11261 esac
11262 ;;
11263
11264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11265 # PIC is the default for these OSes.
11266 ;;
11267
11268 mingw* | cygwin* | pw32* | os2* | cegcc*)
11269 # This hack is so that the source file can tell whether it is being
11270 # built for inclusion in a dll (and should export symbols for example).
11271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11272 # (--disable-auto-import) libraries
11273 lt_prog_compiler_pic='-DDLL_EXPORT'
11274 ;;
11275
11276 darwin* | rhapsody*)
11277 # PIC is the default on this platform
11278 # Common symbols not allowed in MH_DYLIB files
11279 lt_prog_compiler_pic='-fno-common'
11280 ;;
11281
11282 haiku*)
11283 # PIC is the default for Haiku.
11284 # The "-static" flag exists, but is broken.
11285 lt_prog_compiler_static=
11286 ;;
11287
11288 hpux*)
11289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11291 # sets the default TLS model and affects inlining.
11292 case $host_cpu in
11293 hppa*64*)
11294 # +Z the default
11295 ;;
11296 *)
11297 lt_prog_compiler_pic='-fPIC'
11298 ;;
11299 esac
11300 ;;
11301
11302 interix[3-9]*)
11303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11304 # Instead, we relocate shared libraries at runtime.
11305 ;;
11306
11307 msdosdjgpp*)
11308 # Just because we use GCC doesn't mean we suddenly get shared libraries
11309 # on systems that don't support them.
11310 lt_prog_compiler_can_build_shared=no
11311 enable_shared=no
11312 ;;
11313
11314 *nto* | *qnx*)
11315 # QNX uses GNU C++, but need to define -shared option too, otherwise
11316 # it will coredump.
11317 lt_prog_compiler_pic='-fPIC -shared'
11318 ;;
11319
11320 sysv4*MP*)
11321 if test -d /usr/nec; then
11322 lt_prog_compiler_pic=-Kconform_pic
11323 fi
11324 ;;
11325
11326 *)
11327 lt_prog_compiler_pic='-fPIC'
11328 ;;
11329 esac
11330
11331 case $cc_basename in
11332 nvcc*) # Cuda Compiler Driver 2.2
11333 lt_prog_compiler_wl='-Xlinker '
11334 if test -n "$lt_prog_compiler_pic"; then
11335 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11336 fi
11337 ;;
11338 esac
11339 else
11340 # PORTME Check for flag to pass linker flags through the system compiler.
11341 case $host_os in
11342 aix*)
11343 lt_prog_compiler_wl='-Wl,'
11344 if test "$host_cpu" = ia64; then
11345 # AIX 5 now supports IA64 processor
11346 lt_prog_compiler_static='-Bstatic'
11347 else
11348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11349 fi
11350 ;;
11351
11352 mingw* | cygwin* | pw32* | os2* | cegcc*)
11353 # This hack is so that the source file can tell whether it is being
11354 # built for inclusion in a dll (and should export symbols for example).
11355 lt_prog_compiler_pic='-DDLL_EXPORT'
11356 ;;
11357
11358 hpux9* | hpux10* | hpux11*)
11359 lt_prog_compiler_wl='-Wl,'
11360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11361 # not for PA HP-UX.
11362 case $host_cpu in
11363 hppa*64*|ia64*)
11364 # +Z the default
11365 ;;
11366 *)
11367 lt_prog_compiler_pic='+Z'
11368 ;;
11369 esac
11370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11371 lt_prog_compiler_static='${wl}-a ${wl}archive'
11372 ;;
11373
11374 irix5* | irix6* | nonstopux*)
11375 lt_prog_compiler_wl='-Wl,'
11376 # PIC (with -KPIC) is the default.
11377 lt_prog_compiler_static='-non_shared'
11378 ;;
11379
11380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11381 case $cc_basename in
11382 # old Intel for x86_64 which still supported -KPIC.
11383 ecc*)
11384 lt_prog_compiler_wl='-Wl,'
11385 lt_prog_compiler_pic='-KPIC'
11386 lt_prog_compiler_static='-static'
11387 ;;
11388 # icc used to be incompatible with GCC.
11389 # ICC 10 doesn't accept -KPIC any more.
11390 icc* | ifort*)
11391 lt_prog_compiler_wl='-Wl,'
11392 lt_prog_compiler_pic='-fPIC'
11393 lt_prog_compiler_static='-static'
11394 ;;
11395 # Lahey Fortran 8.1.
11396 lf95*)
11397 lt_prog_compiler_wl='-Wl,'
11398 lt_prog_compiler_pic='--shared'
11399 lt_prog_compiler_static='--static'
11400 ;;
11401 nagfor*)
11402 # NAG Fortran compiler
11403 lt_prog_compiler_wl='-Wl,-Wl,,'
11404 lt_prog_compiler_pic='-PIC'
11405 lt_prog_compiler_static='-Bstatic'
11406 ;;
11407 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11408 # Portland Group compilers (*not* the Pentium gcc compiler,
11409 # which looks to be a dead project)
11410 lt_prog_compiler_wl='-Wl,'
11411 lt_prog_compiler_pic='-fpic'
11412 lt_prog_compiler_static='-Bstatic'
11413 ;;
11414 ccc*)
11415 lt_prog_compiler_wl='-Wl,'
11416 # All Alpha code is PIC.
11417 lt_prog_compiler_static='-non_shared'
11418 ;;
11419 xl* | bgxl* | bgf* | mpixl*)
11420 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11421 lt_prog_compiler_wl='-Wl,'
11422 lt_prog_compiler_pic='-qpic'
11423 lt_prog_compiler_static='-qstaticlink'
11424 ;;
11425 *)
11426 case `$CC -V 2>&1 | sed 5q` in
11427 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11429 lt_prog_compiler_pic='-KPIC'
11430 lt_prog_compiler_static='-Bstatic'
11431 lt_prog_compiler_wl=''
11432 ;;
11433 *Sun\ F* | *Sun*Fortran*)
11434 lt_prog_compiler_pic='-KPIC'
11435 lt_prog_compiler_static='-Bstatic'
11436 lt_prog_compiler_wl='-Qoption ld '
11437 ;;
11438 *Sun\ C*)
11439 # Sun C 5.9
11440 lt_prog_compiler_pic='-KPIC'
11441 lt_prog_compiler_static='-Bstatic'
11442 lt_prog_compiler_wl='-Wl,'
11443 ;;
11444 *Intel*\ [CF]*Compiler*)
11445 lt_prog_compiler_wl='-Wl,'
11446 lt_prog_compiler_pic='-fPIC'
11447 lt_prog_compiler_static='-static'
11448 ;;
11449 *Portland\ Group*)
11450 lt_prog_compiler_wl='-Wl,'
11451 lt_prog_compiler_pic='-fpic'
11452 lt_prog_compiler_static='-Bstatic'
11453 ;;
11454 esac
11455 ;;
11456 esac
11457 ;;
11458
11459 newsos6)
11460 lt_prog_compiler_pic='-KPIC'
11461 lt_prog_compiler_static='-Bstatic'
11462 ;;
11463
11464 *nto* | *qnx*)
11465 # QNX uses GNU C++, but need to define -shared option too, otherwise
11466 # it will coredump.
11467 lt_prog_compiler_pic='-fPIC -shared'
11468 ;;
11469
11470 osf3* | osf4* | osf5*)
11471 lt_prog_compiler_wl='-Wl,'
11472 # All OSF/1 code is PIC.
11473 lt_prog_compiler_static='-non_shared'
11474 ;;
11475
11476 rdos*)
11477 lt_prog_compiler_static='-non_shared'
11478 ;;
11479
11480 solaris*)
11481 lt_prog_compiler_pic='-KPIC'
11482 lt_prog_compiler_static='-Bstatic'
11483 case $cc_basename in
11484 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11485 lt_prog_compiler_wl='-Qoption ld ';;
11486 *)
11487 lt_prog_compiler_wl='-Wl,';;
11488 esac
11489 ;;
11490
11491 sunos4*)
11492 lt_prog_compiler_wl='-Qoption ld '
11493 lt_prog_compiler_pic='-PIC'
11494 lt_prog_compiler_static='-Bstatic'
11495 ;;
11496
11497 sysv4 | sysv4.2uw2* | sysv4.3*)
11498 lt_prog_compiler_wl='-Wl,'
11499 lt_prog_compiler_pic='-KPIC'
11500 lt_prog_compiler_static='-Bstatic'
11501 ;;
11502
11503 sysv4*MP*)
11504 if test -d /usr/nec ;then
11505 lt_prog_compiler_pic='-Kconform_pic'
11506 lt_prog_compiler_static='-Bstatic'
11507 fi
11508 ;;
11509
11510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11511 lt_prog_compiler_wl='-Wl,'
11512 lt_prog_compiler_pic='-KPIC'
11513 lt_prog_compiler_static='-Bstatic'
11514 ;;
11515
11516 unicos*)
11517 lt_prog_compiler_wl='-Wl,'
11518 lt_prog_compiler_can_build_shared=no
11519 ;;
11520
11521 uts4*)
11522 lt_prog_compiler_pic='-pic'
11523 lt_prog_compiler_static='-Bstatic'
11524 ;;
11525
11526 *)
11527 lt_prog_compiler_can_build_shared=no
11528 ;;
11529 esac
11530 fi
11531
11532 case $host_os in
11533 # For platforms which do not support PIC, -DPIC is meaningless:
11534 *djgpp*)
11535 lt_prog_compiler_pic=
11536 ;;
11537 *)
11538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11539 ;;
11540 esac
11541
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11543 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11544 if ${lt_cv_prog_compiler_pic+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11550 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11551 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11552
11553 #
11554 # Check to make sure the PIC flag actually works.
11555 #
11556 if test -n "$lt_prog_compiler_pic"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11558 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11559 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 lt_cv_prog_compiler_pic_works=no
11563 ac_outfile=conftest.$ac_objext
11564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11566 # Insert the option either (1) after the last *FLAGS variable, or
11567 # (2) before a word containing "conftest.", or (3) at the end.
11568 # Note that $ac_compile itself does not contain backslashes and begins
11569 # with a dollar sign (not a hyphen), so the echo should work correctly.
11570 # The option is referenced via a variable to avoid confusing sed.
11571 lt_compile=`echo "$ac_compile" | $SED \
11572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11574 -e 's:$: $lt_compiler_flag:'`
11575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11576 (eval "$lt_compile" 2>conftest.err)
11577 ac_status=$?
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 if (exit $ac_status) && test -s "$ac_outfile"; then
11581 # The compiler can only warn and ignore the option if not recognized
11582 # So say no if there are warnings other than the usual output.
11583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11586 lt_cv_prog_compiler_pic_works=yes
11587 fi
11588 fi
11589 $RM conftest*
11590
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11593 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11594
11595 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11596 case $lt_prog_compiler_pic in
11597 "" | " "*) ;;
11598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11599 esac
11600 else
11601 lt_prog_compiler_pic=
11602 lt_prog_compiler_can_build_shared=no
11603 fi
11604
11605 fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 #
11618 # Check to make sure the static flag actually works.
11619 #
11620 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11622 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11623 if ${lt_cv_prog_compiler_static_works+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 lt_cv_prog_compiler_static_works=no
11627 save_LDFLAGS="$LDFLAGS"
11628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11631 # The linker can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 if test -s conftest.err; then
11634 # Append any errors to the config.log.
11635 cat conftest.err 1>&5
11636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11638 if diff conftest.exp conftest.er2 >/dev/null; then
11639 lt_cv_prog_compiler_static_works=yes
11640 fi
11641 else
11642 lt_cv_prog_compiler_static_works=yes
11643 fi
11644 fi
11645 $RM -r conftest*
11646 LDFLAGS="$save_LDFLAGS"
11647
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11650 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11651
11652 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11653 :
11654 else
11655 lt_prog_compiler_static=
11656 fi
11657
11658
11659
11660
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11666 if ${lt_cv_prog_compiler_c_o+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 lt_cv_prog_compiler_c_o=no
11670 $RM -r conftest 2>/dev/null
11671 mkdir conftest
11672 cd conftest
11673 mkdir out
11674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11675
11676 lt_compiler_flag="-o out/conftest2.$ac_objext"
11677 # Insert the option either (1) after the last *FLAGS variable, or
11678 # (2) before a word containing "conftest.", or (3) at the end.
11679 # Note that $ac_compile itself does not contain backslashes and begins
11680 # with a dollar sign (not a hyphen), so the echo should work correctly.
11681 lt_compile=`echo "$ac_compile" | $SED \
11682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11684 -e 's:$: $lt_compiler_flag:'`
11685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11686 (eval "$lt_compile" 2>out/conftest.err)
11687 ac_status=$?
11688 cat out/conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11691 then
11692 # The compiler can only warn and ignore the option if not recognized
11693 # So say no if there are warnings
11694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11697 lt_cv_prog_compiler_c_o=yes
11698 fi
11699 fi
11700 chmod u+w . 2>&5
11701 $RM conftest*
11702 # SGI C++ compiler will create directory out/ii_files/ for
11703 # template instantiation
11704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11705 $RM out/* && rmdir out
11706 cd ..
11707 $RM -r conftest
11708 $RM conftest*
11709
11710 fi
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11712 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11713
11714
11715
11716
11717
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11720 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11721 if ${lt_cv_prog_compiler_c_o+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 lt_cv_prog_compiler_c_o=no
11725 $RM -r conftest 2>/dev/null
11726 mkdir conftest
11727 cd conftest
11728 mkdir out
11729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11730
11731 lt_compiler_flag="-o out/conftest2.$ac_objext"
11732 # Insert the option either (1) after the last *FLAGS variable, or
11733 # (2) before a word containing "conftest.", or (3) at the end.
11734 # Note that $ac_compile itself does not contain backslashes and begins
11735 # with a dollar sign (not a hyphen), so the echo should work correctly.
11736 lt_compile=`echo "$ac_compile" | $SED \
11737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11739 -e 's:$: $lt_compiler_flag:'`
11740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11741 (eval "$lt_compile" 2>out/conftest.err)
11742 ac_status=$?
11743 cat out/conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11746 then
11747 # The compiler can only warn and ignore the option if not recognized
11748 # So say no if there are warnings
11749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11752 lt_cv_prog_compiler_c_o=yes
11753 fi
11754 fi
11755 chmod u+w . 2>&5
11756 $RM conftest*
11757 # SGI C++ compiler will create directory out/ii_files/ for
11758 # template instantiation
11759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11760 $RM out/* && rmdir out
11761 cd ..
11762 $RM -r conftest
11763 $RM conftest*
11764
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11767 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11768
11769
11770
11771
11772 hard_links="nottested"
11773 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11774 # do not overwrite the value of need_locks provided by the user
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11776 $as_echo_n "checking if we can lock with hard links... " >&6; }
11777 hard_links=yes
11778 $RM conftest*
11779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11780 touch conftest.a
11781 ln conftest.a conftest.b 2>&5 || hard_links=no
11782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11784 $as_echo "$hard_links" >&6; }
11785 if test "$hard_links" = no; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11787 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11788 need_locks=warn
11789 fi
11790 else
11791 need_locks=no
11792 fi
11793
11794
11795
11796
11797
11798
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11801
11802 runpath_var=
11803 allow_undefined_flag=
11804 always_export_symbols=no
11805 archive_cmds=
11806 archive_expsym_cmds=
11807 compiler_needs_object=no
11808 enable_shared_with_static_runtimes=no
11809 export_dynamic_flag_spec=
11810 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11811 hardcode_automatic=no
11812 hardcode_direct=no
11813 hardcode_direct_absolute=no
11814 hardcode_libdir_flag_spec=
11815 hardcode_libdir_separator=
11816 hardcode_minus_L=no
11817 hardcode_shlibpath_var=unsupported
11818 inherit_rpath=no
11819 link_all_deplibs=unknown
11820 module_cmds=
11821 module_expsym_cmds=
11822 old_archive_from_new_cmds=
11823 old_archive_from_expsyms_cmds=
11824 thread_safe_flag_spec=
11825 whole_archive_flag_spec=
11826 # include_expsyms should be a list of space-separated symbols to be *always*
11827 # included in the symbol list
11828 include_expsyms=
11829 # exclude_expsyms can be an extended regexp of symbols to exclude
11830 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11832 # as well as any symbol that contains `d'.
11833 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11835 # platforms (ab)use it in PIC code, but their linkers get confused if
11836 # the symbol is explicitly referenced. Since portable code cannot
11837 # rely on this symbol name, it's probably fine to never include it in
11838 # preloaded symbol tables.
11839 # Exclude shared library initialization/finalization symbols.
11840 extract_expsyms_cmds=
11841
11842 case $host_os in
11843 cygwin* | mingw* | pw32* | cegcc*)
11844 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11845 # When not using gcc, we currently assume that we are using
11846 # Microsoft Visual C++.
11847 if test "$GCC" != yes; then
11848 with_gnu_ld=no
11849 fi
11850 ;;
11851 interix*)
11852 # we just hope/assume this is gcc and not c89 (= MSVC++)
11853 with_gnu_ld=yes
11854 ;;
11855 openbsd*)
11856 with_gnu_ld=no
11857 ;;
11858 linux* | k*bsd*-gnu | gnu*)
11859 link_all_deplibs=no
11860 ;;
11861 esac
11862
11863 ld_shlibs=yes
11864
11865 # On some targets, GNU ld is compatible enough with the native linker
11866 # that we're better off using the native interface for both.
11867 lt_use_gnu_ld_interface=no
11868 if test "$with_gnu_ld" = yes; then
11869 case $host_os in
11870 aix*)
11871 # The AIX port of GNU ld has always aspired to compatibility
11872 # with the native linker. However, as the warning in the GNU ld
11873 # block says, versions before 2.19.5* couldn't really create working
11874 # shared libraries, regardless of the interface used.
11875 case `$LD -v 2>&1` in
11876 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11877 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11878 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11879 *)
11880 lt_use_gnu_ld_interface=yes
11881 ;;
11882 esac
11883 ;;
11884 *)
11885 lt_use_gnu_ld_interface=yes
11886 ;;
11887 esac
11888 fi
11889
11890 if test "$lt_use_gnu_ld_interface" = yes; then
11891 # If archive_cmds runs LD, not CC, wlarc should be empty
11892 wlarc='${wl}'
11893
11894 # Set some defaults for GNU ld with shared library support. These
11895 # are reset later if shared libraries are not supported. Putting them
11896 # here allows them to be overridden if necessary.
11897 runpath_var=LD_RUN_PATH
11898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11899 export_dynamic_flag_spec='${wl}--export-dynamic'
11900 # ancient GNU ld didn't support --whole-archive et. al.
11901 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11902 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11903 else
11904 whole_archive_flag_spec=
11905 fi
11906 supports_anon_versioning=no
11907 case `$LD -v 2>&1` in
11908 *GNU\ gold*) supports_anon_versioning=yes ;;
11909 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11910 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11911 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11912 *\ 2.11.*) ;; # other 2.11 versions
11913 *) supports_anon_versioning=yes ;;
11914 esac
11915
11916 # See if GNU ld supports shared libraries.
11917 case $host_os in
11918 aix[3-9]*)
11919 # On AIX/PPC, the GNU linker is very broken
11920 if test "$host_cpu" != ia64; then
11921 ld_shlibs=no
11922 cat <<_LT_EOF 1>&2
11923
11924 *** Warning: the GNU linker, at least up to release 2.19, is reported
11925 *** to be unable to reliably create shared libraries on AIX.
11926 *** Therefore, libtool is disabling shared libraries support. If you
11927 *** really care for shared libraries, you may want to install binutils
11928 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11929 *** You will then need to restart the configuration process.
11930
11931 _LT_EOF
11932 fi
11933 ;;
11934
11935 amigaos*)
11936 case $host_cpu in
11937 powerpc)
11938 # see comment about AmigaOS4 .so support
11939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11940 archive_expsym_cmds=''
11941 ;;
11942 m68k)
11943 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)'
11944 hardcode_libdir_flag_spec='-L$libdir'
11945 hardcode_minus_L=yes
11946 ;;
11947 esac
11948 ;;
11949
11950 beos*)
11951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11952 allow_undefined_flag=unsupported
11953 # Joseph Beckenbach <[email protected]> says some releases of gcc
11954 # support --undefined. This deserves some investigation. FIXME
11955 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11956 else
11957 ld_shlibs=no
11958 fi
11959 ;;
11960
11961 cygwin* | mingw* | pw32* | cegcc*)
11962 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11963 # as there is no search path for DLLs.
11964 hardcode_libdir_flag_spec='-L$libdir'
11965 export_dynamic_flag_spec='${wl}--export-all-symbols'
11966 allow_undefined_flag=unsupported
11967 always_export_symbols=no
11968 enable_shared_with_static_runtimes=yes
11969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11970 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11971
11972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11974 # If the export-symbols file already is a .def file (1st line
11975 # is EXPORTS), use it as is; otherwise, prepend...
11976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11977 cp $export_symbols $output_objdir/$soname.def;
11978 else
11979 echo EXPORTS > $output_objdir/$soname.def;
11980 cat $export_symbols >> $output_objdir/$soname.def;
11981 fi~
11982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11983 else
11984 ld_shlibs=no
11985 fi
11986 ;;
11987
11988 haiku*)
11989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11990 link_all_deplibs=yes
11991 ;;
11992
11993 interix[3-9]*)
11994 hardcode_direct=no
11995 hardcode_shlibpath_var=no
11996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11997 export_dynamic_flag_spec='${wl}-E'
11998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11999 # Instead, shared libraries are loaded at an image base (0x10000000 by
12000 # default) and relocated if they conflict, which is a slow very memory
12001 # consuming and fragmenting process. To avoid this, we pick a random,
12002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12005 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'
12006 ;;
12007
12008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12009 tmp_diet=no
12010 if test "$host_os" = linux-dietlibc; then
12011 case $cc_basename in
12012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12013 esac
12014 fi
12015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12016 && test "$tmp_diet" = no
12017 then
12018 tmp_addflag=' $pic_flag'
12019 tmp_sharedflag='-shared'
12020 case $cc_basename,$host_cpu in
12021 pgcc*) # Portland Group C compiler
12022 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12023 tmp_addflag=' $pic_flag'
12024 ;;
12025 pgf77* | pgf90* | pgf95* | pgfortran*)
12026 # Portland Group f77 and f90 compilers
12027 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12028 tmp_addflag=' $pic_flag -Mnomain' ;;
12029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12030 tmp_addflag=' -i_dynamic' ;;
12031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12032 tmp_addflag=' -i_dynamic -nofor_main' ;;
12033 ifc* | ifort*) # Intel Fortran compiler
12034 tmp_addflag=' -nofor_main' ;;
12035 lf95*) # Lahey Fortran 8.1
12036 whole_archive_flag_spec=
12037 tmp_sharedflag='--shared' ;;
12038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12039 tmp_sharedflag='-qmkshrobj'
12040 tmp_addflag= ;;
12041 nvcc*) # Cuda Compiler Driver 2.2
12042 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12043 compiler_needs_object=yes
12044 ;;
12045 esac
12046 case `$CC -V 2>&1 | sed 5q` in
12047 *Sun\ C*) # Sun C 5.9
12048 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12049 compiler_needs_object=yes
12050 tmp_sharedflag='-G' ;;
12051 *Sun\ F*) # Sun Fortran 8.3
12052 tmp_sharedflag='-G' ;;
12053 esac
12054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055
12056 if test "x$supports_anon_versioning" = xyes; then
12057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12059 echo "local: *; };" >> $output_objdir/$libname.ver~
12060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12061 fi
12062
12063 case $cc_basename in
12064 xlf* | bgf* | bgxlf* | mpixlf*)
12065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12068 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12069 if test "x$supports_anon_versioning" = xyes; then
12070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12072 echo "local: *; };" >> $output_objdir/$libname.ver~
12073 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12074 fi
12075 ;;
12076 esac
12077 else
12078 ld_shlibs=no
12079 fi
12080 ;;
12081
12082 netbsd* | netbsdelf*-gnu)
12083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12085 wlarc=
12086 else
12087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12089 fi
12090 ;;
12091
12092 solaris*)
12093 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12094 ld_shlibs=no
12095 cat <<_LT_EOF 1>&2
12096
12097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12098 *** create shared libraries on Solaris systems. Therefore, libtool
12099 *** is disabling shared libraries support. We urge you to upgrade GNU
12100 *** binutils to release 2.9.1 or newer. Another option is to modify
12101 *** your PATH or compiler configuration so that the native linker is
12102 *** used, and then restart.
12103
12104 _LT_EOF
12105 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12108 else
12109 ld_shlibs=no
12110 fi
12111 ;;
12112
12113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12114 case `$LD -v 2>&1` in
12115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12116 ld_shlibs=no
12117 cat <<_LT_EOF 1>&2
12118
12119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12120 *** reliably create shared libraries on SCO systems. Therefore, libtool
12121 *** is disabling shared libraries support. We urge you to upgrade GNU
12122 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12123 *** your PATH or compiler configuration so that the native linker is
12124 *** used, and then restart.
12125
12126 _LT_EOF
12127 ;;
12128 *)
12129 # For security reasons, it is highly recommended that you always
12130 # use absolute paths for naming shared libraries, and exclude the
12131 # DT_RUNPATH tag from executables and libraries. But doing so
12132 # requires that you compile everything twice, which is a pain.
12133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12137 else
12138 ld_shlibs=no
12139 fi
12140 ;;
12141 esac
12142 ;;
12143
12144 sunos4*)
12145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12146 wlarc=
12147 hardcode_direct=yes
12148 hardcode_shlibpath_var=no
12149 ;;
12150
12151 *)
12152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12155 else
12156 ld_shlibs=no
12157 fi
12158 ;;
12159 esac
12160
12161 if test "$ld_shlibs" = no; then
12162 runpath_var=
12163 hardcode_libdir_flag_spec=
12164 export_dynamic_flag_spec=
12165 whole_archive_flag_spec=
12166 fi
12167 else
12168 # PORTME fill in a description of your system's linker (not GNU ld)
12169 case $host_os in
12170 aix3*)
12171 allow_undefined_flag=unsupported
12172 always_export_symbols=yes
12173 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'
12174 # Note: this linker hardcodes the directories in LIBPATH if there
12175 # are no directories specified by -L.
12176 hardcode_minus_L=yes
12177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12178 # Neither direct hardcoding nor static linking is supported with a
12179 # broken collect2.
12180 hardcode_direct=unsupported
12181 fi
12182 ;;
12183
12184 aix[4-9]*)
12185 if test "$host_cpu" = ia64; then
12186 # On IA64, the linker does run time linking by default, so we don't
12187 # have to do anything special.
12188 aix_use_runtimelinking=no
12189 exp_sym_flag='-Bexport'
12190 no_entry_flag=""
12191 else
12192 # If we're using GNU nm, then we don't want the "-C" option.
12193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12194 # Also, AIX nm treats weak defined symbols like other global
12195 # defined symbols, whereas GNU nm marks them as "W".
12196 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12197 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12198 else
12199 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'
12200 fi
12201 aix_use_runtimelinking=no
12202
12203 # Test if we are trying to use run time linking or normal
12204 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12205 # need to do runtime linking.
12206 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12207 for ld_flag in $LDFLAGS; do
12208 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12209 aix_use_runtimelinking=yes
12210 break
12211 fi
12212 done
12213 ;;
12214 esac
12215
12216 exp_sym_flag='-bexport'
12217 no_entry_flag='-bnoentry'
12218 fi
12219
12220 # When large executables or shared objects are built, AIX ld can
12221 # have problems creating the table of contents. If linking a library
12222 # or program results in "error TOC overflow" add -mminimal-toc to
12223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12225
12226 archive_cmds=''
12227 hardcode_direct=yes
12228 hardcode_direct_absolute=yes
12229 hardcode_libdir_separator=':'
12230 link_all_deplibs=yes
12231 file_list_spec='${wl}-f,'
12232
12233 if test "$GCC" = yes; then
12234 case $host_os in aix4.[012]|aix4.[012].*)
12235 # We only want to do this on AIX 4.2 and lower, the check
12236 # below for broken collect2 doesn't work under 4.3+
12237 collect2name=`${CC} -print-prog-name=collect2`
12238 if test -f "$collect2name" &&
12239 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12240 then
12241 # We have reworked collect2
12242 :
12243 else
12244 # We have old collect2
12245 hardcode_direct=unsupported
12246 # It fails to find uninstalled libraries when the uninstalled
12247 # path is not listed in the libpath. Setting hardcode_minus_L
12248 # to unsupported forces relinking
12249 hardcode_minus_L=yes
12250 hardcode_libdir_flag_spec='-L$libdir'
12251 hardcode_libdir_separator=
12252 fi
12253 ;;
12254 esac
12255 shared_flag='-shared'
12256 if test "$aix_use_runtimelinking" = yes; then
12257 shared_flag="$shared_flag "'${wl}-G'
12258 fi
12259 link_all_deplibs=no
12260 else
12261 # not using gcc
12262 if test "$host_cpu" = ia64; then
12263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12264 # chokes on -Wl,-G. The following line is correct:
12265 shared_flag='-G'
12266 else
12267 if test "$aix_use_runtimelinking" = yes; then
12268 shared_flag='${wl}-G'
12269 else
12270 shared_flag='${wl}-bM:SRE'
12271 fi
12272 fi
12273 fi
12274
12275 export_dynamic_flag_spec='${wl}-bexpall'
12276 # It seems that -bexpall does not export symbols beginning with
12277 # underscore (_), so it is better to generate a list of symbols to export.
12278 always_export_symbols=yes
12279 if test "$aix_use_runtimelinking" = yes; then
12280 # Warning - without using the other runtime loading flags (-brtl),
12281 # -berok will link without error, but may produce a broken library.
12282 allow_undefined_flag='-berok'
12283 # Determine the default libpath from the value encoded in an
12284 # empty executable.
12285 if test "${lt_cv_aix_libpath+set}" = set; then
12286 aix_libpath=$lt_cv_aix_libpath
12287 else
12288 if ${lt_cv_aix_libpath_+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293
12294 int
12295 main ()
12296 {
12297
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303
12304 lt_aix_libpath_sed='
12305 /Import File Strings/,/^$/ {
12306 /^0/ {
12307 s/^0 *\([^ ]*\) *$/\1/
12308 p
12309 }
12310 }'
12311 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12312 # Check for a 64-bit object if we didn't find anything.
12313 if test -z "$lt_cv_aix_libpath_"; then
12314 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12315 fi
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 if test -z "$lt_cv_aix_libpath_"; then
12320 lt_cv_aix_libpath_="/usr/lib:/lib"
12321 fi
12322
12323 fi
12324
12325 aix_libpath=$lt_cv_aix_libpath_
12326 fi
12327
12328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12329 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12330 else
12331 if test "$host_cpu" = ia64; then
12332 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12333 allow_undefined_flag="-z nodefs"
12334 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"
12335 else
12336 # Determine the default libpath from the value encoded in an
12337 # empty executable.
12338 if test "${lt_cv_aix_libpath+set}" = set; then
12339 aix_libpath=$lt_cv_aix_libpath
12340 else
12341 if ${lt_cv_aix_libpath_+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346
12347 int
12348 main ()
12349 {
12350
12351 ;
12352 return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_link "$LINENO"; then :
12356
12357 lt_aix_libpath_sed='
12358 /Import File Strings/,/^$/ {
12359 /^0/ {
12360 s/^0 *\([^ ]*\) *$/\1/
12361 p
12362 }
12363 }'
12364 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12365 # Check for a 64-bit object if we didn't find anything.
12366 if test -z "$lt_cv_aix_libpath_"; then
12367 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 fi
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 if test -z "$lt_cv_aix_libpath_"; then
12373 lt_cv_aix_libpath_="/usr/lib:/lib"
12374 fi
12375
12376 fi
12377
12378 aix_libpath=$lt_cv_aix_libpath_
12379 fi
12380
12381 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12382 # Warning - without using the other run time loading flags,
12383 # -berok will link without error, but may produce a broken library.
12384 no_undefined_flag=' ${wl}-bernotok'
12385 allow_undefined_flag=' ${wl}-berok'
12386 if test "$with_gnu_ld" = yes; then
12387 # We only use this code for GNU lds that support --whole-archive.
12388 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12389 else
12390 # Exported symbols can be pulled into shared objects from archives
12391 whole_archive_flag_spec='$convenience'
12392 fi
12393 archive_cmds_need_lc=yes
12394 # This is similar to how AIX traditionally builds its shared libraries.
12395 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'
12396 fi
12397 fi
12398 ;;
12399
12400 amigaos*)
12401 case $host_cpu in
12402 powerpc)
12403 # see comment about AmigaOS4 .so support
12404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12405 archive_expsym_cmds=''
12406 ;;
12407 m68k)
12408 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)'
12409 hardcode_libdir_flag_spec='-L$libdir'
12410 hardcode_minus_L=yes
12411 ;;
12412 esac
12413 ;;
12414
12415 bsdi[45]*)
12416 export_dynamic_flag_spec=-rdynamic
12417 ;;
12418
12419 cygwin* | mingw* | pw32* | cegcc*)
12420 # When not using gcc, we currently assume that we are using
12421 # Microsoft Visual C++.
12422 # hardcode_libdir_flag_spec is actually meaningless, as there is
12423 # no search path for DLLs.
12424 case $cc_basename in
12425 cl*)
12426 # Native MSVC
12427 hardcode_libdir_flag_spec=' '
12428 allow_undefined_flag=unsupported
12429 always_export_symbols=yes
12430 file_list_spec='@'
12431 # Tell ltmain to make .lib files, not .a files.
12432 libext=lib
12433 # Tell ltmain to make .dll files, not .so files.
12434 shrext_cmds=".dll"
12435 # FIXME: Setting linknames here is a bad hack.
12436 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12437 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12438 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12439 else
12440 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12441 fi~
12442 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12443 linknames='
12444 # The linker will not automatically build a static lib if we build a DLL.
12445 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12446 enable_shared_with_static_runtimes=yes
12447 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12449 # Don't use ranlib
12450 old_postinstall_cmds='chmod 644 $oldlib'
12451 postlink_cmds='lt_outputfile="@OUTPUT@"~
12452 lt_tool_outputfile="@TOOL_OUTPUT@"~
12453 case $lt_outputfile in
12454 *.exe|*.EXE) ;;
12455 *)
12456 lt_outputfile="$lt_outputfile.exe"
12457 lt_tool_outputfile="$lt_tool_outputfile.exe"
12458 ;;
12459 esac~
12460 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12461 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12462 $RM "$lt_outputfile.manifest";
12463 fi'
12464 ;;
12465 *)
12466 # Assume MSVC wrapper
12467 hardcode_libdir_flag_spec=' '
12468 allow_undefined_flag=unsupported
12469 # Tell ltmain to make .lib files, not .a files.
12470 libext=lib
12471 # Tell ltmain to make .dll files, not .so files.
12472 shrext_cmds=".dll"
12473 # FIXME: Setting linknames here is a bad hack.
12474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12475 # The linker will automatically build a .lib file if we build a DLL.
12476 old_archive_from_new_cmds='true'
12477 # FIXME: Should let the user specify the lib program.
12478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12479 enable_shared_with_static_runtimes=yes
12480 ;;
12481 esac
12482 ;;
12483
12484 darwin* | rhapsody*)
12485
12486
12487 archive_cmds_need_lc=no
12488 hardcode_direct=no
12489 hardcode_automatic=yes
12490 hardcode_shlibpath_var=unsupported
12491 if test "$lt_cv_ld_force_load" = "yes"; then
12492 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12493
12494 else
12495 whole_archive_flag_spec=''
12496 fi
12497 link_all_deplibs=yes
12498 allow_undefined_flag="$_lt_dar_allow_undefined"
12499 case $cc_basename in
12500 ifort*) _lt_dar_can_shared=yes ;;
12501 *) _lt_dar_can_shared=$GCC ;;
12502 esac
12503 if test "$_lt_dar_can_shared" = "yes"; then
12504 output_verbose_link_cmd=func_echo_all
12505 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12506 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12507 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}"
12508 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}"
12509
12510 else
12511 ld_shlibs=no
12512 fi
12513
12514 ;;
12515
12516 dgux*)
12517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12518 hardcode_libdir_flag_spec='-L$libdir'
12519 hardcode_shlibpath_var=no
12520 ;;
12521
12522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12523 # support. Future versions do this automatically, but an explicit c++rt0.o
12524 # does not break anything, and helps significantly (at the cost of a little
12525 # extra space).
12526 freebsd2.2*)
12527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12528 hardcode_libdir_flag_spec='-R$libdir'
12529 hardcode_direct=yes
12530 hardcode_shlibpath_var=no
12531 ;;
12532
12533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12534 freebsd2.*)
12535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12536 hardcode_direct=yes
12537 hardcode_minus_L=yes
12538 hardcode_shlibpath_var=no
12539 ;;
12540
12541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12542 freebsd* | dragonfly*)
12543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12544 hardcode_libdir_flag_spec='-R$libdir'
12545 hardcode_direct=yes
12546 hardcode_shlibpath_var=no
12547 ;;
12548
12549 hpux9*)
12550 if test "$GCC" = yes; then
12551 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12552 else
12553 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'
12554 fi
12555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12556 hardcode_libdir_separator=:
12557 hardcode_direct=yes
12558
12559 # hardcode_minus_L: Not really in the search PATH,
12560 # but as the default location of the library.
12561 hardcode_minus_L=yes
12562 export_dynamic_flag_spec='${wl}-E'
12563 ;;
12564
12565 hpux10*)
12566 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12567 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12568 else
12569 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12570 fi
12571 if test "$with_gnu_ld" = no; then
12572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12573 hardcode_libdir_separator=:
12574 hardcode_direct=yes
12575 hardcode_direct_absolute=yes
12576 export_dynamic_flag_spec='${wl}-E'
12577 # hardcode_minus_L: Not really in the search PATH,
12578 # but as the default location of the library.
12579 hardcode_minus_L=yes
12580 fi
12581 ;;
12582
12583 hpux11*)
12584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12585 case $host_cpu in
12586 hppa*64*)
12587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 ;;
12589 ia64*)
12590 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12591 ;;
12592 *)
12593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12594 ;;
12595 esac
12596 else
12597 case $host_cpu in
12598 hppa*64*)
12599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12600 ;;
12601 ia64*)
12602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12603 ;;
12604 *)
12605
12606 # Older versions of the 11.00 compiler do not understand -b yet
12607 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12609 $as_echo_n "checking if $CC understands -b... " >&6; }
12610 if ${lt_cv_prog_compiler__b+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 lt_cv_prog_compiler__b=no
12614 save_LDFLAGS="$LDFLAGS"
12615 LDFLAGS="$LDFLAGS -b"
12616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12618 # The linker can only warn and ignore the option if not recognized
12619 # So say no if there are warnings
12620 if test -s conftest.err; then
12621 # Append any errors to the config.log.
12622 cat conftest.err 1>&5
12623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12625 if diff conftest.exp conftest.er2 >/dev/null; then
12626 lt_cv_prog_compiler__b=yes
12627 fi
12628 else
12629 lt_cv_prog_compiler__b=yes
12630 fi
12631 fi
12632 $RM -r conftest*
12633 LDFLAGS="$save_LDFLAGS"
12634
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12637 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12638
12639 if test x"$lt_cv_prog_compiler__b" = xyes; then
12640 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12641 else
12642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12643 fi
12644
12645 ;;
12646 esac
12647 fi
12648 if test "$with_gnu_ld" = no; then
12649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12650 hardcode_libdir_separator=:
12651
12652 case $host_cpu in
12653 hppa*64*|ia64*)
12654 hardcode_direct=no
12655 hardcode_shlibpath_var=no
12656 ;;
12657 *)
12658 hardcode_direct=yes
12659 hardcode_direct_absolute=yes
12660 export_dynamic_flag_spec='${wl}-E'
12661
12662 # hardcode_minus_L: Not really in the search PATH,
12663 # but as the default location of the library.
12664 hardcode_minus_L=yes
12665 ;;
12666 esac
12667 fi
12668 ;;
12669
12670 irix5* | irix6* | nonstopux*)
12671 if test "$GCC" = yes; then
12672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12673 # Try to use the -exported_symbol ld option, if it does not
12674 # work, assume that -exports_file does not work either and
12675 # implicitly export all symbols.
12676 # This should be the same for all languages, so no per-tag cache variable.
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12678 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12679 if ${lt_cv_irix_exported_symbol+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 save_LDFLAGS="$LDFLAGS"
12683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 int foo (void) { return 0; }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 lt_cv_irix_exported_symbol=yes
12690 else
12691 lt_cv_irix_exported_symbol=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LDFLAGS="$save_LDFLAGS"
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12698 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12699 if test "$lt_cv_irix_exported_symbol" = yes; then
12700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12701 fi
12702 else
12703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12705 fi
12706 archive_cmds_need_lc='no'
12707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12708 hardcode_libdir_separator=:
12709 inherit_rpath=yes
12710 link_all_deplibs=yes
12711 ;;
12712
12713 netbsd* | netbsdelf*-gnu)
12714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12716 else
12717 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12718 fi
12719 hardcode_libdir_flag_spec='-R$libdir'
12720 hardcode_direct=yes
12721 hardcode_shlibpath_var=no
12722 ;;
12723
12724 newsos6)
12725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12726 hardcode_direct=yes
12727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12728 hardcode_libdir_separator=:
12729 hardcode_shlibpath_var=no
12730 ;;
12731
12732 *nto* | *qnx*)
12733 ;;
12734
12735 openbsd*)
12736 if test -f /usr/libexec/ld.so; then
12737 hardcode_direct=yes
12738 hardcode_shlibpath_var=no
12739 hardcode_direct_absolute=yes
12740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12742 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12744 export_dynamic_flag_spec='${wl}-E'
12745 else
12746 case $host_os in
12747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12749 hardcode_libdir_flag_spec='-R$libdir'
12750 ;;
12751 *)
12752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12754 ;;
12755 esac
12756 fi
12757 else
12758 ld_shlibs=no
12759 fi
12760 ;;
12761
12762 os2*)
12763 hardcode_libdir_flag_spec='-L$libdir'
12764 hardcode_minus_L=yes
12765 allow_undefined_flag=unsupported
12766 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'
12767 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12768 ;;
12769
12770 osf3*)
12771 if test "$GCC" = yes; then
12772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12773 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12774 else
12775 allow_undefined_flag=' -expect_unresolved \*'
12776 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12777 fi
12778 archive_cmds_need_lc='no'
12779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12780 hardcode_libdir_separator=:
12781 ;;
12782
12783 osf4* | osf5*) # as osf3* with the addition of -msym flag
12784 if test "$GCC" = yes; then
12785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12786 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12788 else
12789 allow_undefined_flag=' -expect_unresolved \*'
12790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12791 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~
12792 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12793
12794 # Both c and cxx compiler support -rpath directly
12795 hardcode_libdir_flag_spec='-rpath $libdir'
12796 fi
12797 archive_cmds_need_lc='no'
12798 hardcode_libdir_separator=:
12799 ;;
12800
12801 solaris*)
12802 no_undefined_flag=' -z defs'
12803 if test "$GCC" = yes; then
12804 wlarc='${wl}'
12805 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12807 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12808 else
12809 case `$CC -V 2>&1` in
12810 *"Compilers 5.0"*)
12811 wlarc=''
12812 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12815 ;;
12816 *)
12817 wlarc='${wl}'
12818 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12820 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12821 ;;
12822 esac
12823 fi
12824 hardcode_libdir_flag_spec='-R$libdir'
12825 hardcode_shlibpath_var=no
12826 case $host_os in
12827 solaris2.[0-5] | solaris2.[0-5].*) ;;
12828 *)
12829 # The compiler driver will combine and reorder linker options,
12830 # but understands `-z linker_flag'. GCC discards it without `$wl',
12831 # but is careful enough not to reorder.
12832 # Supported since Solaris 2.6 (maybe 2.5.1?)
12833 if test "$GCC" = yes; then
12834 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12835 else
12836 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12837 fi
12838 ;;
12839 esac
12840 link_all_deplibs=yes
12841 ;;
12842
12843 sunos4*)
12844 if test "x$host_vendor" = xsequent; then
12845 # Use $CC to link under sequent, because it throws in some extra .o
12846 # files that make .init and .fini sections work.
12847 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12848 else
12849 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12850 fi
12851 hardcode_libdir_flag_spec='-L$libdir'
12852 hardcode_direct=yes
12853 hardcode_minus_L=yes
12854 hardcode_shlibpath_var=no
12855 ;;
12856
12857 sysv4)
12858 case $host_vendor in
12859 sni)
12860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 hardcode_direct=yes # is this really true???
12862 ;;
12863 siemens)
12864 ## LD is ld it makes a PLAMLIB
12865 ## CC just makes a GrossModule.
12866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12867 reload_cmds='$CC -r -o $output$reload_objs'
12868 hardcode_direct=no
12869 ;;
12870 motorola)
12871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12872 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12873 ;;
12874 esac
12875 runpath_var='LD_RUN_PATH'
12876 hardcode_shlibpath_var=no
12877 ;;
12878
12879 sysv4.3*)
12880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_shlibpath_var=no
12882 export_dynamic_flag_spec='-Bexport'
12883 ;;
12884
12885 sysv4*MP*)
12886 if test -d /usr/nec; then
12887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888 hardcode_shlibpath_var=no
12889 runpath_var=LD_RUN_PATH
12890 hardcode_runpath_var=yes
12891 ld_shlibs=yes
12892 fi
12893 ;;
12894
12895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12896 no_undefined_flag='${wl}-z,text'
12897 archive_cmds_need_lc=no
12898 hardcode_shlibpath_var=no
12899 runpath_var='LD_RUN_PATH'
12900
12901 if test "$GCC" = yes; then
12902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12904 else
12905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12907 fi
12908 ;;
12909
12910 sysv5* | sco3.2v5* | sco5v6*)
12911 # Note: We can NOT use -z defs as we might desire, because we do not
12912 # link with -lc, and that would cause any symbols used from libc to
12913 # always be unresolved, which means just about no library would
12914 # ever link correctly. If we're not using GNU ld we use -z text
12915 # though, which does catch some bad symbols but isn't as heavy-handed
12916 # as -z defs.
12917 no_undefined_flag='${wl}-z,text'
12918 allow_undefined_flag='${wl}-z,nodefs'
12919 archive_cmds_need_lc=no
12920 hardcode_shlibpath_var=no
12921 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12922 hardcode_libdir_separator=':'
12923 link_all_deplibs=yes
12924 export_dynamic_flag_spec='${wl}-Bexport'
12925 runpath_var='LD_RUN_PATH'
12926
12927 if test "$GCC" = yes; then
12928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12930 else
12931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 fi
12934 ;;
12935
12936 uts4*)
12937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12938 hardcode_libdir_flag_spec='-L$libdir'
12939 hardcode_shlibpath_var=no
12940 ;;
12941
12942 *)
12943 ld_shlibs=no
12944 ;;
12945 esac
12946
12947 if test x$host_vendor = xsni; then
12948 case $host in
12949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12950 export_dynamic_flag_spec='${wl}-Blargedynsym'
12951 ;;
12952 esac
12953 fi
12954 fi
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12957 $as_echo "$ld_shlibs" >&6; }
12958 test "$ld_shlibs" = no && can_build_shared=no
12959
12960 with_gnu_ld=$with_gnu_ld
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976 #
12977 # Do we need to explicitly link libc?
12978 #
12979 case "x$archive_cmds_need_lc" in
12980 x|xyes)
12981 # Assume -lc should be added
12982 archive_cmds_need_lc=yes
12983
12984 if test "$enable_shared" = yes && test "$GCC" = yes; then
12985 case $archive_cmds in
12986 *'~'*)
12987 # FIXME: we may have to deal with multi-command sequences.
12988 ;;
12989 '$CC '*)
12990 # Test whether the compiler implicitly links with -lc since on some
12991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12992 # to ld, don't add -lc before -lgcc.
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12995 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 $RM conftest*
12999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13000
13001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13002 (eval $ac_compile) 2>&5
13003 ac_status=$?
13004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13005 test $ac_status = 0; } 2>conftest.err; then
13006 soname=conftest
13007 lib=conftest
13008 libobjs=conftest.$ac_objext
13009 deplibs=
13010 wl=$lt_prog_compiler_wl
13011 pic_flag=$lt_prog_compiler_pic
13012 compiler_flags=-v
13013 linker_flags=-v
13014 verstring=
13015 output_objdir=.
13016 libname=conftest
13017 lt_save_allow_undefined_flag=$allow_undefined_flag
13018 allow_undefined_flag=
13019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13020 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13021 ac_status=$?
13022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13023 test $ac_status = 0; }
13024 then
13025 lt_cv_archive_cmds_need_lc=no
13026 else
13027 lt_cv_archive_cmds_need_lc=yes
13028 fi
13029 allow_undefined_flag=$lt_save_allow_undefined_flag
13030 else
13031 cat conftest.err 1>&5
13032 fi
13033 $RM conftest*
13034
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13037 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13038 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13039 ;;
13040 esac
13041 fi
13042 ;;
13043 esac
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13197 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13198
13199 if test "$GCC" = yes; then
13200 case $host_os in
13201 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13202 *) lt_awk_arg="/^libraries:/" ;;
13203 esac
13204 case $host_os in
13205 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13206 *) lt_sed_strip_eq="s,=/,/,g" ;;
13207 esac
13208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13209 case $lt_search_path_spec in
13210 *\;*)
13211 # if the path contains ";" then we assume it to be the separator
13212 # otherwise default to the standard path separator (i.e. ":") - it is
13213 # assumed that no part of a normal pathname contains ";" but that should
13214 # okay in the real world where ";" in dirpaths is itself problematic.
13215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13216 ;;
13217 *)
13218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13219 ;;
13220 esac
13221 # Ok, now we have the path, separated by spaces, we can step through it
13222 # and add multilib dir if necessary.
13223 lt_tmp_lt_search_path_spec=
13224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13225 for lt_sys_path in $lt_search_path_spec; do
13226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13228 else
13229 test -d "$lt_sys_path" && \
13230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13231 fi
13232 done
13233 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13234 BEGIN {RS=" "; FS="/|\n";} {
13235 lt_foo="";
13236 lt_count=0;
13237 for (lt_i = NF; lt_i > 0; lt_i--) {
13238 if ($lt_i != "" && $lt_i != ".") {
13239 if ($lt_i == "..") {
13240 lt_count++;
13241 } else {
13242 if (lt_count == 0) {
13243 lt_foo="/" $lt_i lt_foo;
13244 } else {
13245 lt_count--;
13246 }
13247 }
13248 }
13249 }
13250 if (lt_foo != "") { lt_freq[lt_foo]++; }
13251 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13252 }'`
13253 # AWK program above erroneously prepends '/' to C:/dos/paths
13254 # for these hosts.
13255 case $host_os in
13256 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13257 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13258 esac
13259 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13260 else
13261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13262 fi
13263 library_names_spec=
13264 libname_spec='lib$name'
13265 soname_spec=
13266 shrext_cmds=".so"
13267 postinstall_cmds=
13268 postuninstall_cmds=
13269 finish_cmds=
13270 finish_eval=
13271 shlibpath_var=
13272 shlibpath_overrides_runpath=unknown
13273 version_type=none
13274 dynamic_linker="$host_os ld.so"
13275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13276 need_lib_prefix=unknown
13277 hardcode_into_libs=no
13278
13279 # when you set need_version to no, make sure it does not cause -set_version
13280 # flags to be left without arguments
13281 need_version=unknown
13282
13283 case $host_os in
13284 aix3*)
13285 version_type=linux # correct to gnu/linux during the next big refactor
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13287 shlibpath_var=LIBPATH
13288
13289 # AIX 3 has no versioning support, so we append a major version to the name.
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 ;;
13292
13293 aix[4-9]*)
13294 version_type=linux # correct to gnu/linux during the next big refactor
13295 need_lib_prefix=no
13296 need_version=no
13297 hardcode_into_libs=yes
13298 if test "$host_cpu" = ia64; then
13299 # AIX 5 supports IA64
13300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 else
13303 # With GCC up to 2.95.x, collect2 would create an import file
13304 # for dependence libraries. The import file would start with
13305 # the line `#! .'. This would cause the generated library to
13306 # depend on `.', always an invalid library. This was fixed in
13307 # development snapshots of GCC prior to 3.0.
13308 case $host_os in
13309 aix4 | aix4.[01] | aix4.[01].*)
13310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13311 echo ' yes '
13312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13313 :
13314 else
13315 can_build_shared=no
13316 fi
13317 ;;
13318 esac
13319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13320 # soname into executable. Probably we can add versioning support to
13321 # collect2, so additional links can be useful in future.
13322 if test "$aix_use_runtimelinking" = yes; then
13323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13324 # instead of lib<name>.a to let people know that these are not
13325 # typical AIX shared libraries.
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 else
13328 # We preserve .a as extension for shared libraries through AIX4.2
13329 # and later when we are not doing run time linking.
13330 library_names_spec='${libname}${release}.a $libname.a'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 fi
13333 shlibpath_var=LIBPATH
13334 fi
13335 ;;
13336
13337 amigaos*)
13338 case $host_cpu in
13339 powerpc)
13340 # Since July 2007 AmigaOS4 officially supports .so libraries.
13341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343 ;;
13344 m68k)
13345 library_names_spec='$libname.ixlibrary $libname.a'
13346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13347 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13348 ;;
13349 esac
13350 ;;
13351
13352 beos*)
13353 library_names_spec='${libname}${shared_ext}'
13354 dynamic_linker="$host_os ld.so"
13355 shlibpath_var=LIBRARY_PATH
13356 ;;
13357
13358 bsdi[45]*)
13359 version_type=linux # correct to gnu/linux during the next big refactor
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13367 # the default ld.so.conf also contains /usr/contrib/lib and
13368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13369 # libtool to hard-code these into programs
13370 ;;
13371
13372 cygwin* | mingw* | pw32* | cegcc*)
13373 version_type=windows
13374 shrext_cmds=".dll"
13375 need_version=no
13376 need_lib_prefix=no
13377
13378 case $GCC,$cc_basename in
13379 yes,*)
13380 # gcc
13381 library_names_spec='$libname.dll.a'
13382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13383 postinstall_cmds='base_file=`basename \${file}`~
13384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13385 dldir=$destdir/`dirname \$dlpath`~
13386 test -d \$dldir || mkdir -p \$dldir~
13387 $install_prog $dir/$dlname \$dldir/$dlname~
13388 chmod a+x \$dldir/$dlname~
13389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13391 fi'
13392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13393 dlpath=$dir/\$dldll~
13394 $RM \$dlpath'
13395 shlibpath_overrides_runpath=yes
13396
13397 case $host_os in
13398 cygwin*)
13399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13401
13402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13403 ;;
13404 mingw* | cegcc*)
13405 # MinGW DLLs use traditional 'lib' prefix
13406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13407 ;;
13408 pw32*)
13409 # pw32 DLLs use 'pw' prefix rather than 'lib'
13410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13411 ;;
13412 esac
13413 dynamic_linker='Win32 ld.exe'
13414 ;;
13415
13416 *,cl*)
13417 # Native MSVC
13418 libname_spec='$name'
13419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13420 library_names_spec='${libname}.dll.lib'
13421
13422 case $build_os in
13423 mingw*)
13424 sys_lib_search_path_spec=
13425 lt_save_ifs=$IFS
13426 IFS=';'
13427 for lt_path in $LIB
13428 do
13429 IFS=$lt_save_ifs
13430 # Let DOS variable expansion print the short 8.3 style file name.
13431 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13432 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13433 done
13434 IFS=$lt_save_ifs
13435 # Convert to MSYS style.
13436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13437 ;;
13438 cygwin*)
13439 # Convert to unix form, then to dos form, then back to unix form
13440 # but this time dos style (no spaces!) so that the unix form looks
13441 # like /cygdrive/c/PROGRA~1:/cygdr...
13442 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13443 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13444 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13445 ;;
13446 *)
13447 sys_lib_search_path_spec="$LIB"
13448 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13449 # It is most probably a Windows format PATH.
13450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13451 else
13452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13453 fi
13454 # FIXME: find the short name or the path components, as spaces are
13455 # common. (e.g. "Program Files" -> "PROGRA~1")
13456 ;;
13457 esac
13458
13459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13460 postinstall_cmds='base_file=`basename \${file}`~
13461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13462 dldir=$destdir/`dirname \$dlpath`~
13463 test -d \$dldir || mkdir -p \$dldir~
13464 $install_prog $dir/$dlname \$dldir/$dlname'
13465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13466 dlpath=$dir/\$dldll~
13467 $RM \$dlpath'
13468 shlibpath_overrides_runpath=yes
13469 dynamic_linker='Win32 link.exe'
13470 ;;
13471
13472 *)
13473 # Assume MSVC wrapper
13474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13475 dynamic_linker='Win32 ld.exe'
13476 ;;
13477 esac
13478 # FIXME: first we should search . and the directory the executable is in
13479 shlibpath_var=PATH
13480 ;;
13481
13482 darwin* | rhapsody*)
13483 dynamic_linker="$host_os dyld"
13484 version_type=darwin
13485 need_lib_prefix=no
13486 need_version=no
13487 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13488 soname_spec='${libname}${release}${major}$shared_ext'
13489 shlibpath_overrides_runpath=yes
13490 shlibpath_var=DYLD_LIBRARY_PATH
13491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13492
13493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13495 ;;
13496
13497 dgux*)
13498 version_type=linux # correct to gnu/linux during the next big refactor
13499 need_lib_prefix=no
13500 need_version=no
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 ;;
13505
13506 freebsd* | dragonfly*)
13507 # DragonFly does not have aout. When/if they implement a new
13508 # versioning mechanism, adjust this.
13509 if test -x /usr/bin/objformat; then
13510 objformat=`/usr/bin/objformat`
13511 else
13512 case $host_os in
13513 freebsd[23].*) objformat=aout ;;
13514 *) objformat=elf ;;
13515 esac
13516 fi
13517 version_type=freebsd-$objformat
13518 case $version_type in
13519 freebsd-elf*)
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13521 need_version=no
13522 need_lib_prefix=no
13523 ;;
13524 freebsd-*)
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13526 need_version=yes
13527 ;;
13528 esac
13529 shlibpath_var=LD_LIBRARY_PATH
13530 case $host_os in
13531 freebsd2.*)
13532 shlibpath_overrides_runpath=yes
13533 ;;
13534 freebsd3.[01]* | freebsdelf3.[01]*)
13535 shlibpath_overrides_runpath=yes
13536 hardcode_into_libs=yes
13537 ;;
13538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13540 shlibpath_overrides_runpath=no
13541 hardcode_into_libs=yes
13542 ;;
13543 *) # from 4.6 on, and DragonFly
13544 shlibpath_overrides_runpath=yes
13545 hardcode_into_libs=yes
13546 ;;
13547 esac
13548 ;;
13549
13550 haiku*)
13551 version_type=linux # correct to gnu/linux during the next big refactor
13552 need_lib_prefix=no
13553 need_version=no
13554 dynamic_linker="$host_os runtime_loader"
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13559 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13560 hardcode_into_libs=yes
13561 ;;
13562
13563 hpux9* | hpux10* | hpux11*)
13564 # Give a soname corresponding to the major version so that dld.sl refuses to
13565 # link against other versions.
13566 version_type=sunos
13567 need_lib_prefix=no
13568 need_version=no
13569 case $host_cpu in
13570 ia64*)
13571 shrext_cmds='.so'
13572 hardcode_into_libs=yes
13573 dynamic_linker="$host_os dld.so"
13574 shlibpath_var=LD_LIBRARY_PATH
13575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 if test "X$HPUX_IA64_MODE" = X32; then
13579 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13580 else
13581 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13582 fi
13583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13584 ;;
13585 hppa*64*)
13586 shrext_cmds='.sl'
13587 hardcode_into_libs=yes
13588 dynamic_linker="$host_os dld.sl"
13589 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 soname_spec='${libname}${release}${shared_ext}$major'
13593 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13595 ;;
13596 *)
13597 shrext_cmds='.sl'
13598 dynamic_linker="$host_os dld.sl"
13599 shlibpath_var=SHLIB_PATH
13600 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 ;;
13604 esac
13605 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13606 postinstall_cmds='chmod 555 $lib'
13607 # or fails outright, so override atomically:
13608 install_override_mode=555
13609 ;;
13610
13611 interix[3-9]*)
13612 version_type=linux # correct to gnu/linux during the next big refactor
13613 need_lib_prefix=no
13614 need_version=no
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 shlibpath_overrides_runpath=no
13620 hardcode_into_libs=yes
13621 ;;
13622
13623 irix5* | irix6* | nonstopux*)
13624 case $host_os in
13625 nonstopux*) version_type=nonstopux ;;
13626 *)
13627 if test "$lt_cv_prog_gnu_ld" = yes; then
13628 version_type=linux # correct to gnu/linux during the next big refactor
13629 else
13630 version_type=irix
13631 fi ;;
13632 esac
13633 need_lib_prefix=no
13634 need_version=no
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13637 case $host_os in
13638 irix5* | nonstopux*)
13639 libsuff= shlibsuff=
13640 ;;
13641 *)
13642 case $LD in # libtool.m4 will add one of these switches to LD
13643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13644 libsuff= shlibsuff= libmagic=32-bit;;
13645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13646 libsuff=32 shlibsuff=N32 libmagic=N32;;
13647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13649 *) libsuff= shlibsuff= libmagic=never-match;;
13650 esac
13651 ;;
13652 esac
13653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13654 shlibpath_overrides_runpath=no
13655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13657 hardcode_into_libs=yes
13658 ;;
13659
13660 # No shared lib support for Linux oldld, aout, or coff.
13661 linux*oldld* | linux*aout* | linux*coff*)
13662 dynamic_linker=no
13663 ;;
13664
13665 # This must be glibc/ELF.
13666 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13667 version_type=linux # correct to gnu/linux during the next big refactor
13668 need_lib_prefix=no
13669 need_version=no
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=no
13675
13676 # Some binutils ld are patched to set DT_RUNPATH
13677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 lt_cv_shlibpath_overrides_runpath=no
13681 save_LDFLAGS=$LDFLAGS
13682 save_libdir=$libdir
13683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 int
13689 main ()
13690 {
13691
13692 ;
13693 return 0;
13694 }
13695 _ACEOF
13696 if ac_fn_c_try_link "$LINENO"; then :
13697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13698 lt_cv_shlibpath_overrides_runpath=yes
13699 fi
13700 fi
13701 rm -f core conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703 LDFLAGS=$save_LDFLAGS
13704 libdir=$save_libdir
13705
13706 fi
13707
13708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13709
13710 # This implies no fast_install, which is unacceptable.
13711 # Some rework will be needed to allow for fast_install
13712 # before this can be enabled.
13713 hardcode_into_libs=yes
13714
13715 # Append ld.so.conf contents to the search path
13716 if test -f /etc/ld.so.conf; then
13717 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;s/"//g;/^$/d' | tr '\n' ' '`
13718 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13719 fi
13720
13721 # We used to test for /lib/ld.so.1 and disable shared libraries on
13722 # powerpc, because MkLinux only supported shared libraries with the
13723 # GNU dynamic linker. Since this was broken with cross compilers,
13724 # most powerpc-linux boxes support dynamic linking these days and
13725 # people can always --disable-shared, the test was removed, and we
13726 # assume the GNU/Linux dynamic linker is in use.
13727 dynamic_linker='GNU/Linux ld.so'
13728 ;;
13729
13730 netbsdelf*-gnu)
13731 version_type=linux
13732 need_lib_prefix=no
13733 need_version=no
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=no
13738 hardcode_into_libs=yes
13739 dynamic_linker='NetBSD ld.elf_so'
13740 ;;
13741
13742 netbsd*)
13743 version_type=sunos
13744 need_lib_prefix=no
13745 need_version=no
13746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13749 dynamic_linker='NetBSD (a.out) ld.so'
13750 else
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 dynamic_linker='NetBSD ld.elf_so'
13754 fi
13755 shlibpath_var=LD_LIBRARY_PATH
13756 shlibpath_overrides_runpath=yes
13757 hardcode_into_libs=yes
13758 ;;
13759
13760 newsos6)
13761 version_type=linux # correct to gnu/linux during the next big refactor
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 shlibpath_overrides_runpath=yes
13765 ;;
13766
13767 *nto* | *qnx*)
13768 version_type=qnx
13769 need_lib_prefix=no
13770 need_version=no
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=no
13775 hardcode_into_libs=yes
13776 dynamic_linker='ldqnx.so'
13777 ;;
13778
13779 openbsd*)
13780 version_type=sunos
13781 sys_lib_dlsearch_path_spec="/usr/lib"
13782 need_lib_prefix=no
13783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13784 case $host_os in
13785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13786 *) need_version=no ;;
13787 esac
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13790 shlibpath_var=LD_LIBRARY_PATH
13791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13792 case $host_os in
13793 openbsd2.[89] | openbsd2.[89].*)
13794 shlibpath_overrides_runpath=no
13795 ;;
13796 *)
13797 shlibpath_overrides_runpath=yes
13798 ;;
13799 esac
13800 else
13801 shlibpath_overrides_runpath=yes
13802 fi
13803 ;;
13804
13805 os2*)
13806 libname_spec='$name'
13807 shrext_cmds=".dll"
13808 need_lib_prefix=no
13809 library_names_spec='$libname${shared_ext} $libname.a'
13810 dynamic_linker='OS/2 ld.exe'
13811 shlibpath_var=LIBPATH
13812 ;;
13813
13814 osf3* | osf4* | osf5*)
13815 version_type=osf
13816 need_lib_prefix=no
13817 need_version=no
13818 soname_spec='${libname}${release}${shared_ext}$major'
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13823 ;;
13824
13825 rdos*)
13826 dynamic_linker=no
13827 ;;
13828
13829 solaris*)
13830 version_type=linux # correct to gnu/linux during the next big refactor
13831 need_lib_prefix=no
13832 need_version=no
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13835 shlibpath_var=LD_LIBRARY_PATH
13836 shlibpath_overrides_runpath=yes
13837 hardcode_into_libs=yes
13838 # ldd complains unless libraries are executable
13839 postinstall_cmds='chmod +x $lib'
13840 ;;
13841
13842 sunos4*)
13843 version_type=sunos
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 shlibpath_overrides_runpath=yes
13848 if test "$with_gnu_ld" = yes; then
13849 need_lib_prefix=no
13850 fi
13851 need_version=yes
13852 ;;
13853
13854 sysv4 | sysv4.3*)
13855 version_type=linux # correct to gnu/linux during the next big refactor
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857 soname_spec='${libname}${release}${shared_ext}$major'
13858 shlibpath_var=LD_LIBRARY_PATH
13859 case $host_vendor in
13860 sni)
13861 shlibpath_overrides_runpath=no
13862 need_lib_prefix=no
13863 runpath_var=LD_RUN_PATH
13864 ;;
13865 siemens)
13866 need_lib_prefix=no
13867 ;;
13868 motorola)
13869 need_lib_prefix=no
13870 need_version=no
13871 shlibpath_overrides_runpath=no
13872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13873 ;;
13874 esac
13875 ;;
13876
13877 sysv4*MP*)
13878 if test -d /usr/nec ;then
13879 version_type=linux # correct to gnu/linux during the next big refactor
13880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13881 soname_spec='$libname${shared_ext}.$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 fi
13884 ;;
13885
13886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13887 version_type=freebsd-elf
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=yes
13894 hardcode_into_libs=yes
13895 if test "$with_gnu_ld" = yes; then
13896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13897 else
13898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13899 case $host_os in
13900 sco3.2v5*)
13901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13902 ;;
13903 esac
13904 fi
13905 sys_lib_dlsearch_path_spec='/usr/lib'
13906 ;;
13907
13908 tpf*)
13909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13910 version_type=linux # correct to gnu/linux during the next big refactor
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13914 shlibpath_var=LD_LIBRARY_PATH
13915 shlibpath_overrides_runpath=no
13916 hardcode_into_libs=yes
13917 ;;
13918
13919 uts4*)
13920 version_type=linux # correct to gnu/linux during the next big refactor
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922 soname_spec='${libname}${release}${shared_ext}$major'
13923 shlibpath_var=LD_LIBRARY_PATH
13924 ;;
13925
13926 *)
13927 dynamic_linker=no
13928 ;;
13929 esac
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13931 $as_echo "$dynamic_linker" >&6; }
13932 test "$dynamic_linker" = no && can_build_shared=no
13933
13934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13935 if test "$GCC" = yes; then
13936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13937 fi
13938
13939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13940 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13941 fi
13942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13943 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13944 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14038 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14039 hardcode_action=
14040 if test -n "$hardcode_libdir_flag_spec" ||
14041 test -n "$runpath_var" ||
14042 test "X$hardcode_automatic" = "Xyes" ; then
14043
14044 # We can hardcode non-existent directories.
14045 if test "$hardcode_direct" != no &&
14046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14047 # have to relink, otherwise we might link with an installed library
14048 # when we should be linking with a yet-to-be-installed one
14049 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14050 test "$hardcode_minus_L" != no; then
14051 # Linking always hardcodes the temporary library directory.
14052 hardcode_action=relink
14053 else
14054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14055 hardcode_action=immediate
14056 fi
14057 else
14058 # We cannot hardcode anything, or else we can only hardcode existing
14059 # directories.
14060 hardcode_action=unsupported
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14063 $as_echo "$hardcode_action" >&6; }
14064
14065 if test "$hardcode_action" = relink ||
14066 test "$inherit_rpath" = yes; then
14067 # Fast installation is not supported
14068 enable_fast_install=no
14069 elif test "$shlibpath_overrides_runpath" = yes ||
14070 test "$enable_shared" = no; then
14071 # Fast installation is not necessary
14072 enable_fast_install=needless
14073 fi
14074
14075
14076
14077
14078
14079
14080 if test "x$enable_dlopen" != xyes; then
14081 enable_dlopen=unknown
14082 enable_dlopen_self=unknown
14083 enable_dlopen_self_static=unknown
14084 else
14085 lt_cv_dlopen=no
14086 lt_cv_dlopen_libs=
14087
14088 case $host_os in
14089 beos*)
14090 lt_cv_dlopen="load_add_on"
14091 lt_cv_dlopen_libs=
14092 lt_cv_dlopen_self=yes
14093 ;;
14094
14095 mingw* | pw32* | cegcc*)
14096 lt_cv_dlopen="LoadLibrary"
14097 lt_cv_dlopen_libs=
14098 ;;
14099
14100 cygwin*)
14101 lt_cv_dlopen="dlopen"
14102 lt_cv_dlopen_libs=
14103 ;;
14104
14105 darwin*)
14106 # if libdl is installed we need to link against it
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14108 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14109 if ${ac_cv_lib_dl_dlopen+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-ldl $LIBS"
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 char dlopen ();
14124 int
14125 main ()
14126 {
14127 return dlopen ();
14128 ;
14129 return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_dl_dlopen=yes
14134 else
14135 ac_cv_lib_dl_dlopen=no
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14140 fi
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14142 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14143 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14145 else
14146
14147 lt_cv_dlopen="dyld"
14148 lt_cv_dlopen_libs=
14149 lt_cv_dlopen_self=yes
14150
14151 fi
14152
14153 ;;
14154
14155 *)
14156 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14157 if test "x$ac_cv_func_shl_load" = xyes; then :
14158 lt_cv_dlopen="shl_load"
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14161 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14162 if ${ac_cv_lib_dld_shl_load+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-ldld $LIBS"
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char shl_load ();
14177 int
14178 main ()
14179 {
14180 return shl_load ();
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 ac_cv_lib_dld_shl_load=yes
14187 else
14188 ac_cv_lib_dld_shl_load=no
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14195 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14196 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14198 else
14199 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14200 if test "x$ac_cv_func_dlopen" = xyes; then :
14201 lt_cv_dlopen="dlopen"
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14205 if ${ac_cv_lib_dl_dlopen+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 ac_check_lib_save_LIBS=$LIBS
14209 LIBS="-ldl $LIBS"
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char dlopen ();
14220 int
14221 main ()
14222 {
14223 return dlopen ();
14224 ;
14225 return 0;
14226 }
14227 _ACEOF
14228 if ac_fn_c_try_link "$LINENO"; then :
14229 ac_cv_lib_dl_dlopen=yes
14230 else
14231 ac_cv_lib_dl_dlopen=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 LIBS=$ac_check_lib_save_LIBS
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14239 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14241 else
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14243 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14244 if ${ac_cv_lib_svld_dlopen+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 ac_check_lib_save_LIBS=$LIBS
14248 LIBS="-lsvld $LIBS"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char dlopen ();
14259 int
14260 main ()
14261 {
14262 return dlopen ();
14263 ;
14264 return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 ac_cv_lib_svld_dlopen=yes
14269 else
14270 ac_cv_lib_svld_dlopen=no
14271 fi
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14277 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14278 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14282 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14283 if ${ac_cv_lib_dld_dld_link+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-ldld $LIBS"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char dld_link ();
14298 int
14299 main ()
14300 {
14301 return dld_link ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_lib_dld_dld_link=yes
14308 else
14309 ac_cv_lib_dld_dld_link=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14317 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14319 fi
14320
14321
14322 fi
14323
14324
14325 fi
14326
14327
14328 fi
14329
14330
14331 fi
14332
14333
14334 fi
14335
14336 ;;
14337 esac
14338
14339 if test "x$lt_cv_dlopen" != xno; then
14340 enable_dlopen=yes
14341 else
14342 enable_dlopen=no
14343 fi
14344
14345 case $lt_cv_dlopen in
14346 dlopen)
14347 save_CPPFLAGS="$CPPFLAGS"
14348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14349
14350 save_LDFLAGS="$LDFLAGS"
14351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14352
14353 save_LIBS="$LIBS"
14354 LIBS="$lt_cv_dlopen_libs $LIBS"
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14357 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14358 if ${lt_cv_dlopen_self+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 if test "$cross_compiling" = yes; then :
14362 lt_cv_dlopen_self=cross
14363 else
14364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14365 lt_status=$lt_dlunknown
14366 cat > conftest.$ac_ext <<_LT_EOF
14367 #line $LINENO "configure"
14368 #include "confdefs.h"
14369
14370 #if HAVE_DLFCN_H
14371 #include <dlfcn.h>
14372 #endif
14373
14374 #include <stdio.h>
14375
14376 #ifdef RTLD_GLOBAL
14377 # define LT_DLGLOBAL RTLD_GLOBAL
14378 #else
14379 # ifdef DL_GLOBAL
14380 # define LT_DLGLOBAL DL_GLOBAL
14381 # else
14382 # define LT_DLGLOBAL 0
14383 # endif
14384 #endif
14385
14386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14387 find out it does not work in some platform. */
14388 #ifndef LT_DLLAZY_OR_NOW
14389 # ifdef RTLD_LAZY
14390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14391 # else
14392 # ifdef DL_LAZY
14393 # define LT_DLLAZY_OR_NOW DL_LAZY
14394 # else
14395 # ifdef RTLD_NOW
14396 # define LT_DLLAZY_OR_NOW RTLD_NOW
14397 # else
14398 # ifdef DL_NOW
14399 # define LT_DLLAZY_OR_NOW DL_NOW
14400 # else
14401 # define LT_DLLAZY_OR_NOW 0
14402 # endif
14403 # endif
14404 # endif
14405 # endif
14406 #endif
14407
14408 /* When -fvisbility=hidden is used, assume the code has been annotated
14409 correspondingly for the symbols needed. */
14410 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14411 int fnord () __attribute__((visibility("default")));
14412 #endif
14413
14414 int fnord () { return 42; }
14415 int main ()
14416 {
14417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14418 int status = $lt_dlunknown;
14419
14420 if (self)
14421 {
14422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14423 else
14424 {
14425 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14426 else puts (dlerror ());
14427 }
14428 /* dlclose (self); */
14429 }
14430 else
14431 puts (dlerror ());
14432
14433 return status;
14434 }
14435 _LT_EOF
14436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14437 (eval $ac_link) 2>&5
14438 ac_status=$?
14439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14440 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14441 (./conftest; exit; ) >&5 2>/dev/null
14442 lt_status=$?
14443 case x$lt_status in
14444 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14445 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14446 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14447 esac
14448 else :
14449 # compilation failed
14450 lt_cv_dlopen_self=no
14451 fi
14452 fi
14453 rm -fr conftest*
14454
14455
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14458 $as_echo "$lt_cv_dlopen_self" >&6; }
14459
14460 if test "x$lt_cv_dlopen_self" = xyes; then
14461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14463 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14464 if ${lt_cv_dlopen_self_static+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 if test "$cross_compiling" = yes; then :
14468 lt_cv_dlopen_self_static=cross
14469 else
14470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14471 lt_status=$lt_dlunknown
14472 cat > conftest.$ac_ext <<_LT_EOF
14473 #line $LINENO "configure"
14474 #include "confdefs.h"
14475
14476 #if HAVE_DLFCN_H
14477 #include <dlfcn.h>
14478 #endif
14479
14480 #include <stdio.h>
14481
14482 #ifdef RTLD_GLOBAL
14483 # define LT_DLGLOBAL RTLD_GLOBAL
14484 #else
14485 # ifdef DL_GLOBAL
14486 # define LT_DLGLOBAL DL_GLOBAL
14487 # else
14488 # define LT_DLGLOBAL 0
14489 # endif
14490 #endif
14491
14492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14493 find out it does not work in some platform. */
14494 #ifndef LT_DLLAZY_OR_NOW
14495 # ifdef RTLD_LAZY
14496 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14497 # else
14498 # ifdef DL_LAZY
14499 # define LT_DLLAZY_OR_NOW DL_LAZY
14500 # else
14501 # ifdef RTLD_NOW
14502 # define LT_DLLAZY_OR_NOW RTLD_NOW
14503 # else
14504 # ifdef DL_NOW
14505 # define LT_DLLAZY_OR_NOW DL_NOW
14506 # else
14507 # define LT_DLLAZY_OR_NOW 0
14508 # endif
14509 # endif
14510 # endif
14511 # endif
14512 #endif
14513
14514 /* When -fvisbility=hidden is used, assume the code has been annotated
14515 correspondingly for the symbols needed. */
14516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14517 int fnord () __attribute__((visibility("default")));
14518 #endif
14519
14520 int fnord () { return 42; }
14521 int main ()
14522 {
14523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14524 int status = $lt_dlunknown;
14525
14526 if (self)
14527 {
14528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14529 else
14530 {
14531 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14532 else puts (dlerror ());
14533 }
14534 /* dlclose (self); */
14535 }
14536 else
14537 puts (dlerror ());
14538
14539 return status;
14540 }
14541 _LT_EOF
14542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14543 (eval $ac_link) 2>&5
14544 ac_status=$?
14545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14547 (./conftest; exit; ) >&5 2>/dev/null
14548 lt_status=$?
14549 case x$lt_status in
14550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14552 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14553 esac
14554 else :
14555 # compilation failed
14556 lt_cv_dlopen_self_static=no
14557 fi
14558 fi
14559 rm -fr conftest*
14560
14561
14562 fi
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14564 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14565 fi
14566
14567 CPPFLAGS="$save_CPPFLAGS"
14568 LDFLAGS="$save_LDFLAGS"
14569 LIBS="$save_LIBS"
14570 ;;
14571 esac
14572
14573 case $lt_cv_dlopen_self in
14574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14575 *) enable_dlopen_self=unknown ;;
14576 esac
14577
14578 case $lt_cv_dlopen_self_static in
14579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14580 *) enable_dlopen_self_static=unknown ;;
14581 esac
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 striplib=
14601 old_striplib=
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14603 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14604 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14605 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14606 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14608 $as_echo "yes" >&6; }
14609 else
14610 # FIXME - insert some real tests, host_os isn't really good enough
14611 case $host_os in
14612 darwin*)
14613 if test -n "$STRIP" ; then
14614 striplib="$STRIP -x"
14615 old_striplib="$STRIP -S"
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617 $as_echo "yes" >&6; }
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622 ;;
14623 *)
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 $as_echo "no" >&6; }
14626 ;;
14627 esac
14628 fi
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641 # Report which library types will actually be built
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14643 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14645 $as_echo "$can_build_shared" >&6; }
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14648 $as_echo_n "checking whether to build shared libraries... " >&6; }
14649 test "$can_build_shared" = "no" && enable_shared=no
14650
14651 # On AIX, shared libraries and static libraries use the same namespace, and
14652 # are all built from PIC.
14653 case $host_os in
14654 aix3*)
14655 test "$enable_shared" = yes && enable_static=no
14656 if test -n "$RANLIB"; then
14657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14658 postinstall_cmds='$RANLIB $lib'
14659 fi
14660 ;;
14661
14662 aix[4-9]*)
14663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14664 test "$enable_shared" = yes && enable_static=no
14665 fi
14666 ;;
14667 esac
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14669 $as_echo "$enable_shared" >&6; }
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14672 $as_echo_n "checking whether to build static libraries... " >&6; }
14673 # Make sure either enable_shared or enable_static is yes.
14674 test "$enable_shared" = yes || enable_static=yes
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14676 $as_echo "$enable_static" >&6; }
14677
14678
14679
14680
14681 fi
14682 ac_ext=c
14683 ac_cpp='$CPP $CPPFLAGS'
14684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14687
14688 CC="$lt_save_CC"
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704 ac_config_commands="$ac_config_commands libtool"
14705
14706
14707
14708
14709 # Only expand once:
14710
14711
14712
14713
14714
14715
14716 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14717 if test -n "$ac_tool_prefix"; then
14718 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14719 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14721 $as_echo_n "checking for $ac_word... " >&6; }
14722 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 case $PKG_CONFIG in
14726 [\\/]* | ?:[\\/]*)
14727 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14728 ;;
14729 *)
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14732 do
14733 IFS=$as_save_IFS
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14739 break 2
14740 fi
14741 done
14742 done
14743 IFS=$as_save_IFS
14744
14745 ;;
14746 esac
14747 fi
14748 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14749 if test -n "$PKG_CONFIG"; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14751 $as_echo "$PKG_CONFIG" >&6; }
14752 else
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754 $as_echo "no" >&6; }
14755 fi
14756
14757
14758 fi
14759 if test -z "$ac_cv_path_PKG_CONFIG"; then
14760 ac_pt_PKG_CONFIG=$PKG_CONFIG
14761 # Extract the first word of "pkg-config", so it can be a program name with args.
14762 set dummy pkg-config; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 $as_echo_n "checking for $ac_word... " >&6; }
14765 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 case $ac_pt_PKG_CONFIG in
14769 [\\/]* | ?:[\\/]*)
14770 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14771 ;;
14772 *)
14773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774 for as_dir in $PATH
14775 do
14776 IFS=$as_save_IFS
14777 test -z "$as_dir" && as_dir=.
14778 for ac_exec_ext in '' $ac_executable_extensions; do
14779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14780 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14782 break 2
14783 fi
14784 done
14785 done
14786 IFS=$as_save_IFS
14787
14788 ;;
14789 esac
14790 fi
14791 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14792 if test -n "$ac_pt_PKG_CONFIG"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14794 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14798 fi
14799
14800 if test "x$ac_pt_PKG_CONFIG" = x; then
14801 PKG_CONFIG=""
14802 else
14803 case $cross_compiling:$ac_tool_warned in
14804 yes:)
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14807 ac_tool_warned=yes ;;
14808 esac
14809 PKG_CONFIG=$ac_pt_PKG_CONFIG
14810 fi
14811 else
14812 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14813 fi
14814
14815 fi
14816 if test -n "$PKG_CONFIG"; then
14817 _pkg_min_version=0.9.0
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14819 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14820 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14823 else
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14826 PKG_CONFIG=""
14827 fi
14828
14829 fi
14830
14831 # check if the 'restrict' prefix is supported
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14833 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14834 if ${ac_cv_c_restrict+:} false; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837 ac_cv_c_restrict=no
14838 # The order here caters to the fact that C++ does not require restrict.
14839 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 typedef int * int_ptr;
14843 int foo (int_ptr $ac_kw ip) {
14844 return ip[0];
14845 }
14846 int
14847 main ()
14848 {
14849 int s[1];
14850 int * $ac_kw t = s;
14851 t[0] = 0;
14852 return foo(t)
14853 ;
14854 return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_c_try_compile "$LINENO"; then :
14858 ac_cv_c_restrict=$ac_kw
14859 fi
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 test "$ac_cv_c_restrict" != no && break
14862 done
14863
14864 fi
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14866 $as_echo "$ac_cv_c_restrict" >&6; }
14867
14868 case $ac_cv_c_restrict in
14869 restrict) ;;
14870 no) $as_echo "#define restrict /**/" >>confdefs.h
14871 ;;
14872 *) cat >>confdefs.h <<_ACEOF
14873 #define restrict $ac_cv_c_restrict
14874 _ACEOF
14875 ;;
14876 esac
14877
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14880 $as_echo_n "checking for pow in -lm... " >&6; }
14881 if ${ac_cv_lib_m_pow+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-lm $LIBS"
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14888
14889 /* Override any GCC internal prototype to avoid an error.
14890 Use char because int might match the return type of a GCC
14891 builtin and then its argument prototype would still apply. */
14892 #ifdef __cplusplus
14893 extern "C"
14894 #endif
14895 char pow ();
14896 int
14897 main ()
14898 {
14899 return pow ();
14900 ;
14901 return 0;
14902 }
14903 _ACEOF
14904 if ac_fn_c_try_link "$LINENO"; then :
14905 ac_cv_lib_m_pow=yes
14906 else
14907 ac_cv_lib_m_pow=no
14908 fi
14909 rm -f core conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext conftest.$ac_ext
14911 LIBS=$ac_check_lib_save_LIBS
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14914 $as_echo "$ac_cv_lib_m_pow" >&6; }
14915 if test "x$ac_cv_lib_m_pow" = xyes; then :
14916 LIBS="-lm $LIBS"
14917 fi
14918
14919
14920
14921 pkg_failed=no
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14923 $as_echo_n "checking for LIBUSB... " >&6; }
14924
14925 if test -n "$LIBUSB_CFLAGS"; then
14926 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14927 elif test -n "$PKG_CONFIG"; then
14928 if test -n "$PKG_CONFIG" && \
14929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14930 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14931 ac_status=$?
14932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14933 test $ac_status = 0; }; then
14934 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
14935 else
14936 pkg_failed=yes
14937 fi
14938 else
14939 pkg_failed=untried
14940 fi
14941 if test -n "$LIBUSB_LIBS"; then
14942 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14943 elif test -n "$PKG_CONFIG"; then
14944 if test -n "$PKG_CONFIG" && \
14945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14946 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14947 ac_status=$?
14948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14949 test $ac_status = 0; }; then
14950 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
14951 else
14952 pkg_failed=yes
14953 fi
14954 else
14955 pkg_failed=untried
14956 fi
14957
14958
14959
14960 if test $pkg_failed = yes; then
14961
14962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14963 _pkg_short_errors_supported=yes
14964 else
14965 _pkg_short_errors_supported=no
14966 fi
14967 if test $_pkg_short_errors_supported = yes; then
14968 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
14969 else
14970 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
14971 fi
14972 # Put the nasty error message in config.log where it belongs
14973 echo "$LIBUSB_PKG_ERRORS" >&5
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb-1.0 not found" >&5
14978 $as_echo "$as_me: WARNING: libusb-1.0 not found" >&2;}
14979 elif test $pkg_failed = untried; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb-1.0 not found" >&5
14981 $as_echo "$as_me: WARNING: libusb-1.0 not found" >&2;}
14982 else
14983 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14984 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14986 $as_echo "yes" >&6; }
14987
14988 $as_echo "#define HAVE_LIBUSB /**/" >>confdefs.h
14989
14990 fi
14991
14992 MIN_SDL_VERSION=1.2.4
14993
14994
14995 # Check whether --with-sdl-prefix was given.
14996 if test "${with_sdl_prefix+set}" = set; then :
14997 withval=$with_sdl_prefix; sdl_prefix="$withval"
14998 else
14999 sdl_prefix=""
15000 fi
15001
15002
15003 # Check whether --with-sdl-exec-prefix was given.
15004 if test "${with_sdl_exec_prefix+set}" = set; then :
15005 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15006 else
15007 sdl_exec_prefix=""
15008 fi
15009
15010 # Check whether --enable-sdltest was given.
15011 if test "${enable_sdltest+set}" = set; then :
15012 enableval=$enable_sdltest;
15013 else
15014 enable_sdltest=yes
15015 fi
15016
15017
15018 if test x$sdl_exec_prefix != x ; then
15019 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15020 if test x${SDL_CONFIG+set} != xset ; then
15021 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15022 fi
15023 fi
15024 if test x$sdl_prefix != x ; then
15025 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15026 if test x${SDL_CONFIG+set} != xset ; then
15027 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15028 fi
15029 fi
15030
15031 as_save_PATH="$PATH"
15032 if test "x$prefix" != xNONE; then
15033 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15034 fi
15035 # Extract the first word of "sdl-config", so it can be a program name with args.
15036 set dummy sdl-config; ac_word=$2
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038 $as_echo_n "checking for $ac_word... " >&6; }
15039 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 case $SDL_CONFIG in
15043 [\\/]* | ?:[\\/]*)
15044 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15045 ;;
15046 *)
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15049 do
15050 IFS=$as_save_IFS
15051 test -z "$as_dir" && as_dir=.
15052 for ac_exec_ext in '' $ac_executable_extensions; do
15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15056 break 2
15057 fi
15058 done
15059 done
15060 IFS=$as_save_IFS
15061
15062 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15063 ;;
15064 esac
15065 fi
15066 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15067 if test -n "$SDL_CONFIG"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15069 $as_echo "$SDL_CONFIG" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074
15075
15076 PATH="$as_save_PATH"
15077 min_sdl_version=$MIN_SDL_VERSION
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15079 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15080 no_sdl=""
15081 if test "$SDL_CONFIG" = "no" ; then
15082 no_sdl=yes
15083 else
15084 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15085 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15086
15087 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15088 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15089 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15091 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15092 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15093 if test "x$enable_sdltest" = "xyes" ; then
15094 ac_save_CFLAGS="$CFLAGS"
15095 ac_save_CXXFLAGS="$CXXFLAGS"
15096 ac_save_LIBS="$LIBS"
15097 CFLAGS="$CFLAGS $SDL_CFLAGS"
15098 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15099 LIBS="$LIBS $SDL_LIBS"
15100 rm -f conf.sdltest
15101 if test "$cross_compiling" = yes; then :
15102 echo $ac_n "cross compiling; assumed OK... $ac_c"
15103 else
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106
15107 #include <stdio.h>
15108 #include <stdlib.h>
15109 #include <string.h>
15110 #include "SDL.h"
15111
15112 char*
15113 my_strdup (char *str)
15114 {
15115 char *new_str;
15116
15117 if (str)
15118 {
15119 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15120 strcpy (new_str, str);
15121 }
15122 else
15123 new_str = NULL;
15124
15125 return new_str;
15126 }
15127
15128 int main (int argc, char *argv[])
15129 {
15130 int major, minor, micro;
15131 char *tmp_version;
15132
15133 /* This hangs on some systems (?)
15134 system ("touch conf.sdltest");
15135 */
15136 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15137
15138 /* HP/UX 9 (%@#!) writes to sscanf strings */
15139 tmp_version = my_strdup("$min_sdl_version");
15140 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15141 printf("%s, bad version string\n", "$min_sdl_version");
15142 exit(1);
15143 }
15144
15145 if (($sdl_major_version > major) ||
15146 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15147 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15148 {
15149 return 0;
15150 }
15151 else
15152 {
15153 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15154 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15155 printf("*** best to upgrade to the required version.\n");
15156 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15157 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15158 printf("*** config.cache before re-running configure\n");
15159 return 1;
15160 }
15161 }
15162
15163
15164 _ACEOF
15165 if ac_fn_c_try_run "$LINENO"; then :
15166
15167 else
15168 no_sdl=yes
15169 fi
15170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15171 conftest.$ac_objext conftest.beam conftest.$ac_ext
15172 fi
15173
15174 CFLAGS="$ac_save_CFLAGS"
15175 CXXFLAGS="$ac_save_CXXFLAGS"
15176 LIBS="$ac_save_LIBS"
15177 fi
15178 fi
15179 if test "x$no_sdl" = x ; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15181 $as_echo "yes" >&6; }
15182 $as_echo "#define HAVE_LIBSDL 1" >>confdefs.h
15183 HAVE_LIBSDL="yes"
15184 else
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186 $as_echo "no" >&6; }
15187 if test "$SDL_CONFIG" = "no" ; then
15188 echo "*** The sdl-config script installed by SDL could not be found"
15189 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15190 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15191 echo "*** full path to sdl-config."
15192 else
15193 if test -f conf.sdltest ; then
15194 :
15195 else
15196 echo "*** Could not run SDL test program, checking why..."
15197 CFLAGS="$CFLAGS $SDL_CFLAGS"
15198 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15199 LIBS="$LIBS $SDL_LIBS"
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202
15203 #include <stdio.h>
15204 #include "SDL.h"
15205
15206 int main(int argc, char *argv[])
15207 { return 0; }
15208 #undef main
15209 #define main K_and_R_C_main
15210
15211 int
15212 main ()
15213 {
15214 return 0;
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 echo "*** The test program compiled, but did not run. This usually means"
15221 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15222 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15223 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15224 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15225 echo "*** is required on your system"
15226 echo "***"
15227 echo "*** If you have an old version installed, it is best to remove it, although"
15228 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15229 else
15230 echo "*** The test program failed to compile or link. See the file config.log for the"
15231 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15232 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15233 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15237 CFLAGS="$ac_save_CFLAGS"
15238 CXXFLAGS="$ac_save_CXXFLAGS"
15239 LIBS="$ac_save_LIBS"
15240 fi
15241 fi
15242 SDL_CFLAGS=""
15243 SDL_LIBS=""
15244 :
15245 fi
15246
15247
15248 rm -f conf.sdltest
15249
15250
15251
15252
15253 case "$host" in
15254 *-*-linux*)
15255 have_linux=true
15256
15257 $as_echo "#define HAVE_LINUX /**/" >>confdefs.h
15258
15259 # Check for the new version of libraw1394 first since they might have both
15260 # installed and we want to use the newest version
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_channel_modify in -lraw1394" >&5
15262 $as_echo_n "checking for raw1394_channel_modify in -lraw1394... " >&6; }
15263 if ${ac_cv_lib_raw1394_raw1394_channel_modify+:} false; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-lraw1394 $LIBS"
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270
15271 /* Override any GCC internal prototype to avoid an error.
15272 Use char because int might match the return type of a GCC
15273 builtin and then its argument prototype would still apply. */
15274 #ifdef __cplusplus
15275 extern "C"
15276 #endif
15277 char raw1394_channel_modify ();
15278 int
15279 main ()
15280 {
15281 return raw1394_channel_modify ();
15282 ;
15283 return 0;
15284 }
15285 _ACEOF
15286 if ac_fn_c_try_link "$LINENO"; then :
15287 ac_cv_lib_raw1394_raw1394_channel_modify=yes
15288 else
15289 ac_cv_lib_raw1394_raw1394_channel_modify=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 LIBS=$ac_check_lib_save_LIBS
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_channel_modify" >&5
15296 $as_echo "$ac_cv_lib_raw1394_raw1394_channel_modify" >&6; }
15297 if test "x$ac_cv_lib_raw1394_raw1394_channel_modify" = xyes; then :
15298
15299 $as_echo "#define HAVE_LIBRAW1394 /**/" >>confdefs.h
15300 libraw1394=true
15301 else
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libraw1394 not found or too old. Please upgrade to 1.2.0 or a more recent version." >&5
15303 $as_echo "$as_me: WARNING: libraw1394 not found or too old. Please upgrade to 1.2.0 or a more recent version." >&2;}
15304 fi
15305
15306 ;;
15307 *-*-darwin*)
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework IOKit works" >&5
15309 $as_echo_n "checking if -framework IOKit works... " >&6; }
15310 if ${my_cv_framework_IOKit+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 save_LIBS="$LIBS"
15314 LIBS="$LIBS -framework IOKit"
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317
15318 int
15319 main ()
15320 {
15321
15322 ;
15323 return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 my_cv_framework_IOKit=yes
15328 else
15329 my_cv_framework_IOKit=no
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_framework_IOKit" >&5
15336 $as_echo "$my_cv_framework_IOKit" >&6; }
15337 LIBS="$save_LIBS"
15338 if test "$my_cv_framework_IOKit"="yes"; then
15339
15340 $as_echo "#define HAVE_FRAMEWORK_IOKIT 1" >>confdefs.h
15341
15342 FRAMEWORK_IOKIT="-framework IOKit"
15343
15344 fi
15345 if test x$my_cv_framework_IOKit = xyes; then
15346
15347 $as_echo "#define HAVE_MACOSX /**/" >>confdefs.h
15348
15349 have_macosx=true
15350 fi
15351 platform_LDFLAGS="-framework CoreServices -framework CoreFoundation -framework IOKit"
15352
15353 ;;
15354 *-*-cygwin* | *-*-mingw*)
15355 have_windows=true
15356
15357 $as_echo "#define HAVE_WINDOWS /**/" >>confdefs.h
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetCmdrVersion in -l1394camera" >&5
15360 $as_echo_n "checking for GetCmdrVersion in -l1394camera... " >&6; }
15361 if ${ac_cv_lib_1394camera_GetCmdrVersion+:} false; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-l1394camera $LIBS"
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368
15369 /* Override any GCC internal prototype to avoid an error.
15370 Use char because int might match the return type of a GCC
15371 builtin and then its argument prototype would still apply. */
15372 #ifdef __cplusplus
15373 extern "C"
15374 #endif
15375 char GetCmdrVersion ();
15376 int
15377 main ()
15378 {
15379 return GetCmdrVersion ();
15380 ;
15381 return 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_link "$LINENO"; then :
15385 ac_cv_lib_1394camera_GetCmdrVersion=yes
15386 else
15387 ac_cv_lib_1394camera_GetCmdrVersion=no
15388 fi
15389 rm -f core conftest.err conftest.$ac_objext \
15390 conftest$ac_exeext conftest.$ac_ext
15391 LIBS=$ac_check_lib_save_LIBS
15392 fi
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_1394camera_GetCmdrVersion" >&5
15394 $as_echo "$ac_cv_lib_1394camera_GetCmdrVersion" >&6; }
15395 if test "x$ac_cv_lib_1394camera_GetCmdrVersion" = xyes; then :
15396
15397 $as_echo "#define HAVE_LIB1394CAMERA /**/" >>confdefs.h
15398 lib1394camera=true
15399 else
15400 as_fn_error $? "lib1394camera not found or too old. Please upgrade to 6.4.5 or a more recent version." "$LINENO" 5
15401 fi
15402
15403 platform_LDFLAGS="-Wl,--export-all -no-undefined -l1394camera -lsetupapi -lws2_32"
15404
15405 ;;
15406 esac
15407
15408
15409 case "$host" in
15410 *-*-linux* | *-*-darwin*)
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
15412 $as_echo_n "checking for main in -lGL... " >&6; }
15413 if ${ac_cv_lib_GL_main+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 ac_check_lib_save_LIBS=$LIBS
15417 LIBS="-lGL $LIBS"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420
15421
15422 int
15423 main ()
15424 {
15425 return main ();
15426 ;
15427 return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_link "$LINENO"; then :
15431 ac_cv_lib_GL_main=yes
15432 else
15433 ac_cv_lib_GL_main=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
15440 $as_echo "$ac_cv_lib_GL_main" >&6; }
15441 if test "x$ac_cv_lib_GL_main" = xyes; then :
15442 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
15443 have_opengl="yes"
15444 fi
15445
15446 ;;
15447 *-*-cygwin* | *-*-mingw*)
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
15449 $as_echo_n "checking for main in -lopengl32... " >&6; }
15450 if ${ac_cv_lib_opengl32_main+:} false; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 ac_check_lib_save_LIBS=$LIBS
15454 LIBS="-lopengl32 $LIBS"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457
15458
15459 int
15460 main ()
15461 {
15462 return main ();
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"; then :
15468 ac_cv_lib_opengl32_main=yes
15469 else
15470 ac_cv_lib_opengl32_main=no
15471 fi
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15475 fi
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5
15477 $as_echo "$ac_cv_lib_opengl32_main" >&6; }
15478 if test "x$ac_cv_lib_opengl32_main" = xyes; then :
15479 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
15480 have_opengl="yes"
15481 fi
15482
15483 ;;
15484 esac
15485
15486 if test x$have_linux = xtrue; then
15487 HAVE_LINUX_TRUE=
15488 HAVE_LINUX_FALSE='#'
15489 else
15490 HAVE_LINUX_TRUE='#'
15491 HAVE_LINUX_FALSE=
15492 fi
15493
15494 if test x$have_macosx = xtrue; then
15495 HAVE_MACOSX_TRUE=
15496 HAVE_MACOSX_FALSE='#'
15497 else
15498 HAVE_MACOSX_TRUE='#'
15499 HAVE_MACOSX_FALSE=
15500 fi
15501
15502 if test x$have_windows = xtrue; then
15503 HAVE_WINDOWS_TRUE=
15504 HAVE_WINDOWS_FALSE='#'
15505 else
15506 HAVE_WINDOWS_TRUE='#'
15507 HAVE_WINDOWS_FALSE=
15508 fi
15509
15510 if test x$libraw1394 = xtrue; then
15511 HAVE_LIBRAW1394_TRUE=
15512 HAVE_LIBRAW1394_FALSE='#'
15513 else
15514 HAVE_LIBRAW1394_TRUE='#'
15515 HAVE_LIBRAW1394_FALSE=
15516 fi
15517
15518 if test "x$LIBUSB_LIBS" != "x"; then
15519 HAVE_LIBUSB_TRUE=
15520 HAVE_LIBUSB_FALSE='#'
15521 else
15522 HAVE_LIBUSB_TRUE='#'
15523 HAVE_LIBUSB_FALSE=
15524 fi
15525
15526
15527 if test "x$SDL_LIBS" != "x"; then
15528 HAVE_LIBSDL_TRUE=
15529 HAVE_LIBSDL_FALSE='#'
15530 else
15531 HAVE_LIBSDL_TRUE='#'
15532 HAVE_LIBSDL_FALSE=
15533 fi
15534
15535 if test "x$have_opengl" != "x"; then
15536 HAVE_OPENGL_TRUE=
15537 HAVE_OPENGL_FALSE='#'
15538 else
15539 HAVE_OPENGL_TRUE='#'
15540 HAVE_OPENGL_FALSE=
15541 fi
15542
15543 ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
15544 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
15545 have_videodev=true
15546 fi
15547
15548
15549 if test x$have_videodev = xtrue; then
15550 HAVE_VIDEODEV_TRUE=
15551 HAVE_VIDEODEV_FALSE='#'
15552 else
15553 HAVE_VIDEODEV_TRUE='#'
15554 HAVE_VIDEODEV_FALSE=
15555 fi
15556
15557
15558 # Check whether --enable-examples was given.
15559 if test "${enable_examples+set}" = set; then :
15560 enableval=$enable_examples; build_examples=$enableval
15561 else
15562 build_examples=true
15563 fi
15564
15565 if test x$build_examples = xtrue; then
15566 MAKE_EXAMPLES_TRUE=
15567 MAKE_EXAMPLES_FALSE='#'
15568 else
15569 MAKE_EXAMPLES_TRUE='#'
15570 MAKE_EXAMPLES_FALSE=
15571 fi
15572
15573
15574 # check for Xv extensions (necessary for examples/dc1394_multiview)
15575 # imported from Coriander
15576
15577
15578
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xv extensions" >&5
15581 $as_echo_n "checking for Xv extensions... " >&6; }
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584
15585 #include <X11/Xlib.h>
15586 #include <X11/extensions/Xvlib.h>
15587 int
15588 main ()
15589 {
15590
15591 int main(void) { (void) XvGetPortAttribute(0, 0, 0, 0); return 0; }
15592
15593 ;
15594 return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_compile "$LINENO"; then :
15598 xv=yes
15599 else
15600 xv=no
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xv" >&5
15604 $as_echo "$xv" >&6; }
15605 if test x$xv = xyes; then
15606 XV_LIBS="-lXv -lXext"
15607 XV_CFLAGS=""
15608 fi
15609 if test x$xv = xyes; then
15610 HAVE_XV_TRUE=
15611 HAVE_XV_FALSE='#'
15612 else
15613 HAVE_XV_TRUE='#'
15614 HAVE_XV_FALSE=
15615 fi
15616
15617
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15620 $as_echo_n "checking for ANSI C header files... " >&6; }
15621 if ${ac_cv_header_stdc+:} false; then :
15622 $as_echo_n "(cached) " >&6
15623 else
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <stdlib.h>
15627 #include <stdarg.h>
15628 #include <string.h>
15629 #include <float.h>
15630
15631 int
15632 main ()
15633 {
15634
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"; then :
15640 ac_cv_header_stdc=yes
15641 else
15642 ac_cv_header_stdc=no
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645
15646 if test $ac_cv_header_stdc = yes; then
15647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650 #include <string.h>
15651
15652 _ACEOF
15653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15654 $EGREP "memchr" >/dev/null 2>&1; then :
15655
15656 else
15657 ac_cv_header_stdc=no
15658 fi
15659 rm -f conftest*
15660
15661 fi
15662
15663 if test $ac_cv_header_stdc = yes; then
15664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 #include <stdlib.h>
15668
15669 _ACEOF
15670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15671 $EGREP "free" >/dev/null 2>&1; then :
15672
15673 else
15674 ac_cv_header_stdc=no
15675 fi
15676 rm -f conftest*
15677
15678 fi
15679
15680 if test $ac_cv_header_stdc = yes; then
15681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15682 if test "$cross_compiling" = yes; then :
15683 :
15684 else
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <ctype.h>
15688 #include <stdlib.h>
15689 #if ((' ' & 0x0FF) == 0x020)
15690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15692 #else
15693 # define ISLOWER(c) \
15694 (('a' <= (c) && (c) <= 'i') \
15695 || ('j' <= (c) && (c) <= 'r') \
15696 || ('s' <= (c) && (c) <= 'z'))
15697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15698 #endif
15699
15700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15701 int
15702 main ()
15703 {
15704 int i;
15705 for (i = 0; i < 256; i++)
15706 if (XOR (islower (i), ISLOWER (i))
15707 || toupper (i) != TOUPPER (i))
15708 return 2;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_run "$LINENO"; then :
15713
15714 else
15715 ac_cv_header_stdc=no
15716 fi
15717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15718 conftest.$ac_objext conftest.beam conftest.$ac_ext
15719 fi
15720
15721 fi
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15724 $as_echo "$ac_cv_header_stdc" >&6; }
15725 if test $ac_cv_header_stdc = yes; then
15726
15727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15728
15729 fi
15730
15731 for ac_header in stdint.h fcntl.h sys/ioctl.h unistd.h sys/mman.h netinet/in.h
15732 do :
15733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15736 cat >>confdefs.h <<_ACEOF
15737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738 _ACEOF
15739
15740 fi
15741
15742 done
15743
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15745 $as_echo_n "checking for X... " >&6; }
15746
15747
15748 # Check whether --with-x was given.
15749 if test "${with_x+set}" = set; then :
15750 withval=$with_x;
15751 fi
15752
15753 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15754 if test "x$with_x" = xno; then
15755 # The user explicitly disabled X.
15756 have_x=disabled
15757 else
15758 case $x_includes,$x_libraries in #(
15759 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
15760 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
15761 $as_echo_n "(cached) " >&6
15762 else
15763 # One or both of the vars are not set, and there is no cached value.
15764 ac_x_includes=no ac_x_libraries=no
15765 rm -f -r conftest.dir
15766 if mkdir conftest.dir; then
15767 cd conftest.dir
15768 cat >Imakefile <<'_ACEOF'
15769 incroot:
15770 @echo incroot='${INCROOT}'
15771 usrlibdir:
15772 @echo usrlibdir='${USRLIBDIR}'
15773 libdir:
15774 @echo libdir='${LIBDIR}'
15775 _ACEOF
15776 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15777 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15778 for ac_var in incroot usrlibdir libdir; do
15779 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15780 done
15781 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15782 for ac_extension in a so sl dylib la dll; do
15783 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15784 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15785 ac_im_usrlibdir=$ac_im_libdir; break
15786 fi
15787 done
15788 # Screen out bogus values from the imake configuration. They are
15789 # bogus both because they are the default anyway, and because
15790 # using them would break gcc on systems where it needs fixed includes.
15791 case $ac_im_incroot in
15792 /usr/include) ac_x_includes= ;;
15793 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15794 esac
15795 case $ac_im_usrlibdir in
15796 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15797 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15798 esac
15799 fi
15800 cd ..
15801 rm -f -r conftest.dir
15802 fi
15803
15804 # Standard set of common directories for X headers.
15805 # Check X11 before X11Rn because it is often a symlink to the current release.
15806 ac_x_header_dirs='
15807 /usr/X11/include
15808 /usr/X11R7/include
15809 /usr/X11R6/include
15810 /usr/X11R5/include
15811 /usr/X11R4/include
15812
15813 /usr/include/X11
15814 /usr/include/X11R7
15815 /usr/include/X11R6
15816 /usr/include/X11R5
15817 /usr/include/X11R4
15818
15819 /usr/local/X11/include
15820 /usr/local/X11R7/include
15821 /usr/local/X11R6/include
15822 /usr/local/X11R5/include
15823 /usr/local/X11R4/include
15824
15825 /usr/local/include/X11
15826 /usr/local/include/X11R7
15827 /usr/local/include/X11R6
15828 /usr/local/include/X11R5
15829 /usr/local/include/X11R4
15830
15831 /usr/X386/include
15832 /usr/x386/include
15833 /usr/XFree86/include/X11
15834
15835 /usr/include
15836 /usr/local/include
15837 /usr/unsupported/include
15838 /usr/athena/include
15839 /usr/local/x11r5/include
15840 /usr/lpp/Xamples/include
15841
15842 /usr/openwin/include
15843 /usr/openwin/share/include'
15844
15845 if test "$ac_x_includes" = no; then
15846 # Guess where to find include files, by looking for Xlib.h.
15847 # First, try using that file with no special directory specified.
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #include <X11/Xlib.h>
15851 _ACEOF
15852 if ac_fn_c_try_cpp "$LINENO"; then :
15853 # We can compile using X headers with no special include directory.
15854 ac_x_includes=
15855 else
15856 for ac_dir in $ac_x_header_dirs; do
15857 if test -r "$ac_dir/X11/Xlib.h"; then
15858 ac_x_includes=$ac_dir
15859 break
15860 fi
15861 done
15862 fi
15863 rm -f conftest.err conftest.i conftest.$ac_ext
15864 fi # $ac_x_includes = no
15865
15866 if test "$ac_x_libraries" = no; then
15867 # Check for the libraries.
15868 # See if we find them without any special options.
15869 # Don't add to $LIBS permanently.
15870 ac_save_LIBS=$LIBS
15871 LIBS="-lX11 $LIBS"
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874 #include <X11/Xlib.h>
15875 int
15876 main ()
15877 {
15878 XrmInitialize ()
15879 ;
15880 return 0;
15881 }
15882 _ACEOF
15883 if ac_fn_c_try_link "$LINENO"; then :
15884 LIBS=$ac_save_LIBS
15885 # We can link X programs with no special library path.
15886 ac_x_libraries=
15887 else
15888 LIBS=$ac_save_LIBS
15889 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15890 do
15891 # Don't even attempt the hair of trying to link an X program!
15892 for ac_extension in a so sl dylib la dll; do
15893 if test -r "$ac_dir/libX11.$ac_extension"; then
15894 ac_x_libraries=$ac_dir
15895 break 2
15896 fi
15897 done
15898 done
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext \
15901 conftest$ac_exeext conftest.$ac_ext
15902 fi # $ac_x_libraries = no
15903
15904 case $ac_x_includes,$ac_x_libraries in #(
15905 no,* | *,no | *\'*)
15906 # Didn't find X, or a directory has "'" in its name.
15907 ac_cv_have_x="have_x=no";; #(
15908 *)
15909 # Record where we found X for the cache.
15910 ac_cv_have_x="have_x=yes\
15911 ac_x_includes='$ac_x_includes'\
15912 ac_x_libraries='$ac_x_libraries'"
15913 esac
15914 fi
15915 ;; #(
15916 *) have_x=yes;;
15917 esac
15918 eval "$ac_cv_have_x"
15919 fi # $with_x != no
15920
15921 if test "$have_x" != yes; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15923 $as_echo "$have_x" >&6; }
15924 no_x=yes
15925 else
15926 # If each of the values was on the command line, it overrides each guess.
15927 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15928 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15929 # Update the cache value to reflect the command line values.
15930 ac_cv_have_x="have_x=yes\
15931 ac_x_includes='$x_includes'\
15932 ac_x_libraries='$x_libraries'"
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15934 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15935 fi
15936
15937 if test "$no_x" = yes; then
15938 # Not all programs may use this symbol, but it does not hurt to define it.
15939
15940 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15941
15942 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15943 else
15944 if test -n "$x_includes"; then
15945 X_CFLAGS="$X_CFLAGS -I$x_includes"
15946 fi
15947
15948 # It would also be nice to do this for all -L options, not just this one.
15949 if test -n "$x_libraries"; then
15950 X_LIBS="$X_LIBS -L$x_libraries"
15951 # For Solaris; some versions of Sun CC require a space after -R and
15952 # others require no space. Words are not sufficient . . . .
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15954 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
15955 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15956 ac_xsave_c_werror_flag=$ac_c_werror_flag
15957 ac_c_werror_flag=yes
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960
15961 int
15962 main ()
15963 {
15964
15965 ;
15966 return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_link "$LINENO"; then :
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15972 X_LIBS="$X_LIBS -R$x_libraries"
15973 else
15974 LIBS="$ac_xsave_LIBS -R $x_libraries"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977
15978 int
15979 main ()
15980 {
15981
15982 ;
15983 return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15988 $as_echo "yes" >&6; }
15989 X_LIBS="$X_LIBS -R $x_libraries"
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15992 $as_echo "neither works" >&6; }
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext \
15995 conftest$ac_exeext conftest.$ac_ext
15996 fi
15997 rm -f core conftest.err conftest.$ac_objext \
15998 conftest$ac_exeext conftest.$ac_ext
15999 ac_c_werror_flag=$ac_xsave_c_werror_flag
16000 LIBS=$ac_xsave_LIBS
16001 fi
16002
16003 # Check for system-dependent libraries X programs must link with.
16004 # Do this before checking for the system-independent R6 libraries
16005 # (-lICE), since we may need -lsocket or whatever for X linking.
16006
16007 if test "$ISC" = yes; then
16008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16009 else
16010 # Martyn Johnson says this is needed for Ultrix, if the X
16011 # libraries were built with DECnet support. And Karl Berry says
16012 # the Alpha needs dnet_stub (dnet does not exist).
16013 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 char XOpenDisplay ();
16024 int
16025 main ()
16026 {
16027 return XOpenDisplay ();
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033
16034 else
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
16036 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16037 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
16038 $as_echo_n "(cached) " >&6
16039 else
16040 ac_check_lib_save_LIBS=$LIBS
16041 LIBS="-ldnet $LIBS"
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h. */
16044
16045 /* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 char dnet_ntoa ();
16052 int
16053 main ()
16054 {
16055 return dnet_ntoa ();
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_link "$LINENO"; then :
16061 ac_cv_lib_dnet_dnet_ntoa=yes
16062 else
16063 ac_cv_lib_dnet_dnet_ntoa=no
16064 fi
16065 rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 LIBS=$ac_check_lib_save_LIBS
16068 fi
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16070 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16071 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
16072 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16073 fi
16074
16075 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
16077 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
16078 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-ldnet_stub $LIBS"
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085
16086 /* Override any GCC internal prototype to avoid an error.
16087 Use char because int might match the return type of a GCC
16088 builtin and then its argument prototype would still apply. */
16089 #ifdef __cplusplus
16090 extern "C"
16091 #endif
16092 char dnet_ntoa ();
16093 int
16094 main ()
16095 {
16096 return dnet_ntoa ();
16097 ;
16098 return 0;
16099 }
16100 _ACEOF
16101 if ac_fn_c_try_link "$LINENO"; then :
16102 ac_cv_lib_dnet_stub_dnet_ntoa=yes
16103 else
16104 ac_cv_lib_dnet_stub_dnet_ntoa=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 LIBS=$ac_check_lib_save_LIBS
16109 fi
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16111 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16112 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
16113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16114 fi
16115
16116 fi
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 LIBS="$ac_xsave_LIBS"
16121
16122 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
16123 # to get the SysV transport functions.
16124 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16125 # needs -lnsl.
16126 # The nsl library prevents programs from opening the X display
16127 # on Irix 5.2, according to T.E. Dickey.
16128 # The functions gethostbyname, getservbyname, and inet_addr are
16129 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16130 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16131 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16132
16133 fi
16134
16135 if test $ac_cv_func_gethostbyname = no; then
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16137 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16138 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16139 $as_echo_n "(cached) " >&6
16140 else
16141 ac_check_lib_save_LIBS=$LIBS
16142 LIBS="-lnsl $LIBS"
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16145
16146 /* Override any GCC internal prototype to avoid an error.
16147 Use char because int might match the return type of a GCC
16148 builtin and then its argument prototype would still apply. */
16149 #ifdef __cplusplus
16150 extern "C"
16151 #endif
16152 char gethostbyname ();
16153 int
16154 main ()
16155 {
16156 return gethostbyname ();
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 ac_cv_lib_nsl_gethostbyname=yes
16163 else
16164 ac_cv_lib_nsl_gethostbyname=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 LIBS=$ac_check_lib_save_LIBS
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16171 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16172 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16174 fi
16175
16176 if test $ac_cv_lib_nsl_gethostbyname = no; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
16178 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
16179 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 ac_check_lib_save_LIBS=$LIBS
16183 LIBS="-lbsd $LIBS"
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186
16187 /* Override any GCC internal prototype to avoid an error.
16188 Use char because int might match the return type of a GCC
16189 builtin and then its argument prototype would still apply. */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 char gethostbyname ();
16194 int
16195 main ()
16196 {
16197 return gethostbyname ();
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_link "$LINENO"; then :
16203 ac_cv_lib_bsd_gethostbyname=yes
16204 else
16205 ac_cv_lib_bsd_gethostbyname=no
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16210 fi
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
16212 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
16213 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
16214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
16215 fi
16216
16217 fi
16218 fi
16219
16220 # [email protected] says without -lsocket,
16221 # socket/setsockopt and other routines are undefined under SCO ODT
16222 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
16223 # on later versions), says Simon Leinen: it contains gethostby*
16224 # variants that don't use the name server (or something). -lsocket
16225 # must be given before -lnsl if both are needed. We assume that
16226 # if connect needs -lnsl, so does gethostbyname.
16227 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16228 if test "x$ac_cv_func_connect" = xyes; then :
16229
16230 fi
16231
16232 if test $ac_cv_func_connect = no; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16234 $as_echo_n "checking for connect in -lsocket... " >&6; }
16235 if ${ac_cv_lib_socket_connect+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237 else
16238 ac_check_lib_save_LIBS=$LIBS
16239 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 char connect ();
16250 int
16251 main ()
16252 {
16253 return connect ();
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 ac_cv_lib_socket_connect=yes
16260 else
16261 ac_cv_lib_socket_connect=no
16262 fi
16263 rm -f core conftest.err conftest.$ac_objext \
16264 conftest$ac_exeext conftest.$ac_ext
16265 LIBS=$ac_check_lib_save_LIBS
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16268 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16269 if test "x$ac_cv_lib_socket_connect" = xyes; then :
16270 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
16271 fi
16272
16273 fi
16274
16275 # Guillermo Gomez says -lposix is necessary on A/UX.
16276 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
16277 if test "x$ac_cv_func_remove" = xyes; then :
16278
16279 fi
16280
16281 if test $ac_cv_func_remove = no; then
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
16283 $as_echo_n "checking for remove in -lposix... " >&6; }
16284 if ${ac_cv_lib_posix_remove+:} false; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 ac_check_lib_save_LIBS=$LIBS
16288 LIBS="-lposix $LIBS"
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291
16292 /* Override any GCC internal prototype to avoid an error.
16293 Use char because int might match the return type of a GCC
16294 builtin and then its argument prototype would still apply. */
16295 #ifdef __cplusplus
16296 extern "C"
16297 #endif
16298 char remove ();
16299 int
16300 main ()
16301 {
16302 return remove ();
16303 ;
16304 return 0;
16305 }
16306 _ACEOF
16307 if ac_fn_c_try_link "$LINENO"; then :
16308 ac_cv_lib_posix_remove=yes
16309 else
16310 ac_cv_lib_posix_remove=no
16311 fi
16312 rm -f core conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16314 LIBS=$ac_check_lib_save_LIBS
16315 fi
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
16317 $as_echo "$ac_cv_lib_posix_remove" >&6; }
16318 if test "x$ac_cv_lib_posix_remove" = xyes; then :
16319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
16320 fi
16321
16322 fi
16323
16324 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
16325 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
16326 if test "x$ac_cv_func_shmat" = xyes; then :
16327
16328 fi
16329
16330 if test $ac_cv_func_shmat = no; then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
16332 $as_echo_n "checking for shmat in -lipc... " >&6; }
16333 if ${ac_cv_lib_ipc_shmat+:} false; then :
16334 $as_echo_n "(cached) " >&6
16335 else
16336 ac_check_lib_save_LIBS=$LIBS
16337 LIBS="-lipc $LIBS"
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340
16341 /* Override any GCC internal prototype to avoid an error.
16342 Use char because int might match the return type of a GCC
16343 builtin and then its argument prototype would still apply. */
16344 #ifdef __cplusplus
16345 extern "C"
16346 #endif
16347 char shmat ();
16348 int
16349 main ()
16350 {
16351 return shmat ();
16352 ;
16353 return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16357 ac_cv_lib_ipc_shmat=yes
16358 else
16359 ac_cv_lib_ipc_shmat=no
16360 fi
16361 rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
16363 LIBS=$ac_check_lib_save_LIBS
16364 fi
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
16366 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
16367 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
16368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
16369 fi
16370
16371 fi
16372 fi
16373
16374 # Check for libraries that X11R6 Xt/Xaw programs need.
16375 ac_save_LDFLAGS=$LDFLAGS
16376 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
16377 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
16378 # check for ICE first), but we must link in the order -lSM -lICE or
16379 # we get undefined symbols. So assume we have SM if we have ICE.
16380 # These have to be linked with before -lX11, unlike the other
16381 # libraries we check for below, so use a different variable.
16382 # John Interrante, Karl Berry
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
16384 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
16385 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 ac_check_lib_save_LIBS=$LIBS
16389 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392
16393 /* Override any GCC internal prototype to avoid an error.
16394 Use char because int might match the return type of a GCC
16395 builtin and then its argument prototype would still apply. */
16396 #ifdef __cplusplus
16397 extern "C"
16398 #endif
16399 char IceConnectionNumber ();
16400 int
16401 main ()
16402 {
16403 return IceConnectionNumber ();
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_link "$LINENO"; then :
16409 ac_cv_lib_ICE_IceConnectionNumber=yes
16410 else
16411 ac_cv_lib_ICE_IceConnectionNumber=no
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext \
16414 conftest$ac_exeext conftest.$ac_ext
16415 LIBS=$ac_check_lib_save_LIBS
16416 fi
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
16418 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
16419 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
16420 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
16421 fi
16422
16423 LDFLAGS=$ac_save_LDFLAGS
16424
16425 fi
16426
16427
16428 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16429 if test "x$ac_cv_type_size_t" = xyes; then :
16430
16431 else
16432
16433 cat >>confdefs.h <<_ACEOF
16434 #define size_t unsigned int
16435 _ACEOF
16436
16437 fi
16438
16439
16440
16441
16442
16443 for ac_header in $ac_header_list
16444 do :
16445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16447 "
16448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16449 cat >>confdefs.h <<_ACEOF
16450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16451 _ACEOF
16452
16453 fi
16454
16455 done
16456
16457
16458
16459
16460
16461
16462
16463
16464 for ac_func in getpagesize
16465 do :
16466 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16467 if test "x$ac_cv_func_getpagesize" = xyes; then :
16468 cat >>confdefs.h <<_ACEOF
16469 #define HAVE_GETPAGESIZE 1
16470 _ACEOF
16471
16472 fi
16473 done
16474
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16476 $as_echo_n "checking for working mmap... " >&6; }
16477 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 if test "$cross_compiling" = yes; then :
16481 ac_cv_func_mmap_fixed_mapped=no
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 $ac_includes_default
16486 /* malloc might have been renamed as rpl_malloc. */
16487 #undef malloc
16488
16489 /* Thanks to Mike Haertel and Jim Avera for this test.
16490 Here is a matrix of mmap possibilities:
16491 mmap private not fixed
16492 mmap private fixed at somewhere currently unmapped
16493 mmap private fixed at somewhere already mapped
16494 mmap shared not fixed
16495 mmap shared fixed at somewhere currently unmapped
16496 mmap shared fixed at somewhere already mapped
16497 For private mappings, we should verify that changes cannot be read()
16498 back from the file, nor mmap's back from the file at a different
16499 address. (There have been systems where private was not correctly
16500 implemented like the infamous i386 svr4.0, and systems where the
16501 VM page cache was not coherent with the file system buffer cache
16502 like early versions of FreeBSD and possibly contemporary NetBSD.)
16503 For shared mappings, we should conversely verify that changes get
16504 propagated back to all the places they're supposed to be.
16505
16506 Grep wants private fixed already mapped.
16507 The main things grep needs to know about mmap are:
16508 * does it exist and is it safe to write into the mmap'd area
16509 * how to use it (BSD variants) */
16510
16511 #include <fcntl.h>
16512 #include <sys/mman.h>
16513
16514 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16515 char *malloc ();
16516 #endif
16517
16518 /* This mess was copied from the GNU getpagesize.h. */
16519 #ifndef HAVE_GETPAGESIZE
16520 # ifdef _SC_PAGESIZE
16521 # define getpagesize() sysconf(_SC_PAGESIZE)
16522 # else /* no _SC_PAGESIZE */
16523 # ifdef HAVE_SYS_PARAM_H
16524 # include <sys/param.h>
16525 # ifdef EXEC_PAGESIZE
16526 # define getpagesize() EXEC_PAGESIZE
16527 # else /* no EXEC_PAGESIZE */
16528 # ifdef NBPG
16529 # define getpagesize() NBPG * CLSIZE
16530 # ifndef CLSIZE
16531 # define CLSIZE 1
16532 # endif /* no CLSIZE */
16533 # else /* no NBPG */
16534 # ifdef NBPC
16535 # define getpagesize() NBPC
16536 # else /* no NBPC */
16537 # ifdef PAGESIZE
16538 # define getpagesize() PAGESIZE
16539 # endif /* PAGESIZE */
16540 # endif /* no NBPC */
16541 # endif /* no NBPG */
16542 # endif /* no EXEC_PAGESIZE */
16543 # else /* no HAVE_SYS_PARAM_H */
16544 # define getpagesize() 8192 /* punt totally */
16545 # endif /* no HAVE_SYS_PARAM_H */
16546 # endif /* no _SC_PAGESIZE */
16547
16548 #endif /* no HAVE_GETPAGESIZE */
16549
16550 int
16551 main ()
16552 {
16553 char *data, *data2, *data3;
16554 const char *cdata2;
16555 int i, pagesize;
16556 int fd, fd2;
16557
16558 pagesize = getpagesize ();
16559
16560 /* First, make a file with some known garbage in it. */
16561 data = (char *) malloc (pagesize);
16562 if (!data)
16563 return 1;
16564 for (i = 0; i < pagesize; ++i)
16565 *(data + i) = rand ();
16566 umask (0);
16567 fd = creat ("conftest.mmap", 0600);
16568 if (fd < 0)
16569 return 2;
16570 if (write (fd, data, pagesize) != pagesize)
16571 return 3;
16572 close (fd);
16573
16574 /* Next, check that the tail of a page is zero-filled. File must have
16575 non-zero length, otherwise we risk SIGBUS for entire page. */
16576 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16577 if (fd2 < 0)
16578 return 4;
16579 cdata2 = "";
16580 if (write (fd2, cdata2, 1) != 1)
16581 return 5;
16582 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16583 if (data2 == MAP_FAILED)
16584 return 6;
16585 for (i = 0; i < pagesize; ++i)
16586 if (*(data2 + i))
16587 return 7;
16588 close (fd2);
16589 if (munmap (data2, pagesize))
16590 return 8;
16591
16592 /* Next, try to mmap the file at a fixed address which already has
16593 something else allocated at it. If we can, also make sure that
16594 we see the same garbage. */
16595 fd = open ("conftest.mmap", O_RDWR);
16596 if (fd < 0)
16597 return 9;
16598 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16599 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16600 return 10;
16601 for (i = 0; i < pagesize; ++i)
16602 if (*(data + i) != *(data2 + i))
16603 return 11;
16604
16605 /* Finally, make sure that changes to the mapped area do not
16606 percolate back to the file as seen by read(). (This is a bug on
16607 some variants of i386 svr4.0.) */
16608 for (i = 0; i < pagesize; ++i)
16609 *(data2 + i) = *(data2 + i) + 1;
16610 data3 = (char *) malloc (pagesize);
16611 if (!data3)
16612 return 12;
16613 if (read (fd, data3, pagesize) != pagesize)
16614 return 13;
16615 for (i = 0; i < pagesize; ++i)
16616 if (*(data + i) != *(data3 + i))
16617 return 14;
16618 close (fd);
16619 return 0;
16620 }
16621 _ACEOF
16622 if ac_fn_c_try_run "$LINENO"; then :
16623 ac_cv_func_mmap_fixed_mapped=yes
16624 else
16625 ac_cv_func_mmap_fixed_mapped=no
16626 fi
16627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16628 conftest.$ac_objext conftest.beam conftest.$ac_ext
16629 fi
16630
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16633 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16634 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16635
16636 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16637
16638 fi
16639 rm -f conftest.mmap conftest.txt
16640
16641
16642 lt_current=25
16643 lt_revision=0
16644 lt_age=0
16645
16646
16647
16648
16649
16650 pkgincludedir='$(includedir)/dc1394'
16651
16652
16653 CFLAGS="-Wall -Wunused -std=gnu99 $CFLAGS"
16654
16655 ac_config_files="$ac_config_files Makefile libdc1394-2.pc dc1394/Makefile dc1394/linux/Makefile dc1394/juju/Makefile dc1394/macosx/Makefile dc1394/windows/Makefile dc1394/usb/Makefile dc1394/vendor/Makefile examples/Makefile"
16656
16657 cat >confcache <<\_ACEOF
16658 # This file is a shell script that caches the results of configure
16659 # tests run on this system so they can be shared between configure
16660 # scripts and configure runs, see configure's option --config-cache.
16661 # It is not useful on other systems. If it contains results you don't
16662 # want to keep, you may remove or edit it.
16663 #
16664 # config.status only pays attention to the cache file if you give it
16665 # the --recheck option to rerun configure.
16666 #
16667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16669 # following values.
16670
16671 _ACEOF
16672
16673 # The following way of writing the cache mishandles newlines in values,
16674 # but we know of no workaround that is simple, portable, and efficient.
16675 # So, we kill variables containing newlines.
16676 # Ultrix sh set writes to stderr and can't be redirected directly,
16677 # and sets the high bit in the cache file unless we assign to the vars.
16678 (
16679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16680 eval ac_val=\$$ac_var
16681 case $ac_val in #(
16682 *${as_nl}*)
16683 case $ac_var in #(
16684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16686 esac
16687 case $ac_var in #(
16688 _ | IFS | as_nl) ;; #(
16689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16690 *) { eval $ac_var=; unset $ac_var;} ;;
16691 esac ;;
16692 esac
16693 done
16694
16695 (set) 2>&1 |
16696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16697 *${as_nl}ac_space=\ *)
16698 # `set' does not quote correctly, so add quotes: double-quote
16699 # substitution turns \\\\ into \\, and sed turns \\ into \.
16700 sed -n \
16701 "s/'/'\\\\''/g;
16702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16703 ;; #(
16704 *)
16705 # `set' quotes correctly as required by POSIX, so do not add quotes.
16706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16707 ;;
16708 esac |
16709 sort
16710 ) |
16711 sed '
16712 /^ac_cv_env_/b end
16713 t clear
16714 :clear
16715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16716 t end
16717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16718 :end' >>confcache
16719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16720 if test -w "$cache_file"; then
16721 if test "x$cache_file" != "x/dev/null"; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16723 $as_echo "$as_me: updating cache $cache_file" >&6;}
16724 if test ! -f "$cache_file" || test -h "$cache_file"; then
16725 cat confcache >"$cache_file"
16726 else
16727 case $cache_file in #(
16728 */* | ?:*)
16729 mv -f confcache "$cache_file"$$ &&
16730 mv -f "$cache_file"$$ "$cache_file" ;; #(
16731 *)
16732 mv -f confcache "$cache_file" ;;
16733 esac
16734 fi
16735 fi
16736 else
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16739 fi
16740 fi
16741 rm -f confcache
16742
16743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16744 # Let make expand exec_prefix.
16745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16746
16747 DEFS=-DHAVE_CONFIG_H
16748
16749 ac_libobjs=
16750 ac_ltlibobjs=
16751 U=
16752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16753 # 1. Remove the extension, and $U if already installed.
16754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16757 # will be set to the directory where LIBOBJS objects are built.
16758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16760 done
16761 LIBOBJS=$ac_libobjs
16762
16763 LTLIBOBJS=$ac_ltlibobjs
16764
16765
16766 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
16767 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
16768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16769 fi
16770 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
16771 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
16772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16773 fi
16774 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
16775 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
16776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16777 fi
16778 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
16779 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
16780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16781 fi
16782 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
16783 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
16784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16785 fi
16786 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
16787 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
16788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16789 fi
16790 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
16791 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
16792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16793 fi
16794 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
16795 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
16796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16797 fi
16798 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
16799 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
16800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16801 fi
16802 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
16803 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16805 fi
16806 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
16807 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16809 fi
16810 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
16811 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16813 fi
16814 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
16815 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16817 fi
16818 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
16819 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16821 fi
16822 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
16823 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
16824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16825 fi
16826 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
16827 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
16828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16829 fi
16830 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
16831 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
16832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16833 fi
16834 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
16835 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 fi
16838 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
16839 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 fi
16842 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
16843 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
16844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 fi
16846 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
16847 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
16848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16849 fi
16850 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
16851 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
16852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16855 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16856 if test -n "$am_sleep_pid"; then
16857 # Hide warnings about reused PIDs.
16858 wait $am_sleep_pid 2>/dev/null
16859 fi
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16861 $as_echo "done" >&6; }
16862 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16863 as_fn_error $? "conditional \"AMDEP\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16865 fi
16866 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16867 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16869 fi
16870 if test -n "$EXEEXT"; then
16871 am__EXEEXT_TRUE=
16872 am__EXEEXT_FALSE='#'
16873 else
16874 am__EXEEXT_TRUE='#'
16875 am__EXEEXT_FALSE=
16876 fi
16877
16878 if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
16879 as_fn_error $? "conditional \"HAVE_LINUX\" was never defined.
16880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16881 fi
16882 if test -z "${HAVE_MACOSX_TRUE}" && test -z "${HAVE_MACOSX_FALSE}"; then
16883 as_fn_error $? "conditional \"HAVE_MACOSX\" was never defined.
16884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16885 fi
16886 if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then
16887 as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined.
16888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16889 fi
16890 if test -z "${HAVE_LIBRAW1394_TRUE}" && test -z "${HAVE_LIBRAW1394_FALSE}"; then
16891 as_fn_error $? "conditional \"HAVE_LIBRAW1394\" was never defined.
16892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16893 fi
16894 if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
16895 as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined.
16896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16897 fi
16898 if test -z "${HAVE_LIBSDL_TRUE}" && test -z "${HAVE_LIBSDL_FALSE}"; then
16899 as_fn_error $? "conditional \"HAVE_LIBSDL\" was never defined.
16900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16901 fi
16902 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
16903 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16905 fi
16906 if test -z "${HAVE_VIDEODEV_TRUE}" && test -z "${HAVE_VIDEODEV_FALSE}"; then
16907 as_fn_error $? "conditional \"HAVE_VIDEODEV\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16909 fi
16910 if test -z "${MAKE_EXAMPLES_TRUE}" && test -z "${MAKE_EXAMPLES_FALSE}"; then
16911 as_fn_error $? "conditional \"MAKE_EXAMPLES\" was never defined.
16912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16913 fi
16914 if test -z "${HAVE_XV_TRUE}" && test -z "${HAVE_XV_FALSE}"; then
16915 as_fn_error $? "conditional \"HAVE_XV\" was never defined.
16916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16917 fi
16918
16919 : "${CONFIG_STATUS=./config.status}"
16920 ac_write_fail=0
16921 ac_clean_files_save=$ac_clean_files
16922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16924 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16925 as_write_fail=0
16926 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16927 #! $SHELL
16928 # Generated by $as_me.
16929 # Run this file to recreate the current configuration.
16930 # Compiler output produced by configure, useful for debugging
16931 # configure, is in config.log if it exists.
16932
16933 debug=false
16934 ac_cs_recheck=false
16935 ac_cs_silent=false
16936
16937 SHELL=\${CONFIG_SHELL-$SHELL}
16938 export SHELL
16939 _ASEOF
16940 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16941 ## -------------------- ##
16942 ## M4sh Initialization. ##
16943 ## -------------------- ##
16944
16945 # Be more Bourne compatible
16946 DUALCASE=1; export DUALCASE # for MKS sh
16947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16948 emulate sh
16949 NULLCMD=:
16950 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16951 # is contrary to our usage. Disable this feature.
16952 alias -g '${1+"$@"}'='"$@"'
16953 setopt NO_GLOB_SUBST
16954 else
16955 case `(set -o) 2>/dev/null` in #(
16956 *posix*) :
16957 set -o posix ;; #(
16958 *) :
16959 ;;
16960 esac
16961 fi
16962
16963
16964 as_nl='
16965 '
16966 export as_nl
16967 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16968 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16970 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16971 # Prefer a ksh shell builtin over an external printf program on Solaris,
16972 # but without wasting forks for bash or zsh.
16973 if test -z "$BASH_VERSION$ZSH_VERSION" \
16974 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16975 as_echo='print -r --'
16976 as_echo_n='print -rn --'
16977 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16978 as_echo='printf %s\n'
16979 as_echo_n='printf %s'
16980 else
16981 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16982 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16983 as_echo_n='/usr/ucb/echo -n'
16984 else
16985 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16986 as_echo_n_body='eval
16987 arg=$1;
16988 case $arg in #(
16989 *"$as_nl"*)
16990 expr "X$arg" : "X\\(.*\\)$as_nl";
16991 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16992 esac;
16993 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16994 '
16995 export as_echo_n_body
16996 as_echo_n='sh -c $as_echo_n_body as_echo'
16997 fi
16998 export as_echo_body
16999 as_echo='sh -c $as_echo_body as_echo'
17000 fi
17001
17002 # The user is always right.
17003 if test "${PATH_SEPARATOR+set}" != set; then
17004 PATH_SEPARATOR=:
17005 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17006 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17007 PATH_SEPARATOR=';'
17008 }
17009 fi
17010
17011
17012 # IFS
17013 # We need space, tab and new line, in precisely that order. Quoting is
17014 # there to prevent editors from complaining about space-tab.
17015 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17016 # splitting by setting IFS to empty value.)
17017 IFS=" "" $as_nl"
17018
17019 # Find who we are. Look in the path if we contain no directory separator.
17020 as_myself=
17021 case $0 in #((
17022 *[\\/]* ) as_myself=$0 ;;
17023 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17024 for as_dir in $PATH
17025 do
17026 IFS=$as_save_IFS
17027 test -z "$as_dir" && as_dir=.
17028 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17029 done
17030 IFS=$as_save_IFS
17031
17032 ;;
17033 esac
17034 # We did not find ourselves, most probably we were run as `sh COMMAND'
17035 # in which case we are not to be found in the path.
17036 if test "x$as_myself" = x; then
17037 as_myself=$0
17038 fi
17039 if test ! -f "$as_myself"; then
17040 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17041 exit 1
17042 fi
17043
17044 # Unset variables that we do not need and which cause bugs (e.g. in
17045 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17046 # suppresses any "Segmentation fault" message there. '((' could
17047 # trigger a bug in pdksh 5.2.14.
17048 for as_var in BASH_ENV ENV MAIL MAILPATH
17049 do eval test x\${$as_var+set} = xset \
17050 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17051 done
17052 PS1='$ '
17053 PS2='> '
17054 PS4='+ '
17055
17056 # NLS nuisances.
17057 LC_ALL=C
17058 export LC_ALL
17059 LANGUAGE=C
17060 export LANGUAGE
17061
17062 # CDPATH.
17063 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17064
17065
17066 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17067 # ----------------------------------------
17068 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17069 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17070 # script with STATUS, using 1 if that was 0.
17071 as_fn_error ()
17072 {
17073 as_status=$1; test $as_status -eq 0 && as_status=1
17074 if test "$4"; then
17075 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17076 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17077 fi
17078 $as_echo "$as_me: error: $2" >&2
17079 as_fn_exit $as_status
17080 } # as_fn_error
17081
17082
17083 # as_fn_set_status STATUS
17084 # -----------------------
17085 # Set $? to STATUS, without forking.
17086 as_fn_set_status ()
17087 {
17088 return $1
17089 } # as_fn_set_status
17090
17091 # as_fn_exit STATUS
17092 # -----------------
17093 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17094 as_fn_exit ()
17095 {
17096 set +e
17097 as_fn_set_status $1
17098 exit $1
17099 } # as_fn_exit
17100
17101 # as_fn_unset VAR
17102 # ---------------
17103 # Portably unset VAR.
17104 as_fn_unset ()
17105 {
17106 { eval $1=; unset $1;}
17107 }
17108 as_unset=as_fn_unset
17109 # as_fn_append VAR VALUE
17110 # ----------------------
17111 # Append the text in VALUE to the end of the definition contained in VAR. Take
17112 # advantage of any shell optimizations that allow amortized linear growth over
17113 # repeated appends, instead of the typical quadratic growth present in naive
17114 # implementations.
17115 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17116 eval 'as_fn_append ()
17117 {
17118 eval $1+=\$2
17119 }'
17120 else
17121 as_fn_append ()
17122 {
17123 eval $1=\$$1\$2
17124 }
17125 fi # as_fn_append
17126
17127 # as_fn_arith ARG...
17128 # ------------------
17129 # Perform arithmetic evaluation on the ARGs, and store the result in the
17130 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17131 # must be portable across $(()) and expr.
17132 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17133 eval 'as_fn_arith ()
17134 {
17135 as_val=$(( $* ))
17136 }'
17137 else
17138 as_fn_arith ()
17139 {
17140 as_val=`expr "$@" || test $? -eq 1`
17141 }
17142 fi # as_fn_arith
17143
17144
17145 if expr a : '\(a\)' >/dev/null 2>&1 &&
17146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17147 as_expr=expr
17148 else
17149 as_expr=false
17150 fi
17151
17152 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17153 as_basename=basename
17154 else
17155 as_basename=false
17156 fi
17157
17158 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17159 as_dirname=dirname
17160 else
17161 as_dirname=false
17162 fi
17163
17164 as_me=`$as_basename -- "$0" ||
17165 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17166 X"$0" : 'X\(//\)$' \| \
17167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17168 $as_echo X/"$0" |
17169 sed '/^.*\/\([^/][^/]*\)\/*$/{
17170 s//\1/
17171 q
17172 }
17173 /^X\/\(\/\/\)$/{
17174 s//\1/
17175 q
17176 }
17177 /^X\/\(\/\).*/{
17178 s//\1/
17179 q
17180 }
17181 s/.*/./; q'`
17182
17183 # Avoid depending upon Character Ranges.
17184 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17185 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17186 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17187 as_cr_digits='0123456789'
17188 as_cr_alnum=$as_cr_Letters$as_cr_digits
17189
17190 ECHO_C= ECHO_N= ECHO_T=
17191 case `echo -n x` in #(((((
17192 -n*)
17193 case `echo 'xy\c'` in
17194 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17195 xy) ECHO_C='\c';;
17196 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17197 ECHO_T=' ';;
17198 esac;;
17199 *)
17200 ECHO_N='-n';;
17201 esac
17202
17203 rm -f conf$$ conf$$.exe conf$$.file
17204 if test -d conf$$.dir; then
17205 rm -f conf$$.dir/conf$$.file
17206 else
17207 rm -f conf$$.dir
17208 mkdir conf$$.dir 2>/dev/null
17209 fi
17210 if (echo >conf$$.file) 2>/dev/null; then
17211 if ln -s conf$$.file conf$$ 2>/dev/null; then
17212 as_ln_s='ln -s'
17213 # ... but there are two gotchas:
17214 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17215 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17216 # In both cases, we have to default to `cp -pR'.
17217 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17218 as_ln_s='cp -pR'
17219 elif ln conf$$.file conf$$ 2>/dev/null; then
17220 as_ln_s=ln
17221 else
17222 as_ln_s='cp -pR'
17223 fi
17224 else
17225 as_ln_s='cp -pR'
17226 fi
17227 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17228 rmdir conf$$.dir 2>/dev/null
17229
17230
17231 # as_fn_mkdir_p
17232 # -------------
17233 # Create "$as_dir" as a directory, including parents if necessary.
17234 as_fn_mkdir_p ()
17235 {
17236
17237 case $as_dir in #(
17238 -*) as_dir=./$as_dir;;
17239 esac
17240 test -d "$as_dir" || eval $as_mkdir_p || {
17241 as_dirs=
17242 while :; do
17243 case $as_dir in #(
17244 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17245 *) as_qdir=$as_dir;;
17246 esac
17247 as_dirs="'$as_qdir' $as_dirs"
17248 as_dir=`$as_dirname -- "$as_dir" ||
17249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17250 X"$as_dir" : 'X\(//\)[^/]' \| \
17251 X"$as_dir" : 'X\(//\)$' \| \
17252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17253 $as_echo X"$as_dir" |
17254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17255 s//\1/
17256 q
17257 }
17258 /^X\(\/\/\)[^/].*/{
17259 s//\1/
17260 q
17261 }
17262 /^X\(\/\/\)$/{
17263 s//\1/
17264 q
17265 }
17266 /^X\(\/\).*/{
17267 s//\1/
17268 q
17269 }
17270 s/.*/./; q'`
17271 test -d "$as_dir" && break
17272 done
17273 test -z "$as_dirs" || eval "mkdir $as_dirs"
17274 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17275
17276
17277 } # as_fn_mkdir_p
17278 if mkdir -p . 2>/dev/null; then
17279 as_mkdir_p='mkdir -p "$as_dir"'
17280 else
17281 test -d ./-p && rmdir ./-p
17282 as_mkdir_p=false
17283 fi
17284
17285
17286 # as_fn_executable_p FILE
17287 # -----------------------
17288 # Test if FILE is an executable regular file.
17289 as_fn_executable_p ()
17290 {
17291 test -f "$1" && test -x "$1"
17292 } # as_fn_executable_p
17293 as_test_x='test -x'
17294 as_executable_p=as_fn_executable_p
17295
17296 # Sed expression to map a string onto a valid CPP name.
17297 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17298
17299 # Sed expression to map a string onto a valid variable name.
17300 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17301
17302
17303 exec 6>&1
17304 ## ----------------------------------- ##
17305 ## Main body of $CONFIG_STATUS script. ##
17306 ## ----------------------------------- ##
17307 _ASEOF
17308 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17309
17310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17311 # Save the log message, to keep $0 and so on meaningful, and to
17312 # report actual input values of CONFIG_FILES etc. instead of their
17313 # values after options handling.
17314 ac_log="
17315 This file was extended by libdc1394 $as_me 2.2.6, which was
17316 generated by GNU Autoconf 2.69. Invocation command line was
17317
17318 CONFIG_FILES = $CONFIG_FILES
17319 CONFIG_HEADERS = $CONFIG_HEADERS
17320 CONFIG_LINKS = $CONFIG_LINKS
17321 CONFIG_COMMANDS = $CONFIG_COMMANDS
17322 $ $0 $@
17323
17324 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17325 "
17326
17327 _ACEOF
17328
17329 case $ac_config_files in *"
17330 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17331 esac
17332
17333 case $ac_config_headers in *"
17334 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17335 esac
17336
17337
17338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17339 # Files that config.status was made for.
17340 config_files="$ac_config_files"
17341 config_headers="$ac_config_headers"
17342 config_commands="$ac_config_commands"
17343
17344 _ACEOF
17345
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17347 ac_cs_usage="\
17348 \`$as_me' instantiates files and other configuration actions
17349 from templates according to the current configuration. Unless the files
17350 and actions are specified as TAGs, all are instantiated by default.
17351
17352 Usage: $0 [OPTION]... [TAG]...
17353
17354 -h, --help print this help, then exit
17355 -V, --version print version number and configuration settings, then exit
17356 --config print configuration, then exit
17357 -q, --quiet, --silent
17358 do not print progress messages
17359 -d, --debug don't remove temporary files
17360 --recheck update $as_me by reconfiguring in the same conditions
17361 --file=FILE[:TEMPLATE]
17362 instantiate the configuration file FILE
17363 --header=FILE[:TEMPLATE]
17364 instantiate the configuration header FILE
17365
17366 Configuration files:
17367 $config_files
17368
17369 Configuration headers:
17370 $config_headers
17371
17372 Configuration commands:
17373 $config_commands
17374
17375 Report bugs to <[email protected]>."
17376
17377 _ACEOF
17378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17379 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17380 ac_cs_version="\\
17381 libdc1394 config.status 2.2.6
17382 configured by $0, generated by GNU Autoconf 2.69,
17383 with options \\"\$ac_cs_config\\"
17384
17385 Copyright (C) 2012 Free Software Foundation, Inc.
17386 This config.status script is free software; the Free Software Foundation
17387 gives unlimited permission to copy, distribute and modify it."
17388
17389 ac_pwd='$ac_pwd'
17390 srcdir='$srcdir'
17391 INSTALL='$INSTALL'
17392 MKDIR_P='$MKDIR_P'
17393 AWK='$AWK'
17394 test -n "\$AWK" || AWK=awk
17395 _ACEOF
17396
17397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17398 # The default lists apply if the user does not specify any file.
17399 ac_need_defaults=:
17400 while test $# != 0
17401 do
17402 case $1 in
17403 --*=?*)
17404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17406 ac_shift=:
17407 ;;
17408 --*=)
17409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17410 ac_optarg=
17411 ac_shift=:
17412 ;;
17413 *)
17414 ac_option=$1
17415 ac_optarg=$2
17416 ac_shift=shift
17417 ;;
17418 esac
17419
17420 case $ac_option in
17421 # Handling of the options.
17422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17423 ac_cs_recheck=: ;;
17424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17425 $as_echo "$ac_cs_version"; exit ;;
17426 --config | --confi | --conf | --con | --co | --c )
17427 $as_echo "$ac_cs_config"; exit ;;
17428 --debug | --debu | --deb | --de | --d | -d )
17429 debug=: ;;
17430 --file | --fil | --fi | --f )
17431 $ac_shift
17432 case $ac_optarg in
17433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17434 '') as_fn_error $? "missing file argument" ;;
17435 esac
17436 as_fn_append CONFIG_FILES " '$ac_optarg'"
17437 ac_need_defaults=false;;
17438 --header | --heade | --head | --hea )
17439 $ac_shift
17440 case $ac_optarg in
17441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17442 esac
17443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17444 ac_need_defaults=false;;
17445 --he | --h)
17446 # Conflict between --help and --header
17447 as_fn_error $? "ambiguous option: \`$1'
17448 Try \`$0 --help' for more information.";;
17449 --help | --hel | -h )
17450 $as_echo "$ac_cs_usage"; exit ;;
17451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17453 ac_cs_silent=: ;;
17454
17455 # This is an error.
17456 -*) as_fn_error $? "unrecognized option: \`$1'
17457 Try \`$0 --help' for more information." ;;
17458
17459 *) as_fn_append ac_config_targets " $1"
17460 ac_need_defaults=false ;;
17461
17462 esac
17463 shift
17464 done
17465
17466 ac_configure_extra_args=
17467
17468 if $ac_cs_silent; then
17469 exec 6>/dev/null
17470 ac_configure_extra_args="$ac_configure_extra_args --silent"
17471 fi
17472
17473 _ACEOF
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 if \$ac_cs_recheck; then
17476 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17477 shift
17478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17479 CONFIG_SHELL='$SHELL'
17480 export CONFIG_SHELL
17481 exec "\$@"
17482 fi
17483
17484 _ACEOF
17485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17486 exec 5>>config.log
17487 {
17488 echo
17489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17490 ## Running $as_me. ##
17491 _ASBOX
17492 $as_echo "$ac_log"
17493 } >&5
17494
17495 _ACEOF
17496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17497 #
17498 # INIT-COMMANDS
17499 #
17500 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17501
17502
17503 # The HP-UX ksh and POSIX shell print the target directory to stdout
17504 # if CDPATH is set.
17505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17506
17507 sed_quote_subst='$sed_quote_subst'
17508 double_quote_subst='$double_quote_subst'
17509 delay_variable_subst='$delay_variable_subst'
17510 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17511 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17512 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17513 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17514 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17515 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17516 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17517 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17518 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17519 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17520 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17521 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17522 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17523 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17524 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17525 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17526 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17527 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17528 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17529 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17530 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17531 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17532 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17533 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17534 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17535 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17536 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17537 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17538 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17539 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17540 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17541 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17542 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17543 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17544 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17545 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17546 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17547 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17548 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17549 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17550 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17551 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17552 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17553 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17554 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17555 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17556 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17557 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17558 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17559 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17560 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17561 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17562 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17563 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17564 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17565 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17566 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17568 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17569 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17570 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17571 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17572 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17573 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17574 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17575 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17576 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17577 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17578 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17579 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17580 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17581 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17582 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17583 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17584 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17585 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17586 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17587 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17588 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17589 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17590 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17591 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17592 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17593 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17594 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17595 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17596 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17597 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17598 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17599 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17600 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17601 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17602 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17603 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17604 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17605 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17606 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17607 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17608 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17609 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17610 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17611 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17612 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17613 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17614 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17615 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17616 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17617 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17618 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17619 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17620 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17621 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17622 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17623 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17624 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17625 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17626 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17627 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17628 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17629 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17630 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17631 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17632 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17633 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17634 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17635 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17636 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17637 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17638 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17639 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17640 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17641
17642 LTCC='$LTCC'
17643 LTCFLAGS='$LTCFLAGS'
17644 compiler='$compiler_DEFAULT'
17645
17646 # A function that is used when there is no print builtin or printf.
17647 func_fallback_echo ()
17648 {
17649 eval 'cat <<_LTECHO_EOF
17650 \$1
17651 _LTECHO_EOF'
17652 }
17653
17654 # Quote evaled strings.
17655 for var in AS \
17656 DLLTOOL \
17657 OBJDUMP \
17658 SHELL \
17659 ECHO \
17660 PATH_SEPARATOR \
17661 SED \
17662 GREP \
17663 EGREP \
17664 FGREP \
17665 LD \
17666 NM \
17667 LN_S \
17668 lt_SP2NL \
17669 lt_NL2SP \
17670 reload_flag \
17671 deplibs_check_method \
17672 file_magic_cmd \
17673 file_magic_glob \
17674 want_nocaseglob \
17675 sharedlib_from_linklib_cmd \
17676 AR \
17677 AR_FLAGS \
17678 archiver_list_spec \
17679 STRIP \
17680 RANLIB \
17681 CC \
17682 CFLAGS \
17683 compiler \
17684 lt_cv_sys_global_symbol_pipe \
17685 lt_cv_sys_global_symbol_to_cdecl \
17686 lt_cv_sys_global_symbol_to_c_name_address \
17687 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17688 nm_file_list_spec \
17689 lt_prog_compiler_no_builtin_flag \
17690 lt_prog_compiler_pic \
17691 lt_prog_compiler_wl \
17692 lt_prog_compiler_static \
17693 lt_cv_prog_compiler_c_o \
17694 need_locks \
17695 MANIFEST_TOOL \
17696 DSYMUTIL \
17697 NMEDIT \
17698 LIPO \
17699 OTOOL \
17700 OTOOL64 \
17701 shrext_cmds \
17702 export_dynamic_flag_spec \
17703 whole_archive_flag_spec \
17704 compiler_needs_object \
17705 with_gnu_ld \
17706 allow_undefined_flag \
17707 no_undefined_flag \
17708 hardcode_libdir_flag_spec \
17709 hardcode_libdir_separator \
17710 exclude_expsyms \
17711 include_expsyms \
17712 file_list_spec \
17713 variables_saved_for_relink \
17714 libname_spec \
17715 library_names_spec \
17716 soname_spec \
17717 install_override_mode \
17718 finish_eval \
17719 old_striplib \
17720 striplib; do
17721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17722 *[\\\\\\\`\\"\\\$]*)
17723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17724 ;;
17725 *)
17726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17727 ;;
17728 esac
17729 done
17730
17731 # Double-quote double-evaled strings.
17732 for var in reload_cmds \
17733 old_postinstall_cmds \
17734 old_postuninstall_cmds \
17735 old_archive_cmds \
17736 extract_expsyms_cmds \
17737 old_archive_from_new_cmds \
17738 old_archive_from_expsyms_cmds \
17739 archive_cmds \
17740 archive_expsym_cmds \
17741 module_cmds \
17742 module_expsym_cmds \
17743 export_symbols_cmds \
17744 prelink_cmds \
17745 postlink_cmds \
17746 postinstall_cmds \
17747 postuninstall_cmds \
17748 finish_cmds \
17749 sys_lib_search_path_spec \
17750 sys_lib_dlsearch_path_spec; do
17751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17752 *[\\\\\\\`\\"\\\$]*)
17753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17754 ;;
17755 *)
17756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17757 ;;
17758 esac
17759 done
17760
17761 ac_aux_dir='$ac_aux_dir'
17762 xsi_shell='$xsi_shell'
17763 lt_shell_append='$lt_shell_append'
17764
17765 # See if we are running on zsh, and set the options which allow our
17766 # commands through without removal of \ escapes INIT.
17767 if test -n "\${ZSH_VERSION+set}" ; then
17768 setopt NO_GLOB_SUBST
17769 fi
17770
17771
17772 PACKAGE='$PACKAGE'
17773 VERSION='$VERSION'
17774 TIMESTAMP='$TIMESTAMP'
17775 RM='$RM'
17776 ofile='$ofile'
17777
17778
17779
17780
17781 _ACEOF
17782
17783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784
17785 # Handling of arguments.
17786 for ac_config_target in $ac_config_targets
17787 do
17788 case $ac_config_target in
17789 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17790 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17791 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17792 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17793 "libdc1394-2.pc") CONFIG_FILES="$CONFIG_FILES libdc1394-2.pc" ;;
17794 "dc1394/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/Makefile" ;;
17795 "dc1394/linux/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/linux/Makefile" ;;
17796 "dc1394/juju/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/juju/Makefile" ;;
17797 "dc1394/macosx/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/macosx/Makefile" ;;
17798 "dc1394/windows/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/windows/Makefile" ;;
17799 "dc1394/usb/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/usb/Makefile" ;;
17800 "dc1394/vendor/Makefile") CONFIG_FILES="$CONFIG_FILES dc1394/vendor/Makefile" ;;
17801 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17802
17803 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17804 esac
17805 done
17806
17807
17808 # If the user did not use the arguments to specify the items to instantiate,
17809 # then the envvar interface is used. Set only those that are not.
17810 # We use the long form for the default assignment because of an extremely
17811 # bizarre bug on SunOS 4.1.3.
17812 if $ac_need_defaults; then
17813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17816 fi
17817
17818 # Have a temporary directory for convenience. Make it in the build tree
17819 # simply because there is no reason against having it here, and in addition,
17820 # creating and moving files from /tmp can sometimes cause problems.
17821 # Hook for its removal unless debugging.
17822 # Note that there is a small window in which the directory will not be cleaned:
17823 # after its creation but before its name has been assigned to `$tmp'.
17824 $debug ||
17825 {
17826 tmp= ac_tmp=
17827 trap 'exit_status=$?
17828 : "${ac_tmp:=$tmp}"
17829 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17830 ' 0
17831 trap 'as_fn_exit 1' 1 2 13 15
17832 }
17833 # Create a (secure) tmp directory for tmp files.
17834
17835 {
17836 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17837 test -d "$tmp"
17838 } ||
17839 {
17840 tmp=./conf$$-$RANDOM
17841 (umask 077 && mkdir "$tmp")
17842 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17843 ac_tmp=$tmp
17844
17845 # Set up the scripts for CONFIG_FILES section.
17846 # No need to generate them if there are no CONFIG_FILES.
17847 # This happens for instance with `./config.status config.h'.
17848 if test -n "$CONFIG_FILES"; then
17849
17850
17851 ac_cr=`echo X | tr X '\015'`
17852 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17853 # But we know of no other shell where ac_cr would be empty at this
17854 # point, so we can use a bashism as a fallback.
17855 if test "x$ac_cr" = x; then
17856 eval ac_cr=\$\'\\r\'
17857 fi
17858 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17859 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17860 ac_cs_awk_cr='\\r'
17861 else
17862 ac_cs_awk_cr=$ac_cr
17863 fi
17864
17865 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17866 _ACEOF
17867
17868
17869 {
17870 echo "cat >conf$$subs.awk <<_ACEOF" &&
17871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17872 echo "_ACEOF"
17873 } >conf$$subs.sh ||
17874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17875 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17876 ac_delim='%!_!# '
17877 for ac_last_try in false false false false false :; do
17878 . ./conf$$subs.sh ||
17879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17880
17881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17882 if test $ac_delim_n = $ac_delim_num; then
17883 break
17884 elif $ac_last_try; then
17885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17886 else
17887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17888 fi
17889 done
17890 rm -f conf$$subs.sh
17891
17892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17893 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17894 _ACEOF
17895 sed -n '
17896 h
17897 s/^/S["/; s/!.*/"]=/
17898 p
17899 g
17900 s/^[^!]*!//
17901 :repl
17902 t repl
17903 s/'"$ac_delim"'$//
17904 t delim
17905 :nl
17906 h
17907 s/\(.\{148\}\)..*/\1/
17908 t more1
17909 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17910 p
17911 n
17912 b repl
17913 :more1
17914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17915 p
17916 g
17917 s/.\{148\}//
17918 t nl
17919 :delim
17920 h
17921 s/\(.\{148\}\)..*/\1/
17922 t more2
17923 s/["\\]/\\&/g; s/^/"/; s/$/"/
17924 p
17925 b
17926 :more2
17927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17928 p
17929 g
17930 s/.\{148\}//
17931 t delim
17932 ' <conf$$subs.awk | sed '
17933 /^[^""]/{
17934 N
17935 s/\n//
17936 }
17937 ' >>$CONFIG_STATUS || ac_write_fail=1
17938 rm -f conf$$subs.awk
17939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17940 _ACAWK
17941 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17942 for (key in S) S_is_set[key] = 1
17943 FS = ""
17944
17945 }
17946 {
17947 line = $ 0
17948 nfields = split(line, field, "@")
17949 substed = 0
17950 len = length(field[1])
17951 for (i = 2; i < nfields; i++) {
17952 key = field[i]
17953 keylen = length(key)
17954 if (S_is_set[key]) {
17955 value = S[key]
17956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17957 len += length(value) + length(field[++i])
17958 substed = 1
17959 } else
17960 len += 1 + keylen
17961 }
17962
17963 print line
17964 }
17965
17966 _ACAWK
17967 _ACEOF
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17971 else
17972 cat
17973 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17974 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17975 _ACEOF
17976
17977 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17978 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17979 # trailing colons and then remove the whole line if VPATH becomes empty
17980 # (actually we leave an empty line to preserve line numbers).
17981 if test "x$srcdir" = x.; then
17982 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17983 h
17984 s///
17985 s/^/:/
17986 s/[ ]*$/:/
17987 s/:\$(srcdir):/:/g
17988 s/:\${srcdir}:/:/g
17989 s/:@srcdir@:/:/g
17990 s/^:*//
17991 s/:*$//
17992 x
17993 s/\(=[ ]*\).*/\1/
17994 G
17995 s/\n//
17996 s/^[^=]*=[ ]*$//
17997 }'
17998 fi
17999
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001 fi # test -n "$CONFIG_FILES"
18002
18003 # Set up the scripts for CONFIG_HEADERS section.
18004 # No need to generate them if there are no CONFIG_HEADERS.
18005 # This happens for instance with `./config.status Makefile'.
18006 if test -n "$CONFIG_HEADERS"; then
18007 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18008 BEGIN {
18009 _ACEOF
18010
18011 # Transform confdefs.h into an awk script `defines.awk', embedded as
18012 # here-document in config.status, that substitutes the proper values into
18013 # config.h.in to produce config.h.
18014
18015 # Create a delimiter string that does not exist in confdefs.h, to ease
18016 # handling of long lines.
18017 ac_delim='%!_!# '
18018 for ac_last_try in false false :; do
18019 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18020 if test -z "$ac_tt"; then
18021 break
18022 elif $ac_last_try; then
18023 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18024 else
18025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18026 fi
18027 done
18028
18029 # For the awk script, D is an array of macro values keyed by name,
18030 # likewise P contains macro parameters if any. Preserve backslash
18031 # newline sequences.
18032
18033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18034 sed -n '
18035 s/.\{148\}/&'"$ac_delim"'/g
18036 t rset
18037 :rset
18038 s/^[ ]*#[ ]*define[ ][ ]*/ /
18039 t def
18040 d
18041 :def
18042 s/\\$//
18043 t bsnl
18044 s/["\\]/\\&/g
18045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18046 D["\1"]=" \3"/p
18047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18048 d
18049 :bsnl
18050 s/["\\]/\\&/g
18051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18052 D["\1"]=" \3\\\\\\n"\\/p
18053 t cont
18054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18055 t cont
18056 d
18057 :cont
18058 n
18059 s/.\{148\}/&'"$ac_delim"'/g
18060 t clear
18061 :clear
18062 s/\\$//
18063 t bsnlc
18064 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18065 d
18066 :bsnlc
18067 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18068 b cont
18069 ' <confdefs.h | sed '
18070 s/'"$ac_delim"'/"\\\
18071 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18072
18073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18074 for (key in D) D_is_set[key] = 1
18075 FS = ""
18076 }
18077 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18078 line = \$ 0
18079 split(line, arg, " ")
18080 if (arg[1] == "#") {
18081 defundef = arg[2]
18082 mac1 = arg[3]
18083 } else {
18084 defundef = substr(arg[1], 2)
18085 mac1 = arg[2]
18086 }
18087 split(mac1, mac2, "(") #)
18088 macro = mac2[1]
18089 prefix = substr(line, 1, index(line, defundef) - 1)
18090 if (D_is_set[macro]) {
18091 # Preserve the white space surrounding the "#".
18092 print prefix "define", macro P[macro] D[macro]
18093 next
18094 } else {
18095 # Replace #undef with comments. This is necessary, for example,
18096 # in the case of _POSIX_SOURCE, which is predefined and required
18097 # on some systems where configure will not decide to define it.
18098 if (defundef == "undef") {
18099 print "/*", prefix defundef, macro, "*/"
18100 next
18101 }
18102 }
18103 }
18104 { print }
18105 _ACAWK
18106 _ACEOF
18107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18108 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18109 fi # test -n "$CONFIG_HEADERS"
18110
18111
18112 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18113 shift
18114 for ac_tag
18115 do
18116 case $ac_tag in
18117 :[FHLC]) ac_mode=$ac_tag; continue;;
18118 esac
18119 case $ac_mode$ac_tag in
18120 :[FHL]*:*);;
18121 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18122 :[FH]-) ac_tag=-:-;;
18123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18124 esac
18125 ac_save_IFS=$IFS
18126 IFS=:
18127 set x $ac_tag
18128 IFS=$ac_save_IFS
18129 shift
18130 ac_file=$1
18131 shift
18132
18133 case $ac_mode in
18134 :L) ac_source=$1;;
18135 :[FH])
18136 ac_file_inputs=
18137 for ac_f
18138 do
18139 case $ac_f in
18140 -) ac_f="$ac_tmp/stdin";;
18141 *) # Look for the file first in the build tree, then in the source tree
18142 # (if the path is not absolute). The absolute path cannot be DOS-style,
18143 # because $ac_f cannot contain `:'.
18144 test -f "$ac_f" ||
18145 case $ac_f in
18146 [\\/$]*) false;;
18147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18148 esac ||
18149 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18150 esac
18151 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18152 as_fn_append ac_file_inputs " '$ac_f'"
18153 done
18154
18155 # Let's still pretend it is `configure' which instantiates (i.e., don't
18156 # use $as_me), people would be surprised to read:
18157 # /* config.h. Generated by config.status. */
18158 configure_input='Generated from '`
18159 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18160 `' by configure.'
18161 if test x"$ac_file" != x-; then
18162 configure_input="$ac_file. $configure_input"
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18164 $as_echo "$as_me: creating $ac_file" >&6;}
18165 fi
18166 # Neutralize special characters interpreted by sed in replacement strings.
18167 case $configure_input in #(
18168 *\&* | *\|* | *\\* )
18169 ac_sed_conf_input=`$as_echo "$configure_input" |
18170 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18171 *) ac_sed_conf_input=$configure_input;;
18172 esac
18173
18174 case $ac_tag in
18175 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18177 esac
18178 ;;
18179 esac
18180
18181 ac_dir=`$as_dirname -- "$ac_file" ||
18182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18183 X"$ac_file" : 'X\(//\)[^/]' \| \
18184 X"$ac_file" : 'X\(//\)$' \| \
18185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18186 $as_echo X"$ac_file" |
18187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18188 s//\1/
18189 q
18190 }
18191 /^X\(\/\/\)[^/].*/{
18192 s//\1/
18193 q
18194 }
18195 /^X\(\/\/\)$/{
18196 s//\1/
18197 q
18198 }
18199 /^X\(\/\).*/{
18200 s//\1/
18201 q
18202 }
18203 s/.*/./; q'`
18204 as_dir="$ac_dir"; as_fn_mkdir_p
18205 ac_builddir=.
18206
18207 case "$ac_dir" in
18208 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18209 *)
18210 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18211 # A ".." for each directory in $ac_dir_suffix.
18212 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18213 case $ac_top_builddir_sub in
18214 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18215 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18216 esac ;;
18217 esac
18218 ac_abs_top_builddir=$ac_pwd
18219 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18220 # for backward compatibility:
18221 ac_top_builddir=$ac_top_build_prefix
18222
18223 case $srcdir in
18224 .) # We are building in place.
18225 ac_srcdir=.
18226 ac_top_srcdir=$ac_top_builddir_sub
18227 ac_abs_top_srcdir=$ac_pwd ;;
18228 [\\/]* | ?:[\\/]* ) # Absolute name.
18229 ac_srcdir=$srcdir$ac_dir_suffix;
18230 ac_top_srcdir=$srcdir
18231 ac_abs_top_srcdir=$srcdir ;;
18232 *) # Relative name.
18233 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18234 ac_top_srcdir=$ac_top_build_prefix$srcdir
18235 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18236 esac
18237 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18238
18239
18240 case $ac_mode in
18241 :F)
18242 #
18243 # CONFIG_FILE
18244 #
18245
18246 case $INSTALL in
18247 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18248 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18249 esac
18250 ac_MKDIR_P=$MKDIR_P
18251 case $MKDIR_P in
18252 [\\/$]* | ?:[\\/]* ) ;;
18253 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18254 esac
18255 _ACEOF
18256
18257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18258 # If the template does not know about datarootdir, expand it.
18259 # FIXME: This hack should be removed a few years after 2.60.
18260 ac_datarootdir_hack=; ac_datarootdir_seen=
18261 ac_sed_dataroot='
18262 /datarootdir/ {
18263 p
18264 q
18265 }
18266 /@datadir@/p
18267 /@docdir@/p
18268 /@infodir@/p
18269 /@localedir@/p
18270 /@mandir@/p'
18271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18272 *datarootdir*) ac_datarootdir_seen=yes;;
18273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18276 _ACEOF
18277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18278 ac_datarootdir_hack='
18279 s&@datadir@&$datadir&g
18280 s&@docdir@&$docdir&g
18281 s&@infodir@&$infodir&g
18282 s&@localedir@&$localedir&g
18283 s&@mandir@&$mandir&g
18284 s&\\\${datarootdir}&$datarootdir&g' ;;
18285 esac
18286 _ACEOF
18287
18288 # Neutralize VPATH when `$srcdir' = `.'.
18289 # Shell code in configure.ac might set extrasub.
18290 # FIXME: do we really want to maintain this feature?
18291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18292 ac_sed_extra="$ac_vpsub
18293 $extrasub
18294 _ACEOF
18295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18296 :t
18297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18298 s|@configure_input@|$ac_sed_conf_input|;t t
18299 s&@top_builddir@&$ac_top_builddir_sub&;t t
18300 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18301 s&@srcdir@&$ac_srcdir&;t t
18302 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18303 s&@top_srcdir@&$ac_top_srcdir&;t t
18304 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18305 s&@builddir@&$ac_builddir&;t t
18306 s&@abs_builddir@&$ac_abs_builddir&;t t
18307 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18308 s&@INSTALL@&$ac_INSTALL&;t t
18309 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18310 $ac_datarootdir_hack
18311 "
18312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18313 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18314
18315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18318 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18320 which seems to be undefined. Please make sure it is defined" >&5
18321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18322 which seems to be undefined. Please make sure it is defined" >&2;}
18323
18324 rm -f "$ac_tmp/stdin"
18325 case $ac_file in
18326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18328 esac \
18329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18330 ;;
18331 :H)
18332 #
18333 # CONFIG_HEADER
18334 #
18335 if test x"$ac_file" != x-; then
18336 {
18337 $as_echo "/* $configure_input */" \
18338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18339 } >"$ac_tmp/config.h" \
18340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18343 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18344 else
18345 rm -f "$ac_file"
18346 mv "$ac_tmp/config.h" "$ac_file" \
18347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18348 fi
18349 else
18350 $as_echo "/* $configure_input */" \
18351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18352 || as_fn_error $? "could not create -" "$LINENO" 5
18353 fi
18354 # Compute "$ac_file"'s index in $config_headers.
18355 _am_arg="$ac_file"
18356 _am_stamp_count=1
18357 for _am_header in $config_headers :; do
18358 case $_am_header in
18359 $_am_arg | $_am_arg:* )
18360 break ;;
18361 * )
18362 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18363 esac
18364 done
18365 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18366 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18367 X"$_am_arg" : 'X\(//\)[^/]' \| \
18368 X"$_am_arg" : 'X\(//\)$' \| \
18369 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18370 $as_echo X"$_am_arg" |
18371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18372 s//\1/
18373 q
18374 }
18375 /^X\(\/\/\)[^/].*/{
18376 s//\1/
18377 q
18378 }
18379 /^X\(\/\/\)$/{
18380 s//\1/
18381 q
18382 }
18383 /^X\(\/\).*/{
18384 s//\1/
18385 q
18386 }
18387 s/.*/./; q'`/stamp-h$_am_stamp_count
18388 ;;
18389
18390 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18391 $as_echo "$as_me: executing $ac_file commands" >&6;}
18392 ;;
18393 esac
18394
18395
18396 case $ac_file$ac_mode in
18397 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18398 # Older Autoconf quotes --file arguments for eval, but not when files
18399 # are listed without --file. Let's play safe and only enable the eval
18400 # if we detect the quoting.
18401 case $CONFIG_FILES in
18402 *\'*) eval set x "$CONFIG_FILES" ;;
18403 *) set x $CONFIG_FILES ;;
18404 esac
18405 shift
18406 for mf
18407 do
18408 # Strip MF so we end up with the name of the file.
18409 mf=`echo "$mf" | sed -e 's/:.*$//'`
18410 # Check whether this is an Automake generated Makefile or not.
18411 # We used to match only the files named 'Makefile.in', but
18412 # some people rename them; so instead we look at the file content.
18413 # Grep'ing the first line is not enough: some people post-process
18414 # each Makefile.in and add a new line on top of each file to say so.
18415 # Grep'ing the whole file is not good either: AIX grep has a line
18416 # limit of 2048, but all sed's we know have understand at least 4000.
18417 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18418 dirpart=`$as_dirname -- "$mf" ||
18419 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18420 X"$mf" : 'X\(//\)[^/]' \| \
18421 X"$mf" : 'X\(//\)$' \| \
18422 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18423 $as_echo X"$mf" |
18424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18425 s//\1/
18426 q
18427 }
18428 /^X\(\/\/\)[^/].*/{
18429 s//\1/
18430 q
18431 }
18432 /^X\(\/\/\)$/{
18433 s//\1/
18434 q
18435 }
18436 /^X\(\/\).*/{
18437 s//\1/
18438 q
18439 }
18440 s/.*/./; q'`
18441 else
18442 continue
18443 fi
18444 # Extract the definition of DEPDIR, am__include, and am__quote
18445 # from the Makefile without running 'make'.
18446 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18447 test -z "$DEPDIR" && continue
18448 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18449 test -z "$am__include" && continue
18450 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18451 # Find all dependency output files, they are included files with
18452 # $(DEPDIR) in their names. We invoke sed twice because it is the
18453 # simplest approach to changing $(DEPDIR) to its actual value in the
18454 # expansion.
18455 for file in `sed -n "
18456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18458 # Make sure the directory exists.
18459 test -f "$dirpart/$file" && continue
18460 fdir=`$as_dirname -- "$file" ||
18461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462 X"$file" : 'X\(//\)[^/]' \| \
18463 X"$file" : 'X\(//\)$' \| \
18464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18465 $as_echo X"$file" |
18466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18467 s//\1/
18468 q
18469 }
18470 /^X\(\/\/\)[^/].*/{
18471 s//\1/
18472 q
18473 }
18474 /^X\(\/\/\)$/{
18475 s//\1/
18476 q
18477 }
18478 /^X\(\/\).*/{
18479 s//\1/
18480 q
18481 }
18482 s/.*/./; q'`
18483 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18484 # echo "creating $dirpart/$file"
18485 echo '# dummy' > "$dirpart/$file"
18486 done
18487 done
18488 }
18489 ;;
18490 "libtool":C)
18491
18492 # See if we are running on zsh, and set the options which allow our
18493 # commands through without removal of \ escapes.
18494 if test -n "${ZSH_VERSION+set}" ; then
18495 setopt NO_GLOB_SUBST
18496 fi
18497
18498 cfgfile="${ofile}T"
18499 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18500 $RM "$cfgfile"
18501
18502 cat <<_LT_EOF >> "$cfgfile"
18503 #! $SHELL
18504
18505 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18506 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18507 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18508 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18509 #
18510 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18511 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18512 # Foundation, Inc.
18513 # Written by Gordon Matzigkeit, 1996
18514 #
18515 # This file is part of GNU Libtool.
18516 #
18517 # GNU Libtool is free software; you can redistribute it and/or
18518 # modify it under the terms of the GNU General Public License as
18519 # published by the Free Software Foundation; either version 2 of
18520 # the License, or (at your option) any later version.
18521 #
18522 # As a special exception to the GNU General Public License,
18523 # if you distribute this file as part of a program or library that
18524 # is built using GNU Libtool, you may include this file under the
18525 # same distribution terms that you use for the rest of that program.
18526 #
18527 # GNU Libtool is distributed in the hope that it will be useful,
18528 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18529 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18530 # GNU General Public License for more details.
18531 #
18532 # You should have received a copy of the GNU General Public License
18533 # along with GNU Libtool; see the file COPYING. If not, a copy
18534 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18535 # obtained by writing to the Free Software Foundation, Inc.,
18536 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18537
18538
18539 # The names of the tagged configurations supported by this script.
18540 available_tags=""
18541
18542 # ### BEGIN LIBTOOL CONFIG
18543
18544 # Assembler program.
18545 AS=$lt_AS
18546
18547 # DLL creation program.
18548 DLLTOOL=$lt_DLLTOOL
18549
18550 # Object dumper program.
18551 OBJDUMP=$lt_OBJDUMP
18552
18553 # Which release of libtool.m4 was used?
18554 macro_version=$macro_version
18555 macro_revision=$macro_revision
18556
18557 # Whether or not to build shared libraries.
18558 build_libtool_libs=$enable_shared
18559
18560 # Whether or not to build static libraries.
18561 build_old_libs=$enable_static
18562
18563 # What type of objects to build.
18564 pic_mode=$pic_mode
18565
18566 # Whether or not to optimize for fast installation.
18567 fast_install=$enable_fast_install
18568
18569 # Shell to use when invoking shell scripts.
18570 SHELL=$lt_SHELL
18571
18572 # An echo program that protects backslashes.
18573 ECHO=$lt_ECHO
18574
18575 # The PATH separator for the build system.
18576 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18577
18578 # The host system.
18579 host_alias=$host_alias
18580 host=$host
18581 host_os=$host_os
18582
18583 # The build system.
18584 build_alias=$build_alias
18585 build=$build
18586 build_os=$build_os
18587
18588 # A sed program that does not truncate output.
18589 SED=$lt_SED
18590
18591 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18592 Xsed="\$SED -e 1s/^X//"
18593
18594 # A grep program that handles long lines.
18595 GREP=$lt_GREP
18596
18597 # An ERE matcher.
18598 EGREP=$lt_EGREP
18599
18600 # A literal string matcher.
18601 FGREP=$lt_FGREP
18602
18603 # A BSD- or MS-compatible name lister.
18604 NM=$lt_NM
18605
18606 # Whether we need soft or hard links.
18607 LN_S=$lt_LN_S
18608
18609 # What is the maximum length of a command?
18610 max_cmd_len=$max_cmd_len
18611
18612 # Object file suffix (normally "o").
18613 objext=$ac_objext
18614
18615 # Executable file suffix (normally "").
18616 exeext=$exeext
18617
18618 # whether the shell understands "unset".
18619 lt_unset=$lt_unset
18620
18621 # turn spaces into newlines.
18622 SP2NL=$lt_lt_SP2NL
18623
18624 # turn newlines into spaces.
18625 NL2SP=$lt_lt_NL2SP
18626
18627 # convert \$build file names to \$host format.
18628 to_host_file_cmd=$lt_cv_to_host_file_cmd
18629
18630 # convert \$build files to toolchain format.
18631 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18632
18633 # Method to check whether dependent libraries are shared objects.
18634 deplibs_check_method=$lt_deplibs_check_method
18635
18636 # Command to use when deplibs_check_method = "file_magic".
18637 file_magic_cmd=$lt_file_magic_cmd
18638
18639 # How to find potential files when deplibs_check_method = "file_magic".
18640 file_magic_glob=$lt_file_magic_glob
18641
18642 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18643 want_nocaseglob=$lt_want_nocaseglob
18644
18645 # Command to associate shared and link libraries.
18646 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18647
18648 # The archiver.
18649 AR=$lt_AR
18650
18651 # Flags to create an archive.
18652 AR_FLAGS=$lt_AR_FLAGS
18653
18654 # How to feed a file listing to the archiver.
18655 archiver_list_spec=$lt_archiver_list_spec
18656
18657 # A symbol stripping program.
18658 STRIP=$lt_STRIP
18659
18660 # Commands used to install an old-style archive.
18661 RANLIB=$lt_RANLIB
18662 old_postinstall_cmds=$lt_old_postinstall_cmds
18663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665 # Whether to use a lock for old archive extraction.
18666 lock_old_archive_extraction=$lock_old_archive_extraction
18667
18668 # A C compiler.
18669 LTCC=$lt_CC
18670
18671 # LTCC compiler flags.
18672 LTCFLAGS=$lt_CFLAGS
18673
18674 # Take the output of nm and produce a listing of raw symbols and C names.
18675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18676
18677 # Transform the output of nm in a proper C declaration.
18678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18679
18680 # Transform the output of nm in a C name address pair.
18681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18682
18683 # Transform the output of nm in a C name address pair when lib prefix is needed.
18684 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18685
18686 # Specify filename containing input files for \$NM.
18687 nm_file_list_spec=$lt_nm_file_list_spec
18688
18689 # The root where to search for dependent libraries,and in which our libraries should be installed.
18690 lt_sysroot=$lt_sysroot
18691
18692 # The name of the directory that contains temporary libtool files.
18693 objdir=$objdir
18694
18695 # Used to examine libraries when file_magic_cmd begins with "file".
18696 MAGIC_CMD=$MAGIC_CMD
18697
18698 # Must we lock files when doing compilation?
18699 need_locks=$lt_need_locks
18700
18701 # Manifest tool.
18702 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18703
18704 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18705 DSYMUTIL=$lt_DSYMUTIL
18706
18707 # Tool to change global to local symbols on Mac OS X.
18708 NMEDIT=$lt_NMEDIT
18709
18710 # Tool to manipulate fat objects and archives on Mac OS X.
18711 LIPO=$lt_LIPO
18712
18713 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18714 OTOOL=$lt_OTOOL
18715
18716 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18717 OTOOL64=$lt_OTOOL64
18718
18719 # Old archive suffix (normally "a").
18720 libext=$libext
18721
18722 # Shared library suffix (normally ".so").
18723 shrext_cmds=$lt_shrext_cmds
18724
18725 # The commands to extract the exported symbol list from a shared archive.
18726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18727
18728 # Variables whose values should be saved in libtool wrapper scripts and
18729 # restored at link time.
18730 variables_saved_for_relink=$lt_variables_saved_for_relink
18731
18732 # Do we need the "lib" prefix for modules?
18733 need_lib_prefix=$need_lib_prefix
18734
18735 # Do we need a version for libraries?
18736 need_version=$need_version
18737
18738 # Library versioning type.
18739 version_type=$version_type
18740
18741 # Shared library runtime path variable.
18742 runpath_var=$runpath_var
18743
18744 # Shared library path variable.
18745 shlibpath_var=$shlibpath_var
18746
18747 # Is shlibpath searched before the hard-coded library search path?
18748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18749
18750 # Format of library name prefix.
18751 libname_spec=$lt_libname_spec
18752
18753 # List of archive names. First name is the real one, the rest are links.
18754 # The last name is the one that the linker finds with -lNAME
18755 library_names_spec=$lt_library_names_spec
18756
18757 # The coded name of the library, if different from the real name.
18758 soname_spec=$lt_soname_spec
18759
18760 # Permission mode override for installation of shared libraries.
18761 install_override_mode=$lt_install_override_mode
18762
18763 # Command to use after installation of a shared archive.
18764 postinstall_cmds=$lt_postinstall_cmds
18765
18766 # Command to use after uninstallation of a shared archive.
18767 postuninstall_cmds=$lt_postuninstall_cmds
18768
18769 # Commands used to finish a libtool library installation in a directory.
18770 finish_cmds=$lt_finish_cmds
18771
18772 # As "finish_cmds", except a single script fragment to be evaled but
18773 # not shown.
18774 finish_eval=$lt_finish_eval
18775
18776 # Whether we should hardcode library paths into libraries.
18777 hardcode_into_libs=$hardcode_into_libs
18778
18779 # Compile-time system search path for libraries.
18780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18781
18782 # Run-time system search path for libraries.
18783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18784
18785 # Whether dlopen is supported.
18786 dlopen_support=$enable_dlopen
18787
18788 # Whether dlopen of programs is supported.
18789 dlopen_self=$enable_dlopen_self
18790
18791 # Whether dlopen of statically linked programs is supported.
18792 dlopen_self_static=$enable_dlopen_self_static
18793
18794 # Commands to strip libraries.
18795 old_striplib=$lt_old_striplib
18796 striplib=$lt_striplib
18797
18798
18799 # The linker used to build libraries.
18800 LD=$lt_LD
18801
18802 # How to create reloadable object files.
18803 reload_flag=$lt_reload_flag
18804 reload_cmds=$lt_reload_cmds
18805
18806 # Commands used to build an old-style archive.
18807 old_archive_cmds=$lt_old_archive_cmds
18808
18809 # A language specific compiler.
18810 CC=$lt_compiler
18811
18812 # Is the compiler the GNU compiler?
18813 with_gcc=$GCC
18814
18815 # Compiler flag to turn off builtin functions.
18816 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18817
18818 # Additional compiler flags for building library objects.
18819 pic_flag=$lt_lt_prog_compiler_pic
18820
18821 # How to pass a linker flag through the compiler.
18822 wl=$lt_lt_prog_compiler_wl
18823
18824 # Compiler flag to prevent dynamic linking.
18825 link_static_flag=$lt_lt_prog_compiler_static
18826
18827 # Does compiler simultaneously support -c and -o options?
18828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18829
18830 # Whether or not to add -lc for building shared libraries.
18831 build_libtool_need_lc=$archive_cmds_need_lc
18832
18833 # Whether or not to disallow shared libs when runtime libs are static.
18834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18835
18836 # Compiler flag to allow reflexive dlopens.
18837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18838
18839 # Compiler flag to generate shared objects directly from archives.
18840 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18841
18842 # Whether the compiler copes with passing no objects directly.
18843 compiler_needs_object=$lt_compiler_needs_object
18844
18845 # Create an old-style archive from a shared archive.
18846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18847
18848 # Create a temporary old-style archive to link instead of a shared archive.
18849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18850
18851 # Commands used to build a shared archive.
18852 archive_cmds=$lt_archive_cmds
18853 archive_expsym_cmds=$lt_archive_expsym_cmds
18854
18855 # Commands used to build a loadable module if different from building
18856 # a shared archive.
18857 module_cmds=$lt_module_cmds
18858 module_expsym_cmds=$lt_module_expsym_cmds
18859
18860 # Whether we are building with GNU ld or not.
18861 with_gnu_ld=$lt_with_gnu_ld
18862
18863 # Flag that allows shared libraries with undefined symbols to be built.
18864 allow_undefined_flag=$lt_allow_undefined_flag
18865
18866 # Flag that enforces no undefined symbols.
18867 no_undefined_flag=$lt_no_undefined_flag
18868
18869 # Flag to hardcode \$libdir into a binary during linking.
18870 # This must work even if \$libdir does not exist
18871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18872
18873 # Whether we need a single "-rpath" flag with a separated argument.
18874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18875
18876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18877 # DIR into the resulting binary.
18878 hardcode_direct=$hardcode_direct
18879
18880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18881 # DIR into the resulting binary and the resulting library dependency is
18882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18883 # library is relocated.
18884 hardcode_direct_absolute=$hardcode_direct_absolute
18885
18886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18887 # into the resulting binary.
18888 hardcode_minus_L=$hardcode_minus_L
18889
18890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18891 # into the resulting binary.
18892 hardcode_shlibpath_var=$hardcode_shlibpath_var
18893
18894 # Set to "yes" if building a shared library automatically hardcodes DIR
18895 # into the library and all subsequent libraries and executables linked
18896 # against it.
18897 hardcode_automatic=$hardcode_automatic
18898
18899 # Set to yes if linker adds runtime paths of dependent libraries
18900 # to runtime path list.
18901 inherit_rpath=$inherit_rpath
18902
18903 # Whether libtool must link a program against all its dependency libraries.
18904 link_all_deplibs=$link_all_deplibs
18905
18906 # Set to "yes" if exported symbols are required.
18907 always_export_symbols=$always_export_symbols
18908
18909 # The commands to list exported symbols.
18910 export_symbols_cmds=$lt_export_symbols_cmds
18911
18912 # Symbols that should not be listed in the preloaded symbols.
18913 exclude_expsyms=$lt_exclude_expsyms
18914
18915 # Symbols that must always be exported.
18916 include_expsyms=$lt_include_expsyms
18917
18918 # Commands necessary for linking programs (against libraries) with templates.
18919 prelink_cmds=$lt_prelink_cmds
18920
18921 # Commands necessary for finishing linking programs.
18922 postlink_cmds=$lt_postlink_cmds
18923
18924 # Specify filename containing input files.
18925 file_list_spec=$lt_file_list_spec
18926
18927 # How to hardcode a shared library path into an executable.
18928 hardcode_action=$hardcode_action
18929
18930 # ### END LIBTOOL CONFIG
18931
18932 _LT_EOF
18933
18934 case $host_os in
18935 aix3*)
18936 cat <<\_LT_EOF >> "$cfgfile"
18937 # AIX sometimes has problems with the GCC collect2 program. For some
18938 # reason, if we set the COLLECT_NAMES environment variable, the problems
18939 # vanish in a puff of smoke.
18940 if test "X${COLLECT_NAMES+set}" != Xset; then
18941 COLLECT_NAMES=
18942 export COLLECT_NAMES
18943 fi
18944 _LT_EOF
18945 ;;
18946 esac
18947
18948
18949 ltmain="$ac_aux_dir/ltmain.sh"
18950
18951
18952 # We use sed instead of cat because bash on DJGPP gets confused if
18953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18954 # text mode, it properly converts lines to CR/LF. This bash problem
18955 # is reportedly fixed, but why not run on old versions too?
18956 sed '$q' "$ltmain" >> "$cfgfile" \
18957 || (rm -f "$cfgfile"; exit 1)
18958
18959 if test x"$xsi_shell" = xyes; then
18960 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18961 func_dirname ()\
18962 {\
18963 \ case ${1} in\
18964 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18965 \ * ) func_dirname_result="${3}" ;;\
18966 \ esac\
18967 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18968 && mv -f "$cfgfile.tmp" "$cfgfile" \
18969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18970 test 0 -eq $? || _lt_function_replace_fail=:
18971
18972
18973 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18974 func_basename ()\
18975 {\
18976 \ func_basename_result="${1##*/}"\
18977 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18978 && mv -f "$cfgfile.tmp" "$cfgfile" \
18979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18980 test 0 -eq $? || _lt_function_replace_fail=:
18981
18982
18983 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18984 func_dirname_and_basename ()\
18985 {\
18986 \ case ${1} in\
18987 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18988 \ * ) func_dirname_result="${3}" ;;\
18989 \ esac\
18990 \ func_basename_result="${1##*/}"\
18991 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18992 && mv -f "$cfgfile.tmp" "$cfgfile" \
18993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18994 test 0 -eq $? || _lt_function_replace_fail=:
18995
18996
18997 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18998 func_stripname ()\
18999 {\
19000 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19001 \ # positional parameters, so assign one to ordinary parameter first.\
19002 \ func_stripname_result=${3}\
19003 \ func_stripname_result=${func_stripname_result#"${1}"}\
19004 \ func_stripname_result=${func_stripname_result%"${2}"}\
19005 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19006 && mv -f "$cfgfile.tmp" "$cfgfile" \
19007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19008 test 0 -eq $? || _lt_function_replace_fail=:
19009
19010
19011 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19012 func_split_long_opt ()\
19013 {\
19014 \ func_split_long_opt_name=${1%%=*}\
19015 \ func_split_long_opt_arg=${1#*=}\
19016 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19017 && mv -f "$cfgfile.tmp" "$cfgfile" \
19018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19019 test 0 -eq $? || _lt_function_replace_fail=:
19020
19021
19022 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19023 func_split_short_opt ()\
19024 {\
19025 \ func_split_short_opt_arg=${1#??}\
19026 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19027 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19028 && mv -f "$cfgfile.tmp" "$cfgfile" \
19029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19030 test 0 -eq $? || _lt_function_replace_fail=:
19031
19032
19033 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19034 func_lo2o ()\
19035 {\
19036 \ case ${1} in\
19037 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19038 \ *) func_lo2o_result=${1} ;;\
19039 \ esac\
19040 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19041 && mv -f "$cfgfile.tmp" "$cfgfile" \
19042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19043 test 0 -eq $? || _lt_function_replace_fail=:
19044
19045
19046 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19047 func_xform ()\
19048 {\
19049 func_xform_result=${1%.*}.lo\
19050 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19051 && mv -f "$cfgfile.tmp" "$cfgfile" \
19052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19053 test 0 -eq $? || _lt_function_replace_fail=:
19054
19055
19056 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19057 func_arith ()\
19058 {\
19059 func_arith_result=$(( $* ))\
19060 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19061 && mv -f "$cfgfile.tmp" "$cfgfile" \
19062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19063 test 0 -eq $? || _lt_function_replace_fail=:
19064
19065
19066 sed -e '/^func_len ()$/,/^} # func_len /c\
19067 func_len ()\
19068 {\
19069 func_len_result=${#1}\
19070 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19071 && mv -f "$cfgfile.tmp" "$cfgfile" \
19072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19073 test 0 -eq $? || _lt_function_replace_fail=:
19074
19075 fi
19076
19077 if test x"$lt_shell_append" = xyes; then
19078 sed -e '/^func_append ()$/,/^} # func_append /c\
19079 func_append ()\
19080 {\
19081 eval "${1}+=\\${2}"\
19082 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19083 && mv -f "$cfgfile.tmp" "$cfgfile" \
19084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19085 test 0 -eq $? || _lt_function_replace_fail=:
19086
19087
19088 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19089 func_append_quoted ()\
19090 {\
19091 \ func_quote_for_eval "${2}"\
19092 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19093 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19094 && mv -f "$cfgfile.tmp" "$cfgfile" \
19095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19096 test 0 -eq $? || _lt_function_replace_fail=:
19097
19098
19099 # Save a `func_append' function call where possible by direct use of '+='
19100 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19101 && mv -f "$cfgfile.tmp" "$cfgfile" \
19102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19103 test 0 -eq $? || _lt_function_replace_fail=:
19104 else
19105 # Save a `func_append' function call even when '+=' is not available
19106 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19107 && mv -f "$cfgfile.tmp" "$cfgfile" \
19108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19109 test 0 -eq $? || _lt_function_replace_fail=:
19110 fi
19111
19112 if test x"$_lt_function_replace_fail" = x":"; then
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19114 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19115 fi
19116
19117
19118 mv -f "$cfgfile" "$ofile" ||
19119 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19120 chmod +x "$ofile"
19121
19122 ;;
19123
19124 esac
19125 done # for ac_tag
19126
19127
19128 as_fn_exit 0
19129 _ACEOF
19130 ac_clean_files=$ac_clean_files_save
19131
19132 test $ac_write_fail = 0 ||
19133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19134
19135
19136 # configure is writing to config.log, and then calls config.status.
19137 # config.status does its own redirection, appending to config.log.
19138 # Unfortunately, on DOS this fails, as config.log is still kept open
19139 # by configure, so config.status won't be able to write to it; its
19140 # output is simply discarded. So we exec the FD to /dev/null,
19141 # effectively closing config.log, so it can be properly (re)opened and
19142 # appended to by config.status. When coming back to configure, we
19143 # need to make the FD available again.
19144 if test "$no_create" != yes; then
19145 ac_cs_success=:
19146 ac_config_status_args=
19147 test "$silent" = yes &&
19148 ac_config_status_args="$ac_config_status_args --quiet"
19149 exec 5>/dev/null
19150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19151 exec 5>>config.log
19152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19153 # would make configure fail if this is the last instruction.
19154 $ac_cs_success || as_fn_exit 1
19155 fi
19156 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19158 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19159 fi
19160
19161
19162 LINUXMSG="Disabled (Linux not detected)"
19163 RAW1394MSG="Disabled (libraw1394 not found)"
19164 MACOSXMSG="Disabled (Mac OS not detected)"
19165 WINDOWSMSG="Disabled (Windows not detected)"
19166 USBMSG="Disabled (libusb-1.0 not found)"
19167
19168 if test x$have_linux = xtrue; then
19169 if test x$libraw1394 = xtrue; then
19170 RAW1394MSG="Enabled"
19171 fi
19172 LINUXMSG="Enabled"
19173 fi
19174
19175 if test x$have_macosx = xtrue; then
19176 MACOSXMSG="Enabled"
19177 fi
19178
19179 if test x$have_windows = xtrue; then
19180 WINDOWSMSG="Enabled"
19181 fi
19182
19183 if test "x$LIBUSB_LIBS" != "x"; then
19184 USBMSG="Enabled"
19185 fi
19186
19187 EXAMPLESMSG="No"
19188 SDLEXAMPLESMSG="No"
19189 XVEXAMPLESMSG="No"
19190 VIDEXAMPLESMSG="No"
19191
19192 if test x$build_examples = xtrue; then
19193 EXAMPLESMSG="Yes"
19194 if test x$have_opengl = xyes; then
19195 if test "x$SDL_LIBS" != "x"; then
19196 SDLEXAMPLESMSG="Yes"
19197 fi
19198 fi
19199 if test x$xv = xyes; then
19200 XVEXAMPLESMSG="Yes"
19201 fi
19202 if test x$have_videodev = xtrue; then
19203 VIDEXAMPLESMSG="Yes"
19204 fi
19205 fi
19206
19207 echo "
19208 Configuration (libdc1394):
19209
19210 Linux support: ${LINUXMSG}"
19211 if test "x$LINUXMSG" = "xEnabled"; then
19212 echo " Legacy drivers (libraw1394): ${RAW1394MSG}"
19213 fi
19214 echo " Mac OS X support: ${MACOSXMSG}
19215 Windows support: ${WINDOWSMSG}
19216 IIDC-over-USB support: ${USBMSG}
19217 Build examples: ${EXAMPLESMSG}"
19218 if test "x$EXAMPLESMSG" = xYes; then
19219 echo " Build SDL/OpenGL examples: ${SDLEXAMPLESMSG}
19220 Build XV examples: ${XVEXAMPLESMSG}
19221 Build V4L examples: ${VIDEXAMPLESMSG}"
19222 fi
19223 echo ""