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 libgeotiff 1.7.4.
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, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='libgeotiff'
592 PACKAGE_TARNAME='libgeotiff'
593 PACKAGE_VERSION='1.7.4'
594 PACKAGE_STRING='libgeotiff 1.7.4'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 DOXYGEN_PAPER_SIZE
639 DX_COND_latex_FALSE
640 DX_COND_latex_TRUE
641 DX_COND_pdf_FALSE
642 DX_COND_pdf_TRUE
643 DX_PDFLATEX
644 DX_FLAG_pdf
645 DX_COND_ps_FALSE
646 DX_COND_ps_TRUE
647 DX_EGREP
648 DX_DVIPS
649 DX_MAKEINDEX
650 DX_LATEX
651 DX_FLAG_ps
652 DX_COND_html_FALSE
653 DX_COND_html_TRUE
654 DX_FLAG_html
655 DX_COND_chi_FALSE
656 DX_COND_chi_TRUE
657 DX_FLAG_chi
658 DX_COND_chm_FALSE
659 DX_COND_chm_TRUE
660 DX_HHC
661 DX_FLAG_chm
662 DX_COND_xml_FALSE
663 DX_COND_xml_TRUE
664 DX_FLAG_xml
665 DX_COND_rtf_FALSE
666 DX_COND_rtf_TRUE
667 DX_FLAG_rtf
668 DX_COND_man_FALSE
669 DX_COND_man_TRUE
670 DX_FLAG_man
671 DX_COND_dot_FALSE
672 DX_COND_dot_TRUE
673 DX_DOT
674 DX_FLAG_dot
675 DX_COND_doc_FALSE
676 DX_COND_doc_TRUE
677 DX_PERL
678 DX_FLAG_DX_CURRENT_FEATURE
679 DX_DOXYGEN
680 DX_FLAG_doc
681 DX_ENV
682 DX_DOCDIR
683 DX_CONFIG
684 DX_PROJECT
685 NOUNDEFINED
686 PROJ_INCLUDE
687 PROJ_LIBS
688 PROJ_CFLAGS
689 TIFF_IS_CONFIG_FALSE
690 TIFF_IS_CONFIG_TRUE
691 TIFF_PREFIX
692 TIFF_INC
693 LIBTIFF_LIBS
694 LIBTIFF_CFLAGS
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 JPEG_IS_CONFIG_FALSE
699 JPEG_IS_CONFIG_TRUE
700 JPEG_PREFIX
701 JPEG_INC
702 ZIP_IS_CONFIG_FALSE
703 ZIP_IS_CONFIG_TRUE
704 ZIP_PREFIX
705 ZIP_INC
706 CPP
707 LT_SYS_LIBRARY_PATH
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 MANIFEST_TOOL
714 RANLIB
715 ac_ct_AR
716 AR
717 DLLTOOL
718 OBJDUMP
719 NM
720 ac_ct_DUMPBIN
721 DUMPBIN
722 LD
723 FGREP
724 EGREP
725 GREP
726 SED
727 host_os
728 host_vendor
729 host_cpu
730 host
731 LIBTOOL
732 LN_S
733 am__fastdepCC_FALSE
734 am__fastdepCC_TRUE
735 CCDEPMODE
736 am__nodep
737 AMDEPBACKSLASH
738 AMDEP_FALSE
739 AMDEP_TRUE
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 LIBGEOTIFF_VERSION
780 LIBGEOTIFF_STRING_VERSION
781 LIBGEOTIFF_REV_VERSION
782 LIBGEOTIFF_PATCH_VERSION
783 LIBGEOTIFF_MINOR_VERSION
784 LIBGEOTIFF_MAJOR_VERSION
785 build_os
786 build_vendor
787 build_cpu
788 build
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 runstatedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL
828 am__quote'
829 ac_subst_files=''
830 ac_user_opts='
831 enable_option_checking
832 enable_silent_rules
833 enable_maintainer_mode
834 enable_dependency_tracking
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 with_aix_soname
840 with_gnu_ld
841 with_sysroot
842 enable_libtool_lock
843 enable_debug
844 with_zip
845 with_zlib
846 with_libz
847 with_jpeg
848 with_libtiff
849 with_proj
850 enable_towgs84
851 enable_doxygen_doc
852 enable_doxygen_dot
853 enable_doxygen_man
854 enable_doxygen_rtf
855 enable_doxygen_xml
856 enable_doxygen_chm
857 enable_doxygen_chi
858 enable_doxygen_html
859 enable_doxygen_ps
860 enable_doxygen_pdf
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 LT_SYS_LIBRARY_PATH
871 CPP
872 PKG_CONFIG
873 PKG_CONFIG_PATH
874 PKG_CONFIG_LIBDIR
875 LIBTIFF_CFLAGS
876 LIBTIFF_LIBS
877 PROJ_CFLAGS
878 PROJ_LIBS
879 DOXYGEN_PAPER_SIZE'
880
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 runstatedir='${localstatedir}/run'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
930
931 ac_prev=
932 ac_dashdash=
933 for ac_option
934 do
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
940 fi
941
942 case $ac_option in
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *=) ac_optarg= ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -runstatedir | --runstatedir | --runstatedi | --runstated \
1172 | --runstate | --runstat | --runsta | --runst | --runs \
1173 | --run | --ru | --r)
1174 ac_prev=runstatedir ;;
1175 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1176 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1177 | --run=* | --ru=* | --r=*)
1178 runstatedir=$ac_optarg ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1224
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1240
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1256
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1260
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1267
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1274
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1288
1289 *)
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 ;;
1296
1297 esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir runstatedir
1318 do
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1347 fi
1348 fi
1349
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353 test "$silent" = yes && exec 6>/dev/null
1354
1355
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 as_fn_error $? "pwd does not report name of working directory"
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\).*/{
1387 s//\1/
1388 q
1389 }
1390 s/.*/./; q'`
1391 srcdir=$ac_confdir
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 srcdir=..
1394 fi
1395 else
1396 ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 fi
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1422
1423 #
1424 # Report the --help message.
1425 #
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures libgeotiff 1.7.4 to adapt to many kinds of systems.
1431
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1436
1437 Defaults for the options are specified in brackets.
1438
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking ...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1455
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1460
1461 For better control, use the options below.
1462
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/libgeotiff]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500 case $ac_init_help in
1501 short | recursive ) echo "Configuration of libgeotiff 1.7.4:";;
1502 esac
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-silent-rules less verbose build output (undo: "make V=1")
1510 --disable-silent-rules verbose build output (undo: "make V=0")
1511 --enable-maintainer-mode
1512 enable make rules and dependencies not useful (and
1513 sometimes confusing) to the casual installer
1514 --enable-dependency-tracking
1515 do not reject slow dependency extractors
1516 --disable-dependency-tracking
1517 speeds up one-time build
1518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --enable-debug=ARG Enable debug compilation mode [yes|no],
1524 default=no
1525 --disable-towgs84 Disable WGS84 parameters for binary compatibility with pre-1.4.1
1526 --disable-doxygen-doc don't generate any doxygen documentation
1527 --disable-doxygen-dot don't generate graphics for doxygen documentation
1528 --disable-doxygen-man don't generate doxygen manual pages
1529 --enable-doxygen-rtf generate doxygen RTF documentation
1530 --enable-doxygen-xml generate doxygen XML documentation
1531 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1532 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1533 file
1534 --disable-doxygen-html don't generate doxygen plain HTML documentation
1535 --enable-doxygen-ps generate doxygen PostScript documentation
1536 --enable-doxygen-pdf generate doxygen PDF documentation
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1542 both]
1543 --with-aix-soname=aix|svr4|both
1544 shared library versioning (aka "SONAME") variant to
1545 provide on AIX, [default=aix].
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1548 compiler's sysroot if not specified).
1549 --with-zip=ARG zlib library to use (yes or path)
1550 --with-zlib=ARG alias for --with-zip
1551 --with-libz=ARG alias for --with-zip
1552 --with-jpeg=ARG jpeg library to use (yes or path)
1553 --with-libtiff=dir Use libtiff in directory dir
1554 --with-proj=ARG Compile with PROJ.x (ARG=yes or path)
1555
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 LT_SYS_LIBRARY_PATH
1565 User-defined run-time library search path.
1566 CPP C preprocessor
1567 PKG_CONFIG path to pkg-config utility
1568 PKG_CONFIG_PATH
1569 directories to add to pkg-config's search path
1570 PKG_CONFIG_LIBDIR
1571 path overriding pkg-config's built-in search path
1572 LIBTIFF_CFLAGS
1573 C compiler flags for LIBTIFF, overriding pkg-config
1574 LIBTIFF_LIBS
1575 linker flags for LIBTIFF, overriding pkg-config
1576 PROJ_CFLAGS C compiler flags for PROJ, overriding pkg-config
1577 PROJ_LIBS linker flags for PROJ, overriding pkg-config
1578 DOXYGEN_PAPER_SIZE
1579 a4wide (default), a4, letter, legal or executive
1580
1581 Use these variables to override the choices made by `configure' or to help
1582 it to find libraries and programs with nonstandard names/locations.
1583
1584 Report bugs to <[email protected]>.
1585 _ACEOF
1586 ac_status=$?
1587 fi
1588
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
1595 ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646 cat <<\_ACEOF
1647 libgeotiff configure 1.7.4
1648 generated by GNU Autoconf 2.69
1649
1650 Copyright (C) 2012 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654 exit
1655 fi
1656
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1660
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_header_compile
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_try_run LINENO
1814 # ----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816 # that executables *can* be run.
1817 ac_fn_c_try_run ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848 fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_run
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925 # the include files in INCLUDES and setting the cache variable VAR
1926 # accordingly.
1927 ac_fn_c_check_header_mongrel ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if eval \${$3+:} false; then :
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 fi
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 else
1940 # Is the header compilable?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942 $as_echo_n "checking $2 usability... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_header_compiler=yes
1950 else
1951 ac_header_compiler=no
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955 $as_echo "$ac_header_compiler" >&6; }
1956
1957 # Is the header present?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959 $as_echo_n "checking $2 presence... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_cpp "$LINENO"; then :
1965 ac_header_preproc=yes
1966 else
1967 ac_header_preproc=no
1968 fi
1969 rm -f conftest.err conftest.i conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971 $as_echo "$ac_header_preproc" >&6; }
1972
1973 # So? What about this header?
1974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1975 yes:no: )
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 ;;
1981 no:yes:* )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1985 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1989 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 ( $as_echo "## ---------------------------------- ##
1993 ## Report this to [email protected] ##
1994 ## ---------------------------------- ##"
1995 ) | sed "s/^/$as_me: WARNING: /" >&2
1996 ;;
1997 esac
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 eval "$3=\$ac_header_compiler"
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 fi
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_header_mongrel
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2015
2016 It was created by libgeotiff $as_me 1.7.4, which was
2017 generated by GNU Autoconf 2.69. Invocation command line was
2018
2019 $ $0 $@
2020
2021 _ACEOF
2022 exec 5>>config.log
2023 {
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2028
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046 _ASUNAME
2047
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2054 done
2055 IFS=$as_save_IFS
2056
2057 } >&5
2058
2059 cat >&5 <<_ACEOF
2060
2061
2062 ## ----------- ##
2063 ## Core tests. ##
2064 ## ----------- ##
2065
2066 _ACEOF
2067
2068
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2074 ac_configure_args=
2075 ac_configure_args0=
2076 ac_configure_args1=
2077 ac_must_keep_next=false
2078 for ac_pass in 1 2
2079 do
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
2087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 esac
2090 case $ac_pass in
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 2)
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2096 else
2097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2105 ;;
2106 -* ) ac_must_keep_next=true ;;
2107 esac
2108 fi
2109 as_fn_append ac_configure_args " '$ac_arg'"
2110 ;;
2111 esac
2112 done
2113 done
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2116
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 $as_echo "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132 (
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160 )
2161 echo
2162
2163 $as_echo "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2166 echo
2167 for ac_var in $ac_subst_vars
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
2178 $as_echo "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 $as_echo "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 $as_echo "## ----------- ##
2195 ## confdefs.h. ##
2196 ## ----------- ##"
2197 echo
2198 cat confdefs.h
2199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
2202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
2204 } >&5
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 exit $exit_status
2208 ' 0
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211 done
2212 ac_signal=0
2213
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2216
2217 $as_echo "/* confdefs.h */" > confdefs.h
2218
2219 # Predefined preprocessor variables.
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_NAME "$PACKAGE_NAME"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2227 _ACEOF
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_STRING "$PACKAGE_STRING"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_URL "$PACKAGE_URL"
2243 _ACEOF
2244
2245
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2248 ac_site_file1=NONE
2249 ac_site_file2=NONE
2250 if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2256 esac
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2260 else
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2263 fi
2264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265 do
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2271 . "$ac_site_file" \
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 as_fn_error $? "failed to load site script $ac_site_file
2275 See \`config.log' for more details" "$LINENO" 5; }
2276 fi
2277 done
2278
2279 if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284 $as_echo "$as_me: loading cache $cache_file" >&6;}
2285 case $cache_file in
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2288 esac
2289 fi
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292 $as_echo "$as_me: creating cache $cache_file" >&6;}
2293 >$cache_file
2294 fi
2295
2296 # Check that the precious variables saved in the cache have kept the same
2297 # value.
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2305 set,)
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2309 ,set)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,);;
2314 *)
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x $ac_old_val`
2318 ac_new_val_w=`echo x $ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322 ac_cache_corrupted=:
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 fi;;
2333 esac
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2336 case $ac_new_val in
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2339 esac
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 esac
2344 fi
2345 done
2346 if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2352 fi
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2356
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364 ac_aux_dir=
2365 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366 if test -f "$ac_dir/install-sh"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/install-sh -c"
2369 break
2370 elif test -f "$ac_dir/install.sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/install.sh -c"
2373 break
2374 elif test -f "$ac_dir/shtool"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/shtool install -c"
2377 break
2378 fi
2379 done
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2382 fi
2383
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2391
2392
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2395 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2396
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if ${ac_cv_build+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 ac_build_alias=$build_alias
2403 test "x$ac_build_alias" = x &&
2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x &&
2406 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2409
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2414 *-*-*) ;;
2415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2416 esac
2417 build=$ac_cv_build
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_build
2420 shift
2421 build_cpu=$1
2422 build_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 build_os=$*
2427 IFS=$ac_save_IFS
2428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2429
2430
2431
2432
2433
2434 LIBGEOTIFF_MAJOR_VERSION=1
2435 LIBGEOTIFF_MINOR_VERSION=7
2436 LIBGEOTIFF_PATCH_VERSION=4
2437 LIBGEOTIFF_REV_VERSION=0
2438
2439 LIBGEOTIFF_STRING_VERSION=${LIBGEOTIFF_MAJOR_VERSION}.${LIBGEOTIFF_MINOR_VERSION}.${LIBGEOTIFF_PATCH_VERSION}
2440 LIBGEOTIFF_VERSION="${LIBGEOTIFF_MAJOR_VERSION}${LIBGEOTIFF_MINOR_VERSION}${LIBGEOTIFF_PATCH_VERSION}${LIBGEOTIFF_REV_VERSION}"
2441
2442
2443
2444
2445
2446
2447
2448
2449 ac_config_headers="$ac_config_headers geo_config.h"
2450
2451 ac_config_files="$ac_config_files geotiff.h"
2452
2453
2454
2455 am__api_version='1.16'
2456
2457 # Find a good install program. We prefer a C program (faster),
2458 # so one script is as good as another. But avoid the broken or
2459 # incompatible versions:
2460 # SysV /etc/install, /usr/sbin/install
2461 # SunOS /usr/etc/install
2462 # IRIX /sbin/install
2463 # AIX /bin/install
2464 # AmigaOS /C/install, which installs bootblocks on floppy discs
2465 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468 # OS/2's system install, which has a completely different semantic
2469 # ./install, which can be erroneously created by make from ./install.sh.
2470 # Reject install programs that cannot install multiple files.
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2472 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2473 if test -z "$INSTALL"; then
2474 if ${ac_cv_path_install+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 # Account for people who put trailing slashes in PATH elements.
2483 case $as_dir/ in #((
2484 ./ | .// | /[cC]/* | \
2485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2486 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2487 /usr/ucb/* ) ;;
2488 *)
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2491 # by default.
2492 for ac_prog in ginstall scoinst install; do
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2495 if test $ac_prog = install &&
2496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # AIX install. It has an incompatible calling convention.
2498 :
2499 elif test $ac_prog = install &&
2500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # program-specific install script used by HP pwplus--don't use.
2502 :
2503 else
2504 rm -rf conftest.one conftest.two conftest.dir
2505 echo one > conftest.one
2506 echo two > conftest.two
2507 mkdir conftest.dir
2508 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2509 test -s conftest.one && test -s conftest.two &&
2510 test -s conftest.dir/conftest.one &&
2511 test -s conftest.dir/conftest.two
2512 then
2513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2514 break 3
2515 fi
2516 fi
2517 fi
2518 done
2519 done
2520 ;;
2521 esac
2522
2523 done
2524 IFS=$as_save_IFS
2525
2526 rm -rf conftest.one conftest.two conftest.dir
2527
2528 fi
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. Don't cache a
2533 # value for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the value is a relative name.
2536 INSTALL=$ac_install_sh
2537 fi
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2540 $as_echo "$INSTALL" >&6; }
2541
2542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543 # It thinks the first close brace ends the variable substitution.
2544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545
2546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547
2548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2551 $as_echo_n "checking whether build environment is sane... " >&6; }
2552 # Reject unsafe characters in $srcdir or the absolute working directory
2553 # name. Accept space and tab only in the latter.
2554 am_lf='
2555 '
2556 case `pwd` in
2557 *[\\\"\#\$\&\'\`$am_lf]*)
2558 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2559 esac
2560 case $srcdir in
2561 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2562 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2563 esac
2564
2565 # Do 'set' in a subshell so we don't clobber the current shell's
2566 # arguments. Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2569 # directory).
2570 if (
2571 am_has_slept=no
2572 for am_try in 1 2; do
2573 echo "timestamp, slept: $am_has_slept" > conftest.file
2574 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2575 if test "$*" = "X"; then
2576 # -L didn't work.
2577 set X `ls -t "$srcdir/configure" conftest.file`
2578 fi
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2581
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" "$LINENO" 5
2588 fi
2589 if test "$2" = conftest.file || test $am_try -eq 2; then
2590 break
2591 fi
2592 # Just in case.
2593 sleep 1
2594 am_has_slept=yes
2595 done
2596 test "$2" = conftest.file
2597 )
2598 then
2599 # Ok.
2600 :
2601 else
2602 as_fn_error $? "newly created file is older than distributed files!
2603 Check your system clock" "$LINENO" 5
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2606 $as_echo "yes" >&6; }
2607 # If we didn't sleep, we still need to ensure time stamps of config.status and
2608 # generated files are strictly newer.
2609 am_sleep_pid=
2610 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2611 ( sleep 1 ) &
2612 am_sleep_pid=$!
2613 fi
2614
2615 rm -f conftest.file
2616
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # Expand $ac_aux_dir to an absolute path.
2628 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 *)
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --is-lightweight"; then
2640 am_missing_run="$MISSING "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh+set}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 *)
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2654 fi
2655
2656 # Installed binaries are usually stripped using 'strip' when the user
2657 # run "make install-strip". However 'strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the 'STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2748 fi
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if ${ac_cv_path_mkdir+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784 test -d ./--version && rmdir ./--version
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
2787 else
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 MKDIR_P="$ac_install_sh -d"
2793 fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 for ac_prog in gawk mawk nawk awk
2799 do
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; 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_AWK+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$AWK"; then
2808 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
2828 if test -n "$AWK"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2830 $as_echo "$AWK" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837 test -n "$AWK" && break
2838 done
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842 set x ${MAKE-make}
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 cat >conftest.make <<\_ACEOF
2848 SHELL = /bin/sh
2849 all:
2850 @echo '@@@%%%=$(MAKE)=@@@%%%'
2851 _ACEOF
2852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854 *@@@%%%=?*=@@@%%%*)
2855 eval ac_cv_prog_make_${ac_make}_set=yes;;
2856 *)
2857 eval ac_cv_prog_make_${ac_make}_set=no;;
2858 esac
2859 rm -f conftest.make
2860 fi
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864 SET_MAKE=
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 SET_MAKE="MAKE=${MAKE-make}"
2869 fi
2870
2871 rm -rf .tst 2>/dev/null
2872 mkdir .tst 2>/dev/null
2873 if test -d .tst; then
2874 am__leading_dot=.
2875 else
2876 am__leading_dot=_
2877 fi
2878 rmdir .tst 2>/dev/null
2879
2880 # Check whether --enable-silent-rules was given.
2881 if test "${enable_silent_rules+set}" = set; then :
2882 enableval=$enable_silent_rules;
2883 fi
2884
2885 case $enable_silent_rules in # (((
2886 yes) AM_DEFAULT_VERBOSITY=0;;
2887 no) AM_DEFAULT_VERBOSITY=1;;
2888 *) AM_DEFAULT_VERBOSITY=1;;
2889 esac
2890 am_make=${MAKE-make}
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2892 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2893 if ${am_cv_make_support_nested_variables+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if $as_echo 'TRUE=$(BAR$(V))
2897 BAR0=false
2898 BAR1=true
2899 V=1
2900 am__doit:
2901 @$(TRUE)
2902 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2903 am_cv_make_support_nested_variables=yes
2904 else
2905 am_cv_make_support_nested_variables=no
2906 fi
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2909 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2910 if test $am_cv_make_support_nested_variables = yes; then
2911 AM_V='$(V)'
2912 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2913 else
2914 AM_V=$AM_DEFAULT_VERBOSITY
2915 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2916 fi
2917 AM_BACKSLASH='\'
2918
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921 # is not polluted with repeated "-I."
2922 am__isrc=' -I$(srcdir)'
2923 # test to see if srcdir already configured
2924 if test -f $srcdir/config.status; then
2925 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2926 fi
2927 fi
2928
2929 # test whether we have cygpath
2930 if test -z "$CYGPATH_W"; then
2931 if (cygpath --version) >/dev/null 2>/dev/null; then
2932 CYGPATH_W='cygpath -w'
2933 else
2934 CYGPATH_W=echo
2935 fi
2936 fi
2937
2938
2939 # Define the identity of the package.
2940 PACKAGE='libgeotiff'
2941 VERSION='1.7.4'
2942
2943
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE "$PACKAGE"
2946 _ACEOF
2947
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define VERSION "$VERSION"
2951 _ACEOF
2952
2953 # Some tools Automake needs.
2954
2955 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2956
2957
2958 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2959
2960
2961 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2962
2963
2964 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2965
2966
2967 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2968
2969 # For better backward compatibility. To be removed once Automake 1.9.x
2970 # dies out for good. For more background, see:
2971 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2972 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2973 mkdir_p='$(MKDIR_P)'
2974
2975 # We need awk for the "check" target (and possibly the TAP driver). The
2976 # system "awk" is bad on some platforms.
2977 # Always define AMTAR for backward compatibility. Yes, it's still used
2978 # in the wild :-( We should find a proper way to deprecate it ...
2979 AMTAR='$${TAR-tar}'
2980
2981
2982 # We'll loop over all known methods to create a tar archive until one works.
2983 _am_tools='gnutar pax cpio none'
2984
2985 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2986
2987
2988
2989
2990
2991
2992 # POSIX will say in a future version that running "rm -f" with no argument
2993 # is OK; and we want to be able to make that assumption in our Makefile
2994 # recipes. So use an aggressive probe to check that the usage we want is
2995 # actually supported "in the wild" to an acceptable degree.
2996 # See automake bug#10828.
2997 # To make any issue more visible, cause the running configure to be aborted
2998 # by default if the 'rm' program in use doesn't match our expectations; the
2999 # user can still override this though.
3000 if rm -f && rm -fr && rm -rf; then : OK; else
3001 cat >&2 <<'END'
3002 Oops!
3003
3004 Your 'rm' program seems unable to run without file operands specified
3005 on the command line, even when the '-f' option is present. This is contrary
3006 to the behaviour of most rm programs out there, and not conforming with
3007 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3008
3009 Please tell [email protected] about your system, including the value
3010 of your $PATH and any error possibly output before this message. This
3011 can help us improve future automake versions.
3012
3013 END
3014 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3015 echo 'Configuration will proceed anyway, since you have set the' >&2
3016 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3017 echo >&2
3018 else
3019 cat >&2 <<'END'
3020 Aborting the configuration process, to ensure you take notice of the issue.
3021
3022 You can download and install GNU coreutils to get an 'rm' implementation
3023 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3024
3025 If you want to complete the configuration process using your problematic
3026 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3027 to "yes", and re-run configure.
3028
3029 END
3030 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3031 fi
3032 fi
3033
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3036 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3037 # Check whether --enable-maintainer-mode was given.
3038 if test "${enable_maintainer_mode+set}" = set; then :
3039 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3040 else
3041 USE_MAINTAINER_MODE=no
3042 fi
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3045 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3046 if test $USE_MAINTAINER_MODE = yes; then
3047 MAINTAINER_MODE_TRUE=
3048 MAINTAINER_MODE_FALSE='#'
3049 else
3050 MAINTAINER_MODE_TRUE='#'
3051 MAINTAINER_MODE_FALSE=
3052 fi
3053
3054 MAINT=$MAINTAINER_MODE_TRUE
3055
3056
3057 ac_ext=c
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100 fi
3101 if test -z "$ac_cv_prog_CC"; then
3102 ac_ct_CC=$CC
3103 # Extract the first word of "gcc", so it can be a program name with args.
3104 set dummy gcc; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="gcc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131 if test -n "$ac_ct_CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133 $as_echo "$ac_ct_CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139 if test "x$ac_ct_CC" = x; then
3140 CC=""
3141 else
3142 case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148 CC=$ac_ct_CC
3149 fi
3150 else
3151 CC="$ac_cv_prog_CC"
3152 fi
3153
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}cc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="${ac_tool_prefix}cc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 fi
3194 fi
3195 if test -z "$CC"; then
3196 # Extract the first word of "cc", so it can be a program name with args.
3197 set dummy cc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 ac_prog_rejected=no
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3215 ac_prog_rejected=yes
3216 continue
3217 fi
3218 ac_cv_prog_CC="cc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 if test $ac_prog_rejected = yes; then
3227 # We found a bogon in the path, so make sure we never use it.
3228 set dummy $ac_cv_prog_CC
3229 shift
3230 if test $# != 0; then
3231 # We chose a different compiler from the bogus one.
3232 # However, it has the same basename, so the bogon will be chosen
3233 # first if we set CC to just the basename; use the full file name.
3234 shift
3235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3236 fi
3237 fi
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 fi
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 for ac_prog in cl.exe
3254 do
3255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285 $as_echo "$CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$CC" && break
3293 done
3294 fi
3295 if test -z "$CC"; then
3296 ac_ct_CC=$CC
3297 for ac_prog in cl.exe
3298 do
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$ac_ct_CC"; then
3307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_ac_ct_CC="$ac_prog"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329 $as_echo "$ac_ct_CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 test -n "$ac_ct_CC" && break
3337 done
3338
3339 if test "x$ac_ct_CC" = x; then
3340 CC=""
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348 CC=$ac_ct_CC
3349 fi
3350 fi
3351
3352 fi
3353
3354
3355 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "no acceptable C compiler found in \$PATH
3358 See \`config.log' for more details" "$LINENO" 5; }
3359
3360 # Provide some information about the compiler.
3361 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3362 set X $ac_compile
3363 ac_compiler=$2
3364 for ac_option in --version -v -V -qversion; do
3365 { { ac_try="$ac_compiler $ac_option >&5"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3373 ac_status=$?
3374 if test -s conftest.err; then
3375 sed '10a\
3376 ... rest of stderr output deleted ...
3377 10q' conftest.err >conftest.er1
3378 cat conftest.er1 >&5
3379 fi
3380 rm -f conftest.er1 conftest.err
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 done
3384
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387
3388 int
3389 main ()
3390 {
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files_save=$ac_clean_files
3397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398 # Try to create an executable without -o first, disregard a.out.
3399 # It will help us diagnose broken compilers, and finding out an intuition
3400 # of exeext.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402 $as_echo_n "checking whether the C compiler works... " >&6; }
3403 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404
3405 # The possible output files:
3406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407
3408 ac_rmfiles=
3409 for ac_file in $ac_files
3410 do
3411 case $ac_file in
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3414 esac
3415 done
3416 rm -f $ac_rmfiles
3417
3418 if { { ac_try="$ac_link_default"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link_default") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3432 # so that the user can short-circuit this test for compilers unknown to
3433 # Autoconf.
3434 for ac_file in $ac_files ''
3435 do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439 ;;
3440 [ab].out )
3441 # We found the default executable, but exeext='' is most
3442 # certainly right.
3443 break;;
3444 *.* )
3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3446 then :; else
3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 fi
3449 # We set ac_cv_exeext here because the later test for it is not
3450 # safe: cross compilers may not add the suffix if given an `-o'
3451 # argument, so we may need to know it at that point already.
3452 # Even if this section looks crufty: it has the advantage of
3453 # actually working.
3454 break;;
3455 * )
3456 break;;
3457 esac
3458 done
3459 test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461 else
3462 ac_file=''
3463 fi
3464 if test -z "$ac_file"; then :
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error 77 "C compiler cannot create executables
3473 See \`config.log' for more details" "$LINENO" 5; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476 $as_echo "yes" >&6; }
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3479 $as_echo_n "checking for C compiler default output file name... " >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3481 $as_echo "$ac_file" >&6; }
3482 ac_exeext=$ac_cv_exeext
3483
3484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485 ac_clean_files=$ac_clean_files_save
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3487 $as_echo_n "checking for suffix of executables... " >&6; }
3488 if { { ac_try="$ac_link"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link") 2>&5
3496 ac_status=$?
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3500 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3501 # work properly (i.e., refer to `conftest.exe'), while it won't with
3502 # `rm'.
3503 for ac_file in conftest.exe conftest conftest.*; do
3504 test -f "$ac_file" || continue
3505 case $ac_file in
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 break;;
3509 * ) break;;
3510 esac
3511 done
3512 else
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 rm -f conftest conftest$ac_cv_exeext
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3520 $as_echo "$ac_cv_exeext" >&6; }
3521
3522 rm -f conftest.$ac_ext
3523 EXEEXT=$ac_cv_exeext
3524 ac_exeext=$EXEEXT
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <stdio.h>
3528 int
3529 main ()
3530 {
3531 FILE *f = fopen ("conftest.out", "w");
3532 return ferror (f) || fclose (f) != 0;
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 ac_clean_files="$ac_clean_files conftest.out"
3539 # Check that the compiler produces executables we can run. If not, either
3540 # the compiler is broken, or we cross compile.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3542 $as_echo_n "checking whether we are cross compiling... " >&6; }
3543 if test "$cross_compiling" != yes; then
3544 { { ac_try="$ac_link"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3552 ac_status=$?
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3555 if { ac_try='./conftest$ac_cv_exeext'
3556 { { case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_try") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; }; then
3566 cross_compiling=no
3567 else
3568 if test "$cross_compiling" = maybe; then
3569 cross_compiling=yes
3570 else
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error $? "cannot run C compiled programs.
3574 If you meant to cross compile, use \`--host'.
3575 See \`config.log' for more details" "$LINENO" 5; }
3576 fi
3577 fi
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3580 $as_echo "$cross_compiling" >&6; }
3581
3582 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3585 $as_echo_n "checking for suffix of object files... " >&6; }
3586 if ${ac_cv_objext+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.o conftest.obj
3601 if { { ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compile") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619 done
3620 else
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details" "$LINENO" 5; }
3628 fi
3629 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3632 $as_echo "$ac_cv_objext" >&6; }
3633 OBJEXT=$ac_cv_objext
3634 ac_objext=$OBJEXT
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3636 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3637 if ${ac_cv_c_compiler_gnu+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642
3643 int
3644 main ()
3645 {
3646 #ifndef __GNUC__
3647 choke me
3648 #endif
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_compiler_gnu=yes
3656 else
3657 ac_compiler_gnu=no
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3664 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3665 if test $ac_compiler_gnu = yes; then
3666 GCC=yes
3667 else
3668 GCC=
3669 fi
3670 ac_test_CFLAGS=${CFLAGS+set}
3671 ac_save_CFLAGS=$CFLAGS
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3673 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3674 if ${ac_cv_prog_cc_g+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_save_c_werror_flag=$ac_c_werror_flag
3678 ac_c_werror_flag=yes
3679 ac_cv_prog_cc_g=no
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694 else
3695 CFLAGS=""
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708
3709 else
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3711 CFLAGS="-g"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 int
3716 main ()
3717 {
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_g=yes
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 ac_c_werror_flag=$ac_save_c_werror_flag
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3734 $as_echo "$ac_cv_prog_cc_g" >&6; }
3735 if test "$ac_test_CFLAGS" = set; then
3736 CFLAGS=$ac_save_CFLAGS
3737 elif test $ac_cv_prog_cc_g = yes; then
3738 if test "$GCC" = yes; then
3739 CFLAGS="-g -O2"
3740 else
3741 CFLAGS="-g"
3742 fi
3743 else
3744 if test "$GCC" = yes; then
3745 CFLAGS="-O2"
3746 else
3747 CFLAGS=
3748 fi
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3751 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752 if ${ac_cv_prog_cc_c89+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_cv_prog_cc_c89=no
3756 ac_save_CC=$CC
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <stdarg.h>
3760 #include <stdio.h>
3761 struct stat;
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3768 {
3769 return p[i];
3770 }
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3772 {
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3779 }
3780
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3801 int
3802 main ()
3803 {
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 do
3812 CC="$ac_save_CC $ac_arg"
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_cv_prog_cc_c89=$ac_arg
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3821
3822 fi
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3825 x)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827 $as_echo "none needed" >&6; } ;;
3828 xno)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830 $as_echo "unsupported" >&6; } ;;
3831 *)
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836 if test "x$ac_cv_prog_cc_c89" != xno; then :
3837
3838 fi
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3852 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3853 if ${am_cv_prog_cc_c_o+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858
3859 int
3860 main ()
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 # Make sure it works both with $CC and with simple cc.
3868 # Following AC_PROG_CC_C_O, we do the test twice because some
3869 # compilers refuse to overwrite an existing .o file with -o,
3870 # though they will create one.
3871 am_cv_prog_cc_c_o=yes
3872 for am_i in 1 2; do
3873 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3874 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } \
3878 && test -f conftest2.$ac_objext; then
3879 : OK
3880 else
3881 am_cv_prog_cc_c_o=no
3882 break
3883 fi
3884 done
3885 rm -f core conftest*
3886 unset am_i
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3889 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3890 if test "$am_cv_prog_cc_c_o" != yes; then
3891 # Losing compiler, so override with the script.
3892 # FIXME: It is wrong to rewrite CC.
3893 # But if we don't then we get into trouble of one sort or another.
3894 # A longer-term fix would be to have automake use am__CC in this case,
3895 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3896 CC="$am_aux_dir/compile $CC"
3897 fi
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904 DEPDIR="${am__leading_dot}deps"
3905
3906 ac_config_commands="$ac_config_commands depfiles"
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3909 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3910 cat > confinc.mk << 'END'
3911 am__doit:
3912 @echo this is the am__doit target >confinc.out
3913 .PHONY: am__doit
3914 END
3915 am__include="#"
3916 am__quote=
3917 # BSD make does it like this.
3918 echo '.include "confinc.mk" # ignored' > confmf.BSD
3919 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3920 echo 'include confinc.mk # ignored' > confmf.GNU
3921 _am_result=no
3922 for s in GNU BSD; do
3923 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3924 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }
3928 case $?:`cat confinc.out 2>/dev/null` in #(
3929 '0:this is the am__doit target') :
3930 case $s in #(
3931 BSD) :
3932 am__include='.include' am__quote='"' ;; #(
3933 *) :
3934 am__include='include' am__quote='' ;;
3935 esac ;; #(
3936 *) :
3937 ;;
3938 esac
3939 if test "$am__include" != "#"; then
3940 _am_result="yes ($s style)"
3941 break
3942 fi
3943 done
3944 rm -f confinc.* confmf.*
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3946 $as_echo "${_am_result}" >&6; }
3947
3948 # Check whether --enable-dependency-tracking was given.
3949 if test "${enable_dependency_tracking+set}" = set; then :
3950 enableval=$enable_dependency_tracking;
3951 fi
3952
3953 if test "x$enable_dependency_tracking" != xno; then
3954 am_depcomp="$ac_aux_dir/depcomp"
3955 AMDEPBACKSLASH='\'
3956 am__nodep='_no'
3957 fi
3958 if test "x$enable_dependency_tracking" != xno; then
3959 AMDEP_TRUE=
3960 AMDEP_FALSE='#'
3961 else
3962 AMDEP_TRUE='#'
3963 AMDEP_FALSE=
3964 fi
3965
3966
3967
3968 depcc="$CC" am_compiler_list=
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971 $as_echo_n "checking dependency style of $depcc... " >&6; }
3972 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976 # We make a subdir and do the tests there. Otherwise we can end up
3977 # making bogus files that we don't know about and never remove. For
3978 # instance it was reported that on HP-UX the gcc test will end up
3979 # making a dummy file named 'D' -- because '-MD' means "put the output
3980 # in D".
3981 rm -rf conftest.dir
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3994
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998 fi
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4003
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4008 #
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4016 # Solaris 10 /bin/sh.
4017 echo '/* dummy */' > sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle '-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs.
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4031 ;;
4032 nosideeffect)
4033 # After this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested.
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4039 fi
4040 ;;
4041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4042 # This compiler won't grok '-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4047 ;;
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4070 fi
4071 fi
4072 done
4073
4074 cd ..
4075 rm -rf conftest.dir
4076 else
4077 am_cv_CC_dependencies_compiler_type=none
4078 fi
4079
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085 if
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090 else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4093 fi
4094
4095
4096
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4098 $as_echo_n "checking whether ln -s works... " >&6; }
4099 LN_S=$as_ln_s
4100 if test "$LN_S" = "ln -s"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4103 else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4105 $as_echo "no, using $LN_S" >&6; }
4106 fi
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4109 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4110 set x ${MAKE-make}
4111 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4112 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat >conftest.make <<\_ACEOF
4116 SHELL = /bin/sh
4117 all:
4118 @echo '@@@%%%=$(MAKE)=@@@%%%'
4119 _ACEOF
4120 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4121 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4122 *@@@%%%=?*=@@@%%%*)
4123 eval ac_cv_prog_make_${ac_make}_set=yes;;
4124 *)
4125 eval ac_cv_prog_make_${ac_make}_set=no;;
4126 esac
4127 rm -f conftest.make
4128 fi
4129 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131 $as_echo "yes" >&6; }
4132 SET_MAKE=
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 SET_MAKE="MAKE=${MAKE-make}"
4137 fi
4138
4139 case `pwd` in
4140 *\ * | *\ *)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4142 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4143 esac
4144
4145
4146
4147 macro_version='2.4.6'
4148 macro_revision='2.4.6'
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162 ltmain=$ac_aux_dir/ltmain.sh
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4165 $as_echo_n "checking host system type... " >&6; }
4166 if ${ac_cv_host+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test "x$host_alias" = x; then
4170 ac_cv_host=$ac_cv_build
4171 else
4172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4174 fi
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4178 $as_echo "$ac_cv_host" >&6; }
4179 case $ac_cv_host in
4180 *-*-*) ;;
4181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4182 esac
4183 host=$ac_cv_host
4184 ac_save_IFS=$IFS; IFS='-'
4185 set x $ac_cv_host
4186 shift
4187 host_cpu=$1
4188 host_vendor=$2
4189 shift; shift
4190 # Remember, the first character of IFS is used to create $*,
4191 # except with old shells:
4192 host_os=$*
4193 IFS=$ac_save_IFS
4194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4195
4196
4197 # Backslashify metacharacters that are still active within
4198 # double-quoted strings.
4199 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4200
4201 # Same as above, but do not quote variable references.
4202 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4203
4204 # Sed substitution to delay expansion of an escaped shell variable in a
4205 # double_quote_subst'ed string.
4206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4207
4208 # Sed substitution to delay expansion of an escaped single quote.
4209 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4210
4211 # Sed substitution to avoid accidental globbing in evaled expressions
4212 no_glob_subst='s/\*/\\\*/g'
4213
4214 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4215 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4219 $as_echo_n "checking how to print strings... " >&6; }
4220 # Test print first, because it will be a builtin if present.
4221 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4222 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4223 ECHO='print -r --'
4224 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4225 ECHO='printf %s\n'
4226 else
4227 # Use this function as a fallback that always works.
4228 func_fallback_echo ()
4229 {
4230 eval 'cat <<_LTECHO_EOF
4231 $1
4232 _LTECHO_EOF'
4233 }
4234 ECHO='func_fallback_echo'
4235 fi
4236
4237 # func_echo_all arg...
4238 # Invoke $ECHO with all args, space-separated.
4239 func_echo_all ()
4240 {
4241 $ECHO ""
4242 }
4243
4244 case $ECHO in
4245 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4246 $as_echo "printf" >&6; } ;;
4247 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4248 $as_echo "print -r" >&6; } ;;
4249 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4250 $as_echo "cat" >&6; } ;;
4251 esac
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4268 if ${ac_cv_path_SED+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4272 for ac_i in 1 2 3 4 5 6 7; do
4273 ac_script="$ac_script$as_nl$ac_script"
4274 done
4275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4276 { ac_script=; unset ac_script;}
4277 if test -z "$SED"; then
4278 ac_path_SED_found=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in sed gsed; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4288 as_fn_executable_p "$ac_path_SED" || continue
4289 # Check for GNU ac_path_SED and select it if it is found.
4290 # Check for GNU $ac_path_SED
4291 case `"$ac_path_SED" --version 2>&1` in
4292 *GNU*)
4293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4294 *)
4295 ac_count=0
4296 $as_echo_n 0123456789 >"conftest.in"
4297 while :
4298 do
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo '' >> "conftest.nl"
4303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 as_fn_arith $ac_count + 1 && ac_count=$as_val
4306 if test $ac_count -gt ${ac_path_SED_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_SED="$ac_path_SED"
4309 ac_path_SED_max=$ac_count
4310 fi
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 esac
4316
4317 $ac_path_SED_found && break 3
4318 done
4319 done
4320 done
4321 IFS=$as_save_IFS
4322 if test -z "$ac_cv_path_SED"; then
4323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4324 fi
4325 else
4326 ac_cv_path_SED=$SED
4327 fi
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4331 $as_echo "$ac_cv_path_SED" >&6; }
4332 SED="$ac_cv_path_SED"
4333 rm -f conftest.sed
4334
4335 test -z "$SED" && SED=sed
4336 Xsed="$SED -e 1s/^X//"
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4350 if ${ac_cv_path_GREP+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -z "$GREP"; then
4354 ac_path_GREP_found=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in grep ggrep; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4364 as_fn_executable_p "$ac_path_GREP" || continue
4365 # Check for GNU ac_path_GREP and select it if it is found.
4366 # Check for GNU $ac_path_GREP
4367 case `"$ac_path_GREP" --version 2>&1` in
4368 *GNU*)
4369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370 *)
4371 ac_count=0
4372 $as_echo_n 0123456789 >"conftest.in"
4373 while :
4374 do
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo 'GREP' >> "conftest.nl"
4379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_GREP="$ac_path_GREP"
4385 ac_path_GREP_max=$ac_count
4386 fi
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4389 done
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393 $ac_path_GREP_found && break 3
4394 done
4395 done
4396 done
4397 IFS=$as_save_IFS
4398 if test -z "$ac_cv_path_GREP"; then
4399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400 fi
4401 else
4402 ac_cv_path_GREP=$GREP
4403 fi
4404
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4407 $as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4412 $as_echo_n "checking for egrep... " >&6; }
4413 if ${ac_cv_path_EGREP+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417 then ac_cv_path_EGREP="$GREP -E"
4418 else
4419 if test -z "$EGREP"; then
4420 ac_path_EGREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in egrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4430 as_fn_executable_p "$ac_path_EGREP" || continue
4431 # Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433 case `"$ac_path_EGREP" --version 2>&1` in
4434 *GNU*)
4435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436 *)
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
4440 do
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'EGREP' >> "conftest.nl"
4445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447 as_fn_arith $ac_count + 1 && ac_count=$as_val
4448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_EGREP="$ac_path_EGREP"
4451 ac_path_EGREP_max=$ac_count
4452 fi
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 esac
4458
4459 $ac_path_EGREP_found && break 3
4460 done
4461 done
4462 done
4463 IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_EGREP"; then
4465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466 fi
4467 else
4468 ac_cv_path_EGREP=$EGREP
4469 fi
4470
4471 fi
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4474 $as_echo "$ac_cv_path_EGREP" >&6; }
4475 EGREP="$ac_cv_path_EGREP"
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4479 $as_echo_n "checking for fgrep... " >&6; }
4480 if ${ac_cv_path_FGREP+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4484 then ac_cv_path_FGREP="$GREP -F"
4485 else
4486 if test -z "$FGREP"; then
4487 ac_path_FGREP_found=false
4488 # Loop through the user's path and test for each of PROGNAME-LIST
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_prog in fgrep; do
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4497 as_fn_executable_p "$ac_path_FGREP" || continue
4498 # Check for GNU ac_path_FGREP and select it if it is found.
4499 # Check for GNU $ac_path_FGREP
4500 case `"$ac_path_FGREP" --version 2>&1` in
4501 *GNU*)
4502 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4503 *)
4504 ac_count=0
4505 $as_echo_n 0123456789 >"conftest.in"
4506 while :
4507 do
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 $as_echo 'FGREP' >> "conftest.nl"
4512 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 as_fn_arith $ac_count + 1 && ac_count=$as_val
4515 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_FGREP="$ac_path_FGREP"
4518 ac_path_FGREP_max=$ac_count
4519 fi
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4522 done
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526 $ac_path_FGREP_found && break 3
4527 done
4528 done
4529 done
4530 IFS=$as_save_IFS
4531 if test -z "$ac_cv_path_FGREP"; then
4532 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 fi
4534 else
4535 ac_cv_path_FGREP=$FGREP
4536 fi
4537
4538 fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4541 $as_echo "$ac_cv_path_FGREP" >&6; }
4542 FGREP="$ac_cv_path_FGREP"
4543
4544
4545 test -z "$GREP" && GREP=grep
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 # Check whether --with-gnu-ld was given.
4566 if test "${with_gnu_ld+set}" = set; then :
4567 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4568 else
4569 with_gnu_ld=no
4570 fi
4571
4572 ac_prog=ld
4573 if test yes = "$GCC"; then
4574 # Check if gcc -print-prog-name=ld gives a path.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4576 $as_echo_n "checking for ld used by $CC... " >&6; }
4577 case $host in
4578 *-*-mingw*)
4579 # gcc leaves a trailing carriage return, which upsets mingw
4580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4581 *)
4582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4583 esac
4584 case $ac_prog in
4585 # Accept absolute paths.
4586 [\\/]* | ?:[\\/]*)
4587 re_direlt='/[^/][^/]*/\.\./'
4588 # Canonicalize the pathname of ld
4589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4592 done
4593 test -z "$LD" && LD=$ac_prog
4594 ;;
4595 "")
4596 # If it fails, then pretend we aren't using GCC.
4597 ac_prog=ld
4598 ;;
4599 *)
4600 # If it is relative, then search for the first ld in PATH.
4601 with_gnu_ld=unknown
4602 ;;
4603 esac
4604 elif test yes = "$with_gnu_ld"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4606 $as_echo_n "checking for GNU ld... " >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4609 $as_echo_n "checking for non-GNU ld... " >&6; }
4610 fi
4611 if ${lt_cv_path_LD+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -z "$LD"; then
4615 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4616 for ac_dir in $PATH; do
4617 IFS=$lt_save_ifs
4618 test -z "$ac_dir" && ac_dir=.
4619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4620 lt_cv_path_LD=$ac_dir/$ac_prog
4621 # Check to see if the program is GNU ld. I'd rather use --version,
4622 # but apparently some variants of GNU ld only accept -v.
4623 # Break only if it was the GNU/non-GNU ld that we prefer.
4624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4625 *GNU* | *'with BFD'*)
4626 test no != "$with_gnu_ld" && break
4627 ;;
4628 *)
4629 test yes != "$with_gnu_ld" && break
4630 ;;
4631 esac
4632 fi
4633 done
4634 IFS=$lt_save_ifs
4635 else
4636 lt_cv_path_LD=$LD # Let the user override the test with a path.
4637 fi
4638 fi
4639
4640 LD=$lt_cv_path_LD
4641 if test -n "$LD"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4643 $as_echo "$LD" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4651 if ${lt_cv_prog_gnu_ld+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4655 case `$LD -v 2>&1 </dev/null` in
4656 *GNU* | *'with BFD'*)
4657 lt_cv_prog_gnu_ld=yes
4658 ;;
4659 *)
4660 lt_cv_prog_gnu_ld=no
4661 ;;
4662 esac
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4665 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4666 with_gnu_ld=$lt_cv_prog_gnu_ld
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4677 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4678 if ${lt_cv_path_NM+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$NM"; then
4682 # Let the user override the test.
4683 lt_cv_path_NM=$NM
4684 else
4685 lt_nm_to_check=${ac_tool_prefix}nm
4686 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4687 lt_nm_to_check="$lt_nm_to_check nm"
4688 fi
4689 for lt_tmp_nm in $lt_nm_to_check; do
4690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4691 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4692 IFS=$lt_save_ifs
4693 test -z "$ac_dir" && ac_dir=.
4694 tmp_nm=$ac_dir/$lt_tmp_nm
4695 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4696 # Check to see if the nm accepts a BSD-compat flag.
4697 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4698 # nm: unknown option "B" ignored
4699 # Tru64's nm complains that /dev/null is an invalid object file
4700 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4701 case $build_os in
4702 mingw*) lt_bad_file=conftest.nm/nofile ;;
4703 *) lt_bad_file=/dev/null ;;
4704 esac
4705 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4706 *$lt_bad_file* | *'Invalid file or object type'*)
4707 lt_cv_path_NM="$tmp_nm -B"
4708 break 2
4709 ;;
4710 *)
4711 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4712 */dev/null*)
4713 lt_cv_path_NM="$tmp_nm -p"
4714 break 2
4715 ;;
4716 *)
4717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4718 continue # so that we can try to find one that supports BSD flags
4719 ;;
4720 esac
4721 ;;
4722 esac
4723 fi
4724 done
4725 IFS=$lt_save_ifs
4726 done
4727 : ${lt_cv_path_NM=no}
4728 fi
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4731 $as_echo "$lt_cv_path_NM" >&6; }
4732 if test no != "$lt_cv_path_NM"; then
4733 NM=$lt_cv_path_NM
4734 else
4735 # Didn't find any BSD compatible name lister, look for dumpbin.
4736 if test -n "$DUMPBIN"; then :
4737 # Let the user override the test.
4738 else
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in dumpbin "link -dump"
4741 do
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_prog_DUMPBIN+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 if test -n "$DUMPBIN"; then
4750 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 DUMPBIN=$ac_cv_prog_DUMPBIN
4770 if test -n "$DUMPBIN"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4772 $as_echo "$DUMPBIN" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 test -n "$DUMPBIN" && break
4780 done
4781 fi
4782 if test -z "$DUMPBIN"; then
4783 ac_ct_DUMPBIN=$DUMPBIN
4784 for ac_prog in dumpbin "link -dump"
4785 do
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$ac_ct_DUMPBIN"; then
4794 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4814 if test -n "$ac_ct_DUMPBIN"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4816 $as_echo "$ac_ct_DUMPBIN" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822
4823 test -n "$ac_ct_DUMPBIN" && break
4824 done
4825
4826 if test "x$ac_ct_DUMPBIN" = x; then
4827 DUMPBIN=":"
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 DUMPBIN=$ac_ct_DUMPBIN
4836 fi
4837 fi
4838
4839 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4840 *COFF*)
4841 DUMPBIN="$DUMPBIN -symbols -headers"
4842 ;;
4843 *)
4844 DUMPBIN=:
4845 ;;
4846 esac
4847 fi
4848
4849 if test : != "$DUMPBIN"; then
4850 NM=$DUMPBIN
4851 fi
4852 fi
4853 test -z "$NM" && NM=nm
4854
4855
4856
4857
4858
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4861 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4862 if ${lt_cv_nm_interface+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 lt_cv_nm_interface="BSD nm"
4866 echo "int some_variable = 0;" > conftest.$ac_ext
4867 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4868 (eval "$ac_compile" 2>conftest.err)
4869 cat conftest.err >&5
4870 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4871 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4872 cat conftest.err >&5
4873 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4874 cat conftest.out >&5
4875 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4876 lt_cv_nm_interface="MS dumpbin"
4877 fi
4878 rm -f conftest*
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4881 $as_echo "$lt_cv_nm_interface" >&6; }
4882
4883 # find the maximum length of command line arguments
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4885 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4886 if ${lt_cv_sys_max_cmd_len+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 i=0
4890 teststring=ABCD
4891
4892 case $build_os in
4893 msdosdjgpp*)
4894 # On DJGPP, this test can blow up pretty badly due to problems in libc
4895 # (any single argument exceeding 2000 bytes causes a buffer overrun
4896 # during glob expansion). Even if it were fixed, the result of this
4897 # check would be larger than it should be.
4898 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4899 ;;
4900
4901 gnu*)
4902 # Under GNU Hurd, this test is not required because there is
4903 # no limit to the length of command line arguments.
4904 # Libtool will interpret -1 as no limit whatsoever
4905 lt_cv_sys_max_cmd_len=-1;
4906 ;;
4907
4908 cygwin* | mingw* | cegcc*)
4909 # On Win9x/ME, this test blows up -- it succeeds, but takes
4910 # about 5 minutes as the teststring grows exponentially.
4911 # Worse, since 9x/ME are not pre-emptively multitasking,
4912 # you end up with a "frozen" computer, even though with patience
4913 # the test eventually succeeds (with a max line length of 256k).
4914 # Instead, let's just punt: use the minimum linelength reported by
4915 # all of the supported platforms: 8192 (on NT/2K/XP).
4916 lt_cv_sys_max_cmd_len=8192;
4917 ;;
4918
4919 mint*)
4920 # On MiNT this can take a long time and run out of memory.
4921 lt_cv_sys_max_cmd_len=8192;
4922 ;;
4923
4924 amigaos*)
4925 # On AmigaOS with pdksh, this test takes hours, literally.
4926 # So we just punt and use a minimum line length of 8192.
4927 lt_cv_sys_max_cmd_len=8192;
4928 ;;
4929
4930 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4931 # This has been around since 386BSD, at least. Likely further.
4932 if test -x /sbin/sysctl; then
4933 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4934 elif test -x /usr/sbin/sysctl; then
4935 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4936 else
4937 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4938 fi
4939 # And add a safety zone
4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942 ;;
4943
4944 interix*)
4945 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4946 lt_cv_sys_max_cmd_len=196608
4947 ;;
4948
4949 os2*)
4950 # The test takes a long time on OS/2.
4951 lt_cv_sys_max_cmd_len=8192
4952 ;;
4953
4954 osf*)
4955 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4956 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4957 # nice to cause kernel panics so lets avoid the loop below.
4958 # First set a reasonable default.
4959 lt_cv_sys_max_cmd_len=16384
4960 #
4961 if test -x /sbin/sysconfig; then
4962 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4963 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4964 esac
4965 fi
4966 ;;
4967 sco3.2v5*)
4968 lt_cv_sys_max_cmd_len=102400
4969 ;;
4970 sysv5* | sco5v6* | sysv4.2uw2*)
4971 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4972 if test -n "$kargmax"; then
4973 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4974 else
4975 lt_cv_sys_max_cmd_len=32768
4976 fi
4977 ;;
4978 *)
4979 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4980 if test -n "$lt_cv_sys_max_cmd_len" && \
4981 test undefined != "$lt_cv_sys_max_cmd_len"; then
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4984 else
4985 # Make teststring a little bigger before we do anything with it.
4986 # a 1K string should be a reasonable start.
4987 for i in 1 2 3 4 5 6 7 8; do
4988 teststring=$teststring$teststring
4989 done
4990 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4991 # If test is not a shell built-in, we'll probably end up computing a
4992 # maximum length that is only half of the actual maximum length, but
4993 # we can't tell.
4994 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4995 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4996 test 17 != "$i" # 1/2 MB should be enough
4997 do
4998 i=`expr $i + 1`
4999 teststring=$teststring$teststring
5000 done
5001 # Only check the string length outside the loop.
5002 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5003 teststring=
5004 # Add a significant safety factor because C++ compilers can tack on
5005 # massive amounts of additional arguments before passing them to the
5006 # linker. It appears as though 1/2 is a usable value.
5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5008 fi
5009 ;;
5010 esac
5011
5012 fi
5013
5014 if test -n "$lt_cv_sys_max_cmd_len"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5016 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5019 $as_echo "none" >&6; }
5020 fi
5021 max_cmd_len=$lt_cv_sys_max_cmd_len
5022
5023
5024
5025
5026
5027
5028 : ${CP="cp -f"}
5029 : ${MV="mv -f"}
5030 : ${RM="rm -f"}
5031
5032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5033 lt_unset=unset
5034 else
5035 lt_unset=false
5036 fi
5037
5038
5039
5040
5041
5042 # test EBCDIC or ASCII
5043 case `echo X|tr X '\101'` in
5044 A) # ASCII based system
5045 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5046 lt_SP2NL='tr \040 \012'
5047 lt_NL2SP='tr \015\012 \040\040'
5048 ;;
5049 *) # EBCDIC based system
5050 lt_SP2NL='tr \100 \n'
5051 lt_NL2SP='tr \r\n \100\100'
5052 ;;
5053 esac
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5064 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5065 if ${lt_cv_to_host_file_cmd+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 case $host in
5069 *-*-mingw* )
5070 case $build in
5071 *-*-mingw* ) # actually msys
5072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5073 ;;
5074 *-*-cygwin* )
5075 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5076 ;;
5077 * ) # otherwise, assume *nix
5078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5079 ;;
5080 esac
5081 ;;
5082 *-*-cygwin* )
5083 case $build in
5084 *-*-mingw* ) # actually msys
5085 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5086 ;;
5087 *-*-cygwin* )
5088 lt_cv_to_host_file_cmd=func_convert_file_noop
5089 ;;
5090 * ) # otherwise, assume *nix
5091 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5092 ;;
5093 esac
5094 ;;
5095 * ) # unhandled hosts (and "normal" native builds)
5096 lt_cv_to_host_file_cmd=func_convert_file_noop
5097 ;;
5098 esac
5099
5100 fi
5101
5102 to_host_file_cmd=$lt_cv_to_host_file_cmd
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5104 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5105
5106
5107
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5111 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5112 if ${lt_cv_to_tool_file_cmd+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 #assume ordinary cross tools, or native build.
5116 lt_cv_to_tool_file_cmd=func_convert_file_noop
5117 case $host in
5118 *-*-mingw* )
5119 case $build in
5120 *-*-mingw* ) # actually msys
5121 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5122 ;;
5123 esac
5124 ;;
5125 esac
5126
5127 fi
5128
5129 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5131 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5138 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5139 if ${lt_cv_ld_reload_flag+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 lt_cv_ld_reload_flag='-r'
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5145 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5146 reload_flag=$lt_cv_ld_reload_flag
5147 case $reload_flag in
5148 "" | " "*) ;;
5149 *) reload_flag=" $reload_flag" ;;
5150 esac
5151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5152 case $host_os in
5153 cygwin* | mingw* | pw32* | cegcc*)
5154 if test yes != "$GCC"; then
5155 reload_cmds=false
5156 fi
5157 ;;
5158 darwin*)
5159 if test yes = "$GCC"; then
5160 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5161 else
5162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5163 fi
5164 ;;
5165 esac
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_OBJDUMP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$OBJDUMP"; then
5184 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 OBJDUMP=$ac_cv_prog_OBJDUMP
5204 if test -n "$OBJDUMP"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5206 $as_echo "$OBJDUMP" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213 fi
5214 if test -z "$ac_cv_prog_OBJDUMP"; then
5215 ac_ct_OBJDUMP=$OBJDUMP
5216 # Extract the first word of "objdump", so it can be a program name with args.
5217 set dummy objdump; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$ac_ct_OBJDUMP"; then
5224 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237 done
5238 done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5244 if test -n "$ac_ct_OBJDUMP"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5246 $as_echo "$ac_ct_OBJDUMP" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252 if test "x$ac_ct_OBJDUMP" = x; then
5253 OBJDUMP="false"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 OBJDUMP=$ac_ct_OBJDUMP
5262 fi
5263 else
5264 OBJDUMP="$ac_cv_prog_OBJDUMP"
5265 fi
5266
5267 test -z "$OBJDUMP" && OBJDUMP=objdump
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5278 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5279 if ${lt_cv_deplibs_check_method+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 lt_cv_file_magic_cmd='$MAGIC_CMD'
5283 lt_cv_file_magic_test_file=
5284 lt_cv_deplibs_check_method='unknown'
5285 # Need to set the preceding variable on all platforms that support
5286 # interlibrary dependencies.
5287 # 'none' -- dependencies not supported.
5288 # 'unknown' -- same as none, but documents that we really don't know.
5289 # 'pass_all' -- all dependencies passed with no checks.
5290 # 'test_compile' -- check by making test program.
5291 # 'file_magic [[regex]]' -- check by looking for files in library path
5292 # that responds to the $file_magic_cmd with a given extended regex.
5293 # If you have 'file' or equivalent on your system and you're not sure
5294 # whether 'pass_all' will *always* work, you probably want this one.
5295
5296 case $host_os in
5297 aix[4-9]*)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301 beos*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305 bsdi[45]*)
5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5307 lt_cv_file_magic_cmd='/usr/bin/file -L'
5308 lt_cv_file_magic_test_file=/shlib/libc.so
5309 ;;
5310
5311 cygwin*)
5312 # func_win32_libid is a shell function defined in ltmain.sh
5313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5314 lt_cv_file_magic_cmd='func_win32_libid'
5315 ;;
5316
5317 mingw* | pw32*)
5318 # Base MSYS/MinGW do not provide the 'file' command needed by
5319 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5320 # unless we find 'file', for example because we are cross-compiling.
5321 if ( file / ) >/dev/null 2>&1; then
5322 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5323 lt_cv_file_magic_cmd='func_win32_libid'
5324 else
5325 # Keep this pattern in sync with the one in func_win32_libid.
5326 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5327 lt_cv_file_magic_cmd='$OBJDUMP -f'
5328 fi
5329 ;;
5330
5331 cegcc*)
5332 # use the weaker test based on 'objdump'. See mingw*.
5333 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5334 lt_cv_file_magic_cmd='$OBJDUMP -f'
5335 ;;
5336
5337 darwin* | rhapsody*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340
5341 freebsd* | dragonfly*)
5342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5343 case $host_cpu in
5344 i*86 )
5345 # Not sure whether the presence of OpenBSD here was a mistake.
5346 # Let's accept both of them until this is cleared up.
5347 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5348 lt_cv_file_magic_cmd=/usr/bin/file
5349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5350 ;;
5351 esac
5352 else
5353 lt_cv_deplibs_check_method=pass_all
5354 fi
5355 ;;
5356
5357 haiku*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361 hpux10.20* | hpux11*)
5362 lt_cv_file_magic_cmd=/usr/bin/file
5363 case $host_cpu in
5364 ia64*)
5365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5367 ;;
5368 hppa*64*)
5369 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]'
5370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5371 ;;
5372 *)
5373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5375 ;;
5376 esac
5377 ;;
5378
5379 interix[3-9]*)
5380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5382 ;;
5383
5384 irix5* | irix6* | nonstopux*)
5385 case $LD in
5386 *-32|*"-32 ") libmagic=32-bit;;
5387 *-n32|*"-n32 ") libmagic=N32;;
5388 *-64|*"-64 ") libmagic=64-bit;;
5389 *) libmagic=never-match;;
5390 esac
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394 # This must be glibc/ELF.
5395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399 netbsd* | netbsdelf*-gnu)
5400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5402 else
5403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5404 fi
5405 ;;
5406
5407 newos6*)
5408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5409 lt_cv_file_magic_cmd=/usr/bin/file
5410 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5411 ;;
5412
5413 *nto* | *qnx*)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416
5417 openbsd* | bitrig*)
5418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5420 else
5421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5422 fi
5423 ;;
5424
5425 osf3* | osf4* | osf5*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429 rdos*)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 solaris*)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436
5437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440
5441 sysv4 | sysv4.3*)
5442 case $host_vendor in
5443 motorola)
5444 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]'
5445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5446 ;;
5447 ncr)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450 sequent)
5451 lt_cv_file_magic_cmd='/bin/file'
5452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5453 ;;
5454 sni)
5455 lt_cv_file_magic_cmd='/bin/file'
5456 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5457 lt_cv_file_magic_test_file=/lib/libc.so
5458 ;;
5459 siemens)
5460 lt_cv_deplibs_check_method=pass_all
5461 ;;
5462 pc)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465 esac
5466 ;;
5467
5468 tpf*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471 os2*)
5472 lt_cv_deplibs_check_method=pass_all
5473 ;;
5474 esac
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5478 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5479
5480 file_magic_glob=
5481 want_nocaseglob=no
5482 if test "$build" = "$host"; then
5483 case $host_os in
5484 mingw* | pw32*)
5485 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5486 want_nocaseglob=yes
5487 else
5488 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5489 fi
5490 ;;
5491 esac
5492 fi
5493
5494 file_magic_cmd=$lt_cv_file_magic_cmd
5495 deplibs_check_method=$lt_cv_deplibs_check_method
5496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_DLLTOOL+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -n "$DLLTOOL"; then
5528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5540 fi
5541 done
5542 done
5543 IFS=$as_save_IFS
5544
5545 fi
5546 fi
5547 DLLTOOL=$ac_cv_prog_DLLTOOL
5548 if test -n "$DLLTOOL"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5550 $as_echo "$DLLTOOL" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 fi
5558 if test -z "$ac_cv_prog_DLLTOOL"; then
5559 ac_ct_DLLTOOL=$DLLTOOL
5560 # Extract the first word of "dlltool", so it can be a program name with args.
5561 set dummy dlltool; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$ac_ct_DLLTOOL"; then
5568 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5588 if test -n "$ac_ct_DLLTOOL"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5590 $as_echo "$ac_ct_DLLTOOL" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596 if test "x$ac_ct_DLLTOOL" = x; then
5597 DLLTOOL="false"
5598 else
5599 case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605 DLLTOOL=$ac_ct_DLLTOOL
5606 fi
5607 else
5608 DLLTOOL="$ac_cv_prog_DLLTOOL"
5609 fi
5610
5611 test -z "$DLLTOOL" && DLLTOOL=dlltool
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5623 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5624 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 lt_cv_sharedlib_from_linklib_cmd='unknown'
5628
5629 case $host_os in
5630 cygwin* | mingw* | pw32* | cegcc*)
5631 # two different shell functions defined in ltmain.sh;
5632 # decide which one to use based on capabilities of $DLLTOOL
5633 case `$DLLTOOL --help 2>&1` in
5634 *--identify-strict*)
5635 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5636 ;;
5637 *)
5638 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5639 ;;
5640 esac
5641 ;;
5642 *)
5643 # fallback: assume linklib IS sharedlib
5644 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5645 ;;
5646 esac
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5650 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5651 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5652 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5653
5654
5655
5656
5657
5658
5659
5660
5661 if test -n "$ac_tool_prefix"; then
5662 for ac_prog in ar
5663 do
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_AR+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$AR"; then
5672 ac_cv_prog_AR="$AR" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 AR=$ac_cv_prog_AR
5692 if test -n "$AR"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5694 $as_echo "$AR" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 test -n "$AR" && break
5702 done
5703 fi
5704 if test -z "$AR"; then
5705 ac_ct_AR=$AR
5706 for ac_prog in ar
5707 do
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy $ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$ac_ct_AR"; then
5716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_ac_ct_AR="$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5736 if test -n "$ac_ct_AR"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5738 $as_echo "$ac_ct_AR" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 test -n "$ac_ct_AR" && break
5746 done
5747
5748 if test "x$ac_ct_AR" = x; then
5749 AR="false"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752 yes:)
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755 ac_tool_warned=yes ;;
5756 esac
5757 AR=$ac_ct_AR
5758 fi
5759 fi
5760
5761 : ${AR=ar}
5762 : ${AR_FLAGS=cr}
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5775 $as_echo_n "checking for archiver @FILE support... " >&6; }
5776 if ${lt_cv_ar_at_file+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 lt_cv_ar_at_file=no
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782
5783 int
5784 main ()
5785 {
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 echo conftest.$ac_objext > conftest.lst
5793 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5795 (eval $lt_ar_try) 2>&5
5796 ac_status=$?
5797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798 test $ac_status = 0; }
5799 if test 0 -eq "$ac_status"; then
5800 # Ensure the archiver fails upon bogus file names.
5801 rm -f conftest.$ac_objext libconftest.a
5802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5803 (eval $lt_ar_try) 2>&5
5804 ac_status=$?
5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }
5807 if test 0 -ne "$ac_status"; then
5808 lt_cv_ar_at_file=@
5809 fi
5810 fi
5811 rm -f conftest.* libconftest.a
5812
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5818 $as_echo "$lt_cv_ar_at_file" >&6; }
5819
5820 if test no = "$lt_cv_ar_at_file"; then
5821 archiver_list_spec=
5822 else
5823 archiver_list_spec=$lt_cv_ar_at_file
5824 fi
5825
5826
5827
5828
5829
5830
5831
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}strip; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_STRIP+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$STRIP"; then
5841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 STRIP=$ac_cv_prog_STRIP
5861 if test -n "$STRIP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5863 $as_echo "$STRIP" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870 fi
5871 if test -z "$ac_cv_prog_STRIP"; then
5872 ac_ct_STRIP=$STRIP
5873 # Extract the first word of "strip", so it can be a program name with args.
5874 set dummy strip; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$ac_ct_STRIP"; then
5881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_STRIP="strip"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5901 if test -n "$ac_ct_STRIP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5903 $as_echo "$ac_ct_STRIP" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909 if test "x$ac_ct_STRIP" = x; then
5910 STRIP=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918 STRIP=$ac_ct_STRIP
5919 fi
5920 else
5921 STRIP="$ac_cv_prog_STRIP"
5922 fi
5923
5924 test -z "$STRIP" && STRIP=:
5925
5926
5927
5928
5929
5930
5931 if test -n "$ac_tool_prefix"; then
5932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_RANLIB+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test -n "$RANLIB"; then
5940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 RANLIB=$ac_cv_prog_RANLIB
5960 if test -n "$RANLIB"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5962 $as_echo "$RANLIB" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968
5969 fi
5970 if test -z "$ac_cv_prog_RANLIB"; then
5971 ac_ct_RANLIB=$RANLIB
5972 # Extract the first word of "ranlib", so it can be a program name with args.
5973 set dummy ranlib; ac_word=$2
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test -n "$ac_ct_RANLIB"; then
5980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_ac_ct_RANLIB="ranlib"
5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6000 if test -n "$ac_ct_RANLIB"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6002 $as_echo "$ac_ct_RANLIB" >&6; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008 if test "x$ac_ct_RANLIB" = x; then
6009 RANLIB=":"
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012 yes:)
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015 ac_tool_warned=yes ;;
6016 esac
6017 RANLIB=$ac_ct_RANLIB
6018 fi
6019 else
6020 RANLIB="$ac_cv_prog_RANLIB"
6021 fi
6022
6023 test -z "$RANLIB" && RANLIB=:
6024
6025
6026
6027
6028
6029
6030 # Determine commands to create old-style static archives.
6031 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6032 old_postinstall_cmds='chmod 644 $oldlib'
6033 old_postuninstall_cmds=
6034
6035 if test -n "$RANLIB"; then
6036 case $host_os in
6037 bitrig* | openbsd*)
6038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6039 ;;
6040 *)
6041 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6042 ;;
6043 esac
6044 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6045 fi
6046
6047 case $host_os in
6048 darwin*)
6049 lock_old_archive_extraction=yes ;;
6050 *)
6051 lock_old_archive_extraction=no ;;
6052 esac
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 # If no C compiler was specified, use CC.
6093 LTCC=${LTCC-"$CC"}
6094
6095 # If no C compiler flags were specified, use CFLAGS.
6096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6097
6098 # Allow CC to be a program name with arguments.
6099 compiler=$CC
6100
6101
6102 # Check for command to grab the raw symbol name followed by C symbol from nm.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6104 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6105 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108
6109 # These are sane defaults that work on at least a few old systems.
6110 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6111
6112 # Character class describing NM global symbol codes.
6113 symcode='[BCDEGRST]'
6114
6115 # Regexp to match symbols that can be accessed directly from C.
6116 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6117
6118 # Define system-specific variables.
6119 case $host_os in
6120 aix*)
6121 symcode='[BCDT]'
6122 ;;
6123 cygwin* | mingw* | pw32* | cegcc*)
6124 symcode='[ABCDGISTW]'
6125 ;;
6126 hpux*)
6127 if test ia64 = "$host_cpu"; then
6128 symcode='[ABCDEGRST]'
6129 fi
6130 ;;
6131 irix* | nonstopux*)
6132 symcode='[BCDEGRST]'
6133 ;;
6134 osf*)
6135 symcode='[BCDEGQRST]'
6136 ;;
6137 solaris*)
6138 symcode='[BDRT]'
6139 ;;
6140 sco3.2v5*)
6141 symcode='[DT]'
6142 ;;
6143 sysv4.2uw2*)
6144 symcode='[DT]'
6145 ;;
6146 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6147 symcode='[ABDT]'
6148 ;;
6149 sysv4)
6150 symcode='[DFNSTU]'
6151 ;;
6152 esac
6153
6154 # If we're using GNU nm, then use its standard symbol codes.
6155 case `$NM -V 2>&1` in
6156 *GNU* | *'with BFD'*)
6157 symcode='[ABCDGIRSTW]' ;;
6158 esac
6159
6160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6161 # Gets list of data symbols to import.
6162 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6163 # Adjust the below global symbol transforms to fixup imported variables.
6164 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6165 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6166 lt_c_name_lib_hook="\
6167 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6168 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6169 else
6170 # Disable hooks by default.
6171 lt_cv_sys_global_symbol_to_import=
6172 lt_cdecl_hook=
6173 lt_c_name_hook=
6174 lt_c_name_lib_hook=
6175 fi
6176
6177 # Transform an extracted symbol line into a proper C declaration.
6178 # Some systems (esp. on ia64) link data and code symbols differently,
6179 # so use this general approach.
6180 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6181 $lt_cdecl_hook\
6182 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6183 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6184
6185 # Transform an extracted symbol line into symbol name and symbol address
6186 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6187 $lt_c_name_hook\
6188 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6189 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6190
6191 # Transform an extracted symbol line into symbol name with lib prefix and
6192 # symbol address.
6193 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6194 $lt_c_name_lib_hook\
6195 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6196 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6197 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6198
6199 # Handle CRLF in mingw tool chain
6200 opt_cr=
6201 case $build_os in
6202 mingw*)
6203 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6204 ;;
6205 esac
6206
6207 # Try without a prefix underscore, then with it.
6208 for ac_symprfx in "" "_"; do
6209
6210 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6211 symxfrm="\\1 $ac_symprfx\\2 \\2"
6212
6213 # Write the raw and C identifiers.
6214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6215 # Fake it for dumpbin and say T for any non-static function,
6216 # D for any global variable and I for any imported variable.
6217 # Also find C++ and __fastcall symbols from MSVC++,
6218 # which start with @ or ?.
6219 lt_cv_sys_global_symbol_pipe="$AWK '"\
6220 " {last_section=section; section=\$ 3};"\
6221 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6222 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6223 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6224 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6225 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6226 " \$ 0!~/External *\|/{next};"\
6227 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6228 " {if(hide[section]) next};"\
6229 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6230 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6231 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6232 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6233 " ' prfx=^$ac_symprfx"
6234 else
6235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6236 fi
6237 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6238
6239 # Check to see that the pipe works correctly.
6240 pipe_works=no
6241
6242 rm -f conftest*
6243 cat > conftest.$ac_ext <<_LT_EOF
6244 #ifdef __cplusplus
6245 extern "C" {
6246 #endif
6247 char nm_test_var;
6248 void nm_test_func(void);
6249 void nm_test_func(void){}
6250 #ifdef __cplusplus
6251 }
6252 #endif
6253 int main(){nm_test_var='a';nm_test_func();return(0);}
6254 _LT_EOF
6255
6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257 (eval $ac_compile) 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }; then
6261 # Now try to grab the symbols.
6262 nlist=conftest.nm
6263 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6264 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6265 # Try sorting and uniquifying the output.
6266 if sort "$nlist" | uniq > "$nlist"T; then
6267 mv -f "$nlist"T "$nlist"
6268 else
6269 rm -f "$nlist"T
6270 fi
6271
6272 # Make sure that we snagged all the symbols we need.
6273 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6274 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6275 cat <<_LT_EOF > conftest.$ac_ext
6276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6277 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6278 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6279 relocations are performed -- see ld's documentation on pseudo-relocs. */
6280 # define LT_DLSYM_CONST
6281 #elif defined __osf__
6282 /* This system does not cope well with relocations in const data. */
6283 # define LT_DLSYM_CONST
6284 #else
6285 # define LT_DLSYM_CONST const
6286 #endif
6287
6288 #ifdef __cplusplus
6289 extern "C" {
6290 #endif
6291
6292 _LT_EOF
6293 # Now generate the symbol file.
6294 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6295
6296 cat <<_LT_EOF >> conftest.$ac_ext
6297
6298 /* The mapping between symbol names and symbols. */
6299 LT_DLSYM_CONST struct {
6300 const char *name;
6301 void *address;
6302 }
6303 lt__PROGRAM__LTX_preloaded_symbols[] =
6304 {
6305 { "@PROGRAM@", (void *) 0 },
6306 _LT_EOF
6307 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6308 cat <<\_LT_EOF >> conftest.$ac_ext
6309 {0, (void *) 0}
6310 };
6311
6312 /* This works around a problem in FreeBSD linker */
6313 #ifdef FREEBSD_WORKAROUND
6314 static const void *lt_preloaded_setup() {
6315 return lt__PROGRAM__LTX_preloaded_symbols;
6316 }
6317 #endif
6318
6319 #ifdef __cplusplus
6320 }
6321 #endif
6322 _LT_EOF
6323 # Now try linking the two files.
6324 mv conftest.$ac_objext conftstm.$ac_objext
6325 lt_globsym_save_LIBS=$LIBS
6326 lt_globsym_save_CFLAGS=$CFLAGS
6327 LIBS=conftstm.$ac_objext
6328 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6330 (eval $ac_link) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6334 pipe_works=yes
6335 fi
6336 LIBS=$lt_globsym_save_LIBS
6337 CFLAGS=$lt_globsym_save_CFLAGS
6338 else
6339 echo "cannot find nm_test_func in $nlist" >&5
6340 fi
6341 else
6342 echo "cannot find nm_test_var in $nlist" >&5
6343 fi
6344 else
6345 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6346 fi
6347 else
6348 echo "$progname: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6350 fi
6351 rm -rf conftest* conftst*
6352
6353 # Do not use the global_symbol_pipe unless it works.
6354 if test yes = "$pipe_works"; then
6355 break
6356 else
6357 lt_cv_sys_global_symbol_pipe=
6358 fi
6359 done
6360
6361 fi
6362
6363 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6364 lt_cv_sys_global_symbol_to_cdecl=
6365 fi
6366 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6368 $as_echo "failed" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6371 $as_echo "ok" >&6; }
6372 fi
6373
6374 # Response file support.
6375 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6376 nm_file_list_spec='@'
6377 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6378 nm_file_list_spec='@'
6379 fi
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6418 $as_echo_n "checking for sysroot... " >&6; }
6419
6420 # Check whether --with-sysroot was given.
6421 if test "${with_sysroot+set}" = set; then :
6422 withval=$with_sysroot;
6423 else
6424 with_sysroot=no
6425 fi
6426
6427
6428 lt_sysroot=
6429 case $with_sysroot in #(
6430 yes)
6431 if test yes = "$GCC"; then
6432 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6433 fi
6434 ;; #(
6435 /*)
6436 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6437 ;; #(
6438 no|'')
6439 ;; #(
6440 *)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6442 $as_echo "$with_sysroot" >&6; }
6443 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6444 ;;
6445 esac
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6448 $as_echo "${lt_sysroot:-no}" >&6; }
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6455 $as_echo_n "checking for a working dd... " >&6; }
6456 if ${ac_cv_path_lt_DD+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 printf 0123456789abcdef0123456789abcdef >conftest.i
6460 cat conftest.i conftest.i >conftest2.i
6461 : ${lt_DD:=$DD}
6462 if test -z "$lt_DD"; then
6463 ac_path_lt_DD_found=false
6464 # Loop through the user's path and test for each of PROGNAME-LIST
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_prog in dd; do
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6473 as_fn_executable_p "$ac_path_lt_DD" || continue
6474 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6475 cmp -s conftest.i conftest.out \
6476 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6477 fi
6478 $ac_path_lt_DD_found && break 3
6479 done
6480 done
6481 done
6482 IFS=$as_save_IFS
6483 if test -z "$ac_cv_path_lt_DD"; then
6484 :
6485 fi
6486 else
6487 ac_cv_path_lt_DD=$lt_DD
6488 fi
6489
6490 rm -f conftest.i conftest2.i conftest.out
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6493 $as_echo "$ac_cv_path_lt_DD" >&6; }
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6497 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6498 if ${lt_cv_truncate_bin+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 printf 0123456789abcdef0123456789abcdef >conftest.i
6502 cat conftest.i conftest.i >conftest2.i
6503 lt_cv_truncate_bin=
6504 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6505 cmp -s conftest.i conftest.out \
6506 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6507 fi
6508 rm -f conftest.i conftest2.i conftest.out
6509 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6512 $as_echo "$lt_cv_truncate_bin" >&6; }
6513
6514
6515
6516
6517
6518
6519
6520 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6521 func_cc_basename ()
6522 {
6523 for cc_temp in $*""; do
6524 case $cc_temp in
6525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6527 \-*) ;;
6528 *) break;;
6529 esac
6530 done
6531 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6532 }
6533
6534 # Check whether --enable-libtool-lock was given.
6535 if test "${enable_libtool_lock+set}" = set; then :
6536 enableval=$enable_libtool_lock;
6537 fi
6538
6539 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6540
6541 # Some flags need to be propagated to the compiler or linker for good
6542 # libtool support.
6543 case $host in
6544 ia64-*-hpux*)
6545 # Find out what ABI is being produced by ac_compile, and set mode
6546 # options accordingly.
6547 echo 'int i;' > conftest.$ac_ext
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549 (eval $ac_compile) 2>&5
6550 ac_status=$?
6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; }; then
6553 case `/usr/bin/file conftest.$ac_objext` in
6554 *ELF-32*)
6555 HPUX_IA64_MODE=32
6556 ;;
6557 *ELF-64*)
6558 HPUX_IA64_MODE=64
6559 ;;
6560 esac
6561 fi
6562 rm -rf conftest*
6563 ;;
6564 *-*-irix6*)
6565 # Find out what ABI is being produced by ac_compile, and set linker
6566 # options accordingly.
6567 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6569 (eval $ac_compile) 2>&5
6570 ac_status=$?
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }; then
6573 if test yes = "$lt_cv_prog_gnu_ld"; then
6574 case `/usr/bin/file conftest.$ac_objext` in
6575 *32-bit*)
6576 LD="${LD-ld} -melf32bsmip"
6577 ;;
6578 *N32*)
6579 LD="${LD-ld} -melf32bmipn32"
6580 ;;
6581 *64-bit*)
6582 LD="${LD-ld} -melf64bmip"
6583 ;;
6584 esac
6585 else
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *32-bit*)
6588 LD="${LD-ld} -32"
6589 ;;
6590 *N32*)
6591 LD="${LD-ld} -n32"
6592 ;;
6593 *64-bit*)
6594 LD="${LD-ld} -64"
6595 ;;
6596 esac
6597 fi
6598 fi
6599 rm -rf conftest*
6600 ;;
6601
6602 mips64*-*linux*)
6603 # Find out what ABI is being produced by ac_compile, and set linker
6604 # options accordingly.
6605 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }; then
6611 emul=elf
6612 case `/usr/bin/file conftest.$ac_objext` in
6613 *32-bit*)
6614 emul="${emul}32"
6615 ;;
6616 *64-bit*)
6617 emul="${emul}64"
6618 ;;
6619 esac
6620 case `/usr/bin/file conftest.$ac_objext` in
6621 *MSB*)
6622 emul="${emul}btsmip"
6623 ;;
6624 *LSB*)
6625 emul="${emul}ltsmip"
6626 ;;
6627 esac
6628 case `/usr/bin/file conftest.$ac_objext` in
6629 *N32*)
6630 emul="${emul}n32"
6631 ;;
6632 esac
6633 LD="${LD-ld} -m $emul"
6634 fi
6635 rm -rf conftest*
6636 ;;
6637
6638 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6639 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6640 # Find out what ABI is being produced by ac_compile, and set linker
6641 # options accordingly. Note that the listed cases only cover the
6642 # situations where additional linker options are needed (such as when
6643 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6644 # vice versa); the common cases where no linker options are needed do
6645 # not appear in the list.
6646 echo 'int i;' > conftest.$ac_ext
6647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6648 (eval $ac_compile) 2>&5
6649 ac_status=$?
6650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651 test $ac_status = 0; }; then
6652 case `/usr/bin/file conftest.o` in
6653 *32-bit*)
6654 case $host in
6655 x86_64-*kfreebsd*-gnu)
6656 LD="${LD-ld} -m elf_i386_fbsd"
6657 ;;
6658 x86_64-*linux*)
6659 case `/usr/bin/file conftest.o` in
6660 *x86-64*)
6661 LD="${LD-ld} -m elf32_x86_64"
6662 ;;
6663 *)
6664 LD="${LD-ld} -m elf_i386"
6665 ;;
6666 esac
6667 ;;
6668 powerpc64le-*linux*)
6669 LD="${LD-ld} -m elf32lppclinux"
6670 ;;
6671 powerpc64-*linux*)
6672 LD="${LD-ld} -m elf32ppclinux"
6673 ;;
6674 s390x-*linux*)
6675 LD="${LD-ld} -m elf_s390"
6676 ;;
6677 sparc64-*linux*)
6678 LD="${LD-ld} -m elf32_sparc"
6679 ;;
6680 esac
6681 ;;
6682 *64-bit*)
6683 case $host in
6684 x86_64-*kfreebsd*-gnu)
6685 LD="${LD-ld} -m elf_x86_64_fbsd"
6686 ;;
6687 x86_64-*linux*)
6688 LD="${LD-ld} -m elf_x86_64"
6689 ;;
6690 powerpcle-*linux*)
6691 LD="${LD-ld} -m elf64lppc"
6692 ;;
6693 powerpc-*linux*)
6694 LD="${LD-ld} -m elf64ppc"
6695 ;;
6696 s390*-*linux*|s390*-*tpf*)
6697 LD="${LD-ld} -m elf64_s390"
6698 ;;
6699 sparc*-*linux*)
6700 LD="${LD-ld} -m elf64_sparc"
6701 ;;
6702 esac
6703 ;;
6704 esac
6705 fi
6706 rm -rf conftest*
6707 ;;
6708
6709 *-*-sco3.2v5*)
6710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6711 SAVE_CFLAGS=$CFLAGS
6712 CFLAGS="$CFLAGS -belf"
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6714 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6715 if ${lt_cv_cc_needs_belf+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 ac_ext=c
6719 ac_cpp='$CPP $CPPFLAGS'
6720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726
6727 int
6728 main ()
6729 {
6730
6731 ;
6732 return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_link "$LINENO"; then :
6736 lt_cv_cc_needs_belf=yes
6737 else
6738 lt_cv_cc_needs_belf=no
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742 ac_ext=c
6743 ac_cpp='$CPP $CPPFLAGS'
6744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6750 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6751 if test yes != "$lt_cv_cc_needs_belf"; then
6752 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6753 CFLAGS=$SAVE_CFLAGS
6754 fi
6755 ;;
6756 *-*solaris*)
6757 # Find out what ABI is being produced by ac_compile, and set linker
6758 # options accordingly.
6759 echo 'int i;' > conftest.$ac_ext
6760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761 (eval $ac_compile) 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764 test $ac_status = 0; }; then
6765 case `/usr/bin/file conftest.o` in
6766 *64-bit*)
6767 case $lt_cv_prog_gnu_ld in
6768 yes*)
6769 case $host in
6770 i?86-*-solaris*|x86_64-*-solaris*)
6771 LD="${LD-ld} -m elf_x86_64"
6772 ;;
6773 sparc*-*-solaris*)
6774 LD="${LD-ld} -m elf64_sparc"
6775 ;;
6776 esac
6777 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6778 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6779 LD=${LD-ld}_sol2
6780 fi
6781 ;;
6782 *)
6783 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6784 LD="${LD-ld} -64"
6785 fi
6786 ;;
6787 esac
6788 ;;
6789 esac
6790 fi
6791 rm -rf conftest*
6792 ;;
6793 esac
6794
6795 need_locks=$enable_libtool_lock
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}mt; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$MANIFEST_TOOL"; then
6806 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6826 if test -n "$MANIFEST_TOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6828 $as_echo "$MANIFEST_TOOL" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6837 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6838 # Extract the first word of "mt", so it can be a program name with args.
6839 set dummy mt; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_MANIFEST_TOOL"; then
6846 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6866 if test -n "$ac_ct_MANIFEST_TOOL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6868 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6875 MANIFEST_TOOL=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6884 fi
6885 else
6886 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6887 fi
6888
6889 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6891 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6892 if ${lt_cv_path_mainfest_tool+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 lt_cv_path_mainfest_tool=no
6896 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6897 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6898 cat conftest.err >&5
6899 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6900 lt_cv_path_mainfest_tool=yes
6901 fi
6902 rm -f conftest*
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6905 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6906 if test yes != "$lt_cv_path_mainfest_tool"; then
6907 MANIFEST_TOOL=:
6908 fi
6909
6910
6911
6912
6913
6914
6915 case $host_os in
6916 rhapsody* | darwin*)
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 if test -n "$DSYMUTIL"; then
6926 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6946 if test -n "$DSYMUTIL"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6948 $as_echo "$DSYMUTIL" >&6; }
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_DSYMUTIL"; then
6957 ac_ct_DSYMUTIL=$DSYMUTIL
6958 # Extract the first word of "dsymutil", so it can be a program name with args.
6959 set dummy dsymutil; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test -n "$ac_ct_DSYMUTIL"; then
6966 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6986 if test -n "$ac_ct_DSYMUTIL"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6988 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994 if test "x$ac_ct_DSYMUTIL" = x; then
6995 DSYMUTIL=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003 DSYMUTIL=$ac_ct_DSYMUTIL
7004 fi
7005 else
7006 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7007 fi
7008
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_NMEDIT+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$NMEDIT"; then
7018 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 NMEDIT=$ac_cv_prog_NMEDIT
7038 if test -n "$NMEDIT"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7040 $as_echo "$NMEDIT" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047 fi
7048 if test -z "$ac_cv_prog_NMEDIT"; then
7049 ac_ct_NMEDIT=$NMEDIT
7050 # Extract the first word of "nmedit", so it can be a program name with args.
7051 set dummy nmedit; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_NMEDIT"; then
7058 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7078 if test -n "$ac_ct_NMEDIT"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7080 $as_echo "$ac_ct_NMEDIT" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086 if test "x$ac_ct_NMEDIT" = x; then
7087 NMEDIT=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 NMEDIT=$ac_ct_NMEDIT
7096 fi
7097 else
7098 NMEDIT="$ac_cv_prog_NMEDIT"
7099 fi
7100
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_LIPO+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$LIPO"; then
7110 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 LIPO=$ac_cv_prog_LIPO
7130 if test -n "$LIPO"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7132 $as_echo "$LIPO" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138
7139 fi
7140 if test -z "$ac_cv_prog_LIPO"; then
7141 ac_ct_LIPO=$LIPO
7142 # Extract the first word of "lipo", so it can be a program name with args.
7143 set dummy lipo; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$ac_ct_LIPO"; then
7150 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_LIPO="lipo"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7170 if test -n "$ac_ct_LIPO"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7172 $as_echo "$ac_ct_LIPO" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178 if test "x$ac_ct_LIPO" = x; then
7179 LIPO=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 LIPO=$ac_ct_LIPO
7188 fi
7189 else
7190 LIPO="$ac_cv_prog_LIPO"
7191 fi
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}otool; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_OTOOL+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$OTOOL"; then
7202 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 OTOOL=$ac_cv_prog_OTOOL
7222 if test -n "$OTOOL"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7224 $as_echo "$OTOOL" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_OTOOL"; then
7233 ac_ct_OTOOL=$OTOOL
7234 # Extract the first word of "otool", so it can be a program name with args.
7235 set dummy otool; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_OTOOL"; then
7242 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_OTOOL="otool"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7262 if test -n "$ac_ct_OTOOL"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7264 $as_echo "$ac_ct_OTOOL" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270 if test "x$ac_ct_OTOOL" = x; then
7271 OTOOL=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 OTOOL=$ac_ct_OTOOL
7280 fi
7281 else
7282 OTOOL="$ac_cv_prog_OTOOL"
7283 fi
7284
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_OTOOL64+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$OTOOL64"; then
7294 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 OTOOL64=$ac_cv_prog_OTOOL64
7314 if test -n "$OTOOL64"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7316 $as_echo "$OTOOL64" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_OTOOL64"; then
7325 ac_ct_OTOOL64=$OTOOL64
7326 # Extract the first word of "otool64", so it can be a program name with args.
7327 set dummy otool64; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_OTOOL64"; then
7334 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_OTOOL64="otool64"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7354 if test -n "$ac_ct_OTOOL64"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7356 $as_echo "$ac_ct_OTOOL64" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362 if test "x$ac_ct_OTOOL64" = x; then
7363 OTOOL64=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 OTOOL64=$ac_ct_OTOOL64
7372 fi
7373 else
7374 OTOOL64="$ac_cv_prog_OTOOL64"
7375 fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7404 $as_echo_n "checking for -single_module linker flag... " >&6; }
7405 if ${lt_cv_apple_cc_single_mod+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 lt_cv_apple_cc_single_mod=no
7409 if test -z "$LT_MULTI_MODULE"; then
7410 # By default we will add the -single_module flag. You can override
7411 # by either setting the environment variable LT_MULTI_MODULE
7412 # non-empty at configure time, or by adding -multi_module to the
7413 # link flags.
7414 rm -rf libconftest.dylib*
7415 echo "int foo(void){return 1;}" > conftest.c
7416 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7417 -dynamiclib -Wl,-single_module conftest.c" >&5
7418 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7419 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7420 _lt_result=$?
7421 # If there is a non-empty error log, and "single_module"
7422 # appears in it, assume the flag caused a linker warning
7423 if test -s conftest.err && $GREP single_module conftest.err; then
7424 cat conftest.err >&5
7425 # Otherwise, if the output was created with a 0 exit code from
7426 # the compiler, it worked.
7427 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7428 lt_cv_apple_cc_single_mod=yes
7429 else
7430 cat conftest.err >&5
7431 fi
7432 rm -rf libconftest.dylib*
7433 rm -f conftest.*
7434 fi
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7437 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7438
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7440 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7441 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 lt_cv_ld_exported_symbols_list=no
7445 save_LDFLAGS=$LDFLAGS
7446 echo "_main" > conftest.sym
7447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450
7451 int
7452 main ()
7453 {
7454
7455 ;
7456 return 0;
7457 }
7458 _ACEOF
7459 if ac_fn_c_try_link "$LINENO"; then :
7460 lt_cv_ld_exported_symbols_list=yes
7461 else
7462 lt_cv_ld_exported_symbols_list=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 LDFLAGS=$save_LDFLAGS
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7470 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7473 $as_echo_n "checking for -force_load linker flag... " >&6; }
7474 if ${lt_cv_ld_force_load+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 lt_cv_ld_force_load=no
7478 cat > conftest.c << _LT_EOF
7479 int forced_loaded() { return 2;}
7480 _LT_EOF
7481 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7482 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7483 echo "$AR cr libconftest.a conftest.o" >&5
7484 $AR cr libconftest.a conftest.o 2>&5
7485 echo "$RANLIB libconftest.a" >&5
7486 $RANLIB libconftest.a 2>&5
7487 cat > conftest.c << _LT_EOF
7488 int main() { return 0;}
7489 _LT_EOF
7490 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7491 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7492 _lt_result=$?
7493 if test -s conftest.err && $GREP force_load conftest.err; then
7494 cat conftest.err >&5
7495 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7496 lt_cv_ld_force_load=yes
7497 else
7498 cat conftest.err >&5
7499 fi
7500 rm -f conftest.err libconftest.a conftest conftest.c
7501 rm -rf conftest.dSYM
7502
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7505 $as_echo "$lt_cv_ld_force_load" >&6; }
7506 case $host_os in
7507 rhapsody* | darwin1.[012])
7508 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7509 darwin1.*)
7510 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7511 darwin*) # darwin 5.x on
7512 # if running on 10.5 or later, the deployment target defaults
7513 # to the OS version, if on x86, and 10.4, the deployment
7514 # target defaults to 10.4. Don't you love it?
7515 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7516 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7517 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7518 10.[012][,.]*)
7519 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7520 10.*)
7521 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7522 esac
7523 ;;
7524 esac
7525 if test yes = "$lt_cv_apple_cc_single_mod"; then
7526 _lt_dar_single_mod='$single_module'
7527 fi
7528 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7529 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7530 else
7531 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7532 fi
7533 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7534 _lt_dsymutil='~$DSYMUTIL $lib || :'
7535 else
7536 _lt_dsymutil=
7537 fi
7538 ;;
7539 esac
7540
7541 # func_munge_path_list VARIABLE PATH
7542 # -----------------------------------
7543 # VARIABLE is name of variable containing _space_ separated list of
7544 # directories to be munged by the contents of PATH, which is string
7545 # having a format:
7546 # "DIR[:DIR]:"
7547 # string "DIR[ DIR]" will be prepended to VARIABLE
7548 # ":DIR[:DIR]"
7549 # string "DIR[ DIR]" will be appended to VARIABLE
7550 # "DIRP[:DIRP]::[DIRA:]DIRA"
7551 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7552 # "DIRA[ DIRA]" will be appended to VARIABLE
7553 # "DIR[:DIR]"
7554 # VARIABLE will be replaced by "DIR[ DIR]"
7555 func_munge_path_list ()
7556 {
7557 case x$2 in
7558 x)
7559 ;;
7560 *:)
7561 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7562 ;;
7563 x:*)
7564 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7565 ;;
7566 *::*)
7567 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7568 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7569 ;;
7570 *)
7571 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7572 ;;
7573 esac
7574 }
7575
7576 ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7582 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7583 # On Suns, sometimes $CPP names a directory.
7584 if test -n "$CPP" && test -d "$CPP"; then
7585 CPP=
7586 fi
7587 if test -z "$CPP"; then
7588 if ${ac_cv_prog_CPP+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 # Double quotes because CPP needs to be expanded
7592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7593 do
7594 ac_preproc_ok=false
7595 for ac_c_preproc_warn_flag in '' yes
7596 do
7597 # Use a header file that comes with gcc, so configuring glibc
7598 # with a fresh cross-compiler works.
7599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7600 # <limits.h> exists even on freestanding compilers.
7601 # On the NeXT, cc -E runs the code through the compiler's parser,
7602 # not just through cpp. "Syntax error" is here to catch this case.
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #ifdef __STDC__
7606 # include <limits.h>
7607 #else
7608 # include <assert.h>
7609 #endif
7610 Syntax error
7611 _ACEOF
7612 if ac_fn_c_try_cpp "$LINENO"; then :
7613
7614 else
7615 # Broken: fails on valid input.
7616 continue
7617 fi
7618 rm -f conftest.err conftest.i conftest.$ac_ext
7619
7620 # OK, works on sane cases. Now check whether nonexistent headers
7621 # can be detected and how.
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <ac_nonexistent.h>
7625 _ACEOF
7626 if ac_fn_c_try_cpp "$LINENO"; then :
7627 # Broken: success on invalid input.
7628 continue
7629 else
7630 # Passes both tests.
7631 ac_preproc_ok=:
7632 break
7633 fi
7634 rm -f conftest.err conftest.i conftest.$ac_ext
7635
7636 done
7637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7638 rm -f conftest.i conftest.err conftest.$ac_ext
7639 if $ac_preproc_ok; then :
7640 break
7641 fi
7642
7643 done
7644 ac_cv_prog_CPP=$CPP
7645
7646 fi
7647 CPP=$ac_cv_prog_CPP
7648 else
7649 ac_cv_prog_CPP=$CPP
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7652 $as_echo "$CPP" >&6; }
7653 ac_preproc_ok=false
7654 for ac_c_preproc_warn_flag in '' yes
7655 do
7656 # Use a header file that comes with gcc, so configuring glibc
7657 # with a fresh cross-compiler works.
7658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7659 # <limits.h> exists even on freestanding compilers.
7660 # On the NeXT, cc -E runs the code through the compiler's parser,
7661 # not just through cpp. "Syntax error" is here to catch this case.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #ifdef __STDC__
7665 # include <limits.h>
7666 #else
7667 # include <assert.h>
7668 #endif
7669 Syntax error
7670 _ACEOF
7671 if ac_fn_c_try_cpp "$LINENO"; then :
7672
7673 else
7674 # Broken: fails on valid input.
7675 continue
7676 fi
7677 rm -f conftest.err conftest.i conftest.$ac_ext
7678
7679 # OK, works on sane cases. Now check whether nonexistent headers
7680 # can be detected and how.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <ac_nonexistent.h>
7684 _ACEOF
7685 if ac_fn_c_try_cpp "$LINENO"; then :
7686 # Broken: success on invalid input.
7687 continue
7688 else
7689 # Passes both tests.
7690 ac_preproc_ok=:
7691 break
7692 fi
7693 rm -f conftest.err conftest.i conftest.$ac_ext
7694
7695 done
7696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7697 rm -f conftest.i conftest.err conftest.$ac_ext
7698 if $ac_preproc_ok; then :
7699
7700 else
7701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7703 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7704 See \`config.log' for more details" "$LINENO" 5; }
7705 fi
7706
7707 ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7715 $as_echo_n "checking for ANSI C header files... " >&6; }
7716 if ${ac_cv_header_stdc+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <stdlib.h>
7722 #include <stdarg.h>
7723 #include <string.h>
7724 #include <float.h>
7725
7726 int
7727 main ()
7728 {
7729
7730 ;
7731 return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735 ac_cv_header_stdc=yes
7736 else
7737 ac_cv_header_stdc=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740
7741 if test $ac_cv_header_stdc = yes; then
7742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <string.h>
7746
7747 _ACEOF
7748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7749 $EGREP "memchr" >/dev/null 2>&1; then :
7750
7751 else
7752 ac_cv_header_stdc=no
7753 fi
7754 rm -f conftest*
7755
7756 fi
7757
7758 if test $ac_cv_header_stdc = yes; then
7759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #include <stdlib.h>
7763
7764 _ACEOF
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 $EGREP "free" >/dev/null 2>&1; then :
7767
7768 else
7769 ac_cv_header_stdc=no
7770 fi
7771 rm -f conftest*
7772
7773 fi
7774
7775 if test $ac_cv_header_stdc = yes; then
7776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7777 if test "$cross_compiling" = yes; then :
7778 :
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 #include <ctype.h>
7783 #include <stdlib.h>
7784 #if ((' ' & 0x0FF) == 0x020)
7785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7787 #else
7788 # define ISLOWER(c) \
7789 (('a' <= (c) && (c) <= 'i') \
7790 || ('j' <= (c) && (c) <= 'r') \
7791 || ('s' <= (c) && (c) <= 'z'))
7792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7793 #endif
7794
7795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7796 int
7797 main ()
7798 {
7799 int i;
7800 for (i = 0; i < 256; i++)
7801 if (XOR (islower (i), ISLOWER (i))
7802 || toupper (i) != TOUPPER (i))
7803 return 2;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_run "$LINENO"; then :
7808
7809 else
7810 ac_cv_header_stdc=no
7811 fi
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813 conftest.$ac_objext conftest.beam conftest.$ac_ext
7814 fi
7815
7816 fi
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7819 $as_echo "$ac_cv_header_stdc" >&6; }
7820 if test $ac_cv_header_stdc = yes; then
7821
7822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7823
7824 fi
7825
7826 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7827 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7828 inttypes.h stdint.h unistd.h
7829 do :
7830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7832 "
7833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7834 cat >>confdefs.h <<_ACEOF
7835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836 _ACEOF
7837
7838 fi
7839
7840 done
7841
7842
7843 for ac_header in dlfcn.h
7844 do :
7845 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7846 "
7847 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7848 cat >>confdefs.h <<_ACEOF
7849 #define HAVE_DLFCN_H 1
7850 _ACEOF
7851
7852 fi
7853
7854 done
7855
7856
7857
7858
7859
7860 # Set options
7861
7862
7863
7864 enable_dlopen=no
7865
7866
7867 enable_win32_dll=no
7868
7869
7870 # Check whether --enable-shared was given.
7871 if test "${enable_shared+set}" = set; then :
7872 enableval=$enable_shared; p=${PACKAGE-default}
7873 case $enableval in
7874 yes) enable_shared=yes ;;
7875 no) enable_shared=no ;;
7876 *)
7877 enable_shared=no
7878 # Look at the argument we got. We use all the common list separators.
7879 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7880 for pkg in $enableval; do
7881 IFS=$lt_save_ifs
7882 if test "X$pkg" = "X$p"; then
7883 enable_shared=yes
7884 fi
7885 done
7886 IFS=$lt_save_ifs
7887 ;;
7888 esac
7889 else
7890 enable_shared=yes
7891 fi
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 # Check whether --enable-static was given.
7902 if test "${enable_static+set}" = set; then :
7903 enableval=$enable_static; p=${PACKAGE-default}
7904 case $enableval in
7905 yes) enable_static=yes ;;
7906 no) enable_static=no ;;
7907 *)
7908 enable_static=no
7909 # Look at the argument we got. We use all the common list separators.
7910 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7911 for pkg in $enableval; do
7912 IFS=$lt_save_ifs
7913 if test "X$pkg" = "X$p"; then
7914 enable_static=yes
7915 fi
7916 done
7917 IFS=$lt_save_ifs
7918 ;;
7919 esac
7920 else
7921 enable_static=yes
7922 fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 # Check whether --with-pic was given.
7934 if test "${with_pic+set}" = set; then :
7935 withval=$with_pic; lt_p=${PACKAGE-default}
7936 case $withval in
7937 yes|no) pic_mode=$withval ;;
7938 *)
7939 pic_mode=default
7940 # Look at the argument we got. We use all the common list separators.
7941 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7942 for lt_pkg in $withval; do
7943 IFS=$lt_save_ifs
7944 if test "X$lt_pkg" = "X$lt_p"; then
7945 pic_mode=yes
7946 fi
7947 done
7948 IFS=$lt_save_ifs
7949 ;;
7950 esac
7951 else
7952 pic_mode=default
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961
7962 # Check whether --enable-fast-install was given.
7963 if test "${enable_fast_install+set}" = set; then :
7964 enableval=$enable_fast_install; p=${PACKAGE-default}
7965 case $enableval in
7966 yes) enable_fast_install=yes ;;
7967 no) enable_fast_install=no ;;
7968 *)
7969 enable_fast_install=no
7970 # Look at the argument we got. We use all the common list separators.
7971 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7972 for pkg in $enableval; do
7973 IFS=$lt_save_ifs
7974 if test "X$pkg" = "X$p"; then
7975 enable_fast_install=yes
7976 fi
7977 done
7978 IFS=$lt_save_ifs
7979 ;;
7980 esac
7981 else
7982 enable_fast_install=yes
7983 fi
7984
7985
7986
7987
7988
7989
7990
7991
7992 shared_archive_member_spec=
7993 case $host,$enable_shared in
7994 power*-*-aix[5-9]*,yes)
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7996 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7997
7998 # Check whether --with-aix-soname was given.
7999 if test "${with_aix_soname+set}" = set; then :
8000 withval=$with_aix_soname; case $withval in
8001 aix|svr4|both)
8002 ;;
8003 *)
8004 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8005 ;;
8006 esac
8007 lt_cv_with_aix_soname=$with_aix_soname
8008 else
8009 if ${lt_cv_with_aix_soname+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 lt_cv_with_aix_soname=aix
8013 fi
8014
8015 with_aix_soname=$lt_cv_with_aix_soname
8016 fi
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8019 $as_echo "$with_aix_soname" >&6; }
8020 if test aix != "$with_aix_soname"; then
8021 # For the AIX way of multilib, we name the shared archive member
8022 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8023 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8024 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8025 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8026 if test 64 = "${OBJECT_MODE-32}"; then
8027 shared_archive_member_spec=shr_64
8028 else
8029 shared_archive_member_spec=shr
8030 fi
8031 fi
8032 ;;
8033 *)
8034 with_aix_soname=aix
8035 ;;
8036 esac
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 # This can be used to rebuild libtool when needed
8048 LIBTOOL_DEPS=$ltmain
8049
8050 # Always use our own libtool.
8051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 test -z "$LN_S" && LN_S="ln -s"
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 if test -n "${ZSH_VERSION+set}"; then
8098 setopt NO_GLOB_SUBST
8099 fi
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8102 $as_echo_n "checking for objdir... " >&6; }
8103 if ${lt_cv_objdir+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 rm -f .libs 2>/dev/null
8107 mkdir .libs 2>/dev/null
8108 if test -d .libs; then
8109 lt_cv_objdir=.libs
8110 else
8111 # MS-DOS does not allow filenames that begin with a dot.
8112 lt_cv_objdir=_libs
8113 fi
8114 rmdir .libs 2>/dev/null
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8117 $as_echo "$lt_cv_objdir" >&6; }
8118 objdir=$lt_cv_objdir
8119
8120
8121
8122
8123
8124 cat >>confdefs.h <<_ACEOF
8125 #define LT_OBJDIR "$lt_cv_objdir/"
8126 _ACEOF
8127
8128
8129
8130
8131 case $host_os in
8132 aix3*)
8133 # AIX sometimes has problems with the GCC collect2 program. For some
8134 # reason, if we set the COLLECT_NAMES environment variable, the problems
8135 # vanish in a puff of smoke.
8136 if test set != "${COLLECT_NAMES+set}"; then
8137 COLLECT_NAMES=
8138 export COLLECT_NAMES
8139 fi
8140 ;;
8141 esac
8142
8143 # Global variables:
8144 ofile=libtool
8145 can_build_shared=yes
8146
8147 # All known linkers require a '.a' archive for static linking (except MSVC,
8148 # which needs '.lib').
8149 libext=a
8150
8151 with_gnu_ld=$lt_cv_prog_gnu_ld
8152
8153 old_CC=$CC
8154 old_CFLAGS=$CFLAGS
8155
8156 # Set sane defaults for various variables
8157 test -z "$CC" && CC=cc
8158 test -z "$LTCC" && LTCC=$CC
8159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8160 test -z "$LD" && LD=ld
8161 test -z "$ac_objext" && ac_objext=o
8162
8163 func_cc_basename $compiler
8164 cc_basename=$func_cc_basename_result
8165
8166
8167 # Only perform the check for file, if the check method requires it
8168 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8169 case $deplibs_check_method in
8170 file_magic*)
8171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8173 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8174 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 case $MAGIC_CMD in
8178 [\\/*] | ?:[\\/]*)
8179 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8180 ;;
8181 *)
8182 lt_save_MAGIC_CMD=$MAGIC_CMD
8183 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8185 for ac_dir in $ac_dummy; do
8186 IFS=$lt_save_ifs
8187 test -z "$ac_dir" && ac_dir=.
8188 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8189 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8190 if test -n "$file_magic_test_file"; then
8191 case $deplibs_check_method in
8192 "file_magic "*)
8193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8194 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8196 $EGREP "$file_magic_regex" > /dev/null; then
8197 :
8198 else
8199 cat <<_LT_EOF 1>&2
8200
8201 *** Warning: the command libtool uses to detect shared libraries,
8202 *** $file_magic_cmd, produces output that libtool cannot recognize.
8203 *** The result is that libtool may fail to recognize shared libraries
8204 *** as such. This will affect the creation of libtool libraries that
8205 *** depend on shared libraries, but programs linked with such libtool
8206 *** libraries will work regardless of this problem. Nevertheless, you
8207 *** may want to report the problem to your system manager and/or to
8208 *** [email protected]
8209
8210 _LT_EOF
8211 fi ;;
8212 esac
8213 fi
8214 break
8215 fi
8216 done
8217 IFS=$lt_save_ifs
8218 MAGIC_CMD=$lt_save_MAGIC_CMD
8219 ;;
8220 esac
8221 fi
8222
8223 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8224 if test -n "$MAGIC_CMD"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8226 $as_echo "$MAGIC_CMD" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233
8234
8235
8236 if test -z "$lt_cv_path_MAGIC_CMD"; then
8237 if test -n "$ac_tool_prefix"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8239 $as_echo_n "checking for file... " >&6; }
8240 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 case $MAGIC_CMD in
8244 [\\/*] | ?:[\\/]*)
8245 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8246 ;;
8247 *)
8248 lt_save_MAGIC_CMD=$MAGIC_CMD
8249 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8251 for ac_dir in $ac_dummy; do
8252 IFS=$lt_save_ifs
8253 test -z "$ac_dir" && ac_dir=.
8254 if test -f "$ac_dir/file"; then
8255 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8256 if test -n "$file_magic_test_file"; then
8257 case $deplibs_check_method in
8258 "file_magic "*)
8259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8260 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8262 $EGREP "$file_magic_regex" > /dev/null; then
8263 :
8264 else
8265 cat <<_LT_EOF 1>&2
8266
8267 *** Warning: the command libtool uses to detect shared libraries,
8268 *** $file_magic_cmd, produces output that libtool cannot recognize.
8269 *** The result is that libtool may fail to recognize shared libraries
8270 *** as such. This will affect the creation of libtool libraries that
8271 *** depend on shared libraries, but programs linked with such libtool
8272 *** libraries will work regardless of this problem. Nevertheless, you
8273 *** may want to report the problem to your system manager and/or to
8274 *** [email protected]
8275
8276 _LT_EOF
8277 fi ;;
8278 esac
8279 fi
8280 break
8281 fi
8282 done
8283 IFS=$lt_save_ifs
8284 MAGIC_CMD=$lt_save_MAGIC_CMD
8285 ;;
8286 esac
8287 fi
8288
8289 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8290 if test -n "$MAGIC_CMD"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8292 $as_echo "$MAGIC_CMD" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 else
8300 MAGIC_CMD=:
8301 fi
8302 fi
8303
8304 fi
8305 ;;
8306 esac
8307
8308 # Use C for the default configuration in the libtool script
8309
8310 lt_save_CC=$CC
8311 ac_ext=c
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317
8318 # Source file extension for C test sources.
8319 ac_ext=c
8320
8321 # Object file extension for compiled C test sources.
8322 objext=o
8323 objext=$objext
8324
8325 # Code to be used in simple compile tests
8326 lt_simple_compile_test_code="int some_variable = 0;"
8327
8328 # Code to be used in simple link tests
8329 lt_simple_link_test_code='int main(){return(0);}'
8330
8331
8332
8333
8334
8335
8336
8337 # If no C compiler was specified, use CC.
8338 LTCC=${LTCC-"$CC"}
8339
8340 # If no C compiler flags were specified, use CFLAGS.
8341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8342
8343 # Allow CC to be a program name with arguments.
8344 compiler=$CC
8345
8346 # Save the default compiler, since it gets overwritten when the other
8347 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8348 compiler_DEFAULT=$CC
8349
8350 # save warnings/boilerplate of simple test code
8351 ac_outfile=conftest.$ac_objext
8352 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8354 _lt_compiler_boilerplate=`cat conftest.err`
8355 $RM conftest*
8356
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8360 _lt_linker_boilerplate=`cat conftest.err`
8361 $RM -r conftest*
8362
8363
8364 ## CAVEAT EMPTOR:
8365 ## There is no encapsulation within the following macros, do not change
8366 ## the running order or otherwise move them around unless you know exactly
8367 ## what you are doing...
8368 if test -n "$compiler"; then
8369
8370 lt_prog_compiler_no_builtin_flag=
8371
8372 if test yes = "$GCC"; then
8373 case $cc_basename in
8374 nvcc*)
8375 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8376 *)
8377 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8378 esac
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8381 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8382 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 lt_cv_prog_compiler_rtti_exceptions=no
8386 ac_outfile=conftest.$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399 (eval "$lt_compile" 2>conftest.err)
8400 ac_status=$?
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
8406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_rtti_exceptions=yes
8410 fi
8411 fi
8412 $RM conftest*
8413
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8416 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8417
8418 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8419 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8420 else
8421 :
8422 fi
8423
8424 fi
8425
8426
8427
8428
8429
8430
8431 lt_prog_compiler_wl=
8432 lt_prog_compiler_pic=
8433 lt_prog_compiler_static=
8434
8435
8436 if test yes = "$GCC"; then
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_static='-static'
8439
8440 case $host_os in
8441 aix*)
8442 # All AIX code is PIC.
8443 if test ia64 = "$host_cpu"; then
8444 # AIX 5 now supports IA64 processor
8445 lt_prog_compiler_static='-Bstatic'
8446 fi
8447 lt_prog_compiler_pic='-fPIC'
8448 ;;
8449
8450 amigaos*)
8451 case $host_cpu in
8452 powerpc)
8453 # see comment about AmigaOS4 .so support
8454 lt_prog_compiler_pic='-fPIC'
8455 ;;
8456 m68k)
8457 # FIXME: we need at least 68020 code to build shared libraries, but
8458 # adding the '-m68020' flag to GCC prevents building anything better,
8459 # like '-m68040'.
8460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8461 ;;
8462 esac
8463 ;;
8464
8465 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8466 # PIC is the default for these OSes.
8467 ;;
8468
8469 mingw* | cygwin* | pw32* | os2* | cegcc*)
8470 # This hack is so that the source file can tell whether it is being
8471 # built for inclusion in a dll (and should export symbols for example).
8472 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8473 # (--disable-auto-import) libraries
8474 lt_prog_compiler_pic='-DDLL_EXPORT'
8475 case $host_os in
8476 os2*)
8477 lt_prog_compiler_static='$wl-static'
8478 ;;
8479 esac
8480 ;;
8481
8482 darwin* | rhapsody*)
8483 # PIC is the default on this platform
8484 # Common symbols not allowed in MH_DYLIB files
8485 lt_prog_compiler_pic='-fno-common'
8486 ;;
8487
8488 haiku*)
8489 # PIC is the default for Haiku.
8490 # The "-static" flag exists, but is broken.
8491 lt_prog_compiler_static=
8492 ;;
8493
8494 hpux*)
8495 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8496 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8497 # sets the default TLS model and affects inlining.
8498 case $host_cpu in
8499 hppa*64*)
8500 # +Z the default
8501 ;;
8502 *)
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 esac
8506 ;;
8507
8508 interix[3-9]*)
8509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8510 # Instead, we relocate shared libraries at runtime.
8511 ;;
8512
8513 msdosdjgpp*)
8514 # Just because we use GCC doesn't mean we suddenly get shared libraries
8515 # on systems that don't support them.
8516 lt_prog_compiler_can_build_shared=no
8517 enable_shared=no
8518 ;;
8519
8520 *nto* | *qnx*)
8521 # QNX uses GNU C++, but need to define -shared option too, otherwise
8522 # it will coredump.
8523 lt_prog_compiler_pic='-fPIC -shared'
8524 ;;
8525
8526 sysv4*MP*)
8527 if test -d /usr/nec; then
8528 lt_prog_compiler_pic=-Kconform_pic
8529 fi
8530 ;;
8531
8532 *)
8533 lt_prog_compiler_pic='-fPIC'
8534 ;;
8535 esac
8536
8537 case $cc_basename in
8538 nvcc*) # Cuda Compiler Driver 2.2
8539 lt_prog_compiler_wl='-Xlinker '
8540 if test -n "$lt_prog_compiler_pic"; then
8541 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8542 fi
8543 ;;
8544 esac
8545 else
8546 # PORTME Check for flag to pass linker flags through the system compiler.
8547 case $host_os in
8548 aix*)
8549 lt_prog_compiler_wl='-Wl,'
8550 if test ia64 = "$host_cpu"; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8553 else
8554 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8555 fi
8556 ;;
8557
8558 darwin* | rhapsody*)
8559 # PIC is the default on this platform
8560 # Common symbols not allowed in MH_DYLIB files
8561 lt_prog_compiler_pic='-fno-common'
8562 case $cc_basename in
8563 nagfor*)
8564 # NAG Fortran compiler
8565 lt_prog_compiler_wl='-Wl,-Wl,,'
8566 lt_prog_compiler_pic='-PIC'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569 esac
8570 ;;
8571
8572 mingw* | cygwin* | pw32* | os2* | cegcc*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8576 case $host_os in
8577 os2*)
8578 lt_prog_compiler_static='$wl-static'
8579 ;;
8580 esac
8581 ;;
8582
8583 hpux9* | hpux10* | hpux11*)
8584 lt_prog_compiler_wl='-Wl,'
8585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8586 # not for PA HP-UX.
8587 case $host_cpu in
8588 hppa*64*|ia64*)
8589 # +Z the default
8590 ;;
8591 *)
8592 lt_prog_compiler_pic='+Z'
8593 ;;
8594 esac
8595 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8596 lt_prog_compiler_static='$wl-a ${wl}archive'
8597 ;;
8598
8599 irix5* | irix6* | nonstopux*)
8600 lt_prog_compiler_wl='-Wl,'
8601 # PIC (with -KPIC) is the default.
8602 lt_prog_compiler_static='-non_shared'
8603 ;;
8604
8605 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8606 case $cc_basename in
8607 # old Intel for x86_64, which still supported -KPIC.
8608 ecc*)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-KPIC'
8611 lt_prog_compiler_static='-static'
8612 ;;
8613 # flang / f18. f95 an alias for gfortran or flang on Debian
8614 flang* | f18* | f95*)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-fPIC'
8617 lt_prog_compiler_static='-static'
8618 ;;
8619 # icc used to be incompatible with GCC.
8620 # ICC 10 doesn't accept -KPIC any more.
8621 icc* | ifort*)
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-fPIC'
8624 lt_prog_compiler_static='-static'
8625 ;;
8626 # Lahey Fortran 8.1.
8627 lf95*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='--shared'
8630 lt_prog_compiler_static='--static'
8631 ;;
8632 nagfor*)
8633 # NAG Fortran compiler
8634 lt_prog_compiler_wl='-Wl,-Wl,,'
8635 lt_prog_compiler_pic='-PIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 ;;
8638 tcc*)
8639 # Fabrice Bellard et al's Tiny C Compiler
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='-fPIC'
8642 lt_prog_compiler_static='-static'
8643 ;;
8644 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8645 # Portland Group compilers (*not* the Pentium gcc compiler,
8646 # which looks to be a dead project)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-fpic'
8649 lt_prog_compiler_static='-Bstatic'
8650 ;;
8651 ccc*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All Alpha code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656 xl* | bgxl* | bgf* | mpixl*)
8657 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-qpic'
8660 lt_prog_compiler_static='-qstaticlink'
8661 ;;
8662 *)
8663 case `$CC -V 2>&1 | sed 5q` in
8664 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8665 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 lt_prog_compiler_wl=''
8669 ;;
8670 *Sun\ F* | *Sun*Fortran*)
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 lt_prog_compiler_wl='-Qoption ld '
8674 ;;
8675 *Sun\ C*)
8676 # Sun C 5.9
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 lt_prog_compiler_wl='-Wl,'
8680 ;;
8681 *Intel*\ [CF]*Compiler*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-fPIC'
8684 lt_prog_compiler_static='-static'
8685 ;;
8686 *Portland\ Group*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-fpic'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691 esac
8692 ;;
8693 esac
8694 ;;
8695
8696 newsos6)
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700
8701 *nto* | *qnx*)
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8703 # it will coredump.
8704 lt_prog_compiler_pic='-fPIC -shared'
8705 ;;
8706
8707 osf3* | osf4* | osf5*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # All OSF/1 code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8711 ;;
8712
8713 rdos*)
8714 lt_prog_compiler_static='-non_shared'
8715 ;;
8716
8717 solaris*)
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 case $cc_basename in
8721 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8722 lt_prog_compiler_wl='-Qoption ld ';;
8723 *)
8724 lt_prog_compiler_wl='-Wl,';;
8725 esac
8726 ;;
8727
8728 sunos4*)
8729 lt_prog_compiler_wl='-Qoption ld '
8730 lt_prog_compiler_pic='-PIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 ;;
8733
8734 sysv4 | sysv4.2uw2* | sysv4.3*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-KPIC'
8737 lt_prog_compiler_static='-Bstatic'
8738 ;;
8739
8740 sysv4*MP*)
8741 if test -d /usr/nec; then
8742 lt_prog_compiler_pic='-Kconform_pic'
8743 lt_prog_compiler_static='-Bstatic'
8744 fi
8745 ;;
8746
8747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 unicos*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_can_build_shared=no
8756 ;;
8757
8758 uts4*)
8759 lt_prog_compiler_pic='-pic'
8760 lt_prog_compiler_static='-Bstatic'
8761 ;;
8762
8763 *)
8764 lt_prog_compiler_can_build_shared=no
8765 ;;
8766 esac
8767 fi
8768
8769 case $host_os in
8770 # For platforms that do not support PIC, -DPIC is meaningless:
8771 *djgpp*)
8772 lt_prog_compiler_pic=
8773 ;;
8774 *)
8775 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8776 ;;
8777 esac
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8780 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8781 if ${lt_cv_prog_compiler_pic+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8787 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8788 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8789
8790 #
8791 # Check to make sure the PIC flag actually works.
8792 #
8793 if test -n "$lt_prog_compiler_pic"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8795 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8796 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_pic_works=no
8800 ac_outfile=conftest.$ac_objext
8801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8803 # Insert the option either (1) after the last *FLAGS variable, or
8804 # (2) before a word containing "conftest.", or (3) at the end.
8805 # Note that $ac_compile itself does not contain backslashes and begins
8806 # with a dollar sign (not a hyphen), so the echo should work correctly.
8807 # The option is referenced via a variable to avoid confusing sed.
8808 lt_compile=`echo "$ac_compile" | $SED \
8809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8811 -e 's:$: $lt_compiler_flag:'`
8812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8813 (eval "$lt_compile" 2>conftest.err)
8814 ac_status=$?
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 if (exit $ac_status) && test -s "$ac_outfile"; then
8818 # The compiler can only warn and ignore the option if not recognized
8819 # So say no if there are warnings other than the usual output.
8820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8823 lt_cv_prog_compiler_pic_works=yes
8824 fi
8825 fi
8826 $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8830 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8831
8832 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8833 case $lt_prog_compiler_pic in
8834 "" | " "*) ;;
8835 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8836 esac
8837 else
8838 lt_prog_compiler_pic=
8839 lt_prog_compiler_can_build_shared=no
8840 fi
8841
8842 fi
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854 #
8855 # Check to make sure the static flag actually works.
8856 #
8857 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8859 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8860 if ${lt_cv_prog_compiler_static_works+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 lt_cv_prog_compiler_static_works=no
8864 save_LDFLAGS=$LDFLAGS
8865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8868 # The linker can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 if test -s conftest.err; then
8871 # Append any errors to the config.log.
8872 cat conftest.err 1>&5
8873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8875 if diff conftest.exp conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_static_works=yes
8877 fi
8878 else
8879 lt_cv_prog_compiler_static_works=yes
8880 fi
8881 fi
8882 $RM -r conftest*
8883 LDFLAGS=$save_LDFLAGS
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8887 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8888
8889 if test yes = "$lt_cv_prog_compiler_static_works"; then
8890 :
8891 else
8892 lt_prog_compiler_static=
8893 fi
8894
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8902 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8903 if ${lt_cv_prog_compiler_c_o+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_prog_compiler_c_o=no
8907 $RM -r conftest 2>/dev/null
8908 mkdir conftest
8909 cd conftest
8910 mkdir out
8911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912
8913 lt_compiler_flag="-o out/conftest2.$ac_objext"
8914 # Insert the option either (1) after the last *FLAGS variable, or
8915 # (2) before a word containing "conftest.", or (3) at the end.
8916 # Note that $ac_compile itself does not contain backslashes and begins
8917 # with a dollar sign (not a hyphen), so the echo should work correctly.
8918 lt_compile=`echo "$ac_compile" | $SED \
8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8921 -e 's:$: $lt_compiler_flag:'`
8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8923 (eval "$lt_compile" 2>out/conftest.err)
8924 ac_status=$?
8925 cat out/conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8928 then
8929 # The compiler can only warn and ignore the option if not recognized
8930 # So say no if there are warnings
8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934 lt_cv_prog_compiler_c_o=yes
8935 fi
8936 fi
8937 chmod u+w . 2>&5
8938 $RM conftest*
8939 # SGI C++ compiler will create directory out/ii_files/ for
8940 # template instantiation
8941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8942 $RM out/* && rmdir out
8943 cd ..
8944 $RM -r conftest
8945 $RM conftest*
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8949 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8950
8951
8952
8953
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8958 if ${lt_cv_prog_compiler_c_o+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 lt_cv_prog_compiler_c_o=no
8962 $RM -r conftest 2>/dev/null
8963 mkdir conftest
8964 cd conftest
8965 mkdir out
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967
8968 lt_compiler_flag="-o out/conftest2.$ac_objext"
8969 # Insert the option either (1) after the last *FLAGS variable, or
8970 # (2) before a word containing "conftest.", or (3) at the end.
8971 # Note that $ac_compile itself does not contain backslashes and begins
8972 # with a dollar sign (not a hyphen), so the echo should work correctly.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>out/conftest.err)
8979 ac_status=$?
8980 cat out/conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8983 then
8984 # The compiler can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8989 lt_cv_prog_compiler_c_o=yes
8990 fi
8991 fi
8992 chmod u+w . 2>&5
8993 $RM conftest*
8994 # SGI C++ compiler will create directory out/ii_files/ for
8995 # template instantiation
8996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8997 $RM out/* && rmdir out
8998 cd ..
8999 $RM -r conftest
9000 $RM conftest*
9001
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9005
9006
9007
9008
9009 hard_links=nottested
9010 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9011 # do not overwrite the value of need_locks provided by the user
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9013 $as_echo_n "checking if we can lock with hard links... " >&6; }
9014 hard_links=yes
9015 $RM conftest*
9016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9017 touch conftest.a
9018 ln conftest.a conftest.b 2>&5 || hard_links=no
9019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9021 $as_echo "$hard_links" >&6; }
9022 if test no = "$hard_links"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9024 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9025 need_locks=warn
9026 fi
9027 else
9028 need_locks=no
9029 fi
9030
9031
9032
9033
9034
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9037 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9038
9039 runpath_var=
9040 allow_undefined_flag=
9041 always_export_symbols=no
9042 archive_cmds=
9043 archive_expsym_cmds=
9044 compiler_needs_object=no
9045 enable_shared_with_static_runtimes=no
9046 export_dynamic_flag_spec=
9047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9048 hardcode_automatic=no
9049 hardcode_direct=no
9050 hardcode_direct_absolute=no
9051 hardcode_libdir_flag_spec=
9052 hardcode_libdir_separator=
9053 hardcode_minus_L=no
9054 hardcode_shlibpath_var=unsupported
9055 inherit_rpath=no
9056 link_all_deplibs=unknown
9057 module_cmds=
9058 module_expsym_cmds=
9059 old_archive_from_new_cmds=
9060 old_archive_from_expsyms_cmds=
9061 thread_safe_flag_spec=
9062 whole_archive_flag_spec=
9063 # include_expsyms should be a list of space-separated symbols to be *always*
9064 # included in the symbol list
9065 include_expsyms=
9066 # exclude_expsyms can be an extended regexp of symbols to exclude
9067 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9068 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9069 # as well as any symbol that contains 'd'.
9070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9072 # platforms (ab)use it in PIC code, but their linkers get confused if
9073 # the symbol is explicitly referenced. Since portable code cannot
9074 # rely on this symbol name, it's probably fine to never include it in
9075 # preloaded symbol tables.
9076 # Exclude shared library initialization/finalization symbols.
9077 extract_expsyms_cmds=
9078
9079 case $host_os in
9080 cygwin* | mingw* | pw32* | cegcc*)
9081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9082 # When not using gcc, we currently assume that we are using
9083 # Microsoft Visual C++.
9084 if test yes != "$GCC"; then
9085 with_gnu_ld=no
9086 fi
9087 ;;
9088 interix*)
9089 # we just hope/assume this is gcc and not c89 (= MSVC++)
9090 with_gnu_ld=yes
9091 ;;
9092 openbsd* | bitrig*)
9093 with_gnu_ld=no
9094 ;;
9095 linux* | k*bsd*-gnu | gnu*)
9096 link_all_deplibs=no
9097 ;;
9098 esac
9099
9100 ld_shlibs=yes
9101
9102 # On some targets, GNU ld is compatible enough with the native linker
9103 # that we're better off using the native interface for both.
9104 lt_use_gnu_ld_interface=no
9105 if test yes = "$with_gnu_ld"; then
9106 case $host_os in
9107 aix*)
9108 # The AIX port of GNU ld has always aspired to compatibility
9109 # with the native linker. However, as the warning in the GNU ld
9110 # block says, versions before 2.19.5* couldn't really create working
9111 # shared libraries, regardless of the interface used.
9112 case `$LD -v 2>&1` in
9113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9116 *)
9117 lt_use_gnu_ld_interface=yes
9118 ;;
9119 esac
9120 ;;
9121 *)
9122 lt_use_gnu_ld_interface=yes
9123 ;;
9124 esac
9125 fi
9126
9127 if test yes = "$lt_use_gnu_ld_interface"; then
9128 # If archive_cmds runs LD, not CC, wlarc should be empty
9129 wlarc='$wl'
9130
9131 # Set some defaults for GNU ld with shared library support. These
9132 # are reset later if shared libraries are not supported. Putting them
9133 # here allows them to be overridden if necessary.
9134 runpath_var=LD_RUN_PATH
9135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9136 export_dynamic_flag_spec='$wl--export-dynamic'
9137 # ancient GNU ld didn't support --whole-archive et. al.
9138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9140 else
9141 whole_archive_flag_spec=
9142 fi
9143 supports_anon_versioning=no
9144 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9145 *GNU\ gold*) supports_anon_versioning=yes ;;
9146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9149 *\ 2.11.*) ;; # other 2.11 versions
9150 *) supports_anon_versioning=yes ;;
9151 esac
9152
9153 # See if GNU ld supports shared libraries.
9154 case $host_os in
9155 aix[3-9]*)
9156 # On AIX/PPC, the GNU linker is very broken
9157 if test ia64 != "$host_cpu"; then
9158 ld_shlibs=no
9159 cat <<_LT_EOF 1>&2
9160
9161 *** Warning: the GNU linker, at least up to release 2.19, is reported
9162 *** to be unable to reliably create shared libraries on AIX.
9163 *** Therefore, libtool is disabling shared libraries support. If you
9164 *** really care for shared libraries, you may want to install binutils
9165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9166 *** You will then need to restart the configuration process.
9167
9168 _LT_EOF
9169 fi
9170 ;;
9171
9172 amigaos*)
9173 case $host_cpu in
9174 powerpc)
9175 # see comment about AmigaOS4 .so support
9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9177 archive_expsym_cmds=''
9178 ;;
9179 m68k)
9180 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)'
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_minus_L=yes
9183 ;;
9184 esac
9185 ;;
9186
9187 beos*)
9188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189 allow_undefined_flag=unsupported
9190 # Joseph Beckenbach <[email protected]> says some releases of gcc
9191 # support --undefined. This deserves some investigation. FIXME
9192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197
9198 cygwin* | mingw* | pw32* | cegcc*)
9199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9200 # as there is no search path for DLLs.
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 export_dynamic_flag_spec='$wl--export-all-symbols'
9203 allow_undefined_flag=unsupported
9204 always_export_symbols=no
9205 enable_shared_with_static_runtimes=yes
9206 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'
9207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9208
9209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9211 # If the export-symbols file already is a .def file, use it as
9212 # is; otherwise, prepend EXPORTS...
9213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9214 cp $export_symbols $output_objdir/$soname.def;
9215 else
9216 echo EXPORTS > $output_objdir/$soname.def;
9217 cat $export_symbols >> $output_objdir/$soname.def;
9218 fi~
9219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220 else
9221 ld_shlibs=no
9222 fi
9223 ;;
9224
9225 haiku*)
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9227 link_all_deplibs=yes
9228 ;;
9229
9230 os2*)
9231 hardcode_libdir_flag_spec='-L$libdir'
9232 hardcode_minus_L=yes
9233 allow_undefined_flag=unsupported
9234 shrext_cmds=.dll
9235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9238 $ECHO EXPORTS >> $output_objdir/$libname.def~
9239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9241 emximp -o $lib $output_objdir/$libname.def'
9242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9245 $ECHO EXPORTS >> $output_objdir/$libname.def~
9246 prefix_cmds="$SED"~
9247 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9248 prefix_cmds="$prefix_cmds -e 1d";
9249 fi~
9250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9253 emximp -o $lib $output_objdir/$libname.def'
9254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9255 enable_shared_with_static_runtimes=yes
9256 ;;
9257
9258 interix[3-9]*)
9259 hardcode_direct=no
9260 hardcode_shlibpath_var=no
9261 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9262 export_dynamic_flag_spec='$wl-E'
9263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9264 # Instead, shared libraries are loaded at an image base (0x10000000 by
9265 # default) and relocated if they conflict, which is a slow very memory
9266 # consuming and fragmenting process. To avoid this, we pick a random,
9267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9268 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9270 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'
9271 ;;
9272
9273 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9274 tmp_diet=no
9275 if test linux-dietlibc = "$host_os"; then
9276 case $cc_basename in
9277 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9278 esac
9279 fi
9280 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9281 && test no = "$tmp_diet"
9282 then
9283 tmp_addflag=' $pic_flag'
9284 tmp_sharedflag='-shared'
9285 case $cc_basename,$host_cpu in
9286 pgcc*) # Portland Group C compiler
9287 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'
9288 tmp_addflag=' $pic_flag'
9289 ;;
9290 pgf77* | pgf90* | pgf95* | pgfortran*)
9291 # Portland Group f77 and f90 compilers
9292 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'
9293 tmp_addflag=' $pic_flag -Mnomain' ;;
9294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9295 tmp_addflag=' -i_dynamic' ;;
9296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9297 tmp_addflag=' -i_dynamic -nofor_main' ;;
9298 ifc* | ifort*) # Intel Fortran compiler
9299 tmp_addflag=' -nofor_main' ;;
9300 lf95*) # Lahey Fortran 8.1
9301 whole_archive_flag_spec=
9302 tmp_sharedflag='--shared' ;;
9303 nagfor*) # NAGFOR 5.3
9304 tmp_sharedflag='-Wl,-shared' ;;
9305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9306 tmp_sharedflag='-qmkshrobj'
9307 tmp_addflag= ;;
9308 nvcc*) # Cuda Compiler Driver 2.2
9309 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'
9310 compiler_needs_object=yes
9311 ;;
9312 esac
9313 case `$CC -V 2>&1 | sed 5q` in
9314 *Sun\ C*) # Sun C 5.9
9315 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'
9316 compiler_needs_object=yes
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 esac
9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9322
9323 if test yes = "$supports_anon_versioning"; then
9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326 echo "local: *; };" >> $output_objdir/$libname.ver~
9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9328 fi
9329
9330 case $cc_basename in
9331 tcc*)
9332 export_dynamic_flag_spec='-rdynamic'
9333 ;;
9334 xlf* | bgf* | bgxlf* | mpixlf*)
9335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9338 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9339 if test yes = "$supports_anon_versioning"; then
9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342 echo "local: *; };" >> $output_objdir/$libname.ver~
9343 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 fi
9345 ;;
9346 esac
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 netbsd* | netbsdelf*-gnu)
9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355 wlarc=
9356 else
9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9359 fi
9360 ;;
9361
9362 solaris*)
9363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9364 ld_shlibs=no
9365 cat <<_LT_EOF 1>&2
9366
9367 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9368 *** create shared libraries on Solaris systems. Therefore, libtool
9369 *** is disabling shared libraries support. We urge you to upgrade GNU
9370 *** binutils to release 2.9.1 or newer. Another option is to modify
9371 *** your PATH or compiler configuration so that the native linker is
9372 *** used, and then restart.
9373
9374 _LT_EOF
9375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9378 else
9379 ld_shlibs=no
9380 fi
9381 ;;
9382
9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9384 case `$LD -v 2>&1` in
9385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386 ld_shlibs=no
9387 cat <<_LT_EOF 1>&2
9388
9389 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9390 *** reliably create shared libraries on SCO systems. Therefore, libtool
9391 *** is disabling shared libraries support. We urge you to upgrade GNU
9392 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9393 *** your PATH or compiler configuration so that the native linker is
9394 *** used, and then restart.
9395
9396 _LT_EOF
9397 ;;
9398 *)
9399 # For security reasons, it is highly recommended that you always
9400 # use absolute paths for naming shared libraries, and exclude the
9401 # DT_RUNPATH tag from executables and libraries. But doing so
9402 # requires that you compile everything twice, which is a pain.
9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411 esac
9412 ;;
9413
9414 sunos4*)
9415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416 wlarc=
9417 hardcode_direct=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 *)
9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429 esac
9430
9431 if test no = "$ld_shlibs"; then
9432 runpath_var=
9433 hardcode_libdir_flag_spec=
9434 export_dynamic_flag_spec=
9435 whole_archive_flag_spec=
9436 fi
9437 else
9438 # PORTME fill in a description of your system's linker (not GNU ld)
9439 case $host_os in
9440 aix3*)
9441 allow_undefined_flag=unsupported
9442 always_export_symbols=yes
9443 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'
9444 # Note: this linker hardcodes the directories in LIBPATH if there
9445 # are no directories specified by -L.
9446 hardcode_minus_L=yes
9447 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9448 # Neither direct hardcoding nor static linking is supported with a
9449 # broken collect2.
9450 hardcode_direct=unsupported
9451 fi
9452 ;;
9453
9454 aix[4-9]*)
9455 if test ia64 = "$host_cpu"; then
9456 # On IA64, the linker does run time linking by default, so we don't
9457 # have to do anything special.
9458 aix_use_runtimelinking=no
9459 exp_sym_flag='-Bexport'
9460 no_entry_flag=
9461 else
9462 # If we're using GNU nm, then we don't want the "-C" option.
9463 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9464 # Without the "-l" option, or with the "-B" option, AIX nm treats
9465 # weak defined symbols like other global defined symbols, whereas
9466 # GNU nm marks them as "W".
9467 # While the 'weak' keyword is ignored in the Export File, we need
9468 # it in the Import File for the 'aix-soname' feature, so we have
9469 # to replace the "-B" option with "-P" for AIX nm.
9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9472 else
9473 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9474 fi
9475 aix_use_runtimelinking=no
9476
9477 # Test if we are trying to use run time linking or normal
9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479 # have runtime linking enabled, and use it for executables.
9480 # For shared libraries, we enable/disable runtime linking
9481 # depending on the kind of the shared library created -
9482 # when "with_aix_soname,aix_use_runtimelinking" is:
9483 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9484 # "aix,yes" lib.so shared, rtl:yes, for executables
9485 # lib.a static archive
9486 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9487 # lib.a(lib.so.V) shared, rtl:no, for executables
9488 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9489 # lib.a(lib.so.V) shared, rtl:no
9490 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9491 # lib.a static archive
9492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9493 for ld_flag in $LDFLAGS; do
9494 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9495 aix_use_runtimelinking=yes
9496 break
9497 fi
9498 done
9499 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9500 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9501 # so we don't have lib.a shared libs to link our executables.
9502 # We have to force runtime linking in this case.
9503 aix_use_runtimelinking=yes
9504 LDFLAGS="$LDFLAGS -Wl,-brtl"
9505 fi
9506 ;;
9507 esac
9508
9509 exp_sym_flag='-bexport'
9510 no_entry_flag='-bnoentry'
9511 fi
9512
9513 # When large executables or shared objects are built, AIX ld can
9514 # have problems creating the table of contents. If linking a library
9515 # or program results in "error TOC overflow" add -mminimal-toc to
9516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9518
9519 archive_cmds=''
9520 hardcode_direct=yes
9521 hardcode_direct_absolute=yes
9522 hardcode_libdir_separator=':'
9523 link_all_deplibs=yes
9524 file_list_spec='$wl-f,'
9525 case $with_aix_soname,$aix_use_runtimelinking in
9526 aix,*) ;; # traditional, no import file
9527 svr4,* | *,yes) # use import file
9528 # The Import File defines what to hardcode.
9529 hardcode_direct=no
9530 hardcode_direct_absolute=no
9531 ;;
9532 esac
9533
9534 if test yes = "$GCC"; then
9535 case $host_os in aix4.[012]|aix4.[012].*)
9536 # We only want to do this on AIX 4.2 and lower, the check
9537 # below for broken collect2 doesn't work under 4.3+
9538 collect2name=`$CC -print-prog-name=collect2`
9539 if test -f "$collect2name" &&
9540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9541 then
9542 # We have reworked collect2
9543 :
9544 else
9545 # We have old collect2
9546 hardcode_direct=unsupported
9547 # It fails to find uninstalled libraries when the uninstalled
9548 # path is not listed in the libpath. Setting hardcode_minus_L
9549 # to unsupported forces relinking
9550 hardcode_minus_L=yes
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 hardcode_libdir_separator=
9553 fi
9554 ;;
9555 esac
9556 shared_flag='-shared'
9557 if test yes = "$aix_use_runtimelinking"; then
9558 shared_flag="$shared_flag "'$wl-G'
9559 fi
9560 # Need to ensure runtime linking is disabled for the traditional
9561 # shared library, or the linker may eventually find shared libraries
9562 # /with/ Import File - we do not want to mix them.
9563 shared_flag_aix='-shared'
9564 shared_flag_svr4='-shared $wl-G'
9565 else
9566 # not using gcc
9567 if test ia64 = "$host_cpu"; then
9568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9569 # chokes on -Wl,-G. The following line is correct:
9570 shared_flag='-G'
9571 else
9572 if test yes = "$aix_use_runtimelinking"; then
9573 shared_flag='$wl-G'
9574 else
9575 shared_flag='$wl-bM:SRE'
9576 fi
9577 shared_flag_aix='$wl-bM:SRE'
9578 shared_flag_svr4='$wl-G'
9579 fi
9580 fi
9581
9582 export_dynamic_flag_spec='$wl-bexpall'
9583 # It seems that -bexpall does not export symbols beginning with
9584 # underscore (_), so it is better to generate a list of symbols to export.
9585 always_export_symbols=yes
9586 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9587 # Warning - without using the other runtime loading flags (-brtl),
9588 # -berok will link without error, but may produce a broken library.
9589 allow_undefined_flag='-berok'
9590 # Determine the default libpath from the value encoded in an
9591 # empty executable.
9592 if test set = "${lt_cv_aix_libpath+set}"; then
9593 aix_libpath=$lt_cv_aix_libpath
9594 else
9595 if ${lt_cv_aix_libpath_+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600
9601 int
9602 main ()
9603 {
9604
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"; then :
9610
9611 lt_aix_libpath_sed='
9612 /Import File Strings/,/^$/ {
9613 /^0/ {
9614 s/^0 *\([^ ]*\) *$/\1/
9615 p
9616 }
9617 }'
9618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 # Check for a 64-bit object if we didn't find anything.
9620 if test -z "$lt_cv_aix_libpath_"; then
9621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622 fi
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 if test -z "$lt_cv_aix_libpath_"; then
9627 lt_cv_aix_libpath_=/usr/lib:/lib
9628 fi
9629
9630 fi
9631
9632 aix_libpath=$lt_cv_aix_libpath_
9633 fi
9634
9635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9636 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9637 else
9638 if test ia64 = "$host_cpu"; then
9639 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9640 allow_undefined_flag="-z nodefs"
9641 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"
9642 else
9643 # Determine the default libpath from the value encoded in an
9644 # empty executable.
9645 if test set = "${lt_cv_aix_libpath+set}"; then
9646 aix_libpath=$lt_cv_aix_libpath
9647 else
9648 if ${lt_cv_aix_libpath_+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653
9654 int
9655 main ()
9656 {
9657
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_c_try_link "$LINENO"; then :
9663
9664 lt_aix_libpath_sed='
9665 /Import File Strings/,/^$/ {
9666 /^0/ {
9667 s/^0 *\([^ ]*\) *$/\1/
9668 p
9669 }
9670 }'
9671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672 # Check for a 64-bit object if we didn't find anything.
9673 if test -z "$lt_cv_aix_libpath_"; then
9674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 fi
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 if test -z "$lt_cv_aix_libpath_"; then
9680 lt_cv_aix_libpath_=/usr/lib:/lib
9681 fi
9682
9683 fi
9684
9685 aix_libpath=$lt_cv_aix_libpath_
9686 fi
9687
9688 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9689 # Warning - without using the other run time loading flags,
9690 # -berok will link without error, but may produce a broken library.
9691 no_undefined_flag=' $wl-bernotok'
9692 allow_undefined_flag=' $wl-berok'
9693 if test yes = "$with_gnu_ld"; then
9694 # We only use this code for GNU lds that support --whole-archive.
9695 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9696 else
9697 # Exported symbols can be pulled into shared objects from archives
9698 whole_archive_flag_spec='$convenience'
9699 fi
9700 archive_cmds_need_lc=yes
9701 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9702 # -brtl affects multiple linker settings, -berok does not and is overridden later
9703 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9704 if test svr4 != "$with_aix_soname"; then
9705 # This is similar to how AIX traditionally builds its shared libraries.
9706 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9707 fi
9708 if test aix != "$with_aix_soname"; then
9709 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9710 else
9711 # used by -dlpreopen to get the symbols
9712 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9713 fi
9714 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9715 fi
9716 fi
9717 ;;
9718
9719 amigaos*)
9720 case $host_cpu in
9721 powerpc)
9722 # see comment about AmigaOS4 .so support
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9724 archive_expsym_cmds=''
9725 ;;
9726 m68k)
9727 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)'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 ;;
9731 esac
9732 ;;
9733
9734 bsdi[45]*)
9735 export_dynamic_flag_spec=-rdynamic
9736 ;;
9737
9738 cygwin* | mingw* | pw32* | cegcc*)
9739 # When not using gcc, we currently assume that we are using
9740 # Microsoft Visual C++.
9741 # hardcode_libdir_flag_spec is actually meaningless, as there is
9742 # no search path for DLLs.
9743 case $cc_basename in
9744 cl*)
9745 # Native MSVC
9746 hardcode_libdir_flag_spec=' '
9747 allow_undefined_flag=unsupported
9748 always_export_symbols=yes
9749 file_list_spec='@'
9750 # Tell ltmain to make .lib files, not .a files.
9751 libext=lib
9752 # Tell ltmain to make .dll files, not .so files.
9753 shrext_cmds=.dll
9754 # FIXME: Setting linknames here is a bad hack.
9755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9757 cp "$export_symbols" "$output_objdir/$soname.def";
9758 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9759 else
9760 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9761 fi~
9762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9763 linknames='
9764 # The linker will not automatically build a static lib if we build a DLL.
9765 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9766 enable_shared_with_static_runtimes=yes
9767 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9769 # Don't use ranlib
9770 old_postinstall_cmds='chmod 644 $oldlib'
9771 postlink_cmds='lt_outputfile="@OUTPUT@"~
9772 lt_tool_outputfile="@TOOL_OUTPUT@"~
9773 case $lt_outputfile in
9774 *.exe|*.EXE) ;;
9775 *)
9776 lt_outputfile=$lt_outputfile.exe
9777 lt_tool_outputfile=$lt_tool_outputfile.exe
9778 ;;
9779 esac~
9780 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9781 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9782 $RM "$lt_outputfile.manifest";
9783 fi'
9784 ;;
9785 *)
9786 # Assume MSVC wrapper
9787 hardcode_libdir_flag_spec=' '
9788 allow_undefined_flag=unsupported
9789 # Tell ltmain to make .lib files, not .a files.
9790 libext=lib
9791 # Tell ltmain to make .dll files, not .so files.
9792 shrext_cmds=.dll
9793 # FIXME: Setting linknames here is a bad hack.
9794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9795 # The linker will automatically build a .lib file if we build a DLL.
9796 old_archive_from_new_cmds='true'
9797 # FIXME: Should let the user specify the lib program.
9798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9799 enable_shared_with_static_runtimes=yes
9800 ;;
9801 esac
9802 ;;
9803
9804 darwin* | rhapsody*)
9805
9806
9807 archive_cmds_need_lc=no
9808 hardcode_direct=no
9809 hardcode_automatic=yes
9810 hardcode_shlibpath_var=unsupported
9811 if test yes = "$lt_cv_ld_force_load"; then
9812 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\"`'
9813
9814 else
9815 whole_archive_flag_spec=''
9816 fi
9817 link_all_deplibs=yes
9818 allow_undefined_flag=$_lt_dar_allow_undefined
9819 case $cc_basename in
9820 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9821 *) _lt_dar_can_shared=$GCC ;;
9822 esac
9823 if test yes = "$_lt_dar_can_shared"; then
9824 output_verbose_link_cmd=func_echo_all
9825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9827 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"
9828 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"
9829
9830 else
9831 ld_shlibs=no
9832 fi
9833
9834 ;;
9835
9836 dgux*)
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_libdir_flag_spec='-L$libdir'
9839 hardcode_shlibpath_var=no
9840 ;;
9841
9842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9843 # support. Future versions do this automatically, but an explicit c++rt0.o
9844 # does not break anything, and helps significantly (at the cost of a little
9845 # extra space).
9846 freebsd2.2*)
9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9848 hardcode_libdir_flag_spec='-R$libdir'
9849 hardcode_direct=yes
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9854 freebsd2.*)
9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_direct=yes
9857 hardcode_minus_L=yes
9858 hardcode_shlibpath_var=no
9859 ;;
9860
9861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9862 freebsd* | dragonfly*)
9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864 hardcode_libdir_flag_spec='-R$libdir'
9865 hardcode_direct=yes
9866 hardcode_shlibpath_var=no
9867 ;;
9868
9869 hpux9*)
9870 if test yes = "$GCC"; then
9871 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9872 else
9873 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9874 fi
9875 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9876 hardcode_libdir_separator=:
9877 hardcode_direct=yes
9878
9879 # hardcode_minus_L: Not really in the search PATH,
9880 # but as the default location of the library.
9881 hardcode_minus_L=yes
9882 export_dynamic_flag_spec='$wl-E'
9883 ;;
9884
9885 hpux10*)
9886 if test yes,no = "$GCC,$with_gnu_ld"; then
9887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888 else
9889 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9890 fi
9891 if test no = "$with_gnu_ld"; then
9892 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9893 hardcode_libdir_separator=:
9894 hardcode_direct=yes
9895 hardcode_direct_absolute=yes
9896 export_dynamic_flag_spec='$wl-E'
9897 # hardcode_minus_L: Not really in the search PATH,
9898 # but as the default location of the library.
9899 hardcode_minus_L=yes
9900 fi
9901 ;;
9902
9903 hpux11*)
9904 if test yes,no = "$GCC,$with_gnu_ld"; then
9905 case $host_cpu in
9906 hppa*64*)
9907 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9908 ;;
9909 ia64*)
9910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9911 ;;
9912 *)
9913 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914 ;;
9915 esac
9916 else
9917 case $host_cpu in
9918 hppa*64*)
9919 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 ;;
9921 ia64*)
9922 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9923 ;;
9924 *)
9925
9926 # Older versions of the 11.00 compiler do not understand -b yet
9927 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9929 $as_echo_n "checking if $CC understands -b... " >&6; }
9930 if ${lt_cv_prog_compiler__b+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 lt_cv_prog_compiler__b=no
9934 save_LDFLAGS=$LDFLAGS
9935 LDFLAGS="$LDFLAGS -b"
9936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9938 # The linker can only warn and ignore the option if not recognized
9939 # So say no if there are warnings
9940 if test -s conftest.err; then
9941 # Append any errors to the config.log.
9942 cat conftest.err 1>&5
9943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945 if diff conftest.exp conftest.er2 >/dev/null; then
9946 lt_cv_prog_compiler__b=yes
9947 fi
9948 else
9949 lt_cv_prog_compiler__b=yes
9950 fi
9951 fi
9952 $RM -r conftest*
9953 LDFLAGS=$save_LDFLAGS
9954
9955 fi
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9957 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9958
9959 if test yes = "$lt_cv_prog_compiler__b"; then
9960 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 else
9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963 fi
9964
9965 ;;
9966 esac
9967 fi
9968 if test no = "$with_gnu_ld"; then
9969 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9970 hardcode_libdir_separator=:
9971
9972 case $host_cpu in
9973 hppa*64*|ia64*)
9974 hardcode_direct=no
9975 hardcode_shlibpath_var=no
9976 ;;
9977 *)
9978 hardcode_direct=yes
9979 hardcode_direct_absolute=yes
9980 export_dynamic_flag_spec='$wl-E'
9981
9982 # hardcode_minus_L: Not really in the search PATH,
9983 # but as the default location of the library.
9984 hardcode_minus_L=yes
9985 ;;
9986 esac
9987 fi
9988 ;;
9989
9990 irix5* | irix6* | nonstopux*)
9991 if test yes = "$GCC"; then
9992 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'
9993 # Try to use the -exported_symbol ld option, if it does not
9994 # work, assume that -exports_file does not work either and
9995 # implicitly export all symbols.
9996 # This should be the same for all languages, so no per-tag cache variable.
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9998 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9999 if ${lt_cv_irix_exported_symbol+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 save_LDFLAGS=$LDFLAGS
10003 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int foo (void) { return 0; }
10007 _ACEOF
10008 if ac_fn_c_try_link "$LINENO"; then :
10009 lt_cv_irix_exported_symbol=yes
10010 else
10011 lt_cv_irix_exported_symbol=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LDFLAGS=$save_LDFLAGS
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10018 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10019 if test yes = "$lt_cv_irix_exported_symbol"; then
10020 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'
10021 fi
10022 link_all_deplibs=no
10023 else
10024 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'
10025 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'
10026 fi
10027 archive_cmds_need_lc='no'
10028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10029 hardcode_libdir_separator=:
10030 inherit_rpath=yes
10031 link_all_deplibs=yes
10032 ;;
10033
10034 linux*)
10035 case $cc_basename in
10036 tcc*)
10037 # Fabrice Bellard et al's Tiny C Compiler
10038 ld_shlibs=yes
10039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10040 ;;
10041 esac
10042 ;;
10043
10044 netbsd* | netbsdelf*-gnu)
10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10047 else
10048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10049 fi
10050 hardcode_libdir_flag_spec='-R$libdir'
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 ;;
10054
10055 newsos6)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes
10058 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *nto* | *qnx*)
10064 ;;
10065
10066 openbsd* | bitrig*)
10067 if test -f /usr/libexec/ld.so; then
10068 hardcode_direct=yes
10069 hardcode_shlibpath_var=no
10070 hardcode_direct_absolute=yes
10071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10074 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10075 export_dynamic_flag_spec='$wl-E'
10076 else
10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10079 fi
10080 else
10081 ld_shlibs=no
10082 fi
10083 ;;
10084
10085 os2*)
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 hardcode_minus_L=yes
10088 allow_undefined_flag=unsupported
10089 shrext_cmds=.dll
10090 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10091 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10092 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10093 $ECHO EXPORTS >> $output_objdir/$libname.def~
10094 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10095 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10096 emximp -o $lib $output_objdir/$libname.def'
10097 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10098 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10099 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10100 $ECHO EXPORTS >> $output_objdir/$libname.def~
10101 prefix_cmds="$SED"~
10102 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10103 prefix_cmds="$prefix_cmds -e 1d";
10104 fi~
10105 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10106 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10108 emximp -o $lib $output_objdir/$libname.def'
10109 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10110 enable_shared_with_static_runtimes=yes
10111 ;;
10112
10113 osf3*)
10114 if test yes = "$GCC"; then
10115 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10116 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'
10117 else
10118 allow_undefined_flag=' -expect_unresolved \*'
10119 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'
10120 fi
10121 archive_cmds_need_lc='no'
10122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10123 hardcode_libdir_separator=:
10124 ;;
10125
10126 osf4* | osf5*) # as osf3* with the addition of -msym flag
10127 if test yes = "$GCC"; then
10128 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10129 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'
10130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10131 else
10132 allow_undefined_flag=' -expect_unresolved \*'
10133 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'
10134 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~
10135 $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'
10136
10137 # Both c and cxx compiler support -rpath directly
10138 hardcode_libdir_flag_spec='-rpath $libdir'
10139 fi
10140 archive_cmds_need_lc='no'
10141 hardcode_libdir_separator=:
10142 ;;
10143
10144 solaris*)
10145 no_undefined_flag=' -z defs'
10146 if test yes = "$GCC"; then
10147 wlarc='$wl'
10148 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $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'
10151 else
10152 case `$CC -V 2>&1` in
10153 *"Compilers 5.0"*)
10154 wlarc=''
10155 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10157 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10158 ;;
10159 *)
10160 wlarc='$wl'
10161 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10163 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10164 ;;
10165 esac
10166 fi
10167 hardcode_libdir_flag_spec='-R$libdir'
10168 hardcode_shlibpath_var=no
10169 case $host_os in
10170 solaris2.[0-5] | solaris2.[0-5].*) ;;
10171 *)
10172 # The compiler driver will combine and reorder linker options,
10173 # but understands '-z linker_flag'. GCC discards it without '$wl',
10174 # but is careful enough not to reorder.
10175 # Supported since Solaris 2.6 (maybe 2.5.1?)
10176 if test yes = "$GCC"; then
10177 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10178 else
10179 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10180 fi
10181 ;;
10182 esac
10183 link_all_deplibs=yes
10184 ;;
10185
10186 sunos4*)
10187 if test sequent = "$host_vendor"; then
10188 # Use $CC to link under sequent, because it throws in some extra .o
10189 # files that make .init and .fini sections work.
10190 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10191 else
10192 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10193 fi
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_direct=yes
10196 hardcode_minus_L=yes
10197 hardcode_shlibpath_var=no
10198 ;;
10199
10200 sysv4)
10201 case $host_vendor in
10202 sni)
10203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=yes # is this really true???
10205 ;;
10206 siemens)
10207 ## LD is ld it makes a PLAMLIB
10208 ## CC just makes a GrossModule.
10209 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10210 reload_cmds='$CC -r -o $output$reload_objs'
10211 hardcode_direct=no
10212 ;;
10213 motorola)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10216 ;;
10217 esac
10218 runpath_var='LD_RUN_PATH'
10219 hardcode_shlibpath_var=no
10220 ;;
10221
10222 sysv4.3*)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 export_dynamic_flag_spec='-Bexport'
10226 ;;
10227
10228 sysv4*MP*)
10229 if test -d /usr/nec; then
10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_shlibpath_var=no
10232 runpath_var=LD_RUN_PATH
10233 hardcode_runpath_var=yes
10234 ld_shlibs=yes
10235 fi
10236 ;;
10237
10238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10239 no_undefined_flag='$wl-z,text'
10240 archive_cmds_need_lc=no
10241 hardcode_shlibpath_var=no
10242 runpath_var='LD_RUN_PATH'
10243
10244 if test yes = "$GCC"; then
10245 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 else
10248 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 fi
10251 ;;
10252
10253 sysv5* | sco3.2v5* | sco5v6*)
10254 # Note: We CANNOT use -z defs as we might desire, because we do not
10255 # link with -lc, and that would cause any symbols used from libc to
10256 # always be unresolved, which means just about no library would
10257 # ever link correctly. If we're not using GNU ld we use -z text
10258 # though, which does catch some bad symbols but isn't as heavy-handed
10259 # as -z defs.
10260 no_undefined_flag='$wl-z,text'
10261 allow_undefined_flag='$wl-z,nodefs'
10262 archive_cmds_need_lc=no
10263 hardcode_shlibpath_var=no
10264 hardcode_libdir_flag_spec='$wl-R,$libdir'
10265 hardcode_libdir_separator=':'
10266 link_all_deplibs=yes
10267 export_dynamic_flag_spec='$wl-Bexport'
10268 runpath_var='LD_RUN_PATH'
10269
10270 if test yes = "$GCC"; then
10271 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 else
10274 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 fi
10277 ;;
10278
10279 uts4*)
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_libdir_flag_spec='-L$libdir'
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 *)
10286 ld_shlibs=no
10287 ;;
10288 esac
10289
10290 if test sni = "$host_vendor"; then
10291 case $host in
10292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10293 export_dynamic_flag_spec='$wl-Blargedynsym'
10294 ;;
10295 esac
10296 fi
10297 fi
10298
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10300 $as_echo "$ld_shlibs" >&6; }
10301 test no = "$ld_shlibs" && can_build_shared=no
10302
10303 with_gnu_ld=$with_gnu_ld
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 #
10320 # Do we need to explicitly link libc?
10321 #
10322 case "x$archive_cmds_need_lc" in
10323 x|xyes)
10324 # Assume -lc should be added
10325 archive_cmds_need_lc=yes
10326
10327 if test yes,yes = "$GCC,$enable_shared"; then
10328 case $archive_cmds in
10329 *'~'*)
10330 # FIXME: we may have to deal with multi-command sequences.
10331 ;;
10332 '$CC '*)
10333 # Test whether the compiler implicitly links with -lc since on some
10334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10335 # to ld, don't add -lc before -lgcc.
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10338 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 $RM conftest*
10342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343
10344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10345 (eval $ac_compile) 2>&5
10346 ac_status=$?
10347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10348 test $ac_status = 0; } 2>conftest.err; then
10349 soname=conftest
10350 lib=conftest
10351 libobjs=conftest.$ac_objext
10352 deplibs=
10353 wl=$lt_prog_compiler_wl
10354 pic_flag=$lt_prog_compiler_pic
10355 compiler_flags=-v
10356 linker_flags=-v
10357 verstring=
10358 output_objdir=.
10359 libname=conftest
10360 lt_save_allow_undefined_flag=$allow_undefined_flag
10361 allow_undefined_flag=
10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10363 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10364 ac_status=$?
10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366 test $ac_status = 0; }
10367 then
10368 lt_cv_archive_cmds_need_lc=no
10369 else
10370 lt_cv_archive_cmds_need_lc=yes
10371 fi
10372 allow_undefined_flag=$lt_save_allow_undefined_flag
10373 else
10374 cat conftest.err 1>&5
10375 fi
10376 $RM conftest*
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10380 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10381 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10382 ;;
10383 esac
10384 fi
10385 ;;
10386 esac
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10541
10542 if test yes = "$GCC"; then
10543 case $host_os in
10544 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10545 *) lt_awk_arg='/^libraries:/' ;;
10546 esac
10547 case $host_os in
10548 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10549 *) lt_sed_strip_eq='s|=/|/|g' ;;
10550 esac
10551 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10552 case $lt_search_path_spec in
10553 *\;*)
10554 # if the path contains ";" then we assume it to be the separator
10555 # otherwise default to the standard path separator (i.e. ":") - it is
10556 # assumed that no part of a normal pathname contains ";" but that should
10557 # okay in the real world where ";" in dirpaths is itself problematic.
10558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10559 ;;
10560 *)
10561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10562 ;;
10563 esac
10564 # Ok, now we have the path, separated by spaces, we can step through it
10565 # and add multilib dir if necessary...
10566 lt_tmp_lt_search_path_spec=
10567 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10568 # ...but if some path component already ends with the multilib dir we assume
10569 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10570 case "$lt_multi_os_dir; $lt_search_path_spec " in
10571 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10572 lt_multi_os_dir=
10573 ;;
10574 esac
10575 for lt_sys_path in $lt_search_path_spec; do
10576 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10577 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10578 elif test -n "$lt_multi_os_dir"; then
10579 test -d "$lt_sys_path" && \
10580 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10581 fi
10582 done
10583 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10584 BEGIN {RS = " "; FS = "/|\n";} {
10585 lt_foo = "";
10586 lt_count = 0;
10587 for (lt_i = NF; lt_i > 0; lt_i--) {
10588 if ($lt_i != "" && $lt_i != ".") {
10589 if ($lt_i == "..") {
10590 lt_count++;
10591 } else {
10592 if (lt_count == 0) {
10593 lt_foo = "/" $lt_i lt_foo;
10594 } else {
10595 lt_count--;
10596 }
10597 }
10598 }
10599 }
10600 if (lt_foo != "") { lt_freq[lt_foo]++; }
10601 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10602 }'`
10603 # AWK program above erroneously prepends '/' to C:/dos/paths
10604 # for these hosts.
10605 case $host_os in
10606 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10607 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10608 esac
10609 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10610 else
10611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10612 fi
10613 library_names_spec=
10614 libname_spec='lib$name'
10615 soname_spec=
10616 shrext_cmds=.so
10617 postinstall_cmds=
10618 postuninstall_cmds=
10619 finish_cmds=
10620 finish_eval=
10621 shlibpath_var=
10622 shlibpath_overrides_runpath=unknown
10623 version_type=none
10624 dynamic_linker="$host_os ld.so"
10625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10626 need_lib_prefix=unknown
10627 hardcode_into_libs=no
10628
10629 # when you set need_version to no, make sure it does not cause -set_version
10630 # flags to be left without arguments
10631 need_version=unknown
10632
10633
10634
10635 case $host_os in
10636 aix3*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10639 shlibpath_var=LIBPATH
10640
10641 # AIX 3 has no versioning support, so we append a major version to the name.
10642 soname_spec='$libname$release$shared_ext$major'
10643 ;;
10644
10645 aix[4-9]*)
10646 version_type=linux # correct to gnu/linux during the next big refactor
10647 need_lib_prefix=no
10648 need_version=no
10649 hardcode_into_libs=yes
10650 if test ia64 = "$host_cpu"; then
10651 # AIX 5 supports IA64
10652 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 else
10655 # With GCC up to 2.95.x, collect2 would create an import file
10656 # for dependence libraries. The import file would start with
10657 # the line '#! .'. This would cause the generated library to
10658 # depend on '.', always an invalid library. This was fixed in
10659 # development snapshots of GCC prior to 3.0.
10660 case $host_os in
10661 aix4 | aix4.[01] | aix4.[01].*)
10662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10663 echo ' yes '
10664 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10665 :
10666 else
10667 can_build_shared=no
10668 fi
10669 ;;
10670 esac
10671 # Using Import Files as archive members, it is possible to support
10672 # filename-based versioning of shared library archives on AIX. While
10673 # this would work for both with and without runtime linking, it will
10674 # prevent static linking of such archives. So we do filename-based
10675 # shared library versioning with .so extension only, which is used
10676 # when both runtime linking and shared linking is enabled.
10677 # Unfortunately, runtime linking may impact performance, so we do
10678 # not want this to be the default eventually. Also, we use the
10679 # versioned .so libs for executables only if there is the -brtl
10680 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10681 # To allow for filename-based versioning support, we need to create
10682 # libNAME.so.V as an archive file, containing:
10683 # *) an Import File, referring to the versioned filename of the
10684 # archive as well as the shared archive member, telling the
10685 # bitwidth (32 or 64) of that shared object, and providing the
10686 # list of exported symbols of that shared object, eventually
10687 # decorated with the 'weak' keyword
10688 # *) the shared object with the F_LOADONLY flag set, to really avoid
10689 # it being seen by the linker.
10690 # At run time we better use the real file rather than another symlink,
10691 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10692
10693 case $with_aix_soname,$aix_use_runtimelinking in
10694 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10695 # soname into executable. Probably we can add versioning support to
10696 # collect2, so additional links can be useful in future.
10697 aix,yes) # traditional libtool
10698 dynamic_linker='AIX unversionable lib.so'
10699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10700 # instead of lib<name>.a to let people know that these are not
10701 # typical AIX shared libraries.
10702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10703 ;;
10704 aix,no) # traditional AIX only
10705 dynamic_linker='AIX lib.a(lib.so.V)'
10706 # We preserve .a as extension for shared libraries through AIX4.2
10707 # and later when we are not doing run time linking.
10708 library_names_spec='$libname$release.a $libname.a'
10709 soname_spec='$libname$release$shared_ext$major'
10710 ;;
10711 svr4,*) # full svr4 only
10712 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10713 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10714 # We do not specify a path in Import Files, so LIBPATH fires.
10715 shlibpath_overrides_runpath=yes
10716 ;;
10717 *,yes) # both, prefer svr4
10718 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10719 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10720 # unpreferred sharedlib libNAME.a needs extra handling
10721 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10722 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10723 # We do not specify a path in Import Files, so LIBPATH fires.
10724 shlibpath_overrides_runpath=yes
10725 ;;
10726 *,no) # both, prefer aix
10727 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10728 library_names_spec='$libname$release.a $libname.a'
10729 soname_spec='$libname$release$shared_ext$major'
10730 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10731 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10732 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10733 ;;
10734 esac
10735 shlibpath_var=LIBPATH
10736 fi
10737 ;;
10738
10739 amigaos*)
10740 case $host_cpu in
10741 powerpc)
10742 # Since July 2007 AmigaOS4 officially supports .so libraries.
10743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10745 ;;
10746 m68k)
10747 library_names_spec='$libname.ixlibrary $libname.a'
10748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10749 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10750 ;;
10751 esac
10752 ;;
10753
10754 beos*)
10755 library_names_spec='$libname$shared_ext'
10756 dynamic_linker="$host_os ld.so"
10757 shlibpath_var=LIBRARY_PATH
10758 ;;
10759
10760 bsdi[45]*)
10761 version_type=linux # correct to gnu/linux during the next big refactor
10762 need_version=no
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764 soname_spec='$libname$release$shared_ext$major'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10769 # the default ld.so.conf also contains /usr/contrib/lib and
10770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10771 # libtool to hard-code these into programs
10772 ;;
10773
10774 cygwin* | mingw* | pw32* | cegcc*)
10775 version_type=windows
10776 shrext_cmds=.dll
10777 need_version=no
10778 need_lib_prefix=no
10779
10780 case $GCC,$cc_basename in
10781 yes,*)
10782 # gcc
10783 library_names_spec='$libname.dll.a'
10784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10785 postinstall_cmds='base_file=`basename \$file`~
10786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10787 dldir=$destdir/`dirname \$dlpath`~
10788 test -d \$dldir || mkdir -p \$dldir~
10789 $install_prog $dir/$dlname \$dldir/$dlname~
10790 chmod a+x \$dldir/$dlname~
10791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10793 fi'
10794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10795 dlpath=$dir/\$dldll~
10796 $RM \$dlpath'
10797 shlibpath_overrides_runpath=yes
10798
10799 case $host_os in
10800 cygwin*)
10801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10802 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10803
10804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10805 ;;
10806 mingw* | cegcc*)
10807 # MinGW DLLs use traditional 'lib' prefix
10808 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10809 ;;
10810 pw32*)
10811 # pw32 DLLs use 'pw' prefix rather than 'lib'
10812 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10813 ;;
10814 esac
10815 dynamic_linker='Win32 ld.exe'
10816 ;;
10817
10818 *,cl*)
10819 # Native MSVC
10820 libname_spec='$name'
10821 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10822 library_names_spec='$libname.dll.lib'
10823
10824 case $build_os in
10825 mingw*)
10826 sys_lib_search_path_spec=
10827 lt_save_ifs=$IFS
10828 IFS=';'
10829 for lt_path in $LIB
10830 do
10831 IFS=$lt_save_ifs
10832 # Let DOS variable expansion print the short 8.3 style file name.
10833 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10834 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10835 done
10836 IFS=$lt_save_ifs
10837 # Convert to MSYS style.
10838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10839 ;;
10840 cygwin*)
10841 # Convert to unix form, then to dos form, then back to unix form
10842 # but this time dos style (no spaces!) so that the unix form looks
10843 # like /cygdrive/c/PROGRA~1:/cygdr...
10844 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10845 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10846 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10847 ;;
10848 *)
10849 sys_lib_search_path_spec=$LIB
10850 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10851 # It is most probably a Windows format PATH.
10852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10853 else
10854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10855 fi
10856 # FIXME: find the short name or the path components, as spaces are
10857 # common. (e.g. "Program Files" -> "PROGRA~1")
10858 ;;
10859 esac
10860
10861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10862 postinstall_cmds='base_file=`basename \$file`~
10863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10864 dldir=$destdir/`dirname \$dlpath`~
10865 test -d \$dldir || mkdir -p \$dldir~
10866 $install_prog $dir/$dlname \$dldir/$dlname'
10867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10868 dlpath=$dir/\$dldll~
10869 $RM \$dlpath'
10870 shlibpath_overrides_runpath=yes
10871 dynamic_linker='Win32 link.exe'
10872 ;;
10873
10874 *)
10875 # Assume MSVC wrapper
10876 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10877 dynamic_linker='Win32 ld.exe'
10878 ;;
10879 esac
10880 # FIXME: first we should search . and the directory the executable is in
10881 shlibpath_var=PATH
10882 ;;
10883
10884 darwin* | rhapsody*)
10885 dynamic_linker="$host_os dyld"
10886 version_type=darwin
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10890 soname_spec='$libname$release$major$shared_ext'
10891 shlibpath_overrides_runpath=yes
10892 shlibpath_var=DYLD_LIBRARY_PATH
10893 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10894
10895 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10897 ;;
10898
10899 dgux*)
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 ;;
10907
10908 freebsd* | dragonfly*)
10909 # DragonFly does not have aout. When/if they implement a new
10910 # versioning mechanism, adjust this.
10911 if test -x /usr/bin/objformat; then
10912 objformat=`/usr/bin/objformat`
10913 else
10914 case $host_os in
10915 freebsd[23].*) objformat=aout ;;
10916 *) objformat=elf ;;
10917 esac
10918 fi
10919 version_type=freebsd-$objformat
10920 case $version_type in
10921 freebsd-elf*)
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 soname_spec='$libname$release$shared_ext$major'
10924 need_version=no
10925 need_lib_prefix=no
10926 ;;
10927 freebsd-*)
10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10929 need_version=yes
10930 ;;
10931 esac
10932 shlibpath_var=LD_LIBRARY_PATH
10933 case $host_os in
10934 freebsd2.*)
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937 freebsd3.[01]* | freebsdelf3.[01]*)
10938 shlibpath_overrides_runpath=yes
10939 hardcode_into_libs=yes
10940 ;;
10941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 ;;
10946 *) # from 4.6 on, and DragonFly
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10949 ;;
10950 esac
10951 ;;
10952
10953 haiku*)
10954 version_type=linux # correct to gnu/linux during the next big refactor
10955 need_lib_prefix=no
10956 need_version=no
10957 dynamic_linker="$host_os runtime_loader"
10958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10959 soname_spec='$libname$release$shared_ext$major'
10960 shlibpath_var=LIBRARY_PATH
10961 shlibpath_overrides_runpath=no
10962 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10963 hardcode_into_libs=yes
10964 ;;
10965
10966 hpux9* | hpux10* | hpux11*)
10967 # Give a soname corresponding to the major version so that dld.sl refuses to
10968 # link against other versions.
10969 version_type=sunos
10970 need_lib_prefix=no
10971 need_version=no
10972 case $host_cpu in
10973 ia64*)
10974 shrext_cmds='.so'
10975 hardcode_into_libs=yes
10976 dynamic_linker="$host_os dld.so"
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 soname_spec='$libname$release$shared_ext$major'
10981 if test 32 = "$HPUX_IA64_MODE"; then
10982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10983 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10984 else
10985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10986 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10987 fi
10988 ;;
10989 hppa*64*)
10990 shrext_cmds='.sl'
10991 hardcode_into_libs=yes
10992 dynamic_linker="$host_os dld.sl"
10993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10996 soname_spec='$libname$release$shared_ext$major'
10997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 ;;
11000 *)
11001 shrext_cmds='.sl'
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=SHLIB_PATH
11004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11006 soname_spec='$libname$release$shared_ext$major'
11007 ;;
11008 esac
11009 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11010 postinstall_cmds='chmod 555 $lib'
11011 # or fails outright, so override atomically:
11012 install_override_mode=555
11013 ;;
11014
11015 interix[3-9]*)
11016 version_type=linux # correct to gnu/linux during the next big refactor
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11020 soname_spec='$libname$release$shared_ext$major'
11021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026
11027 irix5* | irix6* | nonstopux*)
11028 case $host_os in
11029 nonstopux*) version_type=nonstopux ;;
11030 *)
11031 if test yes = "$lt_cv_prog_gnu_ld"; then
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 else
11034 version_type=irix
11035 fi ;;
11036 esac
11037 need_lib_prefix=no
11038 need_version=no
11039 soname_spec='$libname$release$shared_ext$major'
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11041 case $host_os in
11042 irix5* | nonstopux*)
11043 libsuff= shlibsuff=
11044 ;;
11045 *)
11046 case $LD in # libtool.m4 will add one of these switches to LD
11047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11048 libsuff= shlibsuff= libmagic=32-bit;;
11049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11050 libsuff=32 shlibsuff=N32 libmagic=N32;;
11051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11053 *) libsuff= shlibsuff= libmagic=never-match;;
11054 esac
11055 ;;
11056 esac
11057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11058 shlibpath_overrides_runpath=no
11059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11060 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11061 hardcode_into_libs=yes
11062 ;;
11063
11064 # No shared lib support for Linux oldld, aout, or coff.
11065 linux*oldld* | linux*aout* | linux*coff*)
11066 dynamic_linker=no
11067 ;;
11068
11069 linux*android*)
11070 version_type=none # Android doesn't support versioned libraries.
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='$libname$release$shared_ext'
11074 soname_spec='$libname$release$shared_ext'
11075 finish_cmds=
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=yes
11078
11079 # This implies no fast_install, which is unacceptable.
11080 # Some rework will be needed to allow for fast_install
11081 # before this can be enabled.
11082 hardcode_into_libs=yes
11083
11084 dynamic_linker='Android linker'
11085 # Don't embed -rpath directories since the linker doesn't support them.
11086 hardcode_libdir_flag_spec='-L$libdir'
11087 ;;
11088
11089 # This must be glibc/ELF.
11090 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 soname_spec='$libname$release$shared_ext$major'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=no
11099
11100 # Some binutils ld are patched to set DT_RUNPATH
11101 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 lt_cv_shlibpath_overrides_runpath=no
11105 save_LDFLAGS=$LDFLAGS
11106 save_libdir=$libdir
11107 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11108 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111
11112 int
11113 main ()
11114 {
11115
11116 ;
11117 return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11122 lt_cv_shlibpath_overrides_runpath=yes
11123 fi
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LDFLAGS=$save_LDFLAGS
11128 libdir=$save_libdir
11129
11130 fi
11131
11132 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11133
11134 # This implies no fast_install, which is unacceptable.
11135 # Some rework will be needed to allow for fast_install
11136 # before this can be enabled.
11137 hardcode_into_libs=yes
11138
11139 # Ideally, we could use ldconfig to report *all* directores which are
11140 # searched for libraries, however this is still not possible. Aside from not
11141 # being certain /sbin/ldconfig is available, command
11142 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11143 # even though it is searched at run-time. Try to do the best guess by
11144 # appending ld.so.conf contents (and includes) to the search path.
11145 if test -f /etc/ld.so.conf; then
11146 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' ' '`
11147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11148 fi
11149
11150 # We used to test for /lib/ld.so.1 and disable shared libraries on
11151 # powerpc, because MkLinux only supported shared libraries with the
11152 # GNU dynamic linker. Since this was broken with cross compilers,
11153 # most powerpc-linux boxes support dynamic linking these days and
11154 # people can always --disable-shared, the test was removed, and we
11155 # assume the GNU/Linux dynamic linker is in use.
11156 dynamic_linker='GNU/Linux ld.so'
11157 ;;
11158
11159 netbsdelf*-gnu)
11160 version_type=linux
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11168 dynamic_linker='NetBSD ld.elf_so'
11169 ;;
11170
11171 netbsd*)
11172 version_type=sunos
11173 need_lib_prefix=no
11174 need_version=no
11175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11178 dynamic_linker='NetBSD (a.out) ld.so'
11179 else
11180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 soname_spec='$libname$release$shared_ext$major'
11182 dynamic_linker='NetBSD ld.elf_so'
11183 fi
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 ;;
11188
11189 newsos6)
11190 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes
11194 ;;
11195
11196 *nto* | *qnx*)
11197 version_type=qnx
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201 soname_spec='$libname$release$shared_ext$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11205 dynamic_linker='ldqnx.so'
11206 ;;
11207
11208 openbsd* | bitrig*)
11209 version_type=sunos
11210 sys_lib_dlsearch_path_spec=/usr/lib
11211 need_lib_prefix=no
11212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11213 need_version=no
11214 else
11215 need_version=yes
11216 fi
11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 ;;
11222
11223 os2*)
11224 libname_spec='$name'
11225 version_type=windows
11226 shrext_cmds=.dll
11227 need_version=no
11228 need_lib_prefix=no
11229 # OS/2 can only load a DLL with a base name of 8 characters or less.
11230 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11231 v=$($ECHO $release$versuffix | tr -d .-);
11232 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11233 $ECHO $n$v`$shared_ext'
11234 library_names_spec='${libname}_dll.$libext'
11235 dynamic_linker='OS/2 ld.exe'
11236 shlibpath_var=BEGINLIBPATH
11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11239 postinstall_cmds='base_file=`basename \$file`~
11240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11241 dldir=$destdir/`dirname \$dlpath`~
11242 test -d \$dldir || mkdir -p \$dldir~
11243 $install_prog $dir/$dlname \$dldir/$dlname~
11244 chmod a+x \$dldir/$dlname~
11245 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11246 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11247 fi'
11248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11249 dlpath=$dir/\$dldll~
11250 $RM \$dlpath'
11251 ;;
11252
11253 osf3* | osf4* | osf5*)
11254 version_type=osf
11255 need_lib_prefix=no
11256 need_version=no
11257 soname_spec='$libname$release$shared_ext$major'
11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11262 ;;
11263
11264 rdos*)
11265 dynamic_linker=no
11266 ;;
11267
11268 solaris*)
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec='$libname$release$shared_ext$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11277 # ldd complains unless libraries are executable
11278 postinstall_cmds='chmod +x $lib'
11279 ;;
11280
11281 sunos4*)
11282 version_type=sunos
11283 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=yes
11287 if test yes = "$with_gnu_ld"; then
11288 need_lib_prefix=no
11289 fi
11290 need_version=yes
11291 ;;
11292
11293 sysv4 | sysv4.3*)
11294 version_type=linux # correct to gnu/linux during the next big refactor
11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296 soname_spec='$libname$release$shared_ext$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 case $host_vendor in
11299 sni)
11300 shlibpath_overrides_runpath=no
11301 need_lib_prefix=no
11302 runpath_var=LD_RUN_PATH
11303 ;;
11304 siemens)
11305 need_lib_prefix=no
11306 ;;
11307 motorola)
11308 need_lib_prefix=no
11309 need_version=no
11310 shlibpath_overrides_runpath=no
11311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11312 ;;
11313 esac
11314 ;;
11315
11316 sysv4*MP*)
11317 if test -d /usr/nec; then
11318 version_type=linux # correct to gnu/linux during the next big refactor
11319 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11320 soname_spec='$libname$shared_ext.$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 fi
11323 ;;
11324
11325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11326 version_type=sco
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11330 soname_spec='$libname$release$shared_ext$major'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 hardcode_into_libs=yes
11334 if test yes = "$with_gnu_ld"; then
11335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11336 else
11337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11338 case $host_os in
11339 sco3.2v5*)
11340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11341 ;;
11342 esac
11343 fi
11344 sys_lib_dlsearch_path_spec='/usr/lib'
11345 ;;
11346
11347 tpf*)
11348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11349 version_type=linux # correct to gnu/linux during the next big refactor
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11356 ;;
11357
11358 uts4*)
11359 version_type=linux # correct to gnu/linux during the next big refactor
11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11361 soname_spec='$libname$release$shared_ext$major'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 ;;
11364
11365 *)
11366 dynamic_linker=no
11367 ;;
11368 esac
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11370 $as_echo "$dynamic_linker" >&6; }
11371 test no = "$dynamic_linker" && can_build_shared=no
11372
11373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11374 if test yes = "$GCC"; then
11375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11376 fi
11377
11378 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11379 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11380 fi
11381
11382 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11383 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11384 fi
11385
11386 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11387 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11388
11389 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11390 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11391
11392 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11393 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11492 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11493 hardcode_action=
11494 if test -n "$hardcode_libdir_flag_spec" ||
11495 test -n "$runpath_var" ||
11496 test yes = "$hardcode_automatic"; then
11497
11498 # We can hardcode non-existent directories.
11499 if test no != "$hardcode_direct" &&
11500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11501 # have to relink, otherwise we might link with an installed library
11502 # when we should be linking with a yet-to-be-installed one
11503 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11504 test no != "$hardcode_minus_L"; then
11505 # Linking always hardcodes the temporary library directory.
11506 hardcode_action=relink
11507 else
11508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11509 hardcode_action=immediate
11510 fi
11511 else
11512 # We cannot hardcode anything, or else we can only hardcode existing
11513 # directories.
11514 hardcode_action=unsupported
11515 fi
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11517 $as_echo "$hardcode_action" >&6; }
11518
11519 if test relink = "$hardcode_action" ||
11520 test yes = "$inherit_rpath"; then
11521 # Fast installation is not supported
11522 enable_fast_install=no
11523 elif test yes = "$shlibpath_overrides_runpath" ||
11524 test no = "$enable_shared"; then
11525 # Fast installation is not necessary
11526 enable_fast_install=needless
11527 fi
11528
11529
11530
11531
11532
11533
11534 if test yes != "$enable_dlopen"; then
11535 enable_dlopen=unknown
11536 enable_dlopen_self=unknown
11537 enable_dlopen_self_static=unknown
11538 else
11539 lt_cv_dlopen=no
11540 lt_cv_dlopen_libs=
11541
11542 case $host_os in
11543 beos*)
11544 lt_cv_dlopen=load_add_on
11545 lt_cv_dlopen_libs=
11546 lt_cv_dlopen_self=yes
11547 ;;
11548
11549 mingw* | pw32* | cegcc*)
11550 lt_cv_dlopen=LoadLibrary
11551 lt_cv_dlopen_libs=
11552 ;;
11553
11554 cygwin*)
11555 lt_cv_dlopen=dlopen
11556 lt_cv_dlopen_libs=
11557 ;;
11558
11559 darwin*)
11560 # if libdl is installed we need to link against it
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11563 if ${ac_cv_lib_dl_dlopen+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldl $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char dlopen ();
11578 int
11579 main ()
11580 {
11581 return dlopen ();
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dl_dlopen=yes
11588 else
11589 ac_cv_lib_dl_dlopen=no
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11598 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11599 else
11600
11601 lt_cv_dlopen=dyld
11602 lt_cv_dlopen_libs=
11603 lt_cv_dlopen_self=yes
11604
11605 fi
11606
11607 ;;
11608
11609 tpf*)
11610 # Don't try to run any link tests for TPF. We know it's impossible
11611 # because TPF is a cross-compiler, and we know how we open DSOs.
11612 lt_cv_dlopen=dlopen
11613 lt_cv_dlopen_libs=
11614 lt_cv_dlopen_self=no
11615 ;;
11616
11617 *)
11618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11619 if test "x$ac_cv_func_shl_load" = xyes; then :
11620 lt_cv_dlopen=shl_load
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11623 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11624 if ${ac_cv_lib_dld_shl_load+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-ldld $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char shl_load ();
11639 int
11640 main ()
11641 {
11642 return shl_load ();
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_dld_shl_load=yes
11649 else
11650 ac_cv_lib_dld_shl_load=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11659 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11660 else
11661 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11662 if test "x$ac_cv_func_dlopen" = xyes; then :
11663 lt_cv_dlopen=dlopen
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11667 if ${ac_cv_lib_dl_dlopen+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-ldl $LIBS"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char dlopen ();
11682 int
11683 main ()
11684 {
11685 return dlopen ();
11686 ;
11687 return 0;
11688 }
11689 _ACEOF
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_lib_dl_dlopen=yes
11692 else
11693 ac_cv_lib_dl_dlopen=no
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11706 if ${ac_cv_lib_svld_dlopen+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 ac_check_lib_save_LIBS=$LIBS
11710 LIBS="-lsvld $LIBS"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char dlopen ();
11721 int
11722 main ()
11723 {
11724 return dlopen ();
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11730 ac_cv_lib_svld_dlopen=yes
11731 else
11732 ac_cv_lib_svld_dlopen=no
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11740 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11741 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11745 if ${ac_cv_lib_dld_dld_link+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-ldld $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char dld_link ();
11760 int
11761 main ()
11762 {
11763 return dld_link ();
11764 ;
11765 return 0;
11766 }
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_dld_dld_link=yes
11770 else
11771 ac_cv_lib_dld_dld_link=no
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11779 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11780 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11781 fi
11782
11783
11784 fi
11785
11786
11787 fi
11788
11789
11790 fi
11791
11792
11793 fi
11794
11795
11796 fi
11797
11798 ;;
11799 esac
11800
11801 if test no = "$lt_cv_dlopen"; then
11802 enable_dlopen=no
11803 else
11804 enable_dlopen=yes
11805 fi
11806
11807 case $lt_cv_dlopen in
11808 dlopen)
11809 save_CPPFLAGS=$CPPFLAGS
11810 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11811
11812 save_LDFLAGS=$LDFLAGS
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11814
11815 save_LIBS=$LIBS
11816 LIBS="$lt_cv_dlopen_libs $LIBS"
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11820 if ${lt_cv_dlopen_self+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test yes = "$cross_compiling"; then :
11824 lt_cv_dlopen_self=cross
11825 else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 #line $LINENO "configure"
11830 #include "confdefs.h"
11831
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11835
11836 #include <stdio.h>
11837
11838 #ifdef RTLD_GLOBAL
11839 # define LT_DLGLOBAL RTLD_GLOBAL
11840 #else
11841 # ifdef DL_GLOBAL
11842 # define LT_DLGLOBAL DL_GLOBAL
11843 # else
11844 # define LT_DLGLOBAL 0
11845 # endif
11846 #endif
11847
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 # ifdef RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11853 # else
11854 # ifdef DL_LAZY
11855 # define LT_DLLAZY_OR_NOW DL_LAZY
11856 # else
11857 # ifdef RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW RTLD_NOW
11859 # else
11860 # ifdef DL_NOW
11861 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # else
11863 # define LT_DLLAZY_OR_NOW 0
11864 # endif
11865 # endif
11866 # endif
11867 # endif
11868 #endif
11869
11870 /* When -fvisibility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 int fnord () __attribute__((visibility("default")));
11874 #endif
11875
11876 int fnord () { return 42; }
11877 int main ()
11878 {
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11881
11882 if (self)
11883 {
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11886 {
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11889 }
11890 /* dlclose (self); */
11891 }
11892 else
11893 puts (dlerror ());
11894
11895 return status;
11896 }
11897 _LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self=no
11913 fi
11914 fi
11915 rm -fr conftest*
11916
11917
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11920 $as_echo "$lt_cv_dlopen_self" >&6; }
11921
11922 if test yes = "$lt_cv_dlopen_self"; then
11923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11926 if ${lt_cv_dlopen_self_static+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test yes = "$cross_compiling"; then :
11930 lt_cv_dlopen_self_static=cross
11931 else
11932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11933 lt_status=$lt_dlunknown
11934 cat > conftest.$ac_ext <<_LT_EOF
11935 #line $LINENO "configure"
11936 #include "confdefs.h"
11937
11938 #if HAVE_DLFCN_H
11939 #include <dlfcn.h>
11940 #endif
11941
11942 #include <stdio.h>
11943
11944 #ifdef RTLD_GLOBAL
11945 # define LT_DLGLOBAL RTLD_GLOBAL
11946 #else
11947 # ifdef DL_GLOBAL
11948 # define LT_DLGLOBAL DL_GLOBAL
11949 # else
11950 # define LT_DLGLOBAL 0
11951 # endif
11952 #endif
11953
11954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11955 find out it does not work in some platform. */
11956 #ifndef LT_DLLAZY_OR_NOW
11957 # ifdef RTLD_LAZY
11958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11959 # else
11960 # ifdef DL_LAZY
11961 # define LT_DLLAZY_OR_NOW DL_LAZY
11962 # else
11963 # ifdef RTLD_NOW
11964 # define LT_DLLAZY_OR_NOW RTLD_NOW
11965 # else
11966 # ifdef DL_NOW
11967 # define LT_DLLAZY_OR_NOW DL_NOW
11968 # else
11969 # define LT_DLLAZY_OR_NOW 0
11970 # endif
11971 # endif
11972 # endif
11973 # endif
11974 #endif
11975
11976 /* When -fvisibility=hidden is used, assume the code has been annotated
11977 correspondingly for the symbols needed. */
11978 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11979 int fnord () __attribute__((visibility("default")));
11980 #endif
11981
11982 int fnord () { return 42; }
11983 int main ()
11984 {
11985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11986 int status = $lt_dlunknown;
11987
11988 if (self)
11989 {
11990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11991 else
11992 {
11993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11994 else puts (dlerror ());
11995 }
11996 /* dlclose (self); */
11997 }
11998 else
11999 puts (dlerror ());
12000
12001 return status;
12002 }
12003 _LT_EOF
12004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12009 (./conftest; exit; ) >&5 2>/dev/null
12010 lt_status=$?
12011 case x$lt_status in
12012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12015 esac
12016 else :
12017 # compilation failed
12018 lt_cv_dlopen_self_static=no
12019 fi
12020 fi
12021 rm -fr conftest*
12022
12023
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12027 fi
12028
12029 CPPFLAGS=$save_CPPFLAGS
12030 LDFLAGS=$save_LDFLAGS
12031 LIBS=$save_LIBS
12032 ;;
12033 esac
12034
12035 case $lt_cv_dlopen_self in
12036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12037 *) enable_dlopen_self=unknown ;;
12038 esac
12039
12040 case $lt_cv_dlopen_self_static in
12041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12042 *) enable_dlopen_self_static=unknown ;;
12043 esac
12044 fi
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062 striplib=
12063 old_striplib=
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12068 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 else
12072 # FIXME - insert some real tests, host_os isn't really good enough
12073 case $host_os in
12074 darwin*)
12075 if test -n "$STRIP"; then
12076 striplib="$STRIP -x"
12077 old_striplib="$STRIP -S"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084 ;;
12085 *)
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088 ;;
12089 esac
12090 fi
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103 # Report what library types will actually be built
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12107 $as_echo "$can_build_shared" >&6; }
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12110 $as_echo_n "checking whether to build shared libraries... " >&6; }
12111 test no = "$can_build_shared" && enable_shared=no
12112
12113 # On AIX, shared libraries and static libraries use the same namespace, and
12114 # are all built from PIC.
12115 case $host_os in
12116 aix3*)
12117 test yes = "$enable_shared" && enable_static=no
12118 if test -n "$RANLIB"; then
12119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12120 postinstall_cmds='$RANLIB $lib'
12121 fi
12122 ;;
12123
12124 aix[4-9]*)
12125 if test ia64 != "$host_cpu"; then
12126 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12127 yes,aix,yes) ;; # shared object as lib.so file only
12128 yes,svr4,*) ;; # shared object as lib.so archive member only
12129 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12130 esac
12131 fi
12132 ;;
12133 esac
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12135 $as_echo "$enable_shared" >&6; }
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12138 $as_echo_n "checking whether to build static libraries... " >&6; }
12139 # Make sure either enable_shared or enable_static is yes.
12140 test yes = "$enable_shared" || enable_static=yes
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12142 $as_echo "$enable_static" >&6; }
12143
12144
12145
12146
12147 fi
12148 ac_ext=c
12149 ac_cpp='$CPP $CPPFLAGS'
12150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12153
12154 CC=$lt_save_CC
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170 ac_config_commands="$ac_config_commands libtool"
12171
12172
12173
12174
12175 # Only expand once:
12176
12177
12178
12179
12180
12181
12182 CFLAGS="$CFLAGS"
12183
12184 LIBS="$LDFLAGS $LIBS"
12185
12186
12187 for ac_header in strings.h
12188 do :
12189 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
12190 if test "x$ac_cv_header_strings_h" = xyes; then :
12191 cat >>confdefs.h <<_ACEOF
12192 #define HAVE_STRINGS_H 1
12193 _ACEOF
12194 GEOTIFF_HAVE_STRINGS_H=1
12195 fi
12196
12197 done
12198
12199
12200 cat >>confdefs.h <<_ACEOF
12201 #define GEOTIFF_HAVE_STRINGS_H 1
12202 _ACEOF
12203
12204
12205 for ac_header in stdio.h
12206 do :
12207 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
12208 if test "x$ac_cv_header_stdio_h" = xyes; then :
12209 cat >>confdefs.h <<_ACEOF
12210 #define HAVE_STDIO_H 1
12211 _ACEOF
12212
12213 else
12214 as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5
12215 fi
12216
12217 done
12218
12219 for ac_header in stdlib.h
12220 do :
12221 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12222 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12223 cat >>confdefs.h <<_ACEOF
12224 #define HAVE_STDLIB_H 1
12225 _ACEOF
12226
12227 else
12228 as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5
12229 fi
12230
12231 done
12232
12233
12234 for ac_header in locale.h
12235 do :
12236 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12237 if test "x$ac_cv_header_locale_h" = xyes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_LOCALE_H 1
12240 _ACEOF
12241
12242 fi
12243
12244 done
12245
12246
12247 LIBS="${LIBS}"
12248
12249
12250
12251
12252
12253 # Check whether --enable-debug was given.
12254 if test "${enable_debug+set}" = set; then :
12255 enableval=$enable_debug;
12256 fi
12257
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug enabled" >&5
12260 $as_echo_n "checking for debug enabled... " >&6; }
12261
12262 if test "x$enable_debug" = "xyes"; then
12263 CFLAGS="$CFLAGS -g -DDEBUG -Wall"
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12265 $as_echo "yes" >&6; }
12266 else
12267 CFLAGS="$CFLAGS -O3 -DNDEBUG"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
12274 $as_echo_n "checking for exp in -lm... " >&6; }
12275 if ${ac_cv_lib_m_exp+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-lm $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char exp ();
12290 int
12291 main ()
12292 {
12293 return exp ();
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_m_exp=yes
12300 else
12301 ac_cv_lib_m_exp=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
12308 $as_echo "$ac_cv_lib_m_exp" >&6; }
12309 if test "x$ac_cv_lib_m_exp" = xyes; then :
12310 cat >>confdefs.h <<_ACEOF
12311 #define HAVE_LIBM 1
12312 _ACEOF
12313
12314 LIBS="-lm $LIBS"
12315
12316 fi
12317
12318
12319
12320
12321
12322 # Check whether --with-zip was given.
12323 if test "${with_zip+set}" = set; then :
12324 withval=$with_zip;
12325 fi
12326
12327
12328
12329 # Check whether --with-zlib was given.
12330 if test "${with_zlib+set}" = set; then :
12331 withval=$with_zlib;
12332 fi
12333
12334
12335
12336 # Check whether --with-libz was given.
12337 if test "${with_libz+set}" = set; then :
12338 withval=$with_libz;
12339 fi
12340
12341
12342 HAVE_ZIP="no"
12343 ZIP_CONFIG="no"
12344
12345 # Implement aliasing...
12346
12347 if test "$with_zlib" != "" ; then
12348 with_zip=$with_zlib
12349 fi
12350 if test "$with_libz" != "" ; then
12351 with_zip=$with_libz
12352 fi
12353
12354
12355 if test "$with_zip" != "" -a "x$with_zip" != "xno" ; then
12356 for ac_header in zlib.h
12357 do :
12358 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12359 if test "x$ac_cv_header_zlib_h" = xyes; then :
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_ZLIB_H 1
12362 _ACEOF
12363
12364 else
12365 as_fn_error $? "cannot find zlib.h, bailing out" "$LINENO" 5
12366 fi
12367
12368 done
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateInit_" >&5
12371 $as_echo_n "checking for library containing inflateInit_... " >&6; }
12372 if ${ac_cv_search_inflateInit_+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 ac_func_search_save_LIBS=$LIBS
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char inflateInit_ ();
12386 int
12387 main ()
12388 {
12389 return inflateInit_ ();
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 for ac_lib in '' z; do
12395 if test -z "$ac_lib"; then
12396 ac_res="none required"
12397 else
12398 ac_res=-l$ac_lib
12399 LIBS="-l$ac_lib -L$with_zip/lib -lm $ac_func_search_save_LIBS"
12400 fi
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_search_inflateInit_=$ac_res
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext
12406 if ${ac_cv_search_inflateInit_+:} false; then :
12407 break
12408 fi
12409 done
12410 if ${ac_cv_search_inflateInit_+:} false; then :
12411
12412 else
12413 ac_cv_search_inflateInit_=no
12414 fi
12415 rm conftest.$ac_ext
12416 LIBS=$ac_func_search_save_LIBS
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateInit_" >&5
12419 $as_echo "$ac_cv_search_inflateInit_" >&6; }
12420 ac_res=$ac_cv_search_inflateInit_
12421 if test "$ac_res" != no; then :
12422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12423 ZIP_CONFIG=yes
12424 else
12425 ZIP_CONFIG=no
12426 fi
12427
12428
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
12431 $as_echo_n "checking for zlib... " >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435
12436 if test "${ZIP_CONFIG}" != "no" ; then
12437
12438 if test "${ZIP_CONFIG}" = "yes" ; then
12439 if test -d ${with_zip}/include ; then
12440 ZIP_INC="-I$with_zip/include"
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using zlib from $with_zip/include" >&5
12442 $as_echo "using zlib from $with_zip/include" >&6; }
12443 HAVE_ZLIB="yes"
12444 ZIP_CONFIG="yes"
12445 LIBS="-L${with_zip}/lib -lz $LIBS"
12446 fi
12447 fi
12448
12449 fi
12450
12451
12452
12453 if test ! x$ZIP_CONFIG = xno; then
12454 ZIP_IS_CONFIG_TRUE=
12455 ZIP_IS_CONFIG_FALSE='#'
12456 else
12457 ZIP_IS_CONFIG_TRUE='#'
12458 ZIP_IS_CONFIG_FALSE=
12459 fi
12460
12461
12462
12463
12464
12465
12466 # Check whether --with-jpeg was given.
12467 if test "${with_jpeg+set}" = set; then :
12468 withval=$with_jpeg;
12469 fi
12470
12471
12472 HAVE_JPEG="no"
12473 JPEG_CONFIG="no"
12474
12475 if test "$with_jpeg" = "no" -o "$with_jpeg" = "" ; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg" >&5
12477 $as_echo_n "checking for jpeg... " >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jinit_compress_master" >&5
12482 $as_echo_n "checking for library containing jinit_compress_master... " >&6; }
12483 if ${ac_cv_search_jinit_compress_master+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char jinit_compress_master ();
12497 int
12498 main ()
12499 {
12500 return jinit_compress_master ();
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 for ac_lib in '' jpeg; do
12506 if test -z "$ac_lib"; then
12507 ac_res="none required"
12508 else
12509 ac_res=-l$ac_lib
12510 LIBS="-l$ac_lib -L$with_jpeg/lib -lm $ac_func_search_save_LIBS"
12511 fi
12512 if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_search_jinit_compress_master=$ac_res
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext
12517 if ${ac_cv_search_jinit_compress_master+:} false; then :
12518 break
12519 fi
12520 done
12521 if ${ac_cv_search_jinit_compress_master+:} false; then :
12522
12523 else
12524 ac_cv_search_jinit_compress_master=no
12525 fi
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jinit_compress_master" >&5
12530 $as_echo "$ac_cv_search_jinit_compress_master" >&6; }
12531 ac_res=$ac_cv_search_jinit_compress_master
12532 if test "$ac_res" != no; then :
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12534 JPEG_CONFIG=yes
12535 else
12536 JPEG_CONFIG=no
12537 fi
12538
12539 fi
12540
12541 if test "${JPEG_CONFIG}" != "no" ; then
12542
12543 if test "${JPEG_CONFIG}" = "yes" ; then
12544 if test -d ${with_jpeg}/include ; then
12545 JPEG_INC="-I$with_jpeg/include"
12546 LIBS="-L$with_jpeg/lib $LIBS"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using jpeg from $with_jpeg/include" >&5
12548 $as_echo "using jpeg from $with_jpeg/include" >&6; }
12549 fi
12550 fi
12551 HAVE_JPEG="yes"
12552 JPEG_CONFIG="yes"
12553 fi
12554
12555
12556
12557 if test ! x$JPEG_CONFIG = xno; then
12558 JPEG_IS_CONFIG_TRUE=
12559 JPEG_IS_CONFIG_FALSE='#'
12560 else
12561 JPEG_IS_CONFIG_TRUE='#'
12562 JPEG_IS_CONFIG_FALSE=
12563 fi
12564
12565
12566
12567
12568 TIFF_CONFIG="no"
12569
12570
12571 # Check whether --with-libtiff was given.
12572 if test "${with_libtiff+set}" = set; then :
12573 withval=$with_libtiff;
12574 fi
12575
12576
12577 if test "$with_libtiff" != "" ; then
12578 if test -f $with_libtiff/include/tiffio.h -a -d $with_libtiff/lib ; then
12579 LIBS="-L$with_libtiff/lib -ltiff $LIBS"
12580 TIFF_INC=-I$with_libtiff/include
12581 else
12582 LIBS="-L$with_libtiff -ltiff $LIBS"
12583 TIFF_INC=-I$with_libtiff
12584 fi
12585 LIBS_SAVED="$LIBS"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
12587 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
12588 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 ac_check_lib_save_LIBS=$LIBS
12592 LIBS="-ltiff -lm $LIBS"
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12595
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12599 #ifdef __cplusplus
12600 extern "C"
12601 #endif
12602 char TIFFOpen ();
12603 int
12604 main ()
12605 {
12606 return TIFFOpen ();
12607 ;
12608 return 0;
12609 }
12610 _ACEOF
12611 if ac_fn_c_try_link "$LINENO"; then :
12612 ac_cv_lib_tiff_TIFFOpen=yes
12613 else
12614 ac_cv_lib_tiff_TIFFOpen=no
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
12621 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
12622 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
12623 TIFF_CONFIG=yes
12624 else
12625 as_fn_error $? "failed to link with -ltiff to find TIFFOpen" "$LINENO" 5
12626 fi
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
12629 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
12630 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-ltiff -lm $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12637
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char TIFFMergeFieldInfo ();
12645 int
12646 main ()
12647 {
12648 return TIFFMergeFieldInfo ();
12649 ;
12650 return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_lib_tiff_TIFFMergeFieldInfo=yes
12655 else
12656 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
12663 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
12664 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
12665 TIFF_CONFIG=yes
12666 else
12667 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
12668 libgeotiff. Please upgrade or use an older version of libgeotiff." "$LINENO" 5
12669 fi
12670
12671 LIBS="$LIBS_SAVED"
12672 else
12673
12674
12675
12676
12677
12678
12679
12680 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12681 if test -n "$ac_tool_prefix"; then
12682 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12683 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 case $PKG_CONFIG in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12692 ;;
12693 *)
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 ;;
12710 esac
12711 fi
12712 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12713 if test -n "$PKG_CONFIG"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12715 $as_echo "$PKG_CONFIG" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722 fi
12723 if test -z "$ac_cv_path_PKG_CONFIG"; then
12724 ac_pt_PKG_CONFIG=$PKG_CONFIG
12725 # Extract the first word of "pkg-config", so it can be a program name with args.
12726 set dummy pkg-config; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 case $ac_pt_PKG_CONFIG in
12733 [\\/]* | ?:[\\/]*)
12734 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12735 ;;
12736 *)
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12739 do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748 done
12749 done
12750 IFS=$as_save_IFS
12751
12752 ;;
12753 esac
12754 fi
12755 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12756 if test -n "$ac_pt_PKG_CONFIG"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12758 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 fi
12763
12764 if test "x$ac_pt_PKG_CONFIG" = x; then
12765 PKG_CONFIG=""
12766 else
12767 case $cross_compiling:$ac_tool_warned in
12768 yes:)
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12771 ac_tool_warned=yes ;;
12772 esac
12773 PKG_CONFIG=$ac_pt_PKG_CONFIG
12774 fi
12775 else
12776 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12777 fi
12778
12779 fi
12780 if test -n "$PKG_CONFIG"; then
12781 _pkg_min_version=0.9.0
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12783 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12784 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 PKG_CONFIG=""
12791 fi
12792 fi
12793
12794 pkg_failed=no
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTIFF" >&5
12796 $as_echo_n "checking for LIBTIFF... " >&6; }
12797
12798 if test -n "$LIBTIFF_CFLAGS"; then
12799 pkg_cv_LIBTIFF_CFLAGS="$LIBTIFF_CFLAGS"
12800 elif test -n "$PKG_CONFIG"; then
12801 if test -n "$PKG_CONFIG" && \
12802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
12803 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
12804 ac_status=$?
12805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806 test $ac_status = 0; }; then
12807 pkg_cv_LIBTIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4" 2>/dev/null`
12808 test "x$?" != "x0" && pkg_failed=yes
12809 else
12810 pkg_failed=yes
12811 fi
12812 else
12813 pkg_failed=untried
12814 fi
12815 if test -n "$LIBTIFF_LIBS"; then
12816 pkg_cv_LIBTIFF_LIBS="$LIBTIFF_LIBS"
12817 elif test -n "$PKG_CONFIG"; then
12818 if test -n "$PKG_CONFIG" && \
12819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
12820 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
12821 ac_status=$?
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; }; then
12824 pkg_cv_LIBTIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4" 2>/dev/null`
12825 test "x$?" != "x0" && pkg_failed=yes
12826 else
12827 pkg_failed=yes
12828 fi
12829 else
12830 pkg_failed=untried
12831 fi
12832
12833
12834
12835 if test $pkg_failed = yes; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12838
12839 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12840 _pkg_short_errors_supported=yes
12841 else
12842 _pkg_short_errors_supported=no
12843 fi
12844 if test $_pkg_short_errors_supported = yes; then
12845 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4" 2>&1`
12846 else
12847 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4" 2>&1`
12848 fi
12849 # Put the nasty error message in config.log where it belongs
12850 echo "$LIBTIFF_PKG_ERRORS" >&5
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
12853 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
12854 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 ac_check_lib_save_LIBS=$LIBS
12858 LIBS="-ltiff -lm $LIBS"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char TIFFOpen ();
12869 int
12870 main ()
12871 {
12872 return TIFFOpen ();
12873 ;
12874 return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 ac_cv_lib_tiff_TIFFOpen=yes
12879 else
12880 ac_cv_lib_tiff_TIFFOpen=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
12887 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
12888 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
12889 TIFF_CONFIG=yes
12890 else
12891 as_fn_error $? "You will need to substantially rewrite libxtiff to
12892 build libgeotiff without libtiff" "$LINENO" 5
12893 fi
12894
12895 LIBS_SAVED="$LIBS"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
12897 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
12898 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-ltiff -lm $LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 char TIFFMergeFieldInfo ();
12913 int
12914 main ()
12915 {
12916 return TIFFMergeFieldInfo ();
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_lib_tiff_TIFFMergeFieldInfo=yes
12923 else
12924 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
12931 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
12932 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
12933 TIFF_CONFIG=yes
12934 else
12935 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
12936 libgeotiff. Please upgrade libtiff or use an older version of libgeotiff." "$LINENO" 5
12937 fi
12938
12939 LIBS="$LIBS -ltiff"
12940 TIFF_INC=
12941 TIFF_CONFIG="yes"
12942 elif test $pkg_failed = untried; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
12946 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
12947 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-ltiff -lm $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char TIFFOpen ();
12962 int
12963 main ()
12964 {
12965 return TIFFOpen ();
12966 ;
12967 return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971 ac_cv_lib_tiff_TIFFOpen=yes
12972 else
12973 ac_cv_lib_tiff_TIFFOpen=no
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
12980 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
12981 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
12982 TIFF_CONFIG=yes
12983 else
12984 as_fn_error $? "You will need to substantially rewrite libxtiff to
12985 build libgeotiff without libtiff" "$LINENO" 5
12986 fi
12987
12988 LIBS_SAVED="$LIBS"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
12990 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
12991 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-ltiff -lm $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char TIFFMergeFieldInfo ();
13006 int
13007 main ()
13008 {
13009 return TIFFMergeFieldInfo ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_tiff_TIFFMergeFieldInfo=yes
13016 else
13017 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
13024 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
13025 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
13026 TIFF_CONFIG=yes
13027 else
13028 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
13029 libgeotiff. Please upgrade libtiff or use an older version of libgeotiff." "$LINENO" 5
13030 fi
13031
13032 LIBS="$LIBS -ltiff"
13033 TIFF_INC=
13034 TIFF_CONFIG="yes"
13035 else
13036 LIBTIFF_CFLAGS=$pkg_cv_LIBTIFF_CFLAGS
13037 LIBTIFF_LIBS=$pkg_cv_LIBTIFF_LIBS
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13039 $as_echo "yes" >&6; }
13040 TIFF_INC="$LIBTIFF_CFLAGS" LIBS="$LIBS $LIBTIFF_LIBS" TIFF_CONFIG="yes"
13041 fi
13042 fi
13043
13044
13045
13046
13047 if test ! x$TIFF_CONFIG = xno; then
13048 TIFF_IS_CONFIG_TRUE=
13049 TIFF_IS_CONFIG_FALSE='#'
13050 else
13051 TIFF_IS_CONFIG_TRUE='#'
13052 TIFF_IS_CONFIG_FALSE=
13053 fi
13054
13055
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROJ >= 6 library" >&5
13058 $as_echo_n "checking for PROJ >= 6 library... " >&6; }
13059
13060
13061 # Check whether --with-proj was given.
13062 if test "${with_proj+set}" = set; then :
13063 withval=$with_proj;
13064 fi
13065
13066
13067 PROJ_INCLUDE=""
13068 if test "x$with_proj" = "xno" ; then
13069
13070 as_fn_error $? "PROJ 6 is a required dependency." "$LINENO" 5
13071
13072 else
13073
13074 if test "x$with_proj" = "xyes" -o "x$with_proj" = "x"; then
13075
13076 pkg_failed=no
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROJ" >&5
13078 $as_echo_n "checking for PROJ... " >&6; }
13079
13080 if test -n "$PROJ_CFLAGS"; then
13081 pkg_cv_PROJ_CFLAGS="$PROJ_CFLAGS"
13082 elif test -n "$PKG_CONFIG"; then
13083 if test -n "$PKG_CONFIG" && \
13084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"proj\""; } >&5
13085 ($PKG_CONFIG --exists --print-errors "proj") 2>&5
13086 ac_status=$?
13087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088 test $ac_status = 0; }; then
13089 pkg_cv_PROJ_CFLAGS=`$PKG_CONFIG --cflags "proj" 2>/dev/null`
13090 test "x$?" != "x0" && pkg_failed=yes
13091 else
13092 pkg_failed=yes
13093 fi
13094 else
13095 pkg_failed=untried
13096 fi
13097 if test -n "$PROJ_LIBS"; then
13098 pkg_cv_PROJ_LIBS="$PROJ_LIBS"
13099 elif test -n "$PKG_CONFIG"; then
13100 if test -n "$PKG_CONFIG" && \
13101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"proj\""; } >&5
13102 ($PKG_CONFIG --exists --print-errors "proj") 2>&5
13103 ac_status=$?
13104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105 test $ac_status = 0; }; then
13106 pkg_cv_PROJ_LIBS=`$PKG_CONFIG --libs "proj" 2>/dev/null`
13107 test "x$?" != "x0" && pkg_failed=yes
13108 else
13109 pkg_failed=yes
13110 fi
13111 else
13112 pkg_failed=untried
13113 fi
13114
13115
13116
13117 if test $pkg_failed = yes; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120
13121 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13122 _pkg_short_errors_supported=yes
13123 else
13124 _pkg_short_errors_supported=no
13125 fi
13126 if test $_pkg_short_errors_supported = yes; then
13127 PROJ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "proj" 2>&1`
13128 else
13129 PROJ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "proj" 2>&1`
13130 fi
13131 # Put the nasty error message in config.log where it belongs
13132 echo "$PROJ_PKG_ERRORS" >&5
13133
13134 PROJ_FOUND=no
13135 elif test $pkg_failed = untried; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 PROJ_FOUND=no
13139 else
13140 PROJ_CFLAGS=$pkg_cv_PROJ_CFLAGS
13141 PROJ_LIBS=$pkg_cv_PROJ_LIBS
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 $as_echo "yes" >&6; }
13144 LIBS="$LIBS $PROJ_LIBS" PROJ_FOUND=yes
13145 fi
13146 if test "$PROJ_FOUND" = "no"; then
13147 ORIG_LIBS="$LIBS"
13148 LIBS="-lproj $ORIG_LIBS"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proj_create_from_wkt in -lproj" >&5
13150 $as_echo_n "checking for proj_create_from_wkt in -lproj... " >&6; }
13151 if ${ac_cv_lib_proj_proj_create_from_wkt+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lproj $LIBS"
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char proj_create_from_wkt ();
13166 int
13167 main ()
13168 {
13169 return proj_create_from_wkt ();
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 ac_cv_lib_proj_proj_create_from_wkt=yes
13176 else
13177 ac_cv_lib_proj_proj_create_from_wkt=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_proj_create_from_wkt" >&5
13184 $as_echo "$ac_cv_lib_proj_proj_create_from_wkt" >&6; }
13185 if test "x$ac_cv_lib_proj_proj_create_from_wkt" = xyes; then :
13186 PROJ_FOUND=yes
13187 else
13188 PROJ_FOUND=no
13189 fi
13190
13191 fi
13192 if test "$PROJ_FOUND" = "no"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -lproj" >&5
13194 $as_echo_n "checking for internal_proj_create_from_wkt in -lproj... " >&6; }
13195 if ${ac_cv_lib_proj_internal_proj_create_from_wkt+:} false; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 ac_check_lib_save_LIBS=$LIBS
13199 LIBS="-lproj $LIBS"
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char internal_proj_create_from_wkt ();
13210 int
13211 main ()
13212 {
13213 return internal_proj_create_from_wkt ();
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 if ac_fn_c_try_link "$LINENO"; then :
13219 ac_cv_lib_proj_internal_proj_create_from_wkt=yes
13220 else
13221 ac_cv_lib_proj_internal_proj_create_from_wkt=no
13222 fi
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_internal_proj_create_from_wkt" >&5
13228 $as_echo "$ac_cv_lib_proj_internal_proj_create_from_wkt" >&6; }
13229 if test "x$ac_cv_lib_proj_internal_proj_create_from_wkt" = xyes; then :
13230 PROJ_FOUND=yes
13231 else
13232 PROJ_FOUND=no
13233 fi
13234
13235 if test "$PROJ_FOUND" = "yes"; then
13236 PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS"
13237 fi
13238 fi
13239 if test "$PROJ_FOUND" = "no"; then
13240 LIBS="-linternalproj $ORIG_LIBS"
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -linternalproj" >&5
13242 $as_echo_n "checking for internal_proj_create_from_wkt in -linternalproj... " >&6; }
13243 if ${ac_cv_lib_internalproj_internal_proj_create_from_wkt+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 ac_check_lib_save_LIBS=$LIBS
13247 LIBS="-linternalproj $LIBS"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char internal_proj_create_from_wkt ();
13258 int
13259 main ()
13260 {
13261 return internal_proj_create_from_wkt ();
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"; then :
13267 ac_cv_lib_internalproj_internal_proj_create_from_wkt=yes
13268 else
13269 ac_cv_lib_internalproj_internal_proj_create_from_wkt=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&5
13276 $as_echo "$ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&6; }
13277 if test "x$ac_cv_lib_internalproj_internal_proj_create_from_wkt" = xyes; then :
13278 PROJ_FOUND=yes
13279 else
13280 PROJ_FOUND=no
13281 fi
13282
13283 if test "$PROJ_FOUND" = "yes"; then
13284 PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS"
13285 fi
13286 fi
13287 if test "$PROJ_FOUND" = "no"; then
13288 as_fn_error $? "PROJ 6 symbols not found" "$LINENO" 5
13289 fi
13290 for ac_header in proj.h
13291 do :
13292 ac_fn_c_check_header_mongrel "$LINENO" "proj.h" "ac_cv_header_proj_h" "$ac_includes_default"
13293 if test "x$ac_cv_header_proj_h" = xyes; then :
13294 cat >>confdefs.h <<_ACEOF
13295 #define HAVE_PROJ_H 1
13296 _ACEOF
13297
13298 fi
13299
13300 done
13301
13302 if test "$ac_cv_header_proj_h" = "yes" ; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: proj.h found" >&5
13304 $as_echo "$as_me: proj.h found" >&6;}
13305 else
13306 as_fn_error $? "proj.h not found" "$LINENO" 5
13307 fi
13308 else
13309
13310 ORIG_LIBS="$LIBS"
13311 LIBS="-L$with_proj/lib -lproj $ORIG_LIBS"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proj_create_from_wkt in -lproj" >&5
13313 $as_echo_n "checking for proj_create_from_wkt in -lproj... " >&6; }
13314 if ${ac_cv_lib_proj_proj_create_from_wkt+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 ac_check_lib_save_LIBS=$LIBS
13318 LIBS="-lproj $LIBS"
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325 #ifdef __cplusplus
13326 extern "C"
13327 #endif
13328 char proj_create_from_wkt ();
13329 int
13330 main ()
13331 {
13332 return proj_create_from_wkt ();
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_lib_proj_proj_create_from_wkt=yes
13339 else
13340 ac_cv_lib_proj_proj_create_from_wkt=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13345 fi
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_proj_create_from_wkt" >&5
13347 $as_echo "$ac_cv_lib_proj_proj_create_from_wkt" >&6; }
13348 if test "x$ac_cv_lib_proj_proj_create_from_wkt" = xyes; then :
13349 PROJ_FOUND=yes
13350 else
13351 PROJ_FOUND=no
13352 fi
13353
13354 if test "$PROJ_FOUND" = "no"; then
13355 LIBS="-L$with_proj/lib -lproj -lsqlite3 $ORIG_LIBS"
13356 unset ac_cv_lib_proj_proj_create_from_wkt
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proj_create_from_wkt in -lproj" >&5
13358 $as_echo_n "checking for proj_create_from_wkt in -lproj... " >&6; }
13359 if ${ac_cv_lib_proj_proj_create_from_wkt+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lproj $LIBS"
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 char proj_create_from_wkt ();
13374 int
13375 main ()
13376 {
13377 return proj_create_from_wkt ();
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_c_try_link "$LINENO"; then :
13383 ac_cv_lib_proj_proj_create_from_wkt=yes
13384 else
13385 ac_cv_lib_proj_proj_create_from_wkt=no
13386 fi
13387 rm -f core conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_proj_create_from_wkt" >&5
13392 $as_echo "$ac_cv_lib_proj_proj_create_from_wkt" >&6; }
13393 if test "x$ac_cv_lib_proj_proj_create_from_wkt" = xyes; then :
13394 PROJ_FOUND=yes
13395 else
13396 PROJ_FOUND=no
13397 fi
13398
13399 fi
13400 if test "$PROJ_FOUND" = "no"; then
13401 LIBS="-L$with_proj/lib -lproj $ORIG_LIBS"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -lproj" >&5
13403 $as_echo_n "checking for internal_proj_create_from_wkt in -lproj... " >&6; }
13404 if ${ac_cv_lib_proj_internal_proj_create_from_wkt+:} false; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 ac_check_lib_save_LIBS=$LIBS
13408 LIBS="-lproj $LIBS"
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411
13412 /* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13415 #ifdef __cplusplus
13416 extern "C"
13417 #endif
13418 char internal_proj_create_from_wkt ();
13419 int
13420 main ()
13421 {
13422 return internal_proj_create_from_wkt ();
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_lib_proj_internal_proj_create_from_wkt=yes
13429 else
13430 ac_cv_lib_proj_internal_proj_create_from_wkt=no
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_internal_proj_create_from_wkt" >&5
13437 $as_echo "$ac_cv_lib_proj_internal_proj_create_from_wkt" >&6; }
13438 if test "x$ac_cv_lib_proj_internal_proj_create_from_wkt" = xyes; then :
13439 PROJ_FOUND=yes
13440 else
13441 PROJ_FOUND=no
13442 fi
13443
13444 if test "$PROJ_FOUND" = "no"; then
13445 LIBS="-L$with_proj/lib -lproj -lsqlite3 $ORIG_LIBS"
13446 unset ac_cv_lib_proj_internal_proj_create_from_wkt
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -lproj" >&5
13448 $as_echo_n "checking for internal_proj_create_from_wkt in -lproj... " >&6; }
13449 if ${ac_cv_lib_proj_internal_proj_create_from_wkt+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 ac_check_lib_save_LIBS=$LIBS
13453 LIBS="-lproj $LIBS"
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13456
13457 /* Override any GCC internal prototype to avoid an error.
13458 Use char because int might match the return type of a GCC
13459 builtin and then its argument prototype would still apply. */
13460 #ifdef __cplusplus
13461 extern "C"
13462 #endif
13463 char internal_proj_create_from_wkt ();
13464 int
13465 main ()
13466 {
13467 return internal_proj_create_from_wkt ();
13468 ;
13469 return 0;
13470 }
13471 _ACEOF
13472 if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_lib_proj_internal_proj_create_from_wkt=yes
13474 else
13475 ac_cv_lib_proj_internal_proj_create_from_wkt=no
13476 fi
13477 rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 LIBS=$ac_check_lib_save_LIBS
13480 fi
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_internal_proj_create_from_wkt" >&5
13482 $as_echo "$ac_cv_lib_proj_internal_proj_create_from_wkt" >&6; }
13483 if test "x$ac_cv_lib_proj_internal_proj_create_from_wkt" = xyes; then :
13484 PROJ_FOUND=yes
13485 else
13486 PROJ_FOUND=no
13487 fi
13488
13489 fi
13490 if test "$PROJ_FOUND" = "yes"; then
13491 PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS"
13492 fi
13493 fi
13494 if test "$PROJ_FOUND" = "no"; then
13495 LIBS="-L$with_proj/lib -linternalproj $ORIG_LIBS"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -linternalproj" >&5
13497 $as_echo_n "checking for internal_proj_create_from_wkt in -linternalproj... " >&6; }
13498 if ${ac_cv_lib_internalproj_internal_proj_create_from_wkt+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-linternalproj $LIBS"
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char internal_proj_create_from_wkt ();
13513 int
13514 main ()
13515 {
13516 return internal_proj_create_from_wkt ();
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 ac_cv_lib_internalproj_internal_proj_create_from_wkt=yes
13523 else
13524 ac_cv_lib_internalproj_internal_proj_create_from_wkt=no
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&5
13531 $as_echo "$ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&6; }
13532 if test "x$ac_cv_lib_internalproj_internal_proj_create_from_wkt" = xyes; then :
13533 PROJ_FOUND=yes
13534 else
13535 PROJ_FOUND=no
13536 fi
13537
13538 if test "$PROJ_FOUND" = "no"; then
13539 LIBS="-L$with_proj/lib -linternalproj -lsqlite3 $ORIG_LIBS"
13540 unset ac_cv_lib_internal_proj_internal_proj_create_from_wkt
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal_proj_create_from_wkt in -linternalproj" >&5
13542 $as_echo_n "checking for internal_proj_create_from_wkt in -linternalproj... " >&6; }
13543 if ${ac_cv_lib_internalproj_internal_proj_create_from_wkt+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-linternalproj $LIBS"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char internal_proj_create_from_wkt ();
13558 int
13559 main ()
13560 {
13561 return internal_proj_create_from_wkt ();
13562 ;
13563 return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_lib_internalproj_internal_proj_create_from_wkt=yes
13568 else
13569 ac_cv_lib_internalproj_internal_proj_create_from_wkt=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&5
13576 $as_echo "$ac_cv_lib_internalproj_internal_proj_create_from_wkt" >&6; }
13577 if test "x$ac_cv_lib_internalproj_internal_proj_create_from_wkt" = xyes; then :
13578 PROJ_FOUND=yes
13579 else
13580 PROJ_FOUND=no
13581 fi
13582
13583 fi
13584 if test "$PROJ_FOUND" = "yes"; then
13585 PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS"
13586 fi
13587 fi
13588 if test "$PROJ_FOUND" = "no"; then
13589 as_fn_error $? "PROJ 6 symbols not found" "$LINENO" 5
13590 fi
13591 if test -r "$with_proj/include/proj.h" ; then
13592 PROJ_INCLUDE="$PROJ_INCLUDE -I$with_proj/include"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: proj.h found" >&5
13594 $as_echo "$as_me: proj.h found" >&6;}
13595 else
13596 as_fn_error $? "proj.h not found" "$LINENO" 5
13597 fi
13598 fi
13599 fi
13600
13601
13602
13603
13604 # Check whether --enable-towgs84 was given.
13605 if test "${enable_towgs84+set}" = set; then :
13606 enableval=$enable_towgs84;
13607 $as_echo "#define GEO_NORMALIZE_DISABLE_TOWGS84 /**/" >>confdefs.h
13608
13609 fi
13610
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool needs -no-undefined flag to build shared libraries" >&5
13613 $as_echo_n "checking if libtool needs -no-undefined flag to build shared libraries... " >&6; }
13614 case "${host}" in
13615 *-*-cygwin* | *-*-mingw*|*-*-aix*)
13616 ## Add in the -no-undefined flag to LDFLAGS for libtool.
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619 NOUNDEFINED=" -no-undefined"
13620 ;;
13621 *)
13622 ## Don't add in anything.
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625 ;;
13626 esac
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641 # Files:
13642 DX_PROJECT=$PACKAGE_NAME
13643
13644 DX_CONFIG=docs/Doxyfile
13645
13646 DX_DOCDIR=docs/output
13647
13648
13649 # Environment variables used inside doxygen.cfg:
13650 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
13651
13652 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
13653
13654 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
13655
13656 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
13657
13658
13659 # Doxygen itself:
13660
13661
13662
13663
13664 # Check whether --enable-doxygen-doc was given.
13665 if test "${enable_doxygen_doc+set}" = set; then :
13666 enableval=$enable_doxygen_doc;
13667 case "$enableval" in
13668 #(
13669 y|Y|yes|Yes|YES)
13670 DX_FLAG_doc=1
13671
13672
13673 ;; #(
13674 n|N|no|No|NO)
13675 DX_FLAG_doc=0
13676
13677 ;; #(
13678 *)
13679 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
13680 ;;
13681 esac
13682
13683 else
13684
13685 DX_FLAG_doc=1
13686
13687
13688
13689 fi
13690
13691 if test "$DX_FLAG_doc" = 1; then
13692
13693 if test -n "$ac_tool_prefix"; then
13694 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 case $DX_DOXYGEN in
13702 [\\/]* | ?:[\\/]*)
13703 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
13704 ;;
13705 *)
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13708 do
13709 IFS=$as_save_IFS
13710 test -z "$as_dir" && as_dir=.
13711 for ac_exec_ext in '' $ac_executable_extensions; do
13712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 break 2
13716 fi
13717 done
13718 done
13719 IFS=$as_save_IFS
13720
13721 ;;
13722 esac
13723 fi
13724 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
13725 if test -n "$DX_DOXYGEN"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
13727 $as_echo "$DX_DOXYGEN" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733
13734 fi
13735 if test -z "$ac_cv_path_DX_DOXYGEN"; then
13736 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
13737 # Extract the first word of "doxygen", so it can be a program name with args.
13738 set dummy doxygen; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 case $ac_pt_DX_DOXYGEN in
13745 [\\/]* | ?:[\\/]*)
13746 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
13747 ;;
13748 *)
13749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750 for as_dir in $PATH
13751 do
13752 IFS=$as_save_IFS
13753 test -z "$as_dir" && as_dir=.
13754 for ac_exec_ext in '' $ac_executable_extensions; do
13755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13756 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 break 2
13759 fi
13760 done
13761 done
13762 IFS=$as_save_IFS
13763
13764 ;;
13765 esac
13766 fi
13767 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
13768 if test -n "$ac_pt_DX_DOXYGEN"; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
13770 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
13771 else
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 fi
13775
13776 if test "x$ac_pt_DX_DOXYGEN" = x; then
13777 DX_DOXYGEN=""
13778 else
13779 case $cross_compiling:$ac_tool_warned in
13780 yes:)
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13783 ac_tool_warned=yes ;;
13784 esac
13785 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
13786 fi
13787 else
13788 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
13789 fi
13790
13791 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
13793 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
13794 DX_FLAG_doc=0
13795
13796 fi
13797
13798
13799 if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
13801 set dummy ${ac_tool_prefix}perl; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_path_DX_PERL+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 case $DX_PERL in
13808 [\\/]* | ?:[\\/]*)
13809 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
13810 ;;
13811 *)
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 ;;
13828 esac
13829 fi
13830 DX_PERL=$ac_cv_path_DX_PERL
13831 if test -n "$DX_PERL"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
13833 $as_echo "$DX_PERL" >&6; }
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837 fi
13838
13839
13840 fi
13841 if test -z "$ac_cv_path_DX_PERL"; then
13842 ac_pt_DX_PERL=$DX_PERL
13843 # Extract the first word of "perl", so it can be a program name with args.
13844 set dummy perl; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846 $as_echo_n "checking for $ac_word... " >&6; }
13847 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 case $ac_pt_DX_PERL in
13851 [\\/]* | ?:[\\/]*)
13852 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
13853 ;;
13854 *)
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13857 do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866 done
13867 done
13868 IFS=$as_save_IFS
13869
13870 ;;
13871 esac
13872 fi
13873 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
13874 if test -n "$ac_pt_DX_PERL"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
13876 $as_echo "$ac_pt_DX_PERL" >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13880 fi
13881
13882 if test "x$ac_pt_DX_PERL" = x; then
13883 DX_PERL=""
13884 else
13885 case $cross_compiling:$ac_tool_warned in
13886 yes:)
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13889 ac_tool_warned=yes ;;
13890 esac
13891 DX_PERL=$ac_pt_DX_PERL
13892 fi
13893 else
13894 DX_PERL="$ac_cv_path_DX_PERL"
13895 fi
13896
13897 if test "$DX_FLAG_doc$DX_PERL" = 1; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
13899 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
13900 DX_FLAG_doc=0
13901
13902 fi
13903
13904 :
13905 fi
13906 if test "$DX_FLAG_doc" = 1; then
13907 if :; then
13908 DX_COND_doc_TRUE=
13909 DX_COND_doc_FALSE='#'
13910 else
13911 DX_COND_doc_TRUE='#'
13912 DX_COND_doc_FALSE=
13913 fi
13914
13915 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
13916
13917 :
13918 else
13919 if false; then
13920 DX_COND_doc_TRUE=
13921 DX_COND_doc_FALSE='#'
13922 else
13923 DX_COND_doc_TRUE='#'
13924 DX_COND_doc_FALSE=
13925 fi
13926
13927
13928 :
13929 fi
13930
13931
13932 # Dot for graphics:
13933
13934
13935
13936
13937 # Check whether --enable-doxygen-dot was given.
13938 if test "${enable_doxygen_dot+set}" = set; then :
13939 enableval=$enable_doxygen_dot;
13940 case "$enableval" in
13941 #(
13942 y|Y|yes|Yes|YES)
13943 DX_FLAG_dot=1
13944
13945
13946 test "$DX_FLAG_doc" = "1" \
13947 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
13948
13949 ;; #(
13950 n|N|no|No|NO)
13951 DX_FLAG_dot=0
13952
13953 ;; #(
13954 *)
13955 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
13956 ;;
13957 esac
13958
13959 else
13960
13961 DX_FLAG_dot=1
13962
13963
13964 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
13965
13966
13967
13968 fi
13969
13970 if test "$DX_FLAG_dot" = 1; then
13971
13972 if test -n "$ac_tool_prefix"; then
13973 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
13974 set dummy ${ac_tool_prefix}dot; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_path_DX_DOT+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 case $DX_DOT in
13981 [\\/]* | ?:[\\/]*)
13982 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
13983 ;;
13984 *)
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13995 fi
13996 done
13997 done
13998 IFS=$as_save_IFS
13999
14000 ;;
14001 esac
14002 fi
14003 DX_DOT=$ac_cv_path_DX_DOT
14004 if test -n "$DX_DOT"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
14006 $as_echo "$DX_DOT" >&6; }
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 fi
14011
14012
14013 fi
14014 if test -z "$ac_cv_path_DX_DOT"; then
14015 ac_pt_DX_DOT=$DX_DOT
14016 # Extract the first word of "dot", so it can be a program name with args.
14017 set dummy dot; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 case $ac_pt_DX_DOT in
14024 [\\/]* | ?:[\\/]*)
14025 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
14026 ;;
14027 *)
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14030 do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14035 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
14036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039 done
14040 done
14041 IFS=$as_save_IFS
14042
14043 ;;
14044 esac
14045 fi
14046 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
14047 if test -n "$ac_pt_DX_DOT"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
14049 $as_echo "$ac_pt_DX_DOT" >&6; }
14050 else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14053 fi
14054
14055 if test "x$ac_pt_DX_DOT" = x; then
14056 DX_DOT=""
14057 else
14058 case $cross_compiling:$ac_tool_warned in
14059 yes:)
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14062 ac_tool_warned=yes ;;
14063 esac
14064 DX_DOT=$ac_pt_DX_DOT
14065 fi
14066 else
14067 DX_DOT="$ac_cv_path_DX_DOT"
14068 fi
14069
14070 if test "$DX_FLAG_dot$DX_DOT" = 1; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
14072 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
14073 DX_FLAG_dot=0
14074
14075 fi
14076
14077 :
14078 fi
14079 if test "$DX_FLAG_dot" = 1; then
14080 if :; then
14081 DX_COND_dot_TRUE=
14082 DX_COND_dot_FALSE='#'
14083 else
14084 DX_COND_dot_TRUE='#'
14085 DX_COND_dot_FALSE=
14086 fi
14087
14088 DX_ENV="$DX_ENV HAVE_DOT='YES'"
14089
14090 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
14091
14092 :
14093 else
14094 if false; then
14095 DX_COND_dot_TRUE=
14096 DX_COND_dot_FALSE='#'
14097 else
14098 DX_COND_dot_TRUE='#'
14099 DX_COND_dot_FALSE=
14100 fi
14101
14102 DX_ENV="$DX_ENV HAVE_DOT='NO'"
14103
14104 :
14105 fi
14106
14107
14108 # Man pages generation:
14109
14110
14111
14112
14113 # Check whether --enable-doxygen-man was given.
14114 if test "${enable_doxygen_man+set}" = set; then :
14115 enableval=$enable_doxygen_man;
14116 case "$enableval" in
14117 #(
14118 y|Y|yes|Yes|YES)
14119 DX_FLAG_man=1
14120
14121
14122 test "$DX_FLAG_doc" = "1" \
14123 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
14124
14125 ;; #(
14126 n|N|no|No|NO)
14127 DX_FLAG_man=0
14128
14129 ;; #(
14130 *)
14131 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
14132 ;;
14133 esac
14134
14135 else
14136
14137 DX_FLAG_man=1
14138
14139
14140 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
14141
14142
14143
14144 fi
14145
14146 if test "$DX_FLAG_man" = 1; then
14147
14148 :
14149 fi
14150 if test "$DX_FLAG_man" = 1; then
14151 if :; then
14152 DX_COND_man_TRUE=
14153 DX_COND_man_FALSE='#'
14154 else
14155 DX_COND_man_TRUE='#'
14156 DX_COND_man_FALSE=
14157 fi
14158
14159 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
14160
14161 :
14162 else
14163 if false; then
14164 DX_COND_man_TRUE=
14165 DX_COND_man_FALSE='#'
14166 else
14167 DX_COND_man_TRUE='#'
14168 DX_COND_man_FALSE=
14169 fi
14170
14171 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
14172
14173 :
14174 fi
14175
14176
14177 # RTF file generation:
14178
14179
14180
14181
14182 # Check whether --enable-doxygen-rtf was given.
14183 if test "${enable_doxygen_rtf+set}" = set; then :
14184 enableval=$enable_doxygen_rtf;
14185 case "$enableval" in
14186 #(
14187 y|Y|yes|Yes|YES)
14188 DX_FLAG_rtf=1
14189
14190
14191 test "$DX_FLAG_doc" = "1" \
14192 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
14193
14194 ;; #(
14195 n|N|no|No|NO)
14196 DX_FLAG_rtf=0
14197
14198 ;; #(
14199 *)
14200 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
14201 ;;
14202 esac
14203
14204 else
14205
14206 DX_FLAG_rtf=0
14207
14208
14209 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
14210
14211
14212
14213 fi
14214
14215 if test "$DX_FLAG_rtf" = 1; then
14216
14217 :
14218 fi
14219 if test "$DX_FLAG_rtf" = 1; then
14220 if :; then
14221 DX_COND_rtf_TRUE=
14222 DX_COND_rtf_FALSE='#'
14223 else
14224 DX_COND_rtf_TRUE='#'
14225 DX_COND_rtf_FALSE=
14226 fi
14227
14228 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
14229
14230 :
14231 else
14232 if false; then
14233 DX_COND_rtf_TRUE=
14234 DX_COND_rtf_FALSE='#'
14235 else
14236 DX_COND_rtf_TRUE='#'
14237 DX_COND_rtf_FALSE=
14238 fi
14239
14240 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
14241
14242 :
14243 fi
14244
14245
14246 # XML file generation:
14247
14248
14249
14250
14251 # Check whether --enable-doxygen-xml was given.
14252 if test "${enable_doxygen_xml+set}" = set; then :
14253 enableval=$enable_doxygen_xml;
14254 case "$enableval" in
14255 #(
14256 y|Y|yes|Yes|YES)
14257 DX_FLAG_xml=1
14258
14259
14260 test "$DX_FLAG_doc" = "1" \
14261 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
14262
14263 ;; #(
14264 n|N|no|No|NO)
14265 DX_FLAG_xml=0
14266
14267 ;; #(
14268 *)
14269 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
14270 ;;
14271 esac
14272
14273 else
14274
14275 DX_FLAG_xml=0
14276
14277
14278 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
14279
14280
14281
14282 fi
14283
14284 if test "$DX_FLAG_xml" = 1; then
14285
14286 :
14287 fi
14288 if test "$DX_FLAG_xml" = 1; then
14289 if :; then
14290 DX_COND_xml_TRUE=
14291 DX_COND_xml_FALSE='#'
14292 else
14293 DX_COND_xml_TRUE='#'
14294 DX_COND_xml_FALSE=
14295 fi
14296
14297 DX_ENV="$DX_ENV GENERATE_XML='YES'"
14298
14299 :
14300 else
14301 if false; then
14302 DX_COND_xml_TRUE=
14303 DX_COND_xml_FALSE='#'
14304 else
14305 DX_COND_xml_TRUE='#'
14306 DX_COND_xml_FALSE=
14307 fi
14308
14309 DX_ENV="$DX_ENV GENERATE_XML='NO'"
14310
14311 :
14312 fi
14313
14314
14315 # (Compressed) HTML help generation:
14316
14317
14318
14319
14320 # Check whether --enable-doxygen-chm was given.
14321 if test "${enable_doxygen_chm+set}" = set; then :
14322 enableval=$enable_doxygen_chm;
14323 case "$enableval" in
14324 #(
14325 y|Y|yes|Yes|YES)
14326 DX_FLAG_chm=1
14327
14328
14329 test "$DX_FLAG_doc" = "1" \
14330 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
14331
14332 ;; #(
14333 n|N|no|No|NO)
14334 DX_FLAG_chm=0
14335
14336 ;; #(
14337 *)
14338 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
14339 ;;
14340 esac
14341
14342 else
14343
14344 DX_FLAG_chm=0
14345
14346
14347 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
14348
14349
14350
14351 fi
14352
14353 if test "$DX_FLAG_chm" = 1; then
14354
14355 if test -n "$ac_tool_prefix"; then
14356 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
14357 set dummy ${ac_tool_prefix}hhc; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359 $as_echo_n "checking for $ac_word... " >&6; }
14360 if ${ac_cv_path_DX_HHC+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 case $DX_HHC in
14364 [\\/]* | ?:[\\/]*)
14365 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
14366 ;;
14367 *)
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14370 do
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14378 fi
14379 done
14380 done
14381 IFS=$as_save_IFS
14382
14383 ;;
14384 esac
14385 fi
14386 DX_HHC=$ac_cv_path_DX_HHC
14387 if test -n "$DX_HHC"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
14389 $as_echo "$DX_HHC" >&6; }
14390 else
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393 fi
14394
14395
14396 fi
14397 if test -z "$ac_cv_path_DX_HHC"; then
14398 ac_pt_DX_HHC=$DX_HHC
14399 # Extract the first word of "hhc", so it can be a program name with args.
14400 set dummy hhc; ac_word=$2
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14402 $as_echo_n "checking for $ac_word... " >&6; }
14403 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 case $ac_pt_DX_HHC in
14407 [\\/]* | ?:[\\/]*)
14408 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
14409 ;;
14410 *)
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14413 do
14414 IFS=$as_save_IFS
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14418 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14420 break 2
14421 fi
14422 done
14423 done
14424 IFS=$as_save_IFS
14425
14426 ;;
14427 esac
14428 fi
14429 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
14430 if test -n "$ac_pt_DX_HHC"; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
14432 $as_echo "$ac_pt_DX_HHC" >&6; }
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436 fi
14437
14438 if test "x$ac_pt_DX_HHC" = x; then
14439 DX_HHC=""
14440 else
14441 case $cross_compiling:$ac_tool_warned in
14442 yes:)
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14445 ac_tool_warned=yes ;;
14446 esac
14447 DX_HHC=$ac_pt_DX_HHC
14448 fi
14449 else
14450 DX_HHC="$ac_cv_path_DX_HHC"
14451 fi
14452
14453 if test "$DX_FLAG_chm$DX_HHC" = 1; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
14455 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
14456 DX_FLAG_chm=0
14457
14458 fi
14459
14460 :
14461 fi
14462 if test "$DX_FLAG_chm" = 1; then
14463 if :; then
14464 DX_COND_chm_TRUE=
14465 DX_COND_chm_FALSE='#'
14466 else
14467 DX_COND_chm_TRUE='#'
14468 DX_COND_chm_FALSE=
14469 fi
14470
14471 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
14472
14473 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
14474
14475 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
14476
14477 :
14478 else
14479 if false; then
14480 DX_COND_chm_TRUE=
14481 DX_COND_chm_FALSE='#'
14482 else
14483 DX_COND_chm_TRUE='#'
14484 DX_COND_chm_FALSE=
14485 fi
14486
14487 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
14488
14489 :
14490 fi
14491
14492
14493 # Seperate CHI file generation.
14494
14495
14496
14497
14498 # Check whether --enable-doxygen-chi was given.
14499 if test "${enable_doxygen_chi+set}" = set; then :
14500 enableval=$enable_doxygen_chi;
14501 case "$enableval" in
14502 #(
14503 y|Y|yes|Yes|YES)
14504 DX_FLAG_chi=1
14505
14506
14507 test "$DX_FLAG_chm" = "1" \
14508 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
14509
14510 ;; #(
14511 n|N|no|No|NO)
14512 DX_FLAG_chi=0
14513
14514 ;; #(
14515 *)
14516 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
14517 ;;
14518 esac
14519
14520 else
14521
14522 DX_FLAG_chi=0
14523
14524
14525 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
14526
14527
14528
14529 fi
14530
14531 if test "$DX_FLAG_chi" = 1; then
14532
14533 :
14534 fi
14535 if test "$DX_FLAG_chi" = 1; then
14536 if :; then
14537 DX_COND_chi_TRUE=
14538 DX_COND_chi_FALSE='#'
14539 else
14540 DX_COND_chi_TRUE='#'
14541 DX_COND_chi_FALSE=
14542 fi
14543
14544 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
14545
14546 :
14547 else
14548 if false; then
14549 DX_COND_chi_TRUE=
14550 DX_COND_chi_FALSE='#'
14551 else
14552 DX_COND_chi_TRUE='#'
14553 DX_COND_chi_FALSE=
14554 fi
14555
14556 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
14557
14558 :
14559 fi
14560
14561
14562 # Plain HTML pages generation:
14563
14564
14565
14566
14567 # Check whether --enable-doxygen-html was given.
14568 if test "${enable_doxygen_html+set}" = set; then :
14569 enableval=$enable_doxygen_html;
14570 case "$enableval" in
14571 #(
14572 y|Y|yes|Yes|YES)
14573 DX_FLAG_html=1
14574
14575
14576 test "$DX_FLAG_doc" = "1" \
14577 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
14578
14579 test "$DX_FLAG_chm" = "0" \
14580 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
14581
14582 ;; #(
14583 n|N|no|No|NO)
14584 DX_FLAG_html=0
14585
14586 ;; #(
14587 *)
14588 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
14589 ;;
14590 esac
14591
14592 else
14593
14594 DX_FLAG_html=1
14595
14596
14597 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
14598
14599
14600 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
14601
14602
14603
14604 fi
14605
14606 if test "$DX_FLAG_html" = 1; then
14607
14608 :
14609 fi
14610 if test "$DX_FLAG_html" = 1; then
14611 if :; then
14612 DX_COND_html_TRUE=
14613 DX_COND_html_FALSE='#'
14614 else
14615 DX_COND_html_TRUE='#'
14616 DX_COND_html_FALSE=
14617 fi
14618
14619 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
14620
14621 :
14622 else
14623 if false; then
14624 DX_COND_html_TRUE=
14625 DX_COND_html_FALSE='#'
14626 else
14627 DX_COND_html_TRUE='#'
14628 DX_COND_html_FALSE=
14629 fi
14630
14631 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
14632
14633 :
14634 fi
14635
14636
14637 # PostScript file generation:
14638
14639
14640
14641
14642 # Check whether --enable-doxygen-ps was given.
14643 if test "${enable_doxygen_ps+set}" = set; then :
14644 enableval=$enable_doxygen_ps;
14645 case "$enableval" in
14646 #(
14647 y|Y|yes|Yes|YES)
14648 DX_FLAG_ps=1
14649
14650
14651 test "$DX_FLAG_doc" = "1" \
14652 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
14653
14654 ;; #(
14655 n|N|no|No|NO)
14656 DX_FLAG_ps=0
14657
14658 ;; #(
14659 *)
14660 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
14661 ;;
14662 esac
14663
14664 else
14665
14666 DX_FLAG_ps=0
14667
14668
14669 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
14670
14671
14672
14673 fi
14674
14675 if test "$DX_FLAG_ps" = 1; then
14676
14677 if test -n "$ac_tool_prefix"; then
14678 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
14679 set dummy ${ac_tool_prefix}latex; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681 $as_echo_n "checking for $ac_word... " >&6; }
14682 if ${ac_cv_path_DX_LATEX+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 case $DX_LATEX in
14686 [\\/]* | ?:[\\/]*)
14687 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
14688 ;;
14689 *)
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14692 do
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701 done
14702 done
14703 IFS=$as_save_IFS
14704
14705 ;;
14706 esac
14707 fi
14708 DX_LATEX=$ac_cv_path_DX_LATEX
14709 if test -n "$DX_LATEX"; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
14711 $as_echo "$DX_LATEX" >&6; }
14712 else
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14715 fi
14716
14717
14718 fi
14719 if test -z "$ac_cv_path_DX_LATEX"; then
14720 ac_pt_DX_LATEX=$DX_LATEX
14721 # Extract the first word of "latex", so it can be a program name with args.
14722 set dummy latex; ac_word=$2
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14724 $as_echo_n "checking for $ac_word... " >&6; }
14725 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 case $ac_pt_DX_LATEX in
14729 [\\/]* | ?:[\\/]*)
14730 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
14731 ;;
14732 *)
14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14735 do
14736 IFS=$as_save_IFS
14737 test -z "$as_dir" && as_dir=.
14738 for ac_exec_ext in '' $ac_executable_extensions; do
14739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14740 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
14741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14742 break 2
14743 fi
14744 done
14745 done
14746 IFS=$as_save_IFS
14747
14748 ;;
14749 esac
14750 fi
14751 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
14752 if test -n "$ac_pt_DX_LATEX"; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
14754 $as_echo "$ac_pt_DX_LATEX" >&6; }
14755 else
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14757 $as_echo "no" >&6; }
14758 fi
14759
14760 if test "x$ac_pt_DX_LATEX" = x; then
14761 DX_LATEX=""
14762 else
14763 case $cross_compiling:$ac_tool_warned in
14764 yes:)
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14767 ac_tool_warned=yes ;;
14768 esac
14769 DX_LATEX=$ac_pt_DX_LATEX
14770 fi
14771 else
14772 DX_LATEX="$ac_cv_path_DX_LATEX"
14773 fi
14774
14775 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
14777 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
14778 DX_FLAG_ps=0
14779
14780 fi
14781
14782
14783 if test -n "$ac_tool_prefix"; then
14784 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
14785 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14787 $as_echo_n "checking for $ac_word... " >&6; }
14788 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 case $DX_MAKEINDEX in
14792 [\\/]* | ?:[\\/]*)
14793 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
14794 ;;
14795 *)
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14798 do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 for ac_exec_ext in '' $ac_executable_extensions; do
14802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14803 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
14804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805 break 2
14806 fi
14807 done
14808 done
14809 IFS=$as_save_IFS
14810
14811 ;;
14812 esac
14813 fi
14814 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
14815 if test -n "$DX_MAKEINDEX"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
14817 $as_echo "$DX_MAKEINDEX" >&6; }
14818 else
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820 $as_echo "no" >&6; }
14821 fi
14822
14823
14824 fi
14825 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
14826 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
14827 # Extract the first word of "makeindex", so it can be a program name with args.
14828 set dummy makeindex; ac_word=$2
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14830 $as_echo_n "checking for $ac_word... " >&6; }
14831 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 case $ac_pt_DX_MAKEINDEX in
14835 [\\/]* | ?:[\\/]*)
14836 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
14837 ;;
14838 *)
14839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14840 for as_dir in $PATH
14841 do
14842 IFS=$as_save_IFS
14843 test -z "$as_dir" && as_dir=.
14844 for ac_exec_ext in '' $ac_executable_extensions; do
14845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14846 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
14847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14848 break 2
14849 fi
14850 done
14851 done
14852 IFS=$as_save_IFS
14853
14854 ;;
14855 esac
14856 fi
14857 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
14858 if test -n "$ac_pt_DX_MAKEINDEX"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
14860 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
14861 else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14864 fi
14865
14866 if test "x$ac_pt_DX_MAKEINDEX" = x; then
14867 DX_MAKEINDEX=""
14868 else
14869 case $cross_compiling:$ac_tool_warned in
14870 yes:)
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14873 ac_tool_warned=yes ;;
14874 esac
14875 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
14876 fi
14877 else
14878 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
14879 fi
14880
14881 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
14883 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
14884 DX_FLAG_ps=0
14885
14886 fi
14887
14888
14889 if test -n "$ac_tool_prefix"; then
14890 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
14891 set dummy ${ac_tool_prefix}dvips; ac_word=$2
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14893 $as_echo_n "checking for $ac_word... " >&6; }
14894 if ${ac_cv_path_DX_DVIPS+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 case $DX_DVIPS in
14898 [\\/]* | ?:[\\/]*)
14899 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
14900 ;;
14901 *)
14902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14904 do
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
14910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14911 break 2
14912 fi
14913 done
14914 done
14915 IFS=$as_save_IFS
14916
14917 ;;
14918 esac
14919 fi
14920 DX_DVIPS=$ac_cv_path_DX_DVIPS
14921 if test -n "$DX_DVIPS"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
14923 $as_echo "$DX_DVIPS" >&6; }
14924 else
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926 $as_echo "no" >&6; }
14927 fi
14928
14929
14930 fi
14931 if test -z "$ac_cv_path_DX_DVIPS"; then
14932 ac_pt_DX_DVIPS=$DX_DVIPS
14933 # Extract the first word of "dvips", so it can be a program name with args.
14934 set dummy dvips; ac_word=$2
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14936 $as_echo_n "checking for $ac_word... " >&6; }
14937 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 case $ac_pt_DX_DVIPS in
14941 [\\/]* | ?:[\\/]*)
14942 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
14943 ;;
14944 *)
14945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14946 for as_dir in $PATH
14947 do
14948 IFS=$as_save_IFS
14949 test -z "$as_dir" && as_dir=.
14950 for ac_exec_ext in '' $ac_executable_extensions; do
14951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14952 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
14953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14954 break 2
14955 fi
14956 done
14957 done
14958 IFS=$as_save_IFS
14959
14960 ;;
14961 esac
14962 fi
14963 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
14964 if test -n "$ac_pt_DX_DVIPS"; then
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
14966 $as_echo "$ac_pt_DX_DVIPS" >&6; }
14967 else
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14969 $as_echo "no" >&6; }
14970 fi
14971
14972 if test "x$ac_pt_DX_DVIPS" = x; then
14973 DX_DVIPS=""
14974 else
14975 case $cross_compiling:$ac_tool_warned in
14976 yes:)
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14979 ac_tool_warned=yes ;;
14980 esac
14981 DX_DVIPS=$ac_pt_DX_DVIPS
14982 fi
14983 else
14984 DX_DVIPS="$ac_cv_path_DX_DVIPS"
14985 fi
14986
14987 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
14989 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
14990 DX_FLAG_ps=0
14991
14992 fi
14993
14994
14995 if test -n "$ac_tool_prefix"; then
14996 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
14997 set dummy ${ac_tool_prefix}egrep; ac_word=$2
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14999 $as_echo_n "checking for $ac_word... " >&6; }
15000 if ${ac_cv_path_DX_EGREP+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 case $DX_EGREP in
15004 [\\/]* | ?:[\\/]*)
15005 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
15006 ;;
15007 *)
15008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15009 for as_dir in $PATH
15010 do
15011 IFS=$as_save_IFS
15012 test -z "$as_dir" && as_dir=.
15013 for ac_exec_ext in '' $ac_executable_extensions; do
15014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15015 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
15016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15017 break 2
15018 fi
15019 done
15020 done
15021 IFS=$as_save_IFS
15022
15023 ;;
15024 esac
15025 fi
15026 DX_EGREP=$ac_cv_path_DX_EGREP
15027 if test -n "$DX_EGREP"; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
15029 $as_echo "$DX_EGREP" >&6; }
15030 else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15033 fi
15034
15035
15036 fi
15037 if test -z "$ac_cv_path_DX_EGREP"; then
15038 ac_pt_DX_EGREP=$DX_EGREP
15039 # Extract the first word of "egrep", so it can be a program name with args.
15040 set dummy egrep; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15042 $as_echo_n "checking for $ac_word... " >&6; }
15043 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 case $ac_pt_DX_EGREP in
15047 [\\/]* | ?:[\\/]*)
15048 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
15049 ;;
15050 *)
15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 for as_dir in $PATH
15053 do
15054 IFS=$as_save_IFS
15055 test -z "$as_dir" && as_dir=.
15056 for ac_exec_ext in '' $ac_executable_extensions; do
15057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
15059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15060 break 2
15061 fi
15062 done
15063 done
15064 IFS=$as_save_IFS
15065
15066 ;;
15067 esac
15068 fi
15069 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
15070 if test -n "$ac_pt_DX_EGREP"; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
15072 $as_echo "$ac_pt_DX_EGREP" >&6; }
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15076 fi
15077
15078 if test "x$ac_pt_DX_EGREP" = x; then
15079 DX_EGREP=""
15080 else
15081 case $cross_compiling:$ac_tool_warned in
15082 yes:)
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15085 ac_tool_warned=yes ;;
15086 esac
15087 DX_EGREP=$ac_pt_DX_EGREP
15088 fi
15089 else
15090 DX_EGREP="$ac_cv_path_DX_EGREP"
15091 fi
15092
15093 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
15095 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
15096 DX_FLAG_ps=0
15097
15098 fi
15099
15100 :
15101 fi
15102 if test "$DX_FLAG_ps" = 1; then
15103 if :; then
15104 DX_COND_ps_TRUE=
15105 DX_COND_ps_FALSE='#'
15106 else
15107 DX_COND_ps_TRUE='#'
15108 DX_COND_ps_FALSE=
15109 fi
15110
15111
15112 :
15113 else
15114 if false; then
15115 DX_COND_ps_TRUE=
15116 DX_COND_ps_FALSE='#'
15117 else
15118 DX_COND_ps_TRUE='#'
15119 DX_COND_ps_FALSE=
15120 fi
15121
15122
15123 :
15124 fi
15125
15126
15127 # PDF file generation:
15128
15129
15130
15131
15132 # Check whether --enable-doxygen-pdf was given.
15133 if test "${enable_doxygen_pdf+set}" = set; then :
15134 enableval=$enable_doxygen_pdf;
15135 case "$enableval" in
15136 #(
15137 y|Y|yes|Yes|YES)
15138 DX_FLAG_pdf=1
15139
15140
15141 test "$DX_FLAG_doc" = "1" \
15142 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
15143
15144 ;; #(
15145 n|N|no|No|NO)
15146 DX_FLAG_pdf=0
15147
15148 ;; #(
15149 *)
15150 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
15151 ;;
15152 esac
15153
15154 else
15155
15156 DX_FLAG_pdf=0
15157
15158
15159 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
15160
15161
15162
15163 fi
15164
15165 if test "$DX_FLAG_pdf" = 1; then
15166
15167 if test -n "$ac_tool_prefix"; then
15168 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
15169 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15171 $as_echo_n "checking for $ac_word... " >&6; }
15172 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 case $DX_PDFLATEX in
15176 [\\/]* | ?:[\\/]*)
15177 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
15178 ;;
15179 *)
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15182 do
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189 break 2
15190 fi
15191 done
15192 done
15193 IFS=$as_save_IFS
15194
15195 ;;
15196 esac
15197 fi
15198 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
15199 if test -n "$DX_PDFLATEX"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
15201 $as_echo "$DX_PDFLATEX" >&6; }
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 $as_echo "no" >&6; }
15205 fi
15206
15207
15208 fi
15209 if test -z "$ac_cv_path_DX_PDFLATEX"; then
15210 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
15211 # Extract the first word of "pdflatex", so it can be a program name with args.
15212 set dummy pdflatex; ac_word=$2
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214 $as_echo_n "checking for $ac_word... " >&6; }
15215 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 case $ac_pt_DX_PDFLATEX in
15219 [\\/]* | ?:[\\/]*)
15220 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
15221 ;;
15222 *)
15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226 IFS=$as_save_IFS
15227 test -z "$as_dir" && as_dir=.
15228 for ac_exec_ext in '' $ac_executable_extensions; do
15229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15230 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232 break 2
15233 fi
15234 done
15235 done
15236 IFS=$as_save_IFS
15237
15238 ;;
15239 esac
15240 fi
15241 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
15242 if test -n "$ac_pt_DX_PDFLATEX"; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
15244 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15248 fi
15249
15250 if test "x$ac_pt_DX_PDFLATEX" = x; then
15251 DX_PDFLATEX=""
15252 else
15253 case $cross_compiling:$ac_tool_warned in
15254 yes:)
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15257 ac_tool_warned=yes ;;
15258 esac
15259 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
15260 fi
15261 else
15262 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
15263 fi
15264
15265 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
15267 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
15268 DX_FLAG_pdf=0
15269
15270 fi
15271
15272
15273 if test -n "$ac_tool_prefix"; then
15274 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
15275 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15277 $as_echo_n "checking for $ac_word... " >&6; }
15278 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281 case $DX_MAKEINDEX in
15282 [\\/]* | ?:[\\/]*)
15283 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
15284 ;;
15285 *)
15286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287 for as_dir in $PATH
15288 do
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 for ac_exec_ext in '' $ac_executable_extensions; do
15292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
15294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15295 break 2
15296 fi
15297 done
15298 done
15299 IFS=$as_save_IFS
15300
15301 ;;
15302 esac
15303 fi
15304 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
15305 if test -n "$DX_MAKEINDEX"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
15307 $as_echo "$DX_MAKEINDEX" >&6; }
15308 else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15311 fi
15312
15313
15314 fi
15315 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
15316 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
15317 # Extract the first word of "makeindex", so it can be a program name with args.
15318 set dummy makeindex; ac_word=$2
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15320 $as_echo_n "checking for $ac_word... " >&6; }
15321 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 case $ac_pt_DX_MAKEINDEX in
15325 [\\/]* | ?:[\\/]*)
15326 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
15327 ;;
15328 *)
15329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15330 for as_dir in $PATH
15331 do
15332 IFS=$as_save_IFS
15333 test -z "$as_dir" && as_dir=.
15334 for ac_exec_ext in '' $ac_executable_extensions; do
15335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15336 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
15337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15338 break 2
15339 fi
15340 done
15341 done
15342 IFS=$as_save_IFS
15343
15344 ;;
15345 esac
15346 fi
15347 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
15348 if test -n "$ac_pt_DX_MAKEINDEX"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
15350 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
15351 else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353 $as_echo "no" >&6; }
15354 fi
15355
15356 if test "x$ac_pt_DX_MAKEINDEX" = x; then
15357 DX_MAKEINDEX=""
15358 else
15359 case $cross_compiling:$ac_tool_warned in
15360 yes:)
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15363 ac_tool_warned=yes ;;
15364 esac
15365 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
15366 fi
15367 else
15368 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
15369 fi
15370
15371 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
15373 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
15374 DX_FLAG_pdf=0
15375
15376 fi
15377
15378
15379 if test -n "$ac_tool_prefix"; then
15380 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
15381 set dummy ${ac_tool_prefix}egrep; ac_word=$2
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15383 $as_echo_n "checking for $ac_word... " >&6; }
15384 if ${ac_cv_path_DX_EGREP+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
15387 case $DX_EGREP in
15388 [\\/]* | ?:[\\/]*)
15389 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
15390 ;;
15391 *)
15392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15393 for as_dir in $PATH
15394 do
15395 IFS=$as_save_IFS
15396 test -z "$as_dir" && as_dir=.
15397 for ac_exec_ext in '' $ac_executable_extensions; do
15398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15399 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
15400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 break 2
15402 fi
15403 done
15404 done
15405 IFS=$as_save_IFS
15406
15407 ;;
15408 esac
15409 fi
15410 DX_EGREP=$ac_cv_path_DX_EGREP
15411 if test -n "$DX_EGREP"; then
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
15413 $as_echo "$DX_EGREP" >&6; }
15414 else
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 $as_echo "no" >&6; }
15417 fi
15418
15419
15420 fi
15421 if test -z "$ac_cv_path_DX_EGREP"; then
15422 ac_pt_DX_EGREP=$DX_EGREP
15423 # Extract the first word of "egrep", so it can be a program name with args.
15424 set dummy egrep; ac_word=$2
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15426 $as_echo_n "checking for $ac_word... " >&6; }
15427 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 case $ac_pt_DX_EGREP in
15431 [\\/]* | ?:[\\/]*)
15432 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
15433 ;;
15434 *)
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15437 do
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15445 fi
15446 done
15447 done
15448 IFS=$as_save_IFS
15449
15450 ;;
15451 esac
15452 fi
15453 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
15454 if test -n "$ac_pt_DX_EGREP"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
15456 $as_echo "$ac_pt_DX_EGREP" >&6; }
15457 else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15460 fi
15461
15462 if test "x$ac_pt_DX_EGREP" = x; then
15463 DX_EGREP=""
15464 else
15465 case $cross_compiling:$ac_tool_warned in
15466 yes:)
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15469 ac_tool_warned=yes ;;
15470 esac
15471 DX_EGREP=$ac_pt_DX_EGREP
15472 fi
15473 else
15474 DX_EGREP="$ac_cv_path_DX_EGREP"
15475 fi
15476
15477 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
15479 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
15480 DX_FLAG_pdf=0
15481
15482 fi
15483
15484 :
15485 fi
15486 if test "$DX_FLAG_pdf" = 1; then
15487 if :; then
15488 DX_COND_pdf_TRUE=
15489 DX_COND_pdf_FALSE='#'
15490 else
15491 DX_COND_pdf_TRUE='#'
15492 DX_COND_pdf_FALSE=
15493 fi
15494
15495
15496 :
15497 else
15498 if false; then
15499 DX_COND_pdf_TRUE=
15500 DX_COND_pdf_FALSE='#'
15501 else
15502 DX_COND_pdf_TRUE='#'
15503 DX_COND_pdf_FALSE=
15504 fi
15505
15506
15507 :
15508 fi
15509
15510
15511 # LaTeX generation for PS and/or PDF:
15512 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
15513 if :; then
15514 DX_COND_latex_TRUE=
15515 DX_COND_latex_FALSE='#'
15516 else
15517 DX_COND_latex_TRUE='#'
15518 DX_COND_latex_FALSE=
15519 fi
15520
15521 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
15522
15523 else
15524 if false; then
15525 DX_COND_latex_TRUE=
15526 DX_COND_latex_FALSE='#'
15527 else
15528 DX_COND_latex_TRUE='#'
15529 DX_COND_latex_FALSE=
15530 fi
15531
15532 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
15533
15534 fi
15535
15536 # Paper size for PS and/or PDF:
15537
15538 case "$DOXYGEN_PAPER_SIZE" in
15539 #(
15540 "")
15541 DOXYGEN_PAPER_SIZE=""
15542
15543 ;; #(
15544 a4wide|a4|letter|legal|executive)
15545 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
15546
15547 ;; #(
15548 *)
15549 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
15550 ;;
15551 esac
15552
15553 #For debugging:
15554 #echo DX_FLAG_doc=$DX_FLAG_doc
15555 #echo DX_FLAG_dot=$DX_FLAG_dot
15556 #echo DX_FLAG_man=$DX_FLAG_man
15557 #echo DX_FLAG_html=$DX_FLAG_html
15558 #echo DX_FLAG_chm=$DX_FLAG_chm
15559 #echo DX_FLAG_chi=$DX_FLAG_chi
15560 #echo DX_FLAG_rtf=$DX_FLAG_rtf
15561 #echo DX_FLAG_xml=$DX_FLAG_xml
15562 #echo DX_FLAG_pdf=$DX_FLAG_pdf
15563 #echo DX_FLAG_ps=$DX_FLAG_ps
15564 #echo DX_ENV=$DX_ENV
15565
15566
15567
15568
15569
15570 ac_config_files="$ac_config_files Makefile libxtiff/Makefile bin/Makefile man/Makefile man/man1/Makefile cmake/Makefile test/Makefile libgeotiff.pc"
15571
15572
15573 cat >confcache <<\_ACEOF
15574 # This file is a shell script that caches the results of configure
15575 # tests run on this system so they can be shared between configure
15576 # scripts and configure runs, see configure's option --config-cache.
15577 # It is not useful on other systems. If it contains results you don't
15578 # want to keep, you may remove or edit it.
15579 #
15580 # config.status only pays attention to the cache file if you give it
15581 # the --recheck option to rerun configure.
15582 #
15583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15585 # following values.
15586
15587 _ACEOF
15588
15589 # The following way of writing the cache mishandles newlines in values,
15590 # but we know of no workaround that is simple, portable, and efficient.
15591 # So, we kill variables containing newlines.
15592 # Ultrix sh set writes to stderr and can't be redirected directly,
15593 # and sets the high bit in the cache file unless we assign to the vars.
15594 (
15595 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15596 eval ac_val=\$$ac_var
15597 case $ac_val in #(
15598 *${as_nl}*)
15599 case $ac_var in #(
15600 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15601 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15602 esac
15603 case $ac_var in #(
15604 _ | IFS | as_nl) ;; #(
15605 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15606 *) { eval $ac_var=; unset $ac_var;} ;;
15607 esac ;;
15608 esac
15609 done
15610
15611 (set) 2>&1 |
15612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15613 *${as_nl}ac_space=\ *)
15614 # `set' does not quote correctly, so add quotes: double-quote
15615 # substitution turns \\\\ into \\, and sed turns \\ into \.
15616 sed -n \
15617 "s/'/'\\\\''/g;
15618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15619 ;; #(
15620 *)
15621 # `set' quotes correctly as required by POSIX, so do not add quotes.
15622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15623 ;;
15624 esac |
15625 sort
15626 ) |
15627 sed '
15628 /^ac_cv_env_/b end
15629 t clear
15630 :clear
15631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15632 t end
15633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15634 :end' >>confcache
15635 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15636 if test -w "$cache_file"; then
15637 if test "x$cache_file" != "x/dev/null"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15639 $as_echo "$as_me: updating cache $cache_file" >&6;}
15640 if test ! -f "$cache_file" || test -h "$cache_file"; then
15641 cat confcache >"$cache_file"
15642 else
15643 case $cache_file in #(
15644 */* | ?:*)
15645 mv -f confcache "$cache_file"$$ &&
15646 mv -f "$cache_file"$$ "$cache_file" ;; #(
15647 *)
15648 mv -f confcache "$cache_file" ;;
15649 esac
15650 fi
15651 fi
15652 else
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15654 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15655 fi
15656 fi
15657 rm -f confcache
15658
15659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15660 # Let make expand exec_prefix.
15661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15662
15663 DEFS=-DHAVE_CONFIG_H
15664
15665 ac_libobjs=
15666 ac_ltlibobjs=
15667 U=
15668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15669 # 1. Remove the extension, and $U if already installed.
15670 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15671 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15672 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15673 # will be set to the directory where LIBOBJS objects are built.
15674 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15675 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15676 done
15677 LIBOBJS=$ac_libobjs
15678
15679 LTLIBOBJS=$ac_ltlibobjs
15680
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15683 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15684 if test -n "$am_sleep_pid"; then
15685 # Hide warnings about reused PIDs.
15686 wait $am_sleep_pid 2>/dev/null
15687 fi
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15689 $as_echo "done" >&6; }
15690 if test -n "$EXEEXT"; then
15691 am__EXEEXT_TRUE=
15692 am__EXEEXT_FALSE='#'
15693 else
15694 am__EXEEXT_TRUE='#'
15695 am__EXEEXT_FALSE=
15696 fi
15697
15698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15699 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 fi
15702 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15703 as_fn_error $? "conditional \"AMDEP\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 fi
15706 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15707 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709 fi
15710 if test -z "${ZIP_IS_CONFIG_TRUE}" && test -z "${ZIP_IS_CONFIG_FALSE}"; then
15711 as_fn_error $? "conditional \"ZIP_IS_CONFIG\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 fi
15714 if test -z "${JPEG_IS_CONFIG_TRUE}" && test -z "${JPEG_IS_CONFIG_FALSE}"; then
15715 as_fn_error $? "conditional \"JPEG_IS_CONFIG\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 fi
15718 if test -z "${TIFF_IS_CONFIG_TRUE}" && test -z "${TIFF_IS_CONFIG_FALSE}"; then
15719 as_fn_error $? "conditional \"TIFF_IS_CONFIG\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721 fi
15722 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
15723 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725 fi
15726 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
15727 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729 fi
15730 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
15731 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733 fi
15734 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
15735 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737 fi
15738 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
15739 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741 fi
15742 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
15743 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745 fi
15746 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
15747 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749 fi
15750 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
15751 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 fi
15754 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
15755 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757 fi
15758 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
15759 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
15760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15761 fi
15762 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
15763 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 fi
15766 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
15767 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
15768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 fi
15770 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
15771 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
15772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 fi
15774 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
15775 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
15776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 fi
15778 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
15779 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
15780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 fi
15782 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
15783 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
15784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785 fi
15786 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
15787 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
15788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15789 fi
15790 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
15791 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
15792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793 fi
15794 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
15795 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
15796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797 fi
15798 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
15799 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
15800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15801 fi
15802 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
15803 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
15804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805 fi
15806 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
15807 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
15808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809 fi
15810
15811 : "${CONFIG_STATUS=./config.status}"
15812 ac_write_fail=0
15813 ac_clean_files_save=$ac_clean_files
15814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15817 as_write_fail=0
15818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15819 #! $SHELL
15820 # Generated by $as_me.
15821 # Run this file to recreate the current configuration.
15822 # Compiler output produced by configure, useful for debugging
15823 # configure, is in config.log if it exists.
15824
15825 debug=false
15826 ac_cs_recheck=false
15827 ac_cs_silent=false
15828
15829 SHELL=\${CONFIG_SHELL-$SHELL}
15830 export SHELL
15831 _ASEOF
15832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15833 ## -------------------- ##
15834 ## M4sh Initialization. ##
15835 ## -------------------- ##
15836
15837 # Be more Bourne compatible
15838 DUALCASE=1; export DUALCASE # for MKS sh
15839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15840 emulate sh
15841 NULLCMD=:
15842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15843 # is contrary to our usage. Disable this feature.
15844 alias -g '${1+"$@"}'='"$@"'
15845 setopt NO_GLOB_SUBST
15846 else
15847 case `(set -o) 2>/dev/null` in #(
15848 *posix*) :
15849 set -o posix ;; #(
15850 *) :
15851 ;;
15852 esac
15853 fi
15854
15855
15856 as_nl='
15857 '
15858 export as_nl
15859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15863 # Prefer a ksh shell builtin over an external printf program on Solaris,
15864 # but without wasting forks for bash or zsh.
15865 if test -z "$BASH_VERSION$ZSH_VERSION" \
15866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15867 as_echo='print -r --'
15868 as_echo_n='print -rn --'
15869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15870 as_echo='printf %s\n'
15871 as_echo_n='printf %s'
15872 else
15873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15875 as_echo_n='/usr/ucb/echo -n'
15876 else
15877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15878 as_echo_n_body='eval
15879 arg=$1;
15880 case $arg in #(
15881 *"$as_nl"*)
15882 expr "X$arg" : "X\\(.*\\)$as_nl";
15883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15884 esac;
15885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15886 '
15887 export as_echo_n_body
15888 as_echo_n='sh -c $as_echo_n_body as_echo'
15889 fi
15890 export as_echo_body
15891 as_echo='sh -c $as_echo_body as_echo'
15892 fi
15893
15894 # The user is always right.
15895 if test "${PATH_SEPARATOR+set}" != set; then
15896 PATH_SEPARATOR=:
15897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15899 PATH_SEPARATOR=';'
15900 }
15901 fi
15902
15903
15904 # IFS
15905 # We need space, tab and new line, in precisely that order. Quoting is
15906 # there to prevent editors from complaining about space-tab.
15907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15908 # splitting by setting IFS to empty value.)
15909 IFS=" "" $as_nl"
15910
15911 # Find who we are. Look in the path if we contain no directory separator.
15912 as_myself=
15913 case $0 in #((
15914 *[\\/]* ) as_myself=$0 ;;
15915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15921 done
15922 IFS=$as_save_IFS
15923
15924 ;;
15925 esac
15926 # We did not find ourselves, most probably we were run as `sh COMMAND'
15927 # in which case we are not to be found in the path.
15928 if test "x$as_myself" = x; then
15929 as_myself=$0
15930 fi
15931 if test ! -f "$as_myself"; then
15932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15933 exit 1
15934 fi
15935
15936 # Unset variables that we do not need and which cause bugs (e.g. in
15937 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15938 # suppresses any "Segmentation fault" message there. '((' could
15939 # trigger a bug in pdksh 5.2.14.
15940 for as_var in BASH_ENV ENV MAIL MAILPATH
15941 do eval test x\${$as_var+set} = xset \
15942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15943 done
15944 PS1='$ '
15945 PS2='> '
15946 PS4='+ '
15947
15948 # NLS nuisances.
15949 LC_ALL=C
15950 export LC_ALL
15951 LANGUAGE=C
15952 export LANGUAGE
15953
15954 # CDPATH.
15955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15956
15957
15958 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15959 # ----------------------------------------
15960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15962 # script with STATUS, using 1 if that was 0.
15963 as_fn_error ()
15964 {
15965 as_status=$1; test $as_status -eq 0 && as_status=1
15966 if test "$4"; then
15967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15969 fi
15970 $as_echo "$as_me: error: $2" >&2
15971 as_fn_exit $as_status
15972 } # as_fn_error
15973
15974
15975 # as_fn_set_status STATUS
15976 # -----------------------
15977 # Set $? to STATUS, without forking.
15978 as_fn_set_status ()
15979 {
15980 return $1
15981 } # as_fn_set_status
15982
15983 # as_fn_exit STATUS
15984 # -----------------
15985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15986 as_fn_exit ()
15987 {
15988 set +e
15989 as_fn_set_status $1
15990 exit $1
15991 } # as_fn_exit
15992
15993 # as_fn_unset VAR
15994 # ---------------
15995 # Portably unset VAR.
15996 as_fn_unset ()
15997 {
15998 { eval $1=; unset $1;}
15999 }
16000 as_unset=as_fn_unset
16001 # as_fn_append VAR VALUE
16002 # ----------------------
16003 # Append the text in VALUE to the end of the definition contained in VAR. Take
16004 # advantage of any shell optimizations that allow amortized linear growth over
16005 # repeated appends, instead of the typical quadratic growth present in naive
16006 # implementations.
16007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16008 eval 'as_fn_append ()
16009 {
16010 eval $1+=\$2
16011 }'
16012 else
16013 as_fn_append ()
16014 {
16015 eval $1=\$$1\$2
16016 }
16017 fi # as_fn_append
16018
16019 # as_fn_arith ARG...
16020 # ------------------
16021 # Perform arithmetic evaluation on the ARGs, and store the result in the
16022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16023 # must be portable across $(()) and expr.
16024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16025 eval 'as_fn_arith ()
16026 {
16027 as_val=$(( $* ))
16028 }'
16029 else
16030 as_fn_arith ()
16031 {
16032 as_val=`expr "$@" || test $? -eq 1`
16033 }
16034 fi # as_fn_arith
16035
16036
16037 if expr a : '\(a\)' >/dev/null 2>&1 &&
16038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16039 as_expr=expr
16040 else
16041 as_expr=false
16042 fi
16043
16044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16045 as_basename=basename
16046 else
16047 as_basename=false
16048 fi
16049
16050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16051 as_dirname=dirname
16052 else
16053 as_dirname=false
16054 fi
16055
16056 as_me=`$as_basename -- "$0" ||
16057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16058 X"$0" : 'X\(//\)$' \| \
16059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16060 $as_echo X/"$0" |
16061 sed '/^.*\/\([^/][^/]*\)\/*$/{
16062 s//\1/
16063 q
16064 }
16065 /^X\/\(\/\/\)$/{
16066 s//\1/
16067 q
16068 }
16069 /^X\/\(\/\).*/{
16070 s//\1/
16071 q
16072 }
16073 s/.*/./; q'`
16074
16075 # Avoid depending upon Character Ranges.
16076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16079 as_cr_digits='0123456789'
16080 as_cr_alnum=$as_cr_Letters$as_cr_digits
16081
16082 ECHO_C= ECHO_N= ECHO_T=
16083 case `echo -n x` in #(((((
16084 -n*)
16085 case `echo 'xy\c'` in
16086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16087 xy) ECHO_C='\c';;
16088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16089 ECHO_T=' ';;
16090 esac;;
16091 *)
16092 ECHO_N='-n';;
16093 esac
16094
16095 rm -f conf$$ conf$$.exe conf$$.file
16096 if test -d conf$$.dir; then
16097 rm -f conf$$.dir/conf$$.file
16098 else
16099 rm -f conf$$.dir
16100 mkdir conf$$.dir 2>/dev/null
16101 fi
16102 if (echo >conf$$.file) 2>/dev/null; then
16103 if ln -s conf$$.file conf$$ 2>/dev/null; then
16104 as_ln_s='ln -s'
16105 # ... but there are two gotchas:
16106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16108 # In both cases, we have to default to `cp -pR'.
16109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16110 as_ln_s='cp -pR'
16111 elif ln conf$$.file conf$$ 2>/dev/null; then
16112 as_ln_s=ln
16113 else
16114 as_ln_s='cp -pR'
16115 fi
16116 else
16117 as_ln_s='cp -pR'
16118 fi
16119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16120 rmdir conf$$.dir 2>/dev/null
16121
16122
16123 # as_fn_mkdir_p
16124 # -------------
16125 # Create "$as_dir" as a directory, including parents if necessary.
16126 as_fn_mkdir_p ()
16127 {
16128
16129 case $as_dir in #(
16130 -*) as_dir=./$as_dir;;
16131 esac
16132 test -d "$as_dir" || eval $as_mkdir_p || {
16133 as_dirs=
16134 while :; do
16135 case $as_dir in #(
16136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16137 *) as_qdir=$as_dir;;
16138 esac
16139 as_dirs="'$as_qdir' $as_dirs"
16140 as_dir=`$as_dirname -- "$as_dir" ||
16141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16142 X"$as_dir" : 'X\(//\)[^/]' \| \
16143 X"$as_dir" : 'X\(//\)$' \| \
16144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16145 $as_echo X"$as_dir" |
16146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16147 s//\1/
16148 q
16149 }
16150 /^X\(\/\/\)[^/].*/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\/\)$/{
16155 s//\1/
16156 q
16157 }
16158 /^X\(\/\).*/{
16159 s//\1/
16160 q
16161 }
16162 s/.*/./; q'`
16163 test -d "$as_dir" && break
16164 done
16165 test -z "$as_dirs" || eval "mkdir $as_dirs"
16166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16167
16168
16169 } # as_fn_mkdir_p
16170 if mkdir -p . 2>/dev/null; then
16171 as_mkdir_p='mkdir -p "$as_dir"'
16172 else
16173 test -d ./-p && rmdir ./-p
16174 as_mkdir_p=false
16175 fi
16176
16177
16178 # as_fn_executable_p FILE
16179 # -----------------------
16180 # Test if FILE is an executable regular file.
16181 as_fn_executable_p ()
16182 {
16183 test -f "$1" && test -x "$1"
16184 } # as_fn_executable_p
16185 as_test_x='test -x'
16186 as_executable_p=as_fn_executable_p
16187
16188 # Sed expression to map a string onto a valid CPP name.
16189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16190
16191 # Sed expression to map a string onto a valid variable name.
16192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16193
16194
16195 exec 6>&1
16196 ## ----------------------------------- ##
16197 ## Main body of $CONFIG_STATUS script. ##
16198 ## ----------------------------------- ##
16199 _ASEOF
16200 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16201
16202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16203 # Save the log message, to keep $0 and so on meaningful, and to
16204 # report actual input values of CONFIG_FILES etc. instead of their
16205 # values after options handling.
16206 ac_log="
16207 This file was extended by libgeotiff $as_me 1.7.4, which was
16208 generated by GNU Autoconf 2.69. Invocation command line was
16209
16210 CONFIG_FILES = $CONFIG_FILES
16211 CONFIG_HEADERS = $CONFIG_HEADERS
16212 CONFIG_LINKS = $CONFIG_LINKS
16213 CONFIG_COMMANDS = $CONFIG_COMMANDS
16214 $ $0 $@
16215
16216 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16217 "
16218
16219 _ACEOF
16220
16221 case $ac_config_files in *"
16222 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16223 esac
16224
16225 case $ac_config_headers in *"
16226 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16227 esac
16228
16229
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 # Files that config.status was made for.
16232 config_files="$ac_config_files"
16233 config_headers="$ac_config_headers"
16234 config_commands="$ac_config_commands"
16235
16236 _ACEOF
16237
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 ac_cs_usage="\
16240 \`$as_me' instantiates files and other configuration actions
16241 from templates according to the current configuration. Unless the files
16242 and actions are specified as TAGs, all are instantiated by default.
16243
16244 Usage: $0 [OPTION]... [TAG]...
16245
16246 -h, --help print this help, then exit
16247 -V, --version print version number and configuration settings, then exit
16248 --config print configuration, then exit
16249 -q, --quiet, --silent
16250 do not print progress messages
16251 -d, --debug don't remove temporary files
16252 --recheck update $as_me by reconfiguring in the same conditions
16253 --file=FILE[:TEMPLATE]
16254 instantiate the configuration file FILE
16255 --header=FILE[:TEMPLATE]
16256 instantiate the configuration header FILE
16257
16258 Configuration files:
16259 $config_files
16260
16261 Configuration headers:
16262 $config_headers
16263
16264 Configuration commands:
16265 $config_commands
16266
16267 Report bugs to <[email protected]>."
16268
16269 _ACEOF
16270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16271 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16272 ac_cs_version="\\
16273 libgeotiff config.status 1.7.4
16274 configured by $0, generated by GNU Autoconf 2.69,
16275 with options \\"\$ac_cs_config\\"
16276
16277 Copyright (C) 2012 Free Software Foundation, Inc.
16278 This config.status script is free software; the Free Software Foundation
16279 gives unlimited permission to copy, distribute and modify it."
16280
16281 ac_pwd='$ac_pwd'
16282 srcdir='$srcdir'
16283 INSTALL='$INSTALL'
16284 MKDIR_P='$MKDIR_P'
16285 AWK='$AWK'
16286 test -n "\$AWK" || AWK=awk
16287 _ACEOF
16288
16289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16290 # The default lists apply if the user does not specify any file.
16291 ac_need_defaults=:
16292 while test $# != 0
16293 do
16294 case $1 in
16295 --*=?*)
16296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16298 ac_shift=:
16299 ;;
16300 --*=)
16301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16302 ac_optarg=
16303 ac_shift=:
16304 ;;
16305 *)
16306 ac_option=$1
16307 ac_optarg=$2
16308 ac_shift=shift
16309 ;;
16310 esac
16311
16312 case $ac_option in
16313 # Handling of the options.
16314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16315 ac_cs_recheck=: ;;
16316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16317 $as_echo "$ac_cs_version"; exit ;;
16318 --config | --confi | --conf | --con | --co | --c )
16319 $as_echo "$ac_cs_config"; exit ;;
16320 --debug | --debu | --deb | --de | --d | -d )
16321 debug=: ;;
16322 --file | --fil | --fi | --f )
16323 $ac_shift
16324 case $ac_optarg in
16325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16326 '') as_fn_error $? "missing file argument" ;;
16327 esac
16328 as_fn_append CONFIG_FILES " '$ac_optarg'"
16329 ac_need_defaults=false;;
16330 --header | --heade | --head | --hea )
16331 $ac_shift
16332 case $ac_optarg in
16333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16334 esac
16335 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16336 ac_need_defaults=false;;
16337 --he | --h)
16338 # Conflict between --help and --header
16339 as_fn_error $? "ambiguous option: \`$1'
16340 Try \`$0 --help' for more information.";;
16341 --help | --hel | -h )
16342 $as_echo "$ac_cs_usage"; exit ;;
16343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16345 ac_cs_silent=: ;;
16346
16347 # This is an error.
16348 -*) as_fn_error $? "unrecognized option: \`$1'
16349 Try \`$0 --help' for more information." ;;
16350
16351 *) as_fn_append ac_config_targets " $1"
16352 ac_need_defaults=false ;;
16353
16354 esac
16355 shift
16356 done
16357
16358 ac_configure_extra_args=
16359
16360 if $ac_cs_silent; then
16361 exec 6>/dev/null
16362 ac_configure_extra_args="$ac_configure_extra_args --silent"
16363 fi
16364
16365 _ACEOF
16366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367 if \$ac_cs_recheck; then
16368 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16369 shift
16370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16371 CONFIG_SHELL='$SHELL'
16372 export CONFIG_SHELL
16373 exec "\$@"
16374 fi
16375
16376 _ACEOF
16377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378 exec 5>>config.log
16379 {
16380 echo
16381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16382 ## Running $as_me. ##
16383 _ASBOX
16384 $as_echo "$ac_log"
16385 } >&5
16386
16387 _ACEOF
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 #
16390 # INIT-COMMANDS
16391 #
16392 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16393
16394
16395 # The HP-UX ksh and POSIX shell print the target directory to stdout
16396 # if CDPATH is set.
16397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16398
16399 sed_quote_subst='$sed_quote_subst'
16400 double_quote_subst='$double_quote_subst'
16401 delay_variable_subst='$delay_variable_subst'
16402 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16403 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16404 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16405 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16406 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16407 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16408 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16409 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16410 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16411 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16432 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16433 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16434 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16435 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16436 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16437 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16438 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16439 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16440 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16441 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16442 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16443 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16444 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16445 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16446 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16447 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16448 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16449 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16450 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16451 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16452 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16453 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16454 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16455 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16456 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16457 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16458 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16459 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16460 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"`'
16461 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16462 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16463 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16465 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16466 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16467 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16468 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16469 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16470 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16471 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16472 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16473 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16474 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16475 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16476 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16477 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16478 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16479 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16480 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16481 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16482 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16483 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16484 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16485 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16486 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16487 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16488 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16489 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16490 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16491 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16492 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16493 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16494 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16495 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16496 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16497 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16498 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16499 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16500 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16501 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16502 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16503 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16504 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16505 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16506 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16507 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16508 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16509 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16510 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16511 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16512 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16513 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16514 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16515 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16516 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16517 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16518 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16519 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16520 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16521 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16522 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16523 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16524 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16525 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16526 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16527 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16528 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16529 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16530 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16531 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16532 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16533 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16534 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16535 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16536 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16537
16538 LTCC='$LTCC'
16539 LTCFLAGS='$LTCFLAGS'
16540 compiler='$compiler_DEFAULT'
16541
16542 # A function that is used when there is no print builtin or printf.
16543 func_fallback_echo ()
16544 {
16545 eval 'cat <<_LTECHO_EOF
16546 \$1
16547 _LTECHO_EOF'
16548 }
16549
16550 # Quote evaled strings.
16551 for var in SHELL \
16552 ECHO \
16553 PATH_SEPARATOR \
16554 SED \
16555 GREP \
16556 EGREP \
16557 FGREP \
16558 LD \
16559 NM \
16560 LN_S \
16561 lt_SP2NL \
16562 lt_NL2SP \
16563 reload_flag \
16564 OBJDUMP \
16565 deplibs_check_method \
16566 file_magic_cmd \
16567 file_magic_glob \
16568 want_nocaseglob \
16569 DLLTOOL \
16570 sharedlib_from_linklib_cmd \
16571 AR \
16572 AR_FLAGS \
16573 archiver_list_spec \
16574 STRIP \
16575 RANLIB \
16576 CC \
16577 CFLAGS \
16578 compiler \
16579 lt_cv_sys_global_symbol_pipe \
16580 lt_cv_sys_global_symbol_to_cdecl \
16581 lt_cv_sys_global_symbol_to_import \
16582 lt_cv_sys_global_symbol_to_c_name_address \
16583 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16584 lt_cv_nm_interface \
16585 nm_file_list_spec \
16586 lt_cv_truncate_bin \
16587 lt_prog_compiler_no_builtin_flag \
16588 lt_prog_compiler_pic \
16589 lt_prog_compiler_wl \
16590 lt_prog_compiler_static \
16591 lt_cv_prog_compiler_c_o \
16592 need_locks \
16593 MANIFEST_TOOL \
16594 DSYMUTIL \
16595 NMEDIT \
16596 LIPO \
16597 OTOOL \
16598 OTOOL64 \
16599 shrext_cmds \
16600 export_dynamic_flag_spec \
16601 whole_archive_flag_spec \
16602 compiler_needs_object \
16603 with_gnu_ld \
16604 allow_undefined_flag \
16605 no_undefined_flag \
16606 hardcode_libdir_flag_spec \
16607 hardcode_libdir_separator \
16608 exclude_expsyms \
16609 include_expsyms \
16610 file_list_spec \
16611 variables_saved_for_relink \
16612 libname_spec \
16613 library_names_spec \
16614 soname_spec \
16615 install_override_mode \
16616 finish_eval \
16617 old_striplib \
16618 striplib; do
16619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16620 *[\\\\\\\`\\"\\\$]*)
16621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16622 ;;
16623 *)
16624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16625 ;;
16626 esac
16627 done
16628
16629 # Double-quote double-evaled strings.
16630 for var in reload_cmds \
16631 old_postinstall_cmds \
16632 old_postuninstall_cmds \
16633 old_archive_cmds \
16634 extract_expsyms_cmds \
16635 old_archive_from_new_cmds \
16636 old_archive_from_expsyms_cmds \
16637 archive_cmds \
16638 archive_expsym_cmds \
16639 module_cmds \
16640 module_expsym_cmds \
16641 export_symbols_cmds \
16642 prelink_cmds \
16643 postlink_cmds \
16644 postinstall_cmds \
16645 postuninstall_cmds \
16646 finish_cmds \
16647 sys_lib_search_path_spec \
16648 configure_time_dlsearch_path \
16649 configure_time_lt_sys_library_path; do
16650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16651 *[\\\\\\\`\\"\\\$]*)
16652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16653 ;;
16654 *)
16655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16656 ;;
16657 esac
16658 done
16659
16660 ac_aux_dir='$ac_aux_dir'
16661
16662 # See if we are running on zsh, and set the options that allow our
16663 # commands through without removal of \ escapes INIT.
16664 if test -n "\${ZSH_VERSION+set}"; then
16665 setopt NO_GLOB_SUBST
16666 fi
16667
16668
16669 PACKAGE='$PACKAGE'
16670 VERSION='$VERSION'
16671 RM='$RM'
16672 ofile='$ofile'
16673
16674
16675
16676
16677 _ACEOF
16678
16679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16680
16681 # Handling of arguments.
16682 for ac_config_target in $ac_config_targets
16683 do
16684 case $ac_config_target in
16685 "geo_config.h") CONFIG_HEADERS="$CONFIG_HEADERS geo_config.h" ;;
16686 "geotiff.h") CONFIG_FILES="$CONFIG_FILES geotiff.h" ;;
16687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16688 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16689 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16690 "libxtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libxtiff/Makefile" ;;
16691 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
16692 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16693 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
16694 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;;
16695 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16696 "libgeotiff.pc") CONFIG_FILES="$CONFIG_FILES libgeotiff.pc" ;;
16697
16698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16699 esac
16700 done
16701
16702
16703 # If the user did not use the arguments to specify the items to instantiate,
16704 # then the envvar interface is used. Set only those that are not.
16705 # We use the long form for the default assignment because of an extremely
16706 # bizarre bug on SunOS 4.1.3.
16707 if $ac_need_defaults; then
16708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16711 fi
16712
16713 # Have a temporary directory for convenience. Make it in the build tree
16714 # simply because there is no reason against having it here, and in addition,
16715 # creating and moving files from /tmp can sometimes cause problems.
16716 # Hook for its removal unless debugging.
16717 # Note that there is a small window in which the directory will not be cleaned:
16718 # after its creation but before its name has been assigned to `$tmp'.
16719 $debug ||
16720 {
16721 tmp= ac_tmp=
16722 trap 'exit_status=$?
16723 : "${ac_tmp:=$tmp}"
16724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16725 ' 0
16726 trap 'as_fn_exit 1' 1 2 13 15
16727 }
16728 # Create a (secure) tmp directory for tmp files.
16729
16730 {
16731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16732 test -d "$tmp"
16733 } ||
16734 {
16735 tmp=./conf$$-$RANDOM
16736 (umask 077 && mkdir "$tmp")
16737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16738 ac_tmp=$tmp
16739
16740 # Set up the scripts for CONFIG_FILES section.
16741 # No need to generate them if there are no CONFIG_FILES.
16742 # This happens for instance with `./config.status config.h'.
16743 if test -n "$CONFIG_FILES"; then
16744
16745
16746 ac_cr=`echo X | tr X '\015'`
16747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16748 # But we know of no other shell where ac_cr would be empty at this
16749 # point, so we can use a bashism as a fallback.
16750 if test "x$ac_cr" = x; then
16751 eval ac_cr=\$\'\\r\'
16752 fi
16753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16755 ac_cs_awk_cr='\\r'
16756 else
16757 ac_cs_awk_cr=$ac_cr
16758 fi
16759
16760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16761 _ACEOF
16762
16763
16764 {
16765 echo "cat >conf$$subs.awk <<_ACEOF" &&
16766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16767 echo "_ACEOF"
16768 } >conf$$subs.sh ||
16769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16771 ac_delim='%!_!# '
16772 for ac_last_try in false false false false false :; do
16773 . ./conf$$subs.sh ||
16774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16775
16776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16777 if test $ac_delim_n = $ac_delim_num; then
16778 break
16779 elif $ac_last_try; then
16780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16781 else
16782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16783 fi
16784 done
16785 rm -f conf$$subs.sh
16786
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16789 _ACEOF
16790 sed -n '
16791 h
16792 s/^/S["/; s/!.*/"]=/
16793 p
16794 g
16795 s/^[^!]*!//
16796 :repl
16797 t repl
16798 s/'"$ac_delim"'$//
16799 t delim
16800 :nl
16801 h
16802 s/\(.\{148\}\)..*/\1/
16803 t more1
16804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16805 p
16806 n
16807 b repl
16808 :more1
16809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16810 p
16811 g
16812 s/.\{148\}//
16813 t nl
16814 :delim
16815 h
16816 s/\(.\{148\}\)..*/\1/
16817 t more2
16818 s/["\\]/\\&/g; s/^/"/; s/$/"/
16819 p
16820 b
16821 :more2
16822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16823 p
16824 g
16825 s/.\{148\}//
16826 t delim
16827 ' <conf$$subs.awk | sed '
16828 /^[^""]/{
16829 N
16830 s/\n//
16831 }
16832 ' >>$CONFIG_STATUS || ac_write_fail=1
16833 rm -f conf$$subs.awk
16834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835 _ACAWK
16836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16837 for (key in S) S_is_set[key] = 1
16838 FS = ""
16839
16840 }
16841 {
16842 line = $ 0
16843 nfields = split(line, field, "@")
16844 substed = 0
16845 len = length(field[1])
16846 for (i = 2; i < nfields; i++) {
16847 key = field[i]
16848 keylen = length(key)
16849 if (S_is_set[key]) {
16850 value = S[key]
16851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16852 len += length(value) + length(field[++i])
16853 substed = 1
16854 } else
16855 len += 1 + keylen
16856 }
16857
16858 print line
16859 }
16860
16861 _ACAWK
16862 _ACEOF
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16866 else
16867 cat
16868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16870 _ACEOF
16871
16872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16874 # trailing colons and then remove the whole line if VPATH becomes empty
16875 # (actually we leave an empty line to preserve line numbers).
16876 if test "x$srcdir" = x.; then
16877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16878 h
16879 s///
16880 s/^/:/
16881 s/[ ]*$/:/
16882 s/:\$(srcdir):/:/g
16883 s/:\${srcdir}:/:/g
16884 s/:@srcdir@:/:/g
16885 s/^:*//
16886 s/:*$//
16887 x
16888 s/\(=[ ]*\).*/\1/
16889 G
16890 s/\n//
16891 s/^[^=]*=[ ]*$//
16892 }'
16893 fi
16894
16895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16896 fi # test -n "$CONFIG_FILES"
16897
16898 # Set up the scripts for CONFIG_HEADERS section.
16899 # No need to generate them if there are no CONFIG_HEADERS.
16900 # This happens for instance with `./config.status Makefile'.
16901 if test -n "$CONFIG_HEADERS"; then
16902 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16903 BEGIN {
16904 _ACEOF
16905
16906 # Transform confdefs.h into an awk script `defines.awk', embedded as
16907 # here-document in config.status, that substitutes the proper values into
16908 # config.h.in to produce config.h.
16909
16910 # Create a delimiter string that does not exist in confdefs.h, to ease
16911 # handling of long lines.
16912 ac_delim='%!_!# '
16913 for ac_last_try in false false :; do
16914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16915 if test -z "$ac_tt"; then
16916 break
16917 elif $ac_last_try; then
16918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16919 else
16920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16921 fi
16922 done
16923
16924 # For the awk script, D is an array of macro values keyed by name,
16925 # likewise P contains macro parameters if any. Preserve backslash
16926 # newline sequences.
16927
16928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16929 sed -n '
16930 s/.\{148\}/&'"$ac_delim"'/g
16931 t rset
16932 :rset
16933 s/^[ ]*#[ ]*define[ ][ ]*/ /
16934 t def
16935 d
16936 :def
16937 s/\\$//
16938 t bsnl
16939 s/["\\]/\\&/g
16940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16941 D["\1"]=" \3"/p
16942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16943 d
16944 :bsnl
16945 s/["\\]/\\&/g
16946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16947 D["\1"]=" \3\\\\\\n"\\/p
16948 t cont
16949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16950 t cont
16951 d
16952 :cont
16953 n
16954 s/.\{148\}/&'"$ac_delim"'/g
16955 t clear
16956 :clear
16957 s/\\$//
16958 t bsnlc
16959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16960 d
16961 :bsnlc
16962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16963 b cont
16964 ' <confdefs.h | sed '
16965 s/'"$ac_delim"'/"\\\
16966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16967
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 for (key in D) D_is_set[key] = 1
16970 FS = ""
16971 }
16972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16973 line = \$ 0
16974 split(line, arg, " ")
16975 if (arg[1] == "#") {
16976 defundef = arg[2]
16977 mac1 = arg[3]
16978 } else {
16979 defundef = substr(arg[1], 2)
16980 mac1 = arg[2]
16981 }
16982 split(mac1, mac2, "(") #)
16983 macro = mac2[1]
16984 prefix = substr(line, 1, index(line, defundef) - 1)
16985 if (D_is_set[macro]) {
16986 # Preserve the white space surrounding the "#".
16987 print prefix "define", macro P[macro] D[macro]
16988 next
16989 } else {
16990 # Replace #undef with comments. This is necessary, for example,
16991 # in the case of _POSIX_SOURCE, which is predefined and required
16992 # on some systems where configure will not decide to define it.
16993 if (defundef == "undef") {
16994 print "/*", prefix defundef, macro, "*/"
16995 next
16996 }
16997 }
16998 }
16999 { print }
17000 _ACAWK
17001 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17004 fi # test -n "$CONFIG_HEADERS"
17005
17006
17007 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17008 shift
17009 for ac_tag
17010 do
17011 case $ac_tag in
17012 :[FHLC]) ac_mode=$ac_tag; continue;;
17013 esac
17014 case $ac_mode$ac_tag in
17015 :[FHL]*:*);;
17016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17017 :[FH]-) ac_tag=-:-;;
17018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17019 esac
17020 ac_save_IFS=$IFS
17021 IFS=:
17022 set x $ac_tag
17023 IFS=$ac_save_IFS
17024 shift
17025 ac_file=$1
17026 shift
17027
17028 case $ac_mode in
17029 :L) ac_source=$1;;
17030 :[FH])
17031 ac_file_inputs=
17032 for ac_f
17033 do
17034 case $ac_f in
17035 -) ac_f="$ac_tmp/stdin";;
17036 *) # Look for the file first in the build tree, then in the source tree
17037 # (if the path is not absolute). The absolute path cannot be DOS-style,
17038 # because $ac_f cannot contain `:'.
17039 test -f "$ac_f" ||
17040 case $ac_f in
17041 [\\/$]*) false;;
17042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17043 esac ||
17044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17045 esac
17046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17047 as_fn_append ac_file_inputs " '$ac_f'"
17048 done
17049
17050 # Let's still pretend it is `configure' which instantiates (i.e., don't
17051 # use $as_me), people would be surprised to read:
17052 # /* config.h. Generated by config.status. */
17053 configure_input='Generated from '`
17054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17055 `' by configure.'
17056 if test x"$ac_file" != x-; then
17057 configure_input="$ac_file. $configure_input"
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17059 $as_echo "$as_me: creating $ac_file" >&6;}
17060 fi
17061 # Neutralize special characters interpreted by sed in replacement strings.
17062 case $configure_input in #(
17063 *\&* | *\|* | *\\* )
17064 ac_sed_conf_input=`$as_echo "$configure_input" |
17065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17066 *) ac_sed_conf_input=$configure_input;;
17067 esac
17068
17069 case $ac_tag in
17070 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17072 esac
17073 ;;
17074 esac
17075
17076 ac_dir=`$as_dirname -- "$ac_file" ||
17077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17078 X"$ac_file" : 'X\(//\)[^/]' \| \
17079 X"$ac_file" : 'X\(//\)$' \| \
17080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17081 $as_echo X"$ac_file" |
17082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17083 s//\1/
17084 q
17085 }
17086 /^X\(\/\/\)[^/].*/{
17087 s//\1/
17088 q
17089 }
17090 /^X\(\/\/\)$/{
17091 s//\1/
17092 q
17093 }
17094 /^X\(\/\).*/{
17095 s//\1/
17096 q
17097 }
17098 s/.*/./; q'`
17099 as_dir="$ac_dir"; as_fn_mkdir_p
17100 ac_builddir=.
17101
17102 case "$ac_dir" in
17103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17104 *)
17105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17106 # A ".." for each directory in $ac_dir_suffix.
17107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17108 case $ac_top_builddir_sub in
17109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17111 esac ;;
17112 esac
17113 ac_abs_top_builddir=$ac_pwd
17114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17115 # for backward compatibility:
17116 ac_top_builddir=$ac_top_build_prefix
17117
17118 case $srcdir in
17119 .) # We are building in place.
17120 ac_srcdir=.
17121 ac_top_srcdir=$ac_top_builddir_sub
17122 ac_abs_top_srcdir=$ac_pwd ;;
17123 [\\/]* | ?:[\\/]* ) # Absolute name.
17124 ac_srcdir=$srcdir$ac_dir_suffix;
17125 ac_top_srcdir=$srcdir
17126 ac_abs_top_srcdir=$srcdir ;;
17127 *) # Relative name.
17128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17129 ac_top_srcdir=$ac_top_build_prefix$srcdir
17130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17131 esac
17132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17133
17134
17135 case $ac_mode in
17136 :F)
17137 #
17138 # CONFIG_FILE
17139 #
17140
17141 case $INSTALL in
17142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17144 esac
17145 ac_MKDIR_P=$MKDIR_P
17146 case $MKDIR_P in
17147 [\\/$]* | ?:[\\/]* ) ;;
17148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17149 esac
17150 _ACEOF
17151
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 # If the template does not know about datarootdir, expand it.
17154 # FIXME: This hack should be removed a few years after 2.60.
17155 ac_datarootdir_hack=; ac_datarootdir_seen=
17156 ac_sed_dataroot='
17157 /datarootdir/ {
17158 p
17159 q
17160 }
17161 /@datadir@/p
17162 /@docdir@/p
17163 /@infodir@/p
17164 /@localedir@/p
17165 /@mandir@/p'
17166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17167 *datarootdir*) ac_datarootdir_seen=yes;;
17168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17171 _ACEOF
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 ac_datarootdir_hack='
17174 s&@datadir@&$datadir&g
17175 s&@docdir@&$docdir&g
17176 s&@infodir@&$infodir&g
17177 s&@localedir@&$localedir&g
17178 s&@mandir@&$mandir&g
17179 s&\\\${datarootdir}&$datarootdir&g' ;;
17180 esac
17181 _ACEOF
17182
17183 # Neutralize VPATH when `$srcdir' = `.'.
17184 # Shell code in configure.ac might set extrasub.
17185 # FIXME: do we really want to maintain this feature?
17186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17187 ac_sed_extra="$ac_vpsub
17188 $extrasub
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191 :t
17192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17193 s|@configure_input@|$ac_sed_conf_input|;t t
17194 s&@top_builddir@&$ac_top_builddir_sub&;t t
17195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17196 s&@srcdir@&$ac_srcdir&;t t
17197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17198 s&@top_srcdir@&$ac_top_srcdir&;t t
17199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17200 s&@builddir@&$ac_builddir&;t t
17201 s&@abs_builddir@&$ac_abs_builddir&;t t
17202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17203 s&@INSTALL@&$ac_INSTALL&;t t
17204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17205 $ac_datarootdir_hack
17206 "
17207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17209
17210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17215 which seems to be undefined. Please make sure it is defined" >&5
17216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17217 which seems to be undefined. Please make sure it is defined" >&2;}
17218
17219 rm -f "$ac_tmp/stdin"
17220 case $ac_file in
17221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17223 esac \
17224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17225 ;;
17226 :H)
17227 #
17228 # CONFIG_HEADER
17229 #
17230 if test x"$ac_file" != x-; then
17231 {
17232 $as_echo "/* $configure_input */" \
17233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17234 } >"$ac_tmp/config.h" \
17235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17239 else
17240 rm -f "$ac_file"
17241 mv "$ac_tmp/config.h" "$ac_file" \
17242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17243 fi
17244 else
17245 $as_echo "/* $configure_input */" \
17246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17247 || as_fn_error $? "could not create -" "$LINENO" 5
17248 fi
17249 # Compute "$ac_file"'s index in $config_headers.
17250 _am_arg="$ac_file"
17251 _am_stamp_count=1
17252 for _am_header in $config_headers :; do
17253 case $_am_header in
17254 $_am_arg | $_am_arg:* )
17255 break ;;
17256 * )
17257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17258 esac
17259 done
17260 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17261 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262 X"$_am_arg" : 'X\(//\)[^/]' \| \
17263 X"$_am_arg" : 'X\(//\)$' \| \
17264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17265 $as_echo X"$_am_arg" |
17266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17267 s//\1/
17268 q
17269 }
17270 /^X\(\/\/\)[^/].*/{
17271 s//\1/
17272 q
17273 }
17274 /^X\(\/\/\)$/{
17275 s//\1/
17276 q
17277 }
17278 /^X\(\/\).*/{
17279 s//\1/
17280 q
17281 }
17282 s/.*/./; q'`/stamp-h$_am_stamp_count
17283 ;;
17284
17285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17286 $as_echo "$as_me: executing $ac_file commands" >&6;}
17287 ;;
17288 esac
17289
17290
17291 case $ac_file$ac_mode in
17292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17293 # Older Autoconf quotes --file arguments for eval, but not when files
17294 # are listed without --file. Let's play safe and only enable the eval
17295 # if we detect the quoting.
17296 # TODO: see whether this extra hack can be removed once we start
17297 # requiring Autoconf 2.70 or later.
17298 case $CONFIG_FILES in #(
17299 *\'*) :
17300 eval set x "$CONFIG_FILES" ;; #(
17301 *) :
17302 set x $CONFIG_FILES ;; #(
17303 *) :
17304 ;;
17305 esac
17306 shift
17307 # Used to flag and report bootstrapping failures.
17308 am_rc=0
17309 for am_mf
17310 do
17311 # Strip MF so we end up with the name of the file.
17312 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17313 # Check whether this is an Automake generated Makefile which includes
17314 # dependency-tracking related rules and includes.
17315 # Grep'ing the whole file directly is not great: AIX grep has a line
17316 # limit of 2048, but all sed's we know have understand at least 4000.
17317 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17318 || continue
17319 am_dirpart=`$as_dirname -- "$am_mf" ||
17320 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$am_mf" : 'X\(//\)[^/]' \| \
17322 X"$am_mf" : 'X\(//\)$' \| \
17323 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17324 $as_echo X"$am_mf" |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\/\)[^/].*/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\).*/{
17338 s//\1/
17339 q
17340 }
17341 s/.*/./; q'`
17342 am_filepart=`$as_basename -- "$am_mf" ||
17343 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17344 X"$am_mf" : 'X\(//\)$' \| \
17345 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17346 $as_echo X/"$am_mf" |
17347 sed '/^.*\/\([^/][^/]*\)\/*$/{
17348 s//\1/
17349 q
17350 }
17351 /^X\/\(\/\/\)$/{
17352 s//\1/
17353 q
17354 }
17355 /^X\/\(\/\).*/{
17356 s//\1/
17357 q
17358 }
17359 s/.*/./; q'`
17360 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17361 && sed -e '/# am--include-marker/d' "$am_filepart" \
17362 | $MAKE -f - am--depfiles" >&5
17363 (cd "$am_dirpart" \
17364 && sed -e '/# am--include-marker/d' "$am_filepart" \
17365 | $MAKE -f - am--depfiles) >&5 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } || am_rc=$?
17369 done
17370 if test $am_rc -ne 0; then
17371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17373 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17374 for automatic dependency tracking. Try re-running configure with the
17375 '--disable-dependency-tracking' option to at least be able to build
17376 the package (albeit without support for automatic dependency tracking).
17377 See \`config.log' for more details" "$LINENO" 5; }
17378 fi
17379 { am_dirpart=; unset am_dirpart;}
17380 { am_filepart=; unset am_filepart;}
17381 { am_mf=; unset am_mf;}
17382 { am_rc=; unset am_rc;}
17383 rm -f conftest-deps.mk
17384 }
17385 ;;
17386 "libtool":C)
17387
17388 # See if we are running on zsh, and set the options that allow our
17389 # commands through without removal of \ escapes.
17390 if test -n "${ZSH_VERSION+set}"; then
17391 setopt NO_GLOB_SUBST
17392 fi
17393
17394 cfgfile=${ofile}T
17395 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17396 $RM "$cfgfile"
17397
17398 cat <<_LT_EOF >> "$cfgfile"
17399 #! $SHELL
17400 # Generated automatically by $as_me ($PACKAGE) $VERSION
17401 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17402
17403 # Provide generalized library-building support services.
17404 # Written by Gordon Matzigkeit, 1996
17405
17406 # Copyright (C) 2014 Free Software Foundation, Inc.
17407 # This is free software; see the source for copying conditions. There is NO
17408 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17409
17410 # GNU Libtool is free software; you can redistribute it and/or modify
17411 # it under the terms of the GNU General Public License as published by
17412 # the Free Software Foundation; either version 2 of of the License, or
17413 # (at your option) any later version.
17414 #
17415 # As a special exception to the GNU General Public License, if you
17416 # distribute this file as part of a program or library that is built
17417 # using GNU Libtool, you may include this file under the same
17418 # distribution terms that you use for the rest of that program.
17419 #
17420 # GNU Libtool is distributed in the hope that it will be useful, but
17421 # WITHOUT ANY WARRANTY; without even the implied warranty of
17422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17423 # GNU General Public License for more details.
17424 #
17425 # You should have received a copy of the GNU General Public License
17426 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17427
17428
17429 # The names of the tagged configurations supported by this script.
17430 available_tags=''
17431
17432 # Configured defaults for sys_lib_dlsearch_path munging.
17433 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17434
17435 # ### BEGIN LIBTOOL CONFIG
17436
17437 # Which release of libtool.m4 was used?
17438 macro_version=$macro_version
17439 macro_revision=$macro_revision
17440
17441 # Whether or not to build shared libraries.
17442 build_libtool_libs=$enable_shared
17443
17444 # Whether or not to build static libraries.
17445 build_old_libs=$enable_static
17446
17447 # What type of objects to build.
17448 pic_mode=$pic_mode
17449
17450 # Whether or not to optimize for fast installation.
17451 fast_install=$enable_fast_install
17452
17453 # Shared archive member basename,for filename based shared library versioning on AIX.
17454 shared_archive_member_spec=$shared_archive_member_spec
17455
17456 # Shell to use when invoking shell scripts.
17457 SHELL=$lt_SHELL
17458
17459 # An echo program that protects backslashes.
17460 ECHO=$lt_ECHO
17461
17462 # The PATH separator for the build system.
17463 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17464
17465 # The host system.
17466 host_alias=$host_alias
17467 host=$host
17468 host_os=$host_os
17469
17470 # The build system.
17471 build_alias=$build_alias
17472 build=$build
17473 build_os=$build_os
17474
17475 # A sed program that does not truncate output.
17476 SED=$lt_SED
17477
17478 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17479 Xsed="\$SED -e 1s/^X//"
17480
17481 # A grep program that handles long lines.
17482 GREP=$lt_GREP
17483
17484 # An ERE matcher.
17485 EGREP=$lt_EGREP
17486
17487 # A literal string matcher.
17488 FGREP=$lt_FGREP
17489
17490 # A BSD- or MS-compatible name lister.
17491 NM=$lt_NM
17492
17493 # Whether we need soft or hard links.
17494 LN_S=$lt_LN_S
17495
17496 # What is the maximum length of a command?
17497 max_cmd_len=$max_cmd_len
17498
17499 # Object file suffix (normally "o").
17500 objext=$ac_objext
17501
17502 # Executable file suffix (normally "").
17503 exeext=$exeext
17504
17505 # whether the shell understands "unset".
17506 lt_unset=$lt_unset
17507
17508 # turn spaces into newlines.
17509 SP2NL=$lt_lt_SP2NL
17510
17511 # turn newlines into spaces.
17512 NL2SP=$lt_lt_NL2SP
17513
17514 # convert \$build file names to \$host format.
17515 to_host_file_cmd=$lt_cv_to_host_file_cmd
17516
17517 # convert \$build files to toolchain format.
17518 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17519
17520 # An object symbol dumper.
17521 OBJDUMP=$lt_OBJDUMP
17522
17523 # Method to check whether dependent libraries are shared objects.
17524 deplibs_check_method=$lt_deplibs_check_method
17525
17526 # Command to use when deplibs_check_method = "file_magic".
17527 file_magic_cmd=$lt_file_magic_cmd
17528
17529 # How to find potential files when deplibs_check_method = "file_magic".
17530 file_magic_glob=$lt_file_magic_glob
17531
17532 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17533 want_nocaseglob=$lt_want_nocaseglob
17534
17535 # DLL creation program.
17536 DLLTOOL=$lt_DLLTOOL
17537
17538 # Command to associate shared and link libraries.
17539 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17540
17541 # The archiver.
17542 AR=$lt_AR
17543
17544 # Flags to create an archive.
17545 AR_FLAGS=$lt_AR_FLAGS
17546
17547 # How to feed a file listing to the archiver.
17548 archiver_list_spec=$lt_archiver_list_spec
17549
17550 # A symbol stripping program.
17551 STRIP=$lt_STRIP
17552
17553 # Commands used to install an old-style archive.
17554 RANLIB=$lt_RANLIB
17555 old_postinstall_cmds=$lt_old_postinstall_cmds
17556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17557
17558 # Whether to use a lock for old archive extraction.
17559 lock_old_archive_extraction=$lock_old_archive_extraction
17560
17561 # A C compiler.
17562 LTCC=$lt_CC
17563
17564 # LTCC compiler flags.
17565 LTCFLAGS=$lt_CFLAGS
17566
17567 # Take the output of nm and produce a listing of raw symbols and C names.
17568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17569
17570 # Transform the output of nm in a proper C declaration.
17571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17572
17573 # Transform the output of nm into a list of symbols to manually relocate.
17574 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17575
17576 # Transform the output of nm in a C name address pair.
17577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17578
17579 # Transform the output of nm in a C name address pair when lib prefix is needed.
17580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17581
17582 # The name lister interface.
17583 nm_interface=$lt_lt_cv_nm_interface
17584
17585 # Specify filename containing input files for \$NM.
17586 nm_file_list_spec=$lt_nm_file_list_spec
17587
17588 # The root where to search for dependent libraries,and where our libraries should be installed.
17589 lt_sysroot=$lt_sysroot
17590
17591 # Command to truncate a binary pipe.
17592 lt_truncate_bin=$lt_lt_cv_truncate_bin
17593
17594 # The name of the directory that contains temporary libtool files.
17595 objdir=$objdir
17596
17597 # Used to examine libraries when file_magic_cmd begins with "file".
17598 MAGIC_CMD=$MAGIC_CMD
17599
17600 # Must we lock files when doing compilation?
17601 need_locks=$lt_need_locks
17602
17603 # Manifest tool.
17604 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17605
17606 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17607 DSYMUTIL=$lt_DSYMUTIL
17608
17609 # Tool to change global to local symbols on Mac OS X.
17610 NMEDIT=$lt_NMEDIT
17611
17612 # Tool to manipulate fat objects and archives on Mac OS X.
17613 LIPO=$lt_LIPO
17614
17615 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17616 OTOOL=$lt_OTOOL
17617
17618 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17619 OTOOL64=$lt_OTOOL64
17620
17621 # Old archive suffix (normally "a").
17622 libext=$libext
17623
17624 # Shared library suffix (normally ".so").
17625 shrext_cmds=$lt_shrext_cmds
17626
17627 # The commands to extract the exported symbol list from a shared archive.
17628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17629
17630 # Variables whose values should be saved in libtool wrapper scripts and
17631 # restored at link time.
17632 variables_saved_for_relink=$lt_variables_saved_for_relink
17633
17634 # Do we need the "lib" prefix for modules?
17635 need_lib_prefix=$need_lib_prefix
17636
17637 # Do we need a version for libraries?
17638 need_version=$need_version
17639
17640 # Library versioning type.
17641 version_type=$version_type
17642
17643 # Shared library runtime path variable.
17644 runpath_var=$runpath_var
17645
17646 # Shared library path variable.
17647 shlibpath_var=$shlibpath_var
17648
17649 # Is shlibpath searched before the hard-coded library search path?
17650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17651
17652 # Format of library name prefix.
17653 libname_spec=$lt_libname_spec
17654
17655 # List of archive names. First name is the real one, the rest are links.
17656 # The last name is the one that the linker finds with -lNAME
17657 library_names_spec=$lt_library_names_spec
17658
17659 # The coded name of the library, if different from the real name.
17660 soname_spec=$lt_soname_spec
17661
17662 # Permission mode override for installation of shared libraries.
17663 install_override_mode=$lt_install_override_mode
17664
17665 # Command to use after installation of a shared archive.
17666 postinstall_cmds=$lt_postinstall_cmds
17667
17668 # Command to use after uninstallation of a shared archive.
17669 postuninstall_cmds=$lt_postuninstall_cmds
17670
17671 # Commands used to finish a libtool library installation in a directory.
17672 finish_cmds=$lt_finish_cmds
17673
17674 # As "finish_cmds", except a single script fragment to be evaled but
17675 # not shown.
17676 finish_eval=$lt_finish_eval
17677
17678 # Whether we should hardcode library paths into libraries.
17679 hardcode_into_libs=$hardcode_into_libs
17680
17681 # Compile-time system search path for libraries.
17682 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17683
17684 # Detected run-time system search path for libraries.
17685 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17686
17687 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17688 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17689
17690 # Whether dlopen is supported.
17691 dlopen_support=$enable_dlopen
17692
17693 # Whether dlopen of programs is supported.
17694 dlopen_self=$enable_dlopen_self
17695
17696 # Whether dlopen of statically linked programs is supported.
17697 dlopen_self_static=$enable_dlopen_self_static
17698
17699 # Commands to strip libraries.
17700 old_striplib=$lt_old_striplib
17701 striplib=$lt_striplib
17702
17703
17704 # The linker used to build libraries.
17705 LD=$lt_LD
17706
17707 # How to create reloadable object files.
17708 reload_flag=$lt_reload_flag
17709 reload_cmds=$lt_reload_cmds
17710
17711 # Commands used to build an old-style archive.
17712 old_archive_cmds=$lt_old_archive_cmds
17713
17714 # A language specific compiler.
17715 CC=$lt_compiler
17716
17717 # Is the compiler the GNU compiler?
17718 with_gcc=$GCC
17719
17720 # Compiler flag to turn off builtin functions.
17721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17722
17723 # Additional compiler flags for building library objects.
17724 pic_flag=$lt_lt_prog_compiler_pic
17725
17726 # How to pass a linker flag through the compiler.
17727 wl=$lt_lt_prog_compiler_wl
17728
17729 # Compiler flag to prevent dynamic linking.
17730 link_static_flag=$lt_lt_prog_compiler_static
17731
17732 # Does compiler simultaneously support -c and -o options?
17733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17734
17735 # Whether or not to add -lc for building shared libraries.
17736 build_libtool_need_lc=$archive_cmds_need_lc
17737
17738 # Whether or not to disallow shared libs when runtime libs are static.
17739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17740
17741 # Compiler flag to allow reflexive dlopens.
17742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17743
17744 # Compiler flag to generate shared objects directly from archives.
17745 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17746
17747 # Whether the compiler copes with passing no objects directly.
17748 compiler_needs_object=$lt_compiler_needs_object
17749
17750 # Create an old-style archive from a shared archive.
17751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17752
17753 # Create a temporary old-style archive to link instead of a shared archive.
17754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17755
17756 # Commands used to build a shared archive.
17757 archive_cmds=$lt_archive_cmds
17758 archive_expsym_cmds=$lt_archive_expsym_cmds
17759
17760 # Commands used to build a loadable module if different from building
17761 # a shared archive.
17762 module_cmds=$lt_module_cmds
17763 module_expsym_cmds=$lt_module_expsym_cmds
17764
17765 # Whether we are building with GNU ld or not.
17766 with_gnu_ld=$lt_with_gnu_ld
17767
17768 # Flag that allows shared libraries with undefined symbols to be built.
17769 allow_undefined_flag=$lt_allow_undefined_flag
17770
17771 # Flag that enforces no undefined symbols.
17772 no_undefined_flag=$lt_no_undefined_flag
17773
17774 # Flag to hardcode \$libdir into a binary during linking.
17775 # This must work even if \$libdir does not exist
17776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17777
17778 # Whether we need a single "-rpath" flag with a separated argument.
17779 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17780
17781 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17782 # DIR into the resulting binary.
17783 hardcode_direct=$hardcode_direct
17784
17785 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17786 # DIR into the resulting binary and the resulting library dependency is
17787 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17788 # library is relocated.
17789 hardcode_direct_absolute=$hardcode_direct_absolute
17790
17791 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17792 # into the resulting binary.
17793 hardcode_minus_L=$hardcode_minus_L
17794
17795 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17796 # into the resulting binary.
17797 hardcode_shlibpath_var=$hardcode_shlibpath_var
17798
17799 # Set to "yes" if building a shared library automatically hardcodes DIR
17800 # into the library and all subsequent libraries and executables linked
17801 # against it.
17802 hardcode_automatic=$hardcode_automatic
17803
17804 # Set to yes if linker adds runtime paths of dependent libraries
17805 # to runtime path list.
17806 inherit_rpath=$inherit_rpath
17807
17808 # Whether libtool must link a program against all its dependency libraries.
17809 link_all_deplibs=$link_all_deplibs
17810
17811 # Set to "yes" if exported symbols are required.
17812 always_export_symbols=$always_export_symbols
17813
17814 # The commands to list exported symbols.
17815 export_symbols_cmds=$lt_export_symbols_cmds
17816
17817 # Symbols that should not be listed in the preloaded symbols.
17818 exclude_expsyms=$lt_exclude_expsyms
17819
17820 # Symbols that must always be exported.
17821 include_expsyms=$lt_include_expsyms
17822
17823 # Commands necessary for linking programs (against libraries) with templates.
17824 prelink_cmds=$lt_prelink_cmds
17825
17826 # Commands necessary for finishing linking programs.
17827 postlink_cmds=$lt_postlink_cmds
17828
17829 # Specify filename containing input files.
17830 file_list_spec=$lt_file_list_spec
17831
17832 # How to hardcode a shared library path into an executable.
17833 hardcode_action=$hardcode_action
17834
17835 # ### END LIBTOOL CONFIG
17836
17837 _LT_EOF
17838
17839 cat <<'_LT_EOF' >> "$cfgfile"
17840
17841 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17842
17843 # func_munge_path_list VARIABLE PATH
17844 # -----------------------------------
17845 # VARIABLE is name of variable containing _space_ separated list of
17846 # directories to be munged by the contents of PATH, which is string
17847 # having a format:
17848 # "DIR[:DIR]:"
17849 # string "DIR[ DIR]" will be prepended to VARIABLE
17850 # ":DIR[:DIR]"
17851 # string "DIR[ DIR]" will be appended to VARIABLE
17852 # "DIRP[:DIRP]::[DIRA:]DIRA"
17853 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17854 # "DIRA[ DIRA]" will be appended to VARIABLE
17855 # "DIR[:DIR]"
17856 # VARIABLE will be replaced by "DIR[ DIR]"
17857 func_munge_path_list ()
17858 {
17859 case x$2 in
17860 x)
17861 ;;
17862 *:)
17863 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17864 ;;
17865 x:*)
17866 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17867 ;;
17868 *::*)
17869 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17870 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17871 ;;
17872 *)
17873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17874 ;;
17875 esac
17876 }
17877
17878
17879 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17880 func_cc_basename ()
17881 {
17882 for cc_temp in $*""; do
17883 case $cc_temp in
17884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17886 \-*) ;;
17887 *) break;;
17888 esac
17889 done
17890 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17891 }
17892
17893
17894 # ### END FUNCTIONS SHARED WITH CONFIGURE
17895
17896 _LT_EOF
17897
17898 case $host_os in
17899 aix3*)
17900 cat <<\_LT_EOF >> "$cfgfile"
17901 # AIX sometimes has problems with the GCC collect2 program. For some
17902 # reason, if we set the COLLECT_NAMES environment variable, the problems
17903 # vanish in a puff of smoke.
17904 if test set != "${COLLECT_NAMES+set}"; then
17905 COLLECT_NAMES=
17906 export COLLECT_NAMES
17907 fi
17908 _LT_EOF
17909 ;;
17910 esac
17911
17912
17913 ltmain=$ac_aux_dir/ltmain.sh
17914
17915
17916 # We use sed instead of cat because bash on DJGPP gets confused if
17917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17918 # text mode, it properly converts lines to CR/LF. This bash problem
17919 # is reportedly fixed, but why not run on old versions too?
17920 sed '$q' "$ltmain" >> "$cfgfile" \
17921 || (rm -f "$cfgfile"; exit 1)
17922
17923 mv -f "$cfgfile" "$ofile" ||
17924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17925 chmod +x "$ofile"
17926
17927 ;;
17928
17929 esac
17930 done # for ac_tag
17931
17932
17933 as_fn_exit 0
17934 _ACEOF
17935 ac_clean_files=$ac_clean_files_save
17936
17937 test $ac_write_fail = 0 ||
17938 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17939
17940
17941 # configure is writing to config.log, and then calls config.status.
17942 # config.status does its own redirection, appending to config.log.
17943 # Unfortunately, on DOS this fails, as config.log is still kept open
17944 # by configure, so config.status won't be able to write to it; its
17945 # output is simply discarded. So we exec the FD to /dev/null,
17946 # effectively closing config.log, so it can be properly (re)opened and
17947 # appended to by config.status. When coming back to configure, we
17948 # need to make the FD available again.
17949 if test "$no_create" != yes; then
17950 ac_cs_success=:
17951 ac_config_status_args=
17952 test "$silent" = yes &&
17953 ac_config_status_args="$ac_config_status_args --quiet"
17954 exec 5>/dev/null
17955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17956 exec 5>>config.log
17957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17958 # would make configure fail if this is the last instruction.
17959 $ac_cs_success || as_fn_exit 1
17960 fi
17961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17964 fi
17965
17966
17967
17968
17969 echo ""
17970
17971
17972 echo "libgeotiff configuration summary:"
17973
17974
17975 echo ""
17976
17977
17978 echo " Version..................: ${RELEASE_VERSION}"
17979
17980
17981 echo " Installation directory...: ${prefix}"
17982
17983
17984 echo " C compiler...............: ${CC} ${CFLAGS}"
17985
17986
17987
17988 echo " Debugging support........: ${enable_debug}"
17989
17990
17991 echo ""
17992
17993
17994
17995 echo " zlib support......: ${ZIP_CONFIG}"
17996
17997
17998 echo " jpeg support......: ${JPEG_CONFIG}"
17999
18000
18001 echo " TIFF support......: ${TIFF_CONFIG}"
18002
18003
18004 echo " -INCLUDE .......: ${TIFF_INC}"
18005
18006
18007 echo " -PREFIX ........: ${TIFF_PREFIX}"
18008
18009
18010 echo " PROJ support......: yes"
18011
18012
18013 echo " -INCLUDE .......: ${PROJ_INCLUDE}"
18014
18015
18016
18017 echo " LIBS.....................: ${LIBS}"
18018
18019
18020 echo ""
18021
18022
18023 echo " libgeotiff - http://trac.osgeo.org/geotiff"
18024
18025
18026 echo ""
18027
18028